@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
|
@@ -1,629 +0,0 @@
|
|
|
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
|
-
"sap/ui/core/Control",
|
|
8
|
-
"sap/m/ResponsivePopover",
|
|
9
|
-
"sap/ui/model/json/JSONModel",
|
|
10
|
-
"sap/m/Button",
|
|
11
|
-
"sap/m/SegmentedButton",
|
|
12
|
-
"sap/m/SegmentedButtonItem",
|
|
13
|
-
"sap/m/VBox",
|
|
14
|
-
"sap/m/HBox",
|
|
15
|
-
"sap/m/Select",
|
|
16
|
-
"sap/ui/core/ListItem",
|
|
17
|
-
"sap/m/Label",
|
|
18
|
-
"sap/m/Text",
|
|
19
|
-
"sap/m/Title",
|
|
20
|
-
"sap/m/CheckBox",
|
|
21
|
-
"sap/m/Menu",
|
|
22
|
-
"sap/m/MenuItem",
|
|
23
|
-
"sap/m/Input",
|
|
24
|
-
"sap/ui/integration/util/ParameterMap",
|
|
25
|
-
"sap/base/util/merge",
|
|
26
|
-
"sap/ui/core/Core"
|
|
27
|
-
], function (
|
|
28
|
-
Control,
|
|
29
|
-
Popover,
|
|
30
|
-
JSONModel,
|
|
31
|
-
Button,
|
|
32
|
-
SegmentedButton,
|
|
33
|
-
SegmentedButtonItem,
|
|
34
|
-
VBox,
|
|
35
|
-
HBox,
|
|
36
|
-
Select,
|
|
37
|
-
ListItem,
|
|
38
|
-
Label,
|
|
39
|
-
Text,
|
|
40
|
-
Title,
|
|
41
|
-
CheckBox,
|
|
42
|
-
Menu,
|
|
43
|
-
MenuItem,
|
|
44
|
-
Input,
|
|
45
|
-
ParameterMap,
|
|
46
|
-
merge,
|
|
47
|
-
Core
|
|
48
|
-
) {
|
|
49
|
-
"use strict";
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @class
|
|
53
|
-
* @extends sap.ui.core.Control
|
|
54
|
-
* @alias sap.ui.integration.designtime.editor.fields.Settings
|
|
55
|
-
* @author SAP SE
|
|
56
|
-
* @since 1.83.0
|
|
57
|
-
* @version 1.93.3
|
|
58
|
-
* @private
|
|
59
|
-
* @experimental since 1.83.0
|
|
60
|
-
* @ui5-restricted
|
|
61
|
-
*/
|
|
62
|
-
var Settings = Control.extend("sap.ui.integration.designtime.editor.fields.Settings", {
|
|
63
|
-
metadata: {
|
|
64
|
-
library: "sap.ui.integration"
|
|
65
|
-
},
|
|
66
|
-
renderer: null // Dialog-like control without renderer
|
|
67
|
-
});
|
|
68
|
-
Settings.prototype.setConfiguration = function (oConfig) {
|
|
69
|
-
this._originalConfig = oConfig;
|
|
70
|
-
oConfig = merge({}, oConfig);
|
|
71
|
-
var oModel = new JSONModel(oConfig);
|
|
72
|
-
this.setModel(oModel, "currentSettings");
|
|
73
|
-
this.bindElement({
|
|
74
|
-
path: "currentSettings>/"
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
Settings.prototype.open = function (oField, oReferrer, oPreview, oHost, oParent, fnApply, fnCancel) {
|
|
79
|
-
this.addDependent(oPopover);
|
|
80
|
-
this.oHost = oHost;
|
|
81
|
-
this.fnApply = fnApply;
|
|
82
|
-
this.fnCancel = fnCancel;
|
|
83
|
-
this._oOpener = oParent;
|
|
84
|
-
bCancel = true;
|
|
85
|
-
oField.addDependent(this);
|
|
86
|
-
oCurrentInstance = this;
|
|
87
|
-
//force update of all bindings
|
|
88
|
-
this.getModel("currentSettings").checkUpdate(true, true);
|
|
89
|
-
applyVariableDescription(oResourceBundle.getText("CARDEDITOR_SELECT_FROM_LIST"), []);
|
|
90
|
-
if (oReferrer) {
|
|
91
|
-
var iOffsetWidth = oPreview.getDomRef().offsetWidth === 0 ? 270 : oPreview.getDomRef().offsetWidth;
|
|
92
|
-
oPopover.setContentWidth(iOffsetWidth + "px");
|
|
93
|
-
oPopover.setContentHeight((oPreview.getDomRef().offsetHeight - 80) + "px");
|
|
94
|
-
oPopover.setPlacement("Right");
|
|
95
|
-
oDynamicValueField.setValue(oField._label);
|
|
96
|
-
oPopover.openBy(oField);
|
|
97
|
-
} else {
|
|
98
|
-
oPopover.open();
|
|
99
|
-
}
|
|
100
|
-
oCurrentModel = this.getModel("currentSettings");
|
|
101
|
-
if (oCurrentModel.getProperty("/_hasDynamicValue")) {
|
|
102
|
-
selectDynamic();
|
|
103
|
-
} else if (oCurrentModel.getProperty("/_hasSettings")) {
|
|
104
|
-
selectSettings();
|
|
105
|
-
} else if (oCurrentModel.getProperty("/allowDynamicValues")) {
|
|
106
|
-
selectDynamic();
|
|
107
|
-
} else if (oCurrentModel.getProperty("/allowSettings")) {
|
|
108
|
-
selectSettings();
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
var oResourceBundle = Core.getLibraryResourceBundle("sap.ui.integration"),
|
|
113
|
-
oCurrentModel,
|
|
114
|
-
bCancel,
|
|
115
|
-
oCurrentInstance = null,
|
|
116
|
-
oDynamicPanel,
|
|
117
|
-
oSettingsPanel,
|
|
118
|
-
oDescriptionLabel,
|
|
119
|
-
oDynamicValueField,
|
|
120
|
-
oMenu,
|
|
121
|
-
aMenuItems,
|
|
122
|
-
oSelectFormat,
|
|
123
|
-
oFormatDescriptionLabel;
|
|
124
|
-
Settings.prototype._applyCurrentSettings = function () {
|
|
125
|
-
this.fnApply(oCurrentModel.getData());
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
Settings.prototype._cancelCurrentSettings = function () {
|
|
129
|
-
this.fnCancel(this._originalConfig);
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
Settings.prototype.destroy = function () {
|
|
133
|
-
this.removeDependent(oPopover);
|
|
134
|
-
return Control.prototype.destroy.apply(this, arguments);
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
var oPopover = new Popover({
|
|
138
|
-
showArrow: true,
|
|
139
|
-
contentWidth: "400px",
|
|
140
|
-
showHeader: false,
|
|
141
|
-
horizontalScrolling: false,
|
|
142
|
-
modal: false,
|
|
143
|
-
endButton: new Button({
|
|
144
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_CANCEL"),
|
|
145
|
-
press: function () {
|
|
146
|
-
oPopover.close();
|
|
147
|
-
}
|
|
148
|
-
}),
|
|
149
|
-
beginButton: new Button({
|
|
150
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_OK"),
|
|
151
|
-
type: "Emphasized",
|
|
152
|
-
press: function () {
|
|
153
|
-
oCurrentInstance._applyCurrentSettings();
|
|
154
|
-
bCancel = false;
|
|
155
|
-
oPopover.close();
|
|
156
|
-
}
|
|
157
|
-
}),
|
|
158
|
-
afterClose: function () {
|
|
159
|
-
if (bCancel) {
|
|
160
|
-
oCurrentInstance._cancelCurrentSettings();
|
|
161
|
-
}
|
|
162
|
-
bCancel = true;
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
oPopover.attachAfterOpen(function () {
|
|
166
|
-
var oFooter = this.getDomRef().querySelector("footer"),
|
|
167
|
-
oCVDom = oCurrentValue.getDomRef();
|
|
168
|
-
if (oCVDom.nextSibling !== oFooter) {
|
|
169
|
-
oFooter.parentNode.insertBefore(oCVDom, oFooter);
|
|
170
|
-
oFooter.style.marginTop = "0rem";
|
|
171
|
-
oCVDom.style.display = "flex";
|
|
172
|
-
}
|
|
173
|
-
var oResetToDefaultButtonDom = oResetToDefaultButton.getDomRef(),
|
|
174
|
-
oInsert = oFooter.querySelector("button").parentNode;
|
|
175
|
-
if (oResetToDefaultButtonDom) {
|
|
176
|
-
oInsert.insertBefore(oResetToDefaultButtonDom, oInsert.firstChild);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
window.requestAnimationFrame(function () {
|
|
180
|
-
oPopover.getDomRef() && (oPopover.getDomRef().style.opacity = "1");
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
function selectSettings() {
|
|
185
|
-
oSettingsPanel.setVisible(true);
|
|
186
|
-
oDynamicPanel.setVisible(false);
|
|
187
|
-
oSegmentedButton.setSelectedKey("settings");
|
|
188
|
-
var oCVDom = oCurrentValue.getDomRef();
|
|
189
|
-
window.requestAnimationFrame(function () {
|
|
190
|
-
oCVDom && (oCVDom.style.opacity = "0");
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function selectDynamic() {
|
|
195
|
-
oSettingsPanel.setVisible(false);
|
|
196
|
-
oDynamicPanel.setVisible(true);
|
|
197
|
-
oSegmentedButton.setSelectedKey("dynamic");
|
|
198
|
-
var oFlat = oCurrentInstance.getModel("contextflat"),
|
|
199
|
-
o = oFlat._getValueObject(oCurrentModel.getProperty("/value"));
|
|
200
|
-
if (o && o.object.label) {
|
|
201
|
-
oDynamicValueField.setValue(o.object.label);
|
|
202
|
-
applyVariableDescription(o.object.description, o.object.tags);
|
|
203
|
-
if (o.path === "empty") {
|
|
204
|
-
oDynamicValueField.setValue(o.object.label);
|
|
205
|
-
}
|
|
206
|
-
updateCurrentValue(o);
|
|
207
|
-
}
|
|
208
|
-
var oCVDom = oCurrentValue.getDomRef();
|
|
209
|
-
window.requestAnimationFrame(function () {
|
|
210
|
-
oCVDom && (oCVDom.style.opacity = "1");
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
oPopover.addStyleClass("sapUiIntegrationFieldSettings");
|
|
215
|
-
var oSegmentedButton = new SegmentedButton({
|
|
216
|
-
width: "100%",
|
|
217
|
-
visible: "{= ${currentSettings>allowDynamicValues} && ${currentSettings>allowSettings}}"
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
var oDynamicValueButton = new SegmentedButtonItem({
|
|
221
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_DYNAMICVALUES"),
|
|
222
|
-
key: "dynamic",
|
|
223
|
-
icon: "{= ${currentSettings>_hasDynamicValue} ? 'sap-icon://display-more' : 'sap-icon://enter-more'}",
|
|
224
|
-
width: "50%",
|
|
225
|
-
press: selectDynamic
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
oDynamicValueButton.addStyleClass("dynbtn sel");
|
|
229
|
-
|
|
230
|
-
var oSettingsButton = new SegmentedButtonItem({
|
|
231
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_SETTINGS"),
|
|
232
|
-
key: "settings",
|
|
233
|
-
icon: "sap-icon://action-settings",
|
|
234
|
-
width: "50%",
|
|
235
|
-
press: selectSettings
|
|
236
|
-
});
|
|
237
|
-
oSettingsButton.addStyleClass("setbtn");
|
|
238
|
-
|
|
239
|
-
oSegmentedButton.addItem(oDynamicValueButton);
|
|
240
|
-
oSegmentedButton.addItem(oSettingsButton);
|
|
241
|
-
|
|
242
|
-
var oDynamicValueText = new Text({
|
|
243
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_DYNAMICVALUES"),
|
|
244
|
-
visible: "{= ${currentSettings>allowDynamicValues} && !${currentSettings>allowSettings}}"
|
|
245
|
-
});
|
|
246
|
-
oDynamicValueText.addStyleClass("sapUiTinyMagin");
|
|
247
|
-
|
|
248
|
-
var oSettingsText = new Text({
|
|
249
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_SETTINGS"),
|
|
250
|
-
visible: "{= !${currentSettings>allowDynamicValues} && ${currentSettings>allowSettings}}"
|
|
251
|
-
});
|
|
252
|
-
oSettingsText.addStyleClass("sapUiTinyMagin");
|
|
253
|
-
|
|
254
|
-
var oTitle = new HBox({
|
|
255
|
-
width: "100%",
|
|
256
|
-
items: [oSegmentedButton, oDynamicValueText, oSettingsText]
|
|
257
|
-
});
|
|
258
|
-
oTitle.addStyleClass("headertitle");
|
|
259
|
-
|
|
260
|
-
var oCurrentValue = new VBox({
|
|
261
|
-
width: "100%",
|
|
262
|
-
items: [
|
|
263
|
-
new Text({
|
|
264
|
-
text: oResourceBundle.getText("CARDEDITOR_ACTUAL_VALUE")
|
|
265
|
-
}),
|
|
266
|
-
new Input({
|
|
267
|
-
value: {
|
|
268
|
-
path: "currentSettings>_currentContextValue"
|
|
269
|
-
},
|
|
270
|
-
editable: false
|
|
271
|
-
})]
|
|
272
|
-
});
|
|
273
|
-
oCurrentValue.addStyleClass("currentval");
|
|
274
|
-
var oResetToDefaultButton = new Button({
|
|
275
|
-
type: "Transparent",
|
|
276
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_RESET"),
|
|
277
|
-
enabled: "{= ${currentSettings>_next/visible} === (typeof(${currentSettings>visibleToUser}) === 'undefined' ? false : !${currentSettings>visibleToUser}) || ${currentSettings>_next/editable} === (typeof(${currentSettings>editableToUser}) === 'undefined' ? false : !${currentSettings>editableToUser}) || ${currentSettings>_next/allowDynamicValues} === (typeof(${currentSettings>allowDynamicValues}) === 'undefined' ? false : !${currentSettings>allowDynamicValues}) || ${currentSettings>_beforeValue} !== ${currentSettings>value}}",
|
|
278
|
-
tooltip: oResourceBundle.getText("CARDEDITOR_MORE_SETTINGS_P_ADMIN_RESET"),
|
|
279
|
-
press: function () {
|
|
280
|
-
var bVisibleDefault = typeof (oCurrentModel.getProperty("/visibleToUser")) === 'undefined' ? true : oCurrentModel.getProperty("/visibleToUser");
|
|
281
|
-
var bEditableDefault = typeof (oCurrentModel.getProperty("/editableToUser")) === 'undefined' ? true : oCurrentModel.getProperty("/editableToUser");
|
|
282
|
-
var bAllowDynamicValuesDefault = typeof (oCurrentModel.getProperty("/allowDynamicValues")) === 'undefined' ? true : oCurrentModel.getProperty("/allowDynamicValues");
|
|
283
|
-
setNextSetting("visible", bVisibleDefault);
|
|
284
|
-
setNextSetting("editable", bEditableDefault);
|
|
285
|
-
setNextSetting("allowDynamicValues", bAllowDynamicValuesDefault);
|
|
286
|
-
if (oCurrentModel.getProperty("/translatable")) {
|
|
287
|
-
if (oCurrentModel.getProperty("/_translatedDefaultValue") && oCurrentModel.getProperty("/_translatedDefaultValue") !== "") {
|
|
288
|
-
oCurrentModel.setProperty("/value", oCurrentModel.getProperty("/_translatedDefaultValue"));
|
|
289
|
-
} else if (oCurrentModel.getProperty("/_translatedDefaultPlaceholder") && oCurrentModel.getProperty("/_translatedDefaultPlaceholder") !== "") {
|
|
290
|
-
oCurrentModel.setProperty("/value", oCurrentModel.getProperty("/_translatedDefaultPlaceholder"));
|
|
291
|
-
}
|
|
292
|
-
oCurrentModel.setProperty("/_changed", false);
|
|
293
|
-
} else {
|
|
294
|
-
oCurrentModel.setProperty("/value", oCurrentModel.getProperty("/_beforeValue"));
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
oPopover.getBeginButton().firePress();
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
oResetToDefaultButton.addStyleClass("resetbutton");
|
|
301
|
-
|
|
302
|
-
var oHeader = new VBox({
|
|
303
|
-
width: "100%",
|
|
304
|
-
items: [
|
|
305
|
-
oTitle,
|
|
306
|
-
oCurrentValue,
|
|
307
|
-
oResetToDefaultButton
|
|
308
|
-
]
|
|
309
|
-
});
|
|
310
|
-
oHeader.addStyleClass("tabs");
|
|
311
|
-
|
|
312
|
-
oPopover.setCustomHeader(oHeader);
|
|
313
|
-
|
|
314
|
-
function setNextSetting(sProperty, vValue) {
|
|
315
|
-
if (!oCurrentModel.getProperty("/_next")) {
|
|
316
|
-
oCurrentModel.setProperty("/_next", {});
|
|
317
|
-
}
|
|
318
|
-
oCurrentModel.setProperty("/_next/" + sProperty, vValue);
|
|
319
|
-
}
|
|
320
|
-
function createMenuItems(oData, path) {
|
|
321
|
-
var a = [];
|
|
322
|
-
for (var n in oData) {
|
|
323
|
-
if (oData[n] && oData[n].label) {
|
|
324
|
-
var oItem = new MenuItem({
|
|
325
|
-
text: oData[n].label
|
|
326
|
-
});
|
|
327
|
-
oItem.__data = oData[n];
|
|
328
|
-
oData[n].pathvalue = (path + "/" + n).substring(1);
|
|
329
|
-
a.push(oItem);
|
|
330
|
-
var sub = createMenuItems(oData[n], path + "/" + n);
|
|
331
|
-
for (var i = 0; i < sub.length; i++) {
|
|
332
|
-
oItem.addItem(sub[i]);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
return a;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
function createPopupContent() {
|
|
340
|
-
oDynamicPanel = new VBox({ visible: true });
|
|
341
|
-
oSettingsPanel = new VBox({ visible: false });
|
|
342
|
-
oDynamicPanel.addStyleClass("sapUiSmallMargin");
|
|
343
|
-
oDynamicValueField = new Input({
|
|
344
|
-
width: "100%",
|
|
345
|
-
showValueHelp: true,
|
|
346
|
-
valueHelpOnly: true,
|
|
347
|
-
valueHelpRequest: function () {
|
|
348
|
-
if (oMenu) {
|
|
349
|
-
oMenu.destroy();
|
|
350
|
-
}
|
|
351
|
-
oMenu = new Menu({});
|
|
352
|
-
aMenuItems = createMenuItems(oDynamicPanel.getModel("context").getData(), "");
|
|
353
|
-
for (var i = 0; i < aMenuItems.length; i++) {
|
|
354
|
-
oMenu.addItem(aMenuItems[i]);
|
|
355
|
-
}
|
|
356
|
-
oMenu.attachItemSelected(function (oEvent) {
|
|
357
|
-
var oData = oEvent.getParameter("item").__data;
|
|
358
|
-
applyVariableDescription(oData.description || "", oData.tags || []);
|
|
359
|
-
oDynamicValueField.setValue(oData.placeholder || oData.label);
|
|
360
|
-
//get the path and value
|
|
361
|
-
var oFlat = oCurrentInstance.getModel("contextflat");
|
|
362
|
-
updateCurrentValue(oFlat._getPathObject(oData.pathvalue));
|
|
363
|
-
});
|
|
364
|
-
oDynamicValueField.addDependent(oMenu);
|
|
365
|
-
oMenu.addStyleClass("sapUiIntegrationFieldSettingsMenu");
|
|
366
|
-
oMenu.openBy(oDynamicValueField, false, null, null, "1 0");
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
oDynamicValueField.addStyleClass("selectvariable");
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
var oVBox = new VBox({
|
|
375
|
-
items: [
|
|
376
|
-
new Label({ text: "Select a dynamic value" }),
|
|
377
|
-
oDynamicValueField
|
|
378
|
-
]
|
|
379
|
-
});
|
|
380
|
-
oDynamicPanel.addItem(oVBox);
|
|
381
|
-
|
|
382
|
-
oDescriptionLabel = new Text({ text: "", maxLines: 6, renderWhitespace: true });
|
|
383
|
-
oVBox = new VBox({
|
|
384
|
-
width: "100%",
|
|
385
|
-
items: [
|
|
386
|
-
oDescriptionLabel
|
|
387
|
-
]
|
|
388
|
-
});
|
|
389
|
-
oDescriptionLabel.addStyleClass("description");
|
|
390
|
-
oDynamicPanel.addItem(oVBox);
|
|
391
|
-
if (aFormatters.length === -1) {
|
|
392
|
-
//not applicable right now
|
|
393
|
-
oSelectFormat = new Select({
|
|
394
|
-
width: "100%",
|
|
395
|
-
enabled: true,
|
|
396
|
-
change: function () {
|
|
397
|
-
oFormatDescriptionLabel.setText(oSelectFormat.getSelectedItem()._data.description);
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
oVBox = new VBox({
|
|
401
|
-
visible: false,
|
|
402
|
-
items: [
|
|
403
|
-
new Label({ text: "Customize the value..." }),
|
|
404
|
-
oSelectFormat
|
|
405
|
-
]
|
|
406
|
-
});
|
|
407
|
-
oDynamicPanel.addItem(oVBox);
|
|
408
|
-
oFormatDescriptionLabel = new Text({ text: "", maxLines: 4, renderWhitespace: true });
|
|
409
|
-
oFormatDescriptionLabel.addStyleClass("description");
|
|
410
|
-
oVBox = new VBox({
|
|
411
|
-
width: "100%",
|
|
412
|
-
items: [
|
|
413
|
-
oFormatDescriptionLabel
|
|
414
|
-
]
|
|
415
|
-
});
|
|
416
|
-
oDynamicPanel.addItem(oVBox);
|
|
417
|
-
oDynamicPanel.getItems()[2].getItems()[0].addStyleClass("sapUiTinyMarginTop");
|
|
418
|
-
}
|
|
419
|
-
oDynamicPanel.getItems()[0].getItems()[0].addStyleClass("sapUiTinyMarginTop");
|
|
420
|
-
|
|
421
|
-
//create the settings content
|
|
422
|
-
oSettingsPanel.addStyleClass("sapUiSmallMargin");
|
|
423
|
-
oSettingsPanel.addItem(new Title({
|
|
424
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_SETTINGS_P_ADMIN")
|
|
425
|
-
}));
|
|
426
|
-
oSettingsPanel.addItem(new HBox({
|
|
427
|
-
items: [
|
|
428
|
-
new Label({
|
|
429
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_SETTINGS_P_ADMIN_VISIBLE")
|
|
430
|
-
}),
|
|
431
|
-
new CheckBox({
|
|
432
|
-
selected: "{= ${currentSettings>_next/visible} !== false}",
|
|
433
|
-
select: function (oEvent) {
|
|
434
|
-
setNextSetting("visible", oEvent.getParameter("selected"));
|
|
435
|
-
}
|
|
436
|
-
})
|
|
437
|
-
]
|
|
438
|
-
}));
|
|
439
|
-
oSettingsPanel.addItem(new HBox({
|
|
440
|
-
items: [
|
|
441
|
-
new Label({
|
|
442
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_SETTINGS_P_ADMIN_EDIT")
|
|
443
|
-
}),
|
|
444
|
-
new CheckBox({
|
|
445
|
-
selected: "{= ${currentSettings>_next/editable} !== false}",
|
|
446
|
-
enabled: "{= ${currentSettings>_next/visible} !== false}",
|
|
447
|
-
select: function (oEvent) {
|
|
448
|
-
setNextSetting("editable", oEvent.getParameter("selected"));
|
|
449
|
-
}
|
|
450
|
-
})
|
|
451
|
-
]
|
|
452
|
-
}));
|
|
453
|
-
oSettingsPanel.addItem(new HBox({
|
|
454
|
-
visible: "{= ${currentSettings>allowDynamicValues}!== false}",
|
|
455
|
-
items: [
|
|
456
|
-
new Label({
|
|
457
|
-
text: oResourceBundle.getText("CARDEDITOR_MORE_SETTINGS_P_ADMIN_DYN")
|
|
458
|
-
}),
|
|
459
|
-
new CheckBox({
|
|
460
|
-
selected: "{= ${currentSettings>_next/allowDynamicValues} !== false}",
|
|
461
|
-
enabled: "{= ${currentSettings>_next/visible} !== false && ${currentSettings>_next/editable} !== false}",
|
|
462
|
-
select: function (oEvent) {
|
|
463
|
-
setNextSetting("allowDynamicValues", oEvent.getParameter("selected"));
|
|
464
|
-
}
|
|
465
|
-
})
|
|
466
|
-
]
|
|
467
|
-
}));
|
|
468
|
-
|
|
469
|
-
var oItems = oSettingsPanel.getItems();
|
|
470
|
-
oItems[0].addStyleClass("stitle");
|
|
471
|
-
oItems[1].addStyleClass("cbrow");
|
|
472
|
-
oItems[2].addStyleClass("cbrow");
|
|
473
|
-
oItems[3].addStyleClass("cbrow");
|
|
474
|
-
|
|
475
|
-
oPopover.addContent(oDynamicPanel);
|
|
476
|
-
oPopover.addContent(oSettingsPanel);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
var aFormatters = [
|
|
480
|
-
{
|
|
481
|
-
formatMethod: "format.DateTime",
|
|
482
|
-
sourceTypes: ["datetime", "date"],
|
|
483
|
-
label: "Relative date/datetime text of the value",
|
|
484
|
-
description: "Should be applied to dynamic values of type date or datetime or string values that represent a datetime in the format 'yyyy-MM-ddZhh:mm:ss'",
|
|
485
|
-
example: "4 weeks ago",
|
|
486
|
-
syntax: "handlebars",
|
|
487
|
-
binding: "{= format.dateTime('__|VALUE|__',{relative:true})}"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
formatMethod: "format.DateTime",
|
|
491
|
-
sourceTypes: ["datetime", "date"],
|
|
492
|
-
label: "Short date/datetime text of the value",
|
|
493
|
-
description: "Should be applied to dynamic values of type date, date-time or text values that represent a datetime in the format 'yyyy-MM-ddZhh:mm:ss.sss'",
|
|
494
|
-
example: "9/18/20, 2:09 PM",
|
|
495
|
-
binding: "{= format.dateTime('__|VALUE|__',{style:'short'})}"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
formatMethod: "format.DateTime",
|
|
499
|
-
sourceTypes: ["datetime", "date"],
|
|
500
|
-
label: "Medium date/datetime text of the value",
|
|
501
|
-
description: "Should be applied to dynamic values of type date, date-time or text values that represent a datetime in the format 'yyyy-MM-ddThh:mm:ss.sssZ'",
|
|
502
|
-
example: "Sep 18, 2020, 2:09:04 PM",
|
|
503
|
-
binding: "{= format.dateTime('__|VALUE|__',{style:'medium'})}"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
formatMethod: "format.DateTime",
|
|
507
|
-
sourceTypes: ["datetime", "date"],
|
|
508
|
-
label: "Long date, date-time text of the value",
|
|
509
|
-
description: "Should be applied to dynamic values of type date or date-time or string values that represent a datetime in the format 'yyyy-MM-ddThh:mm:ss.sssZ'",
|
|
510
|
-
example: "Sep 18, 2020, 2:09:04 PM",
|
|
511
|
-
binding: "{= format.dateTime('__|VALUE|__',{style:'long'})}"
|
|
512
|
-
}
|
|
513
|
-
];
|
|
514
|
-
|
|
515
|
-
function applyFormatItems(aCustomize, sType) {
|
|
516
|
-
aCustomize = aCustomize || [];
|
|
517
|
-
oSelectFormat.removeAllItems();
|
|
518
|
-
var aItems = [];
|
|
519
|
-
oSelectFormat.addItem(new ListItem({
|
|
520
|
-
text: "No customizing needed",
|
|
521
|
-
key: ""
|
|
522
|
-
}));
|
|
523
|
-
for (var i = 0; i < aFormatters.length; i++) {
|
|
524
|
-
//first add the best matches for the type
|
|
525
|
-
var oFormatter = aFormatters[i],
|
|
526
|
-
oItem = new ListItem({
|
|
527
|
-
text: oFormatter.label,
|
|
528
|
-
key: "key" + i
|
|
529
|
-
});
|
|
530
|
-
oItem._data = oFormatter;
|
|
531
|
-
if (oFormatter.sourceTypes.indexOf(sType) > -1 || aCustomize.indexOf(oFormatter.formatMethod) > -1) {
|
|
532
|
-
oSelectFormat.addItem(oItem);
|
|
533
|
-
} else {
|
|
534
|
-
aItems.push(oItem);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
for (var i = 0; i < aItems.length; i++) {
|
|
538
|
-
oSelectFormat.addItem(aItems[i]);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
createPopupContent();
|
|
545
|
-
|
|
546
|
-
function applyVariableDescription(sText, aTags) {
|
|
547
|
-
aTags = aTags || [];
|
|
548
|
-
if (aTags.indexOf("technical") > -1) {
|
|
549
|
-
sText = sText + "\n" + oResourceBundle.getText("CARDEDITOR_MORE_DYNAMICVALUES_TECHHINT");
|
|
550
|
-
}
|
|
551
|
-
oDescriptionLabel.setText(sText);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
function updateFormatterSelect(oData) {
|
|
556
|
-
if (aFormatters.length === -1) {
|
|
557
|
-
//currently not applicable
|
|
558
|
-
if (!oData) {
|
|
559
|
-
oSelectFormat.removeAllItems();
|
|
560
|
-
oSelectFormat.addItem(
|
|
561
|
-
new ListItem({
|
|
562
|
-
text: "No customizing available for this value"
|
|
563
|
-
})
|
|
564
|
-
);
|
|
565
|
-
oFormatDescriptionLabel.setText("");
|
|
566
|
-
oSelectFormat.setEnabled(false);
|
|
567
|
-
} else {
|
|
568
|
-
applyFormatItems(oData.customize, oData.type);
|
|
569
|
-
oSelectFormat.setEnabled(true);
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
function updateCurrentValue(oData) {
|
|
575
|
-
if (oData) {
|
|
576
|
-
oCurrentModel.setProperty("/_hasDynamicValue", true);
|
|
577
|
-
var vValue = oData.value;
|
|
578
|
-
oCurrentModel.setProperty("/value", vValue);
|
|
579
|
-
oCurrentModel.setProperty("/_contextpath", oData.path);
|
|
580
|
-
if (oData.object && oData.object.value && oData.object.value.indexOf("{{") === 0) {
|
|
581
|
-
oCurrentModel.setProperty("/_currentContextValue", ParameterMap.processPredefinedParameter(oData.object.value));
|
|
582
|
-
updateFormatterSelect(oData.object);
|
|
583
|
-
} else {
|
|
584
|
-
if (oData.path === "empty") {
|
|
585
|
-
oCurrentModel.setProperty("/value", "");
|
|
586
|
-
oCurrentModel.setProperty("/_currentContextValue", "");
|
|
587
|
-
oCurrentModel.setProperty("/_hasDynamicValue", false);
|
|
588
|
-
updateFormatterSelect();
|
|
589
|
-
} else {
|
|
590
|
-
updateFormatterSelect(oData.object);
|
|
591
|
-
if (oData.object && oData.object.hasOwnProperty("value")) {
|
|
592
|
-
oCurrentModel.setProperty("/_currentContextValue", oData.object.value);
|
|
593
|
-
} else {
|
|
594
|
-
oCurrentInstance.oHost.getContextValue(oData.path + "/value").then(function (v) {
|
|
595
|
-
if (v === null) {
|
|
596
|
-
oCurrentModel.setProperty("/_currentContextValue", "(not available)");
|
|
597
|
-
} else {
|
|
598
|
-
oCurrentModel.setProperty("/_currentContextValue", v);
|
|
599
|
-
}
|
|
600
|
-
oData.object && (oData.object.value = v);
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
Settings._private = function () {
|
|
608
|
-
return {
|
|
609
|
-
oPopover: oPopover,
|
|
610
|
-
oSegmentedButton: oSegmentedButton,
|
|
611
|
-
oSettingsButton: oSettingsButton,
|
|
612
|
-
oDynamicPanel: oDynamicPanel,
|
|
613
|
-
oSettingsPanel: oSettingsPanel,
|
|
614
|
-
oCurrentModel: oCurrentModel,
|
|
615
|
-
updateCurrentValue: updateCurrentValue,
|
|
616
|
-
oCurrentInstance: oCurrentInstance,
|
|
617
|
-
oDynamicValueField: oDynamicValueField,
|
|
618
|
-
getMenuItems: function () {
|
|
619
|
-
return aMenuItems;
|
|
620
|
-
},
|
|
621
|
-
getMenu: function () {
|
|
622
|
-
return oMenu;
|
|
623
|
-
|
|
624
|
-
}
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
return Settings;
|
|
629
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"en": "English",
|
|
3
|
-
"ar_SA": "العربية",
|
|
4
|
-
"bg_BG": "Български",
|
|
5
|
-
"ca_ES": "Català",
|
|
6
|
-
"cs_CZ": "Čeština",
|
|
7
|
-
"cy_GB": "Cymraeg",
|
|
8
|
-
"da": "Dansk",
|
|
9
|
-
"de": "Deutsch",
|
|
10
|
-
"de_CH": "Deutsch (Schweiz)",
|
|
11
|
-
"de_DE": "Deutsch (Deutschland)",
|
|
12
|
-
"el_GR": "Ελληνικά",
|
|
13
|
-
"en_GB": "English UK",
|
|
14
|
-
"es": "Español",
|
|
15
|
-
"es_ES": "Español de España",
|
|
16
|
-
"es_MX": "Español de México",
|
|
17
|
-
"fi_FI": "Suomi",
|
|
18
|
-
"fr": "Français",
|
|
19
|
-
"fr_CA": "Français (Canada)",
|
|
20
|
-
"fr_FR": "Français (France)",
|
|
21
|
-
"he_IL": "עברית",
|
|
22
|
-
"hi": "हिन्दी",
|
|
23
|
-
"hr_HR": "hrvatski",
|
|
24
|
-
"hu": "Magyar",
|
|
25
|
-
"id": "Bahasa Indonesia",
|
|
26
|
-
"it": "Italiano",
|
|
27
|
-
"it_IT": "Italiano (Italia)",
|
|
28
|
-
"ja": "日本語",
|
|
29
|
-
"ja_JP": "日本語 (日本)",
|
|
30
|
-
"ko": "한국어",
|
|
31
|
-
"ko_KR": "한국어 (대한민국)",
|
|
32
|
-
"ms": "Bahasa Melayu",
|
|
33
|
-
"nb_NO": "Norsk",
|
|
34
|
-
"nl": "Nederlands",
|
|
35
|
-
"pl": "Polski",
|
|
36
|
-
"pt_BR": "Português (Brasil)",
|
|
37
|
-
"pt_PT": "Português",
|
|
38
|
-
"ro": "Română",
|
|
39
|
-
"ru": "Русский",
|
|
40
|
-
"ru_RU": "Pусский (Россия)",
|
|
41
|
-
"sk_SK": "Slovenčina",
|
|
42
|
-
"sl_SI": "Slovenščina",
|
|
43
|
-
"sr_RS": "Srpski",
|
|
44
|
-
"sv_SE": "Svenska",
|
|
45
|
-
"th": "ไทย",
|
|
46
|
-
"tr_TR": "Türkçe",
|
|
47
|
-
"uk_UA": "Українська",
|
|
48
|
-
"vi_VN": "Tiếng Việt",
|
|
49
|
-
"zh_CN": "简体中文",
|
|
50
|
-
"zh_TW": "繁體中文"
|
|
51
|
-
}
|