@openui5/sap.ui.mdc 1.97.1 → 1.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/.reuse/dep5 +25 -30
  2. package/THIRDPARTY.txt +15 -22
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +1 -1
  5. package/src/sap/ui/mdc/ActionToolbar.js +6 -3
  6. package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
  7. package/src/sap/ui/mdc/BaseDelegate.js +1 -1
  8. package/src/sap/ui/mdc/Chart.js +1128 -1806
  9. package/src/sap/ui/mdc/ChartDelegate.js +454 -250
  10. package/src/sap/ui/mdc/ChartRenderer.js +73 -77
  11. package/src/sap/ui/mdc/Control.js +11 -6
  12. package/src/sap/ui/mdc/Element.js +10 -6
  13. package/src/sap/ui/mdc/Field.js +19 -4
  14. package/src/sap/ui/mdc/FilterBar.js +3 -2
  15. package/src/sap/ui/mdc/FilterBarDelegate.js +26 -0
  16. package/src/sap/ui/mdc/FilterField.js +50 -9
  17. package/src/sap/ui/mdc/Link.js +25 -6
  18. package/src/sap/ui/mdc/LinkDelegate.js +3 -3
  19. package/src/sap/ui/mdc/MultiValueField.js +30 -6
  20. package/src/sap/ui/mdc/Table.js +151 -102
  21. package/src/sap/ui/mdc/TableDelegate.js +68 -13
  22. package/src/sap/ui/mdc/ValueHelp.js +26 -11
  23. package/src/sap/ui/mdc/ValueHelpDelegate.js +2 -1
  24. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
  25. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
  26. package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
  27. package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +60 -17
  28. package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
  29. package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +10 -10
  30. package/src/sap/ui/mdc/chart/DrillStackHandler.js +43 -254
  31. package/src/sap/ui/mdc/chart/Item.js +62 -92
  32. package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
  33. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
  34. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  35. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  36. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  37. package/src/sap/ui/mdc/condition/FilterConverter.js +4 -2
  38. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +388 -67
  39. package/src/sap/ui/mdc/condition/Operator.js +4 -2
  40. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +78 -24
  41. package/src/sap/ui/mdc/condition/RangeOperator.js +5 -5
  42. package/src/sap/ui/mdc/designtime/Util.js +63 -0
  43. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +23 -30
  44. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +83 -5
  45. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +81 -5
  46. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
  47. package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +3 -1
  48. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +35 -8
  49. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  50. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  51. package/src/sap/ui/mdc/field/ConditionType.js +17 -6
  52. package/src/sap/ui/mdc/field/ConditionsType.js +2 -1
  53. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  54. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  55. package/src/sap/ui/mdc/field/DefineConditionPanel.js +88 -29
  56. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +77 -20
  57. package/src/sap/ui/mdc/field/FieldBase.js +93 -16
  58. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
  59. package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
  60. package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
  61. package/src/sap/ui/mdc/field/FieldInfoBase.js +24 -10
  62. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  63. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  64. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  65. package/src/sap/ui/mdc/field/FieldValueHelp.js +5 -2
  66. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  67. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +1 -1
  68. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +5 -4
  69. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +6 -4
  70. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
  71. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +7 -7
  72. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  73. package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
  74. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  75. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  76. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  77. package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
  78. package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
  79. package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
  80. package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
  81. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  82. package/src/sap/ui/mdc/field/content/ContentFactory.js +10 -6
  83. package/src/sap/ui/mdc/field/content/DateContent.js +27 -19
  84. package/src/sap/ui/mdc/field/content/DateTimeContent.js +0 -6
  85. package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
  86. package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
  87. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +285 -208
  88. package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
  89. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +27 -2
  90. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +132 -56
  91. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
  92. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +7 -3
  93. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +52 -14
  94. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
  95. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +43 -19
  96. package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
  97. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
  98. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +48 -31
  99. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
  100. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +36 -0
  101. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
  102. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +47 -10
  103. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
  104. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  105. package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
  106. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +0 -1
  107. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
  108. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +27 -0
  109. package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
  110. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
  111. package/src/sap/ui/mdc/library.js +54 -44
  112. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  113. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  114. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  115. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  116. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  117. package/src/sap/ui/mdc/link/Factory.js +2 -2
  118. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  119. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  120. package/src/sap/ui/mdc/link/Log.js +1 -1
  121. package/src/sap/ui/mdc/link/Panel.js +140 -177
  122. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  123. package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
  124. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  125. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  126. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  127. package/src/sap/ui/mdc/messagebundle.properties +57 -2
  128. package/src/sap/ui/mdc/messagebundle_ar.properties +39 -4
  129. package/src/sap/ui/mdc/messagebundle_bg.properties +54 -19
  130. package/src/sap/ui/mdc/messagebundle_ca.properties +37 -2
  131. package/src/sap/ui/mdc/messagebundle_cs.properties +52 -17
  132. package/src/sap/ui/mdc/messagebundle_cy.properties +37 -2
  133. package/src/sap/ui/mdc/messagebundle_da.properties +44 -9
  134. package/src/sap/ui/mdc/messagebundle_de.properties +37 -2
  135. package/src/sap/ui/mdc/messagebundle_el.properties +38 -3
  136. package/src/sap/ui/mdc/messagebundle_en.properties +37 -2
  137. package/src/sap/ui/mdc/messagebundle_en_GB.properties +37 -2
  138. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +37 -2
  139. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +61 -4
  140. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +37 -2
  141. package/src/sap/ui/mdc/messagebundle_es.properties +37 -2
  142. package/src/sap/ui/mdc/messagebundle_es_MX.properties +51 -16
  143. package/src/sap/ui/mdc/messagebundle_et.properties +37 -2
  144. package/src/sap/ui/mdc/messagebundle_fi.properties +43 -8
  145. package/src/sap/ui/mdc/messagebundle_fr.properties +38 -3
  146. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +37 -2
  147. package/src/sap/ui/mdc/messagebundle_hi.properties +38 -3
  148. package/src/sap/ui/mdc/messagebundle_hr.properties +37 -2
  149. package/src/sap/ui/mdc/messagebundle_hu.properties +37 -2
  150. package/src/sap/ui/mdc/messagebundle_id.properties +37 -2
  151. package/src/sap/ui/mdc/messagebundle_it.properties +53 -18
  152. package/src/sap/ui/mdc/messagebundle_iw.properties +38 -3
  153. package/src/sap/ui/mdc/messagebundle_ja.properties +37 -2
  154. package/src/sap/ui/mdc/messagebundle_kk.properties +37 -2
  155. package/src/sap/ui/mdc/messagebundle_ko.properties +41 -6
  156. package/src/sap/ui/mdc/messagebundle_lt.properties +37 -2
  157. package/src/sap/ui/mdc/messagebundle_lv.properties +41 -6
  158. package/src/sap/ui/mdc/messagebundle_ms.properties +37 -2
  159. package/src/sap/ui/mdc/messagebundle_nl.properties +42 -7
  160. package/src/sap/ui/mdc/messagebundle_no.properties +45 -10
  161. package/src/sap/ui/mdc/messagebundle_pl.properties +38 -3
  162. package/src/sap/ui/mdc/messagebundle_pt.properties +44 -9
  163. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +37 -2
  164. package/src/sap/ui/mdc/messagebundle_ro.properties +37 -2
  165. package/src/sap/ui/mdc/messagebundle_ru.properties +37 -2
  166. package/src/sap/ui/mdc/messagebundle_sh.properties +37 -2
  167. package/src/sap/ui/mdc/messagebundle_sk.properties +37 -2
  168. package/src/sap/ui/mdc/messagebundle_sl.properties +37 -2
  169. package/src/sap/ui/mdc/messagebundle_sv.properties +39 -4
  170. package/src/sap/ui/mdc/messagebundle_th.properties +40 -5
  171. package/src/sap/ui/mdc/messagebundle_tr.properties +37 -2
  172. package/src/sap/ui/mdc/messagebundle_uk.properties +41 -6
  173. package/src/sap/ui/mdc/messagebundle_vi.properties +37 -2
  174. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +37 -2
  175. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +37 -2
  176. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +30 -15
  177. package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -142
  178. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -17
  179. package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
  180. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +348 -0
  181. package/src/sap/ui/mdc/odata/TypeUtil.js +2 -2
  182. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
  183. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +106 -0
  184. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +116 -20
  185. package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +2 -2
  186. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +117 -123
  187. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +3 -5
  188. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +1 -1
  189. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
  190. package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +459 -351
  191. package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
  192. package/src/sap/ui/mdc/p13n/Engine.js +51 -30
  193. package/src/sap/ui/mdc/p13n/FlexUtil.js +6 -118
  194. package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
  195. package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
  196. package/src/sap/ui/mdc/p13n/StateUtil.js +24 -6
  197. package/src/sap/ui/mdc/p13n/UIManager.js +20 -19
  198. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
  199. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +19 -12
  200. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
  201. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +6 -6
  202. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +49 -27
  203. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1094 -49
  204. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +136 -0
  205. package/src/sap/ui/mdc/p13n/panels/GroupView.js +53 -28
  206. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +108 -0
  207. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +4 -7
  208. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +7 -7
  209. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
  210. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
  211. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
  212. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +22 -11
  213. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +174 -0
  214. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +12 -19
  215. package/src/sap/ui/mdc/table/Column.js +12 -12
  216. package/src/sap/ui/mdc/table/CreationRow.js +11 -11
  217. package/src/sap/ui/mdc/table/GridTableType.js +80 -33
  218. package/src/sap/ui/mdc/table/PropertyHelper.js +63 -19
  219. package/src/sap/ui/mdc/table/ResponsiveTableType.js +94 -23
  220. package/src/sap/ui/mdc/table/RowActionItem.js +119 -0
  221. package/src/sap/ui/mdc/table/RowSettings.js +45 -4
  222. package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
  223. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -2
  224. package/src/sap/ui/mdc/themes/base/Chart.less +2 -0
  225. package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
  226. package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
  227. package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
  228. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +16 -4
  229. package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
  230. package/src/sap/ui/mdc/util/Common.js +1 -1
  231. package/src/sap/ui/mdc/util/DateUtil.js +33 -8
  232. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  233. package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
  234. package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
  235. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  236. package/src/sap/ui/mdc/util/PropertyHelper.js +243 -87
  237. package/src/sap/ui/mdc/util/TypeUtil.js +6 -5
  238. package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
  239. package/src/sap/ui/mdc/valuehelp/Popover.js +6 -3
  240. package/src/sap/ui/mdc/valuehelp/base/Container.js +2 -1
  241. package/src/sap/ui/mdc/valuehelp/base/Content.js +2 -1
  242. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
  243. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +5 -4
  244. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
  245. package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
  246. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -2
  247. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +23 -14
  248. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +46 -17
  249. package/src/sap/ui/mdc/valuehelp/content/MTable.js +48 -27
  250. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
  251. package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
  252. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
  253. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
  254. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
  255. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
  256. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
  257. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +291 -0
  258. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
  259. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +8 -9
  260. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
  261. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
  262. package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
  263. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
  264. package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
  265. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +264 -139
  266. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
  267. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
  268. package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
  269. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
  270. package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
  271. package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
  272. package/src/sap/ui/mdc/ChartNew.js +0 -1114
  273. package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
  274. package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
  275. package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
  276. package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
  277. package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
  278. package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
  279. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
  280. package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
  281. package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
  282. package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
  283. package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
  284. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +0 -150
  285. package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
  286. package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
  287. package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
  288. package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
  289. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +0 -39
  290. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +0 -721
  291. package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
  292. package/src/sap/ui/mdc/p13n/panels/ListView.js +0 -404
  293. package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -92
  294. package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -150
  295. package/src/sap/ui/mdc/ui/Container.js +0 -240
  296. package/src/sap/ui/mdc/ui/ContainerItem.js +0 -79
