@openui5/sap.ui.mdc 1.93.3 → 1.96.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/.reuse/dep5 +6 -11
- package/THIRDPARTY.txt +10 -16
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +236 -334
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -1
- package/src/sap/ui/mdc/Chart.js +150 -22
- package/src/sap/ui/mdc/ChartDelegateNew.js +15 -0
- package/src/sap/ui/mdc/ChartNew.js +107 -66
- package/src/sap/ui/mdc/Control.js +4 -3
- package/src/sap/ui/mdc/Element.js +5 -4
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +1 -10
- package/src/sap/ui/mdc/FilterField.js +28 -4
- package/src/sap/ui/mdc/Link.js +2 -2
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +160 -79
- package/src/sap/ui/mdc/TableDelegate.js +20 -3
- package/src/sap/ui/mdc/ValueHelp.js +1474 -0
- package/src/sap/ui/mdc/ValueHelpDelegate.js +147 -0
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +49 -104
- package/src/sap/ui/mdc/chart/DimensionItem.js +3 -3
- package/src/sap/ui/mdc/chart/Item.js +2 -3
- package/src/sap/ui/mdc/chart/MeasureItem.js +2 -2
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +21 -2
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +237 -225
- package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +14 -10
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +12 -10
- package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -1
- package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +2 -2
- package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +13 -7
- package/src/sap/ui/mdc/condition/Operator.js +4 -4
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +43 -0
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +91 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +20 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +31 -0
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +5 -0
- package/src/sap/ui/mdc/enum/ContentMode.js +25 -4
- package/src/sap/ui/mdc/enum/SelectType.js +43 -0
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +19 -4
- package/src/sap/ui/mdc/field/ConditionsType.js +5 -4
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +38 -14
- package/src/sap/ui/mdc/field/FieldBase.js +92 -41
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +9 -2
- package/src/sap/ui/mdc/field/FieldHelpBase.js +64 -4
- package/src/sap/ui/mdc/field/FieldInfoBase.js +9 -1
- package/src/sap/ui/mdc/field/FieldInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +7 -1
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.js +3 -3
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/OutParameter.js +1 -1
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/BooleanContent.js +15 -3
- package/src/sap/ui/mdc/field/content/ContentFactory.js +16 -8
- package/src/sap/ui/mdc/field/content/DefaultContent.js +64 -23
- package/src/sap/ui/mdc/field/content/LinkContent.js +6 -0
- package/src/sap/ui/mdc/field/content/SearchContent.js +21 -3
- package/src/sap/ui/mdc/field/content/UnitContent.js +2 -2
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +105 -44
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +52 -0
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +10 -51
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +22 -0
- package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +19 -0
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +57 -46
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +203 -197
- package/src/sap/ui/mdc/library.js +588 -8
- package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
- package/src/sap/ui/mdc/link/Factory.js +1 -1
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +1 -1
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
- package/src/sap/ui/mdc/link/SelectionDialog.js +2 -2
- package/src/sap/ui/mdc/link/SelectionDialogItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/messagebundle.properties +31 -5
- package/src/sap/ui/mdc/messagebundle_ar.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_bg.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ca.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_cs.properties +12 -5
- package/src/sap/ui/mdc/messagebundle_cy.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_da.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_de.properties +12 -5
- package/src/sap/ui/mdc/messagebundle_el.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_en.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +11 -3
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +19 -3
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +35 -28
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_et.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_fi.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_fr.properties +22 -15
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_hi.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_hu.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_id.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_it.properties +33 -26
- package/src/sap/ui/mdc/messagebundle_iw.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ja.properties +13 -6
- package/src/sap/ui/mdc/messagebundle_kk.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ko.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_lt.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_lv.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ms.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_nl.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_no.properties +17 -10
- package/src/sap/ui/mdc/messagebundle_pl.properties +14 -7
- package/src/sap/ui/mdc/messagebundle_pt.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ro.properties +13 -6
- package/src/sap/ui/mdc/messagebundle_ru.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_sh.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_sk.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_sl.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_sv.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_th.properties +16 -9
- package/src/sap/ui/mdc/messagebundle_tr.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_uk.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_vi.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +10 -3
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +3 -3
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +94 -0
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +6 -6
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +37 -10
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +94 -0
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegateNew.js +492 -203
- package/src/sap/ui/mdc/p13n/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +3 -2
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +6 -60
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +22 -24
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +59 -0
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +1 -2
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +17 -8
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1 -2
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +1171 -0
- package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +7 -11
- package/src/sap/ui/mdc/p13n/panels/ListView.js +5 -3
- package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +16 -9
- package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/Wrapper.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +89 -0
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +9 -6
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +33 -4
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +9 -15
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +12 -0
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +5 -12
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +19 -21
- package/src/sap/ui/mdc/table/Column.js +35 -9
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/GridTableType.js +0 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +108 -5
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +19 -3
- package/src/sap/ui/mdc/table/RowSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableTypeBase.js +0 -1
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/themes/base/FilterBar.less +2 -2
- package/src/sap/ui/mdc/themes/base/GroupView.less +2 -2
- package/src/sap/ui/mdc/themes/base/ListView.less +2 -2
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +56 -21
- package/src/sap/ui/mdc/ui/Container.js +2 -2
- package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
- package/src/sap/ui/mdc/util/Common.js +26 -0
- package/src/sap/ui/mdc/util/FilterUtil.js +12 -1
- package/src/sap/ui/mdc/util/IdentifierUtil.js +4 -0
- package/src/sap/ui/mdc/util/PromiseCache.js +266 -0
- package/src/sap/ui/mdc/util/PropertyHelper.js +22 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +498 -0
- package/src/sap/ui/mdc/valuehelp/Popover.js +362 -0
- package/src/sap/ui/mdc/valuehelp/base/Container.js +642 -0
- package/src/sap/ui/mdc/valuehelp/base/Content.js +628 -0
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +139 -0
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +557 -0
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +133 -0
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +318 -0
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +276 -0
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +532 -0
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +638 -0
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +916 -0
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -2
- package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +48 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ActionsBase.js +310 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ActionsViz.js +39 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/AssertionsBase.js +118 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/AssertionsViz.js +137 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ChartNew.js +24 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +289 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +250 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +91 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +137 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +25 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +401 -93
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +4 -1
- package/test/sap/ui/mdc/testutils/opa/p13n/{waitForP13nButtonWithParentAndIcon.js → waitForP13nButtonWithMatchers.js} +5 -18
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +0 -1
|
@@ -34,10 +34,9 @@ sap.ui.define([
|
|
|
34
34
|
*
|
|
35
35
|
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
36
36
|
* @param {object} [mSettings] initial settings for the new control
|
|
37
|
-
* @class
|
|
37
|
+
* @class The GroupView is a list based view to personalize selection and filter values of a Control that allows certain filter capabilities.
|
|
38
38
|
* @extends sap.ui.mdc.p13n.panels.BasePanel
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @constructor The GroupView is a list based view to personalize selection and filter values of a Control that allows certain filter capabilities.
|
|
41
40
|
* @private
|
|
42
41
|
* @experimental
|
|
43
42
|
* @since 1.85
|
|
@@ -145,14 +144,6 @@ sap.ui.define([
|
|
|
145
144
|
GroupView.prototype._createGroupListTemplate = function() {
|
|
146
145
|
var oList = new List({
|
|
147
146
|
keyboardMode: ListKeyboardMode.Navigation,
|
|
148
|
-
updateStarted: function() {
|
|
149
|
-
this._removeFactoryControl();
|
|
150
|
-
}.bind(this),
|
|
151
|
-
updateFinished: function(oEvt) {
|
|
152
|
-
if (this.getShowFactory() && this._aInitializedLists.indexOf(oEvt.getSource().getId()) > -1) {
|
|
153
|
-
this._addFactoryControl(oEvt.getSource());
|
|
154
|
-
}
|
|
155
|
-
}.bind(this),
|
|
156
147
|
selectionChange: function(oBindingInfo) {
|
|
157
148
|
var sPath = oBindingInfo.getParameter("listItem").getBindingContext(this.P13N_MODEL).sPath;
|
|
158
149
|
var oItem = this.getP13nModel().getProperty(sPath);
|
|
@@ -346,6 +337,8 @@ sap.ui.define([
|
|
|
346
337
|
return;
|
|
347
338
|
}
|
|
348
339
|
|
|
340
|
+
var aInitializedGroups = this._removeFactoryControl();
|
|
341
|
+
|
|
349
342
|
this._oListControl.getItems().forEach(function(oOuterItem){
|
|
350
343
|
var oPanel = oOuterItem.getContent()[0];
|
|
351
344
|
var oInnerList = oPanel.getContent()[0];
|
|
@@ -355,6 +348,9 @@ sap.ui.define([
|
|
|
355
348
|
this._togglePanelVisibility(oPanel);
|
|
356
349
|
}
|
|
357
350
|
|
|
351
|
+
if (this.getShowFactory() && aInitializedGroups.indexOf(oInnerList.getId()) > -1) {
|
|
352
|
+
this._addFactoryControl(oInnerList);
|
|
353
|
+
}
|
|
358
354
|
}.bind(this));
|
|
359
355
|
|
|
360
356
|
this._aCurrentFilters = aFilter;
|
|
@@ -418,7 +414,7 @@ sap.ui.define([
|
|
|
418
414
|
){
|
|
419
415
|
this._bInitialized = true;
|
|
420
416
|
var oFirstList = this._oListControl.getItems()[0].getContent()[0].getContent()[0];
|
|
421
|
-
this._addFactoryControl(oFirstList);
|
|
417
|
+
this._addFactoryControl(oFirstList);
|
|
422
418
|
this._addInitializedList(oFirstList);
|
|
423
419
|
}
|
|
424
420
|
};
|
|
@@ -35,10 +35,9 @@ sap.ui.define([
|
|
|
35
35
|
*
|
|
36
36
|
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
37
37
|
* @param {object} [mSettings] initial settings for the new control
|
|
38
|
-
* @class
|
|
38
|
+
* @class The ListView is a list based view to personalize selection and ordering of a Control aggregation.
|
|
39
39
|
* @extends sap.ui.mdc.p13n.panels.BasePanel
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @constructor The ListView is a list based view to personalize selection and ordering of a Control aggregation.
|
|
42
41
|
* @private
|
|
43
42
|
* @experimental
|
|
44
43
|
* @since 1.85
|
|
@@ -245,8 +244,11 @@ sap.ui.define([
|
|
|
245
244
|
};
|
|
246
245
|
|
|
247
246
|
ListView.prototype._removeFactoryControl = function() {
|
|
247
|
+
var aItems = this._oListControl.getItems().filter(function(oItem) {
|
|
248
|
+
return !oItem._bGroupHeader;
|
|
249
|
+
});
|
|
248
250
|
|
|
249
|
-
|
|
251
|
+
aItems.forEach(function(oItem){
|
|
250
252
|
var oFirstCell = oItem.getCells()[0];
|
|
251
253
|
if (oFirstCell.getItems().length > 1){
|
|
252
254
|
oFirstCell.removeItem(oFirstCell.getItems()[1]);
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* @extends sap.ui.mdc.p13n.panels.BasePanel
|
|
19
19
|
*
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.96.1
|
|
22
22
|
*
|
|
23
23
|
* @private
|
|
24
24
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -119,6 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
aItems.forEach(function (oNonPresent, iIndex) {
|
|
120
120
|
aAvailableItems.push(new Item({
|
|
121
121
|
key: oNonPresent.name,
|
|
122
|
+
tooltip: oNonPresent.tooltip,
|
|
122
123
|
text: oNonPresent.label,
|
|
123
124
|
enabled: {
|
|
124
125
|
path: this.P13N_MODEL + ">/items/" + iIndex + "/" + this._getPresenceAttribute(),
|
|
@@ -208,14 +209,16 @@ sap.ui.define([
|
|
|
208
209
|
|
|
209
210
|
QueryPanel.prototype._handleActivated = function(oHoveredItem) {
|
|
210
211
|
var oQueryRow = oHoveredItem.getContent()[0];
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
oButtonBox.
|
|
217
|
-
|
|
218
|
-
|
|
212
|
+
if (oQueryRow) {
|
|
213
|
+
var iItemLength = oQueryRow.getContent().length - 1;
|
|
214
|
+
var oButtonBox = oHoveredItem.getContent()[0].getContent()[iItemLength];
|
|
215
|
+
|
|
216
|
+
//Only add the buttons if 1) an hovered item is provided 2) the buttons are not already there
|
|
217
|
+
if (oHoveredItem && oButtonBox.getItems().length < 2) {
|
|
218
|
+
oButtonBox.insertItem(this._getMoveUpButton(), 0);
|
|
219
|
+
oButtonBox.insertItem(this._getMoveDownButton(), 1);
|
|
220
|
+
this._updateEnableOfMoveButtons(oHoveredItem, false);
|
|
221
|
+
}
|
|
219
222
|
}
|
|
220
223
|
};
|
|
221
224
|
|
|
@@ -277,6 +280,10 @@ sap.ui.define([
|
|
|
277
280
|
this._updatePresence(oRow.getContent()[0].getContent()[0]._key, false);
|
|
278
281
|
if (this._oListControl.getItems().length === 0) {
|
|
279
282
|
this._addQueryRow();
|
|
283
|
+
} else {
|
|
284
|
+
//In case an item has been removed, focus the Select control of the new 'none' row
|
|
285
|
+
var iLastIndex = this._oListControl.getItems().length - 1;
|
|
286
|
+
this._oListControl.getItems()[iLastIndex].getContent()[0].getContent()[0].focus();
|
|
280
287
|
}
|
|
281
288
|
}.bind(this)
|
|
282
289
|
})
|
|
@@ -18,7 +18,6 @@ sap.ui.define([
|
|
|
18
18
|
* The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
19
19
|
* @extends sap.ui.mdc.p13n.panels.BasePanel
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @constructor The API/behaviour is not finalised and hence this control should not be used for productive usage.
|
|
22
21
|
* @private
|
|
23
22
|
* @experimental
|
|
24
23
|
* @since 1.66
|
|
@@ -18,7 +18,6 @@ sap.ui.define([
|
|
|
18
18
|
* The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
19
19
|
* @extends sap.ui.mdc.p13n.panels.BasePanel
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @constructor The API/behaviour is not finalised and hence this control should not be used for productive usage.
|
|
22
21
|
* @private
|
|
23
22
|
* @experimental
|
|
24
23
|
* @since 1.66
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"./BaseController",
|
|
9
|
+
"sap/ui/mdc/p13n/panels/ActionToolbarPanel",
|
|
10
|
+
"sap/m/Column",
|
|
11
|
+
"sap/ui/mdc/p13n/P13nBuilder"
|
|
12
|
+
], function (BaseController, ActionToolbarPanel, Column, P13nBuilder) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
16
|
+
var ActionToolbarController = BaseController.extend("saps.ui.mdc.p13n.subcontroller.ActionToolbarController");
|
|
17
|
+
|
|
18
|
+
ActionToolbarController.prototype.getUISettings = function() {
|
|
19
|
+
return {
|
|
20
|
+
title: oResourceBundle.getText("actiontoolbar.RTA_TITLE")
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
ActionToolbarController.prototype.getAdaptationUI = function(oPropertyHelper){
|
|
25
|
+
|
|
26
|
+
var oSelectionPanel = new ActionToolbarPanel({
|
|
27
|
+
showHeader: true
|
|
28
|
+
});
|
|
29
|
+
oSelectionPanel.setEnableReorder(false);
|
|
30
|
+
oSelectionPanel.setPanelColumns([oResourceBundle.getText("actiontoolbar.RTA_COLUMN_HEADER"), new Column({
|
|
31
|
+
width: "25%",
|
|
32
|
+
hAlign: "Center",
|
|
33
|
+
vAlign: "Middle"
|
|
34
|
+
})]);
|
|
35
|
+
var oAdaptationModel = this._getP13nModel(oPropertyHelper);
|
|
36
|
+
oSelectionPanel.setP13nModel(oAdaptationModel);
|
|
37
|
+
|
|
38
|
+
return Promise.resolve(oSelectionPanel);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
ActionToolbarController.prototype.getDelta = function(mPropertyBag) {
|
|
42
|
+
var aChanges = BaseController.prototype.getDelta.apply(this, arguments);
|
|
43
|
+
aChanges.forEach(function(oChange){
|
|
44
|
+
var sChangeType = oChange.changeSpecificData.changeType;
|
|
45
|
+
if (sChangeType === "hideControl" || sChangeType === "unhideControl") {
|
|
46
|
+
oChange.selectorElement = sap.ui.getCore().byId(oChange.changeSpecificData.content.name);
|
|
47
|
+
delete oChange.changeSpecificData.content;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return aChanges;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Initialized the inner model for the Personalization.
|
|
55
|
+
*
|
|
56
|
+
* @param {sap.ui.mdc.util.PropertyHelper} oPropertyHelper The propertyhelper that should be utilized for property determination.
|
|
57
|
+
*/
|
|
58
|
+
ActionToolbarController.prototype.mixInfoAndState = function(oPropertyHelper) {
|
|
59
|
+
var aItemState = this.getCurrentState();
|
|
60
|
+
var mItemState = P13nBuilder.arrayToMap(aItemState);
|
|
61
|
+
|
|
62
|
+
var oP13nData = P13nBuilder.prepareAdaptationData(oPropertyHelper, function(mItem, oProperty){
|
|
63
|
+
var oExisting = mItemState[oProperty.name];
|
|
64
|
+
mItem.visible = !!oExisting;
|
|
65
|
+
mItem.position = oExisting ? oExisting.position : -1;
|
|
66
|
+
mItem.alignment = oProperty.alignment;
|
|
67
|
+
return oProperty.visible;
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
P13nBuilder.sortP13nData({
|
|
71
|
+
visible: "visible",
|
|
72
|
+
position: "position"
|
|
73
|
+
}, oP13nData.items);
|
|
74
|
+
|
|
75
|
+
oP13nData.items.forEach(function(oItem){delete oItem.position;});
|
|
76
|
+
return oP13nData;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
ActionToolbarController.prototype.getChangeOperations = function() {
|
|
80
|
+
return {
|
|
81
|
+
add: "unhideControl",
|
|
82
|
+
remove: "hideControl",
|
|
83
|
+
move: "moveAction"
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return ActionToolbarController;
|
|
88
|
+
|
|
89
|
+
});
|
|
@@ -11,7 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
'sap/base/util/merge',
|
|
12
12
|
'sap/base/util/deepEqual',
|
|
13
13
|
'sap/ui/model/json/JSONModel',
|
|
14
|
-
'sap/
|
|
14
|
+
'sap/m/p13n/SelectionPanel'
|
|
15
15
|
], function (BaseObject, FlexUtil, P13nBuilder, merge, deepEqual, JSONModel, SelectionPanel) {
|
|
16
16
|
"use strict";
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @extends sap.ui.base.Object
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.96.1
|
|
27
27
|
*
|
|
28
28
|
* @private
|
|
29
29
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -106,8 +106,8 @@ sap.ui.define([
|
|
|
106
106
|
BaseController.prototype.getAdaptationUI = function(oPropertyHelper){
|
|
107
107
|
|
|
108
108
|
var oSelectionPanel = new SelectionPanel();
|
|
109
|
-
var
|
|
110
|
-
oSelectionPanel.
|
|
109
|
+
var oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
110
|
+
oSelectionPanel.setP13nData(oAdaptationData.items);
|
|
111
111
|
this._oPanel = oSelectionPanel;
|
|
112
112
|
return Promise.resolve(oSelectionPanel);
|
|
113
113
|
};
|
|
@@ -184,7 +184,7 @@ sap.ui.define([
|
|
|
184
184
|
*
|
|
185
185
|
*/
|
|
186
186
|
BaseController.prototype.getP13nData = function() {
|
|
187
|
-
return this._oPanel ? this._oPanel.
|
|
187
|
+
return this._oPanel ? this._oPanel.getP13nData() : this._oAdaptationModel.getProperty("/items");
|
|
188
188
|
};
|
|
189
189
|
|
|
190
190
|
BaseController.prototype.model2State = false;
|
|
@@ -193,7 +193,10 @@ sap.ui.define([
|
|
|
193
193
|
* Can be used to trigger update after UI interactions such as "Ok" and "Reset"
|
|
194
194
|
*/
|
|
195
195
|
BaseController.prototype.update = function(oPropertyHelper) {
|
|
196
|
-
if (this.
|
|
196
|
+
if (this._oPanel) {
|
|
197
|
+
var oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
198
|
+
this._oPanel.setP13nData(oAdaptationData.items);
|
|
199
|
+
} else if (this._oAdaptationModel){
|
|
197
200
|
//'setData' causes unnecessary rerendering in some cases
|
|
198
201
|
var oP13nData = this.mixInfoAndState(oPropertyHelper);
|
|
199
202
|
this._oAdaptationModel.setProperty("/items", oP13nData.items);
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"./BaseController",
|
|
9
9
|
"sap/ui/mdc/p13n/P13nBuilder",
|
|
10
|
+
"sap/base/util/UriParameters",
|
|
10
11
|
"sap/ui/mdc/p13n/panels/ChartItemPanel"
|
|
11
|
-
], function (BaseController, P13nBuilder, ChartItemPanel) {
|
|
12
|
+
], function (BaseController, P13nBuilder, UriParameters, ChartItemPanel) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
14
15
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
@@ -16,9 +17,37 @@ sap.ui.define([
|
|
|
16
17
|
var ChartItemController = BaseController.extend("sap.ui.mdc.p13n.subcontroller.ChartItemController");
|
|
17
18
|
|
|
18
19
|
ChartItemController.prototype.getAdaptationUI = function(oPropertyHelper) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
|
|
21
|
+
if (UriParameters.fromQuery(window.location.search).get("newChartP13n") === "true"){
|
|
22
|
+
|
|
23
|
+
var fnResolve;
|
|
24
|
+
|
|
25
|
+
this._oAdaptationControl.getAdaptationUI().then(function(oPanel){
|
|
26
|
+
this._oPanel = oPanel;
|
|
27
|
+
this._oPropHelper = oPropertyHelper;
|
|
28
|
+
var oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
29
|
+
oPanel.setP13nData(oAdaptationData.items);
|
|
30
|
+
fnResolve(oPanel);
|
|
31
|
+
}.bind(this));
|
|
32
|
+
|
|
33
|
+
return new Promise(function (resolve, reject) {
|
|
34
|
+
fnResolve = resolve;
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
} else {
|
|
38
|
+
var oChartItemPanel = new ChartItemPanel();
|
|
39
|
+
oChartItemPanel.setP13nModel(this._getP13nModel(oPropertyHelper));
|
|
40
|
+
return Promise.resolve(oChartItemPanel);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
ChartItemController.prototype.update = function(){
|
|
46
|
+
BaseController.prototype.update.apply(this, arguments);
|
|
47
|
+
|
|
48
|
+
if (UriParameters.fromQuery(window.location.search).get("newChartP13n") === "true"){
|
|
49
|
+
this._oPanel.setP13nData(this.mixInfoAndState(this._oPropHelper).items);
|
|
50
|
+
}
|
|
22
51
|
};
|
|
23
52
|
|
|
24
53
|
ChartItemController.prototype.getDelta = function(mPropertyBag) {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"./BaseController", "sap/
|
|
9
|
-
], function (BaseController,
|
|
8
|
+
"./BaseController", "sap/m/p13n/SelectionPanel"
|
|
9
|
+
], function (BaseController, SelectionPanel) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
|
|
26
26
|
ColumnController.prototype.model2State = function() {
|
|
27
27
|
var aItems = [];
|
|
28
|
-
this.
|
|
28
|
+
this._oPanel.getP13nData(true).forEach(function(oItem){
|
|
29
29
|
if (oItem.visible){
|
|
30
30
|
aItems.push({
|
|
31
31
|
name: oItem.name
|
|
@@ -37,21 +37,15 @@ sap.ui.define([
|
|
|
37
37
|
|
|
38
38
|
ColumnController.prototype.getAdaptationUI = function(oPropertyHelper){
|
|
39
39
|
|
|
40
|
-
var oSelectionPanel = new
|
|
40
|
+
var oSelectionPanel = new SelectionPanel({
|
|
41
41
|
enableReorder: true,
|
|
42
42
|
showHeader: true,
|
|
43
|
-
enableCount: true
|
|
43
|
+
enableCount: true,
|
|
44
|
+
fieldColumn: oResourceBundle.getText("fieldsui.COLUMNS")
|
|
44
45
|
});
|
|
45
|
-
|
|
46
|
-
oSelectionPanel.
|
|
47
|
-
|
|
48
|
-
hAlign: "Center",
|
|
49
|
-
vAlign: "Middle"
|
|
50
|
-
})]);
|
|
51
|
-
|
|
52
|
-
var oAdaptationModel = this._getP13nModel(oPropertyHelper);
|
|
53
|
-
oSelectionPanel.setP13nModel(oAdaptationModel);
|
|
54
|
-
|
|
46
|
+
var oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
47
|
+
oSelectionPanel.setP13nData(oAdaptationData.items);
|
|
48
|
+
this._oPanel = oSelectionPanel;
|
|
55
49
|
return Promise.resolve(oSelectionPanel);
|
|
56
50
|
};
|
|
57
51
|
|
|
@@ -111,6 +111,18 @@ sap.ui.define([
|
|
|
111
111
|
return FlexUtil.getConditionDeltaChanges(mPropertyBag);
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
+
FilterController.prototype.model2State = function() {
|
|
115
|
+
var oItems = {},
|
|
116
|
+
oFilter = this.getCurrentState();
|
|
117
|
+
this._oAdaptationModel.getProperty("/items").forEach(function(oItem) {
|
|
118
|
+
if (oItem.isFiltered && Object.keys(oFilter).includes(oItem.name)) {
|
|
119
|
+
oItems[oItem.name] = oFilter[oItem.name];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
return oItems;
|
|
124
|
+
};
|
|
125
|
+
|
|
114
126
|
FilterController.prototype.mixInfoAndState = function(oPropertyHelper) {
|
|
115
127
|
|
|
116
128
|
var mExistingFilters = this.getCurrentState() || {};
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
'./BaseController', 'sap/ui/mdc/p13n/P13nBuilder', 'sap/
|
|
8
|
-
], function (BaseController, P13nBuilder,
|
|
7
|
+
'./BaseController', 'sap/ui/mdc/p13n/P13nBuilder', 'sap/m/p13n/GroupPanel'
|
|
8
|
+
], function (BaseController, P13nBuilder, GroupPanel) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
var GroupController = BaseController.extend("sap.ui.mdc.p13n.subcontroller.GroupController");
|
|
@@ -26,18 +26,16 @@ sap.ui.define([
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
GroupController.prototype.getAdaptationUI = function(oPropertyHelper){
|
|
29
|
-
|
|
30
29
|
var oGroupPanel = new GroupPanel();
|
|
30
|
+
var oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
31
|
+
oGroupPanel.setP13nData(oAdaptationData.items);
|
|
31
32
|
this._oPanel = oGroupPanel;
|
|
32
|
-
var oAdaptationModel = this._getP13nModel(oPropertyHelper);
|
|
33
|
-
oGroupPanel.setP13nModel(oAdaptationModel);
|
|
34
|
-
|
|
35
33
|
return Promise.resolve(oGroupPanel);
|
|
36
34
|
};
|
|
37
35
|
|
|
38
36
|
GroupController.prototype.model2State = function() {
|
|
39
37
|
var aItems = [];
|
|
40
|
-
this.
|
|
38
|
+
this._oPanel.getP13nData(true).forEach(function(oItem){
|
|
41
39
|
if (oItem.grouped){
|
|
42
40
|
aItems.push({
|
|
43
41
|
name: oItem.name
|
|
@@ -59,11 +57,6 @@ sap.ui.define([
|
|
|
59
57
|
return "grouped";
|
|
60
58
|
};
|
|
61
59
|
|
|
62
|
-
GroupController.prototype.update = function(){
|
|
63
|
-
BaseController.prototype.update.apply(this, arguments);
|
|
64
|
-
this._oPanel.setP13nModel(this._oAdaptationModel);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
60
|
GroupController.prototype.mixInfoAndState = function(oPropertyHelper) {
|
|
68
61
|
|
|
69
62
|
var aItemState = this.getCurrentState();
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
'./BaseController', 'sap/ui/mdc/p13n/P13nBuilder', 'sap/ui/mdc/p13n/panels/SortPanel', 'sap/
|
|
9
|
-
], function (BaseController, P13nBuilder,
|
|
8
|
+
'./BaseController', 'sap/ui/mdc/p13n/P13nBuilder', 'sap/ui/mdc/p13n/panels/SortPanel', 'sap/m/p13n/SortPanel'
|
|
9
|
+
], function (BaseController, P13nBuilder, SortPanelOld, SortPanel) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
var SortController = BaseController.extend("sap.ui.mdc.p13n.subcontroller.SortController");
|
|
@@ -38,33 +38,31 @@ sap.ui.define([
|
|
|
38
38
|
|
|
39
39
|
//TODO: remove this condition once 'ChartNew' migration has been merged
|
|
40
40
|
if (oAdaptationControl.isA("sap.ui.mdc.Chart") && !oAdaptationControl._bNewP13n) {
|
|
41
|
-
oSortPanel = new
|
|
41
|
+
oSortPanel = new SortPanelOld();
|
|
42
|
+
var oAdaptationModel = this._getP13nModel(oPropertyHelper);
|
|
43
|
+
oSortPanel.setP13nModel(oAdaptationModel);
|
|
42
44
|
} else {
|
|
43
|
-
oSortPanel = new
|
|
45
|
+
oSortPanel = new SortPanel();
|
|
46
|
+
var oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
47
|
+
oSortPanel.setP13nData(oAdaptationData.items);
|
|
48
|
+
this._oPanel = oSortPanel;
|
|
44
49
|
}
|
|
45
50
|
|
|
46
|
-
this._oPanel = oSortPanel;
|
|
47
|
-
var oAdaptationModel = this._getP13nModel(oPropertyHelper);
|
|
48
|
-
oSortPanel.setP13nModel(oAdaptationModel);
|
|
49
|
-
|
|
50
51
|
return Promise.resolve(oSortPanel);
|
|
51
52
|
};
|
|
52
53
|
|
|
53
|
-
SortController.prototype.update = function(){
|
|
54
|
-
BaseController.prototype.update.apply(this, arguments);
|
|
55
|
-
this._oPanel.setP13nModel(this._oAdaptationModel);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
54
|
SortController.prototype.model2State = function() {
|
|
59
55
|
var aItems = [];
|
|
60
|
-
this.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
if (this._oPanel) {
|
|
57
|
+
this._oPanel.getP13nData(true).forEach(function(oItem){
|
|
58
|
+
if (oItem.sorted){
|
|
59
|
+
aItems.push({
|
|
60
|
+
name: oItem.name
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return aItems;
|
|
65
|
+
}
|
|
68
66
|
};
|
|
69
67
|
|
|
70
68
|
SortController.prototype.getChangeOperations = function() {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/core/Element", "sap/m/Label", "sap/ui/core/Core"
|
|
9
|
-
], function(Element, Label, Core
|
|
8
|
+
"sap/ui/core/Element", "sap/m/Label", "sap/ui/core/Core"
|
|
9
|
+
], function(Element, Label, Core) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -19,7 +19,6 @@ sap.ui.define([
|
|
|
19
19
|
* The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
20
20
|
* @extends sap.ui.core.Element
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @constructor The API/behaviour is not finalised and hence this control should not be used for productive usage.
|
|
23
22
|
* @private
|
|
24
23
|
* @experimental
|
|
25
24
|
* @since 1.58
|
|
@@ -66,6 +65,7 @@ sap.ui.define([
|
|
|
66
65
|
/*
|
|
67
66
|
* Only used during creation of table for initial/1st rendering, 0 based index
|
|
68
67
|
*/
|
|
68
|
+
// TODO: Delete!
|
|
69
69
|
initialIndex: {
|
|
70
70
|
type: "int",
|
|
71
71
|
defaultValue: -1
|
|
@@ -140,7 +140,7 @@ sap.ui.define([
|
|
|
140
140
|
Column.prototype.setHeader = function(sHeader) {
|
|
141
141
|
this.setProperty("header", sHeader, true);
|
|
142
142
|
this._updateColumnHeaderControl();
|
|
143
|
-
var oLabelElement =
|
|
143
|
+
var oLabelElement = this.getDomRef();
|
|
144
144
|
if (oLabelElement) {
|
|
145
145
|
oLabelElement.textContent = this.getHeader();
|
|
146
146
|
}
|
|
@@ -155,18 +155,43 @@ sap.ui.define([
|
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
|
-
* Updates the
|
|
158
|
+
* Updates the width of the column based on the auto column width calculation.
|
|
159
|
+
* @private
|
|
160
|
+
*/
|
|
161
|
+
Column.prototype._updateColumnWidth = function(sWidth) {
|
|
162
|
+
var oInnerColumn = Core.byId(this.getId() + "-innerColumn");
|
|
163
|
+
if (!oInnerColumn || !this.getWidth()) {
|
|
164
|
+
this.setProperty("width", sWidth);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// set the inner column width only if there is no user(flex) changes has been applied
|
|
168
|
+
if (oInnerColumn && !oInnerColumn.getWidth()) {
|
|
169
|
+
oInnerColumn.setWidth(sWidth);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Updates the column header control based on the current column property settings.
|
|
159
175
|
* @private
|
|
160
176
|
*/
|
|
161
177
|
Column.prototype._updateColumnHeaderControl = function() {
|
|
162
178
|
if (this._oColumnHeaderLabel) {
|
|
163
179
|
this._oColumnHeaderLabel.setWidth(this.getHeaderVisible() ? null : "0px");
|
|
164
|
-
this._oColumnHeaderLabel.setWrapping(this._bMobileTable && this.getHeaderVisible());
|
|
180
|
+
this._oColumnHeaderLabel.setWrapping(this._bMobileTable && !this._bResizable && this.getHeaderVisible());
|
|
165
181
|
this._oColumnHeaderLabel.setText(this.getHeader());
|
|
166
182
|
this._oColumnHeaderLabel.setTextAlign(this.getHAlign());
|
|
167
183
|
}
|
|
168
184
|
};
|
|
169
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Updates the resizable state of the column.
|
|
188
|
+
* @private
|
|
189
|
+
*/
|
|
190
|
+
Column.prototype.updateColumnResizing = function(bEnabled) {
|
|
191
|
+
this._bResizable = !!bEnabled;
|
|
192
|
+
this._updateColumnHeaderControl();
|
|
193
|
+
};
|
|
194
|
+
|
|
170
195
|
Column.prototype.setParent = function(oParent) {
|
|
171
196
|
var oPrevParent = this.getParent();
|
|
172
197
|
Element.prototype.setParent.apply(this, arguments);
|
|
@@ -192,10 +217,11 @@ sap.ui.define([
|
|
|
192
217
|
* Creates and returns the column header control.
|
|
193
218
|
* If <code>headerVisible=false</code> then, <code>width=0px</code> is applied to the sap.m.Label control for accessibility purpose.
|
|
194
219
|
* @param {boolean} bMobileTable - indicates the type of the table
|
|
220
|
+
* @param {boolean} bResizing - indicates whether the column is resizable
|
|
195
221
|
* @returns {object} column header control
|
|
196
222
|
* @private
|
|
197
223
|
*/
|
|
198
|
-
Column.prototype.getColumnHeaderControl = function(bMobileTable) {
|
|
224
|
+
Column.prototype.getColumnHeaderControl = function(bMobileTable, bResizing) {
|
|
199
225
|
if (this._oColumnHeaderLabel) {
|
|
200
226
|
this._oColumnHeaderLabel.destroy();
|
|
201
227
|
}
|
|
@@ -205,13 +231,13 @@ sap.ui.define([
|
|
|
205
231
|
});
|
|
206
232
|
this._bMobileTable = bMobileTable;
|
|
207
233
|
|
|
208
|
-
this.
|
|
234
|
+
this.updateColumnResizing(bResizing);
|
|
209
235
|
|
|
210
236
|
return this._oColumnHeaderLabel;
|
|
211
237
|
};
|
|
212
238
|
|
|
213
239
|
Column.prototype._removeAriaStaticDom = function() {
|
|
214
|
-
var oDomElement =
|
|
240
|
+
var oDomElement = this.getDomRef();
|
|
215
241
|
|
|
216
242
|
if (oDomElement) {
|
|
217
243
|
oDomElement.parentNode.removeChild(oDomElement);
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
23
23
|
* @extends sap.ui.core.Element
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.96.1
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
28
28
|
* @experimental
|