igniteui-angular-core 20.2.0 → 20.2.1
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-angular-core.umd.js +6890 -5217
- package/bundles/igniteui-angular-core.umd.min.js +1 -1
- package/esm2015/lib/AxisDescription.js +276 -276
- package/esm2015/lib/AxisDescriptionMetadata.js +10 -5
- package/esm2015/lib/AxisMouseEventArgsDescription.js +29 -21
- package/esm2015/lib/AxisMouseEventArgsDescriptionMetadata.js +3 -2
- package/esm2015/lib/BaseDOMEventProxy_combined.js +420 -419
- package/esm2015/lib/CanvasGestureDOMEventProxy.js +252 -252
- package/esm2015/lib/CanvasScalingHelpers.js +79 -0
- package/esm2015/lib/CategoryAxisBaseDescriptionMetadata.js +1 -1
- package/esm2015/lib/CategoryChartDescription.js +121 -121
- package/esm2015/lib/DashboardTileDescription.js +90 -82
- package/esm2015/lib/DashboardTileDescriptionMetadata.js +1 -0
- package/esm2015/lib/DataChartDescription.js +103 -95
- package/esm2015/lib/DataChartDescriptionMetadata.js +1 -0
- package/esm2015/lib/DataPieBaseChartDescription.js +117 -117
- package/esm2015/lib/DataPieChartDescription.js +32 -32
- package/esm2015/lib/DataSourceLocalDataProvider.js +371 -158
- package/esm2015/lib/DomainChartDescription.js +786 -778
- package/esm2015/lib/DomainChartDescriptionMetadata.js +10 -2
- package/esm2015/lib/EventProxy.js +32 -31
- package/esm2015/lib/FeatureState.js +29 -0
- package/esm2015/lib/FinancialChartDescription.js +151 -151
- package/esm2015/lib/GeographicMapDescription.js +41 -41
- package/esm2015/lib/ImageLoadEventArgsDescription.js +58 -0
- package/esm2015/lib/ImageLoadEventArgsDescriptionMetadata.js +41 -0
- package/esm2015/lib/LabelFormatOverrideEventArgsDescription.js +50 -0
- package/esm2015/lib/LabelFormatOverrideEventArgsDescriptionMetadata.js +7 -0
- package/esm2015/lib/LabelFormatOverrideEventArgsDescriptionMetadata_combined.js +76 -0
- package/esm2015/lib/LastSevenDaysExpressionDescription.js +25 -0
- package/esm2015/lib/LastSevenDaysExpressionDescriptionMetadata.js +39 -0
- package/esm2015/lib/LastThirtyDaysExpressionDescription.js +25 -0
- package/esm2015/lib/LastThirtyDaysExpressionDescriptionMetadata.js +39 -0
- package/esm2015/lib/LastThreeSixtyFiveDaysExpressionDescription.js +25 -0
- package/esm2015/lib/LastThreeSixtyFiveDaysExpressionDescriptionMetadata.js +39 -0
- package/esm2015/lib/MonthToDateExpressionDescription.js +25 -0
- package/esm2015/lib/MonthToDateExpressionDescriptionMetadata.js +39 -0
- package/esm2015/lib/NumericAxisBaseDescription.js +84 -84
- package/esm2015/lib/NumericAxisBaseDescriptionMetadata.js +3 -2
- package/esm2015/lib/PlotAreaMouseButtonEventArgsDescriptionMetadata_combined.js +2 -0
- package/esm2015/lib/QuarterToDateExpressionDescription.js +25 -0
- package/esm2015/lib/QuarterToDateExpressionDescriptionMetadata.js +39 -0
- package/esm2015/lib/RadialBaseChartDescription.js +217 -217
- package/esm2015/lib/ScrollerView_combined.js +12 -12
- package/esm2015/lib/SeriesDescriptionMetadata.js +1 -1
- package/esm2015/lib/SeriesViewerDescription.js +503 -487
- package/esm2015/lib/StackedFragmentSeriesDescriptionMetadata.js +1 -1
- package/esm2015/lib/TimeAxisLabelFormatDescription.js +14 -6
- package/esm2015/lib/TimeAxisLabelFormatDescriptionMetadata.js +1 -35
- package/esm2015/lib/TrailingTwelveMonthsExpressionDescription.js +25 -0
- package/esm2015/lib/TrailingTwelveMonthsExpressionDescriptionMetadata.js +39 -0
- package/esm2015/lib/WebBaseExporterDescriptionMetadata_combined.js +6 -0
- package/esm2015/lib/WebByLevelTreeGridMergeStrategyDescription.js +23 -0
- package/esm2015/lib/WebByLevelTreeGridMergeStrategyDescriptionMetadata.js +45 -0
- package/esm2015/lib/WebColumnDescription.js +131 -115
- package/esm2015/lib/WebColumnDescriptionMetadata.js +4 -0
- package/esm2015/lib/WebColumnGroupDescription.js +12 -12
- package/esm2015/lib/WebCustomDateRangeDescription.js +16 -0
- package/esm2015/lib/WebCustomDateRangeDescriptionMetadata.js +5 -0
- package/esm2015/lib/WebDateRangeValueDescriptionMetadata.js +1 -0
- package/esm2015/lib/WebDateRangeValueEventArgsDescriptionMetadata.js +3 -3
- package/esm2015/lib/WebDefaultMergeStrategyDescription.js +26 -0
- package/esm2015/lib/WebDefaultMergeStrategyDescriptionMetadata.js +42 -0
- package/esm2015/lib/WebDefaultTreeGridMergeStrategyDescription.js +23 -0
- package/esm2015/lib/WebDefaultTreeGridMergeStrategyDescriptionMetadata.js +45 -0
- package/esm2015/lib/WebGridBaseDirectiveDescription_combined.js +341 -325
- package/esm2015/lib/WebGridDescription.js +52 -52
- package/esm2015/lib/WebGridMergeStrategyDescription.js +26 -0
- package/esm2015/lib/WebGridMergeStrategyDescriptionMetadata.js +43 -0
- package/esm2015/lib/WebGridResourceStringsDescription.js +549 -437
- package/esm2015/lib/WebGridResourceStringsDescriptionMetadata.js +14 -0
- package/esm2015/lib/WebHierarchicalGridBaseDirectiveDescription.js +11 -11
- package/esm2015/lib/WebHierarchicalGridDescription.js +15 -15
- package/esm2015/lib/WebPivotGridDescription.js +42 -42
- package/esm2015/lib/WebPositionSettingsDescription.js +18 -10
- package/esm2015/lib/WebPositionSettingsDescriptionMetadata.js +1 -0
- package/esm2015/lib/WebRowIslandDescription.js +356 -340
- package/esm2015/lib/WebRowIslandDescriptionMetadata.js +6 -0
- package/esm2015/lib/WebTooltipDescription.js +43 -35
- package/esm2015/lib/WebTooltipDescriptionMetadata.js +1 -0
- package/esm2015/lib/WebTreeGridDescription.js +28 -28
- package/esm2015/lib/XYChartDescription.js +217 -217
- package/esm2015/public_api.js +28 -2
- package/esm5/lib/AxisDescription.js +276 -276
- package/esm5/lib/AxisDescriptionMetadata.js +10 -5
- package/esm5/lib/AxisMouseEventArgsDescription.js +31 -19
- package/esm5/lib/AxisMouseEventArgsDescriptionMetadata.js +3 -2
- package/esm5/lib/BaseDOMEventProxy_combined.js +418 -417
- package/esm5/lib/CanvasGestureDOMEventProxy.js +252 -252
- package/esm5/lib/CanvasScalingHelpers.js +83 -0
- package/esm5/lib/CategoryAxisBaseDescriptionMetadata.js +1 -1
- package/esm5/lib/CategoryChartDescription.js +121 -121
- package/esm5/lib/DashboardTileDescription.js +94 -82
- package/esm5/lib/DashboardTileDescriptionMetadata.js +1 -0
- package/esm5/lib/DataChartDescription.js +107 -95
- package/esm5/lib/DataChartDescriptionMetadata.js +1 -0
- package/esm5/lib/DataPieBaseChartDescription.js +117 -117
- package/esm5/lib/DataPieChartDescription.js +32 -32
- package/esm5/lib/DataSourceLocalDataProvider.js +407 -168
- package/esm5/lib/DomainChartDescription.js +790 -778
- package/esm5/lib/DomainChartDescriptionMetadata.js +10 -2
- package/esm5/lib/EventProxy.js +32 -31
- package/esm5/lib/FeatureState.js +29 -0
- package/esm5/lib/FinancialChartDescription.js +151 -151
- package/esm5/lib/GeographicMapDescription.js +41 -41
- package/esm5/lib/ImageLoadEventArgsDescription.js +80 -0
- package/esm5/lib/ImageLoadEventArgsDescriptionMetadata.js +45 -0
- package/esm5/lib/LabelFormatOverrideEventArgsDescription.js +68 -0
- package/esm5/lib/LabelFormatOverrideEventArgsDescriptionMetadata.js +7 -0
- package/esm5/lib/LabelFormatOverrideEventArgsDescriptionMetadata_combined.js +83 -0
- package/esm5/lib/LastSevenDaysExpressionDescription.js +26 -0
- package/esm5/lib/LastSevenDaysExpressionDescriptionMetadata.js +43 -0
- package/esm5/lib/LastThirtyDaysExpressionDescription.js +26 -0
- package/esm5/lib/LastThirtyDaysExpressionDescriptionMetadata.js +43 -0
- package/esm5/lib/LastThreeSixtyFiveDaysExpressionDescription.js +26 -0
- package/esm5/lib/LastThreeSixtyFiveDaysExpressionDescriptionMetadata.js +43 -0
- package/esm5/lib/MonthToDateExpressionDescription.js +26 -0
- package/esm5/lib/MonthToDateExpressionDescriptionMetadata.js +43 -0
- package/esm5/lib/NumericAxisBaseDescription.js +84 -84
- package/esm5/lib/NumericAxisBaseDescriptionMetadata.js +3 -2
- package/esm5/lib/PlotAreaMouseButtonEventArgsDescriptionMetadata_combined.js +2 -0
- package/esm5/lib/QuarterToDateExpressionDescription.js +26 -0
- package/esm5/lib/QuarterToDateExpressionDescriptionMetadata.js +43 -0
- package/esm5/lib/RadialBaseChartDescription.js +217 -217
- package/esm5/lib/ScrollerView_combined.js +12 -12
- package/esm5/lib/SeriesDescriptionMetadata.js +1 -1
- package/esm5/lib/SeriesViewerDescription.js +510 -486
- package/esm5/lib/StackedFragmentSeriesDescriptionMetadata.js +1 -1
- package/esm5/lib/TimeAxisLabelFormatDescription.js +17 -5
- package/esm5/lib/TimeAxisLabelFormatDescriptionMetadata.js +1 -39
- package/esm5/lib/TrailingTwelveMonthsExpressionDescription.js +26 -0
- package/esm5/lib/TrailingTwelveMonthsExpressionDescriptionMetadata.js +43 -0
- package/esm5/lib/WebBaseExporterDescriptionMetadata_combined.js +6 -0
- package/esm5/lib/WebByLevelTreeGridMergeStrategyDescription.js +24 -0
- package/esm5/lib/WebByLevelTreeGridMergeStrategyDescriptionMetadata.js +49 -0
- package/esm5/lib/WebColumnDescription.js +139 -115
- package/esm5/lib/WebColumnDescriptionMetadata.js +4 -0
- package/esm5/lib/WebColumnGroupDescription.js +12 -12
- package/esm5/lib/WebCustomDateRangeDescription.js +26 -1
- package/esm5/lib/WebCustomDateRangeDescriptionMetadata.js +5 -0
- package/esm5/lib/WebDateRangeValueDescriptionMetadata.js +1 -0
- package/esm5/lib/WebDateRangeValueEventArgsDescriptionMetadata.js +3 -3
- package/esm5/lib/WebDefaultMergeStrategyDescription.js +31 -0
- package/esm5/lib/WebDefaultMergeStrategyDescriptionMetadata.js +46 -0
- package/esm5/lib/WebDefaultTreeGridMergeStrategyDescription.js +24 -0
- package/esm5/lib/WebDefaultTreeGridMergeStrategyDescriptionMetadata.js +49 -0
- package/esm5/lib/WebGridBaseDirectiveDescription_combined.js +349 -325
- package/esm5/lib/WebGridDescription.js +52 -52
- package/esm5/lib/WebGridMergeStrategyDescription.js +31 -0
- package/esm5/lib/WebGridMergeStrategyDescriptionMetadata.js +47 -0
- package/esm5/lib/WebGridResourceStringsDescription.js +626 -458
- package/esm5/lib/WebGridResourceStringsDescriptionMetadata.js +14 -0
- package/esm5/lib/WebHierarchicalGridBaseDirectiveDescription.js +11 -11
- package/esm5/lib/WebHierarchicalGridDescription.js +15 -15
- package/esm5/lib/WebPivotGridDescription.js +42 -42
- package/esm5/lib/WebPositionSettingsDescription.js +22 -10
- package/esm5/lib/WebPositionSettingsDescriptionMetadata.js +1 -0
- package/esm5/lib/WebRowIslandDescription.js +364 -340
- package/esm5/lib/WebRowIslandDescriptionMetadata.js +6 -0
- package/esm5/lib/WebTooltipDescription.js +47 -35
- package/esm5/lib/WebTooltipDescriptionMetadata.js +1 -0
- package/esm5/lib/WebTreeGridDescription.js +28 -28
- package/esm5/lib/XYChartDescription.js +217 -217
- package/esm5/public_api.js +28 -2
- package/fesm2015/igniteui-angular-core.js +6610 -5175
- package/fesm5/igniteui-angular-core.js +6864 -5218
- package/lib/AxisDescription.d.ts +106 -106
- package/lib/AxisMouseEventArgsDescription.d.ts +12 -9
- package/lib/BaseDOMEventProxy_combined.d.ts +81 -80
- package/lib/CanvasGestureDOMEventProxy.d.ts +29 -29
- package/lib/CanvasScalingHelpers.d.ts +17 -0
- package/lib/CategoryChartDescription.d.ts +45 -45
- package/lib/DashboardTileDescription.d.ts +33 -30
- package/lib/DataChartDescription.d.ts +36 -33
- package/lib/DataPieBaseChartDescription.d.ts +43 -43
- package/lib/DataPieChartDescription.d.ts +12 -12
- package/lib/DataSourceLocalDataProvider.d.ts +36 -27
- package/lib/DomainChartDescription.d.ts +291 -288
- package/lib/DomainChartDescriptionMetadata.d.ts +2 -1
- package/lib/EventProxy.d.ts +28 -27
- package/lib/FeatureState.d.ts +22 -0
- package/lib/FinancialChartDescription.d.ts +56 -56
- package/lib/GeographicMapDescription.d.ts +14 -14
- package/lib/ImageLoadEventArgsDescription.d.ts +23 -0
- package/lib/ImageLoadEventArgsDescriptionMetadata.d.ts +13 -0
- package/lib/LabelFormatOverrideEventArgsDescription.d.ts +21 -0
- package/lib/LabelFormatOverrideEventArgsDescriptionMetadata.d.ts +1 -0
- package/lib/LabelFormatOverrideEventArgsDescriptionMetadata_combined.d.ts +23 -0
- package/lib/LastSevenDaysExpressionDescription.d.ts +12 -0
- package/lib/LastSevenDaysExpressionDescriptionMetadata.d.ts +13 -0
- package/lib/LastThirtyDaysExpressionDescription.d.ts +12 -0
- package/lib/LastThirtyDaysExpressionDescriptionMetadata.d.ts +13 -0
- package/lib/LastThreeSixtyFiveDaysExpressionDescription.d.ts +12 -0
- package/lib/LastThreeSixtyFiveDaysExpressionDescriptionMetadata.d.ts +13 -0
- package/lib/MonthToDateExpressionDescription.d.ts +12 -0
- package/lib/MonthToDateExpressionDescriptionMetadata.d.ts +13 -0
- package/lib/NumericAxisBaseDescription.d.ts +32 -32
- package/lib/QuarterToDateExpressionDescription.d.ts +12 -0
- package/lib/QuarterToDateExpressionDescriptionMetadata.d.ts +13 -0
- package/lib/RadialBaseChartDescription.d.ts +80 -80
- package/lib/SeriesViewerDescription.d.ts +178 -172
- package/lib/TimeAxisLabelFormatDescription.d.ts +6 -3
- package/lib/TimeAxisLabelFormatDescriptionMetadata.d.ts +1 -13
- package/lib/TrailingTwelveMonthsExpressionDescription.d.ts +12 -0
- package/lib/TrailingTwelveMonthsExpressionDescriptionMetadata.d.ts +13 -0
- package/lib/WebByLevelTreeGridMergeStrategyDescription.d.ts +10 -0
- package/lib/WebByLevelTreeGridMergeStrategyDescriptionMetadata.d.ts +13 -0
- package/lib/WebColumnDescription.d.ts +46 -40
- package/lib/WebColumnGroupDescription.d.ts +4 -4
- package/lib/WebCustomDateRangeDescription.d.ts +7 -0
- package/lib/WebDateRangeValueEventArgsDescription.d.ts +3 -3
- package/lib/WebDefaultMergeStrategyDescription.d.ts +11 -0
- package/lib/WebDefaultMergeStrategyDescriptionMetadata.d.ts +13 -0
- package/lib/WebDefaultTreeGridMergeStrategyDescription.d.ts +10 -0
- package/lib/WebDefaultTreeGridMergeStrategyDescriptionMetadata.d.ts +13 -0
- package/lib/WebGridBaseDirectiveDescription_combined.d.ts +119 -112
- package/lib/WebGridDescription.d.ts +18 -18
- package/lib/WebGridMergeStrategyDescription.d.ts +11 -0
- package/lib/WebGridMergeStrategyDescriptionMetadata.d.ts +13 -0
- package/lib/WebGridResourceStringsDescription.d.ts +197 -155
- package/lib/WebHierarchicalGridBaseDirectiveDescription.d.ts +4 -4
- package/lib/WebHierarchicalGridDescription.d.ts +5 -5
- package/lib/WebPivotGridDescription.d.ts +15 -15
- package/lib/WebPositionSettingsDescription.d.ts +7 -4
- package/lib/WebRowIslandDescription.d.ts +125 -118
- package/lib/WebTooltipDescription.d.ts +15 -12
- package/lib/WebTreeGridDescription.d.ts +10 -10
- package/lib/XYChartDescription.d.ts +80 -80
- package/package.json +1 -1
- package/public_api.d.ts +28 -2
|
@@ -4,7 +4,7 @@ https://www.infragistics.com/legal/license/igultimate-la
|
|
|
4
4
|
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
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
6
|
*/
|
|
7
|
-
import { Base, IList_$type, runOn, String_$type, EnumUtil,
|
|
7
|
+
import { Base, IList_$type, runOn, String_$type, EnumUtil, typeCast, Array_$type, fromEnum, delegateRemove, delegateCombine, markType } from "./type";
|
|
8
8
|
import { IDataSourceLocalDataProvider_$type } from "./IDataSourceLocalDataProvider";
|
|
9
9
|
import { IDataSourceSchema_$type } from "./IDataSourceSchema";
|
|
10
10
|
import { DataSourceSchemaPropertyType_$type } from "./DataSourceSchemaPropertyType";
|
|
@@ -17,6 +17,7 @@ import { FastReflectionHelper } from "./FastReflectionHelper";
|
|
|
17
17
|
import { HashSet$1 } from "./HashSet$1";
|
|
18
18
|
import { DataSourceDataProviderSchemaChangedEventArgs } from "./DataSourceDataProviderSchemaChangedEventArgs";
|
|
19
19
|
import { List$1 } from "./List$1";
|
|
20
|
+
import { FastIterationDictionary$2 } from "./FastIterationDictionary$2";
|
|
20
21
|
import { INotifyCollectionChanged_$type } from "./INotifyCollectionChanged";
|
|
21
22
|
import { getAllPropertyNames } from "./componentUtil";
|
|
22
23
|
import { stringStartsWith } from "./string";
|
|
@@ -27,34 +28,35 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
27
28
|
class DataSourceLocalDataProvider extends Base {
|
|
28
29
|
constructor() {
|
|
29
30
|
super();
|
|
31
|
+
this.o = null;
|
|
30
32
|
this.n = null;
|
|
31
|
-
this.m = null;
|
|
32
33
|
this.g = null;
|
|
33
|
-
this.
|
|
34
|
+
this.p = null;
|
|
34
35
|
this.f = 0;
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
36
|
+
this.ac = 5;
|
|
37
|
+
this.ad = 10;
|
|
38
|
+
this.ag = null;
|
|
39
|
+
this.w = new Dictionary$2(String_$type, DataSourceSchemaPropertyType_$type, 0);
|
|
40
|
+
this.aj = null;
|
|
39
41
|
this.schemaChanged = null;
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
+
this.v = new Dictionary$2(String_$type, FastReflectionHelper.$, 0);
|
|
43
|
+
this.x = new HashSet$1(String_$type, 0);
|
|
42
44
|
this.j = null;
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
45
|
+
this.aa = null;
|
|
46
|
+
this.s = false;
|
|
45
47
|
this.i = null;
|
|
46
48
|
this.h = null;
|
|
47
|
-
this.
|
|
49
|
+
this.r = false;
|
|
48
50
|
this.a = null;
|
|
49
|
-
this.
|
|
51
|
+
this.q = false;
|
|
50
52
|
this.b = null;
|
|
53
|
+
this.o = new SortDescriptionCollection();
|
|
54
|
+
this.o.n(runOn(this, this.a3));
|
|
51
55
|
this.n = new SortDescriptionCollection();
|
|
52
|
-
this.
|
|
53
|
-
this.m = new SortDescriptionCollection();
|
|
54
|
-
this.o = new SummaryDescriptionCollection();
|
|
56
|
+
this.p = new SummaryDescriptionCollection();
|
|
55
57
|
this.g = new FilterExpressionCollection();
|
|
56
58
|
}
|
|
57
|
-
|
|
59
|
+
a3(a, b) {
|
|
58
60
|
this.queueAutoRefresh();
|
|
59
61
|
}
|
|
60
62
|
clone() {
|
|
@@ -79,32 +81,52 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
79
81
|
}
|
|
80
82
|
return a;
|
|
81
83
|
}
|
|
84
|
+
get maxDepth() {
|
|
85
|
+
return this.ac;
|
|
86
|
+
}
|
|
87
|
+
set maxDepth(a) {
|
|
88
|
+
let b = a;
|
|
89
|
+
this.ac = a;
|
|
90
|
+
if (b != a) {
|
|
91
|
+
this.az("MaxDepth", b, a);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
get maxIteration() {
|
|
95
|
+
return this.ad;
|
|
96
|
+
}
|
|
97
|
+
set maxIteration(a) {
|
|
98
|
+
let b = a;
|
|
99
|
+
this.ad = a;
|
|
100
|
+
if (b != a) {
|
|
101
|
+
this.az("MaxIteration", b, a);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
82
104
|
get dataSource() {
|
|
83
|
-
return this.
|
|
105
|
+
return this.ag;
|
|
84
106
|
}
|
|
85
107
|
set dataSource(a) {
|
|
86
|
-
let b = this.
|
|
87
|
-
this.
|
|
88
|
-
if (b != this.
|
|
89
|
-
this.
|
|
108
|
+
let b = this.ag;
|
|
109
|
+
this.ag = a;
|
|
110
|
+
if (b != this.ag) {
|
|
111
|
+
this.ax("ItemsSource", b, this.ag);
|
|
90
112
|
}
|
|
91
113
|
}
|
|
92
114
|
get schemaHints() {
|
|
93
|
-
return this.
|
|
115
|
+
return this.aj;
|
|
94
116
|
}
|
|
95
117
|
set schemaHints(a) {
|
|
96
|
-
let b = this.
|
|
97
|
-
this.
|
|
98
|
-
if (b != this.
|
|
99
|
-
this.
|
|
118
|
+
let b = this.aj;
|
|
119
|
+
this.aj = a;
|
|
120
|
+
if (b != this.aj) {
|
|
121
|
+
this.ax("SchemaHints", b, this.aj);
|
|
100
122
|
}
|
|
101
123
|
}
|
|
102
|
-
|
|
103
|
-
if (this.
|
|
124
|
+
ay() {
|
|
125
|
+
if (this.aj == null) {
|
|
104
126
|
return;
|
|
105
127
|
}
|
|
106
|
-
this.
|
|
107
|
-
let a = this.
|
|
128
|
+
this.w.clear();
|
|
129
|
+
let a = this.aj.split(',');
|
|
108
130
|
for (let b = 0; b < a.length; b++) {
|
|
109
131
|
let c = a[b].trim().split(':');
|
|
110
132
|
if (c.length != 2) {
|
|
@@ -112,7 +134,7 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
112
134
|
}
|
|
113
135
|
let d = c[0];
|
|
114
136
|
let e = this.d(c[1]);
|
|
115
|
-
this.
|
|
137
|
+
this.w.addItem(d, e);
|
|
116
138
|
}
|
|
117
139
|
}
|
|
118
140
|
d(a) {
|
|
@@ -123,20 +145,20 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
123
145
|
return 11;
|
|
124
146
|
}
|
|
125
147
|
getItemAtIndex(a) {
|
|
126
|
-
if (this.
|
|
148
|
+
if (this.aa == null) {
|
|
127
149
|
return null;
|
|
128
150
|
}
|
|
129
|
-
if (this.
|
|
130
|
-
return this.
|
|
151
|
+
if (this.s) {
|
|
152
|
+
return this.aa[a];
|
|
131
153
|
}
|
|
132
|
-
return this.
|
|
154
|
+
return this.aa.item(a);
|
|
133
155
|
}
|
|
134
156
|
getItemValue(a, b) {
|
|
135
|
-
this.
|
|
157
|
+
this.as();
|
|
136
158
|
let c;
|
|
137
|
-
let d = this.
|
|
159
|
+
let d = this.v.tryGetValue(b, c);
|
|
138
160
|
c = d.p1;
|
|
139
|
-
if (c == null && !this.
|
|
161
|
+
if (c == null && !this.x.contains(b)) {
|
|
140
162
|
let e = b.split('.');
|
|
141
163
|
let f = a;
|
|
142
164
|
let g = true;
|
|
@@ -149,10 +171,10 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
149
171
|
}
|
|
150
172
|
if (g) {
|
|
151
173
|
c = new FastReflectionHelper(false, b);
|
|
152
|
-
this.
|
|
174
|
+
this.v.addItem(b, c);
|
|
153
175
|
}
|
|
154
176
|
else {
|
|
155
|
-
this.
|
|
177
|
+
this.x.add_1(b);
|
|
156
178
|
}
|
|
157
179
|
}
|
|
158
180
|
if (c == null) {
|
|
@@ -165,9 +187,9 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
165
187
|
return val_;
|
|
166
188
|
}
|
|
167
189
|
setItemValue(a, b, c) {
|
|
168
|
-
this.
|
|
190
|
+
this.as();
|
|
169
191
|
let d;
|
|
170
|
-
let e = this.
|
|
192
|
+
let e = this.v.tryGetValue(b, d);
|
|
171
193
|
d = e.p1;
|
|
172
194
|
if (d == null) {
|
|
173
195
|
return;
|
|
@@ -175,30 +197,30 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
175
197
|
d.setPropertyValue(a, c);
|
|
176
198
|
}
|
|
177
199
|
removeItem(a) {
|
|
178
|
-
if (this.
|
|
179
|
-
let b = this.
|
|
180
|
-
if (this.
|
|
181
|
-
this.
|
|
200
|
+
if (this.aa != null) {
|
|
201
|
+
let b = this.aa.indexOf(a);
|
|
202
|
+
if (this.s) {
|
|
203
|
+
this.aa.splice(b, 1);
|
|
182
204
|
}
|
|
183
205
|
else {
|
|
184
|
-
this.
|
|
206
|
+
this.aa.removeAt(b);
|
|
185
207
|
}
|
|
186
208
|
this.notifyRemoveItem(b, a);
|
|
187
209
|
}
|
|
188
210
|
}
|
|
189
211
|
addItem(a) {
|
|
190
|
-
if (this.
|
|
212
|
+
if (this.aa != null) {
|
|
191
213
|
let b = this.actualCount;
|
|
192
|
-
if (this.
|
|
193
|
-
this.
|
|
214
|
+
if (this.s) {
|
|
215
|
+
this.aa.splice(b, 0, a);
|
|
194
216
|
}
|
|
195
217
|
else {
|
|
196
|
-
this.
|
|
218
|
+
this.aa.insert(b, a);
|
|
197
219
|
}
|
|
198
220
|
this.notifyInsertItem(this.actualCount - 1, a);
|
|
199
221
|
}
|
|
200
222
|
}
|
|
201
|
-
|
|
223
|
+
as() {
|
|
202
224
|
if (this.j == null) {
|
|
203
225
|
this.j = this.actualSchema;
|
|
204
226
|
if (this.schemaChanged != null) {
|
|
@@ -207,36 +229,191 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
207
229
|
}
|
|
208
230
|
}
|
|
209
231
|
get actualCount() {
|
|
210
|
-
if (this.
|
|
232
|
+
if (this.aa == null) {
|
|
211
233
|
return 0;
|
|
212
234
|
}
|
|
213
|
-
if (this.
|
|
214
|
-
return (this.
|
|
235
|
+
if (this.s) {
|
|
236
|
+
return (this.aa.length);
|
|
215
237
|
}
|
|
216
|
-
return this.
|
|
238
|
+
return this.aa.count;
|
|
217
239
|
}
|
|
218
240
|
get actualSchema() {
|
|
219
241
|
if (this.j == null) {
|
|
220
|
-
if (this.
|
|
242
|
+
if (this.aa == null) {
|
|
221
243
|
this.j = new DefaultDataSourceSchema([], [], null, null, []);
|
|
222
244
|
}
|
|
223
245
|
else {
|
|
224
|
-
this.j = this.
|
|
246
|
+
this.j = this.m();
|
|
225
247
|
}
|
|
226
248
|
}
|
|
227
249
|
return this.j;
|
|
228
250
|
}
|
|
229
|
-
|
|
230
|
-
|
|
251
|
+
m() {
|
|
252
|
+
this.v.clear();
|
|
253
|
+
this.x.clear();
|
|
254
|
+
return this.k(this.aa, this.maxIteration, this.maxDepth, null, 0);
|
|
255
|
+
}
|
|
256
|
+
k(a, b, c, d, e) {
|
|
257
|
+
if (e >= c) {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
231
260
|
if (a == null) {
|
|
261
|
+
if (e == 0) {
|
|
262
|
+
return new DefaultDataSourceSchema([], [], null, null, []);
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
return null;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
let f = 0;
|
|
269
|
+
let g = typeCast(Array_$type, a) !== null;
|
|
270
|
+
if (g) {
|
|
271
|
+
f = (a.length);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
f = a.count;
|
|
275
|
+
}
|
|
276
|
+
if (f == 0) {
|
|
232
277
|
return new DefaultDataSourceSchema([], [], null, null, []);
|
|
233
278
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
279
|
+
let h = null;
|
|
280
|
+
let i = new FastIterationDictionary$2(String_$type, DataSourceSchemaPropertyType_$type, 0);
|
|
281
|
+
let j = new HashSet$1(String_$type, 0);
|
|
282
|
+
let k = 0;
|
|
283
|
+
let l = new List$1(List$1.$.specialize(String_$type), 0);
|
|
284
|
+
let m = new List$1(IDataSourceSchema_$type, 0);
|
|
285
|
+
if (this.schemaIncludedProperties == null || this.schemaIncludedProperties.length > 0) {
|
|
286
|
+
this.at(a, b, (n, o) => {
|
|
287
|
+
if (n == null) {
|
|
288
|
+
return true;
|
|
289
|
+
}
|
|
290
|
+
if ((typeof n === 'function')) {
|
|
291
|
+
return true;
|
|
292
|
+
}
|
|
293
|
+
if ((Array.isArray(n))) {
|
|
294
|
+
return true;
|
|
295
|
+
}
|
|
296
|
+
let check_ = n;
|
|
297
|
+
if ((check_ instanceof HTMLElement)) {
|
|
298
|
+
return true;
|
|
299
|
+
}
|
|
300
|
+
if ((check_ instanceof Date)) {
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
if ((typeof check_ === 'number')) {
|
|
304
|
+
return false;
|
|
305
|
+
}
|
|
306
|
+
if ((typeof check_ === 'string')) {
|
|
307
|
+
return false;
|
|
308
|
+
}
|
|
309
|
+
if ((typeof check_ === 'boolean')) {
|
|
310
|
+
return false;
|
|
311
|
+
}
|
|
312
|
+
if ((typeof check_ === 'bigint')) {
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
if (h == null) {
|
|
316
|
+
h = this.y(n);
|
|
317
|
+
}
|
|
318
|
+
for (let p = 0; p < h.count; p++) {
|
|
319
|
+
let q = h._inner[p];
|
|
320
|
+
if (j.contains(q)) {
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
let r = d == null ? q : d + "." + q;
|
|
324
|
+
if (this.schemaIncludedProperties != null && this.schemaIncludedProperties.length > 0) {
|
|
325
|
+
let s = false;
|
|
326
|
+
for (let t = 0; t < this.schemaIncludedProperties.length; t++) {
|
|
327
|
+
if (this.schemaIncludedProperties[t] == r) {
|
|
328
|
+
s = true;
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
if (!s) {
|
|
333
|
+
k++;
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
if (!this.t(check_, q)) {
|
|
338
|
+
k++;
|
|
339
|
+
continue;
|
|
340
|
+
}
|
|
341
|
+
if (i.d(q)) {
|
|
342
|
+
i.s(q, 11);
|
|
343
|
+
this.v.addItem(r, new FastReflectionHelper(false, r));
|
|
344
|
+
}
|
|
345
|
+
if (this.w.containsKey(r)) {
|
|
346
|
+
i.item(q, this.w.item(r));
|
|
347
|
+
this.w.removeItem(r);
|
|
348
|
+
j.add_1(q);
|
|
349
|
+
k++;
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
let u = this.ai(n, q);
|
|
353
|
+
if (u != null) {
|
|
354
|
+
i.item(q, DataSourceLocalDataProvider.e(u));
|
|
355
|
+
j.add_1(q);
|
|
356
|
+
k++;
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
l.add(this.z(n, q));
|
|
363
|
+
if (i.item(q) == 11) {
|
|
364
|
+
let v = this.ai(n, q);
|
|
365
|
+
if (typeCast(Array_$type, v) !== null) {
|
|
366
|
+
m.add(this.k(v, b, c, r, e + 1));
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
let w = new List$1(Base.$, 0);
|
|
370
|
+
w.add1(v);
|
|
371
|
+
m.add(this.k(w, 1, c, r, e + 1));
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
m.add(null);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return !(k == h.count);
|
|
379
|
+
});
|
|
380
|
+
for (let n of fromEnum(this.w)) {
|
|
381
|
+
let o = n.key.split('.');
|
|
382
|
+
for (let p = 0; p < o.length; p++) {
|
|
383
|
+
if (j.contains(o[p])) {
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
i.s(o[p], p == o.length - 1 ? n.value : 11);
|
|
388
|
+
j.add_1(o[p]);
|
|
389
|
+
l.add(new List$1(String_$type, 0));
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
return new DefaultDataSourceSchema([], [], null, null, []);
|
|
396
|
+
}
|
|
397
|
+
let q = new Array(l.count);
|
|
398
|
+
for (let r = 0; r < l.count; r++) {
|
|
399
|
+
q[r] = l._inner[r].toArray();
|
|
400
|
+
}
|
|
401
|
+
return new DefaultDataSourceSchema(i.o.toArray(), i.q.toArray(), null, q, m.toArray());
|
|
402
|
+
}
|
|
403
|
+
t(a, b) {
|
|
404
|
+
if (stringStartsWith(b, "_")) {
|
|
405
|
+
return false;
|
|
406
|
+
}
|
|
407
|
+
if (b == "$hashCode" || b == "$type") {
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
410
|
+
if ((typeof a[b] === 'function')) {
|
|
411
|
+
return false;
|
|
412
|
+
}
|
|
413
|
+
return true;
|
|
237
414
|
}
|
|
238
|
-
|
|
239
|
-
if (c >= this.
|
|
415
|
+
l(a, b, c) {
|
|
416
|
+
if (c >= this.maxDepth) {
|
|
240
417
|
return null;
|
|
241
418
|
}
|
|
242
419
|
if (a == null) {
|
|
@@ -256,7 +433,7 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
256
433
|
let e = new HashSet$1(String_$type, 0);
|
|
257
434
|
let f = new List$1(DataSourceSchemaPropertyType_$type, 0);
|
|
258
435
|
let g = new List$1(List$1.$.specialize(String_$type), 0);
|
|
259
|
-
let h = this.
|
|
436
|
+
let h = this.y(a);
|
|
260
437
|
let i = new List$1(IDataSourceSchema_$type, 0);
|
|
261
438
|
if (this.schemaIncludedProperties == null || this.schemaIncludedProperties.length > 0) {
|
|
262
439
|
for (let j = 0; j < h.count; j++) {
|
|
@@ -289,24 +466,24 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
289
466
|
let n = b == null ? k : b + "." + k;
|
|
290
467
|
d.add(k);
|
|
291
468
|
e.add_1(k);
|
|
292
|
-
this.
|
|
293
|
-
if (this.
|
|
294
|
-
f.add(this.
|
|
295
|
-
this.
|
|
469
|
+
this.v.addItem(n, new FastReflectionHelper(false, n));
|
|
470
|
+
if (this.w.containsKey(n)) {
|
|
471
|
+
f.add(this.w.item(n));
|
|
472
|
+
this.w.removeItem(n);
|
|
296
473
|
}
|
|
297
474
|
else {
|
|
298
475
|
f.add(this.c(a, k));
|
|
299
476
|
}
|
|
300
|
-
g.add(this.
|
|
477
|
+
g.add(this.z(a, k));
|
|
301
478
|
if (f._inner[f.count - 1] == 11) {
|
|
302
|
-
i.add(this.
|
|
479
|
+
i.add(this.l(a[k], n, c + 1));
|
|
303
480
|
}
|
|
304
481
|
else {
|
|
305
482
|
i.add(null);
|
|
306
483
|
}
|
|
307
484
|
}
|
|
308
485
|
}
|
|
309
|
-
for (let o of fromEnum(this.
|
|
486
|
+
for (let o of fromEnum(this.w)) {
|
|
310
487
|
let p = o.key.split('.');
|
|
311
488
|
for (let q = 0; q < p.length; q++) {
|
|
312
489
|
if (e.contains(p[q])) {
|
|
@@ -337,7 +514,7 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
337
514
|
}
|
|
338
515
|
}
|
|
339
516
|
if (c) {
|
|
340
|
-
let e = this.
|
|
517
|
+
let e = this.ah();
|
|
341
518
|
let f = this.getItemValue(e, a);
|
|
342
519
|
if (f == null) {
|
|
343
520
|
return 11;
|
|
@@ -349,7 +526,7 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
349
526
|
return 11;
|
|
350
527
|
}
|
|
351
528
|
else {
|
|
352
|
-
let g = this.
|
|
529
|
+
let g = this.ah();
|
|
353
530
|
let h = this.getItemValue(g, a);
|
|
354
531
|
if (h == null) {
|
|
355
532
|
return 11;
|
|
@@ -365,7 +542,7 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
365
542
|
this.schemaChanged(this, new DataSourceDataProviderSchemaChangedEventArgs(this.j, this.actualCount));
|
|
366
543
|
}
|
|
367
544
|
}
|
|
368
|
-
|
|
545
|
+
y(schemaItem_) {
|
|
369
546
|
let a = new HashSet$1(String_$type, 0);
|
|
370
547
|
let propertyKey_ = null;
|
|
371
548
|
let ret_ = new List$1(String_$type, 0);
|
|
@@ -392,22 +569,22 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
392
569
|
}
|
|
393
570
|
return ret_;
|
|
394
571
|
}
|
|
395
|
-
|
|
572
|
+
av(a, item_, propertyName_, b) {
|
|
396
573
|
if ((item_.__dataIntents !== undefined)) {
|
|
397
574
|
if ((item_.__dataIntents[propertyName_] !== undefined)) {
|
|
398
|
-
this.
|
|
575
|
+
this.au(a, item_, propertyName_);
|
|
399
576
|
}
|
|
400
577
|
let selfName_ = "self." + propertyName_;
|
|
401
578
|
if (!b && (item_.__dataIntents[selfName_] !== undefined)) {
|
|
402
|
-
this.
|
|
579
|
+
this.au(a, item_, selfName_);
|
|
403
580
|
}
|
|
404
581
|
let selfName2_ = "self_" + propertyName_;
|
|
405
582
|
if (!b && (item_.__dataIntents[selfName2_] !== undefined)) {
|
|
406
|
-
this.
|
|
583
|
+
this.au(a, item_, selfName2_);
|
|
407
584
|
}
|
|
408
585
|
}
|
|
409
586
|
}
|
|
410
|
-
|
|
587
|
+
au(a, item_, propertyName_) {
|
|
411
588
|
let val_ = item_.__dataIntents[propertyName_];
|
|
412
589
|
let b = typeCast(Array_$type, val_) !== null;
|
|
413
590
|
if (!b) {
|
|
@@ -422,14 +599,20 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
422
599
|
}
|
|
423
600
|
}
|
|
424
601
|
}
|
|
425
|
-
|
|
602
|
+
z(item_, propertyName_) {
|
|
426
603
|
let a = new List$1(String_$type, 0);
|
|
427
|
-
let list_ = this.
|
|
604
|
+
let list_ = this.aa;
|
|
428
605
|
let dataIntents_ = null;
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
606
|
+
this.av(a, item_, propertyName_, false);
|
|
607
|
+
this.av(a, list_, propertyName_, true);
|
|
431
608
|
return a;
|
|
432
609
|
}
|
|
610
|
+
ai(item_, propertyName_) {
|
|
611
|
+
if ((item_[propertyName_] == undefined)) {
|
|
612
|
+
return null;
|
|
613
|
+
}
|
|
614
|
+
return item_[propertyName_];
|
|
615
|
+
}
|
|
433
616
|
c(item_, propertyName_) {
|
|
434
617
|
if (item_ == null) {
|
|
435
618
|
return 11;
|
|
@@ -460,21 +643,21 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
460
643
|
}
|
|
461
644
|
return 11;
|
|
462
645
|
}
|
|
463
|
-
|
|
646
|
+
ah() {
|
|
464
647
|
let a = 0;
|
|
465
|
-
if (this.
|
|
466
|
-
a = (this.
|
|
648
|
+
if (this.s) {
|
|
649
|
+
a = (this.aa.length);
|
|
467
650
|
}
|
|
468
651
|
else {
|
|
469
|
-
a = this.
|
|
652
|
+
a = this.aa.count;
|
|
470
653
|
}
|
|
471
654
|
for (let b = 0; b < a; b++) {
|
|
472
655
|
let c;
|
|
473
|
-
if (this.
|
|
474
|
-
c = this.
|
|
656
|
+
if (this.s) {
|
|
657
|
+
c = this.aa[b];
|
|
475
658
|
}
|
|
476
659
|
else {
|
|
477
|
-
c = this.
|
|
660
|
+
c = this.aa.item(b);
|
|
478
661
|
}
|
|
479
662
|
if (c != null) {
|
|
480
663
|
return c;
|
|
@@ -482,47 +665,72 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
482
665
|
}
|
|
483
666
|
return null;
|
|
484
667
|
}
|
|
485
|
-
|
|
486
|
-
|
|
668
|
+
at(a, b, c) {
|
|
669
|
+
let d = typeCast(Array_$type, a) !== null;
|
|
670
|
+
let e = 0;
|
|
671
|
+
if (d) {
|
|
672
|
+
e = (a.length);
|
|
673
|
+
}
|
|
674
|
+
else {
|
|
675
|
+
e = a.count;
|
|
676
|
+
}
|
|
677
|
+
if (b > 0) {
|
|
678
|
+
e = Math.min(e, b);
|
|
679
|
+
}
|
|
680
|
+
for (let f = 0; f < e; f++) {
|
|
681
|
+
let g;
|
|
682
|
+
if (d) {
|
|
683
|
+
g = a[f];
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
g = a.item(f);
|
|
687
|
+
}
|
|
688
|
+
if (!c(g, f)) {
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
ax(a, b, c) {
|
|
694
|
+
this.az(a, b, c);
|
|
487
695
|
}
|
|
488
|
-
get
|
|
489
|
-
return this.
|
|
696
|
+
get ab() {
|
|
697
|
+
return this.aa;
|
|
490
698
|
}
|
|
491
|
-
|
|
699
|
+
az(a, b, c) {
|
|
492
700
|
switch (a) {
|
|
493
701
|
case "ItemsSource":
|
|
494
702
|
this.j = null;
|
|
495
703
|
if (b != null) {
|
|
496
704
|
if (typeCast(INotifyCollectionChanged_$type, b) !== null) {
|
|
497
705
|
let d = typeCast(INotifyCollectionChanged_$type, b);
|
|
498
|
-
d.collectionChanged = delegateRemove(d.collectionChanged, runOn(this, this.
|
|
706
|
+
d.collectionChanged = delegateRemove(d.collectionChanged, runOn(this, this.aw));
|
|
499
707
|
}
|
|
500
708
|
}
|
|
501
709
|
if (this.dataSource != null) {
|
|
502
|
-
this.
|
|
710
|
+
this.s = false;
|
|
503
711
|
if (typeCast(Array_$type, this.dataSource) !== null) {
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
712
|
+
this.s = true;
|
|
713
|
+
this.aa = this.dataSource;
|
|
506
714
|
}
|
|
507
715
|
else if (typeCast(IList_$type, this.dataSource) !== null) {
|
|
508
|
-
this.
|
|
716
|
+
this.aa = this.dataSource;
|
|
509
717
|
}
|
|
510
|
-
if (!this.
|
|
718
|
+
if (!this.s && this.aa == null) {
|
|
511
719
|
let source_ = this.dataSource;
|
|
512
|
-
this.
|
|
513
|
-
if (this.
|
|
514
|
-
this.
|
|
720
|
+
this.s = (Array.isArray(source_));
|
|
721
|
+
if (this.s) {
|
|
722
|
+
this.aa = this.dataSource;
|
|
515
723
|
}
|
|
516
724
|
}
|
|
517
725
|
if (typeCast(INotifyCollectionChanged_$type, this.dataSource) !== null) {
|
|
518
726
|
let e = typeCast(INotifyCollectionChanged_$type, this.dataSource);
|
|
519
|
-
e.collectionChanged = delegateCombine(e.collectionChanged, runOn(this, this.
|
|
727
|
+
e.collectionChanged = delegateCombine(e.collectionChanged, runOn(this, this.aw));
|
|
520
728
|
}
|
|
521
729
|
}
|
|
522
730
|
else {
|
|
523
|
-
this.
|
|
731
|
+
this.aa = null;
|
|
524
732
|
}
|
|
525
|
-
this.
|
|
733
|
+
this.as();
|
|
526
734
|
break;
|
|
527
735
|
case "DeferAutoRefresh":
|
|
528
736
|
if (!c) {
|
|
@@ -531,12 +739,17 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
531
739
|
break;
|
|
532
740
|
case "SchemaHints":
|
|
533
741
|
this.j = null;
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
742
|
+
this.ay();
|
|
743
|
+
this.as();
|
|
744
|
+
break;
|
|
745
|
+
case "MaxDepth":
|
|
746
|
+
case "MaxIteration":
|
|
747
|
+
this.j = null;
|
|
748
|
+
this.as();
|
|
536
749
|
break;
|
|
537
750
|
}
|
|
538
751
|
}
|
|
539
|
-
|
|
752
|
+
aw(a, b) {
|
|
540
753
|
switch (b.action) {
|
|
541
754
|
case 0:
|
|
542
755
|
if (b.newItems != null) {
|
|
@@ -564,16 +777,16 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
564
777
|
set executionContext(a) {
|
|
565
778
|
this.i = a;
|
|
566
779
|
}
|
|
567
|
-
get
|
|
780
|
+
get u() {
|
|
568
781
|
return false;
|
|
569
782
|
}
|
|
570
783
|
notifySetItem(a, b, c) {
|
|
571
|
-
if (this.
|
|
572
|
-
if (this.
|
|
573
|
-
this.
|
|
784
|
+
if (this.u) {
|
|
785
|
+
if (this.s) {
|
|
786
|
+
this.aa[a] = c;
|
|
574
787
|
}
|
|
575
788
|
else {
|
|
576
|
-
this.
|
|
789
|
+
this.aa.item(a, c);
|
|
577
790
|
}
|
|
578
791
|
}
|
|
579
792
|
if (this.updateNotifier != null) {
|
|
@@ -581,12 +794,12 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
581
794
|
}
|
|
582
795
|
}
|
|
583
796
|
notifyClearItems() {
|
|
584
|
-
if (this.
|
|
585
|
-
if (this.
|
|
586
|
-
this.
|
|
797
|
+
if (this.u) {
|
|
798
|
+
if (this.s) {
|
|
799
|
+
this.aa.length = 0;
|
|
587
800
|
}
|
|
588
801
|
else {
|
|
589
|
-
this.
|
|
802
|
+
this.aa.clear();
|
|
590
803
|
}
|
|
591
804
|
}
|
|
592
805
|
if (this.updateNotifier != null) {
|
|
@@ -594,36 +807,36 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
594
807
|
}
|
|
595
808
|
}
|
|
596
809
|
notifyInsertItem(a, b) {
|
|
597
|
-
if (this.
|
|
598
|
-
if (this.
|
|
599
|
-
this.
|
|
810
|
+
if (this.u) {
|
|
811
|
+
if (this.s) {
|
|
812
|
+
this.aa.splice(a, 0, b);
|
|
600
813
|
}
|
|
601
814
|
else {
|
|
602
|
-
this.
|
|
815
|
+
this.aa.insert(a, b);
|
|
603
816
|
}
|
|
604
817
|
}
|
|
605
818
|
let c = 0;
|
|
606
|
-
if (this.
|
|
607
|
-
c = (this.
|
|
819
|
+
if (this.s) {
|
|
820
|
+
c = (this.aa.length);
|
|
608
821
|
}
|
|
609
822
|
else {
|
|
610
|
-
c = this.
|
|
823
|
+
c = this.aa.count;
|
|
611
824
|
}
|
|
612
|
-
if (this.
|
|
825
|
+
if (this.aa != null && c == 1 && (this.actualSchema == null || this.actualSchema.propertyNames.length == 0)) {
|
|
613
826
|
this.j = null;
|
|
614
|
-
this.
|
|
827
|
+
this.as();
|
|
615
828
|
}
|
|
616
829
|
if (this.updateNotifier != null) {
|
|
617
830
|
this.updateNotifier.notifyInsertItem(a, b);
|
|
618
831
|
}
|
|
619
832
|
}
|
|
620
833
|
notifyRemoveItem(a, b) {
|
|
621
|
-
if (this.
|
|
622
|
-
if (this.
|
|
623
|
-
this.
|
|
834
|
+
if (this.u) {
|
|
835
|
+
if (this.s) {
|
|
836
|
+
this.aa.splice(a, 1);
|
|
624
837
|
}
|
|
625
838
|
else {
|
|
626
|
-
this.
|
|
839
|
+
this.aa.remove(a);
|
|
627
840
|
}
|
|
628
841
|
}
|
|
629
842
|
if (this.updateNotifier != null) {
|
|
@@ -637,13 +850,13 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
637
850
|
this.h = a;
|
|
638
851
|
}
|
|
639
852
|
get deferAutoRefresh() {
|
|
640
|
-
return this.
|
|
853
|
+
return this.r;
|
|
641
854
|
}
|
|
642
855
|
set deferAutoRefresh(a) {
|
|
643
|
-
let b = this.
|
|
644
|
-
this.
|
|
645
|
-
if (this.
|
|
646
|
-
this.
|
|
856
|
+
let b = this.r;
|
|
857
|
+
this.r = a;
|
|
858
|
+
if (this.r != b) {
|
|
859
|
+
this.ax("DeferAutoRefresh", b, this.r);
|
|
647
860
|
}
|
|
648
861
|
}
|
|
649
862
|
get isSortingSupported() {
|
|
@@ -653,13 +866,13 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
653
866
|
return false;
|
|
654
867
|
}
|
|
655
868
|
get sortDescriptions() {
|
|
656
|
-
return this.
|
|
869
|
+
return this.o;
|
|
657
870
|
}
|
|
658
871
|
get filterExpressions() {
|
|
659
872
|
return this.g;
|
|
660
873
|
}
|
|
661
874
|
get summaryDescriptions() {
|
|
662
|
-
return this.
|
|
875
|
+
return this.p;
|
|
663
876
|
}
|
|
664
877
|
get summaryScope() {
|
|
665
878
|
return this.f;
|
|
@@ -689,47 +902,47 @@ export let DataSourceLocalDataProvider = /*@__PURE__*/ (() => {
|
|
|
689
902
|
return false;
|
|
690
903
|
}
|
|
691
904
|
get groupDescriptions() {
|
|
692
|
-
return this.
|
|
905
|
+
return this.n;
|
|
693
906
|
}
|
|
694
907
|
queueAutoRefresh() {
|
|
695
908
|
if (this.deferAutoRefresh) {
|
|
696
909
|
return;
|
|
697
910
|
}
|
|
698
|
-
if (this.
|
|
911
|
+
if (this.q) {
|
|
699
912
|
return;
|
|
700
913
|
}
|
|
701
914
|
if (this.executionContext != null) {
|
|
702
|
-
this.
|
|
703
|
-
this.executionContext.enqueueAction(runOn(this, this.
|
|
915
|
+
this.q = true;
|
|
916
|
+
this.executionContext.enqueueAction(runOn(this, this.ar));
|
|
704
917
|
}
|
|
705
918
|
}
|
|
706
|
-
|
|
919
|
+
ar() {
|
|
707
920
|
if (this.deferAutoRefresh) {
|
|
708
|
-
this.
|
|
921
|
+
this.q = false;
|
|
709
922
|
return;
|
|
710
923
|
}
|
|
711
|
-
if (!this.
|
|
924
|
+
if (!this.q) {
|
|
712
925
|
return;
|
|
713
926
|
}
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
927
|
+
this.q = false;
|
|
928
|
+
this.a0();
|
|
716
929
|
}
|
|
717
|
-
|
|
718
|
-
this.
|
|
930
|
+
a0() {
|
|
931
|
+
this.a1();
|
|
719
932
|
}
|
|
720
|
-
|
|
933
|
+
a1() {
|
|
721
934
|
}
|
|
722
935
|
flushAutoRefresh() {
|
|
723
|
-
this.
|
|
936
|
+
this.ar();
|
|
724
937
|
}
|
|
725
938
|
refresh() {
|
|
726
|
-
this.
|
|
939
|
+
this.a0();
|
|
727
940
|
}
|
|
728
941
|
indexOfItem(a) {
|
|
729
|
-
if (this.
|
|
942
|
+
if (this.aa == null) {
|
|
730
943
|
return -1;
|
|
731
944
|
}
|
|
732
|
-
return this.
|
|
945
|
+
return this.aa.indexOf(a);
|
|
733
946
|
}
|
|
734
947
|
indexOfKey(a) {
|
|
735
948
|
return -1;
|