@openui5/sap.ui.mdc 1.97.1 → 1.99.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.
Files changed (263) hide show
  1. package/.reuse/dep5 +25 -30
  2. package/THIRDPARTY.txt +14 -21
  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 +1100 -1796
  9. package/src/sap/ui/mdc/ChartDelegate.js +429 -270
  10. package/src/sap/ui/mdc/ChartRenderer.js +73 -77
  11. package/src/sap/ui/mdc/Control.js +1 -1
  12. package/src/sap/ui/mdc/Element.js +1 -1
  13. package/src/sap/ui/mdc/Field.js +2 -2
  14. package/src/sap/ui/mdc/FilterBar.js +3 -2
  15. package/src/sap/ui/mdc/FilterField.js +11 -8
  16. package/src/sap/ui/mdc/Link.js +23 -4
  17. package/src/sap/ui/mdc/LinkDelegate.js +3 -3
  18. package/src/sap/ui/mdc/MultiValueField.js +20 -6
  19. package/src/sap/ui/mdc/Table.js +79 -64
  20. package/src/sap/ui/mdc/TableDelegate.js +40 -12
  21. package/src/sap/ui/mdc/ValueHelp.js +19 -9
  22. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
  23. package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
  24. package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +49 -13
  25. package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
  26. package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +3 -3
  27. package/src/sap/ui/mdc/chart/DrillStackHandler.js +38 -249
  28. package/src/sap/ui/mdc/chart/Item.js +62 -92
  29. package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
  30. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
  31. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  32. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  33. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  34. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  35. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +256 -43
  36. package/src/sap/ui/mdc/condition/Operator.js +1 -1
  37. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
  38. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  39. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +80 -5
  40. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +81 -5
  41. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
  42. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +60 -20
  43. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  44. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  45. package/src/sap/ui/mdc/field/ConditionType.js +3 -3
  46. package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
  47. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  48. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  49. package/src/sap/ui/mdc/field/DefineConditionPanel.js +75 -27
  50. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +4 -4
  51. package/src/sap/ui/mdc/field/FieldBase.js +32 -6
  52. package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
  53. package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
  54. package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -10
  55. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  56. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  57. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  58. package/src/sap/ui/mdc/field/FieldValueHelp.js +2 -2
  59. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  60. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
  61. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
  62. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
  63. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
  64. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  65. package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
  66. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  67. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  68. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  69. package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
  70. package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
  71. package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
  72. package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
  73. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  74. package/src/sap/ui/mdc/field/content/ContentFactory.js +5 -5
  75. package/src/sap/ui/mdc/field/content/DateContent.js +2 -2
  76. package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
  77. package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
  78. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +335 -126
  79. package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
  80. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  81. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +8 -2
  82. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
  83. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -1
  84. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +6 -6
  85. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
  86. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
  87. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
  88. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
  89. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  90. package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
  91. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
  92. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
  93. package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
  94. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
  95. package/src/sap/ui/mdc/library.js +45 -42
  96. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  97. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  98. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  99. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  100. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  101. package/src/sap/ui/mdc/link/Factory.js +2 -2
  102. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  103. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  104. package/src/sap/ui/mdc/link/Log.js +1 -1
  105. package/src/sap/ui/mdc/link/Panel.js +140 -177
  106. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  107. package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
  108. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  109. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  110. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  111. package/src/sap/ui/mdc/messagebundle.properties +55 -1
  112. package/src/sap/ui/mdc/messagebundle_ar.properties +39 -4
  113. package/src/sap/ui/mdc/messagebundle_bg.properties +54 -19
  114. package/src/sap/ui/mdc/messagebundle_ca.properties +37 -2
  115. package/src/sap/ui/mdc/messagebundle_cs.properties +52 -17
  116. package/src/sap/ui/mdc/messagebundle_cy.properties +37 -2
  117. package/src/sap/ui/mdc/messagebundle_da.properties +44 -9
  118. package/src/sap/ui/mdc/messagebundle_de.properties +37 -2
  119. package/src/sap/ui/mdc/messagebundle_el.properties +38 -3
  120. package/src/sap/ui/mdc/messagebundle_en.properties +37 -2
  121. package/src/sap/ui/mdc/messagebundle_en_GB.properties +37 -2
  122. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +37 -2
  123. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +61 -4
  124. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +37 -2
  125. package/src/sap/ui/mdc/messagebundle_es.properties +37 -2
  126. package/src/sap/ui/mdc/messagebundle_es_MX.properties +51 -16
  127. package/src/sap/ui/mdc/messagebundle_et.properties +37 -2
  128. package/src/sap/ui/mdc/messagebundle_fi.properties +43 -8
  129. package/src/sap/ui/mdc/messagebundle_fr.properties +38 -3
  130. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +37 -2
  131. package/src/sap/ui/mdc/messagebundle_hi.properties +38 -3
  132. package/src/sap/ui/mdc/messagebundle_hr.properties +37 -2
  133. package/src/sap/ui/mdc/messagebundle_hu.properties +37 -2
  134. package/src/sap/ui/mdc/messagebundle_id.properties +37 -2
  135. package/src/sap/ui/mdc/messagebundle_it.properties +53 -18
  136. package/src/sap/ui/mdc/messagebundle_iw.properties +38 -3
  137. package/src/sap/ui/mdc/messagebundle_ja.properties +37 -2
  138. package/src/sap/ui/mdc/messagebundle_kk.properties +37 -2
  139. package/src/sap/ui/mdc/messagebundle_ko.properties +41 -6
  140. package/src/sap/ui/mdc/messagebundle_lt.properties +37 -2
  141. package/src/sap/ui/mdc/messagebundle_lv.properties +41 -6
  142. package/src/sap/ui/mdc/messagebundle_ms.properties +37 -2
  143. package/src/sap/ui/mdc/messagebundle_nl.properties +42 -7
  144. package/src/sap/ui/mdc/messagebundle_no.properties +45 -10
  145. package/src/sap/ui/mdc/messagebundle_pl.properties +38 -3
  146. package/src/sap/ui/mdc/messagebundle_pt.properties +44 -9
  147. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +37 -2
  148. package/src/sap/ui/mdc/messagebundle_ro.properties +37 -2
  149. package/src/sap/ui/mdc/messagebundle_ru.properties +37 -2
  150. package/src/sap/ui/mdc/messagebundle_sh.properties +37 -2
  151. package/src/sap/ui/mdc/messagebundle_sk.properties +37 -2
  152. package/src/sap/ui/mdc/messagebundle_sl.properties +37 -2
  153. package/src/sap/ui/mdc/messagebundle_sv.properties +39 -4
  154. package/src/sap/ui/mdc/messagebundle_th.properties +40 -5
  155. package/src/sap/ui/mdc/messagebundle_tr.properties +37 -2
  156. package/src/sap/ui/mdc/messagebundle_uk.properties +41 -6
  157. package/src/sap/ui/mdc/messagebundle_vi.properties +37 -2
  158. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +37 -2
  159. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +37 -2
  160. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +19 -5
  161. package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
  162. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -9
  163. package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
  164. package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
  165. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
  166. package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +5 -5
  167. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +112 -96
  168. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
  169. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
  170. package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +206 -116
  171. package/src/sap/ui/mdc/p13n/Engine.js +31 -13
  172. package/src/sap/ui/mdc/p13n/FlexUtil.js +11 -118
  173. package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
  174. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  175. package/src/sap/ui/mdc/p13n/StateUtil.js +20 -6
  176. package/src/sap/ui/mdc/p13n/UIManager.js +5 -7
  177. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
  178. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +9 -6
  179. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
  180. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1092 -48
  181. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
  182. package/src/sap/ui/mdc/p13n/panels/ListView.js +6 -2
  183. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +6 -5
  184. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
  185. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
  186. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
  187. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +14 -7
  188. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
  189. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +10 -17
  190. package/src/sap/ui/mdc/table/Column.js +12 -12
  191. package/src/sap/ui/mdc/table/CreationRow.js +11 -11
  192. package/src/sap/ui/mdc/table/GridTableType.js +5 -6
  193. package/src/sap/ui/mdc/table/PropertyHelper.js +44 -7
  194. package/src/sap/ui/mdc/table/ResponsiveTableType.js +8 -10
  195. package/src/sap/ui/mdc/table/RowSettings.js +4 -4
  196. package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
  197. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  198. package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
  199. package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
  200. package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
  201. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +15 -4
  202. package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
  203. package/src/sap/ui/mdc/ui/Container.js +2 -2
  204. package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
  205. package/src/sap/ui/mdc/util/Common.js +1 -1
  206. package/src/sap/ui/mdc/util/DateUtil.js +1 -1
  207. package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
  208. package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
  209. package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
  210. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  211. package/src/sap/ui/mdc/util/PropertyHelper.js +43 -12
  212. package/src/sap/ui/mdc/util/TypeUtil.js +5 -4
  213. package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
  214. package/src/sap/ui/mdc/valuehelp/Popover.js +2 -1
  215. package/src/sap/ui/mdc/valuehelp/base/Container.js +2 -1
  216. package/src/sap/ui/mdc/valuehelp/base/Content.js +2 -1
  217. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
  218. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +2 -1
  219. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
  220. package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
  221. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -2
  222. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +11 -5
  223. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +43 -8
  224. package/src/sap/ui/mdc/valuehelp/content/MTable.js +43 -24
  225. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
  226. package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
  227. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
  228. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
  229. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
  230. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
  231. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
  232. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
  233. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
  234. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +9 -9
  235. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
  236. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
  237. package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
  238. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
  239. package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
  240. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +261 -138
  241. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
  242. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
  243. package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
  244. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
  245. package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
  246. package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
  247. package/src/sap/ui/mdc/ChartNew.js +0 -1114
  248. package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
  249. package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
  250. package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
  251. package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
  252. package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
  253. package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
  254. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
  255. package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
  256. package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
  257. package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
  258. package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
  259. package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
  260. package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
  261. package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
  262. package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
  263. package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
