@openui5/sap.ui.integration 1.93.3 → 1.96.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +6 -11
- package/THIRDPARTY.txt +10 -16
- package/package.json +3 -3
- package/src/sap/ui/integration/.library +7 -2
- 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 +71 -8
- package/src/sap/ui/integration/cards/AdaptiveContent.js +18 -25
- package/src/sap/ui/integration/cards/AnalyticalContent.js +178 -147
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +3 -2
- package/src/sap/ui/integration/cards/BaseContent.js +11 -2
- package/src/sap/ui/integration/cards/BaseListContent.js +23 -3
- package/src/sap/ui/integration/cards/CalendarContent.js +2 -2
- package/src/sap/ui/integration/cards/CalendarContentRenderer.js +8 -3
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +1 -1
- package/src/sap/ui/integration/cards/Header.js +7 -1
- package/src/sap/ui/integration/cards/ListContent.js +37 -13
- package/src/sap/ui/integration/cards/ListContentRenderer.js +38 -7
- package/src/sap/ui/integration/cards/NumericHeader.js +9 -2
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +9 -2
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -1
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +12 -5
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputTime.js +4 -4
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/overwrites/ActionRender.js +2 -2
- package/src/sap/ui/integration/cards/{Filter.js → filters/BaseFilter.js} +56 -128
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +232 -0
- package/src/sap/ui/integration/{util → cards/filters}/FilterBarFactory.js +37 -12
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +157 -0
- package/src/sap/ui/integration/controls/ActionsStrip.js +1 -3
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +13 -2
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +65 -2
- 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/customElements/CustomElementEditor.js +29 -0
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +26 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +44 -2
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +27 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n.properties +34 -25
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ar.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_bg.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ca.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_cs.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_cy.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_da.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_de.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_el.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_GB.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_sappsd.properties +4 -2
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saprigi.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saptrc.properties +4 -2
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_es.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_es_MX.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_et.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fi.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fr.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fr_CA.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hi.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hr.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hu.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_id.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_it.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_iw.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ja.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_kk.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ko.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_lt.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_lv.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ms.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_nl.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_no.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pl.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pt.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pt_PT.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ro.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ru.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sh.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sk.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sl.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sv.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_th.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_tr.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_uk.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_vi.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_zh_CN.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_zh_TW.properties +19 -13
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +48 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +4 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +4 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +65 -17
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.js +17 -4
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +4 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +10 -2
- 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 +10 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +11 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.fragment.xml +8 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +62 -35
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +10 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +4 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +4 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.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 +5 -4
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +1 -5
- 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 +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/BASEditor.js +7 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n.properties +6 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ar.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_bg.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ca.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cs.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cy.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_da.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_de.properties +6 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_el.properties +4 -0
- 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 +4 -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 +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es_MX.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_et.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fi.properties +7 -3
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr_CA.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hi.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hr.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hu.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_id.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_it.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_iw.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ja.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_kk.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ko.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lt.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lv.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ms.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_nl.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_no.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pl.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt_PT.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ro.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ru.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sh.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sk.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sl.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sv.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_th.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_tr.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_uk.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_vi.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_CN.properties +4 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_TW.properties +4 -0
- 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/iconEditor/IconEditor.js +11 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +12 -1
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +39 -1904
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +22 -1
- package/src/sap/ui/integration/designtime/editor/css/CardPreview.css +4 -0
- package/src/sap/ui/integration/editor/Editor.js +2883 -0
- package/src/sap/ui/integration/{designtime/editor/CardResourceBundles.js → editor/EditorResourceBundles.js} +16 -16
- package/src/sap/ui/integration/editor/Extension.js +103 -0
- package/src/sap/ui/integration/editor/Manifest.js +35 -0
- package/src/sap/ui/integration/editor/Merger.js +102 -0
- package/src/sap/ui/integration/editor/Settings.js +894 -0
- package/src/sap/ui/integration/{designtime/editor/css/CardEditor.css → editor/css/Editor.css} +135 -119
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/BaseField.js +91 -149
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/BooleanField.js +5 -5
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/DateField.js +7 -6
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/DateTimeField.js +7 -6
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/DestinationField.js +5 -5
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/IntegerField.js +5 -10
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/ListField.js +43 -45
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/NumberField.js +5 -10
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/StringField.js +183 -124
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/viz/ColorSelect.js +3 -3
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/viz/IconSelect.js +28 -25
- package/src/sap/ui/integration/{designtime/editor → editor}/fields/viz/ShapeSelect.js +3 -3
- package/src/sap/ui/integration/editor/languages.json +51 -0
- package/src/sap/ui/integration/{designtime/editor → editor}/themes/base/CardEditor.less +0 -0
- package/src/sap/ui/integration/library.js +22 -2
- package/src/sap/ui/integration/messagebundle.properties +99 -60
- package/src/sap/ui/integration/messagebundle_ar.properties +67 -55
- package/src/sap/ui/integration/messagebundle_bg.properties +66 -54
- package/src/sap/ui/integration/messagebundle_ca.properties +67 -55
- package/src/sap/ui/integration/messagebundle_cs.properties +65 -53
- package/src/sap/ui/integration/messagebundle_cy.properties +67 -55
- package/src/sap/ui/integration/messagebundle_da.properties +66 -54
- package/src/sap/ui/integration/messagebundle_de.properties +66 -54
- package/src/sap/ui/integration/messagebundle_el.properties +67 -55
- package/src/sap/ui/integration/messagebundle_en.properties +16 -4
- package/src/sap/ui/integration/messagebundle_en_GB.properties +42 -30
- package/src/sap/ui/integration/messagebundle_en_US_sappsd.properties +16 -4
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +81 -55
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +16 -4
- package/src/sap/ui/integration/messagebundle_es.properties +66 -54
- package/src/sap/ui/integration/messagebundle_es_MX.properties +66 -54
- package/src/sap/ui/integration/messagebundle_et.properties +65 -53
- package/src/sap/ui/integration/messagebundle_fi.properties +66 -54
- package/src/sap/ui/integration/messagebundle_fr.properties +65 -53
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +65 -53
- package/src/sap/ui/integration/messagebundle_hi.properties +67 -55
- package/src/sap/ui/integration/messagebundle_hr.properties +66 -54
- package/src/sap/ui/integration/messagebundle_hu.properties +66 -54
- package/src/sap/ui/integration/messagebundle_id.properties +68 -56
- package/src/sap/ui/integration/messagebundle_it.properties +66 -54
- package/src/sap/ui/integration/messagebundle_iw.properties +66 -54
- package/src/sap/ui/integration/messagebundle_ja.properties +65 -53
- package/src/sap/ui/integration/messagebundle_kk.properties +66 -54
- package/src/sap/ui/integration/messagebundle_ko.properties +67 -55
- package/src/sap/ui/integration/messagebundle_lt.properties +67 -55
- package/src/sap/ui/integration/messagebundle_lv.properties +67 -55
- package/src/sap/ui/integration/messagebundle_ms.properties +66 -54
- package/src/sap/ui/integration/messagebundle_nl.properties +65 -53
- package/src/sap/ui/integration/messagebundle_no.properties +66 -54
- package/src/sap/ui/integration/messagebundle_pl.properties +66 -54
- package/src/sap/ui/integration/messagebundle_pt.properties +66 -54
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +66 -54
- package/src/sap/ui/integration/messagebundle_ro.properties +66 -54
- package/src/sap/ui/integration/messagebundle_ru.properties +67 -55
- package/src/sap/ui/integration/messagebundle_sh.properties +66 -54
- package/src/sap/ui/integration/messagebundle_sk.properties +66 -54
- package/src/sap/ui/integration/messagebundle_sl.properties +67 -55
- package/src/sap/ui/integration/messagebundle_sv.properties +66 -54
- package/src/sap/ui/integration/messagebundle_th.properties +67 -55
- package/src/sap/ui/integration/messagebundle_tr.properties +67 -55
- package/src/sap/ui/integration/messagebundle_uk.properties +66 -54
- package/src/sap/ui/integration/messagebundle_vi.properties +66 -54
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +67 -55
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +67 -55
- package/src/sap/ui/integration/model/ContextModel.js +1 -1
- package/src/sap/ui/integration/model/ObservableModel.js +2 -14
- package/src/sap/ui/integration/schemas/adaptive-card.json +2399 -1010
- package/src/sap/ui/integration/schemas/sap-card.json +359 -53
- package/src/sap/ui/integration/themes/base/AnalyticsCloudContent.less +4 -0
- package/src/sap/ui/integration/themes/base/ListContentItem.less +111 -64
- package/src/sap/ui/integration/themes/base/Microchart.less +0 -1
- package/src/sap/ui/integration/thirdparty/adaptivecards.js +9724 -7530
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +1 -1
- package/src/sap/ui/integration/util/BindingResolver.js +1 -1
- package/src/sap/ui/integration/util/CacheAndRequestDataProvider.js +75 -24
- package/src/sap/ui/integration/util/CardActions.js +1 -1
- package/src/sap/ui/integration/util/CardMerger.js +5 -3
- 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/DataProvider.js +28 -14
- package/src/sap/ui/integration/util/DataProviderFactory.js +39 -8
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/HeaderFactory.js +8 -7
- package/src/sap/ui/integration/util/JSONBindingHelper.js +4 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +1 -1
- package/src/sap/ui/integration/util/Manifest.js +14 -3
- package/src/sap/ui/integration/util/RequestDataProvider.js +6 -4
- 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/Utils.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +164 -71
- package/src/sap-ui-integration-card-editor.js +15 -0
- package/src/sap-ui-integration-editor.js +4 -2
- package/ui5.yaml +4 -1
- package/src/sap/ui/integration/designtime/editor/fields/Settings.js +0 -629
- package/src/sap/ui/integration/designtime/editor/languages.json +0 -51
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"./BaseFilter",
|
|
8
|
+
"sap/ui/core/library",
|
|
9
|
+
"sap/m/DynamicDateRange",
|
|
10
|
+
"sap/m/DynamicDateUtil"
|
|
11
|
+
], function (
|
|
12
|
+
BaseFilter,
|
|
13
|
+
coreLibrary,
|
|
14
|
+
DynamicDateRange,
|
|
15
|
+
DynamicDateUtil
|
|
16
|
+
) {
|
|
17
|
+
"use strict";
|
|
18
|
+
|
|
19
|
+
var ValueState = coreLibrary.ValueState;
|
|
20
|
+
var MIN_DATE = new Date(-8640000000000000);
|
|
21
|
+
var MIN_ODATA_DATE = new Date("1753-01-01");
|
|
22
|
+
var MAX_DATE = new Date(8640000000000000);
|
|
23
|
+
var MAX_ODATA_DATE = new Date("9999-12-31");
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {string} sOperator sap.m.StandardDynamicDateRangeKeys operator in upper case
|
|
27
|
+
* @returns {string} Operator in camel case
|
|
28
|
+
*/
|
|
29
|
+
function operatorToCamelCase(sOperator) {
|
|
30
|
+
var mOperators = {
|
|
31
|
+
"DATE": "date",
|
|
32
|
+
"TODAY": "today",
|
|
33
|
+
"YESTERDAY": "yesterday",
|
|
34
|
+
"TOMORROW": "tomorrow",
|
|
35
|
+
|
|
36
|
+
"DATERANGE": "dateRange",
|
|
37
|
+
"FROM": "from",
|
|
38
|
+
"TO": "to",
|
|
39
|
+
"YEARTODATE": "yearToDate",
|
|
40
|
+
"LASTDAYS": "lastDays",
|
|
41
|
+
"LASTWEEKS": "lastWeeks",
|
|
42
|
+
"LASTMONTHS": "lastMonths",
|
|
43
|
+
"LASTQUARTERS": "lastQuarters",
|
|
44
|
+
"LASTYEARS": "lastYears",
|
|
45
|
+
"NEXTDAYS": "nextDays",
|
|
46
|
+
"NEXTWEEKS": "nextWeeks",
|
|
47
|
+
"NEXTMONTHS": "nextMonths",
|
|
48
|
+
"NEXTQUARTERS": "nextQuarters",
|
|
49
|
+
"NEXTYEARS": "nextYears",
|
|
50
|
+
"TODAYFROMTO": "todayFromTo",
|
|
51
|
+
|
|
52
|
+
"THISWEEK": "thisWeek",
|
|
53
|
+
"LASTWEEK": "lastWeek",
|
|
54
|
+
"NEXTWEEK": "nextWeek",
|
|
55
|
+
|
|
56
|
+
"SPECIFICMONTH": "specificMonth",
|
|
57
|
+
"THISMONTH": "thisMonth",
|
|
58
|
+
"LASTMONTH": "lastMonth",
|
|
59
|
+
"NEXTMONTH": "nextMonth",
|
|
60
|
+
|
|
61
|
+
"THISQUARTER": "thisQuarter",
|
|
62
|
+
"LASTQUARTER": "lastQuarter",
|
|
63
|
+
"NEXTQUARTER": "nextQuarter",
|
|
64
|
+
"QUARTER1": "quarter1",
|
|
65
|
+
"QUARTER2": "quarter2",
|
|
66
|
+
"QUARTER3": "quarter3",
|
|
67
|
+
"QUARTER4": "quarter4",
|
|
68
|
+
|
|
69
|
+
"THISYEAR": "thisYear",
|
|
70
|
+
"LASTYEAR": "lastYear",
|
|
71
|
+
"NEXTYEAR": "nextYear"
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
return mOperators[sOperator];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Constructor for a new <code>DateRangeFilter</code>.
|
|
79
|
+
*
|
|
80
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
81
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
82
|
+
*
|
|
83
|
+
* @class
|
|
84
|
+
*
|
|
85
|
+
* @extends sap.ui.integration.cards.filters.BaseFilter
|
|
86
|
+
*
|
|
87
|
+
* @author SAP SE
|
|
88
|
+
* @version 1.96.2
|
|
89
|
+
*
|
|
90
|
+
* @constructor
|
|
91
|
+
* @private
|
|
92
|
+
* @since 1.96
|
|
93
|
+
* @alias sap.ui.integration.cards.filters.DateRangeFilter
|
|
94
|
+
*/
|
|
95
|
+
var DateRangeFilter = BaseFilter.extend("sap.ui.integration.cards.filters.DateRangeFilter", {
|
|
96
|
+
metadata: {
|
|
97
|
+
library: "sap.ui.integration",
|
|
98
|
+
aggregations: {
|
|
99
|
+
/**
|
|
100
|
+
* The internally used sap.m.DynamicDateRange control instance.
|
|
101
|
+
*/
|
|
102
|
+
_ddr: { type: "sap.m.DynamicDateRange", multiple: false, visibility: "hidden" }
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
renderer: {
|
|
106
|
+
apiVersion: 2
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @override
|
|
112
|
+
*/
|
|
113
|
+
DateRangeFilter.prototype.getField = function () {
|
|
114
|
+
return this._getDdr();
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @override
|
|
119
|
+
*/
|
|
120
|
+
DateRangeFilter.prototype.getValueForModel = function () {
|
|
121
|
+
var oDateRangeValue = this._getDdr().getValue();
|
|
122
|
+
var oValue;
|
|
123
|
+
var oRange;
|
|
124
|
+
var oRangeOData;
|
|
125
|
+
|
|
126
|
+
if (oDateRangeValue) {
|
|
127
|
+
oValue = Object.assign({}, oDateRangeValue);
|
|
128
|
+
var aDates = DynamicDateUtil.toDates(oValue),
|
|
129
|
+
dStart = aDates[0].getJSDate ? aDates[0].getJSDate() : aDates[0],
|
|
130
|
+
dEnd = aDates[1].getJSDate ? aDates[1].getJSDate() : aDates[1];
|
|
131
|
+
|
|
132
|
+
oRange = {
|
|
133
|
+
start: dStart.toISOString(),
|
|
134
|
+
end: dEnd.toISOString()
|
|
135
|
+
};
|
|
136
|
+
oRangeOData = {
|
|
137
|
+
start: dStart.toISOString(),
|
|
138
|
+
end: dEnd.toISOString()
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
if (oValue.operator === "TO") {
|
|
142
|
+
oRange.start = MIN_DATE.toISOString();
|
|
143
|
+
oRangeOData.start = MIN_ODATA_DATE.toISOString();
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (oValue.operator === "FROM") {
|
|
147
|
+
oRange.end = MAX_DATE.toISOString();
|
|
148
|
+
oRangeOData.end = MAX_ODATA_DATE.toISOString();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
oValue.operator = operatorToCamelCase(oValue.operator);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
value: oValue,
|
|
156
|
+
range: oRange,
|
|
157
|
+
rangeOData: oRangeOData
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
DateRangeFilter.prototype._getDdr = function () {
|
|
162
|
+
var oControl = this.getAggregation("_ddr");
|
|
163
|
+
if (!oControl) {
|
|
164
|
+
oControl = this._createDdr();
|
|
165
|
+
this.setAggregation("_ddr", oControl);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return oControl;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Constructs a DynamicDateRange control configured with the Filter's properties.
|
|
173
|
+
*
|
|
174
|
+
* @private
|
|
175
|
+
* @returns {sap.m.DynamicDateRange} configured instance
|
|
176
|
+
*/
|
|
177
|
+
DateRangeFilter.prototype._createDdr = function () {
|
|
178
|
+
var oConfig = Object.assign({}, this.getConfig());
|
|
179
|
+
var oValue;
|
|
180
|
+
|
|
181
|
+
if (oConfig.value) {
|
|
182
|
+
var sOption = oConfig.value.operator.toUpperCase();
|
|
183
|
+
var aTypes = DynamicDateUtil.getOption(sOption).getValueTypes();
|
|
184
|
+
oValue = {
|
|
185
|
+
operator: sOption,
|
|
186
|
+
values: oConfig.value.values.map(function (vValue, i) {
|
|
187
|
+
if (aTypes[i] === "date") {
|
|
188
|
+
return new Date(vValue);
|
|
189
|
+
}
|
|
190
|
+
return vValue;
|
|
191
|
+
})
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
oConfig.options = oConfig.options || this._getDefaultOptions();
|
|
196
|
+
oConfig.options = oConfig.options.map(function (sOption) {
|
|
197
|
+
return sOption.toUpperCase();
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
var oDdr = new DynamicDateRange({
|
|
201
|
+
value: oValue,
|
|
202
|
+
options: oConfig.options
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
oDdr.attachChange(function (oEvent) {
|
|
206
|
+
if (oEvent.getParameter("valid")) {
|
|
207
|
+
oDdr.setValueState(ValueState.None);
|
|
208
|
+
this.setValue(this.getValueForModel());
|
|
209
|
+
} else {
|
|
210
|
+
oDdr.setValueState(ValueState.Error);
|
|
211
|
+
}
|
|
212
|
+
}.bind(this));
|
|
213
|
+
|
|
214
|
+
return oDdr;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
DateRangeFilter.prototype._getDefaultOptions = function () {
|
|
218
|
+
return [
|
|
219
|
+
"date",
|
|
220
|
+
"today",
|
|
221
|
+
"dateRange",
|
|
222
|
+
"from",
|
|
223
|
+
"to",
|
|
224
|
+
"lastDays",
|
|
225
|
+
"nextDays",
|
|
226
|
+
"lastWeeks",
|
|
227
|
+
"nextWeeks"
|
|
228
|
+
];
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
return DateRangeFilter;
|
|
232
|
+
});
|
|
@@ -4,15 +4,17 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
+
"./SelectFilter",
|
|
8
|
+
"./DateRangeFilter",
|
|
7
9
|
"sap/ui/base/Object",
|
|
8
10
|
"sap/m/library",
|
|
9
|
-
"sap/m/HBox"
|
|
10
|
-
"sap/ui/integration/cards/Filter"
|
|
11
|
+
"sap/m/HBox"
|
|
11
12
|
], function (
|
|
13
|
+
SelectFilter,
|
|
14
|
+
DateRangeFilter,
|
|
12
15
|
BaseObject,
|
|
13
16
|
mLibrary,
|
|
14
|
-
HBox
|
|
15
|
-
Filter
|
|
17
|
+
HBox
|
|
16
18
|
) {
|
|
17
19
|
"use strict";
|
|
18
20
|
|
|
@@ -28,7 +30,7 @@ sap.ui.define([
|
|
|
28
30
|
* @extends sap.ui.base.Object
|
|
29
31
|
*
|
|
30
32
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
33
|
+
* @version 1.96.2
|
|
32
34
|
*
|
|
33
35
|
* @constructor
|
|
34
36
|
* @private
|
|
@@ -47,30 +49,38 @@ sap.ui.define([
|
|
|
47
49
|
});
|
|
48
50
|
|
|
49
51
|
/**
|
|
50
|
-
* Creates a new filter bar which holds
|
|
52
|
+
* Creates a new filter bar which holds fields for filtering.
|
|
53
|
+
* Each field is bound to the given model.
|
|
51
54
|
*
|
|
52
|
-
* @param {map} mFiltersConfig A map of the parameters config - the same that is defined in sap.card/configuration/
|
|
53
|
-
* @param {
|
|
55
|
+
* @param {map} mFiltersConfig A map of the parameters config - the same that is defined in sap.card/configuration/filters.
|
|
56
|
+
* @param {sap.ui.model.json.JSONModel} oModel The model for filters.
|
|
54
57
|
* @returns {sap.m.HBox} The Filter bar.
|
|
55
58
|
*/
|
|
56
|
-
FilterBarFactory.prototype.create = function (mFiltersConfig,
|
|
59
|
+
FilterBarFactory.prototype.create = function (mFiltersConfig, oModel) {
|
|
57
60
|
var aFilters = [],
|
|
58
61
|
aReadyPromises = [],
|
|
59
62
|
mConfig,
|
|
60
63
|
sKey,
|
|
61
64
|
oFilter,
|
|
62
|
-
oFilterBarStrip
|
|
65
|
+
oFilterBarStrip,
|
|
66
|
+
FilterClass = null;
|
|
63
67
|
|
|
64
68
|
for (sKey in mFiltersConfig) {
|
|
65
69
|
mConfig = mFiltersConfig[sKey];
|
|
70
|
+
FilterClass = this._getClass(mConfig.type);
|
|
66
71
|
|
|
67
|
-
oFilter = new
|
|
72
|
+
oFilter = new FilterClass({
|
|
68
73
|
card: this._oCard,
|
|
69
74
|
key: sKey,
|
|
70
75
|
config: mConfig,
|
|
71
|
-
value:
|
|
76
|
+
value: {
|
|
77
|
+
model: "filters",
|
|
78
|
+
path: "/" + sKey
|
|
79
|
+
}
|
|
72
80
|
});
|
|
73
81
|
|
|
82
|
+
oModel.setProperty("/" + sKey, oFilter.getValueForModel());
|
|
83
|
+
|
|
74
84
|
this._awaitEvent(aReadyPromises, oFilter, "_ready");
|
|
75
85
|
oFilter._setDataConfiguration(mConfig.data);
|
|
76
86
|
|
|
@@ -114,5 +124,20 @@ sap.ui.define([
|
|
|
114
124
|
}));
|
|
115
125
|
};
|
|
116
126
|
|
|
127
|
+
FilterBarFactory.prototype._getClass = function (sType) {
|
|
128
|
+
sType = sType || "select";
|
|
129
|
+
|
|
130
|
+
switch (sType.toLowerCase()) {
|
|
131
|
+
case "string": // backwards compatibility
|
|
132
|
+
case "integer": // backwards compatibility
|
|
133
|
+
case "select":
|
|
134
|
+
return SelectFilter;
|
|
135
|
+
case "daterange":
|
|
136
|
+
return DateRangeFilter;
|
|
137
|
+
default:
|
|
138
|
+
return undefined;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
117
142
|
return FilterBarFactory;
|
|
118
143
|
});
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"./BaseFilter",
|
|
8
|
+
"sap/m/Select",
|
|
9
|
+
"sap/ui/core/ListItem",
|
|
10
|
+
"sap/ui/model/json/JSONModel"
|
|
11
|
+
], function (
|
|
12
|
+
BaseFilter,
|
|
13
|
+
Select,
|
|
14
|
+
ListItem,
|
|
15
|
+
JSONModel
|
|
16
|
+
) {
|
|
17
|
+
"use strict";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Constructor for a new <code>SelectFilter</code>.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
23
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
24
|
+
*
|
|
25
|
+
* @class
|
|
26
|
+
*
|
|
27
|
+
* @extends sap.ui.integration.cards.filters.BaseFilter
|
|
28
|
+
*
|
|
29
|
+
* @author SAP SE
|
|
30
|
+
* @version 1.96.2
|
|
31
|
+
*
|
|
32
|
+
* @constructor
|
|
33
|
+
* @private
|
|
34
|
+
* @since 1.84
|
|
35
|
+
* @alias sap.ui.integration.cards.filters.SelectFilter
|
|
36
|
+
*/
|
|
37
|
+
var SelectFilter = BaseFilter.extend("sap.ui.integration.cards.filters.SelectFilter", {
|
|
38
|
+
metadata: {
|
|
39
|
+
library: "sap.ui.integration",
|
|
40
|
+
aggregations: {
|
|
41
|
+
/**
|
|
42
|
+
* The internally used sap.m.Select control instance.
|
|
43
|
+
*/
|
|
44
|
+
_select: { type: "sap.m.Select", multiple: false, visibility: "hidden" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
renderer: {
|
|
48
|
+
apiVersion: 2
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
SelectFilter.prototype.exit = function () {
|
|
53
|
+
BaseFilter.prototype.exit.apply(this, arguments);
|
|
54
|
+
|
|
55
|
+
if (this._oItemTemplate) {
|
|
56
|
+
this._oItemTemplate.destroy();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @override
|
|
62
|
+
*/
|
|
63
|
+
SelectFilter.prototype.getField = function () {
|
|
64
|
+
return this._getSelect();
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @override
|
|
69
|
+
*/
|
|
70
|
+
SelectFilter.prototype.onDataChanged = function () {
|
|
71
|
+
var oSelect = this._getSelect();
|
|
72
|
+
|
|
73
|
+
oSelect.setSelectedKey(this.getValue().value);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @override
|
|
78
|
+
*/
|
|
79
|
+
SelectFilter.prototype.getValueForModel = function () {
|
|
80
|
+
var oSelectedItem = this._getSelect().getSelectedItem();
|
|
81
|
+
|
|
82
|
+
if (oSelectedItem) {
|
|
83
|
+
return {
|
|
84
|
+
value: oSelectedItem.getKey(),
|
|
85
|
+
selectedItem: {
|
|
86
|
+
title: oSelectedItem.getText(),
|
|
87
|
+
key: oSelectedItem.getKey()
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
value: this.getConfig().value
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
SelectFilter.prototype._getSelect = function () {
|
|
98
|
+
var oControl = this.getAggregation("_select");
|
|
99
|
+
if (!oControl) {
|
|
100
|
+
oControl = this._createSelect();
|
|
101
|
+
this.setAggregation("_select", oControl);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return oControl;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Constructs a Select control configured with the Filter's properties.
|
|
109
|
+
*
|
|
110
|
+
* @private
|
|
111
|
+
* @returns {sap.m.Select} configured instance
|
|
112
|
+
*/
|
|
113
|
+
SelectFilter.prototype._createSelect = function () {
|
|
114
|
+
var oSelect = new Select(),
|
|
115
|
+
sItemTemplateKey,
|
|
116
|
+
sItemTemplateTitle,
|
|
117
|
+
sItemsPath = "/",
|
|
118
|
+
oConfig = this.getConfig();
|
|
119
|
+
|
|
120
|
+
oSelect.attachChange(function (oEvent) {
|
|
121
|
+
this.setValue(this.getValueForModel());
|
|
122
|
+
|
|
123
|
+
var sManifestKey = "/sap.card/configuration/filters/" + this.getKey() + "/value",
|
|
124
|
+
oParams = {};
|
|
125
|
+
oParams[sManifestKey] = oEvent.getParameter("selectedItem").getKey();
|
|
126
|
+
this.getCardInstance()._fireConfigurationChange(oParams);
|
|
127
|
+
}.bind(this));
|
|
128
|
+
|
|
129
|
+
if (oConfig && oConfig.item) {
|
|
130
|
+
sItemsPath = oConfig.item.path || sItemsPath;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (oConfig && oConfig.item && oConfig.item.template) {
|
|
134
|
+
sItemTemplateKey = oConfig.item.template.key;
|
|
135
|
+
sItemTemplateTitle = oConfig.item.template.title;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (oConfig && oConfig.items) {
|
|
139
|
+
sItemTemplateKey = "{key}";
|
|
140
|
+
sItemTemplateTitle = "{title}";
|
|
141
|
+
this.setModel(new JSONModel(oConfig.items));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
this._oItemTemplate = new ListItem({ key: sItemTemplateKey, text: sItemTemplateTitle });
|
|
145
|
+
|
|
146
|
+
oSelect.bindItems({
|
|
147
|
+
path: sItemsPath,
|
|
148
|
+
template: this._oItemTemplate
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
oSelect.setSelectedKey(oConfig.value);
|
|
152
|
+
|
|
153
|
+
return oSelect;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
return SelectFilter;
|
|
157
|
+
});
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* @extends sap.ui.core.Control
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.96.2
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
@@ -140,7 +140,6 @@ sap.ui.define([
|
|
|
140
140
|
tooltip: mConfig.tooltip || mConfig.text,
|
|
141
141
|
type: mConfig.buttonType,
|
|
142
142
|
ariaHasPopup: mConfig.ariaHasPopup,
|
|
143
|
-
enabled: mConfig.enabled,
|
|
144
143
|
visible: mConfig.visible
|
|
145
144
|
});
|
|
146
145
|
} else {
|
|
@@ -149,7 +148,6 @@ sap.ui.define([
|
|
|
149
148
|
tooltip: mConfig.tooltip,
|
|
150
149
|
type: mConfig.buttonType,
|
|
151
150
|
ariaHasPopup: mConfig.ariaHasPopup,
|
|
152
|
-
enabled: mConfig.enabled,
|
|
153
151
|
visible: mConfig.visible
|
|
154
152
|
});
|
|
155
153
|
}
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/integration/library",
|
|
8
9
|
"./ListContentItemRenderer",
|
|
9
10
|
"sap/m/Avatar",
|
|
10
11
|
"sap/m/AvatarShape",
|
|
11
12
|
"sap/m/AvatarSize",
|
|
12
13
|
"sap/m/StandardListItem"
|
|
13
14
|
], function (
|
|
15
|
+
library,
|
|
14
16
|
ListContentItemRenderer,
|
|
15
17
|
Avatar,
|
|
16
18
|
AvatarShape,
|
|
@@ -19,6 +21,8 @@ sap.ui.define([
|
|
|
19
21
|
) {
|
|
20
22
|
"use strict";
|
|
21
23
|
|
|
24
|
+
var AttributesLayoutType = library.AttributesLayoutType;
|
|
25
|
+
|
|
22
26
|
/**
|
|
23
27
|
* Constructor for a new ListContentItem.
|
|
24
28
|
*
|
|
@@ -30,7 +34,7 @@ sap.ui.define([
|
|
|
30
34
|
* @extends sap.m.StandardListItem
|
|
31
35
|
*
|
|
32
36
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
37
|
+
* @version 1.96.2
|
|
34
38
|
*
|
|
35
39
|
* @constructor
|
|
36
40
|
* @private
|
|
@@ -68,13 +72,20 @@ sap.ui.define([
|
|
|
68
72
|
* Defines the background color of the icon.
|
|
69
73
|
* @since 1.83
|
|
70
74
|
*/
|
|
71
|
-
iconBackgroundColor: { type: "sap.m.AvatarColor" }
|
|
75
|
+
iconBackgroundColor: { type: "sap.m.AvatarColor" },
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Defines the layout type of the attributes.
|
|
79
|
+
*/
|
|
80
|
+
attributesLayoutType: { type: "sap.ui.integration.AttributesLayoutType", defaultValue: AttributesLayoutType.TwoColumns }
|
|
72
81
|
},
|
|
73
82
|
aggregations: {
|
|
74
83
|
microchart: { type: "sap.ui.integration.controls.Microchart", multiple: false },
|
|
75
84
|
|
|
76
85
|
actionsStrip: { type: "sap.ui.integration.controls.ActionsStrip", multiple: false },
|
|
77
86
|
|
|
87
|
+
attributes: { type: "sap.m.ObjectStatus", multiple: true },
|
|
88
|
+
|
|
78
89
|
/**
|
|
79
90
|
* Defines the inner avatar control.
|
|
80
91
|
*/
|
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/integration/library",
|
|
8
9
|
"sap/ui/core/Renderer",
|
|
9
10
|
"sap/ui/core/Core",
|
|
10
11
|
"sap/ui/Device",
|
|
11
12
|
"sap/m/StandardListItemRenderer"
|
|
12
|
-
], function(
|
|
13
|
+
], function(library,
|
|
14
|
+
Renderer,
|
|
13
15
|
Core,
|
|
14
16
|
Device,
|
|
15
17
|
StandardListItemRenderer) {
|
|
@@ -22,6 +24,8 @@ sap.ui.define([
|
|
|
22
24
|
var ListContentItemRenderer = Renderer.extend(StandardListItemRenderer);
|
|
23
25
|
ListContentItemRenderer.apiVersion = 2;
|
|
24
26
|
|
|
27
|
+
var AttributesLayoutType = library.AttributesLayoutType;
|
|
28
|
+
|
|
25
29
|
/**
|
|
26
30
|
* @override
|
|
27
31
|
*/
|
|
@@ -37,6 +41,14 @@ sap.ui.define([
|
|
|
37
41
|
if (oLI.getMicrochart()) {
|
|
38
42
|
rm.class("sapUiIntLCIWithChart");
|
|
39
43
|
}
|
|
44
|
+
|
|
45
|
+
if (oLI.getActionsStrip()) {
|
|
46
|
+
rm.class("sapUiIntLCIWithActionsStrip");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (oLI.getAttributes().length) {
|
|
50
|
+
rm.class("sapUiIntLCIWithAttributes");
|
|
51
|
+
}
|
|
40
52
|
};
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -55,7 +67,8 @@ sap.ui.define([
|
|
|
55
67
|
rm.renderControl(oLI._getAvatar());
|
|
56
68
|
}
|
|
57
69
|
|
|
58
|
-
rm.openStart("div")
|
|
70
|
+
rm.openStart("div")
|
|
71
|
+
.class("sapMSLIDiv");
|
|
59
72
|
|
|
60
73
|
// if bShouldRenderInfoWithoutTitle=true then adapt the style class to have flex-direction: row
|
|
61
74
|
if ((!sDescription && bAdaptTitleSize && sInfo) || bShouldRenderInfoWithoutTitle) {
|
|
@@ -136,11 +149,61 @@ sap.ui.define([
|
|
|
136
149
|
this.renderLIContentWrapper(rm, oLI);
|
|
137
150
|
this.renderContentLatter(rm, oLI);
|
|
138
151
|
|
|
152
|
+
this.renderItemAttributes(rm, oLI);
|
|
153
|
+
|
|
139
154
|
this.renderFooter(rm, oLI);
|
|
140
155
|
|
|
141
156
|
this.closeItemTag(rm, oLI);
|
|
142
157
|
};
|
|
143
158
|
|
|
159
|
+
ListContentItemRenderer.renderItemAttributes = function(rm, oLI) {
|
|
160
|
+
var aAttrs = oLI.getAttributes(),
|
|
161
|
+
sLayoutType = oLI.getAttributesLayoutType(),
|
|
162
|
+
iLength = aAttrs.length,
|
|
163
|
+
i;
|
|
164
|
+
|
|
165
|
+
if (!iLength) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
rm.openStart("div")
|
|
170
|
+
.class("sapUiIntLCIAttrs")
|
|
171
|
+
.openEnd();
|
|
172
|
+
|
|
173
|
+
for (i = 0; i < iLength; i++) {
|
|
174
|
+
rm.openStart("div")
|
|
175
|
+
.class("sapUiIntLCIAttrRow")
|
|
176
|
+
.openEnd();
|
|
177
|
+
|
|
178
|
+
rm.openStart("span")
|
|
179
|
+
.class("sapUiIntLCIAttrCell")
|
|
180
|
+
.openEnd();
|
|
181
|
+
|
|
182
|
+
rm.renderControl(aAttrs[i]);
|
|
183
|
+
|
|
184
|
+
rm.close("span");
|
|
185
|
+
|
|
186
|
+
if (sLayoutType === AttributesLayoutType.TwoColumns) {
|
|
187
|
+
i++;
|
|
188
|
+
|
|
189
|
+
if (aAttrs[i]) {
|
|
190
|
+
rm.openStart("span")
|
|
191
|
+
.class("sapUiIntLCIAttrCell")
|
|
192
|
+
.class("sapUiIntLCIAttrSecondCell")
|
|
193
|
+
.openEnd();
|
|
194
|
+
|
|
195
|
+
rm.renderControl(aAttrs[i]);
|
|
196
|
+
|
|
197
|
+
rm.close("span");
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
rm.close("div");
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
rm.close("div");
|
|
205
|
+
};
|
|
206
|
+
|
|
144
207
|
ListContentItemRenderer.renderFooter = function(rm, oLI) {
|
|
145
208
|
|
|
146
209
|
var oMicrochart = oLI.getMicrochart(),
|