@openui5/sap.ui.integration 1.98.0 → 1.101.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/.eslintrc.json +18 -0
- package/THIRDPARTY.txt +6 -6
- package/package.json +3 -3
- package/src/sap/ui/integration/.library +1 -1
- package/src/sap/ui/integration/ActionDefinition.js +1 -1
- package/src/sap/ui/integration/Designtime.js +1 -1
- package/src/sap/ui/integration/Extension.js +1 -1
- package/src/sap/ui/integration/Host.js +17 -3
- package/src/sap/ui/integration/cards/AdaptiveContent.js +5 -25
- package/src/sap/ui/integration/cards/AnalyticalContent.js +15 -2
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +78 -7
- package/src/sap/ui/integration/cards/BaseContentRenderer.js +8 -3
- package/src/sap/ui/integration/cards/BaseListContent.js +49 -6
- package/src/sap/ui/integration/cards/CalendarContent.js +8 -4
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +25 -8
- package/src/sap/ui/integration/cards/Header.js +4 -2
- package/src/sap/ui/integration/cards/ListContent.js +3 -2
- package/src/sap/ui/integration/cards/ListContentRenderer.js +9 -5
- package/src/sap/ui/integration/cards/NumericHeader.js +5 -2
- package/src/sap/ui/integration/cards/ObjectContent.js +130 -7
- package/src/sap/ui/integration/cards/TableContent.js +3 -2
- package/src/sap/ui/integration/cards/TableContentRenderer.js +5 -4
- package/src/sap/ui/integration/cards/TimelineContent.js +3 -2
- package/src/sap/ui/integration/cards/TimelineContentRenderer.js +4 -7
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -1
- package/src/sap/ui/integration/cards/actions/CardActions.js +15 -7
- package/src/sap/ui/integration/cards/actions/HideCardAction.js +45 -0
- package/src/sap/ui/integration/cards/actions/ShowCardAction.js +106 -0
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +44 -2
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +38 -3
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +36 -3
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +41 -4
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputTime.js +26 -115
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +36 -2
- package/src/sap/ui/integration/cards/adaptivecards/overwrites/ActionRender.js +6 -0
- package/src/sap/ui/integration/cards/adaptivecards/overwrites/inputsGeneralOverwrites.js +115 -0
- package/src/sap/ui/integration/cards/filters/BaseFilter.js +19 -2
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +8 -2
- package/src/sap/ui/integration/cards/filters/FilterBar.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +1 -1
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +11 -2
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +7 -2
- package/src/sap/ui/integration/controls/ActionsStrip.js +61 -24
- package/src/sap/ui/integration/controls/ActionsToolbar.js +4 -3
- package/src/sap/ui/integration/controls/ActionsToolbarRenderer.js +1 -1
- package/src/sap/ui/integration/controls/LinkWithIcon.js +77 -0
- package/src/sap/ui/integration/controls/LinkWithIconRenderer.js +38 -0
- package/src/sap/ui/integration/controls/ListContentItem.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +1 -1
- package/src/sap/ui/integration/controls/Microchart.js +1 -1
- package/src/sap/ui/integration/controls/MicrochartLegend.js +1 -1
- package/src/sap/ui/integration/controls/Paginator.js +373 -0
- package/src/sap/ui/integration/controls/PaginatorRenderer.js +115 -0
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +6 -4
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n.properties +11 -2
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ar.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_bg.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ca.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_cs.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_cy.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_da.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_de.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_el.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_GB.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_sappsd.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saprigi.properties +25 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saptrc.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_es.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_es_MX.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_et.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fi.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fr.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fr_CA.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hi.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hr.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hu.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_id.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_it.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_iw.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ja.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_kk.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ko.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_lt.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_lv.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ms.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_nl.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_no.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pl.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pt.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pt_PT.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ro.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ru.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sh.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sk.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sl.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sv.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_th.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_tr.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_uk.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_vi.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_zh_CN.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_zh_TW.properties +7 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IsInIconPool.validator.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/integerEditor/IntegerEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +11 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.fragment.xml +14 -0
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.js +102 -0
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +5 -2
- package/src/sap/ui/integration/designtime/baseEditor/util/StylesheetManager.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/createPromise.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/unset.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsBoolean.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsDate.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsNumber.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsSelectedKey.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsStringList.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueKey.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueList.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsValidBinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/MaxLength.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/NotABinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/ValidatorRegistry.js +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/BASEditor.js +22 -21
- package/src/sap/ui/integration/designtime/cardEditor/CardEditor.js +4 -4
- package/src/sap/ui/integration/designtime/cardEditor/config/index.js +3 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n.properties +9 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ar.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_bg.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ca.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cs.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cy.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_da.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_de.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_el.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_GB.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_sappsd.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saprigi.properties +48 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saptrc.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es_MX.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_et.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fi.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr_CA.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hi.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hr.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hu.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_id.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_it.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_iw.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ja.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_kk.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ko.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lt.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lv.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ms.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_nl.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_no.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pl.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt_PT.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ro.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ru.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sh.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sk.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sl.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sv.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_th.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_tr.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_uk.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_vi.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_CN.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_TW.properties +5 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/filtersEditor/FiltersEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +34 -3
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +88 -8
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/editor/Editor.js +823 -150
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +1 -1
- package/src/sap/ui/integration/editor/Extension.js +1 -1
- package/src/sap/ui/integration/editor/Manifest.js +1 -1
- package/src/sap/ui/integration/editor/Settings.js +1 -1
- package/src/sap/ui/integration/editor/css/Editor.css +134 -11
- package/src/sap/ui/integration/editor/fields/BaseField.js +20 -11
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -1
- package/src/sap/ui/integration/editor/fields/IntegerField.js +16 -2
- package/src/sap/ui/integration/editor/fields/NumberField.js +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectField.js +1263 -0
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +360 -0
- package/src/sap/ui/integration/editor/fields/StringField.js +6 -4
- package/src/sap/ui/integration/editor/fields/{ListField.js → StringListField.js} +93 -107
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +1 -1
- package/src/sap/ui/integration/formatters/InitialsFormatter.js +38 -0
- package/src/sap/ui/integration/library.js +28 -17
- package/src/sap/ui/integration/messagebundle.properties +93 -0
- package/src/sap/ui/integration/messagebundle_ar.properties +60 -2
- package/src/sap/ui/integration/messagebundle_bg.properties +62 -4
- package/src/sap/ui/integration/messagebundle_ca.properties +60 -2
- package/src/sap/ui/integration/messagebundle_cs.properties +60 -2
- package/src/sap/ui/integration/messagebundle_cy.properties +60 -2
- package/src/sap/ui/integration/messagebundle_da.properties +60 -2
- package/src/sap/ui/integration/messagebundle_de.properties +60 -2
- package/src/sap/ui/integration/messagebundle_el.properties +60 -2
- package/src/sap/ui/integration/messagebundle_en.properties +60 -2
- package/src/sap/ui/integration/messagebundle_en_GB.properties +60 -2
- package/src/sap/ui/integration/messagebundle_en_US_sappsd.properties +58 -0
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +143 -55
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +58 -0
- package/src/sap/ui/integration/messagebundle_es.properties +60 -2
- package/src/sap/ui/integration/messagebundle_es_MX.properties +60 -2
- package/src/sap/ui/integration/messagebundle_et.properties +60 -2
- package/src/sap/ui/integration/messagebundle_fi.properties +61 -3
- package/src/sap/ui/integration/messagebundle_fr.properties +60 -2
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +60 -2
- package/src/sap/ui/integration/messagebundle_hi.properties +60 -2
- package/src/sap/ui/integration/messagebundle_hr.properties +60 -2
- package/src/sap/ui/integration/messagebundle_hu.properties +60 -2
- package/src/sap/ui/integration/messagebundle_id.properties +60 -2
- package/src/sap/ui/integration/messagebundle_it.properties +60 -2
- package/src/sap/ui/integration/messagebundle_iw.properties +60 -2
- package/src/sap/ui/integration/messagebundle_ja.properties +60 -2
- package/src/sap/ui/integration/messagebundle_kk.properties +60 -2
- package/src/sap/ui/integration/messagebundle_ko.properties +60 -2
- package/src/sap/ui/integration/messagebundle_lt.properties +60 -2
- package/src/sap/ui/integration/messagebundle_lv.properties +60 -2
- package/src/sap/ui/integration/messagebundle_ms.properties +60 -2
- package/src/sap/ui/integration/messagebundle_nl.properties +60 -2
- package/src/sap/ui/integration/messagebundle_no.properties +60 -2
- package/src/sap/ui/integration/messagebundle_pl.properties +60 -2
- package/src/sap/ui/integration/messagebundle_pt.properties +60 -2
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +60 -2
- package/src/sap/ui/integration/messagebundle_ro.properties +60 -2
- package/src/sap/ui/integration/messagebundle_ru.properties +60 -2
- package/src/sap/ui/integration/messagebundle_sh.properties +60 -2
- package/src/sap/ui/integration/messagebundle_sk.properties +60 -2
- package/src/sap/ui/integration/messagebundle_sl.properties +60 -2
- package/src/sap/ui/integration/messagebundle_sv.properties +60 -2
- package/src/sap/ui/integration/messagebundle_th.properties +60 -2
- package/src/sap/ui/integration/messagebundle_tr.properties +60 -2
- package/src/sap/ui/integration/messagebundle_uk.properties +63 -5
- package/src/sap/ui/integration/messagebundle_vi.properties +60 -2
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +60 -2
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +60 -2
- package/src/sap/ui/integration/model/ContextModel.js +1 -1
- package/src/sap/ui/integration/model/ObservableModel.js +14 -5
- package/src/sap/ui/integration/model/PagingModelListBinding.js +40 -0
- package/src/sap/ui/integration/sap-ui-integration-define-nojQuery.js +2 -1
- package/src/sap/ui/integration/schemas/sap-card.json +134 -26
- package/src/sap/ui/integration/themes/base/ActionsStrip.less +15 -0
- package/src/sap/ui/integration/themes/base/CalendarContent.less +2 -2
- package/src/sap/ui/integration/themes/base/Card.less +24 -0
- package/src/sap/ui/integration/themes/base/Footer.less +10 -0
- package/src/sap/ui/integration/themes/base/LinkWithIcon.less +11 -0
- package/src/sap/ui/integration/themes/base/ListContentItem.less +11 -0
- package/src/sap/ui/integration/themes/base/ObjectContent.less +16 -0
- package/src/sap/ui/integration/themes/base/Paginator.less +144 -0
- package/src/sap/ui/integration/themes/base/library.source.less +4 -0
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +13 -6
- package/src/sap/ui/integration/util/BindingResolver.js +1 -1
- package/src/sap/ui/integration/util/CacheAndRequestDataProvider.js +4 -30
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ContentFactory.js +1 -1
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +1 -1
- package/src/sap/ui/integration/util/DataProviderFactory.js +8 -1
- package/src/sap/ui/integration/util/Destinations.js +4 -2
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/HeaderFactory.js +39 -3
- package/src/sap/ui/integration/util/JSONBindingHelper.js +1 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +17 -7
- package/src/sap/ui/integration/util/Manifest.js +7 -3
- package/src/sap/ui/integration/util/ManifestResolver.js +2 -1
- package/src/sap/ui/integration/util/RequestDataProvider.js +31 -5
- package/src/sap/ui/integration/util/ServiceDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceManager.js +1 -1
- package/src/sap/ui/integration/util/SkeletonCard.js +14 -2
- package/src/sap/ui/integration/util/Utils.js +16 -4
- package/src/sap/ui/integration/widgets/Card.js +358 -88
|
@@ -0,0 +1,373 @@
|
|
|
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
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"../library",
|
|
9
|
+
"sap/m/library",
|
|
10
|
+
"sap/ui/base/EventProvider",
|
|
11
|
+
"sap/ui/core/Core",
|
|
12
|
+
"sap/ui/core/Control",
|
|
13
|
+
"sap/ui/core/Configuration",
|
|
14
|
+
'sap/ui/core/Icon',
|
|
15
|
+
'./PaginatorRenderer'
|
|
16
|
+
], function (
|
|
17
|
+
library,
|
|
18
|
+
mLibrary,
|
|
19
|
+
EventProvider,
|
|
20
|
+
Core,
|
|
21
|
+
Control,
|
|
22
|
+
Configuration,
|
|
23
|
+
Icon
|
|
24
|
+
) {
|
|
25
|
+
"use strict";
|
|
26
|
+
|
|
27
|
+
var sAnimationMode = Core.getConfiguration().getAnimationMode(),
|
|
28
|
+
bHasAnimations = sAnimationMode !== Configuration.AnimationMode.none && sAnimationMode !== Configuration.AnimationMode.minimal,
|
|
29
|
+
iServerSideAfterTransitionDelay = 200;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Constructor for a new Paginator.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
35
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
36
|
+
*
|
|
37
|
+
* @class
|
|
38
|
+
*
|
|
39
|
+
* @extends sap.ui.core.Control
|
|
40
|
+
*
|
|
41
|
+
* @author SAP SE
|
|
42
|
+
* @version 1.101.0
|
|
43
|
+
*
|
|
44
|
+
* @constructor
|
|
45
|
+
* @private
|
|
46
|
+
* @alias sap.ui.integration.controls.Paginator
|
|
47
|
+
*/
|
|
48
|
+
var Paginator = Control.extend("sap.ui.integration.controls.Paginator", {
|
|
49
|
+
metadata: {
|
|
50
|
+
library: "sap.ui.integration",
|
|
51
|
+
properties: {
|
|
52
|
+
card: {type: "object"},
|
|
53
|
+
pageNumber: {type: "int", defaultValue: 0},
|
|
54
|
+
pageCount: {type: "int", defaultValue: 0},
|
|
55
|
+
pageSize: {type: "int", defaultValue: 0},
|
|
56
|
+
|
|
57
|
+
totalCount: {type: "int"},
|
|
58
|
+
skip: {type: "int"}
|
|
59
|
+
},
|
|
60
|
+
aggregations: {
|
|
61
|
+
_prevIcon: {type: "sap.ui.core.Icon", multiple: false, visibility: "hidden"},
|
|
62
|
+
_nextIcon: {type: "sap.ui.core.Icon", multiple: false, visibility: "hidden"}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
Paginator.create = function (oCard, oConfig) {
|
|
68
|
+
if (!oConfig) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return new Paginator({
|
|
73
|
+
card: oCard,
|
|
74
|
+
totalCount: oConfig.totalCount,
|
|
75
|
+
pageSize: oConfig.pageSize,
|
|
76
|
+
skip: oConfig.skip
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
Paginator.prototype.init = function() {
|
|
81
|
+
this._listUpdateFinishedHandler = this._listUpdateFinished.bind(this);
|
|
82
|
+
|
|
83
|
+
this.setAggregation("_prevIcon", new Icon({
|
|
84
|
+
src: "sap-icon://slim-arrow-left",
|
|
85
|
+
useIconTooltip: false,
|
|
86
|
+
decorative: false,
|
|
87
|
+
press: this._previous.bind(this)
|
|
88
|
+
}));
|
|
89
|
+
|
|
90
|
+
this.setAggregation("_nextIcon", new Icon({
|
|
91
|
+
src: "sap-icon://slim-arrow-right",
|
|
92
|
+
useIconTooltip: false,
|
|
93
|
+
decorative: false,
|
|
94
|
+
press: this._next.bind(this)
|
|
95
|
+
}));
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
Paginator.prototype.exit = function () {
|
|
99
|
+
var oCard = this.getCard(),
|
|
100
|
+
oContent,
|
|
101
|
+
oList;
|
|
102
|
+
|
|
103
|
+
if (oCard) {
|
|
104
|
+
if (this._dataChangedHandler) {
|
|
105
|
+
oCard.detachEvent("_contentDataChange", this._dataChangedHandler);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
oContent = oCard.getCardContent();
|
|
109
|
+
|
|
110
|
+
if (oContent) {
|
|
111
|
+
oList = oContent.getAggregation("_content");
|
|
112
|
+
|
|
113
|
+
if (oList && EventProvider.hasListener(oList, "updateFinished", this._listUpdateFinishedHandler)) {
|
|
114
|
+
oList.detachEvent("updateFinished", this._listUpdateFinishedHandler);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
delete this._listUpdateFinishedHandler;
|
|
120
|
+
delete this._iPreviousStartIndex;
|
|
121
|
+
delete this._oClonedContent;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
Paginator.prototype.isServerSide = function() {
|
|
125
|
+
return this.getTotalCount();
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
Paginator.prototype._dataChanged = function() {
|
|
129
|
+
var oCard = this.getCard(),
|
|
130
|
+
oContent = oCard.getCardContent(),
|
|
131
|
+
oList,
|
|
132
|
+
iTotalCount,
|
|
133
|
+
bInitialized;
|
|
134
|
+
|
|
135
|
+
if (!oContent || !oContent.isA("sap.ui.integration.cards.BaseContent")) {
|
|
136
|
+
this.setPageCount(0);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
this.setModel(oContent.getModel());
|
|
141
|
+
|
|
142
|
+
oList = oContent.getAggregation("_content");
|
|
143
|
+
bInitialized = EventProvider.hasListener(oList, "updateFinished", this._listUpdateFinishedHandler);
|
|
144
|
+
|
|
145
|
+
if (this._hasAnimation() && !bInitialized) {
|
|
146
|
+
oList.attachEvent("updateFinished", this._listUpdateFinishedHandler);
|
|
147
|
+
|
|
148
|
+
if (this.isServerSide()) {
|
|
149
|
+
oContent.getAggregation("_loadingProvider")._oContentPlaceholder.addDelegate({
|
|
150
|
+
onAfterRendering: this.onPlaceholderAfterRendering.bind(this)
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (bInitialized) {
|
|
156
|
+
this._clearAnimation(this);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
iTotalCount = this.getTotalCount() || oContent.getDataLength();
|
|
160
|
+
|
|
161
|
+
this.setPageCount(Math.ceil(iTotalCount / this.getPageSize()));
|
|
162
|
+
this.setPageNumber(Math.min(Math.max(0, this.getPageNumber()), this.getPageCount() - 1));
|
|
163
|
+
|
|
164
|
+
this.sliceData();
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
Paginator.prototype.setCard = function(oCard) {
|
|
168
|
+
this.setProperty("card", oCard, true);
|
|
169
|
+
|
|
170
|
+
this._dataChangedHandler = this._dataChanged.bind(this);
|
|
171
|
+
|
|
172
|
+
if (oCard) {
|
|
173
|
+
oCard.attachEvent("_contentDataChange", this._dataChangedHandler);
|
|
174
|
+
}
|
|
175
|
+
return this;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
Paginator.prototype.sliceData = function() {
|
|
179
|
+
var oCard = this.getCard(),
|
|
180
|
+
oContent,
|
|
181
|
+
iStartIndex,
|
|
182
|
+
bIsPageChanged;
|
|
183
|
+
|
|
184
|
+
if (!oCard) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
oContent = oCard.getCardContent();
|
|
189
|
+
iStartIndex = this.getPageNumber() * this.getPageSize();
|
|
190
|
+
bIsPageChanged = this._iPreviousStartIndex !== undefined && this._iPreviousStartIndex !== iStartIndex;
|
|
191
|
+
|
|
192
|
+
if (bIsPageChanged) {
|
|
193
|
+
this._prepareAnimation(iStartIndex);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (this.isServerSide()) {
|
|
197
|
+
if (bIsPageChanged) {
|
|
198
|
+
// changing the model is triggering data update
|
|
199
|
+
// so there is no need to call "refreshData" method
|
|
200
|
+
this.getModel("paginator").setData({
|
|
201
|
+
skip: iStartIndex,
|
|
202
|
+
size: this.getPageSize(),
|
|
203
|
+
pageIndex: this.getPageNumber()
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (this._hasAnimation()) {
|
|
207
|
+
oContent.getAggregation("_loadingProvider")._bAwaitPagination = true;
|
|
208
|
+
oCard.getAggregation("_loadingProvider")._bAwaitPagination = true;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
} else {
|
|
212
|
+
oContent.sliceData(iStartIndex, iStartIndex + this.getPageSize());
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
this._iPreviousStartIndex = iStartIndex;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
Paginator.prototype._prepareAnimation = function (iStartIndex) {
|
|
219
|
+
if (!this._hasAnimation()) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
var oContentDomRef = this.getCard().getCardContent().getDomRef(),
|
|
224
|
+
oContentDomRefCloned = oContentDomRef.cloneNode(true);
|
|
225
|
+
|
|
226
|
+
this._bActiveAnimation = true;
|
|
227
|
+
this._bReverseAnimation = this._iPreviousStartIndex > iStartIndex;
|
|
228
|
+
|
|
229
|
+
oContentDomRefCloned.removeAttribute("id");
|
|
230
|
+
|
|
231
|
+
oContentDomRefCloned.querySelectorAll("*[id]").forEach(function (oElement) {
|
|
232
|
+
oElement.removeAttribute("id");
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
oContentDomRefCloned.classList.add("sapFCardContentCloned");
|
|
236
|
+
if (this._bReverseAnimation) {
|
|
237
|
+
oContentDomRefCloned.classList.add("sapFCardContentReverseAnim");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (this.isServerSide()) {
|
|
241
|
+
this._oClonedContent = oContentDomRefCloned;
|
|
242
|
+
} else {
|
|
243
|
+
oContentDomRef.classList.add("sapFCardContentOriginal");
|
|
244
|
+
|
|
245
|
+
if (this._bReverseAnimation) {
|
|
246
|
+
oContentDomRef.classList.add("sapFCardContentReverseAnim");
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
oContentDomRef.parentElement.insertBefore(oContentDomRefCloned, oContentDomRef);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
Paginator.prototype._clearAnimation = function () {
|
|
254
|
+
if (!this._hasAnimation()) {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
var oCard = this.getCard(),
|
|
259
|
+
oContent = oCard.getCardContent(),
|
|
260
|
+
oContentDomRef = oContent.getDomRef(),
|
|
261
|
+
oContentDomRefCloned = oContentDomRef.previousSibling,
|
|
262
|
+
oCardLoadingProvider,
|
|
263
|
+
oContentLoadingProvider;
|
|
264
|
+
|
|
265
|
+
oCardLoadingProvider = oCard.getAggregation("_loadingProvider");
|
|
266
|
+
oContentLoadingProvider = oContent.getAggregation("_loadingProvider");
|
|
267
|
+
|
|
268
|
+
if (oContentLoadingProvider._bAwaitPagination) {
|
|
269
|
+
oContentLoadingProvider._bAwaitPagination = false;
|
|
270
|
+
oCardLoadingProvider._bAwaitPagination = false;
|
|
271
|
+
} else {
|
|
272
|
+
oContentDomRefCloned.parentNode.removeChild(oContentDomRefCloned);
|
|
273
|
+
|
|
274
|
+
oContentDomRef.classList.remove("sapFCardContentOriginal");
|
|
275
|
+
oContentDomRef.classList.remove("sapFCardContentTransition");
|
|
276
|
+
oContentDomRef.classList.remove("sapFCardContentReverseAnim");
|
|
277
|
+
|
|
278
|
+
oContent.hideLoadingPlaceholders();
|
|
279
|
+
oCardLoadingProvider.setLoading(false);
|
|
280
|
+
this._bActiveAnimation = false;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
Paginator.prototype._listUpdateFinished = function () {
|
|
285
|
+
if (!this._bActiveAnimation || this.isServerSide()) {
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
var oContent = this.getCard().getCardContent(),
|
|
290
|
+
oContentDomRef = oContent.getDomRef(),
|
|
291
|
+
oContentDomRefCloned = oContentDomRef.previousSibling;
|
|
292
|
+
|
|
293
|
+
oContentDomRefCloned.addEventListener("transitionend", function () {
|
|
294
|
+
oContentDomRefCloned.parentNode.removeChild(oContentDomRefCloned);
|
|
295
|
+
|
|
296
|
+
oContentDomRef.classList.remove("sapFCardContentOriginal");
|
|
297
|
+
oContentDomRef.classList.remove("sapFCardContentTransition");
|
|
298
|
+
oContentDomRef.classList.remove("sapFCardContentReverseAnim");
|
|
299
|
+
|
|
300
|
+
this._bActiveAnimation = false;
|
|
301
|
+
}.bind(this));
|
|
302
|
+
|
|
303
|
+
oContentDomRef.classList.add("sapFCardContentTransition");
|
|
304
|
+
oContentDomRefCloned.classList.add("sapFCardContentTransition");
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
Paginator.prototype.onPlaceholderAfterRendering = function () {
|
|
308
|
+
if (!this._oClonedContent) {
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
var oCard = this.getCard(),
|
|
313
|
+
oContent = oCard.getCardContent(),
|
|
314
|
+
oContentDomRef = oContent.getDomRef(),
|
|
315
|
+
oContentDomRefCloned = this._oClonedContent;
|
|
316
|
+
|
|
317
|
+
oContentDomRef.classList.add("sapFCardContentOriginal");
|
|
318
|
+
oContentDomRef.parentElement.insertBefore(oContentDomRefCloned, oContentDomRef);
|
|
319
|
+
|
|
320
|
+
if (this._bReverseAnimation) {
|
|
321
|
+
oContentDomRef.classList.add("sapFCardContentReverseAnim");
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
this._oClonedContent.addEventListener("transitionend", function () {
|
|
325
|
+
setTimeout(this._clearAnimation.bind(this), iServerSideAfterTransitionDelay);
|
|
326
|
+
}.bind(this));
|
|
327
|
+
|
|
328
|
+
this._oClonedContent = null;
|
|
329
|
+
|
|
330
|
+
setTimeout(function () {
|
|
331
|
+
oContentDomRefCloned.classList.add("sapFCardContentTransition");
|
|
332
|
+
oContentDomRef.classList.add("sapFCardContentTransition");
|
|
333
|
+
}, 30);
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
Paginator.prototype._getNavigationArrow = function (sDirection) {
|
|
337
|
+
return this.getAggregation("_" + sDirection + "Icon");
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
Paginator.prototype._hasAnimation = function () {
|
|
341
|
+
return bHasAnimations && this.getCard().getCardContent().isA("sap.ui.integration.cards.ListContent");
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
Paginator.prototype._previous = function () {
|
|
345
|
+
if (this._bActiveAnimation) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
this.setPageNumber(Math.max(0, this.getPageNumber() - 1));
|
|
350
|
+
this.sliceData();
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
Paginator.prototype._next = function () {
|
|
354
|
+
if (this._bActiveAnimation) {
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
this.setPageNumber(Math.min(this.getPageCount() - 1, this.getPageNumber() + 1));
|
|
359
|
+
this.sliceData();
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
Paginator.prototype.onmousedown = function(oEvent) {
|
|
363
|
+
var oTarget = oEvent.target,
|
|
364
|
+
sDataSlide = oTarget.getAttribute("data-slide");
|
|
365
|
+
|
|
366
|
+
if (sDataSlide && !oTarget.classList.contains("sapMCrslActive")) {
|
|
367
|
+
this.setPageNumber(parseInt(sDataSlide) - 1);
|
|
368
|
+
this.sliceData();
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
return Paginator;
|
|
373
|
+
});
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/m/library",
|
|
9
|
+
"sap/ui/core/Core",
|
|
10
|
+
"sap/base/strings/capitalize",
|
|
11
|
+
"sap/ui/core/InvisibleRenderer"
|
|
12
|
+
], function(mLibrary, Core, capitalize, InvisibleRenderer) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
var oResourceBundle = Core.getLibraryResourceBundle("sap.m");
|
|
16
|
+
|
|
17
|
+
var _BULLETS_TO_NUMBERS_THRESHOLD = 5;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* PaginatorRenderer renderer.
|
|
21
|
+
* @namespace
|
|
22
|
+
*/
|
|
23
|
+
var PaginatorRenderer = {
|
|
24
|
+
apiVersion: 2
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
PaginatorRenderer.render = function (oRm, oControl) {
|
|
28
|
+
var sId = oControl.getId(),
|
|
29
|
+
iPageNumber = oControl.getPageNumber(),
|
|
30
|
+
iPageCount = oControl.getPageCount(),
|
|
31
|
+
i,
|
|
32
|
+
sTextBetweenNumbers;
|
|
33
|
+
|
|
34
|
+
// If there is only one page - do not render the indicator
|
|
35
|
+
if (iPageCount <= 1) {
|
|
36
|
+
InvisibleRenderer.render(oRm, oControl, oControl.TagName);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
oRm.openStart("div", oControl)
|
|
41
|
+
.class("sapUiIntPaginator")
|
|
42
|
+
.openEnd();
|
|
43
|
+
|
|
44
|
+
oRm.openStart("div")
|
|
45
|
+
.class("sapMCrslControls")
|
|
46
|
+
.openEnd();
|
|
47
|
+
|
|
48
|
+
oRm.openStart("div")
|
|
49
|
+
.class("sapMCrslControlsContainer")
|
|
50
|
+
.openEnd();
|
|
51
|
+
|
|
52
|
+
this._renderArrow(oRm, oControl, "previous");
|
|
53
|
+
|
|
54
|
+
oRm.openStart("div", sId + "-pageIndicator");
|
|
55
|
+
|
|
56
|
+
if (iPageCount < _BULLETS_TO_NUMBERS_THRESHOLD) {
|
|
57
|
+
oRm.class("sapMCrslBulleted")
|
|
58
|
+
.openEnd();
|
|
59
|
+
|
|
60
|
+
for (i = 0; i < iPageCount; i++) {
|
|
61
|
+
oRm.openStart("span")
|
|
62
|
+
.accessibilityState({
|
|
63
|
+
role: "img",
|
|
64
|
+
label: oResourceBundle.getText("CAROUSEL_POSITION", [i + 1, iPageCount])
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
oRm.attr("data-slide", i + 1);
|
|
68
|
+
|
|
69
|
+
if (i === iPageNumber) {
|
|
70
|
+
oRm.class("sapMCrslActive");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
oRm.openEnd()
|
|
74
|
+
.text(i + 1)
|
|
75
|
+
.close("span");
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
oRm.class("sapMCrslNumeric")
|
|
79
|
+
.openEnd();
|
|
80
|
+
|
|
81
|
+
sTextBetweenNumbers = oResourceBundle.getText("CAROUSEL_PAGE_INDICATOR_TEXT", [iPageNumber + 1, iPageCount]);
|
|
82
|
+
oRm.openStart("span", sId + "-" + "slide-number")
|
|
83
|
+
.openEnd()
|
|
84
|
+
.text(sTextBetweenNumbers)
|
|
85
|
+
.close("span");
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
oRm.close("div");
|
|
89
|
+
|
|
90
|
+
this._renderArrow(oRm, oControl, "next");
|
|
91
|
+
|
|
92
|
+
oRm.close("div")
|
|
93
|
+
.close("div")
|
|
94
|
+
.close("div");
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
PaginatorRenderer._renderArrow = function (oRm, oControl, sDirection) {
|
|
98
|
+
oRm.openStart("div")
|
|
99
|
+
.class("sapMCrsl" + capitalize(sDirection.slice(0, 4)))
|
|
100
|
+
.attr("title", oResourceBundle.getText("PAGINGBUTTON_" + sDirection.toUpperCase()))
|
|
101
|
+
.openEnd();
|
|
102
|
+
|
|
103
|
+
oRm.openStart("div")
|
|
104
|
+
.class("sapMCrslArrowInner")
|
|
105
|
+
.openEnd();
|
|
106
|
+
|
|
107
|
+
oRm.renderControl(oControl._getNavigationArrow(sDirection === "previous" ? "prev" : "next"));
|
|
108
|
+
|
|
109
|
+
oRm.close("div")
|
|
110
|
+
.close("div");
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
return PaginatorRenderer;
|
|
114
|
+
|
|
115
|
+
}, /* bExport= */ true);
|
|
@@ -12,6 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding",
|
|
13
13
|
"sap/ui/integration/designtime/baseEditor/util/hasTag",
|
|
14
14
|
"sap/ui/integration/designtime/baseEditor/util/cleanupDesigntimeMetadata",
|
|
15
|
+
"sap/ui/base/EventProvider",
|
|
15
16
|
"sap/ui/core/Control",
|
|
16
17
|
"sap/ui/model/resource/ResourceModel",
|
|
17
18
|
"sap/base/util/ObjectPath",
|
|
@@ -43,6 +44,7 @@ sap.ui.define([
|
|
|
43
44
|
ObjectBinding,
|
|
44
45
|
hasTag,
|
|
45
46
|
cleanupDesigntimeMetadata,
|
|
47
|
+
EventProvider,
|
|
46
48
|
Control,
|
|
47
49
|
ResourceModel,
|
|
48
50
|
ObjectPath,
|
|
@@ -130,7 +132,7 @@ sap.ui.define([
|
|
|
130
132
|
* @alias sap.ui.integration.designtime.baseEditor.BaseEditor
|
|
131
133
|
* @author SAP SE
|
|
132
134
|
* @since 1.70.0
|
|
133
|
-
* @version 1.
|
|
135
|
+
* @version 1.101.0
|
|
134
136
|
* @private
|
|
135
137
|
* @experimental since 1.70.0
|
|
136
138
|
* @ui5-restricted
|
|
@@ -728,8 +730,8 @@ sap.ui.define([
|
|
|
728
730
|
/**
|
|
729
731
|
* Loads i18n bundles.
|
|
730
732
|
*
|
|
731
|
-
* @param {string[]}
|
|
732
|
-
* @returns {Promise} Array of {@link sap
|
|
733
|
+
* @param {string[]} aBundlePaths - List of paths to i18n bundles
|
|
734
|
+
* @returns {Promise<module:sap/base/i18n/ResourceBundle>} Array of {@link module:sap/base/i18n/ResourceBundle i18n resource bundles}
|
|
733
735
|
* @private
|
|
734
736
|
*/
|
|
735
737
|
BaseEditor.prototype._loadI18nBundles = function (aBundlePaths) {
|
|
@@ -953,7 +955,7 @@ sap.ui.define([
|
|
|
953
955
|
|
|
954
956
|
// Workaround to support first-level of async dependencies of BaseEditor ¯\_(ツ)_/¯
|
|
955
957
|
aLayoutDependecies.forEach(function (oEditor) {
|
|
956
|
-
if (!
|
|
958
|
+
if (!EventProvider.hasListener(oEditor, "ready", this._checkReady, this)) {
|
|
957
959
|
oEditor.attachReady(this._checkReady, this);
|
|
958
960
|
}
|
|
959
961
|
}, this);
|
|
@@ -57,12 +57,18 @@ BASE_EDITOR.TYPES.ICON=Icon
|
|
|
57
57
|
#XLBL: Property editor type - SimpleIcon
|
|
58
58
|
BASE_EDITOR.TYPES.SIMPLEICON=Simple Icon
|
|
59
59
|
|
|
60
|
-
#XLBL: Property editor type - Array
|
|
61
|
-
BASE_EDITOR.TYPES.ARRAY=Array
|
|
60
|
+
#XLBL: Property editor type - String Array
|
|
61
|
+
BASE_EDITOR.TYPES.ARRAY=String Array
|
|
62
62
|
|
|
63
63
|
#XLBL: Property editor type - JSON
|
|
64
64
|
BASE_EDITOR.TYPES.JSON=JSON
|
|
65
65
|
|
|
66
|
+
#XLBL: Property editor type - Object
|
|
67
|
+
BASE_EDITOR.TYPES.OBJECT=Object
|
|
68
|
+
|
|
69
|
+
#XLBL: Property editor type - Object Array
|
|
70
|
+
BASE_EDITOR.TYPES.OBJECTARRAY=Object Array
|
|
71
|
+
|
|
66
72
|
#XTOL: Validation error text
|
|
67
73
|
BASE_EDITOR.STRING.INVALID_BINDING=Please enter a valid binding string.
|
|
68
74
|
|
|
@@ -201,6 +207,9 @@ BASE_EDITOR.VALIDATOR.NOT_A_BOOLEAN=Not a boolean.
|
|
|
201
207
|
#XTOL: Validation error text
|
|
202
208
|
BASE_EDITOR.VALIDATOR.NOT_A_JSONOBJECT=Not a JSON Format.
|
|
203
209
|
|
|
210
|
+
#XTOL: Validation error text
|
|
211
|
+
BASE_EDITOR.VALIDATOR.NOT_AN_ARRAY_OF_JSONOBJECTS=Not an array of JSON Objects.
|
|
212
|
+
|
|
204
213
|
#XTOL: Validation error text
|
|
205
214
|
BASE_EDITOR.VALIDATOR.NOT_AN_ICON=Not an icon.
|
|
206
215
|
|
|
@@ -36,10 +36,14 @@ BASE_EDITOR.TYPES.ICON=\u0627\u0644\u0623\u064A\u0642\u0648\u0646\u0629
|
|
|
36
36
|
|
|
37
37
|
BASE_EDITOR.TYPES.SIMPLEICON=\u0627\u0644\u0623\u064A\u0642\u0648\u0646\u0629 \u0627\u0644\u0628\u0633\u064A\u0637\u0629
|
|
38
38
|
|
|
39
|
-
BASE_EDITOR.TYPES.ARRAY=\u0635\u0641\u064A\u0641
|
|
39
|
+
BASE_EDITOR.TYPES.ARRAY=\u0635\u0641\u064A\u0641 \u0627\u0644\u0633\u0644\u0633\u0644\u0629
|
|
40
40
|
|
|
41
41
|
BASE_EDITOR.TYPES.JSON=JSON
|
|
42
42
|
|
|
43
|
+
BASE_EDITOR.TYPES.OBJECT=\u0627\u0644\u0643\u0627\u0626\u0646
|
|
44
|
+
|
|
45
|
+
BASE_EDITOR.TYPES.OBJECTARRAY=\u0635\u0641\u064A\u0641 \u0627\u0644\u0643\u0627\u0626\u0646\u0627\u062A
|
|
46
|
+
|
|
43
47
|
BASE_EDITOR.STRING.INVALID_BINDING=\u0627\u0644\u0631\u062C\u0627\u0621 \u0625\u062F\u062E\u0627\u0644 \u0633\u0644\u0633\u0644\u0629 \u0631\u0628\u0637 \u0635\u0627\u0644\u062D\u0629.
|
|
44
48
|
|
|
45
49
|
BASE_EDITOR.LIST.DUPLICATE_ENTRY=\u064A\u064F\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0642\u064A\u0645\u0629 \u0641\u0631\u064A\u062F\u0629.
|
|
@@ -132,6 +136,8 @@ BASE_EDITOR.VALIDATOR.NOT_A_BOOLEAN=\u0644\u064A\u0633 \u0645\u0646\u0637\u0642\
|
|
|
132
136
|
|
|
133
137
|
BASE_EDITOR.VALIDATOR.NOT_A_JSONOBJECT=\u0644\u064A\u0633 \u0628\u062A\u0646\u0633\u064A\u0642 JSON
|
|
134
138
|
|
|
139
|
+
BASE_EDITOR.VALIDATOR.NOT_AN_ARRAY_OF_JSONOBJECTS=\u0644\u064A\u0633 \u0628\u0635\u0641\u064A\u0641 \u0644\u0643\u0627\u0626\u0646\u0627\u062A JSON.
|
|
140
|
+
|
|
135
141
|
BASE_EDITOR.VALIDATOR.NOT_AN_ICON=\u0644\u064A\u0633\u062A \u0623\u064A\u0642\u0648\u0646\u0629
|
|
136
142
|
|
|
137
143
|
BASE_EDITOR.VALIDATOR.MAX_LENGTH=\u0623\u0642\u0635 \u0637\u0648\u0644 {0} \u0645\u0646 \u0627\u0644\u0631\u0645\u0648\u0632 \u0627\u0644\u062A\u064A \u062A\u0645 \u062A\u062C\u0627\u0648\u0632\u0647\u0627.
|
|
@@ -36,10 +36,14 @@ BASE_EDITOR.TYPES.ICON=\u0418\u043A\u043E\u043D\u0430
|
|
|
36
36
|
|
|
37
37
|
BASE_EDITOR.TYPES.SIMPLEICON=\u041E\u043F\u0440\u043E\u0441\u0442\u0435\u043D\u0430 \u0438\u043A\u043E\u043D\u0430
|
|
38
38
|
|
|
39
|
-
BASE_EDITOR.TYPES.ARRAY=\u041C\u0430\u0441\u0438\u0432
|
|
39
|
+
BASE_EDITOR.TYPES.ARRAY=\u041C\u0430\u0441\u0438\u0432 \u0441\u0442\u0440\u0438\u043D\u0433\u043E\u0432\u0435
|
|
40
40
|
|
|
41
41
|
BASE_EDITOR.TYPES.JSON=JSON
|
|
42
42
|
|
|
43
|
+
BASE_EDITOR.TYPES.OBJECT=\u041E\u0431\u0435\u043A\u0442
|
|
44
|
+
|
|
45
|
+
BASE_EDITOR.TYPES.OBJECTARRAY=\u041C\u0430\u0441\u0438\u0432 \u043E\u0431\u0435\u043A\u0442\u0438
|
|
46
|
+
|
|
43
47
|
BASE_EDITOR.STRING.INVALID_BINDING=\u041C\u043E\u043B\u044F, \u0432\u044A\u0432\u0435\u0434\u0435\u0442\u0435 \u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437 \u043D\u0430 \u043E\u0431\u0432\u044A\u0440\u0437\u0432\u0430\u043D\u0435.
|
|
44
48
|
|
|
45
49
|
BASE_EDITOR.LIST.DUPLICATE_ENTRY=\u041C\u043E\u043B\u044F, \u0432\u044A\u0432\u0435\u0434\u0435\u0442\u0435 \u0443\u043D\u0438\u043A\u0430\u043B\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442.
|
|
@@ -132,6 +136,8 @@ BASE_EDITOR.VALIDATOR.NOT_A_BOOLEAN=\u041D\u0435 \u0435 \u0431\u0443\u043B\u0435
|
|
|
132
136
|
|
|
133
137
|
BASE_EDITOR.VALIDATOR.NOT_A_JSONOBJECT=\u041D\u0435 \u0435 \u0444\u043E\u0440\u043C\u0430\u0442 JSON
|
|
134
138
|
|
|
139
|
+
BASE_EDITOR.VALIDATOR.NOT_AN_ARRAY_OF_JSONOBJECTS=\u041D\u0435 \u0435 \u043C\u0430\u0441\u0438\u0432 \u043E\u0442 \u043E\u0431\u0435\u043A\u0442\u0438 JSON.
|
|
140
|
+
|
|
135
141
|
BASE_EDITOR.VALIDATOR.NOT_AN_ICON=\u041D\u0435 \u0435 \u0438\u043A\u043E\u043D\u0430
|
|
136
142
|
|
|
137
143
|
BASE_EDITOR.VALIDATOR.MAX_LENGTH=\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u044A\u043B\u0436\u0438\u043D\u0430 \u043E\u0442 {0} \u0441\u0438\u043C\u0432\u043E\u043B\u0430 \u0435 \u043D\u0430\u0434\u0432\u0438\u0448\u0435\u043D\u0430.
|
|
@@ -36,10 +36,14 @@ BASE_EDITOR.TYPES.ICON=Icona
|
|
|
36
36
|
|
|
37
37
|
BASE_EDITOR.TYPES.SIMPLEICON=S\u00EDmbol simple
|
|
38
38
|
|
|
39
|
-
BASE_EDITOR.TYPES.ARRAY=Matriu
|
|
39
|
+
BASE_EDITOR.TYPES.ARRAY=Matriu de cadena
|
|
40
40
|
|
|
41
41
|
BASE_EDITOR.TYPES.JSON=JSON
|
|
42
42
|
|
|
43
|
+
BASE_EDITOR.TYPES.OBJECT=Objecte
|
|
44
|
+
|
|
45
|
+
BASE_EDITOR.TYPES.OBJECTARRAY=Matriu d'objecte
|
|
46
|
+
|
|
43
47
|
BASE_EDITOR.STRING.INVALID_BINDING=Introdu\u00EFu una cadena de vinculaci\u00F3 v\u00E0lida.
|
|
44
48
|
|
|
45
49
|
BASE_EDITOR.LIST.DUPLICATE_ENTRY=Indiqueu un valor un\u00EDvoc.
|
|
@@ -132,6 +136,8 @@ BASE_EDITOR.VALIDATOR.NOT_A_BOOLEAN=No \u00E9s un boole\u00E0
|
|
|
132
136
|
|
|
133
137
|
BASE_EDITOR.VALIDATOR.NOT_A_JSONOBJECT=No \u00E9s un format JSON
|
|
134
138
|
|
|
139
|
+
BASE_EDITOR.VALIDATOR.NOT_AN_ARRAY_OF_JSONOBJECTS=No \u00E9s una matriu d'objectes JSON.
|
|
140
|
+
|
|
135
141
|
BASE_EDITOR.VALIDATOR.NOT_AN_ICON=No \u00E9s un s\u00EDmbol
|
|
136
142
|
|
|
137
143
|
BASE_EDITOR.VALIDATOR.MAX_LENGTH=S''ha superat la longitud m\u00E0xima de {0} s\u00EDmbols.
|
|
@@ -36,10 +36,14 @@ BASE_EDITOR.TYPES.ICON=Ikona
|
|
|
36
36
|
|
|
37
37
|
BASE_EDITOR.TYPES.SIMPLEICON=Jednoduch\u00E1 ikona
|
|
38
38
|
|
|
39
|
-
BASE_EDITOR.TYPES.ARRAY=Pole
|
|
39
|
+
BASE_EDITOR.TYPES.ARRAY=Pole \u0159et\u011Bzce
|
|
40
40
|
|
|
41
41
|
BASE_EDITOR.TYPES.JSON=JSON
|
|
42
42
|
|
|
43
|
+
BASE_EDITOR.TYPES.OBJECT=Objekt
|
|
44
|
+
|
|
45
|
+
BASE_EDITOR.TYPES.OBJECTARRAY=Pole objektu
|
|
46
|
+
|
|
43
47
|
BASE_EDITOR.STRING.INVALID_BINDING=Zadejte platn\u00FD vazebn\u00ED \u0159et\u011Bzec.
|
|
44
48
|
|
|
45
49
|
BASE_EDITOR.LIST.DUPLICATE_ENTRY=Zadejte jedine\u010Dnou hodnotu.
|
|
@@ -132,6 +136,8 @@ BASE_EDITOR.VALIDATOR.NOT_A_BOOLEAN=Nen\u00ED booleovsk\u00E9
|
|
|
132
136
|
|
|
133
137
|
BASE_EDITOR.VALIDATOR.NOT_A_JSONOBJECT=Nen\u00ED form\u00E1t JSON
|
|
134
138
|
|
|
139
|
+
BASE_EDITOR.VALIDATOR.NOT_AN_ARRAY_OF_JSONOBJECTS=Nen\u00ED pole objekt\u016F JSON.
|
|
140
|
+
|
|
135
141
|
BASE_EDITOR.VALIDATOR.NOT_AN_ICON=Nen\u00ED ikona
|
|
136
142
|
|
|
137
143
|
BASE_EDITOR.VALIDATOR.MAX_LENGTH=Maxim\u00E1ln\u00ED d\u00E9lka {0} symbol\u016F p\u0159ekro\u010Dena.
|