@@ -46,13 +46,17 @@ function(
46
46
  oMessageBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
47
47
  });
48
48
 
49
+ // shared ListFieldHelp for month operators
50
+ var oMonthFieldHelp;
51
+
52
+
49
53
 
50
54
  /**
51
55
  * Utilities to handle {@link sap.ui.mdc.condition.Operator Operators} and {@link sap.ui.mdc.condition.ConditionObject conditions}.
52
56
  *
53
57
  * @namespace
54
58
  * @author SAP SE
55
- * @version 1.97.1
59
+ * @version 1.99.1
56
60
  * @since 1.73.0
57
61
  * @alias sap.ui.mdc.condition.FilterOperatorUtil
58
62
  *
@@ -459,6 +463,86 @@ function(
459
463
  return UniversalDateUtils.ranges.lastDays(iDuration);
460
464
  }
461
465
  }),
466
+ firstDayWeek: new RangeOperator({
467
+ name: "FIRSTDAYWEEK",
468
+ valueTypes: [Operator.ValueType.Static],
469
+ calcRange: function() {
470
+ return UniversalDateUtils.ranges.firstDayOfWeek();
471
+ },
472
+ formatRange: function(aRange, oDataType) {
473
+ return oDataType.formatValue(aRange[0], "string");
474
+ }
475
+ }),
476
+ lastDayWeek: new RangeOperator({
477
+ name: "LASTDAYWEEK",
478
+ valueTypes: [Operator.ValueType.Static],
479
+ calcRange: function() {
480
+ return UniversalDateUtils.ranges.lastDayOfWeek();
481
+ },
482
+ formatRange: function(aRange, oDataType) {
483
+ return oDataType.formatValue(aRange[0], "string");
484
+ }
485
+ }),
486
+ firstDayMonth: new RangeOperator({
487
+ name: "FIRSTDAYMONTH",
488
+ valueTypes: [Operator.ValueType.Static],
489
+ calcRange: function() {
490
+ return UniversalDateUtils.ranges.firstDayOfMonth();
491
+ },
492
+ formatRange: function(aRange, oDataType) {
493
+ return oDataType.formatValue(aRange[0], "string");
494
+ }
495
+ }),
496
+ lastDayMonth: new RangeOperator({
497
+ name: "LASTDAYMONTH",
498
+ valueTypes: [Operator.ValueType.Static],
499
+ calcRange: function() {
500
+ return UniversalDateUtils.ranges.lastDayOfMonth();
501
+ },
502
+ formatRange: function(aRange, oDataType) {
503
+ return oDataType.formatValue(aRange[0], "string");
504
+ }
505
+ }),
506
+ firstDayQuarter: new RangeOperator({
507
+ name: "FIRSTDAYQUARTER",
508
+ valueTypes: [Operator.ValueType.Static],
509
+ calcRange: function() {
510
+ return UniversalDateUtils.ranges.firstDayOfQuarter();
511
+ },
512
+ formatRange: function(aRange, oDataType) {
513
+ return oDataType.formatValue(aRange[0], "string");
514
+ }
515
+ }),
516
+ lastDayQuarter: new RangeOperator({
517
+ name: "LASTDAYQUARTER",
518
+ valueTypes: [Operator.ValueType.Static],
519
+ calcRange: function() {
520
+ return UniversalDateUtils.ranges.lastDayOfQuarter();
521
+ },
522
+ formatRange: function(aRange, oDataType) {
523
+ return oDataType.formatValue(aRange[0], "string");
524
+ }
525
+ }),
526
+ firstDayYear: new RangeOperator({
527
+ name: "FIRSTDAYYEAR",
528
+ valueTypes: [Operator.ValueType.Static],
529
+ calcRange: function() {
530
+ return UniversalDateUtils.ranges.firstDayOfYear();
531
+ },
532
+ formatRange: function(aRange, oDataType) {
533
+ return oDataType.formatValue(aRange[0], "string");
534
+ }
535
+ }),
536
+ lastDayYear: new RangeOperator({
537
+ name: "LASTDAYYEAR",
538
+ valueTypes: [Operator.ValueType.Static],
539
+ calcRange: function() {
540
+ return UniversalDateUtils.ranges.lastDayOfYear();
541
+ },
542
+ formatRange: function(aRange, oDataType) {
543
+ return oDataType.formatValue(aRange[0], "string");
544
+ }
545
+ }),
462
546
  todayFromTo: new RangeOperator({
463
547
  alias: "TODAYXYDAYS",
464
548
  name: "TODAYFROMTO",
@@ -686,7 +770,7 @@ function(
686
770
  valueTypes: [{ name: "sap.ui.model.type.Integer", constraints: { minimum: 0, maximum: 11 }}],
687
771
  paramTypes: ["(.+)"],
688
772
  additionalInfo: "",
689
- // defaultValues: [0],
773
+ label: [oMessageBundle.getText("operators.SPECIFICMONTH_MONTH.label")],
690
774
  defaultValues: function() {
691
775
  var oDate = new UniversalDate();
692
776
  return [
@@ -724,60 +808,114 @@ function(
724
808
  }
725
809
  aValues.push(sValue);
726
810
  }
727
- return [_getMonths.apply(this).indexOf(aValues[0])];
811
+ return [_getIndexOfMonth.call(this, aValues[0])];
728
812
  }
729
813
 
730
814
  return null;
731
815
  },
732
816
  createControl: function(oType, sPath, iIndex, sId, aClass) {
733
- var getMonthItems = function() {
734
- if (!this._aMonthsItems) {
735
- var aMonths = _getMonths.apply(this);
736
- this._aMonthsItems = [];
737
-
738
- for (var i = 0; i < 12; i++) {
739
- this._aMonthsItems.push({
740
- text: aMonths[i],
741
- key: i
742
- });
817
+ var Field = sap.ui.require("sap/ui/mdc/Field");
818
+ if (Field && _getMonthFieldHelp.call(this)) {
819
+
820
+ var oField = new Field(sId, {
821
+ value: { path: sPath, type: oType, mode: 'TwoWay', targetType: 'raw' },
822
+ additionalValue: { path: sPath, formatter: function(iValue) { return oMonthFieldHelp.getTextForKey(iValue); }, mode: 'OneWay' },
823
+ display: 'Description',
824
+ width: "100%",
825
+ fieldHelp: "LFHForSpecificMonth"
826
+ });
827
+
828
+ return oField;
829
+ } else {
830
+ Log.warning("Operator.createControl", "not able to create the control for the operator " + this.name);
831
+ return null;
832
+ }
833
+ }
834
+ }),
835
+ specificMonthInYear: new RangeOperator({
836
+ name: "SPECIFICMONTHINYEAR",
837
+ valueTypes: [{ name: "sap.ui.model.type.Integer", constraints: { minimum: 0, maximum: 11 }},
838
+ { name: "sap.ui.model.type.Integer", constraints: { minimum: 1, maximum: 9999 }}],
839
+ paramTypes: ["(.+)", "(.+)"],
840
+ additionalInfo: "",
841
+ label: [oMessageBundle.getText("operators.SPECIFICMONTHINYEAR_MONTH.label"), oMessageBundle.getText("operators.SPECIFICMONTHINYEAR_YEAR.label")],
842
+ defaultValues: function() {
843
+ var oDate = new UniversalDate();
844
+ return [
845
+ oDate.getMonth(),
846
+ oDate.getFullYear()
847
+ ];
848
+ },
849
+ calcRange: function(iMonth, iYear) {
850
+ var oDate = new UniversalDate();
851
+ oDate.setMonth(iMonth);
852
+ oDate.setYear(iYear);
853
+ oDate = UniversalDateUtils.getMonthStartDate(oDate);
854
+ return UniversalDateUtils.getRange(0, "MONTH", oDate);
855
+ },
856
+ format: function(oCondition, oType, sDisplayFormat, bHideOperator) {
857
+ var iValue = oCondition.values[0];
858
+ var iYear = oCondition.values[1];
859
+ var sTokenText = this.tokenFormat;
860
+ var sReplace = _getMonths.apply(this)[iValue];
861
+
862
+ if (bHideOperator) {
863
+ return sReplace + "," + iYear;
864
+ } else {
865
+ var replaceRegExp0 = new RegExp("\\$" + 0 + "|" + 0 + "\\$" + "|" + "\\{" + 0 + "\\}", "g");
866
+ var replaceRegExp1 = new RegExp("\\$" + 1 + "|" + 1 + "\\$" + "|" + "\\{" + 1 + "\\}", "g");
867
+ sTokenText = sReplace == null ? null : sTokenText.replace(replaceRegExp0, sReplace);
868
+ return sTokenText.replace(replaceRegExp1, iYear);
869
+ }
870
+ },
871
+ getValues: function(sText, sDisplayFormat, bDefaultOperator) {
872
+ var aMatch = sText.match(this.tokenParseRegExp);
873
+ var aValues;
874
+ if (aMatch || (bDefaultOperator && sText)) {
875
+ aValues = [];
876
+ for (var i = 0; i < this.valueTypes.length; i++) {
877
+ var sValue;
878
+ if (aMatch) {
879
+ sValue = aMatch[i + 1];
880
+ } else if ((bDefaultOperator && sText)) { // only month provided
881
+ sValue = sText;
743
882
  }
883
+ aValues.push(sValue);
744
884
  }
885
+ return [_getIndexOfMonth.call(this, aValues[0]), aValues[1]];
886
+ }
745
887
 
746
- return this._aMonthsItems;
747
- }.bind(this);
748
-
749
- var ListFieldHelp = sap.ui.require("sap/ui/mdc/field/ListFieldHelp");
750
- var ListItem = sap.ui.require("sap/ui/core/ListItem");
888
+ return null;
889
+ },
890
+ createControl: function(oType, sPath, iIndex, sId, aClass) {
891
+ var oField;
751
892
  var Field = sap.ui.require("sap/ui/mdc/Field");
752
- if (!ListFieldHelp || !ListItem || !Field) {
893
+ if (!Field) {
753
894
  Log.warning("Operator.createControl", "not able to create the control for the operator " + this.name);
754
895
  return null;
755
896
  }
756
- if (!this._oListFieldHelp) {
757
- this._oListFieldHelp = new ListFieldHelp({
758
- id: "LFHForSpecificMonth",
759
- items: {
760
- path: "$items>/",
761
- template: new ListItem({
762
- text: {
763
- path: "$items>text"
764
- },
765
- key: {
766
- path: "$items>key"
767
- }
768
- }),
769
- templateShareable: false
770
- }
771
- }).setModel(new JSONModel(getMonthItems()), "$items");
897
+
898
+ if (iIndex == 0) {
899
+ if (_getMonthFieldHelp.call(this)) {
900
+
901
+ oField = new Field(sId, {
902
+ value: { path: sPath, type: oType, mode: 'TwoWay', targetType: 'raw' },
903
+ additionalValue: { path: sPath, formatter: function(iValue) { return oMonthFieldHelp.getTextForKey(iValue); }, mode: 'OneWay' },
904
+ display: 'Description',
905
+ width: "100%",
906
+ fieldHelp: "LFHForSpecificMonth"
907
+ });
908
+ } else {
909
+ Log.warning("Operator.createControl", "not able to create the control for the operator " + this.name);
910
+ }
772
911
  }
773
912
 
774
- var oField = new Field(sId, {
775
- value: { path: sPath, type: oType, mode: 'TwoWay', targetType: 'raw' },
776
- additionalValue: { path: sPath, formatter: function(iValue) { return this._oListFieldHelp.getTextForKey(iValue); }.bind(this), mode: 'OneWay' },
777
- display: 'Description',
778
- width: "100%",
779
- fieldHelp: "LFHForSpecificMonth"
780
- });
913
+ if (iIndex == 1) {
914
+ oField = new Field(sId, {
915
+ value: { path: "$this>", type: oType, mode: 'TwoWay', targetType: 'raw' },
916
+ width: "100%"
917
+ });
918
+ }
781
919
 
782
920
  return oField;
783
921
  }
@@ -788,6 +926,13 @@ function(
788
926
  calcRange: function() {
789
927
  return UniversalDateUtils.ranges.yearToDate();
790
928
  }
929
+ }),
930
+ dateToYear: new RangeOperator({
931
+ name: "DATETOYEAR",
932
+ valueTypes: [Operator.ValueType.Static],
933
+ calcRange: function() {
934
+ return UniversalDateUtils.ranges.dateToYear();
935
+ }
791
936
  })
792
937
  },
793
938
 
@@ -1384,6 +1529,14 @@ function(
1384
1529
  FilterOperatorUtil._mOperators.today,
1385
1530
  FilterOperatorUtil._mOperators.yesterday,
1386
1531
  FilterOperatorUtil._mOperators.tomorrow,
1532
+ FilterOperatorUtil._mOperators.firstDayWeek,
1533
+ FilterOperatorUtil._mOperators.lastDayWeek,
1534
+ FilterOperatorUtil._mOperators.firstDayMonth,
1535
+ FilterOperatorUtil._mOperators.lastDayMonth,
1536
+ FilterOperatorUtil._mOperators.firstDayQuarter,
1537
+ FilterOperatorUtil._mOperators.lastDayQuarter,
1538
+ FilterOperatorUtil._mOperators.firstDayYear,
1539
+ FilterOperatorUtil._mOperators.lastDayYear,
1387
1540
  FilterOperatorUtil._mOperators.todayFromTo,
1388
1541
  FilterOperatorUtil._mOperators.lastDays,
1389
1542
  FilterOperatorUtil._mOperators.nextDays,
@@ -1395,6 +1548,7 @@ function(
1395
1548
  FilterOperatorUtil._mOperators.nextWeeks,
1396
1549
 
1397
1550
  FilterOperatorUtil._mOperators.specificMonth,
1551
+ FilterOperatorUtil._mOperators.specificMonthInYear,
1398
1552
  FilterOperatorUtil._mOperators.thisMonth,
1399
1553
  FilterOperatorUtil._mOperators.lastMonth,
1400
1554
  FilterOperatorUtil._mOperators.lastMonths,
@@ -1418,7 +1572,8 @@ function(
1418
1572
  FilterOperatorUtil._mOperators.nextYear,
1419
1573
  FilterOperatorUtil._mOperators.nextYears,
1420
1574
 
1421
- FilterOperatorUtil._mOperators.yearToDate
1575
+ FilterOperatorUtil._mOperators.yearToDate,
1576
+ FilterOperatorUtil._mOperators.dateToYear
1422
1577
  ]
1423
1578
  );
1424
1579
  FilterOperatorUtil.setOperatorsForType(
@@ -1539,6 +1694,64 @@ function(
1539
1694
  return this._aMonths;
1540
1695
  }
1541
1696
 
1697
+ function _getIndexOfMonth(sMonth) {
1698
+ var sLowerCaseMonth = sMonth.toLowerCase();
1699
+ var aMonths = _getMonths.apply(this);
1700
+ var iIndex = -1;
1701
+ aMonths.some(function(sElement, i) {
1702
+ if (sElement.toLowerCase() == sLowerCaseMonth) {
1703
+ iIndex = i;
1704
+ return true;
1705
+ }
1706
+ });
1707
+ return iIndex;
1708
+ }
1709
+
1710
+ function _getMonthFieldHelp() {
1711
+ if (!oMonthFieldHelp) {
1712
+ var ListFieldHelp = sap.ui.require("sap/ui/mdc/field/ListFieldHelp");
1713
+ var ListItem = sap.ui.require("sap/ui/core/ListItem");
1714
+ if (!ListFieldHelp || !ListItem) {
1715
+ Log.warning("Operator.createControl", "not able to create the control for the operator " + this.name);
1716
+ return null;
1717
+ }
1718
+
1719
+ var getMonthItems = function() {
1720
+ if (!this._aMonthsItems) {
1721
+ var aMonths = _getMonths.apply(this);
1722
+ this._aMonthsItems = [];
1723
+
1724
+ for (var i = 0; i < 12; i++) {
1725
+ this._aMonthsItems.push({
1726
+ text: aMonths[i],
1727
+ key: i
1728
+ });
1729
+ }
1730
+ }
1731
+
1732
+ return this._aMonthsItems;
1733
+ }.bind(this);
1734
+
1735
+ oMonthFieldHelp = new ListFieldHelp({
1736
+ id: "LFHForSpecificMonth",
1737
+ items: {
1738
+ path: "$items>/",
1739
+ template: new ListItem({
1740
+ text: {
1741
+ path: "$items>text"
1742
+ },
1743
+ key: {
1744
+ path: "$items>key"
1745
+ }
1746
+ }),
1747
+ templateShareable: false
1748
+ }
1749
+ }).setModel(new JSONModel(getMonthItems()), "$items");
1750
+ }
1751
+
1752
+ return oMonthFieldHelp;
1753
+ }
1754
+
1542
1755
  return FilterOperatorUtil;
1543
1756
 
1544
1757
  }, /* bExport= */ true);
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  * @param {string} [oConfiguration.additionalInfo] additionalInfo text for the operator. Will be shown in the operator suggest as second column. If not used (undefined) the Include or Exclude information of the operator is used.
84
84
  * @constructor
