@sapui5/sap.fe.core 1.97.0 → 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.
- package/package.json +7 -4
- package/src/sap/fe/core/.library +1 -1
- package/src/sap/fe/core/AnnotationHelper.js +309 -405
- package/src/sap/fe/core/AnnotationHelper.ts +315 -0
- package/src/sap/fe/core/AppComponent.js +389 -397
- package/src/sap/fe/core/AppComponent.ts +403 -0
- package/src/sap/fe/core/AppStateHandler.js +198 -181
- package/src/sap/fe/core/AppStateHandler.ts +171 -0
- package/src/sap/fe/core/BaseController.js +83 -58
- package/src/sap/fe/core/BaseController.ts +68 -0
- package/src/sap/fe/core/BusyLocker.js +105 -121
- package/src/sap/fe/core/BusyLocker.ts +98 -0
- package/src/sap/fe/core/CommonUtils.js +2164 -2379
- package/src/sap/fe/core/CommonUtils.ts +2177 -0
- package/src/sap/fe/core/ExtensionAPI.js +279 -266
- package/src/sap/fe/core/ExtensionAPI.ts +250 -0
- package/src/sap/fe/core/PageController.js +218 -125
- package/src/sap/fe/core/PageController.ts +129 -0
- package/src/sap/fe/core/RouterProxy.js +924 -807
- package/src/sap/fe/core/RouterProxy.ts +840 -0
- package/src/sap/fe/core/Synchronization.js +41 -35
- package/src/sap/fe/core/Synchronization.ts +29 -0
- package/src/sap/fe/core/TemplateComponent.js +173 -155
- package/src/sap/fe/core/TemplateComponent.ts +173 -0
- package/src/sap/fe/core/TemplateModel.js +79 -54
- package/src/sap/fe/core/TemplateModel.ts +63 -0
- package/src/sap/fe/core/TransactionHelper.js +1560 -1579
- package/src/sap/fe/core/TransactionHelper.ts +1717 -0
- package/src/sap/fe/core/actions/collaboration/ActivitySync.js +392 -0
- package/src/sap/fe/core/actions/collaboration/ActivitySync.ts +355 -0
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.js +136 -0
- package/src/sap/fe/core/actions/collaboration/CollaborationCommon.ts +119 -0
- package/src/sap/fe/core/actions/collaboration/Manage.js +262 -0
- package/src/sap/fe/core/actions/collaboration/Manage.ts +244 -0
- package/src/sap/fe/core/actions/collaboration/ManageDialog.fragment.xml +103 -0
- package/src/sap/fe/core/actions/collaboration/UserDetails.fragment.xml +13 -0
- package/src/sap/fe/core/actions/draft.js +521 -581
- package/src/sap/fe/core/actions/draft.ts +566 -0
- package/src/sap/fe/core/actions/messageHandling.js +564 -511
- package/src/sap/fe/core/actions/messageHandling.ts +552 -0
- package/src/sap/fe/core/actions/nonDraft.js +17 -19
- package/src/sap/fe/core/actions/nonDraft.ts +12 -0
- package/src/sap/fe/core/actions/operations.js +1093 -1211
- package/src/sap/fe/core/actions/operations.ts +1192 -0
- package/src/sap/fe/core/actions/sticky.js +114 -104
- package/src/sap/fe/core/actions/sticky.ts +119 -0
- package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.js +70 -66
- package/src/sap/fe/core/controllerextensions/ControllerExtensionMetadata.ts +65 -0
- package/src/sap/fe/core/controllerextensions/EditFlow.js +1594 -1701
- package/src/sap/fe/core/controllerextensions/EditFlow.ts +1672 -0
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.js +80 -54
- package/src/sap/fe/core/controllerextensions/IntentBasedNavigation.ts +61 -0
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.js +719 -505
- package/src/sap/fe/core/controllerextensions/InternalEditFlow.ts +783 -0
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.js +797 -813
- package/src/sap/fe/core/controllerextensions/InternalIntentBasedNavigation.ts +803 -0
- package/src/sap/fe/core/controllerextensions/InternalRouting.js +1005 -973
- package/src/sap/fe/core/controllerextensions/InternalRouting.ts +978 -0
- package/src/sap/fe/core/controllerextensions/KPIManagement.js +530 -476
- package/src/sap/fe/core/controllerextensions/KPIManagement.ts +137 -46
- package/src/sap/fe/core/controllerextensions/MassEdit.js +144 -0
- package/src/sap/fe/core/controllerextensions/MassEdit.ts +156 -0
- package/src/sap/fe/core/controllerextensions/MessageHandler.js +234 -232
- package/src/sap/fe/core/controllerextensions/MessageHandler.ts +225 -0
- package/src/sap/fe/core/controllerextensions/PageReady.js +302 -337
- package/src/sap/fe/core/controllerextensions/PageReady.ts +23 -17
- package/src/sap/fe/core/controllerextensions/Paginator.js +189 -148
- package/src/sap/fe/core/controllerextensions/Paginator.ts +163 -0
- package/src/sap/fe/core/controllerextensions/Placeholder.js +158 -146
- package/src/sap/fe/core/controllerextensions/Placeholder.ts +151 -0
- package/src/sap/fe/core/controllerextensions/Routing.js +145 -106
- package/src/sap/fe/core/controllerextensions/Routing.ts +132 -0
- package/src/sap/fe/core/controllerextensions/RoutingListener.js +8 -6
- package/src/sap/fe/core/controllerextensions/RoutingListener.ts +3 -0
- package/src/sap/fe/core/controllerextensions/Share.js +220 -244
- package/src/sap/fe/core/controllerextensions/Share.ts +231 -0
- package/src/sap/fe/core/controllerextensions/SideEffects.js +593 -634
- package/src/sap/fe/core/controllerextensions/SideEffects.ts +29 -27
- package/src/sap/fe/core/controllerextensions/ViewState.js +789 -806
- package/src/sap/fe/core/controllerextensions/ViewState.ts +805 -0
- package/src/sap/fe/core/controls/ActionParameterDialog.fragment.xml +4 -3
- package/src/sap/fe/core/controls/ActionPartial.fragment.xml +2 -2
- package/src/sap/fe/core/controls/CommandExecution.js +68 -66
- package/src/sap/fe/core/controls/CommandExecution.ts +72 -0
- package/src/sap/fe/core/controls/ConditionalWrapper.js +91 -75
- package/src/sap/fe/core/controls/ConditionalWrapper.ts +83 -0
- package/src/sap/fe/core/controls/CustomQuickViewPage.js +131 -125
- package/src/sap/fe/core/controls/CustomQuickViewPage.ts +126 -0
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.js +105 -110
- package/src/sap/fe/core/controls/DataLossOrDraftDiscard/DataLossOrDraftDiscardHandler.ts +101 -0
- package/src/sap/fe/core/controls/FieldWrapper.js +122 -140
- package/src/sap/fe/core/controls/FieldWrapper.ts +115 -0
- package/src/sap/fe/core/controls/FilterBar.js +163 -159
- package/src/sap/fe/core/controls/FilterBar.ts +143 -0
- package/src/sap/fe/core/controls/FormElementWrapper.js +46 -44
- package/src/sap/fe/core/controls/FormElementWrapper.ts +40 -0
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.js +38 -42
- package/src/sap/fe/core/controls/MultiValueParameterDelegate.ts +31 -0
- package/src/sap/fe/core/controls/NonComputedVisibleKeyFieldsDialog.fragment.xml +2 -1
- package/src/sap/fe/core/controls/filterbar/FilterContainer.js +127 -116
- package/src/sap/fe/core/controls/filterbar/FilterContainer.ts +98 -0
- package/src/sap/fe/core/controls/filterbar/VisualFilter.js +242 -255
- package/src/sap/fe/core/controls/filterbar/VisualFilter.ts +245 -0
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.js +151 -141
- package/src/sap/fe/core/controls/filterbar/VisualFilterContainer.ts +125 -0
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.js +336 -322
- package/src/sap/fe/core/controls/filterbar/utils/VisualFilterUtils.ts +337 -0
- package/src/sap/fe/core/controls/massEdit/MassEditDialog.fragment.xml +106 -0
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.js +79 -0
- package/src/sap/fe/core/controls/massEdit/MassEditHandlers.ts +70 -0
- package/src/sap/fe/core/converters/ConverterContext.js +348 -367
- package/src/sap/fe/core/converters/ConverterContext.ts +33 -19
- package/src/sap/fe/core/converters/ManifestSettings.js +12 -1
- package/src/sap/fe/core/converters/ManifestSettings.ts +16 -1
- package/src/sap/fe/core/converters/ManifestWrapper.js +354 -354
- package/src/sap/fe/core/converters/ManifestWrapper.ts +34 -6
- package/src/sap/fe/core/converters/MetaModelConverter.js +72 -9
- package/src/sap/fe/core/converters/MetaModelConverter.ts +75 -16
- package/src/sap/fe/core/converters/TemplateConverter.js +1 -1
- package/src/sap/fe/core/converters/TemplateConverter.ts +4 -3
- package/src/sap/fe/core/converters/annotations/DataField.js +28 -14
- package/src/sap/fe/core/converters/annotations/DataField.ts +38 -14
- package/src/sap/fe/core/converters/common/AnnotationConverter.js +33 -21
- package/src/sap/fe/core/converters/controls/Common/Action.js +11 -2
- package/src/sap/fe/core/converters/controls/Common/Action.ts +8 -2
- package/src/sap/fe/core/converters/controls/Common/Chart.js +5 -3
- package/src/sap/fe/core/converters/controls/Common/Chart.ts +11 -3
- package/src/sap/fe/core/converters/controls/Common/DataVisualization.js +3 -3
- package/src/sap/fe/core/converters/controls/Common/DataVisualization.ts +2 -2
- package/src/sap/fe/core/converters/controls/Common/Form.js +21 -11
- package/src/sap/fe/core/converters/controls/Common/Form.ts +28 -6
- package/src/sap/fe/core/converters/controls/Common/KPI.js +69 -4
- package/src/sap/fe/core/converters/controls/Common/KPI.ts +75 -2
- package/src/sap/fe/core/converters/controls/Common/Table.js +507 -408
- package/src/sap/fe/core/converters/controls/Common/Table.ts +618 -500
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.js +592 -0
- package/src/sap/fe/core/converters/controls/Common/table/StandardActions.ts +718 -0
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.js +465 -59
- package/src/sap/fe/core/converters/controls/ListReport/FilterBar.ts +462 -72
- package/src/sap/fe/core/converters/controls/ListReport/VisualFilters.js +2 -2
- package/src/sap/fe/core/converters/controls/ListReport/VisualFilters.ts +1 -1
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.js +17 -9
- package/src/sap/fe/core/converters/controls/ObjectPage/SubSection.ts +24 -9
- package/src/sap/fe/core/converters/helpers/Aggregation.js +118 -121
- package/src/sap/fe/core/converters/helpers/Aggregation.ts +28 -5
- package/src/sap/fe/core/converters/helpers/BindingHelper.js +20 -6
- package/src/sap/fe/core/converters/helpers/BindingHelper.ts +16 -4
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.js +12 -1
- package/src/sap/fe/core/converters/helpers/ConfigurableObject.ts +11 -0
- package/src/sap/fe/core/converters/helpers/IssueManager.js +7 -1
- package/src/sap/fe/core/converters/helpers/IssueManager.ts +6 -0
- package/src/sap/fe/core/converters/helpers/Key.js +42 -57
- package/src/sap/fe/core/converters/helpers/Key.ts +1 -1
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.js +28 -7
- package/src/sap/fe/core/converters/objectPage/HeaderAndFooterAction.ts +23 -6
- package/src/sap/fe/core/converters/templates/ListReportConverter.js +20 -7
- package/src/sap/fe/core/converters/templates/ListReportConverter.ts +36 -14
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.js +7 -5
- package/src/sap/fe/core/converters/templates/ObjectPageConverter.ts +5 -1
- package/src/sap/fe/core/designtime/AppComponent.designtime.js +93 -90
- package/src/sap/fe/core/designtime/AppComponent.designtime.ts +91 -0
- package/src/sap/fe/core/formatters/CollaborationFormatter.js +104 -0
- package/src/sap/fe/core/formatters/CollaborationFormatter.ts +60 -0
- package/src/sap/fe/core/formatters/CriticalityFormatter.js +1 -1
- package/src/sap/fe/core/formatters/CriticalityFormatter.ts +1 -1
- package/src/sap/fe/core/formatters/FPMFormatter.js +1 -1
- package/src/sap/fe/core/formatters/FPMFormatter.ts +4 -10
- package/src/sap/fe/core/formatters/KPIFormatter.js +1 -1
- package/src/sap/fe/core/formatters/KPIFormatter.ts +3 -1
- package/src/sap/fe/core/formatters/TableFormatter.js +91 -29
- package/src/sap/fe/core/formatters/TableFormatter.ts +94 -28
- package/src/sap/fe/core/formatters/ValueFormatter.js +30 -5
- package/src/sap/fe/core/formatters/ValueFormatter.ts +30 -7
- package/src/sap/fe/core/fpm/Component.js +51 -54
- package/src/sap/fe/core/fpm/Component.ts +48 -0
- package/src/sap/fe/core/helpers/AppStartupHelper.js +373 -0
- package/src/sap/fe/core/helpers/AppStartupHelper.ts +417 -0
- package/src/sap/fe/core/helpers/BindingExpression.js +489 -442
- package/src/sap/fe/core/helpers/BindingExpression.ts +486 -469
- package/src/sap/fe/core/helpers/ClassSupport.js +212 -76
- package/src/sap/fe/core/helpers/ClassSupport.ts +198 -71
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.js +64 -59
- package/src/sap/fe/core/helpers/DynamicAnnotationPathHelper.ts +52 -0
- package/src/sap/fe/core/helpers/EditState.js +81 -84
- package/src/sap/fe/core/helpers/EditState.ts +81 -0
- package/src/sap/fe/core/helpers/ExcelFormatHelper.js +62 -48
- package/src/sap/fe/core/helpers/ExcelFormatHelper.ts +49 -0
- package/src/sap/fe/core/helpers/FPMHelper.js +52 -56
- package/src/sap/fe/core/helpers/FPMHelper.ts +62 -0
- package/src/sap/fe/core/helpers/KeepAliveHelper.js +4 -5
- package/src/sap/fe/core/helpers/KeepAliveHelper.ts +10 -10
- package/src/sap/fe/core/helpers/MassEditHelper.js +604 -0
- package/src/sap/fe/core/helpers/MassEditHelper.ts +699 -0
- package/src/sap/fe/core/helpers/ModelHelper.js +253 -225
- package/src/sap/fe/core/helpers/ModelHelper.ts +250 -0
- package/src/sap/fe/core/helpers/PasteHelper.js +210 -132
- package/src/sap/fe/core/helpers/PasteHelper.ts +196 -0
- package/src/sap/fe/core/helpers/SemanticDateOperators.js +336 -313
- package/src/sap/fe/core/helpers/SemanticDateOperators.ts +334 -0
- package/src/sap/fe/core/helpers/SemanticKeyHelper.js +66 -67
- package/src/sap/fe/core/helpers/SemanticKeyHelper.ts +73 -0
- package/src/sap/fe/core/helpers/StableIdHelper.js +4 -7
- package/src/sap/fe/core/helpers/StableIdHelper.ts +2 -6
- package/src/sap/fe/core/jsx-runtime/jsx.js +1 -1
- package/src/sap/fe/core/jsx-runtime/jsx.ts +1 -1
- package/src/sap/fe/core/library.js +427 -425
- package/src/sap/fe/core/library.support.js +23 -27
- package/src/sap/fe/core/library.support.ts +23 -0
- package/src/sap/fe/core/library.ts +420 -0
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.js +64 -0
- package/src/sap/fe/core/manifestMerger/ChangePageConfiguration.ts +69 -0
- package/src/sap/fe/core/messagebundle.properties +78 -13
- package/src/sap/fe/core/messagebundle_ar.properties +58 -7
- package/src/sap/fe/core/messagebundle_bg.properties +58 -7
- package/src/sap/fe/core/messagebundle_ca.properties +58 -7
- package/src/sap/fe/core/messagebundle_cs.properties +59 -8
- package/src/sap/fe/core/messagebundle_cy.properties +58 -7
- package/src/sap/fe/core/messagebundle_da.properties +58 -7
- package/src/sap/fe/core/messagebundle_de.properties +58 -7
- package/src/sap/fe/core/messagebundle_el.properties +58 -7
- package/src/sap/fe/core/messagebundle_en.properties +57 -6
- package/src/sap/fe/core/messagebundle_en_GB.properties +57 -6
- package/src/sap/fe/core/messagebundle_en_US_sappsd.properties +61 -6
- package/src/sap/fe/core/messagebundle_en_US_saprigi.properties +58 -7
- package/src/sap/fe/core/messagebundle_en_US_saptrc.properties +58 -7
- package/src/sap/fe/core/messagebundle_es.properties +58 -7
- package/src/sap/fe/core/messagebundle_es_MX.properties +58 -7
- package/src/sap/fe/core/messagebundle_et.properties +58 -7
- package/src/sap/fe/core/messagebundle_fi.properties +60 -9
- package/src/sap/fe/core/messagebundle_fr.properties +64 -13
- package/src/sap/fe/core/messagebundle_fr_CA.properties +59 -8
- package/src/sap/fe/core/messagebundle_hi.properties +58 -7
- package/src/sap/fe/core/messagebundle_hr.properties +58 -7
- package/src/sap/fe/core/messagebundle_hu.properties +59 -8
- package/src/sap/fe/core/messagebundle_id.properties +61 -10
- package/src/sap/fe/core/messagebundle_it.properties +58 -7
- package/src/sap/fe/core/messagebundle_iw.properties +58 -7
- package/src/sap/fe/core/messagebundle_ja.properties +58 -7
- package/src/sap/fe/core/messagebundle_kk.properties +58 -7
- package/src/sap/fe/core/messagebundle_ko.properties +58 -7
- package/src/sap/fe/core/messagebundle_lt.properties +58 -7
- package/src/sap/fe/core/messagebundle_lv.properties +59 -8
- package/src/sap/fe/core/messagebundle_ms.properties +58 -7
- package/src/sap/fe/core/messagebundle_nl.properties +58 -7
- package/src/sap/fe/core/messagebundle_no.properties +58 -7
- package/src/sap/fe/core/messagebundle_pl.properties +58 -7
- package/src/sap/fe/core/messagebundle_pt.properties +59 -8
- package/src/sap/fe/core/messagebundle_pt_PT.properties +58 -7
- package/src/sap/fe/core/messagebundle_ro.properties +58 -7
- package/src/sap/fe/core/messagebundle_ru.properties +58 -7
- package/src/sap/fe/core/messagebundle_sh.properties +58 -7
- package/src/sap/fe/core/messagebundle_sk.properties +58 -7
- package/src/sap/fe/core/messagebundle_sl.properties +58 -7
- package/src/sap/fe/core/messagebundle_sv.properties +59 -8
- package/src/sap/fe/core/messagebundle_th.properties +58 -7
- package/src/sap/fe/core/messagebundle_tr.properties +60 -9
- package/src/sap/fe/core/messagebundle_uk.properties +58 -7
- package/src/sap/fe/core/messagebundle_vi.properties +58 -7
- package/src/sap/fe/core/messagebundle_zh_CN.properties +58 -7
- package/src/sap/fe/core/messagebundle_zh_TW.properties +58 -7
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.js +45 -71
- package/src/sap/fe/core/services/AsyncComponentServiceFactory.ts +3 -1
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.js +231 -202
- package/src/sap/fe/core/services/CacheHandlerServiceFactory.ts +212 -0
- package/src/sap/fe/core/services/EnvironmentServiceFactory.js +67 -92
- package/src/sap/fe/core/services/EnvironmentServiceFactory.ts +10 -6
- package/src/sap/fe/core/services/NavigationServiceFactory.js +351 -300
- package/src/sap/fe/core/services/NavigationServiceFactory.ts +313 -0
- package/src/sap/fe/core/services/ResourceModelServiceFactory.js +114 -81
- package/src/sap/fe/core/services/ResourceModelServiceFactory.ts +83 -0
- package/src/sap/fe/core/services/RoutingServiceFactory.js +927 -1152
- package/src/sap/fe/core/services/RoutingServiceFactory.ts +898 -0
- package/src/sap/fe/core/services/ShellServicesFactory.js +649 -707
- package/src/sap/fe/core/services/ShellServicesFactory.ts +52 -15
- package/src/sap/fe/core/services/SideEffectsServiceFactory.js +569 -637
- package/src/sap/fe/core/services/SideEffectsServiceFactory.ts +78 -102
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.js +429 -478
- package/src/sap/fe/core/services/TemplatedViewServiceFactory.ts +460 -0
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.js +10 -8
- package/src/sap/fe/core/services/view/TemplatingErrorPage.controller.ts +8 -0
- package/src/sap/fe/core/support/AnnotationIssue.support.js +15 -3
- package/src/sap/fe/core/support/AnnotationIssue.support.ts +16 -2
- package/src/sap/fe/core/support/CollectionFacetUnsupportedLevel.support.js +2 -2
- package/src/sap/fe/core/support/CollectionFacetUnsupportedLevel.support.ts +1 -1
- package/src/sap/fe/core/support/CommonHelper.js +1 -1
- package/src/sap/fe/core/support/CommonHelper.ts +1 -1
- package/src/sap/fe/core/support/Diagnostics.js +36 -48
- package/src/sap/fe/core/support/InvalidAnnotationColumnKey.support.js +38 -0
- package/src/sap/fe/core/support/InvalidAnnotationColumnKey.support.ts +18 -0
- package/src/sap/fe/core/templating/DataModelPathHelper.js +97 -127
- package/src/sap/fe/core/templating/DataModelPathHelper.ts +112 -135
- package/src/sap/fe/core/templating/DisplayModeFormatter.js +114 -0
- package/src/sap/fe/core/templating/DisplayModeFormatter.ts +86 -0
- package/src/sap/fe/core/templating/FieldControlHelper.js +8 -8
- package/src/sap/fe/core/templating/FieldControlHelper.ts +25 -7
- package/src/sap/fe/core/templating/FilterHelper.js +140 -78
- package/src/sap/fe/core/templating/FilterHelper.ts +149 -78
- package/src/sap/fe/core/templating/PropertyHelper.js +3 -3
- package/src/sap/fe/core/templating/PropertyHelper.ts +2 -2
- package/src/sap/fe/core/templating/UIFormatters.js +76 -135
- package/src/sap/fe/core/templating/UIFormatters.ts +76 -99
- package/src/sap/fe/core/type/Email.js +1 -1
- package/src/sap/fe/core/type/Email.ts +4 -6
- package/ui5.yaml +0 -3
- package/src/sap/fe/core/controls/filterbar.d.js +0 -8
- package/src/sap/fe/core/controls/filterbar.d.ts +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Context from "sap/ui/model/odata/v4/Context";
|
|
2
2
|
import { convertMetaModelContext, getInvolvedDataModelObjects } from "sap/fe/core/converters/MetaModelConverter";
|
|
3
3
|
import {
|
|
4
4
|
addTypeInformation,
|
|
5
5
|
and,
|
|
6
6
|
annotationExpression,
|
|
7
|
+
bindingExpression,
|
|
7
8
|
BindingExpression,
|
|
8
9
|
BindingExpressionExpression,
|
|
9
10
|
compileBinding,
|
|
@@ -18,7 +19,7 @@ import {
|
|
|
18
19
|
not,
|
|
19
20
|
or
|
|
20
21
|
} from "sap/fe/core/helpers/BindingExpression";
|
|
21
|
-
import { UI } from "sap/fe/core/converters/helpers/BindingHelper";
|
|
22
|
+
import { singletonPathVisitor, UI } from "sap/fe/core/converters/helpers/BindingHelper";
|
|
22
23
|
import {
|
|
23
24
|
getAssociatedUnitProperty,
|
|
24
25
|
getAssociatedCurrencyProperty,
|
|
@@ -33,13 +34,24 @@ import { NavigationProperty, Property } from "@sap-ux/annotation-converter";
|
|
|
33
34
|
import { PathAnnotationExpression } from "@sap-ux/vocabularies-types/types/Edm";
|
|
34
35
|
import {
|
|
35
36
|
DataModelObjectPath,
|
|
36
|
-
getTargetEntitySetPath,
|
|
37
37
|
isPathUpdatable,
|
|
38
|
-
getPathRelativeLocation
|
|
38
|
+
getPathRelativeLocation,
|
|
39
|
+
getTargetObjectPath
|
|
39
40
|
} from "sap/fe/core/templating/DataModelPathHelper";
|
|
40
|
-
import {
|
|
41
|
+
import {
|
|
42
|
+
isReadOnlyExpression,
|
|
43
|
+
isNonEditableExpression,
|
|
44
|
+
isDisabledExpression,
|
|
45
|
+
isRequiredExpression
|
|
46
|
+
} from "sap/fe/core/templating/FieldControlHelper";
|
|
41
47
|
import valueFormatters from "sap/fe/core/formatters/ValueFormatter";
|
|
42
48
|
import { DataFieldAbstractTypes } from "@sap-ux/vocabularies-types";
|
|
49
|
+
import * as DisplayModeFormatter from "sap/fe/core/templating/DisplayModeFormatter";
|
|
50
|
+
|
|
51
|
+
// Import-export method used by the converter to use them in the templating through the UIFormatters.
|
|
52
|
+
export type DisplayMode = DisplayModeFormatter.DisplayMode;
|
|
53
|
+
export const getDisplayMode = DisplayModeFormatter.getDisplayMode;
|
|
54
|
+
export const EDM_TYPE_MAPPING = DisplayModeFormatter.EDM_TYPE_MAPPING;
|
|
43
55
|
|
|
44
56
|
export type PropertyOrPath<P> = string | P | PathAnnotationExpression<P>;
|
|
45
57
|
export type MetaModelContext = {
|
|
@@ -73,51 +85,6 @@ export type configType = {
|
|
|
73
85
|
formatOptions: configTypeformatOptions;
|
|
74
86
|
};
|
|
75
87
|
|
|
76
|
-
export const EDM_TYPE_MAPPING: Record<string, any> = {
|
|
77
|
-
"Edm.Boolean": { type: "sap.ui.model.odata.type.Boolean" },
|
|
78
|
-
"Edm.Byte": { type: "sap.ui.model.odata.type.Byte" },
|
|
79
|
-
"Edm.Date": { type: "sap.ui.model.odata.type.Date" },
|
|
80
|
-
"Edm.DateTimeOffset": {
|
|
81
|
-
constraints: {
|
|
82
|
-
"$Precision": "precision"
|
|
83
|
-
},
|
|
84
|
-
type: "sap.ui.model.odata.type.DateTimeOffset"
|
|
85
|
-
},
|
|
86
|
-
"Edm.Decimal": {
|
|
87
|
-
constraints: {
|
|
88
|
-
"@Org.OData.Validation.V1.Minimum/$Decimal": "minimum",
|
|
89
|
-
"@Org.OData.Validation.V1.Minimum@Org.OData.Validation.V1.Exclusive": "minimumExclusive",
|
|
90
|
-
"@Org.OData.Validation.V1.Maximum/$Decimal": "maximum",
|
|
91
|
-
"@Org.OData.Validation.V1.Maximum@Org.OData.Validation.V1.Exclusive": "maximumExclusive",
|
|
92
|
-
"$Precision": "precision",
|
|
93
|
-
"$Scale": "scale"
|
|
94
|
-
},
|
|
95
|
-
type: "sap.ui.model.odata.type.Decimal"
|
|
96
|
-
},
|
|
97
|
-
"Edm.Double": { type: "sap.ui.model.odata.type.Double" },
|
|
98
|
-
"Edm.Guid": { type: "sap.ui.model.odata.type.Guid" },
|
|
99
|
-
"Edm.Int16": { type: "sap.ui.model.odata.type.Int16" },
|
|
100
|
-
"Edm.Int32": { type: "sap.ui.model.odata.type.Int32" },
|
|
101
|
-
"Edm.Int64": { type: "sap.ui.model.odata.type.Int64" },
|
|
102
|
-
"Edm.SByte": { type: "sap.ui.model.odata.type.SByte" },
|
|
103
|
-
"Edm.Single": { type: "sap.ui.model.odata.type.Single" },
|
|
104
|
-
"Edm.Stream": { type: "sap.ui.model.odata.type.Stream" },
|
|
105
|
-
"Edm.String": {
|
|
106
|
-
constraints: {
|
|
107
|
-
"@com.sap.vocabularies.Common.v1.IsDigitSequence": "isDigitSequence",
|
|
108
|
-
"$MaxLength": "maxLength",
|
|
109
|
-
"$Nullable": "nullable"
|
|
110
|
-
},
|
|
111
|
-
type: "sap.ui.model.odata.type.String"
|
|
112
|
-
},
|
|
113
|
-
"Edm.TimeOfDay": {
|
|
114
|
-
constraints: {
|
|
115
|
-
"$Precision": "precision"
|
|
116
|
-
},
|
|
117
|
-
type: "sap.ui.model.odata.type.TimeOfDay"
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
|
|
121
88
|
/**
|
|
122
89
|
* Create the expression to generate an "editable" boolean value.
|
|
123
90
|
*
|
|
@@ -130,7 +97,7 @@ export const EDM_TYPE_MAPPING: Record<string, any> = {
|
|
|
130
97
|
export const getEditableExpression = function(
|
|
131
98
|
oPropertyPath: PropertyOrPath<Property>,
|
|
132
99
|
oDataFieldConverted: any = null,
|
|
133
|
-
oDataModelObjectPath
|
|
100
|
+
oDataModelObjectPath: DataModelObjectPath,
|
|
134
101
|
bAsObject: boolean = false
|
|
135
102
|
): BindingExpression<boolean> | ExpressionOrPrimitive<boolean> {
|
|
136
103
|
if (!oPropertyPath || typeof oPropertyPath === "string") {
|
|
@@ -152,7 +119,11 @@ export const getEditableExpression = function(
|
|
|
152
119
|
// Else, to be editable you need
|
|
153
120
|
// immutable and key while in the creation row
|
|
154
121
|
// ui/isEditable
|
|
155
|
-
const isPathUpdatableExpression = isPathUpdatable(oDataModelObjectPath,
|
|
122
|
+
const isPathUpdatableExpression = isPathUpdatable(oDataModelObjectPath, {
|
|
123
|
+
propertyPath: oPropertyPath,
|
|
124
|
+
pathVisitor: (path: string, navigationPaths: string[]) =>
|
|
125
|
+
singletonPathVisitor(path, oDataModelObjectPath.convertedTypes, navigationPaths)
|
|
126
|
+
});
|
|
156
127
|
const editableExpression = ifElse(
|
|
157
128
|
or(
|
|
158
129
|
not(isPathUpdatableExpression),
|
|
@@ -170,6 +141,18 @@ export const getEditableExpression = function(
|
|
|
170
141
|
return compileBinding(and(editableExpression, dataFieldEditableExpression));
|
|
171
142
|
};
|
|
172
143
|
|
|
144
|
+
export const getCollaborationExpression = function(dataModelObjectPath: DataModelObjectPath, formatter: any): BindingExpression<any> {
|
|
145
|
+
const objectPath = getTargetObjectPath(dataModelObjectPath);
|
|
146
|
+
const activityExpression = bindingExpression("/collaboration/activities" + objectPath, "internal");
|
|
147
|
+
const keys = dataModelObjectPath?.targetEntityType?.keys;
|
|
148
|
+
const keysExpressions: BindingExpressionExpression<any>[] = [];
|
|
149
|
+
keys?.forEach(function(key) {
|
|
150
|
+
const keyExpression = bindingExpression(key.name) as BindingExpressionExpression<any>;
|
|
151
|
+
keysExpressions.push(keyExpression);
|
|
152
|
+
});
|
|
153
|
+
return formatResult([activityExpression, ...keysExpressions], formatter);
|
|
154
|
+
};
|
|
155
|
+
|
|
173
156
|
/**
|
|
174
157
|
* Create the expression to generate an "enabled" boolean value.
|
|
175
158
|
*
|
|
@@ -203,6 +186,7 @@ export const getEnabledExpression = function(
|
|
|
203
186
|
|
|
204
187
|
/**
|
|
205
188
|
* Create the expression to generate an "editMode" enum value.
|
|
189
|
+
*
|
|
206
190
|
* @param {PropertyPath} oPropertyPath The input property
|
|
207
191
|
* @param {DataModelObjectPath} oDataModelObjectPath The list of data model objects that are involved to reach that property
|
|
208
192
|
* @param {boolean} bMeasureReadOnly Whether we should set UoM / currency field mode to read only
|
|
@@ -289,34 +273,6 @@ export const ifUnitEditable = function(
|
|
|
289
273
|
return compileBinding(ifElse(editableExpression, sEditableValue, sNonEditableValue));
|
|
290
274
|
};
|
|
291
275
|
|
|
292
|
-
export type DisplayMode = "Value" | "Description" | "DescriptionValue" | "ValueDescription";
|
|
293
|
-
export const getDisplayMode = function(oPropertyPath: PropertyOrPath<Property>, oDataModelObjectPath?: DataModelObjectPath): DisplayMode {
|
|
294
|
-
if (!oPropertyPath || typeof oPropertyPath === "string") {
|
|
295
|
-
return "Value";
|
|
296
|
-
}
|
|
297
|
-
const oProperty = (isPathExpression(oPropertyPath) && oPropertyPath.$target) || (oPropertyPath as Property);
|
|
298
|
-
const oEntityType = oDataModelObjectPath && oDataModelObjectPath.targetEntityType;
|
|
299
|
-
const oTextAnnotation = oProperty.annotations?.Common?.Text;
|
|
300
|
-
const oTextArrangementAnnotation =
|
|
301
|
-
(typeof oTextAnnotation !== "string" && oTextAnnotation?.annotations?.UI?.TextArrangement?.toString()) ||
|
|
302
|
-
oEntityType?.annotations?.UI?.TextArrangement?.toString();
|
|
303
|
-
|
|
304
|
-
let sDisplayValue = oTextAnnotation ? "DescriptionValue" : "Value";
|
|
305
|
-
if ((oTextAnnotation && oTextArrangementAnnotation) || oEntityType?.annotations?.UI?.TextArrangement?.toString()) {
|
|
306
|
-
if (oTextArrangementAnnotation === "UI.TextArrangementType/TextOnly") {
|
|
307
|
-
sDisplayValue = "Description";
|
|
308
|
-
} else if (oTextArrangementAnnotation === "UI.TextArrangementType/TextLast") {
|
|
309
|
-
sDisplayValue = "ValueDescription";
|
|
310
|
-
} else if (oTextArrangementAnnotation === "UI.TextArrangementType/TextSeparate") {
|
|
311
|
-
sDisplayValue = "Value";
|
|
312
|
-
} else {
|
|
313
|
-
//Default should be TextFirst if there is a Text annotation and neither TextOnly nor TextLast are set
|
|
314
|
-
sDisplayValue = "DescriptionValue";
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
return sDisplayValue as DisplayMode;
|
|
318
|
-
};
|
|
319
|
-
|
|
320
276
|
export const getFieldDisplay = function(
|
|
321
277
|
oPropertyPath: PropertyOrPath<Property>,
|
|
322
278
|
sTargetDisplayMode: string,
|
|
@@ -329,13 +285,17 @@ export const getFieldDisplay = function(
|
|
|
329
285
|
: compileBinding(ifElse(equal(oComputedEditMode, "Editable"), "Value", sTargetDisplayMode));
|
|
330
286
|
};
|
|
331
287
|
|
|
332
|
-
export const formatWithTypeInformation = function(
|
|
288
|
+
export const formatWithTypeInformation = function(
|
|
289
|
+
oProperty: Property,
|
|
290
|
+
propertyBindingExpression: Expression<string>,
|
|
291
|
+
ignoreConstraints?: boolean
|
|
292
|
+
): Expression<string> {
|
|
333
293
|
const outExpression: BindingExpressionExpression<any> = propertyBindingExpression as BindingExpressionExpression<any>;
|
|
334
294
|
if (oProperty._type === "Property") {
|
|
335
295
|
const oTargetMapping = EDM_TYPE_MAPPING[(oProperty as Property).type];
|
|
336
296
|
if (oTargetMapping) {
|
|
337
297
|
outExpression.type = oTargetMapping.type;
|
|
338
|
-
if (oTargetMapping.constraints) {
|
|
298
|
+
if (oTargetMapping.constraints && !ignoreConstraints) {
|
|
339
299
|
outExpression.constraints = {};
|
|
340
300
|
if (oTargetMapping.constraints.$Scale && oProperty.scale !== undefined) {
|
|
341
301
|
outExpression.constraints.scale = oProperty.scale;
|
|
@@ -449,7 +409,8 @@ export const getTypeConfig = function(oProperty: Property | DataFieldAbstractTyp
|
|
|
449
409
|
|
|
450
410
|
export const getBindingWithUnitOrCurrency = function(
|
|
451
411
|
oPropertyDataModelPath: DataModelObjectPath,
|
|
452
|
-
propertyBindingExpression: Expression<string
|
|
412
|
+
propertyBindingExpression: Expression<string>,
|
|
413
|
+
ignoreUnitConstraint?: boolean
|
|
453
414
|
): Expression<string> {
|
|
454
415
|
const oPropertyDefinition = oPropertyDataModelPath.targetObject as Property;
|
|
455
416
|
let unit = oPropertyDefinition.annotations?.Measures?.Unit;
|
|
@@ -464,8 +425,13 @@ export const getBindingWithUnitOrCurrency = function(
|
|
|
464
425
|
const complexType = unit ? "sap.ui.model.odata.type.Unit" : "sap.ui.model.odata.type.Currency";
|
|
465
426
|
unit = unit ? unit : oPropertyDefinition.annotations?.Measures?.ISOCurrency;
|
|
466
427
|
const unitBindingExpression = (unit as any).$target
|
|
467
|
-
? formatWithTypeInformation(
|
|
428
|
+
? formatWithTypeInformation(
|
|
429
|
+
(unit as any).$target,
|
|
430
|
+
annotationExpression(unit, relativeLocation) as Expression<string>,
|
|
431
|
+
ignoreUnitConstraint
|
|
432
|
+
)
|
|
468
433
|
: (annotationExpression(unit, relativeLocation) as Expression<string>);
|
|
434
|
+
|
|
469
435
|
return addTypeInformation([propertyBindingExpression, unitBindingExpression], complexType);
|
|
470
436
|
};
|
|
471
437
|
|
|
@@ -520,21 +486,6 @@ export const getExpressionBinding = function(expression: Expression<any>): Bindi
|
|
|
520
486
|
return compileBinding(expression);
|
|
521
487
|
};
|
|
522
488
|
|
|
523
|
-
/**
|
|
524
|
-
* Retrieve the target entityset for a context path if it exists.
|
|
525
|
-
*
|
|
526
|
-
* @param oContext
|
|
527
|
-
* @returns {string}
|
|
528
|
-
*/
|
|
529
|
-
export const getTargetEntitySet = function(oContext: Context): string | null {
|
|
530
|
-
if (oContext) {
|
|
531
|
-
const oDataModelPath = getInvolvedDataModelObjects(oContext);
|
|
532
|
-
return getTargetEntitySetPath(oDataModelPath);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
return null;
|
|
536
|
-
};
|
|
537
|
-
|
|
538
489
|
export const isCollectionField = function(oDataModelPath: DataModelObjectPath): boolean {
|
|
539
490
|
if (oDataModelPath.navigationProperties?.length) {
|
|
540
491
|
const hasOneToManyNavigation =
|
|
@@ -558,3 +509,29 @@ export const isCollectionField = function(oDataModelPath: DataModelObjectPath):
|
|
|
558
509
|
}
|
|
559
510
|
return false;
|
|
560
511
|
};
|
|
512
|
+
|
|
513
|
+
export const getRequiredExpression = function(
|
|
514
|
+
oPropertyPath: PropertyOrPath<Property>,
|
|
515
|
+
oDataFieldConverted?: any,
|
|
516
|
+
forceEditMode: boolean = false,
|
|
517
|
+
bAsObject: boolean = false
|
|
518
|
+
): BindingExpression<boolean> | ExpressionOrPrimitive<boolean> {
|
|
519
|
+
if (!oPropertyPath || typeof oPropertyPath === "string") {
|
|
520
|
+
return compileBinding(false);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
let dataFieldRequiredExpression: BindingExpression<boolean> | ExpressionOrPrimitive<boolean> = true;
|
|
524
|
+
if (oDataFieldConverted !== null) {
|
|
525
|
+
dataFieldRequiredExpression = isRequiredExpression(oDataFieldConverted);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
const oProperty: Property = (isPathExpression(oPropertyPath) && oPropertyPath.$target) || (oPropertyPath as Property);
|
|
529
|
+
// Enablement depends on the field control expression
|
|
530
|
+
// If the Field control is statically in Inapplicable (disabled) -> not enabled
|
|
531
|
+
const requiredExpression = isRequiredExpression(oProperty);
|
|
532
|
+
const editMode = forceEditMode || UI.IsEditable;
|
|
533
|
+
if (bAsObject) {
|
|
534
|
+
return and(or(requiredExpression, dataFieldRequiredExpression), editMode);
|
|
535
|
+
}
|
|
536
|
+
return compileBinding(and(or(requiredExpression, dataFieldRequiredExpression), editMode));
|
|
537
|
+
};
|
|
@@ -17,4 +17,4 @@ sap.ui.define(["sap/ui/model/odata/type/String", "sap/ui/model/ValidateException
|
|
|
17
17
|
});
|
|
18
18
|
return EmailType;
|
|
19
19
|
}, false);
|
|
20
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkVtYWlsLnRzIl0sIm5hbWVzIjpbImVtYWlsVzNDUmVnZXhwIiwiRW1haWxUeXBlIiwiT0RhdGFTdHJpbmdUeXBlIiwiZXh0ZW5kIiwidmFsaWRhdGVWYWx1ZSIsInNWYWx1ZSIsInRlc3QiLCJWYWxpZGF0ZUV4Y2VwdGlvbiIsInNhcCIsInVpIiwiZ2V0Q29yZSIsImdldExpYnJhcnlSZXNvdXJjZUJ1bmRsZSIsImdldFRleHQiLCJwcm90b3R5cGUiLCJhcHBseSJdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0E7QUFDQTs7OztBQUVBLE1BQU1BLGNBQWMsR0FBRyxxRUFBdkI7QUFDQSxNQUFNQyxTQUFTLEdBQUdDLGVBQWUsQ0FBQ0MsTUFBaEIsQ0FBdUIsd0JBQXZCLEVBQWlEO0FBQ2xFQyxJQUFBQSxhQURrRSxZQUNwREMsTUFEb0QsRUFDcEM7QUFDN0IsVUFBSSxDQUFDTCxjQUFjLENBQUNNLElBQWYsQ0FBb0JELE1BQXBCLENBQUwsRUFBa0M7QUFDakMsY0FBTSxJQUFJRSxpQkFBSixDQUNKQyxHQUFHLENBQUNDLEVBQUosQ0FBT0MsT0FBUCxHQUFpQkMsd0JBQWpCLENBQTBDLGFBQTFDLENBQUQsQ0FBNkVDLE9BQTdFLENBQXFGLDJCQUFyRixDQURLLENBQU47QUFHQTs7QUFDRFYsTUFBQUEsZUFBZSxDQUFDVyxTQUFoQixDQUEwQlQsYUFBMUIsQ0FBd0NVLEtBQXhDLENBQThDLElBQTlDLEVBQW9ELENBQUNULE1BQUQsQ0FBcEQ7QUFDQTtBQVJpRSxHQUFqRCxDQUFsQjtTQVVlSixTIiwic291cmNlUm9vdCI6Ii4iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVzb3VyY2VCdW5kbGUgZnJvbSBcInNhcC9iYXNlL2kxOG4vUmVzb3VyY2VCdW5kbGVcIjtcbmltcG9ydCBPRGF0YVN0cmluZ1R5cGUgZnJvbSBcInNhcC91aS9tb2RlbC9vZGF0YS90eXBlL1N0cmluZ1wiO1xuaW1wb3J0IFZhbGlkYXRlRXhjZXB0aW9uIGZyb20gXCJzYXAvdWkvbW9kZWwvVmFsaWRhdGVFeGNlcHRpb25cIjtcblxuY29uc3QgZW1haWxXM0NSZWdleHAgPSAvXlthLXpBLVowLTkuISMkJSbigJkqKy89P15fYHt8fX4tXStAW2EtekEtWjAtOS1dKyg/Oi5bYS16QS1aMC05LV0rKSokLztcbmNvbnN0IEVtYWlsVHlwZSA9IE9EYXRhU3RyaW5nVHlwZS5leHRlbmQoXCJzYXAuZmUuY29yZS50eXBlLkVtYWlsXCIsIHtcblx0dmFsaWRhdGVWYWx1ZShzVmFsdWU6IHN0cmluZykge1xuXHRcdGlmICghZW1haWxXM0NSZWdleHAudGVzdChzVmFsdWUpKSB7XG5cdFx0XHR0aHJvdyBuZXcgVmFsaWRhdGVFeGNlcHRpb24oXG5cdFx0XHRcdChzYXAudWkuZ2V0Q29yZSgpLmdldExpYnJhcnlSZXNvdXJjZUJ1bmRsZShcInNhcC5mZS5jb3JlXCIpIGFzIFJlc291cmNlQnVuZGxlKS5nZXRUZXh0KFwiVF9FTUFJTFRZUEVfSU5WQUxJRF9WQUxVRVwiKVxuXHRcdFx0KTtcblx0XHR9XG5cdFx0T0RhdGFTdHJpbmdUeXBlLnByb3RvdHlwZS52YWxpZGF0ZVZhbHVlLmFwcGx5KHRoaXMsIFtzVmFsdWVdKTtcblx0fVxufSk7XG5leHBvcnQgZGVmYXVsdCBFbWFpbFR5cGU7XG4iXX0=
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import ResourceBundle from "sap/base/i18n/ResourceBundle";
|
|
2
|
+
import ODataStringType from "sap/ui/model/odata/type/String";
|
|
3
|
+
import ValidateException from "sap/ui/model/ValidateException";
|
|
3
4
|
|
|
4
5
|
const emailW3CRegexp = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/;
|
|
5
6
|
const EmailType = ODataStringType.extend("sap.fe.core.type.Email", {
|
|
6
7
|
validateValue(sValue: string) {
|
|
7
8
|
if (!emailW3CRegexp.test(sValue)) {
|
|
8
9
|
throw new ValidateException(
|
|
9
|
-
sap.ui
|
|
10
|
-
.getCore()
|
|
11
|
-
.getLibraryResourceBundle("sap.fe.core")
|
|
12
|
-
.getText("T_EMAILTYPE_INVALID_VALUE")
|
|
10
|
+
(sap.ui.getCore().getLibraryResourceBundle("sap.fe.core") as ResourceBundle).getText("T_EMAILTYPE_INVALID_VALUE")
|
|
13
11
|
);
|
|
14
12
|
}
|
|
15
13
|
ODataStringType.prototype.validateValue.apply(this, [sValue]);
|
package/ui5.yaml
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
-
* (c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
sap.ui.define([], function () {
|
|
6
|
-
"use strict";
|
|
7
|
-
}, false);
|
|
8
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbHRlcmJhci5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiLiIsInNvdXJjZXNDb250ZW50IjpbIiJdfQ==
|
|
File without changes
|