@openui5/sap.ui.layout 1.141.2 → 1.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/REUSE.toml +39 -1
- package/THIRDPARTY.txt +36 -3
- package/package.json +2 -2
- package/src/sap/ui/layout/.library +1 -1
- package/src/sap/ui/layout/AlignedFlowLayout.js +3 -3
- package/src/sap/ui/layout/AssociativeSplitter.js +1 -1
- package/src/sap/ui/layout/BlockLayout.js +1 -1
- package/src/sap/ui/layout/BlockLayoutCell.js +1 -1
- package/src/sap/ui/layout/BlockLayoutCellData.js +1 -1
- package/src/sap/ui/layout/BlockLayoutRow.js +1 -1
- package/src/sap/ui/layout/DynamicSideContent.js +1 -1
- package/src/sap/ui/layout/FixFlex.js +1 -1
- package/src/sap/ui/layout/Grid.js +1 -1
- package/src/sap/ui/layout/GridData.js +1 -1
- package/src/sap/ui/layout/GridRenderer.js +1 -1
- package/src/sap/ui/layout/HorizontalLayout.js +1 -1
- package/src/sap/ui/layout/PaneContainer.js +1 -1
- package/src/sap/ui/layout/ResponsiveFlowLayout.js +1 -1
- package/src/sap/ui/layout/ResponsiveFlowLayoutData.js +1 -1
- package/src/sap/ui/layout/ResponsiveSplitter.js +1 -1
- package/src/sap/ui/layout/ResponsiveSplitterPage.js +1 -1
- package/src/sap/ui/layout/SplitPane.js +1 -1
- package/src/sap/ui/layout/Splitter.js +1 -1
- package/src/sap/ui/layout/SplitterLayoutData.js +1 -1
- package/src/sap/ui/layout/VerticalLayout.js +1 -1
- package/src/sap/ui/layout/changeHandler/AddFormContainer.js +1 -1
- package/src/sap/ui/layout/changeHandler/AddFormField.js +1 -1
- package/src/sap/ui/layout/changeHandler/AddSimpleFormField.js +1 -1
- package/src/sap/ui/layout/changeHandler/AddSimpleFormGroup.js +1 -1
- package/src/sap/ui/layout/changeHandler/HideSimpleForm.js +1 -1
- package/src/sap/ui/layout/changeHandler/MoveSimpleForm.js +1 -1
- package/src/sap/ui/layout/changeHandler/RenameFormContainer.js +1 -1
- package/src/sap/ui/layout/changeHandler/RenameSimpleForm.js +1 -1
- package/src/sap/ui/layout/changeHandler/UnhideSimpleForm.js +1 -1
- package/src/sap/ui/layout/cssgrid/CSSGrid.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridBasicLayout.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridBoxLayout.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridItemLayoutData.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridLayoutBase.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridLayoutDelegate.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridResponsiveLayout.js +1 -1
- package/src/sap/ui/layout/cssgrid/GridSettings.js +1 -1
- package/src/sap/ui/layout/cssgrid/ResponsiveColumnItemLayoutData.js +1 -1
- package/src/sap/ui/layout/cssgrid/ResponsiveColumnLayout.js +1 -1
- package/src/sap/ui/layout/designtime/form/FormContainer.designtime.js +3 -0
- package/src/sap/ui/layout/form/ColumnContainerData.js +8 -8
- package/src/sap/ui/layout/form/ColumnElementData.js +7 -7
- package/src/sap/ui/layout/form/ColumnLayout.js +4 -4
- package/src/sap/ui/layout/form/Form.js +10 -10
- package/src/sap/ui/layout/form/FormContainer.js +9 -9
- package/src/sap/ui/layout/form/FormElement.js +3 -3
- package/src/sap/ui/layout/form/FormLayout.js +1 -1
- package/src/sap/ui/layout/form/GridContainerData.js +1 -1
- package/src/sap/ui/layout/form/GridElementData.js +1 -1
- package/src/sap/ui/layout/form/GridLayout.js +1 -1
- package/src/sap/ui/layout/form/ResponsiveGridLayout.js +1 -1
- package/src/sap/ui/layout/form/ResponsiveLayout.js +1 -1
- package/src/sap/ui/layout/form/SemanticFormElement.js +6 -4
- package/src/sap/ui/layout/form/SimpleForm.js +146 -43
- package/src/sap/ui/layout/library.js +10 -10
- package/src/sap/ui/layout/messagebundle_th.properties +1 -1
- package/src/sap/ui/layout/themes/base/ColumnLayout.less +1 -1
|
@@ -64,12 +64,12 @@ sap.ui.define([
|
|
|
64
64
|
* <li>A new <code>Label</code> control starts a new row (<code>{@link sap.ui.layout.form.FormElement FormElement}</code>) in the form.</li>
|
|
65
65
|
* <li>All other controls will be assigned to the row (<code>{@link sap.ui.layout.form.FormElement FormElement}</code>) that started with the last label.</li>
|
|
66
66
|
* </ul>
|
|
67
|
-
* Use
|
|
67
|
+
* Use {@link sap.ui.core.Element#setLayoutData LayoutData} to influence the layout for special cases in the Input/Display controls.
|
|
68
68
|
*
|
|
69
69
|
* <b>Note:</b> If a more complex form is needed, use the <code>{@link sap.ui.layout.form.Form Form}</code> control instead.
|
|
70
70
|
*
|
|
71
71
|
* @extends sap.ui.core.Control
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.143.0
|
|
73
73
|
*
|
|
74
74
|
* @constructor
|
|
75
75
|
* @public
|
|
@@ -315,14 +315,14 @@ sap.ui.define([
|
|
|
315
315
|
* The content of the form is structured in the following way:
|
|
316
316
|
* <ul>
|
|
317
317
|
* <li>Add a {@link sap.ui.core.Title Title} element or <code>Toolbar</code> control to start a new group (<code>{@link sap.ui.layout.form.FormContainer FormContainer}</code>).</li>
|
|
318
|
-
* <li>Add a
|
|
318
|
+
* <li>Add a {@link sap.m.Label Label} control to start a new row (<code>{@link sap.ui.layout.form.FormElement FormElement}</code>).</li>
|
|
319
319
|
* <li>Add controls as input fields, text fields or other as needed.</li>
|
|
320
|
-
* <li>Use
|
|
321
|
-
* For example, if a
|
|
320
|
+
* <li>Use {@link sap.ui.core.Element#setLayoutData LayoutData} to influence the layout for special cases in the single controls.
|
|
321
|
+
* For example, if a {@link sap.ui.layout.ColumnLayout ColumnLayout} is used as a layout,
|
|
322
322
|
* the form content is weighted using 4 cells for the labels and 8 cells for the field part, for large size.
|
|
323
323
|
* If there is only little space, the labels are above the fields and each field uses 12 cells.
|
|
324
324
|
* If your input controls should influence their width, you can add {@link sap.ui.layout.form.ColumnElementData ColumnElementData}
|
|
325
|
-
* to them via the {@link #setLayoutData setLayoutData} method.
|
|
325
|
+
* to them via the {@link sap.ui.core.Element#setLayoutData setLayoutData} method.
|
|
326
326
|
* Ensure that the sum of the weights in the {@link sap.ui.layout.form.ColumnElementData ColumnElementData} is not more than 12,
|
|
327
327
|
* as this is the total width of the input control part of each form row.</li>
|
|
328
328
|
* </ul>
|
|
@@ -337,7 +337,7 @@ sap.ui.define([
|
|
|
337
337
|
* Depending on the screen size the labels use the defined <code>labelSpan</code>.
|
|
338
338
|
* The remaining cells are used for the fields (and <code>emptySpan</code> if defined).
|
|
339
339
|
* The available cells are distributed to all fields in the row. If one field should use a fixed number of cells
|
|
340
|
-
* you can add {@link sap.ui.layout.GridData GridData} to them via the {@link #setLayoutData setLayoutData} method.
|
|
340
|
+
* you can add {@link sap.ui.layout.GridData GridData} to them via the {@link sap.ui.core.Element#setLayoutData setLayoutData} method.
|
|
341
341
|
* If there are additional fields in the row they will get the remaining cells.
|
|
342
342
|
* </ul>
|
|
343
343
|
* Example for a row with two {@link sap.m.Input Input} controls where one uses four cells on small screens,
|
|
@@ -350,10 +350,10 @@ sap.ui.define([
|
|
|
350
350
|
*
|
|
351
351
|
* <b>Warning:</b> Do not put any layout or other container controls in here. This could damage the visual layout,
|
|
352
352
|
* keyboard support and screen-reader support. Only labels, titles, toolbars and form controls are allowed.
|
|
353
|
-
* Views are also not supported. Allowed form controls implement the interface
|
|
353
|
+
* Views are also not supported. Allowed form controls implement the interface {@link sap.ui.core.IFormContent}.
|
|
354
354
|
*
|
|
355
|
-
* If editable controls are used as content, the
|
|
356
|
-
* otherwise to <code>false</code>. If the
|
|
355
|
+
* If editable controls are used as content, the {@link #setEditable editable} property must be set to <code>true</code>,
|
|
356
|
+
* otherwise to <code>false</code>. If the {@link #setEditable editable} property is set incorrectly, there will be visual issues
|
|
357
357
|
* like wrong label alignment or wrong spacing between the controls. In addition to that, wrong screen reader announcements might occur.
|
|
358
358
|
*/
|
|
359
359
|
content : {type : "sap.ui.core.Element", multiple : true, singularName : "content"},
|
|
@@ -366,7 +366,7 @@ sap.ui.define([
|
|
|
366
366
|
/**
|
|
367
367
|
* Title element of the <code>SimpleForm</code>. Can either be a <code>Title</code> element, or a string.
|
|
368
368
|
*
|
|
369
|
-
* <b>Note:</b> If a
|
|
369
|
+
* <b>Note:</b> If a {@link #getToolbar Toolbar} is used, the <code>Title</code> is ignored.
|
|
370
370
|
*
|
|
371
371
|
* <b>Note:</b> If the title is provided as a string, the title is rendered with a theme-dependent default level.
|
|
372
372
|
* As the <code>Form</code> control cannot know the structure of the page, this might not fit the page structure.
|
|
@@ -378,9 +378,10 @@ sap.ui.define([
|
|
|
378
378
|
/**
|
|
379
379
|
* Toolbar of the <code>SimpleForm</code>.
|
|
380
380
|
*
|
|
381
|
-
* <b>Note:</b> If a <code>Toolbar</code> is used, the
|
|
381
|
+
* <b>Note:</b> If a <code>Toolbar</code> is used, the {@link #getTitle Title} is ignored.
|
|
382
382
|
* If a title is needed inside the <code>Toolbar</code> it must be added at content to the <code>Toolbar</code>.
|
|
383
|
-
* In this case, add the <code>Title</code> to the
|
|
383
|
+
* In this case, add the <code>Title</code> to the {@link #addAriaLabelledBy ariaLabelledBy} association.
|
|
384
|
+
* Use the right title level to meet the visual requirements. This might be theme-dependent.
|
|
384
385
|
* @since 1.36.0
|
|
385
386
|
*/
|
|
386
387
|
toolbar : {type : "sap.ui.core.Toolbar", multiple : false,
|
|
@@ -395,8 +396,8 @@ sap.ui.define([
|
|
|
395
396
|
/**
|
|
396
397
|
* Association to controls / IDs which label this control (see WAI-ARIA attribute <code>aria-labelledby</code>).
|
|
397
398
|
*
|
|
398
|
-
* <b>Note:</b> Every <code>Form</code> needs to have some title or label (at least for screen reader support). If no
|
|
399
|
-
* is set, and the <code>
|
|
399
|
+
* <b>Note:</b> Every <code>Form</code> needs to have some title or label (at least for screen reader support). If no {@link #getTitle Title}
|
|
400
|
+
* is set, and the <code>SimpleForm</code> is not a child or a control with a title, such as {@link sap.m.Panel Panel} or {@link sap.m.Dialog Dialog},
|
|
400
401
|
* a label or title needs to be assigned using the <code>ariaLabelledBy</code> association.
|
|
401
402
|
* @since 1.32.0
|
|
402
403
|
*/
|
|
@@ -442,19 +443,26 @@ sap.ui.define([
|
|
|
442
443
|
}
|
|
443
444
|
};
|
|
444
445
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
/**
|
|
447
|
+
* @deprecated Since version 1.93.0
|
|
448
|
+
*/
|
|
449
|
+
// eslint-disable-next-line no-lone-blocks
|
|
450
|
+
{
|
|
451
|
+
oForm._origOnLayoutDataChange = oForm.onLayoutDataChange;
|
|
452
|
+
oForm.onLayoutDataChange = function(oEvent) {
|
|
453
|
+
this._origOnLayoutDataChange(oEvent);
|
|
454
|
+
|
|
455
|
+
var oSimpleForm = this.getParent();
|
|
456
|
+
if (oSimpleForm) {
|
|
457
|
+
oSimpleForm._onLayoutDataChange(oEvent);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
448
460
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
oSimpleForm._onLayoutDataChange(oEvent);
|
|
452
|
-
}
|
|
453
|
-
};
|
|
461
|
+
this._aLayouts = [];
|
|
462
|
+
}
|
|
454
463
|
|
|
455
464
|
this.setAggregation("form",oForm);
|
|
456
465
|
this._aElements = null;
|
|
457
|
-
this._aLayouts = [];
|
|
458
466
|
this._changedFormContainers = [];
|
|
459
467
|
this._changedFormElements = [];
|
|
460
468
|
|
|
@@ -467,15 +475,21 @@ sap.ui.define([
|
|
|
467
475
|
var oForm = this.getAggregation("form");
|
|
468
476
|
oForm.invalidate = oForm._origInvalidate;
|
|
469
477
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
478
|
+
/**
|
|
479
|
+
* @deprecated Since version 1.93.0
|
|
480
|
+
*/
|
|
481
|
+
// eslint-disable-next-line no-lone-blocks
|
|
482
|
+
{
|
|
483
|
+
_removeResize.call(this);
|
|
484
|
+
|
|
485
|
+
for (var i = 0; i < this._aLayouts.length; i++) {
|
|
486
|
+
var oLayout = Element.getElementById(this._aLayouts[i]);
|
|
487
|
+
if (oLayout && oLayout.destroy) {
|
|
488
|
+
oLayout.destroy();
|
|
489
|
+
}
|
|
476
490
|
}
|
|
491
|
+
this._aLayouts = [];
|
|
477
492
|
}
|
|
478
|
-
this._aLayouts = [];
|
|
479
493
|
this._aElements = null;
|
|
480
494
|
this._changedFormContainers = [];
|
|
481
495
|
this._changedFormElements = [];
|
|
@@ -490,6 +504,9 @@ sap.ui.define([
|
|
|
490
504
|
*/
|
|
491
505
|
SimpleForm.prototype.onBeforeRendering = function() {
|
|
492
506
|
|
|
507
|
+
/**
|
|
508
|
+
* @deprecated Since version 1.93.0
|
|
509
|
+
*/
|
|
493
510
|
_removeResize.call(this);
|
|
494
511
|
|
|
495
512
|
var oForm = this.getAggregation("form");
|
|
@@ -656,7 +673,7 @@ sap.ui.define([
|
|
|
656
673
|
oFormContainer = oParent.getParent();
|
|
657
674
|
oFormElement = oParent;
|
|
658
675
|
oLayoutData = _getFieldLayoutData.call(this, oElement);
|
|
659
|
-
if (
|
|
676
|
+
if (sLayout === SimpleFormLayout.ResponsiveLayout && oLayoutData?.isA("sap.ui.layout.ResponsiveFlowLayoutData") &&
|
|
660
677
|
!_isMyLayoutData.call(this, oLayoutData) && oLayoutData.getLinebreak()) {
|
|
661
678
|
oFormElement = _addFormElement.call(this, oFormContainer);
|
|
662
679
|
}
|
|
@@ -672,6 +689,9 @@ sap.ui.define([
|
|
|
672
689
|
oFormElement = _addFormElement.call(this, oFormContainer);
|
|
673
690
|
}
|
|
674
691
|
|
|
692
|
+
/**
|
|
693
|
+
* @deprecated Since version 1.93.0
|
|
694
|
+
*/
|
|
675
695
|
_createFieldLayoutData.call(this, oElement, 5, false, true);
|
|
676
696
|
|
|
677
697
|
oFormElement.addField(oElement);
|
|
@@ -850,7 +870,7 @@ sap.ui.define([
|
|
|
850
870
|
if (aFormElements.length == 0) {
|
|
851
871
|
// FormContainer has no FormElements -> create one
|
|
852
872
|
oFormElement = _addFormElement.call(this, oFormContainer);
|
|
853
|
-
} else if (
|
|
873
|
+
} else if (sLayout === SimpleFormLayout.ResponsiveLayout && oLayoutData?.isA("sap.ui.layout.ResponsiveFlowLayoutData") &&
|
|
854
874
|
!_isMyLayoutData.call(this, oLayoutData) && oLayoutData.getLinebreak()) {
|
|
855
875
|
oFormElement = _addFormElement.call(this, oFormContainer);
|
|
856
876
|
} else {
|
|
@@ -867,7 +887,7 @@ sap.ui.define([
|
|
|
867
887
|
if (iElementIndex == 0) {
|
|
868
888
|
// it's already the first FormElement -> insert a new one before
|
|
869
889
|
oFormElement = _insertFormElement.call(this, oFormContainer, null, 0);
|
|
870
|
-
} else if (
|
|
890
|
+
} else if (sLayout === SimpleFormLayout.ResponsiveLayout && oLayoutData?.isA("sap.ui.layout.ResponsiveFlowLayoutData") &&
|
|
871
891
|
!_isMyLayoutData.call(this, oLayoutData) && oLayoutData.getLinebreak()) {
|
|
872
892
|
oFormElement = _insertFormElement.call(this, oFormContainer, null, iElementIndex);
|
|
873
893
|
} else {
|
|
@@ -879,7 +899,7 @@ sap.ui.define([
|
|
|
879
899
|
// insert new field into same FormElement before old field
|
|
880
900
|
oFormElement = oOldElement.getParent();
|
|
881
901
|
iFieldIndex = oFormElement.indexOfField(oOldElement);
|
|
882
|
-
if (
|
|
902
|
+
if ( sLayout === SimpleFormLayout.ResponsiveLayout && oLayoutData?.isA("sap.ui.layout.ResponsiveFlowLayoutData") &&
|
|
883
903
|
!_isMyLayoutData.call(this, oLayoutData) && oLayoutData.getLinebreak() && iFieldIndex > 0) {
|
|
884
904
|
// split FormElement
|
|
885
905
|
oFormContainer = oFormElement.getParent();
|
|
@@ -900,6 +920,9 @@ sap.ui.define([
|
|
|
900
920
|
}
|
|
901
921
|
_markFormElementForUpdate(this._changedFormElements, oFormElement);
|
|
902
922
|
|
|
923
|
+
/**
|
|
924
|
+
* @deprecated Since version 1.93.0
|
|
925
|
+
*/
|
|
903
926
|
_createFieldLayoutData.call(this, oElement, 5, false, true);
|
|
904
927
|
}
|
|
905
928
|
|
|
@@ -1043,6 +1066,9 @@ sap.ui.define([
|
|
|
1043
1066
|
this._aElements.splice(iIndex, 1);
|
|
1044
1067
|
oElement.setParent(null);
|
|
1045
1068
|
this._oObserver.unobserve(oElement);
|
|
1069
|
+
/**
|
|
1070
|
+
* @deprecated Since version 1.93.0
|
|
1071
|
+
*/
|
|
1046
1072
|
_removeLayoutData.call(this, oElement);
|
|
1047
1073
|
|
|
1048
1074
|
this.invalidate();
|
|
@@ -1077,6 +1103,9 @@ sap.ui.define([
|
|
|
1077
1103
|
|
|
1078
1104
|
for (i = 0; i < this._aElements.length; i++) {
|
|
1079
1105
|
var oElement = this._aElements[i];
|
|
1106
|
+
/**
|
|
1107
|
+
* @deprecated Since version 1.93.0
|
|
1108
|
+
*/
|
|
1080
1109
|
_removeLayoutData.call(this, oElement);
|
|
1081
1110
|
this._oObserver.unobserve(oElement);
|
|
1082
1111
|
}
|
|
@@ -1123,6 +1152,9 @@ sap.ui.define([
|
|
|
1123
1152
|
|
|
1124
1153
|
var sOldLayout = this.getLayout();
|
|
1125
1154
|
var bDefault = this.isPropertyInitial("layout"); // if default is used and layout not defined setLayout is not called
|
|
1155
|
+
/**
|
|
1156
|
+
* @deprecated Since version 1.93.0
|
|
1157
|
+
*/
|
|
1126
1158
|
if (sLayout != sOldLayout) {
|
|
1127
1159
|
_removeOldLayoutData.call(this);
|
|
1128
1160
|
}
|
|
@@ -1132,6 +1164,9 @@ sap.ui.define([
|
|
|
1132
1164
|
if (sLayout != sOldLayout || bDefault) { // Layout changed or default set explicit -> we know what layout is used and can create the Control
|
|
1133
1165
|
var bSet = _setFormLayout.call(this);
|
|
1134
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* @deprecated Since version 1.93.0
|
|
1169
|
+
*/
|
|
1135
1170
|
if (bSet) {
|
|
1136
1171
|
_addLayoutData.call(this);
|
|
1137
1172
|
}
|
|
@@ -1156,6 +1191,10 @@ sap.ui.define([
|
|
|
1156
1191
|
this._oObserver.unobserve(oElement);
|
|
1157
1192
|
var oElementClone = oElement.clone(sIdSuffix);
|
|
1158
1193
|
this._oObserver.observe(oElement, {properties: ["visible"]});
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* @deprecated Since version 1.93.0
|
|
1197
|
+
*/
|
|
1159
1198
|
if (oLayoutData) {
|
|
1160
1199
|
// mark private LayoutData
|
|
1161
1200
|
if (oLayoutData.isA("sap.ui.core.VariantLayoutData")) {
|
|
@@ -1183,6 +1222,9 @@ sap.ui.define([
|
|
|
1183
1222
|
if (oForm.getLayout()) {
|
|
1184
1223
|
this._bChangedByMe = true;
|
|
1185
1224
|
oForm.destroyLayout();
|
|
1225
|
+
/**
|
|
1226
|
+
* @deprecated Since version 1.93.0
|
|
1227
|
+
*/
|
|
1186
1228
|
_removeResize.call(this);
|
|
1187
1229
|
this._bChangedByMe = false;
|
|
1188
1230
|
}
|
|
@@ -1317,6 +1359,10 @@ sap.ui.define([
|
|
|
1317
1359
|
|
|
1318
1360
|
if (!this._bIsBeingDestroyed) {
|
|
1319
1361
|
_setFormLayout.call(this);
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* @deprecated Since version 1.93.0
|
|
1365
|
+
*/
|
|
1320
1366
|
_addLayoutData.call(this);
|
|
1321
1367
|
if (this.getDomRef()) {
|
|
1322
1368
|
_updateLayout.call(this);
|
|
@@ -1329,6 +1375,9 @@ sap.ui.define([
|
|
|
1329
1375
|
|
|
1330
1376
|
}
|
|
1331
1377
|
|
|
1378
|
+
/**
|
|
1379
|
+
* @deprecated Since version 1.93.0
|
|
1380
|
+
*/
|
|
1332
1381
|
function _removeOldLayoutData() {
|
|
1333
1382
|
|
|
1334
1383
|
this._bChangedByMe = true;
|
|
@@ -1367,6 +1416,9 @@ sap.ui.define([
|
|
|
1367
1416
|
|
|
1368
1417
|
}
|
|
1369
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* @deprecated Since version 1.93.0
|
|
1421
|
+
*/
|
|
1370
1422
|
function _addLayoutData() {
|
|
1371
1423
|
|
|
1372
1424
|
this._bChangedByMe = true;
|
|
@@ -1460,11 +1512,12 @@ sap.ui.define([
|
|
|
1460
1512
|
|
|
1461
1513
|
}
|
|
1462
1514
|
|
|
1463
|
-
|
|
1515
|
+
/**
|
|
1464
1516
|
* Checks whether the given LayoutData is created and added by this SimpleForm
|
|
1465
|
-
* @param { sap.ui.layout.ResponsiveFlowLayoutData}
|
|
1517
|
+
* @param { sap.ui.layout.ResponsiveFlowLayoutData} oLayoutData The layout data
|
|
1466
1518
|
* @returns {boolean} Whether the given layout was created by this SimpleForm
|
|
1467
1519
|
* @private
|
|
1520
|
+
* @deprecated Since version 1.93.0
|
|
1468
1521
|
*/
|
|
1469
1522
|
function _isMyLayoutData(oLayoutData) {
|
|
1470
1523
|
|
|
@@ -1474,13 +1527,15 @@ sap.ui.define([
|
|
|
1474
1527
|
|
|
1475
1528
|
}
|
|
1476
1529
|
|
|
1477
|
-
|
|
1530
|
+
/**
|
|
1478
1531
|
* Creates new sap.ui.layout.ResponsiveFlowLayoutData with the given parameters
|
|
1479
1532
|
* @param {int} iWeight the weight for the layout data
|
|
1480
1533
|
* @param {boolean} bLinebreak Whether the layout data has a linebreak
|
|
1481
1534
|
* @param {boolean} bLinebreakable Whether the layout data is linebreakable
|
|
1535
|
+
* @param {int} iMinWidth the minimal width of the layout data
|
|
1482
1536
|
* @returns {sap.ui.layout.ResponsiveFlowLayoutData} The newly created ResponsiveFlowLayoutData
|
|
1483
1537
|
* @private
|
|
1538
|
+
* @deprecated Since version 1.93.0
|
|
1484
1539
|
*/
|
|
1485
1540
|
function _createRFLayoutData(iWeight, bLinebreak, bLinebreakable, iMinWidth) {
|
|
1486
1541
|
|
|
@@ -1546,6 +1601,15 @@ sap.ui.define([
|
|
|
1546
1601
|
|
|
1547
1602
|
}
|
|
1548
1603
|
|
|
1604
|
+
/**
|
|
1605
|
+
* @param {sap.ui.core.Control} oField content control
|
|
1606
|
+
* @param {int} iWeight the weight for the layout data
|
|
1607
|
+
* @param {boolean} bLinebreak Whether the layout data has a linebreak
|
|
1608
|
+
* @param {boolean} bLinebreakable Whether the layout data is linebreakable
|
|
1609
|
+
* @param {int} iMinWidth the minimal width of the layout data
|
|
1610
|
+
* @private
|
|
1611
|
+
* @deprecated Since version 1.93.0
|
|
1612
|
+
*/
|
|
1549
1613
|
function _createFieldLayoutData(oField, iWeight, bLinebreak, bLinebreakable, iMinWidth) {
|
|
1550
1614
|
|
|
1551
1615
|
if (this.getLayout() != SimpleFormLayout.ResponsiveLayout) {
|
|
@@ -1575,6 +1639,10 @@ sap.ui.define([
|
|
|
1575
1639
|
|
|
1576
1640
|
}
|
|
1577
1641
|
|
|
1642
|
+
/**
|
|
1643
|
+
* @param {sap.ui.layout.form.FormElement} oElement The FormElement
|
|
1644
|
+
* @deprecated Since version 1.93.0
|
|
1645
|
+
*/
|
|
1578
1646
|
function _createElementLayoutData(oElement) {
|
|
1579
1647
|
|
|
1580
1648
|
if (this.getLayout() != SimpleFormLayout.ResponsiveLayout) {
|
|
@@ -1594,6 +1662,10 @@ sap.ui.define([
|
|
|
1594
1662
|
|
|
1595
1663
|
}
|
|
1596
1664
|
|
|
1665
|
+
/**
|
|
1666
|
+
* @param {sap.ui.layout.form.FormContainer} oContainer The form container
|
|
1667
|
+
* @deprecated Since version 1.93.0
|
|
1668
|
+
*/
|
|
1597
1669
|
function _createContainerLayoutData(oContainer) {
|
|
1598
1670
|
|
|
1599
1671
|
var sLayout = this.getLayout();
|
|
@@ -1627,6 +1699,10 @@ sap.ui.define([
|
|
|
1627
1699
|
|
|
1628
1700
|
}
|
|
1629
1701
|
|
|
1702
|
+
/**
|
|
1703
|
+
* @param {sap.ui.core.Control} oElement Label or Field
|
|
1704
|
+
* @deprecated Since version 1.93.0
|
|
1705
|
+
*/
|
|
1630
1706
|
function _removeLayoutData(oElement) {
|
|
1631
1707
|
|
|
1632
1708
|
this._bLayoutDataChangedByMe = true;
|
|
@@ -1680,12 +1756,18 @@ sap.ui.define([
|
|
|
1680
1756
|
if (oLabel) {
|
|
1681
1757
|
sId = this.getId() + "--" + oLabel.getId() + "--FE";
|
|
1682
1758
|
oLabel.addStyleClass("sapUiFormLabel-CTX");
|
|
1759
|
+
/**
|
|
1760
|
+
* @deprecated Since version 1.93.0
|
|
1761
|
+
*/
|
|
1683
1762
|
if (!_getFieldLayoutData.call(this, oLabel)) {
|
|
1684
1763
|
_createFieldLayoutData.call(this, oLabel, this._iLabelWeight, false, true, this.getLabelMinWidth());
|
|
1685
1764
|
}
|
|
1686
1765
|
mSettings["label"] = oLabel;
|
|
1687
1766
|
} else {
|
|
1688
1767
|
sId = oFormContainer.getId() + "--FE-NoLabel"; // There can be only one FormElement without Label in a FomContainer (first one)
|
|
1768
|
+
/**
|
|
1769
|
+
* @deprecated Since version 1.93.0
|
|
1770
|
+
*/
|
|
1689
1771
|
if (Element.getElementById(sId)) {
|
|
1690
1772
|
// if ResponsiveLayout and ResponsiveFlowLayoutdata with Linebreak is used multiple FormElements without Label can exist
|
|
1691
1773
|
// as already deprecated just keep generatied ID in this very special case.
|
|
@@ -1694,6 +1776,9 @@ sap.ui.define([
|
|
|
1694
1776
|
}
|
|
1695
1777
|
|
|
1696
1778
|
var oElement = new FormElement(sId, mSettings);
|
|
1779
|
+
/**
|
|
1780
|
+
* @deprecated Since version 1.93.0
|
|
1781
|
+
*/
|
|
1697
1782
|
_createElementLayoutData.call(this, oElement);
|
|
1698
1783
|
|
|
1699
1784
|
oElement.isVisible = function(){
|
|
@@ -1741,6 +1826,9 @@ sap.ui.define([
|
|
|
1741
1826
|
}
|
|
1742
1827
|
|
|
1743
1828
|
var oContainer = new FormContainer(sId, mSettings);
|
|
1829
|
+
/**
|
|
1830
|
+
* @deprecated Since version 1.93.0
|
|
1831
|
+
*/
|
|
1744
1832
|
_createContainerLayoutData.call(this, oContainer);
|
|
1745
1833
|
|
|
1746
1834
|
oContainer.getAriaLabelledBy = function() {
|
|
@@ -1757,10 +1845,11 @@ sap.ui.define([
|
|
|
1757
1845
|
|
|
1758
1846
|
}
|
|
1759
1847
|
|
|
1760
|
-
|
|
1848
|
+
/**
|
|
1761
1849
|
* Applies the weight property for the fields in the responsive layout.
|
|
1762
1850
|
* @param {sap.ui.layout.form.FormElement} oElement The FormElement where the weight is applied.
|
|
1763
1851
|
* @private
|
|
1852
|
+
* @deprecated Since version 1.93.0
|
|
1764
1853
|
*/
|
|
1765
1854
|
function _applyFieldWeight(oElement){
|
|
1766
1855
|
|
|
@@ -1813,9 +1902,10 @@ sap.ui.define([
|
|
|
1813
1902
|
this._bLayoutDataChangedByMe = false;
|
|
1814
1903
|
}
|
|
1815
1904
|
|
|
1816
|
-
|
|
1905
|
+
/**
|
|
1817
1906
|
* Applies the linebreaks of FormContainers according to the minWidth and maxContainerCol settings of the SimpleForm
|
|
1818
1907
|
* @private
|
|
1908
|
+
* @deprecated Since version 1.93.0
|
|
1819
1909
|
*/
|
|
1820
1910
|
SimpleForm.prototype._applyLinebreaks = function(){
|
|
1821
1911
|
|
|
@@ -1858,10 +1948,11 @@ sap.ui.define([
|
|
|
1858
1948
|
|
|
1859
1949
|
};
|
|
1860
1950
|
|
|
1861
|
-
|
|
1951
|
+
/**
|
|
1862
1952
|
* Applies size of the FormContainers in GridLayout: if only one container is in the last line -> make it full size
|
|
1863
1953
|
* adapt all containers because container can be inserted or added later on
|
|
1864
1954
|
* @private
|
|
1955
|
+
* @deprecated Since version 1.67.0
|
|
1865
1956
|
*/
|
|
1866
1957
|
function _applyContainerSize(){
|
|
1867
1958
|
|
|
@@ -1880,9 +1971,11 @@ sap.ui.define([
|
|
|
1880
1971
|
this._bLayoutDataChangedByMe = false;
|
|
1881
1972
|
}
|
|
1882
1973
|
|
|
1883
|
-
|
|
1974
|
+
/**
|
|
1884
1975
|
* Handles the resize event
|
|
1976
|
+
* @param {sap.ui.base.Event} oEvent resize event
|
|
1885
1977
|
* @private
|
|
1978
|
+
* @deprecated Since version 1.93.0
|
|
1886
1979
|
*/
|
|
1887
1980
|
SimpleForm.prototype._resize = function(oEvent){
|
|
1888
1981
|
|
|
@@ -1891,11 +1984,16 @@ sap.ui.define([
|
|
|
1891
1984
|
return;
|
|
1892
1985
|
}
|
|
1893
1986
|
this._iCurrentWidth = oEvent.size.width;
|
|
1894
|
-
this.
|
|
1987
|
+
if (this.getLayout() == SimpleFormLayout.ResponsiveLayout) {
|
|
1988
|
+
this._applyLinebreaks();
|
|
1989
|
+
}
|
|
1895
1990
|
this._bChangedByMe = false;
|
|
1896
1991
|
|
|
1897
1992
|
};
|
|
1898
1993
|
|
|
1994
|
+
/**
|
|
1995
|
+
* @deprecated Since version 1.93.0
|
|
1996
|
+
*/
|
|
1899
1997
|
function _removeResize() {
|
|
1900
1998
|
|
|
1901
1999
|
if (this._sResizeListenerId) {
|
|
@@ -2019,6 +2117,11 @@ sap.ui.define([
|
|
|
2019
2117
|
|
|
2020
2118
|
};
|
|
2021
2119
|
|
|
2120
|
+
/**
|
|
2121
|
+
* @param {sap.ui.base.Event} oEvent layout data change event
|
|
2122
|
+
* @private
|
|
2123
|
+
* @deprecated Since version 1.93.0
|
|
2124
|
+
*/
|
|
2022
2125
|
SimpleForm.prototype._onLayoutDataChange = function(oEvent){
|
|
2023
2126
|
|
|
2024
2127
|
if (!this._bLayoutDataChangedByMe && !this._bIsBeingDestroyed) {
|
|
@@ -21,14 +21,14 @@ sap.ui.define([
|
|
|
21
21
|
* @namespace
|
|
22
22
|
* @alias sap.ui.layout
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.143.0
|
|
25
25
|
* @since 1.15
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
28
|
var thisLib = Library.init({
|
|
29
29
|
apiVersion: 2,
|
|
30
30
|
name : "sap.ui.layout",
|
|
31
|
-
version: "1.
|
|
31
|
+
version: "1.143.0",
|
|
32
32
|
dependencies: ["sap.ui.core"],
|
|
33
33
|
designtime: "sap/ui/layout/designtime/library.designtime",
|
|
34
34
|
types: [
|
|
@@ -652,8 +652,8 @@ sap.ui.define([
|
|
|
652
652
|
};
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* @classdesc An <code>int</code> type that defines how many columns a
|
|
656
|
-
* the
|
|
655
|
+
* @classdesc An <code>int</code> type that defines how many columns a {@link sap.ui.layout.form.Form Form} control using
|
|
656
|
+
* the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} as {@link sap.ui.layout.form.FormE#setLayout layout} can have if it has extra-large size
|
|
657
657
|
*
|
|
658
658
|
* Allowed values are numbers from 1 to 6.
|
|
659
659
|
* <b>Note:</b> In versions lower than 1.89 only 4 columns are allowed.
|
|
@@ -677,8 +677,8 @@ sap.ui.define([
|
|
|
677
677
|
);
|
|
678
678
|
|
|
679
679
|
/**
|
|
680
|
-
* @classdesc An <code>int</code> type that defines how many columns a
|
|
681
|
-
* the
|
|
680
|
+
* @classdesc An <code>int</code> type that defines how many columns a {@link sap.ui.layout.form.Form Form} control using
|
|
681
|
+
* the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} as {@link sap.ui.layout.form.FormE#setLayout layout} can have if it has large size
|
|
682
682
|
*
|
|
683
683
|
* Allowed values are numbers from 1 to 4.
|
|
684
684
|
* <b>Note:</b> In versions lower than 1.122 only 3 columns are allowed.
|
|
@@ -702,8 +702,8 @@ sap.ui.define([
|
|
|
702
702
|
);
|
|
703
703
|
|
|
704
704
|
/**
|
|
705
|
-
* @classdesc An <code>int</code> type that defines how many columns a
|
|
706
|
-
* the
|
|
705
|
+
* @classdesc An <code>int</code> type that defines how many columns a {@link sap.ui.layout.form.Form Form} control using
|
|
706
|
+
* the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} as {@link sap.ui.layout.form.FormE#setLayout layout} can have if it has medium size
|
|
707
707
|
*
|
|
708
708
|
* Allowed values are numbers from 1 to 3.
|
|
709
709
|
* <b>Note:</b> In versions lower than 1.122 only 2 columns are allowed.
|
|
@@ -728,7 +728,7 @@ sap.ui.define([
|
|
|
728
728
|
|
|
729
729
|
/**
|
|
730
730
|
* @classdesc An <code>int</code> type that defines how many cells a control inside of a column
|
|
731
|
-
* of a
|
|
731
|
+
* of a {@link sap.ui.layout.form.Form Form} control using the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} control as {@link sap.ui.layout.form.FormE#setLayout layout} can use.
|
|
732
732
|
*
|
|
733
733
|
* Allowed values are numbers from 1 to 12 and -1. -1 means the value is calculated.
|
|
734
734
|
*
|
|
@@ -754,7 +754,7 @@ sap.ui.define([
|
|
|
754
754
|
|
|
755
755
|
/**
|
|
756
756
|
* @classdesc An <code>int</code> type that defines how many cells beside the controls
|
|
757
|
-
* inside of a column of a
|
|
757
|
+
* inside of a column of a {@link sap.ui.layout.form.Form Form} control using the {@link sap.ui.layout.form.ColumnLayout ColumnLayout} control as {@link sap.ui.layout.form.FormE#setLayout layout}
|
|
758
758
|
* are empty.
|
|
759
759
|
*
|
|
760
760
|
* Allowed values are numbers from 0 to 11.
|
|
@@ -6,7 +6,7 @@ SPLITTER_MOVE=\u0E01\u0E14\u0E41\u0E1B\u0E49\u0E19\u0E25\u0E39\u0E01\u0E28\u0E23
|
|
|
6
6
|
|
|
7
7
|
SIDE_CONTENT_LABEL=\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E14\u0E49\u0E32\u0E19\u0E02\u0E49\u0E32\u0E07
|
|
8
8
|
|
|
9
|
-
RESPONSIVE_SPLITTER_RESIZE=\u0E1B\u0E23\u0E31\u0E1A\u0E02\u0E19\u0E32\u0E14\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1A\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07 {0} \
|
|
9
|
+
RESPONSIVE_SPLITTER_RESIZE=\u0E1B\u0E23\u0E31\u0E1A\u0E02\u0E19\u0E32\u0E14\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1A\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07 {0} \u0E01\u0E31\u0E1A\u0E1A\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E15\u0E48\u0E32\u0E07 {1}
|
|
10
10
|
|
|
11
11
|
RESPONSIVE_SPLITTER_HOME=\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E08\u0E2D\u0E20\u0E32\u0E1E\u0E41\u0E22\u0E01
|
|
12
12
|
|