@openui5/sap.ui.mdc 1.97.1 → 1.99.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +25 -30
- package/THIRDPARTY.txt +14 -21
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +6 -3
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/BaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +1100 -1796
- package/src/sap/ui/mdc/ChartDelegate.js +429 -270
- package/src/sap/ui/mdc/ChartRenderer.js +73 -77
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +3 -2
- package/src/sap/ui/mdc/FilterField.js +11 -8
- package/src/sap/ui/mdc/Link.js +23 -4
- package/src/sap/ui/mdc/LinkDelegate.js +3 -3
- package/src/sap/ui/mdc/MultiValueField.js +20 -6
- package/src/sap/ui/mdc/Table.js +79 -64
- package/src/sap/ui/mdc/TableDelegate.js +40 -12
- package/src/sap/ui/mdc/ValueHelp.js +19 -9
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
- package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +49 -13
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
- package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +3 -3
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +38 -249
- package/src/sap/ui/mdc/chart/Item.js +62 -92
- package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +256 -43
- package/src/sap/ui/mdc/condition/Operator.js +1 -1
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +80 -5
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +81 -5
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +60 -20
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +3 -3
- package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +75 -27
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +4 -4
- package/src/sap/ui/mdc/field/FieldBase.js +32 -6
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
- package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -10
- package/src/sap/ui/mdc/field/FieldInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/OutParameter.js +1 -1
- package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
- package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
- package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +5 -5
- package/src/sap/ui/mdc/field/content/DateContent.js +2 -2
- package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
- package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +335 -126
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +8 -2
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +6 -6
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
- package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
- package/src/sap/ui/mdc/library.js +45 -42
- package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
- package/src/sap/ui/mdc/link/Factory.js +2 -2
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Log.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +140 -177
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/messagebundle.properties +55 -1
- package/src/sap/ui/mdc/messagebundle_ar.properties +39 -4
- package/src/sap/ui/mdc/messagebundle_bg.properties +54 -19
- package/src/sap/ui/mdc/messagebundle_ca.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +52 -17
- package/src/sap/ui/mdc/messagebundle_cy.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +44 -9
- package/src/sap/ui/mdc/messagebundle_de.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_en.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +61 -4
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +51 -16
- package/src/sap/ui/mdc/messagebundle_et.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +43 -8
- package/src/sap/ui/mdc/messagebundle_fr.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +53 -18
- package/src/sap/ui/mdc/messagebundle_iw.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_ja.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_lt.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_ms.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +42 -7
- package/src/sap/ui/mdc/messagebundle_no.properties +45 -10
- package/src/sap/ui/mdc/messagebundle_pl.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_pt.properties +44 -9
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +39 -4
- package/src/sap/ui/mdc/messagebundle_th.properties +40 -5
- package/src/sap/ui/mdc/messagebundle_tr.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_vi.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +37 -2
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +19 -5
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -9
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
- package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +5 -5
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +112 -96
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +206 -116
- package/src/sap/ui/mdc/p13n/Engine.js +31 -13
- package/src/sap/ui/mdc/p13n/FlexUtil.js +11 -118
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +20 -6
- package/src/sap/ui/mdc/p13n/UIManager.js +5 -7
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +9 -6
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1092 -48
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
- package/src/sap/ui/mdc/p13n/panels/ListView.js +6 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +14 -7
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +10 -17
- package/src/sap/ui/mdc/table/Column.js +12 -12
- package/src/sap/ui/mdc/table/CreationRow.js +11 -11
- package/src/sap/ui/mdc/table/GridTableType.js +5 -6
- package/src/sap/ui/mdc/table/PropertyHelper.js +44 -7
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +8 -10
- package/src/sap/ui/mdc/table/RowSettings.js +4 -4
- package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
- package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
- package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +15 -4
- package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
- package/src/sap/ui/mdc/ui/Container.js +2 -2
- package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
- package/src/sap/ui/mdc/util/Common.js +1 -1
- package/src/sap/ui/mdc/util/DateUtil.js +1 -1
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
- package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +43 -12
- package/src/sap/ui/mdc/util/TypeUtil.js +5 -4
- package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
- package/src/sap/ui/mdc/valuehelp/Popover.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/Container.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -2
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +11 -5
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +43 -8
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +43 -24
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
- package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +9 -9
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
- package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
- package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
- package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +261 -138
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
- package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
- package/src/sap/ui/mdc/ChartNew.js +0 -1114
- package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
- package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
- package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
- package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
- package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
- package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
- package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
- package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
- package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
- package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
- package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
|
@@ -9,16 +9,17 @@ sap.ui.define([
|
|
|
9
9
|
], function (BaseController, P13nBuilder, SortPanelOld, SortPanel) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
|
-
var SortController = BaseController.extend("sap.ui.mdc.p13n.subcontroller.SortController"
|
|
12
|
+
var SortController = BaseController.extend("sap.ui.mdc.p13n.subcontroller.SortController", {
|
|
13
|
+
constructor: function() {
|
|
14
|
+
BaseController.apply(this, arguments);
|
|
15
|
+
this._bResetEnabled = true;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
13
18
|
|
|
14
19
|
SortController.prototype.getCurrentState = function() {
|
|
15
20
|
return this.getAdaptationControl().getCurrentState().sorters;
|
|
16
21
|
};
|
|
17
22
|
|
|
18
|
-
SortController.prototype.getResetEnabled = function() {
|
|
19
|
-
return true;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
23
|
SortController.prototype.getUISettings = function() {
|
|
23
24
|
return {
|
|
24
25
|
tabText: sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc").getText("p13nDialog.TAB_Sort"),
|
|
@@ -33,20 +34,12 @@ sap.ui.define([
|
|
|
33
34
|
|
|
34
35
|
SortController.prototype.getAdaptationUI = function(oPropertyHelper){
|
|
35
36
|
|
|
36
|
-
var oAdaptationControl = this.getAdaptationControl();
|
|
37
37
|
var oSortPanel;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
oSortPanel.setP13nModel(oAdaptationModel);
|
|
44
|
-
} else {
|
|
45
|
-
oSortPanel = new SortPanel();
|
|
46
|
-
var oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
47
|
-
oSortPanel.setP13nData(oAdaptationData.items);
|
|
48
|
-
this._oPanel = oSortPanel;
|
|
49
|
-
}
|
|
39
|
+
oSortPanel = new SortPanel();
|
|
40
|
+
var oAdaptationData = this.mixInfoAndState(oPropertyHelper);
|
|
41
|
+
oSortPanel.setP13nData(oAdaptationData.items);
|
|
42
|
+
this._oPanel = oSortPanel;
|
|
50
43
|
|
|
51
44
|
return Promise.resolve(oSortPanel);
|
|
52
45
|
};
|
|
@@ -14,7 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
*
|
|
15
15
|
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
16
16
|
* @param {object} [mSettings] initial settings for the new control
|
|
17
|
-
* @class The column for the metadata
|
|
17
|
+
* @class The column for the metadata-driven table with the template, which is shown if the rows have data.
|
|
18
18
|
* @extends sap.ui.core.Element
|
|
19
19
|
* @author SAP SE
|
|
20
20
|
* @private
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
defaultAggregation: "template",
|
|
33
33
|
properties: {
|
|
34
34
|
/**
|
|
35
|
-
* Width of the column
|
|
35
|
+
* Width of the column.
|
|
36
36
|
*/
|
|
37
37
|
width: {
|
|
38
38
|
type: "sap.ui.core.CSSSize",
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
defaultValue: null
|
|
41
41
|
},
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Minimum width of the column.
|
|
44
44
|
*/
|
|
45
45
|
minWidth: {
|
|
46
46
|
type: "float",
|
|
@@ -48,13 +48,13 @@ sap.ui.define([
|
|
|
48
48
|
defaultValue: 8
|
|
49
49
|
},
|
|
50
50
|
/**
|
|
51
|
-
* The column header text
|
|
51
|
+
* The column header text.
|
|
52
52
|
*/
|
|
53
53
|
header: {
|
|
54
54
|
type: "string"
|
|
55
55
|
},
|
|
56
56
|
/**
|
|
57
|
-
* Defines whether the column header is visible
|
|
57
|
+
* Defines whether the column header is visible.
|
|
58
58
|
* @since 1.78
|
|
59
59
|
*/
|
|
60
60
|
headerVisible: {
|
|
@@ -63,14 +63,14 @@ sap.ui.define([
|
|
|
63
63
|
defaultValue: true
|
|
64
64
|
},
|
|
65
65
|
/**
|
|
66
|
-
* Horizontal alignment of the content
|
|
66
|
+
* Horizontal alignment of the content.
|
|
67
67
|
*/
|
|
68
68
|
hAlign: {
|
|
69
69
|
type: "sap.ui.core.HorizontalAlign",
|
|
70
70
|
defaultValue: "Begin"
|
|
71
71
|
},
|
|
72
72
|
/**
|
|
73
|
-
* Importance of the column. It is used to show or hide the column based on the <code>
|
|
73
|
+
* Importance of the column. It is used to show or hide the column based on the <code>Table</code> configuration.
|
|
74
74
|
*/
|
|
75
75
|
importance: {
|
|
76
76
|
type: "sap.ui.core.Priority",
|
|
@@ -86,7 +86,7 @@ sap.ui.define([
|
|
|
86
86
|
defaultValue: -1
|
|
87
87
|
},
|
|
88
88
|
/**
|
|
89
|
-
* The data property related to the column
|
|
89
|
+
* The data property related to the column.
|
|
90
90
|
*/
|
|
91
91
|
dataProperty: {
|
|
92
92
|
type: "string"
|
|
@@ -95,15 +95,15 @@ sap.ui.define([
|
|
|
95
95
|
events: {},
|
|
96
96
|
aggregations: {
|
|
97
97
|
/**
|
|
98
|
-
* Template for the column
|
|
98
|
+
* Template for the column.
|
|
99
99
|
*/
|
|
100
100
|
template: {
|
|
101
101
|
type: "sap.ui.core.Control",
|
|
102
102
|
multiple: false
|
|
103
103
|
},
|
|
104
104
|
/**
|
|
105
|
-
* <code>CreationRow</code> template
|
|
106
|
-
* <b>Note:</b> Once the binding
|
|
105
|
+
* <code>CreationRow</code> template.
|
|
106
|
+
* <b>Note:</b> Once the binding supports creating transient records, this aggregation will be removed.
|
|
107
107
|
*/
|
|
108
108
|
creationTemplate: {
|
|
109
109
|
type: "sap.ui.core.Control",
|
|
@@ -240,7 +240,7 @@ sap.ui.define([
|
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Creates and returns the column header control.
|
|
243
|
-
* If <code>headerVisible=false</code> then
|
|
243
|
+
* If <code>headerVisible=false</code> then <code>width=0px</code> is applied to the <code>sap.m.Label</code> control for accessibility purposes.
|
|
244
244
|
* @param {boolean} bMobileTable The type of the table
|
|
245
245
|
* @param {boolean} bResizing Indicates whether the column is resizable
|
|
246
246
|
* @returns {object} The column header control
|
|
@@ -12,16 +12,16 @@ sap.ui.define([
|
|
|
12
12
|
var TableType = Library.TableType;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Constructor for a new CreationRow
|
|
15
|
+
* Constructor for a new <code>CreationRow</code>.
|
|
16
16
|
*
|
|
17
17
|
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
18
|
-
* @param {object} [mSettings]
|
|
19
|
-
* @class
|
|
20
|
-
* elements are aligned with the columns of the table
|
|
18
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
19
|
+
* @class Row that allows the user to enter data in a row-shaped form if the {@link sap.ui.mdc.TableType TableType} is "<code>Table</code>".
|
|
20
|
+
* The form elements are aligned with the columns of the table and are created automatically based on the
|
|
21
21
|
* {@link sap.ui.mdc.table.Column#getCreationTemplate creationTemplate} aggregation of the {@link sap.ui.mdc.table.Column}.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.99.1
|
|
25
25
|
* @constructor
|
|
26
26
|
* @experimental
|
|
27
27
|
* @private
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
defaultValue: true
|
|
45
45
|
},
|
|
46
46
|
/**
|
|
47
|
-
* Determines whether the <code>sap.ui.mdc.table.CreationRow</code> and its inner control are in a busy state
|
|
47
|
+
* Determines whether the <code>sap.ui.mdc.table.CreationRow</code> and its inner control are in a busy state.
|
|
48
48
|
*/
|
|
49
49
|
busy: {
|
|
50
50
|
type: "boolean",
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
defaultValue: false
|
|
53
53
|
},
|
|
54
54
|
/**
|
|
55
|
-
* Visibility of the <code>CreationRow</code
|
|
55
|
+
* Visibility of the <code>CreationRow</code>.
|
|
56
56
|
*/
|
|
57
57
|
visible: {
|
|
58
58
|
type: "boolean",
|
|
@@ -62,7 +62,7 @@ sap.ui.define([
|
|
|
62
62
|
},
|
|
63
63
|
events: {
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* The event is fired when the corresponding keyboard shortcut or the apply button of the toolbar are pressed.
|
|
66
66
|
*/
|
|
67
67
|
apply: {
|
|
68
68
|
allowPreventDefault: true
|
|
@@ -145,9 +145,9 @@ sap.ui.define([
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* Updates the row based on the configuration of the table
|
|
148
|
+
* Updates the row based on the configuration of the table.
|
|
149
149
|
*
|
|
150
|
-
* @returns {Promise} Promise that resolves once the inner <code>CreationRow</code> control is updated
|
|
150
|
+
* @returns {Promise} <code>Promise</code> that resolves once the inner <code>CreationRow</code> control is updated
|
|
151
151
|
* @private
|
|
152
152
|
*/
|
|
153
153
|
CreationRow.prototype.update = function() {
|
|
@@ -231,7 +231,7 @@ sap.ui.define([
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
|
-
* Gets the table this row is
|
|
234
|
+
* Gets the table in which this row is located.
|
|
235
235
|
*
|
|
236
236
|
* @return {sap.ui.mdc.Table|null} The instance of the table or <code>null</code>, if this row is not inside a table.
|
|
237
237
|
* @private
|
|
@@ -17,8 +17,8 @@ sap.ui.define([
|
|
|
17
17
|
* Constructor for a new <code>GridTableType</code>.
|
|
18
18
|
*
|
|
19
19
|
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
20
|
-
* @param {object} [mSettings]
|
|
21
|
-
* @class The table type info
|
|
20
|
+
* @param {object} [mSettings] Initial settings for the new object
|
|
21
|
+
* @class The table type info class for the metadata-driven table.
|
|
22
22
|
* @extends sap.ui.mdc.table.TableTypeBase
|
|
23
23
|
* @author SAP SE
|
|
24
24
|
* @private
|
|
@@ -35,8 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
library: "sap.ui.mdc",
|
|
36
36
|
properties: {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* Defaults to Auto - meaning table adjusts its height based on the parent container
|
|
38
|
+
* Defines how the table handles the row count.
|
|
40
39
|
*/
|
|
41
40
|
rowCountMode: {
|
|
42
41
|
type: "sap.ui.mdc.RowCountMode",
|
|
@@ -44,8 +43,8 @@ sap.ui.define([
|
|
|
44
43
|
},
|
|
45
44
|
/**
|
|
46
45
|
* Row count of the inner table.<br>
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* This property specifies the minimum row count if <code>sap.ui.mdc.RowCountMode.Auto</code> is used.<br>
|
|
47
|
+
* This property specifies the row count if <code>sap.ui.mdc.RowCountMode.Fixed</code> is used.
|
|
49
48
|
*/
|
|
50
49
|
rowCount: {
|
|
51
50
|
type: "int",
|
|
@@ -15,6 +15,43 @@ sap.ui.define([
|
|
|
15
15
|
) {
|
|
16
16
|
"use strict";
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @typedef {object} sap.ui.mdc.table.PropertyInfo
|
|
20
|
+
* @extends sap.ui.mdc.util.PropertyInfo
|
|
21
|
+
*
|
|
22
|
+
* @property {object} [exportSettings]
|
|
23
|
+
* Object that contains information about the export settings, see {@link sap.ui.export.Spreadsheet}.
|
|
24
|
+
* @property {int} [maxConditions]
|
|
25
|
+
* Defines the maximum number of filter conditions for the property. Possible values that can be used:
|
|
26
|
+
* <ul>
|
|
27
|
+
* <li>1 is a single-filter expression field</li>
|
|
28
|
+
* <li>-1 is a multi-filter expression field</li>
|
|
29
|
+
* </ul>
|
|
30
|
+
* This information is for example used in the <code>addItem</code> method of the <code>FilterBar</code> control to forward this information to
|
|
31
|
+
* the created <code>FilterField</code> instance.
|
|
32
|
+
* @property {boolean} [filterable=true]
|
|
33
|
+
* Defines whether a property is filterable.
|
|
34
|
+
* @property {boolean} [sortable=true]
|
|
35
|
+
* Defines whether a property is sortable.
|
|
36
|
+
* @property {boolean} [groupable=false]
|
|
37
|
+
* Defines whether a property is groupable.
|
|
38
|
+
* @property {boolean} [key=false]
|
|
39
|
+
* Defines whether a property is a key or part of a key in the data.
|
|
40
|
+
* @property {string} [unit]
|
|
41
|
+
* Name of the unit property that is related to this property.
|
|
42
|
+
* @property {string} [text]
|
|
43
|
+
* Name of the text property that is related to this property in a 1:1 relation.
|
|
44
|
+
* @property {boolean} [required]
|
|
45
|
+
* Defines whether a filter condition for this property is required.
|
|
46
|
+
* @property {object} [visualSettings]
|
|
47
|
+
* This object contains all relevant properties for visual adjustments.
|
|
48
|
+
*
|
|
49
|
+
* @private
|
|
50
|
+
* @experimental
|
|
51
|
+
* @ui5-restricted sap.fe
|
|
52
|
+
* MDC_PUBLIC_CANDIDATE
|
|
53
|
+
*/
|
|
54
|
+
|
|
18
55
|
/**
|
|
19
56
|
* Constructor for a new table property helper.
|
|
20
57
|
*
|
|
@@ -22,7 +59,7 @@ sap.ui.define([
|
|
|
22
59
|
* The properties to process in this helper
|
|
23
60
|
* @param {object<string, object>} [mExtensions]
|
|
24
61
|
* Key-value map, where the key is the name of the property and the value is the extension containing mode-specific information.
|
|
25
|
-
* The extension of a property is stored in a reserved <code>extension</code> attribute and its attributes must be specified with
|
|
62
|
+
* The extension of a property is stored in a reserved <code>extension</code> attribute, and its attributes must be specified with
|
|
26
63
|
* <code>mExtensionAttributeMetadata</code>.
|
|
27
64
|
* @param {sap.ui.base.ManagedObject} [oParent]
|
|
28
65
|
* A reference to an instance that will act as the parent of this helper
|
|
@@ -30,14 +67,14 @@ sap.ui.define([
|
|
|
30
67
|
* The attribute metadata for the model-specific property extension
|
|
31
68
|
*
|
|
32
69
|
* @class
|
|
33
|
-
* Table property helpers
|
|
70
|
+
* Table property helpers in this SAPUI5 library provide tables with consistent and standardized structure of properties and their attributes.
|
|
34
71
|
* Validates the given properties, sets defaults, and provides utilities to work with these properties.
|
|
35
72
|
* The utilities can only be used for properties that are known to the helper. Known properties are all those that are passed to the constructor.
|
|
36
73
|
*
|
|
37
74
|
* @extends sap.ui.mdc.util.PropertyHelper
|
|
38
75
|
*
|
|
39
76
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
77
|
+
* @version 1.99.1
|
|
41
78
|
*
|
|
42
79
|
* @private
|
|
43
80
|
* @experimental
|
|
@@ -131,7 +168,7 @@ sap.ui.define([
|
|
|
131
168
|
}, this);
|
|
132
169
|
}
|
|
133
170
|
} else if (!bSplitCells && oExportSettings) {
|
|
134
|
-
// called for basic
|
|
171
|
+
// called for basic PropertyInfo having exportSettings
|
|
135
172
|
oColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells);
|
|
136
173
|
oColumnExportSettings.property = oProperty.path;
|
|
137
174
|
aColumnExportSettings.push(oColumnExportSettings);
|
|
@@ -213,7 +250,7 @@ sap.ui.define([
|
|
|
213
250
|
/**
|
|
214
251
|
* Sets the width of the provided column based on the <code>visualSettings</code> of the relevant <code>PropertyInfo</code>.
|
|
215
252
|
*
|
|
216
|
-
* @param {sap.ui.mdc.table.Column} oMDCColumn The
|
|
253
|
+
* @param {sap.ui.mdc.table.Column} oMDCColumn The <code>Column</code> instance for which to set the width
|
|
217
254
|
* @public
|
|
218
255
|
* @since 1.95
|
|
219
256
|
*/
|
|
@@ -234,9 +271,9 @@ sap.ui.define([
|
|
|
234
271
|
};
|
|
235
272
|
|
|
236
273
|
/**
|
|
237
|
-
* Calculates the column width based on the provided <code>PropertyInfo</code
|
|
274
|
+
* Calculates the column width based on the provided <code>PropertyInfo</code>.
|
|
238
275
|
*
|
|
239
|
-
* @param {object} oProperty The properties of PropertyInfo of
|
|
276
|
+
* @param {object} oProperty The properties of <code>PropertyInfo</code> of <code>Column</code> instance for which to set the width
|
|
240
277
|
* @param {object} [mWidthCalculation] The configuration object for the width calculation
|
|
241
278
|
* @param {int} [mWidthCalculation.minWidth=2] The minimum content width in rem
|
|
242
279
|
* @param {int} [mWidthCalculation.maxWidth=19] The maximum content width in rem
|
|
@@ -16,8 +16,8 @@ sap.ui.define([
|
|
|
16
16
|
* Constructor for a new <code>ResponsiveTableType</code>.
|
|
17
17
|
*
|
|
18
18
|
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
19
|
-
* @param {object} [mSettings]
|
|
20
|
-
* @class The table type info
|
|
19
|
+
* @param {object} [mSettings] Initial settings for the new object
|
|
20
|
+
* @class The table type info class for the metadata-driven table.
|
|
21
21
|
* @extends sap.ui.mdc.table.TableTypeBase
|
|
22
22
|
* @author SAP SE
|
|
23
23
|
* @private
|
|
@@ -34,8 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
library: "sap.ui.mdc",
|
|
35
35
|
properties: {
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* Defaults to Basic - meaning only growing is enabled on <code>ResponsiveTable</code>
|
|
37
|
+
* Specifies the growing mode.
|
|
39
38
|
*/
|
|
40
39
|
growingMode: {
|
|
41
40
|
type: "sap.ui.mdc.GrowingMode",
|
|
@@ -58,13 +57,13 @@ sap.ui.define([
|
|
|
58
57
|
defaultValue: false
|
|
59
58
|
},
|
|
60
59
|
/**
|
|
61
|
-
* Defines which columns
|
|
60
|
+
* Defines which columns are hidden instead of moved into the pop-in area depending on their importance.
|
|
62
61
|
* See {@link sap.m.Column#getImportance} and {@link sap.m.Table#getHiddenInPopin} for more details.
|
|
63
62
|
*
|
|
64
63
|
* <b>Note:</b> To hide columns based on their importance, it's mandatory to set <code>showDetailsButton="true"</code>.<br>
|
|
65
64
|
* If no priority is given, the default configuration of {@link sap.ui.mdc.table.ResponsiveTableType#getShowDetailsButton} is used.<br>
|
|
66
|
-
* If this property is changed after the <code>
|
|
67
|
-
*
|
|
65
|
+
* If this property is changed after the <code>Table</code> has been initialized, the new changes take effect only when the Show /
|
|
66
|
+
* Hide Details button is pressed a second time.
|
|
68
67
|
*
|
|
69
68
|
* @since 1.86
|
|
70
69
|
*/
|
|
@@ -231,14 +230,13 @@ sap.ui.define([
|
|
|
231
230
|
var oRb = Core.getLibraryResourceBundle("sap.ui.mdc"), sText;
|
|
232
231
|
|
|
233
232
|
sText = this.bHideDetails ? oRb.getText("table.SHOWDETAILS_TEXT") : oRb.getText("table.HIDEDETAILS_TEXT");
|
|
234
|
-
this._oShowDetailsButton.setTooltip(sText);
|
|
235
233
|
this._oShowDetailsButton.setText(sText);
|
|
236
234
|
};
|
|
237
235
|
|
|
238
236
|
/**
|
|
239
237
|
* Toggles the visibility of the Show Details button.<br>
|
|
240
238
|
* If {@param bValue} is set to <code>true</code>, it sets the <code>hiddenInPopin</code> property on the inner <code>ResponsiveTable</code> to
|
|
241
|
-
* hide columns based on <code>
|
|
239
|
+
* hide columns based on the <code>Table</code> configuration (<code>showDetailsButton</code> and <code>detailsButtonSetting</code> properties).
|
|
242
240
|
* Otherwise an empty array is set to show all columns.
|
|
243
241
|
*
|
|
244
242
|
* @param {boolean} bValue - Whether to hide details and display the Show Details button
|
|
@@ -274,7 +272,7 @@ sap.ui.define([
|
|
|
274
272
|
};
|
|
275
273
|
|
|
276
274
|
/**
|
|
277
|
-
* Helper function to get the importance of the columns
|
|
275
|
+
* Helper function to get the importance of the columns to be hidden based on <code>Table</code> configuration.
|
|
278
276
|
*
|
|
279
277
|
* @returns {array} sap.ui.core.Priority[] Array of column priorities
|
|
280
278
|
* @private
|
|
@@ -13,13 +13,13 @@ sap.ui.define([
|
|
|
13
13
|
* Constructor for new RowSettings.
|
|
14
14
|
*
|
|
15
15
|
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
16
|
-
* @param {object} [mSettings]
|
|
16
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
17
17
|
*
|
|
18
18
|
* @class
|
|
19
|
-
* The <code>RowSettings</code> control
|
|
20
|
-
* This control can only be used in the context of <code>sap.ui.mdc.Table</code> control to define row settings.
|
|
19
|
+
* The <code>RowSettings</code> control is used to configure a row.
|
|
20
|
+
* This control can only be used in the context of the <code>sap.ui.mdc.Table</code> control to define row settings.
|
|
21
21
|
* @extends sap.ui.core.Element
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.99.1
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @experimental
|
|
@@ -13,8 +13,8 @@ sap.ui.define([
|
|
|
13
13
|
* Constructor for a new <code>TableTypeBase</code>.
|
|
14
14
|
*
|
|
15
15
|
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
16
|
-
* @param {object} [mSettings]
|
|
17
|
-
* @class The table type info base class for the metadata
|
|
16
|
+
* @param {object} [mSettings] Initial settings for the new object
|
|
17
|
+
* @class The table type info base class for the metadata-driven table. Base class with no implementation.
|
|
18
18
|
* @extends sap.ui.core.Element
|
|
19
19
|
* @author SAP SE
|
|
20
20
|
* @private
|
|
@@ -23,11 +23,6 @@
|
|
|
23
23
|
min-width: 4.75rem; /* As input has a min-width + padding */
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/* empty indicator */
|
|
27
|
-
.sapUiMdcFieldBaseEmpty::after {
|
|
28
|
-
content: attr(emptyIndicator);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
26
|
/**
|
|
32
27
|
* align text-like controls in Table (as done for stand-alone controls in Table)
|
|
33
28
|
*/
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@mdctoken-large-line-height: 1.375rem;
|
|
2
|
+
@mdctoken-small-line-height: 1rem;
|
|
3
|
+
|
|
4
|
+
// hide Token border and background
|
|
5
|
+
.sapUiMdcTokenizerDisplay .sapMToken {
|
|
6
|
+
border: 0px; // hide the border of a token
|
|
7
|
+
background-color: transparent; // remove background of Token
|
|
8
|
+
padding-left: 0px; // remove the left padding
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sapUiMdcTokenizerDisplay.sapMTokenizer.sapMTokenizerReadonly .sapMToken {
|
|
12
|
+
padding-left: 0px; // remove left padding of a token. The right padding will be used to show the delimiters
|
|
13
|
+
|
|
14
|
+
// right margin and padding of the token (space for the delimiter)
|
|
15
|
+
padding-right: 0.375rem;
|
|
16
|
+
margin-right: 0.375rem;
|
|
17
|
+
margin-top: 0px;
|
|
18
|
+
margin-bottom: 0px;
|
|
19
|
+
|
|
20
|
+
color: @sapUiBaseText;
|
|
21
|
+
height: @mdctoken-small-line-height;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay.sapMTokenizer.sapMTokenizerReadonly .sapMToken {
|
|
25
|
+
height: @mdctoken-large-line-height;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.sapUiSizeCozy .sapUiMdcTokenizerDisplay.sapMTokenizer.sapMTokenizerReadonly .sapMToken {
|
|
29
|
+
// right margin and padding of the token (space for the delimiter)
|
|
30
|
+
padding-right: 0.5rem;
|
|
31
|
+
margin-right: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// delimiters between tokens
|
|
35
|
+
.sapUiMdcTokenizerDisplay .sapMToken::after {
|
|
36
|
+
content: attr(delimiter);
|
|
37
|
+
color: @sapUiBaseText;
|
|
38
|
+
font-family: @sapUiFontFamily;
|
|
39
|
+
font-size: @sapMFontMediumSize;
|
|
40
|
+
font-weight: normal;
|
|
41
|
+
vertical-align: middle;
|
|
42
|
+
margin-left: 0.25rem; // space between tokens. the left margin of the delimiter and the right side of the token
|
|
43
|
+
position: absolute;
|
|
44
|
+
line-height: @mdctoken-small-line-height;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sapUiSizeCozy .sapUiMdcTokenizerDisplay .sapMToken::after {
|
|
48
|
+
margin-left: 0.4rem; // space between tokens. the left side margin of the token
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMToken::after {
|
|
52
|
+
line-height: @mdctoken-large-line-height;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// no delimiter after the last token
|
|
56
|
+
.sapUiMdcTokenizerDisplay .sapMToken:last-child:after {
|
|
57
|
+
content: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// make the token focus invisible
|
|
63
|
+
html.sap-desktop .sapUiMdcTokenizerDisplay .sapMToken:focus {
|
|
64
|
+
outline: 0px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// make the token hover invisible
|
|
68
|
+
html.sap-desktop .sapUiMdcTokenizerDisplay .sapMToken:hover {
|
|
69
|
+
background: transparent;
|
|
70
|
+
border: 0px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sapUiSizeCompact .sapUiMdcTokenizerDisplay.sapMTokenizer .sapMToken {
|
|
74
|
+
font-size: @sapMFontMediumSize;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
.sapUiMdcTokenizerDisplay .sapMTokenText {
|
|
80
|
+
// enable selection of scrollcontainer
|
|
81
|
+
-webkit-user-select: text;
|
|
82
|
+
user-select: text;
|
|
83
|
+
|
|
84
|
+
line-height: @mdctoken-small-line-height;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenText {
|
|
88
|
+
line-height: @mdctoken-large-line-height;
|
|
89
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
|
|
2
|
+
html.sap-desktop .sapUiMdcTokenizerDisplay.sapMTokenizer {
|
|
3
|
+
outline: none; // hide focus of the tokenizer
|
|
4
|
+
padding-left: 0px; // remove left padding of Tokenizer for Display mode
|
|
5
|
+
|
|
6
|
+
padding-top: 0rem;
|
|
7
|
+
padding-bottom: 0rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mdctokenizer-large-line-height: 1.375rem;
|
|
11
|
+
@mdctokenizer-small-line-height: 1rem;
|
|
12
|
+
@mdctokenizer-large-padding-topbottom: 0.6875rem;
|
|
13
|
+
@mdctokenizer-small-padding-topbottom: 0.3125rem;
|
|
14
|
+
|
|
15
|
+
// show a focus around the more link
|
|
16
|
+
.sapUiMdcTokenizerDisplay .sapMTokenizerIndicator:focus {
|
|
17
|
+
outline: @sapUiContentFocusWidth dotted @sapUiContentFocusColor;
|
|
18
|
+
outline-offset: -1px;
|
|
19
|
+
text-decoration: underline;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sapUiMdcTokenizerDisplay .sapMTokenizerIndicator:hover {
|
|
23
|
+
text-decoration: underline;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerIndicator,
|
|
27
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerIndicator:focus {
|
|
28
|
+
line-height: @mdctokenizer-large-line-height;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerIndicator:focus {
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sapUiMdcTokenizerDisplay .sapMTokenizerIndicator {
|
|
36
|
+
line-height: @mdctokenizer-small-line-height;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// hide emptyIndicator for TokenizerDisplay
|
|
43
|
+
.sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// show emptyIndicator for TokenizerDisplay
|
|
48
|
+
.sapMShowEmpty-CTX .sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
49
|
+
line-height: @mdctokenizer-small-line-height;
|
|
50
|
+
font-size: @sapMFontMediumSize;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
55
|
+
line-height: @mdctokenizer-large-line-height;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sapUiSizeCozy .sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
59
|
+
padding-top: @mdctokenizer-large-padding-topbottom;
|
|
60
|
+
padding-bottom: @mdctokenizer-large-padding-topbottom;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sapUiSizeCompact .sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
64
|
+
padding-top: @mdctokenizer-small-padding-topbottom;
|
|
65
|
+
padding-bottom: @mdctokenizer-small-padding-topbottom;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
// enable mouse selection on scrollcontainer
|
|
72
|
+
.sapUiMdcTokenizerDisplay .sapMTokenizerScrollContainer {
|
|
73
|
+
-moz-user-select: text;
|
|
74
|
+
-webkit-user-select: text;
|
|
75
|
+
|
|
76
|
+
// give the scrollcontainer the required top/bottom paddings so that is works like a text control
|
|
77
|
+
padding-top: 0rem;
|
|
78
|
+
padding-bottom: 0rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.sapUiSizeCozy .sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerScrollContainer {
|
|
82
|
+
// give the scrollcontainer the required top/bottom paddings so that is works like a text control
|
|
83
|
+
padding-top: @mdctokenizer-large-padding-topbottom;
|
|
84
|
+
padding-bottom: @mdctokenizer-large-padding-topbottom;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sapUiSizeCompact .sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerScrollContainer {
|
|
88
|
+
padding-top: @mdctokenizer-small-padding-topbottom;
|
|
89
|
+
padding-bottom: @mdctokenizer-small-padding-topbottom;
|
|
90
|
+
}
|