85
85
  * @author SAP SE
86
- * @version 1.97.1
86
+ * @version 1.99.1
87
87
  * @private
88
88
  * @ui5-restricted sap.fe
89
89
  * @MDC_PUBLIC_CANDIDATE
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @extends sap.m.DynamicDateOption
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.97.1
48
+ * @version 1.99.1
49
49
  *
50
50
  * @private
51
51
  * @ui5-restricted sap.ui.mdc
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @param {int[]|function} [oConfiguration.defaultValues] Array of values for the defaults of <code>RangeOperators</code> parameter. This can be a function, which returns the array of values. If not used the default for the values is 1.
34
34
  * @constructor
35
35
  * @author SAP SE
36
- * @version 1.97.1
36
+ * @version 1.99.1
37
37
  * @private
38
38
  * @ui5-restricted sap.fe
39
39
  * @MDC_PUBLIC_CANDIDATE
@@ -4,15 +4,90 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
-
8
- ], function () {
7
+ "sap/ui/mdc/p13n/Engine"
8
+ ], function (Engine) {
9
9
  "use strict";
10
10
 
11
11
  return {
12
- name: "{name}",
13
- description: "{description}",
14
12
  actions: {
15
- //TBD: keyuser support
13
+ settings: function () {
14
+ //RTA expects the settings to be returned as function
15
+ return {
16
+ handler: function (oControl, mPropertyBag) {
17
+ return Engine.getInstance().getRTASettingsActionHandler(oControl, mPropertyBag, oControl.getP13nMode());
18
+ }
19
+ };
20
+ }
21
+ },
22
+ properties: {
23
+ width: {
24
+ ignore: true
25
+ },
26
+ height: {
27
+ ignore: true
28
+ },
29
+ delegate: {
30
+ ignore: true
31
+ },
32
+ header: {
33
+ ignore: true
34
+ },
35
+ noDataText: {
36
+ ignore: true
37
+ },
38
+ p13nMode: {
39
+ ignore: true
40
+ },
41
+ legendVisible: {
42
+ ignore: true
43
+ },
44
+ ignoreToolbarActions: {
45
+ ignore: true
46
+ },
47
+ minWidth: {
48
+ ignore: true
49
+ },
50
+ minHeight: {
51
+ ignore: true
52
+ },
53
+ sortConditions: {
54
+ ignore: true
55
+ },
56
+ filterConditions: {
57
+ ignore: true
58
+ },
59
+ showChartTooltip: {
60
+ ignore: true
61
+ },
62
+ autoBindOnInit: {
63
+ ignore: true
64
+ },
65
+ chartType: {
66
+ ignore: true
67
+ },
68
+ showSelectionDetails: {
69
+ ignore: true
70
+ }
71
+ },
72
+ aggregations: {
73
+ items: {
74
+ ignore: true
75
+ },
76
+ actions: {
77
+ ignore: true
78
+ },
79
+ selectionDetailsActions: {
80
+ ignore: true
81
+ },
82
+ _toolbar: {
83
+ ignore: false
84
+ },
85
+ _breadcrumbs: {
86
+ ignore: true
87
+ },
88
+ _innerChart: {
89
+ ignore: true
90
+ }
16
91
  }
17
92
  };
18
93
 
@@ -3,12 +3,14 @@
3
3
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
- sap.ui.define([
7
- ], function () {
6
+
7
+ sap.ui.define(['sap/ui/fl/Utils', 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI'], function(Utils, FlexRuntimeInfoAPI) {
8
8
  "use strict";
9
9
 
10
+ var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
11
+
10
12
  return {
11
- properties: {
13
+ properties: {
12
14
  value: {
13
15
  ignore: true
14
16
  },
@@ -16,6 +18,80 @@ sap.ui.define([
16
18
  additionalValue: {
17
19
  ignore: true
18
20
  }
19
- }
20
- };
21
+ },
22
+ getStableElements: function(oField) {
23
+ if (!oField.getFieldInfo()) {
24
+ return [];
25
+ }
26
+ var oFieldInfo = oField.getFieldInfo();
27
+ var oControl = typeof oFieldInfo.getSourceControl() === "string" ? sap.ui.getCore().byId(oFieldInfo.getSourceControl()) : oFieldInfo.getSourceControl();
28
+ if (!oControl) {
29
+ oControl = oField;
30
+ }
31
+ var oAppComponent = Utils.getAppComponentForControl(oControl) || Utils.getAppComponentForControl(oField);
32
+ var sStableID = oFieldInfo._createPanelId(Utils, FlexRuntimeInfoAPI);
33
+
34
+ return [
35
+ {
36
+ id: sStableID,
37
+ appComponent: oAppComponent
38
+ }
39
+ ];
40
+ },
41
+ actions: {
42
+ settings: function(oField) {
43
+ if (!oField.getFieldInfo()) {
44
+ return {};
45
+ }
46
+
47
+ return {
48
+ name: oResourceBundle.getText("info.POPOVER_DEFINE_LINKS"),
49
+ handler: function (oControl, mPropertyBag) {
50
+ var oFieldInfo = oControl.getFieldInfo();
51
+ return oFieldInfo.getContent().then(function(oPanel) {
52
+ oFieldInfo.addDependent(oPanel);
53
+ // wait for createItem changes
54
+ return FlexRuntimeInfoAPI.waitForChanges({
55
+ element: oPanel
56
+ }).then(function() {
57
+ var oEngine = sap.ui.mdc.p13n.Engine.getInstance();
58
+ mPropertyBag.fnAfterClose = function() {
59
+ oPanel.destroy();
60
+ };
61
+ var fnGetChanges = function() {
62
+ return oEngine.getRTASettingsActionHandler(oPanel, mPropertyBag, "LinkItems").then(function(aChanges) {
63
+ aChanges.forEach(function(oChange) {
64
+ var oSelectorElement = oChange.selectorElement;
65
+ delete oChange.selectorElement;
66
+
67
+ var oAppComponent = Utils.getAppComponentForControl(oControl) || Utils.getAppComponentForControl(oField);
68
+ oChange.selectorControl = {
69
+ id: oSelectorElement.getId(),
70
+ controlType: oSelectorElement === oPanel ? "sap.ui.mdc.link.Panel" : "sap.ui.mdc.link.PanelItem",
71
+ appComponent: oAppComponent
72
+ };
73
+ });
74
+ return aChanges;
75
+ });
76
+ };
77
+ var aPanelItems = oPanel.getItems();
78
+
79
+ if (aPanelItems.length > 0) {
80
+ // wait for hideItem / revealItem changes
81
+ return FlexRuntimeInfoAPI.waitForChanges({
82
+ selectors: aPanelItems
83
+ }).then(function() {
84
+ return fnGetChanges();
85
+ });
86
+ } else {
87
+ return fnGetChanges();
88
+ }
89
+ });
90
+ });
91
+ },
92
+ CAUTION_variantIndependent: true
93
+ };
94
+ }
95
+ }
96
+ };
21
97
  });
@@ -23,6 +23,9 @@ sap.ui.define([], function() {
23
23
  filterConditions: {
24
24
  ignore: true
25
25
  },
26
+ propertyInfo: {
27
+ ignore: true
28
+ },
26
29
  suspendSelection: {
27
30
  ignore: true
28
31
  }