@openui5/sap.ui.documentation 1.97.1 → 1.98.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/.reuse/dep5 +25 -30
- package/THIRDPARTY.txt +13 -20
- package/package.json +6 -6
- package/src/sap/ui/documentation/.library +1 -1
- package/src/sap/ui/documentation/library.js +2 -2
- package/src/sap/ui/documentation/messagebundle.properties +20 -8
- package/src/sap/ui/documentation/messagebundle_ar.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_bg.properties +15 -4
- package/src/sap/ui/documentation/messagebundle_ca.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_cs.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_cy.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_da.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_de.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_el.properties +15 -4
- package/src/sap/ui/documentation/messagebundle_en.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_en_GB.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +19 -8
- package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +2 -2
- package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +19 -8
- package/src/sap/ui/documentation/messagebundle_es.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_es_MX.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_et.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_fi.properties +17 -6
- package/src/sap/ui/documentation/messagebundle_fr.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_fr_CA.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_hi.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_hr.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_hu.properties +15 -4
- package/src/sap/ui/documentation/messagebundle_id.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_it.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_iw.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_ja.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_kk.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_ko.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_lt.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_lv.properties +15 -4
- package/src/sap/ui/documentation/messagebundle_ms.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_nl.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_no.properties +17 -6
- package/src/sap/ui/documentation/messagebundle_pl.properties +15 -4
- package/src/sap/ui/documentation/messagebundle_pt.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_pt_PT.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_ro.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_ru.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_sh.properties +17 -6
- package/src/sap/ui/documentation/messagebundle_sk.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_sl.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_sv.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_th.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_tr.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_uk.properties +17 -6
- package/src/sap/ui/documentation/messagebundle_vi.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_zh_CN.properties +16 -5
- package/src/sap/ui/documentation/messagebundle_zh_TW.properties +16 -5
- package/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js +2 -2
- package/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js +6 -5
- package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +232 -22
- package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDownRenderer.js +7 -1
- package/src/sap/ui/documentation/sdk/css/style.css +11 -2
- package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +3 -1
- package/src/sap/ui/documentation/sdk/view/NewsPopover.fragment.xml +2 -2
- package/src/sap/ui/documentation/sdk/view/Sample.view.xml +5 -1
- package/src/sap/ui/documentation/sdk/view/Welcome.view.xml +87 -39
- package/src/sap/ui/documentation/sdk/view/appSettingsDialog.fragment.xml +1 -0
|
@@ -17,6 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
"sap/ui/core/HTML",
|
|
18
18
|
"sap/m/library",
|
|
19
19
|
"sap/base/Log",
|
|
20
|
+
"sap/base/util/UriParameters",
|
|
20
21
|
"sap/ui/core/Fragment",
|
|
21
22
|
"sap/ui/documentation/sdk/util/Resources"
|
|
22
23
|
], function(
|
|
@@ -31,6 +32,7 @@ sap.ui.define([
|
|
|
31
32
|
HTML,
|
|
32
33
|
mobileLibrary,
|
|
33
34
|
Log,
|
|
35
|
+
UriParameters,
|
|
34
36
|
Fragment,
|
|
35
37
|
ResourcesUtil
|
|
36
38
|
) {
|
|
@@ -39,6 +41,10 @@ sap.ui.define([
|
|
|
39
41
|
// shortcut for sap.m.URLHelper
|
|
40
42
|
var URLHelper = mobileLibrary.URLHelper;
|
|
41
43
|
|
|
44
|
+
var COZY = "cozy",
|
|
45
|
+
COMPACT = "compact",
|
|
46
|
+
CONDENSED = "condensed";
|
|
47
|
+
|
|
42
48
|
return SampleBaseController.extend("sap.ui.documentation.sdk.controller.Sample", {
|
|
43
49
|
/* =========================================================== */
|
|
44
50
|
/* lifecycle methods */
|
|
@@ -54,15 +60,28 @@ sap.ui.define([
|
|
|
54
60
|
showNewTab: false,
|
|
55
61
|
rtaLoaded: false
|
|
56
62
|
});
|
|
63
|
+
this._oSampleIframeSettings = {
|
|
64
|
+
densityMode: COMPACT,
|
|
65
|
+
themeActive: "sap_fiori_3",
|
|
66
|
+
rtl: false
|
|
67
|
+
};
|
|
57
68
|
|
|
58
69
|
this._sId = null; // Used to hold sample ID
|
|
59
70
|
this._sEntityId = null; // Used to hold entity ID for the sample currently shown
|
|
60
71
|
|
|
61
72
|
// Load runtime authoring asynchronously
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
73
|
+
if (!ResourcesUtil.getHasProxy()) {
|
|
74
|
+
Promise.all([
|
|
75
|
+
sap.ui.getCore().loadLibrary("sap.ui.fl", {async: true}),
|
|
76
|
+
sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true})
|
|
77
|
+
]).then(function () {
|
|
78
|
+
sap.ui.require([
|
|
79
|
+
"sap/ui/fl/Utils",
|
|
80
|
+
"sap/ui/fl/FakeLrepConnectorLocalStorage",
|
|
81
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier"
|
|
82
|
+
], this._loadRTA.bind(this));
|
|
83
|
+
}.bind(this));
|
|
84
|
+
}
|
|
66
85
|
|
|
67
86
|
this.getView().setModel(this.oModel);
|
|
68
87
|
|
|
@@ -145,11 +164,12 @@ sap.ui.define([
|
|
|
145
164
|
var oSampleConfig = oConfig && oConfig.sample || {};
|
|
146
165
|
|
|
147
166
|
// only have the option to run standalone if there is an iframe
|
|
148
|
-
oModelData.showNewTab = !!oSampleConfig.iframe || ResourcesUtil.getHasProxy();
|
|
167
|
+
oModelData.showNewTab = !!oSampleConfig.iframe || !!ResourcesUtil.getHasProxy();
|
|
149
168
|
oModelData.id = oSample.id;
|
|
150
169
|
oModelData.name = oSample.name;
|
|
151
170
|
oModelData.details = oSample.details;
|
|
152
171
|
oModelData.description = oSample.description;
|
|
172
|
+
oModelData.showSettings = !!ResourcesUtil.getHasProxy();
|
|
153
173
|
|
|
154
174
|
if (oSampleConfig) {
|
|
155
175
|
|
|
@@ -211,6 +231,141 @@ sap.ui.define([
|
|
|
211
231
|
});
|
|
212
232
|
},
|
|
213
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Opens the View settings dialog
|
|
236
|
+
* @public
|
|
237
|
+
*/
|
|
238
|
+
handleSettings: function () {
|
|
239
|
+
var oSampleFrame = this._oHtmlControl.$()[0].contentWindow,
|
|
240
|
+
oSampleFrameCore = oSampleFrame.sap.ui.getCore(),
|
|
241
|
+
oView;
|
|
242
|
+
|
|
243
|
+
if (!this._oMessageBundle) {
|
|
244
|
+
this._oMessageBundle = new oSampleFrame.sap.ui.model.resource.ResourceModel({
|
|
245
|
+
bundleName: "sap.ui.documentation.messagebundle"
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (!this._oSettingsDialog) {
|
|
250
|
+
this._oSettingsDialog = new oSampleFrame.sap.ui.xmlfragment("sap.ui.documentation.sdk.view.appSettingsDialog", this);
|
|
251
|
+
|
|
252
|
+
oView = oSampleFrameCore.byId("__xmlview0");
|
|
253
|
+
oView.setModel(this._oMessageBundle, "i18n");
|
|
254
|
+
oView.addDependent(this._oSettingsDialog);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
setTimeout(function () {
|
|
258
|
+
var oAppSettings = oSampleFrameCore.getConfiguration(),
|
|
259
|
+
oThemeSelect = oSampleFrameCore.byId("ThemeSelect"),
|
|
260
|
+
sUriParamTheme = UriParameters.fromQuery(window.location.search).get("sap-theme"),
|
|
261
|
+
bDensityMode = this._oSampleIframeSettings.densityMode;
|
|
262
|
+
|
|
263
|
+
// Theme select
|
|
264
|
+
oThemeSelect.setSelectedKey(sUriParamTheme ? sUriParamTheme : oAppSettings.getTheme());
|
|
265
|
+
|
|
266
|
+
// RTL
|
|
267
|
+
oSampleFrameCore.byId("RTLSwitch").setState(oAppSettings.getRTL());
|
|
268
|
+
|
|
269
|
+
// Density mode select
|
|
270
|
+
oSampleFrameCore.byId("DensityModeSwitch").setSelectedKey(bDensityMode);
|
|
271
|
+
|
|
272
|
+
this._oSettingsDialog.open();
|
|
273
|
+
}.bind(this), 0);
|
|
274
|
+
},
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Closes the View settings dialog
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
handleCloseAppSettings: function () {
|
|
281
|
+
this._oSettingsDialog.close();
|
|
282
|
+
},
|
|
283
|
+
|
|
284
|
+
handleSaveAppSettings: function () {
|
|
285
|
+
var oSampleFrame = this._oHtmlControl.$()[0].contentWindow,
|
|
286
|
+
oSampleFrameCore = oSampleFrame.sap.ui.getCore(),
|
|
287
|
+
sDensityMode = oSampleFrameCore.byId("DensityModeSwitch").getSelectedKey(),
|
|
288
|
+
sTheme = oSampleFrameCore.byId("ThemeSelect").getSelectedKey(),
|
|
289
|
+
bRTL = oSampleFrameCore.byId("RTLSwitch").getState(),
|
|
290
|
+
oView = oSampleFrameCore.byId("__xmlview0");
|
|
291
|
+
|
|
292
|
+
this._oSettingsDialog.close();
|
|
293
|
+
|
|
294
|
+
// Lazy loading of busy dialog
|
|
295
|
+
if (!this._oBusyDialog) {
|
|
296
|
+
oSampleFrame.sap.ui.require(["sap/m/BusyDialog"], function () {
|
|
297
|
+
this._oBusyDialog = new oSampleFrame.sap.m.BusyDialog();
|
|
298
|
+
oView.addDependent(this._oBusyDialog);
|
|
299
|
+
this._handleBusyDialog();
|
|
300
|
+
}.bind(this));
|
|
301
|
+
} else {
|
|
302
|
+
this._handleBusyDialog();
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// handle settings change
|
|
306
|
+
this._applyAppConfiguration(sTheme, sDensityMode, bRTL);
|
|
307
|
+
},
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Apply content configuration
|
|
311
|
+
* @param {string} sThemeActive name of the theme
|
|
312
|
+
* @param {string} sDensityMode content density mode
|
|
313
|
+
* @param {boolean} bRTL right to left mode
|
|
314
|
+
* @private
|
|
315
|
+
*/
|
|
316
|
+
_applyAppConfiguration: function(sThemeActive, sDensityMode, bRTL){
|
|
317
|
+
var oSampleFrame = this._oHtmlControl.$()[0].contentWindow,
|
|
318
|
+
oSampleFrameCore = oSampleFrame.sap.ui.getCore();
|
|
319
|
+
|
|
320
|
+
if (this._oSampleIframeSettings.densityMode !== sDensityMode) {
|
|
321
|
+
this._oSampleIframeSettings.densityMode = sDensityMode;
|
|
322
|
+
this._toggleContentDensityClasses(oSampleFrame.jQuery("body"), sDensityMode);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
if (this._oSampleIframeSettings.rtl !== bRTL) {
|
|
326
|
+
oSampleFrameCore.getConfiguration().setRTL(bRTL);
|
|
327
|
+
this._oSampleIframeSettings.rtl = bRTL;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
if (oSampleFrameCore.getConfiguration().getTheme() !== sThemeActive) {
|
|
331
|
+
oSampleFrameCore.applyTheme(sThemeActive);
|
|
332
|
+
this._oSampleIframeSettings.themeActive = sThemeActive;
|
|
333
|
+
} else if (this._oSampleIframeSettings.densityMode !== sDensityMode) {
|
|
334
|
+
// Notify Core for content density change only if no theme change happened
|
|
335
|
+
oSampleFrameCore.notifyContentDensityChanged();
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Toggles content density classes in the provided html body
|
|
341
|
+
* @param {object} oBody the html body to set the correct class on
|
|
342
|
+
* @param {string} sDensityMode content density mode
|
|
343
|
+
* @private
|
|
344
|
+
*/
|
|
345
|
+
_toggleContentDensityClasses: function(oBody, sDensityMode){
|
|
346
|
+
switch (sDensityMode) {
|
|
347
|
+
case COMPACT:
|
|
348
|
+
oBody.toggleClass("sapUiSizeCompact", true).toggleClass("sapUiSizeCozy", false).toggleClass("sapUiSizeCondensed", false);
|
|
349
|
+
break;
|
|
350
|
+
case CONDENSED:
|
|
351
|
+
oBody.toggleClass("sapUiSizeCondensed", true).toggleClass("sapUiSizeCozy", false).toggleClass("sapUiSizeCompact", true);
|
|
352
|
+
break;
|
|
353
|
+
default:
|
|
354
|
+
oBody.toggleClass("sapUiSizeCozy", true).toggleClass("sapUiSizeCondensed", false).toggleClass("sapUiSizeCompact", false);
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Handles View settings dialog
|
|
360
|
+
* @public
|
|
361
|
+
*/
|
|
362
|
+
_handleBusyDialog : function () {
|
|
363
|
+
this._oBusyDialog.open();
|
|
364
|
+
setTimeout(function () {
|
|
365
|
+
this._oBusyDialog.close();
|
|
366
|
+
}.bind(this), 1000);
|
|
367
|
+
},
|
|
368
|
+
|
|
214
369
|
_updateFileContent: function(sRef, sFile) {
|
|
215
370
|
this.fetchSourceFile(sRef + "/" + sFile).then(function(vContent) {
|
|
216
371
|
var aFiles = this.oModel.getProperty("/files");
|
|
@@ -325,6 +480,20 @@ sap.ui.define([
|
|
|
325
480
|
}
|
|
326
481
|
|
|
327
482
|
if (!this._oHtmlControl) {
|
|
483
|
+
var oComponent = this.getOwnerComponent();
|
|
484
|
+
|
|
485
|
+
// Guarantees the sample initially to have the same content density, as the whole Demo Kit
|
|
486
|
+
switch (oComponent.getContentDensityClass()) {
|
|
487
|
+
case "sapUiSizeCompact":
|
|
488
|
+
this._oSampleIframeSettings.densityMode = COMPACT;
|
|
489
|
+
break;
|
|
490
|
+
case "sapUiSizeCondensed":
|
|
491
|
+
this._oSampleIframeSettings.densityMode = CONDENSED;
|
|
492
|
+
break;
|
|
493
|
+
default:
|
|
494
|
+
this._oSampleIframeSettings.densityMode = COZY;
|
|
495
|
+
}
|
|
496
|
+
|
|
328
497
|
this._oHtmlControl = new HTML({
|
|
329
498
|
id : "sampleFrame",
|
|
330
499
|
content : '<iframe src="' + this.sIFrameUrl + '" id="sampleFrame" frameBorder="0"></iframe>'
|
|
@@ -335,17 +504,58 @@ sap.ui.define([
|
|
|
335
504
|
if (!this._oHtmlControl._jQueryHTMLControlLoadEventAttached) {
|
|
336
505
|
this._oHtmlControl.$().on("load", function () {
|
|
337
506
|
var oSampleFrame = this._oHtmlControl.$()[0].contentWindow,
|
|
338
|
-
oSampleFrameCore = oSampleFrame.sap.ui.getCore()
|
|
507
|
+
oSampleFrameCore = oSampleFrame.sap.ui.getCore(),
|
|
508
|
+
oFrame = document.getElementById("sampleFrame");
|
|
509
|
+
|
|
510
|
+
this._oMessageBundle = null;
|
|
511
|
+
this._oSettingsDialog = null;
|
|
512
|
+
this._oBusyDialog = null;
|
|
513
|
+
|
|
514
|
+
if (this.oModel.getData().iframe) {
|
|
515
|
+
Promise.all([
|
|
516
|
+
oSampleFrameCore.loadLibrary("sap.ui.fl", {async: true}),
|
|
517
|
+
oSampleFrameCore.loadLibrary("sap.ui.rta", {async: true})
|
|
518
|
+
]).then(function () {
|
|
519
|
+
oSampleFrame.sap.ui.require([
|
|
520
|
+
"sap/ui/fl/Utils",
|
|
521
|
+
"sap/ui/fl/FakeLrepConnectorLocalStorage",
|
|
522
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier"
|
|
523
|
+
], this._loadRTA.bind(this));
|
|
524
|
+
}.bind(this));
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
oFrame.onToggleAdaptationMode = function () {
|
|
528
|
+
oSampleFrame.sap.ui.require([
|
|
529
|
+
"sap/ui/rta/api/startKeyUserAdaptation"
|
|
530
|
+
], function (
|
|
531
|
+
startKeyUserAdaptation
|
|
532
|
+
) {
|
|
533
|
+
if (!this._oRTA) {
|
|
534
|
+
var oContainer = oSampleFrameCore.byId("__container0");
|
|
535
|
+
|
|
536
|
+
startKeyUserAdaptation({
|
|
537
|
+
rootControl : oContainer.getComponentInstance()
|
|
538
|
+
}).then(function(oRta) {
|
|
539
|
+
this._oRTA = oRta;
|
|
540
|
+
oContainer.$().css({"padding-top": "2.5rem", "box-sizing": "border-box"});
|
|
541
|
+
this._oRTA.attachStop(function () {
|
|
542
|
+
oContainer.$().css({"padding-top": "0", "box-sizing": "content-box"});
|
|
543
|
+
this._oRTA.destroy();
|
|
544
|
+
delete this._oRTA;
|
|
545
|
+
}.bind(this));
|
|
546
|
+
}.bind(this));
|
|
547
|
+
}
|
|
548
|
+
}.bind(this));
|
|
549
|
+
};
|
|
550
|
+
}
|
|
339
551
|
|
|
340
552
|
// Apply theme settings to iframe sample
|
|
341
553
|
oSampleFrame.sap.ui.getCore().attachInit(function () {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
oSampleFrameCore.
|
|
345
|
-
|
|
346
|
-
oSampleFrame.jQuery('body')
|
|
347
|
-
.toggleClass("sapUiSizeCompact", bCompact)
|
|
348
|
-
.toggleClass("sapUiSizeCozy", !bCompact);
|
|
554
|
+
oSampleFrameCore.applyTheme(ResourcesUtil.getHasProxy() ?
|
|
555
|
+
this._oSampleIframeSettings.themeActive : this._oCore.getConfiguration().getTheme());
|
|
556
|
+
oSampleFrameCore.getConfiguration().setRTL(ResourcesUtil.getHasProxy() ?
|
|
557
|
+
this._oSampleIframeSettings.rtl : this._oCore.getConfiguration().getRTL());
|
|
558
|
+
this._toggleContentDensityClasses(oSampleFrame.jQuery('body'), this._oSampleIframeSettings.densityMode);
|
|
349
559
|
|
|
350
560
|
// Notify Core for content density change
|
|
351
561
|
oSampleFrameCore.notifyContentDensityChanged();
|
|
@@ -395,7 +605,7 @@ sap.ui.define([
|
|
|
395
605
|
},
|
|
396
606
|
|
|
397
607
|
onDemoKitThemeChanged: function(sChannelId, sEventId, oData) {
|
|
398
|
-
if (this._oHtmlControl) {
|
|
608
|
+
if (this._oHtmlControl && !ResourcesUtil.getHasProxy()) {
|
|
399
609
|
this._oHtmlControl.$()[0].contentWindow.sap.ui.getCore().applyTheme(oData.sThemeActive);
|
|
400
610
|
}
|
|
401
611
|
this.setDefaultSampleTheme();
|
|
@@ -436,12 +646,7 @@ sap.ui.define([
|
|
|
436
646
|
this.sIFrameUrl = this.sIFrameUrl + decodeURI(oIFrameURL.search);
|
|
437
647
|
},
|
|
438
648
|
|
|
439
|
-
_loadRTA: function (
|
|
440
|
-
sap.ui.require([
|
|
441
|
-
"sap/ui/fl/Utils",
|
|
442
|
-
"sap/ui/fl/FakeLrepConnectorLocalStorage",
|
|
443
|
-
"sap/ui/core/util/reflection/JsControlTreeModifier"
|
|
444
|
-
], function (
|
|
649
|
+
_loadRTA: function (
|
|
445
650
|
Utils,
|
|
446
651
|
FakeLrepConnectorLocalStorage,
|
|
447
652
|
JsControlTreeModifier
|
|
@@ -469,18 +674,23 @@ sap.ui.define([
|
|
|
469
674
|
this._oRTA = null;
|
|
470
675
|
}
|
|
471
676
|
}, this);
|
|
472
|
-
}.bind(this));
|
|
473
677
|
},
|
|
474
678
|
|
|
475
679
|
onToggleAdaptationMode : function (oEvt) {
|
|
680
|
+
if (this.oModel.getData().iframe) {
|
|
681
|
+
window.document.getElementsByTagName("iframe")[0].onToggleAdaptationMode();
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
476
684
|
sap.ui.require([
|
|
477
685
|
"sap/ui/rta/api/startKeyUserAdaptation"
|
|
478
686
|
], function (
|
|
479
687
|
startKeyUserAdaptation
|
|
480
688
|
) {
|
|
481
689
|
if (!this._oRTA) {
|
|
690
|
+
var oContainer = this.byId("page").getContent()[0];
|
|
691
|
+
|
|
482
692
|
startKeyUserAdaptation({
|
|
483
|
-
rootControl :
|
|
693
|
+
rootControl : oContainer.getComponentInstance()
|
|
484
694
|
}).then(function(oRta) {
|
|
485
695
|
this._oRTA = oRta;
|
|
486
696
|
this._oRTA.attachStop(function () {
|
|
@@ -34,6 +34,7 @@ sap.ui.define([],
|
|
|
34
34
|
oRm.text('Filter');
|
|
35
35
|
oRm.close('a');
|
|
36
36
|
oRm.openStart("ul", oControl.getId() + "-optionsList");
|
|
37
|
+
oRm.attr("tabindex", 0);
|
|
37
38
|
if (!oControl.getProperty("expanded")){
|
|
38
39
|
oRm.style("display", "none");
|
|
39
40
|
}
|
|
@@ -56,9 +57,14 @@ sap.ui.define([],
|
|
|
56
57
|
oRm.attr("checked", "true");
|
|
57
58
|
}
|
|
58
59
|
oRm.attr("type", "checkbox");
|
|
60
|
+
oRm.attr("id", "dropDownFilterOption" + index);
|
|
59
61
|
oRm.attr("index", index);
|
|
60
62
|
oRm.voidEnd();
|
|
61
|
-
|
|
63
|
+
oRm.openStart("label");
|
|
64
|
+
oRm.attr("for", "dropDownFilterOption" + index);
|
|
65
|
+
oRm.openEnd("label");
|
|
66
|
+
oRm.text(sOption);
|
|
67
|
+
oRm.close("label");
|
|
62
68
|
oRm.close("li");
|
|
63
69
|
});
|
|
64
70
|
|
|
@@ -1816,12 +1816,21 @@ html[dir="rtl"] .sapUiDemoKitTreeItemIcon {
|
|
|
1816
1816
|
.sapUiTheme-sap_fiori_3 .sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect .sapMSltLabel:after {
|
|
1817
1817
|
content: "";
|
|
1818
1818
|
position: absolute;
|
|
1819
|
-
bottom: 0;
|
|
1819
|
+
bottom: 0.188rem;
|
|
1820
1820
|
left: 0.5rem;
|
|
1821
1821
|
right: 2.5rem;
|
|
1822
1822
|
padding-right: 1rem;
|
|
1823
1823
|
border-bottom: 0.188rem solid #d1e8ff;
|
|
1824
|
-
border-radius: 0.125rem
|
|
1824
|
+
border-radius: 0.125rem;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
.sapUiTheme-sap_fiori_3.sapUiMedia-Std-Phone .sapTntToolHeader .sapMSlt.sapUiDocumentationSelect,
|
|
1828
|
+
.sap-phone .sapTntToolHeader .sapMSlt.sapUiDocumentationSelect {
|
|
1829
|
+
height: 2.75rem;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
.sapUiTheme-sap_fiori_3 .sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect .sapMSltLabel {
|
|
1833
|
+
border: none;
|
|
1825
1834
|
}
|
|
1826
1835
|
|
|
1827
1836
|
/* SAP Quartz Light theme - end */
|
|
@@ -255,7 +255,9 @@ sap.ui.define([
|
|
|
255
255
|
bParsed = /^blob:/.test(sTarget)
|
|
256
256
|
|| /^https?:\/\//.test(sTarget)
|
|
257
257
|
|| /^test-resources\//.test(sTarget)
|
|
258
|
-
|| /^resources\//.test(sTarget)
|
|
258
|
+
|| /^resources\//.test(sTarget)
|
|
259
|
+
|| /^tel:/.test(sTarget)
|
|
260
|
+
|| /^mailto:/.test(sTarget);
|
|
259
261
|
|
|
260
262
|
// If we have no target by here we give up
|
|
261
263
|
if (sTarget && !bParsed) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
xmlns="sap.m"
|
|
3
3
|
xmlns:core="sap.ui.core">
|
|
4
4
|
<ResponsivePopover
|
|
5
|
-
id="
|
|
5
|
+
id="newsPopover"
|
|
6
6
|
placement="Bottom"
|
|
7
7
|
title="{i18n>APP_NEWS_BTN_TOOLTIP}">
|
|
8
8
|
<beginButton>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
items="{path: 'news>/items', templateShareable: false}"
|
|
25
25
|
>
|
|
26
26
|
<layoutData>
|
|
27
|
-
<FlexItemData maxHeight="450px" />
|
|
27
|
+
<FlexItemData maxHeight="450px" maxWidth="600px" />
|
|
28
28
|
</layoutData>
|
|
29
29
|
|
|
30
30
|
<NotificationListItem
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
class="sapUiHideOnPhone"
|
|
62
62
|
tooltip="{i18n>SAMPLE_ADAPT_BTN_TOOLTIP}"
|
|
63
63
|
press="onToggleAdaptationMode"
|
|
64
|
-
visible="{=
|
|
64
|
+
visible="{= ${/rtaLoaded}}" />
|
|
65
65
|
<Button
|
|
66
66
|
id="code"
|
|
67
67
|
icon="sap-icon://syntax"
|
|
@@ -72,6 +72,10 @@
|
|
|
72
72
|
tooltip="{i18n>SAMPLE_NEW_TAB_BTN_TOOLTIP}"
|
|
73
73
|
icon="sap-icon://inspect"
|
|
74
74
|
press="onNewTab" />
|
|
75
|
+
<Button id="sampleSettings"
|
|
76
|
+
visible="{= ${/showSettings}}"
|
|
77
|
+
icon="sap-icon://action-settings"
|
|
78
|
+
press="handleSettings" />
|
|
75
79
|
<Button
|
|
76
80
|
class="sapUiHideOnPhone"
|
|
77
81
|
text="{i18n>SAMPLE_DOWNLOAD_BTN_TOOLTIP}"
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
width="100%">
|
|
112
112
|
<custom:TitleLink
|
|
113
113
|
text="{i18n>WELCOME_BLOCK_3_TITLE}"
|
|
114
|
-
href="topic/
|
|
114
|
+
href="topic/23cfd955f58142389fa7c9097e11559c"
|
|
115
115
|
class="sapUiSmallMarginBottom"
|
|
116
116
|
titleStyle="H2"/>
|
|
117
117
|
<Text
|
|
@@ -149,6 +149,22 @@
|
|
|
149
149
|
class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
|
|
150
150
|
<Text text="{i18n>WELCOME_BLOCK_3_TEXT_5}"/>
|
|
151
151
|
</HBox>
|
|
152
|
+
<HBox>
|
|
153
|
+
<core:Icon
|
|
154
|
+
src="sap-icon://accept"
|
|
155
|
+
size="0.875rem"
|
|
156
|
+
color="Default"
|
|
157
|
+
class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
|
|
158
|
+
<Text text="{i18n>WELCOME_BLOCK_3_TEXT_6}"/>
|
|
159
|
+
</HBox>
|
|
160
|
+
<HBox>
|
|
161
|
+
<core:Icon
|
|
162
|
+
src="sap-icon://accept"
|
|
163
|
+
size="0.875rem"
|
|
164
|
+
color="Default"
|
|
165
|
+
class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
|
|
166
|
+
<Text text="{i18n>WELCOME_BLOCK_3_TEXT_7}"/>
|
|
167
|
+
</HBox>
|
|
152
168
|
</l:VerticalLayout>
|
|
153
169
|
</l:BlockLayoutCell>
|
|
154
170
|
</l:BlockLayoutRow>
|
|
@@ -160,7 +176,7 @@
|
|
|
160
176
|
<l:VerticalLayout
|
|
161
177
|
width="100%">
|
|
162
178
|
<custom:TitleLink
|
|
163
|
-
href="topic/
|
|
179
|
+
href="topic/bf2d55eaa33b44a78ef95e7946d658e8"
|
|
164
180
|
text="{i18n>WELCOME_BLOCK_4_TITLE}"
|
|
165
181
|
class="sapUiSmallMarginBottom"
|
|
166
182
|
titleStyle="H2"/>
|
|
@@ -191,6 +207,38 @@
|
|
|
191
207
|
class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
|
|
192
208
|
<Text text="{i18n>WELCOME_BLOCK_4_TEXT_4}"/>
|
|
193
209
|
</HBox>
|
|
210
|
+
<HBox>
|
|
211
|
+
<core:Icon
|
|
212
|
+
src="sap-icon://accept"
|
|
213
|
+
size="0.875rem"
|
|
214
|
+
color="Default"
|
|
215
|
+
class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
|
|
216
|
+
<Text text="{i18n>WELCOME_BLOCK_4_TEXT_5}"/>
|
|
217
|
+
</HBox>
|
|
218
|
+
<HBox>
|
|
219
|
+
<core:Icon
|
|
220
|
+
src="sap-icon://accept"
|
|
221
|
+
size="0.875rem"
|
|
222
|
+
color="Default"
|
|
223
|
+
class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
|
|
224
|
+
<Text text="{i18n>WELCOME_BLOCK_4_TEXT_6}"/>
|
|
225
|
+
</HBox>
|
|
226
|
+
<HBox>
|
|
227
|
+
<core:Icon
|
|
228
|
+
src="sap-icon://accept"
|
|
229
|
+
size="0.875rem"
|
|
230
|
+
color="Default"
|
|
231
|
+
class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
|
|
232
|
+
<Text text="{i18n>WELCOME_BLOCK_4_TEXT_7}"/>
|
|
233
|
+
</HBox>
|
|
234
|
+
<HBox>
|
|
235
|
+
<core:Icon
|
|
236
|
+
src="sap-icon://accept"
|
|
237
|
+
size="0.875rem"
|
|
238
|
+
color="Default"
|
|
239
|
+
class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
|
|
240
|
+
<Text text="{i18n>WELCOME_BLOCK_4_TEXT_8}"/>
|
|
241
|
+
</HBox>
|
|
194
242
|
</l:VerticalLayout>
|
|
195
243
|
</l:BlockLayoutCell>
|
|
196
244
|
|
|
@@ -230,43 +278,43 @@
|
|
|
230
278
|
</l:Grid>
|
|
231
279
|
</l:BlockLayoutCell>
|
|
232
280
|
</l:BlockLayoutRow>
|
|
233
|
-
|
|
234
|
-
<l:BlockLayoutRow
|
|
235
|
-
<l:BlockLayoutCell
|
|
236
|
-
backgroundColorSet="ColorSet11"
|
|
237
|
-
backgroundColorShade="ShadeA"
|
|
238
|
-
<HBox alignItems="Center" justifyContent="Center" width="100%" height="100%"
|
|
239
|
-
<core:HTML sanitizeContent="true" content='
|
|
240
|
-
<div class="videoWrapper">
|
|
241
|
-
<iframe src="https://www.youtube.com/embed/6_CQYtmRJNg" title="YouTube video player" frameborder="0"
|
|
242
|
-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="true" />
|
|
243
|
-
</div>'
|
|
244
|
-
<core:layoutData
|
|
245
|
-
<FlexItemData maxWidth="35rem" growFactor="1"
|
|
246
|
-
</core:layoutData
|
|
247
|
-
</core:HTML
|
|
248
|
-
</HBox
|
|
249
|
-
</l:BlockLayoutCell
|
|
250
|
-
<l:BlockLayoutCell
|
|
251
|
-
backgroundColorSet="ColorSet11"
|
|
252
|
-
backgroundColorShade="ShadeD"
|
|
253
|
-
<l:VerticalLayout
|
|
254
|
-
width="100%"
|
|
255
|
-
<custom:TitleLink
|
|
256
|
-
text="{i18n>WELCOME_VIDEO_BLOCK_TITLE}"
|
|
257
|
-
class="sapUiSmallMarginBottom"
|
|
258
|
-
href="https://www.youtube.com/watch?v=6_CQYtmRJNg"
|
|
259
|
-
target="_blank"
|
|
260
|
-
titleStyle="H2"
|
|
261
|
-
<Text
|
|
262
|
-
text="{i18n>WELCOME_VIDEO_BLOCK_TEXT_1}"
|
|
263
|
-
class="sapUiSmallMarginBottom"
|
|
264
|
-
<FormattedText
|
|
265
|
-
htmlText="{i18n>WELCOME_VIDEO_BLOCK_TEXT_2}"
|
|
266
|
-
class="sapUiSmallMarginBottom"
|
|
267
|
-
</l:VerticalLayout
|
|
268
|
-
</l:BlockLayoutCell
|
|
269
|
-
</l:BlockLayoutRow
|
|
281
|
+
<!-- This block layout row will be commented until BGSOFUIPIRIN-5473 is completely finished-->
|
|
282
|
+
<!-- <l:BlockLayoutRow>-->
|
|
283
|
+
<!-- <l:BlockLayoutCell-->
|
|
284
|
+
<!-- backgroundColorSet="ColorSet11"-->
|
|
285
|
+
<!-- backgroundColorShade="ShadeA">-->
|
|
286
|
+
<!-- <HBox alignItems="Center" justifyContent="Center" width="100%" height="100%">-->
|
|
287
|
+
<!-- <core:HTML sanitizeContent="true" content='-->
|
|
288
|
+
<!-- <div class="videoWrapper">-->
|
|
289
|
+
<!-- <iframe src="https://www.youtube.com/embed/6_CQYtmRJNg" title="YouTube video player" frameborder="0"-->
|
|
290
|
+
<!-- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="true" />-->
|
|
291
|
+
<!-- </div>'>-->
|
|
292
|
+
<!-- <core:layoutData>-->
|
|
293
|
+
<!-- <FlexItemData maxWidth="35rem" growFactor="1" />-->
|
|
294
|
+
<!-- </core:layoutData>-->
|
|
295
|
+
<!-- </core:HTML>-->
|
|
296
|
+
<!-- </HBox>-->
|
|
297
|
+
<!-- </l:BlockLayoutCell>-->
|
|
298
|
+
<!-- <l:BlockLayoutCell-->
|
|
299
|
+
<!-- backgroundColorSet="ColorSet11"-->
|
|
300
|
+
<!-- backgroundColorShade="ShadeD">-->
|
|
301
|
+
<!-- <l:VerticalLayout-->
|
|
302
|
+
<!-- width="100%">-->
|
|
303
|
+
<!-- <custom:TitleLink-->
|
|
304
|
+
<!-- text="{i18n>WELCOME_VIDEO_BLOCK_TITLE}"-->
|
|
305
|
+
<!-- class="sapUiSmallMarginBottom"-->
|
|
306
|
+
<!-- href="https://www.youtube.com/watch?v=6_CQYtmRJNg"-->
|
|
307
|
+
<!-- target="_blank"-->
|
|
308
|
+
<!-- titleStyle="H2"/>-->
|
|
309
|
+
<!-- <Text-->
|
|
310
|
+
<!-- text="{i18n>WELCOME_VIDEO_BLOCK_TEXT_1}"-->
|
|
311
|
+
<!-- class="sapUiSmallMarginBottom"/>-->
|
|
312
|
+
<!-- <FormattedText-->
|
|
313
|
+
<!-- htmlText="{i18n>WELCOME_VIDEO_BLOCK_TEXT_2}"-->
|
|
314
|
+
<!-- class="sapUiSmallMarginBottom"/>-->
|
|
315
|
+
<!-- </l:VerticalLayout>-->
|
|
316
|
+
<!-- </l:BlockLayoutCell>-->
|
|
317
|
+
<!-- </l:BlockLayoutRow>-->
|
|
270
318
|
</l:BlockLayout>
|
|
271
319
|
</Panel>
|
|
272
320
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
<VBox class="sapUiTinyMarginTop">
|
|
12
12
|
<Label text="{i18n>APP_SETTINGS_DIALOG_THEME}" design="Standard" labelFor="ThemeSelect" />
|
|
13
13
|
<Select id="ThemeSelect" width="100%" class="sapUiSmallMarginBottom">
|
|
14
|
+
<core:Item key="sap_horizon" text="Horizon"/>
|
|
14
15
|
<core:Item key="sap_fiori_3" text="Quartz Light"/>
|
|
15
16
|
<core:Item key="sap_fiori_3_dark" text="Quartz Dark"/>
|
|
16
17
|
<core:Item key="sap_belize" text="Belize"/>
|