@@ -1,404 +0,0 @@
1
- /*
2
- * ! OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
- sap.ui.define([
7
- "./BasePanel",
8
- "sap/m/Label",
9
- "sap/m/ColumnListItem",
10
- "sap/m/HBox",
11
- "sap/m/VBox",
12
- "sap/ui/core/Icon",
13
- "sap/m/Text",
14
- "sap/m/Column",
15
- "sap/m/Table",
16
- "sap/m/library",
17
- "sap/m/ToolbarSpacer",
18
- "sap/m/Button",
19
- "sap/m/OverflowToolbar",
20
- "sap/ui/model/Filter"
21
- ], function(BasePanel, Label, ColumnListItem, HBox, VBox, Icon, Text, Column, Table, mLibrary, ToolbarSpacer, Button, OverflowToolbar, Filter) {
22
- "use strict";
23
-
24
- // shortcut for sap.m.ListKeyboardMode
25
- var ListKeyboardMode = mLibrary.ListKeyboardMode;
26
-
27
- // shortcut for sap.m.FlexJustifyContent
28
- var FlexJustifyContent = mLibrary.FlexJustifyContent;
29
-
30
- // shortcut for sap.m.ListType
31
- var ListType = mLibrary.ListType;
32
-
33
- /**
34
- * Constructor for a new ListView
35
- *
36
- * @param {string} [sId] ID for the new control, generated automatically if no ID is given
37
- * @param {object} [mSettings] initial settings for the new control
38
- * @class The ListView is a list based view to personalize selection and ordering of a Control aggregation.
39
- * @extends sap.ui.mdc.p13n.panels.BasePanel
40
- * @author SAP SE
41
- * @private
42
- * @experimental
43
- * @since 1.85
44
- * @alias sap.ui.mdc.p13n.panels.ListView
45
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
46
- */
47
- var ListView = BasePanel.extend("sap.ui.mdc.p13n.panels.ListView", {
48
- metadata: {
49
- library: "sap.ui.mdc",
50
- properties: {
51
- /**
52
- * Shows an additional header with a SearchField and 'Show Selected' button
53
- */
54
- showHeader: {
55
- type: "boolean",
56
- defaultValue: false
57
- },
58
- /**
59
- * Enables a count for selected items compared to available items as '<fields> (3 / 12)' in addition
60
- * for the first provided column text
61
- */
62
- enableCount: {
63
- type: "boolean",
64
- defaultValue: false
65
- }
66
- }
67
- },
68
- renderer: {
69
- apiVersion: 2
70
- }
71
- });
72
-
73
- ListView.prototype.applySettings = function(){
74
- this.setTemplate(this._getListTemplate());
75
- BasePanel.prototype.applySettings.apply(this, arguments);
76
- this.addStyleClass("sapUiMDCListView");
77
-
78
- this._aInitializedFields = [];
79
-
80
- //Do not show the factory by default
81
- this._bShowFactory = false;
82
- this.addStyleClass("listViewHover");
83
-
84
- this.displayColumns();
85
- this.setEnableReorder(true);
86
- };
87
-
88
- ListView.prototype.setItemFactory = function(fnItemFactory) {
89
- this.setProperty("itemFactory", fnItemFactory);
90
- this._oListControl.setGrowing(!!fnItemFactory);
91
- return this;
92
- };
93
-
94
- ListView.prototype._getListTemplate = function() {
95
- return new ColumnListItem({
96
- selected: "{" + this.P13N_MODEL + ">visible}",
97
- type: ListType.Active,
98
- cells: [
99
- new VBox({
100
- items: [
101
- new Label({
102
- wrapping: true,
103
- required: "{" + this.P13N_MODEL + ">required}",
104
- tooltip: "{" + this.P13N_MODEL + ">tooltip}",
105
- text: "{" + this.P13N_MODEL + ">label}"
106
- })
107
- ]
108
- }),
109
- new HBox({
110
- justifyContent: FlexJustifyContent.Center,
111
- items: [
112
- new Icon({
113
- src: "sap-icon://circle-task-2",
114
- size: "0.5rem",
115
- color: sap.ui.core.IconColor.Neutral,
116
- visible: {
117
- path: this.P13N_MODEL + ">isFiltered",
118
- formatter: function(bIsFiltered) {
119
- if (bIsFiltered){
120
- return true;
121
- } else {
122
- return false;
123
- }
124
- }
125
- }
126
- })
127
- ]
128
- })
129
- ]
130
- });
131
- };
132
-
133
- ListView.prototype.setShowHeader = function(bShowHeader) {
134
- if (bShowHeader){
135
- var sShowSelected = this.getResourceText("p13nDialog.SHOW_SELECTED");
136
- var sShowAll = this.getResourceText("p13nDialog.SHOW_ALL");
137
- this._oListControl.setHeaderToolbar(new OverflowToolbar({
138
- content: [
139
- this._getSearchField(),
140
- new ToolbarSpacer(),
141
- new Button({
142
- press: function(oEvt){
143
- this._bShowSelected = oEvt.getSource().getText() == sShowSelected;
144
- this._filterList(this._bShowSelected, this._sSearch);
145
- oEvt.getSource().setText(this._bShowSelected ? sShowAll : sShowSelected);
146
- }.bind(this),
147
- text: sShowSelected
148
- })
149
- ]
150
- }));
151
- }
152
-
153
- this.setProperty("showHeader", bShowHeader);
154
-
155
- return this;
156
- };
157
-
158
- ListView.prototype._filterList = function(bShowSelected, sSarch) {
159
- var oSearchFilter = [], oSelectedFilter = [];
160
- if (bShowSelected) {
161
- oSelectedFilter = new Filter(this._getPresenceAttribute(), "EQ", true);
162
- }
163
- if (sSarch) {
164
- oSearchFilter = new Filter("label", "Contains", sSarch);
165
- }
166
- this._oListControl.getBinding("items").filter(new Filter([].concat(oSelectedFilter, oSearchFilter), true));
167
- };
168
-
169
- ListView.prototype._onSearchFieldLiveChange = function(oEvent) {
170
- this._sSearch = oEvent.getSource().getValue();
171
- this._filterList(this._bShowSelected, this._sSearch);
172
- };
173
-
174
- ListView.prototype._handleActivated = function(oHoveredItem) {
175
- //remove move buttons if unselected item is hovered (not covered by updateStarted)
176
- this.removeMoveButtons();
177
-
178
- //Check if the prior hovered item had a visible icon and renable it if required
179
- if (this._oHoveredItem && this._oHoveredItem.getBindingContextPath()){
180
- var bVisible = !!this.getP13nModel().getProperty(this._oHoveredItem.getBindingContextPath()).isFiltered;
181
- var oOldIcon = this._oHoveredItem.getCells()[1].getItems()[0];
182
- oOldIcon.setVisible(bVisible);
183
- }
184
-
185
- //Store (new) hovered item and set its icon to visible: false + add move buttons to it
186
- var oIcon = oHoveredItem.getCells()[1].getItems()[0];
187
- oIcon.setVisible(false);
188
- this._oHoveredItem = oHoveredItem;
189
- this._updateEnableOfMoveButtons(oHoveredItem, false);
190
- this._addMoveButtons(oHoveredItem);
191
- };
192
-
193
- ListView.prototype.removeMoveButtons = function() {
194
- var oMoveButtonBox = this._getMoveButtonContainer();
195
-
196
- if (oMoveButtonBox){
197
- oMoveButtonBox.removeItem(this._getMoveTopButton());
198
- oMoveButtonBox.removeItem(this._getMoveUpButton());
199
- oMoveButtonBox.removeItem(this._getMoveDownButton());
200
- oMoveButtonBox.removeItem(this._getMoveBottomButton());
201
- }
202
-
203
- };
204
-
205
- ListView.prototype._getMoveButtonContainer = function() {
206
- if (this._oMoveBottomButton &&
207
- this._oMoveBottomButton.getParent() &&
208
- this._oMoveBottomButton.getParent().isA("sap.m.FlexBox")
209
- ){
210
- return this._oMoveBottomButton.getParent();
211
- }
212
- };
213
-
214
- ListView.prototype.showFactory = function(bShow) {
215
-
216
- this._bShowFactory = bShow;
217
- this.displayColumns();
218
-
219
- if (bShow){
220
- this.removeStyleClass("listViewHover");
221
- this._oListControl.setKeyboardMode(ListKeyboardMode.Edit); //--> tab through editable fields (fields shown)
222
- this._addFactoryControl();
223
- } else {
224
- this.addStyleClass("listViewHover");
225
- this._oListControl.setKeyboardMode(ListKeyboardMode.Navigation); //--> tab through list items (fields hidden)
226
- this._removeFactoryControl();
227
- }
228
- };
229
-
230
- ListView.prototype._updateCount = function() {
231
- this.getP13nModel().setProperty("/selectedItems", this._oListControl.getSelectedContexts(true).length);
232
- };
233
-
234
- ListView.prototype._selectTableItem = function(oTableItem, bSelectAll) {
235
- BasePanel.prototype._selectTableItem.apply(this, arguments);
236
- this._updateCount();
237
- };
238
-
239
- ListView.prototype.setP13nModel = function(oModel) {
240
- this.setModel(oModel, "$p13n");
241
- this._updateCount();
242
- this.setPanelMode(true);
243
- this._getDragDropConfig().setEnabled(this.getEnableReorder());
244
- };
245
-
246
- ListView.prototype._removeFactoryControl = function() {
247
- var aItems = this._oListControl.getItems().filter(function(oItem) {
248
- return !oItem._bGroupHeader;
249
- });
250
-
251
- aItems.forEach(function(oItem){
252
- var oFirstCell = oItem.getCells()[0];
253
- if (oFirstCell.getItems().length > 1){
254
- oFirstCell.removeItem(oFirstCell.getItems()[1]);
255
- }
256
- });
257
- this.removeStyleClass("sapUiMDCAFLabelMarkingList");
258
-
259
- return this._aInitializedFields;
260
-
261
- };
262
-
263
- ListView.prototype._moveSelectedItem = function(){
264
- this._oSelectedItem = this._getMoveButtonContainer().getParent();
265
- BasePanel.prototype._moveSelectedItem.apply(this, arguments);
266
- };
267
-
268
- ListView.prototype.getShowFactory = function() {
269
- return this._bShowFactory;
270
- };
271
-
272
- ListView.prototype.displayColumns = function() {
273
-
274
- var aColumns = [
275
- this.getResourceText("p13nDialog.LIST_VIEW_COLUMN")
276
- ];
277
-
278
- if (!this._bShowFactory) {
279
- aColumns.push(new Column({
280
- width: "25%",
281
- hAlign: "Center",
282
- vAlign: "Middle",
283
- header: new Text({
284
- text: this.getResourceText("p13nDialog.LIST_VIEW_ACTIVE")
285
- })
286
- }));
287
- }
288
-
289
- this.setPanelColumns(aColumns);
290
- };
291
-
292
- ListView.prototype.setPanelColumns = function(aColumns) {
293
- this._sText = aColumns[0];
294
- var bEnableCount = this.getEnableCount();
295
-
296
- if (bEnableCount) {
297
- var oColumn = new Column({
298
- header: new Text({
299
- text: {
300
- parts: [
301
- {
302
- path: this.P13N_MODEL + '>/selectedItems'
303
- }, {
304
- path: this.P13N_MODEL + '>/items'
305
- }
306
- ],
307
- formatter: function(iSelected, aAll) {
308
- return this._sText + " " + this.getResourceText('p13nDialog.HEADER_COUNT', [
309
- iSelected, aAll.length
310
- ]);
311
- }.bind(this)
312
- }
313
- })
314
- });
315
- aColumns[0] = oColumn;
316
- }
317
-
318
- BasePanel.prototype.setPanelColumns.apply(this, arguments);
319
- };
320
-
321
- ListView.prototype._addFactoryControl = function(oList) {
322
-
323
- this._oListControl.getItems().forEach(function(oItem){
324
- var oContext = oItem.getBindingContext(this.P13N_MODEL);
325
- var oField = this.getItemFactory().call(this, oContext);
326
- var oCell = oItem.getCells()[0];
327
- oCell.addItem(oField);
328
- }.bind(this));
329
-
330
- this.addStyleClass("sapUiMDCAFLabelMarkingList");
331
- };
332
-
333
- ListView.prototype._createInnerListControl = function() {
334
- return new Table(this.getId() + "-innerListViewTable", Object.assign({
335
- growing: false,
336
- growingThreshold: 25,
337
- growingScrollToLoad: true,
338
- updateStarted: function() {
339
- this.removeMoveButtons();
340
- this._removeFactoryControl();
341
- }.bind(this),
342
- updateFinished: function() {
343
- if (this.getShowFactory()) {
344
- this._addFactoryControl();
345
- }
346
- }.bind(this)
347
- }, this._getListControlConfig()));
348
- };
349
-
350
- ListView.prototype.getSelectedFields = function() {
351
- var aSelectedItems = [];
352
- this._loopItems(this._oListControl, function(oItem, sKey){
353
- if (oItem.getSelected()){
354
- aSelectedItems.push(sKey);
355
- }
356
- });
357
-
358
- return aSelectedItems;
359
- };
360
-
361
- ListView.prototype._loopItems = function(oList, fnItemCallback) {
362
- oList.getItems().forEach(function(oItem){
363
-
364
- var sPath = oItem.getBindingContextPath();
365
- var sKey = this.getP13nModel().getProperty(sPath).name;
366
-
367
- fnItemCallback.call(this, oItem, sKey);
368
- }.bind(this));
369
- };
370
-
371
- ListView.prototype.filterWithoutDestroy = function(aFilter) {
372
- if (this._oListControl.getBinding("items")){
373
- this._oListControl.getBinding("items").filter(aFilter, true);
374
- }
375
- };
376
-
377
- ListView.prototype._addMoveButtons = function(oItem) {
378
- var oTableItem = oItem;
379
- if (!oTableItem){
380
- return;
381
- }
382
-
383
- var bItemSelected = this.getP13nModel().getProperty(oTableItem.getBindingContextPath()).visible;
384
-
385
- if (bItemSelected){
386
- oTableItem.getCells()[1].addItem(this._getMoveTopButton());
387
- oTableItem.getCells()[1].addItem(this._getMoveUpButton());
388
- oTableItem.getCells()[1].addItem(this._getMoveDownButton());
389
- oTableItem.getCells()[1].addItem(this._getMoveBottomButton());
390
- }
391
- };
392
-
393
- ListView.prototype.exit = function() {
394
- BasePanel.prototype.exit.apply(this, arguments);
395
- this._aInitializedFields = null;
396
- this._oHoveredItem = null;
397
- this._bShowFactory = null;
398
- this._sSearch = null;
399
- this._bShowSelected = null;
400
- };
401
-
402
- return ListView;
403
-
404
- });
@@ -1,92 +0,0 @@
1
- /*
2
- * ! OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
- sap.ui.define([
7
- "./BasePanel", "sap/m/Label", "sap/m/ColumnListItem", "sap/m/HBox", "sap/m/VBox", "sap/ui/model/Filter"
8
- ], function(BasePanel, Label, ColumnListItem, HBox, VBox, Filter) {
9
- "use strict";
10
-
11
- /**
12
- * Constructor for SelectionPanel
13
- *
14
- * @param {string} [sId] ID for the new control, generated automatically if no ID is given
15
- * @param {object} [mSettings] initial settings for the new control
16
- * @class TODO
17
- * <h3><b>Note:</b></h3>
18
- * The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
19
- * @extends sap.ui.mdc.p13n.panels.BasePanel
20
- * @author SAP SE
21
- * @private
22
- * @experimental
23
- * @since 1.66
24
- * @alias sap.ui.mdc.p13n.panels.SelectionPanel
25
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
26
- */
27
- var SelectionPanel = BasePanel.extend("sap.ui.mdc.p13n.panels.SelectionPanel", {
28
- metadata: {
29
- library: "sap.ui.mdc"
30
- },
31
- init: function() {
32
-
33
- // Initialize the BasePanel
34
- BasePanel.prototype.init.apply(this, arguments);
35
-
36
- this.setPanelColumns(this.getResourceText("fieldsui.COLUMNS"));
37
-
38
- },
39
- renderer: {}
40
- });
41
-
42
- SelectionPanel.prototype.setP13nModel = function(oModel) {
43
- BasePanel.prototype.setP13nModel.apply(this, arguments);
44
-
45
- var oSelectionPanelTemplate = new ColumnListItem({
46
- selected: "{" + this.P13N_MODEL + ">" + this._getPresenceAttribute() + "}",
47
- cells: new VBox({
48
- items: [
49
- new Label({
50
- design: {
51
- path: this.P13N_MODEL + ">groupLabel",
52
- formatter: function(sGroupLabel){
53
- return sGroupLabel ? "Bold" : "Standard";
54
- }
55
- },
56
- wrapping: true,
57
- tooltip: "{" + this.P13N_MODEL + ">tooltip}",
58
- text: "{" + this.P13N_MODEL + ">label}"
59
- }),
60
- new Label({
61
- visible: {
62
- path: this.P13N_MODEL + ">groupLabel",
63
- formatter: function(sGroupLabel){
64
- return sGroupLabel ? true : false;
65
- }
66
- },
67
- wrapping: true,
68
- tooltip: "{" + this.P13N_MODEL + ">tooltip}",
69
- text: "{" + this.P13N_MODEL + ">groupLabel}"
70
- })
71
-
72
- ]
73
- })
74
-
75
- });
76
-
77
- this.setTemplate(oSelectionPanelTemplate);
78
- };
79
-
80
- SelectionPanel.prototype._onSearchFieldLiveChange = function(oEvent) {
81
- //TODO: implement in BasePanel
82
- var aFilters = new Filter([
83
- new Filter("label", "Contains", oEvent.getSource().getValue()),
84
- new Filter("groupLabel", "Contains", oEvent.getSource().getValue())
85
- ]);
86
-
87
- this._oListControl.getBinding("items").filter(aFilters, false);
88
- };
89
-
90
- return SelectionPanel;
91
-
92
- });
@@ -1,150 +0,0 @@
1
- /*
2
- * ! OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
- sap.ui.define([
7
- "./BasePanel", "sap/m/ColumnListItem", "sap/m/Label", "sap/m/Select", "sap/ui/core/Item", "sap/m/HBox", "sap/m/VBox", "sap/ui/model/Filter"
8
- ], function(BasePanel, ColumnListItem, Label, Select, Item, HBox, VBox, Filter) {
9
- "use strict";
10
-
11
- /**
12
- * Constructor for SortPanel
13
- *
14
- * @param {string} [sId] ID for the new control, generated automatically if no ID is given
15
- * @param {object} [mSettings] initial settings for the new control
16
- * @class TODO
17
- * <h3><b>Note:</b></h3>
18
- * The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
19
- * @extends sap.ui.mdc.p13n.panels.BasePanel
20
- * @author SAP SE
21
- * @private
22
- * @experimental
23
- * @since 1.66
24
- * @alias sap.ui.mdc.p13n.panels.SortPanel
25
- * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
26
- */
27
- var SortPanel = BasePanel.extend("sap.ui.mdc.p13n.panels.SortPanel", {
28
- metadata: {
29
- library: "sap.ui.mdc"
30
- },
31
- init: function() {
32
- // Initialize the BasePanel
33
- BasePanel.prototype.init.apply(this, arguments);
34
-
35
- var oSortPanelTemplate = new ColumnListItem({
36
- selected: "{" + this.P13N_MODEL + ">sorted}",
37
- cells: [
38
- new VBox({
39
- items: [
40
- new Label({
41
- design: {
42
- path: this.P13N_MODEL + ">groupLabel",
43
- formatter: function(sGroupLabel){
44
- return sGroupLabel ? "Bold" : "Standard";
45
- }
46
- },
47
- wrapping: true,
48
- tooltip: "{" + this.P13N_MODEL + ">tooltip}",
49
- text: "{" + this.P13N_MODEL + ">label}"
50
- }),
51
- new Label({
52
- visible: {
53
- path: this.P13N_MODEL + ">groupLabel",
54
- formatter: function(sGroupLabel){
55
- return sGroupLabel ? true : false;
56
- }
57
- },
58
- wrapping: true,
59
- tooltip: "{" + this.P13N_MODEL + ">tooltip}",
60
- text: "{" + this.P13N_MODEL + ">groupLabel}"
61
- })
62
-
63
- ]
64
- }),
65
- new Select("IDsortOrderSelect", {
66
- width: "100%",
67
- selectedKey: "{" + this.P13N_MODEL + ">descending}",
68
- change: [this.onChangeOfSortOrder, this],
69
- enabled: {
70
- path: this.P13N_MODEL + ">sorted",
71
- formatter: function(bEnabled) {
72
- return !!bEnabled;
73
- }
74
- },
75
- items: [
76
- new Item({
77
- key: false,
78
- text: this.getResourceText("sort.PERSONALIZATION_DIALOG_OPTION_ASCENDING")
79
- }),
80
- new Item({
81
- key: true,
82
- text: this.getResourceText("sort.PERSONALIZATION_DIALOG_OPTION_DESCENDING")
83
- })
84
- ]
85
- })
86
- ]
87
- });
88
-
89
- this.setTemplate(oSortPanelTemplate);
90
- this.setPanelColumns([
91
- this.getResourceText("sort.PERSONALIZATION_DIALOG_COLUMN_DESCRIPTION"), this.getResourceText("sort.PERSONALIZATION_DIALOG_COLUMN_SORTORDER")
92
- ]);
93
- },
94
- renderer: {}
95
- });
96
-
97
- SortPanel.prototype._filterBySelected = function(bShowSelected) {
98
- this._oListControl.getBinding("items").filter(bShowSelected ? new Filter("sorted", "EQ", true) : []);
99
- };
100
-
101
- SortPanel.prototype._updateModelItems = function() {
102
- // Sort and update the model items to ensure selected ones, are at the top
103
- var aFields = this.getP13nModel().getProperty("/items");
104
- var aSelectedFields = [], aOtherFields = [];
105
- aFields.forEach(function(oField) {
106
- if (oField.sorted) {
107
- aSelectedFields.push(oField);
108
- } else {
109
- aOtherFields.push(oField);
110
- }
111
- });
112
- this.getP13nModel().setProperty("/items", aSelectedFields.concat(aOtherFields));
113
- };
114
-
115
- SortPanel.prototype.onChangeOfSortOrder = function(oEvent) {
116
- var oSelectedItem = oEvent.getParameter("selectedItem");
117
- // Fire event only for valid selection
118
- if (oSelectedItem) {
119
- var oBindingContext = oSelectedItem.getBindingContext(this.P13N_MODEL);
120
- if (oBindingContext) {
121
- var sPath = oBindingContext.getPath();
122
-
123
- //convert stringified boolean back to boolean instance type
124
- this.getP13nModel().setProperty(sPath + "/descending", oSelectedItem.getKey() === "true");
125
- }
126
- this.fireChange();
127
- }
128
- };
129
-
130
- SortPanel.prototype._onSearchFieldLiveChange = function(oEvent) {
131
- //TODO: implement in BasePanel
132
- var aFilters = new Filter([
133
- new Filter("label", "Contains", oEvent.getSource().getValue()),
134
- new Filter("groupLabel", "Contains", oEvent.getSource().getValue())
135
- ]);
136
-
137
- this._oListControl.getBinding("items").filter(aFilters, false);
138
- };
139
-
140
- SortPanel.prototype._onPressToggleMode = function(oEvent) {
141
- var aPanelColumns = this.getPanelMode() ?
142
- [this.getResourceText("sort.PERSONALIZATION_DIALOG_COLUMN_DESCRIPTION"), this.getResourceText("sort.PERSONALIZATION_DIALOG_COLUMN_SORTORDER")] :
143
- this.getResourceText("sort.PERSONALIZATION_DIALOG_COLUMN_DESCRIPTION");
144
- this.setPanelColumns(aPanelColumns);
145
- this._togglePanelMode();
146
- };
147
-
148
- return SortPanel;
149
-
150
- });