@@ -30887,9 +30887,10 @@ class ApiRequest extends lit_element_s {
30887
30887
data-param-serialize-style = "${paramStyle}"
30888
30888
data-param-serialize-explode = "${paramExplode}"
30889
30889
data-param-allow-reserved = "${paramAllowReserved}"
30890
+ data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
30890
30891
data-array = "true"
30891
30892
placeholder = "add-multiple ↩"
30892
- .value = "${this.fillRequestFieldsWithExample === 'true' ? Array.isArray(example.exampleVal) ? example.exampleVal : [example.exampleVal] : []}"
30893
+ .value= "${param['x-fill-example'] === 'no' ? [] : live_l( this.fillRequestFieldsWithExample === 'true' ? Array.isArray(example.exampleVal) ? example.exampleVal : [example.exampleVal] : []) }"
30893
30894
>
30894
30895
</tag-input>` : paramSchema.type === 'object' ? $`
30895
30896
<div class="tab-panel col" style="border-width:0 0 1px 0;">
@@ -30914,8 +30915,9 @@ class ApiRequest extends lit_element_s {
30914
30915
data-param-serialize-style = "${paramStyle}"
30915
30916
data-param-serialize-explode = "${paramExplode}"
30916
30917
data-param-allow-reserved = "${paramAllowReserved}"
30918
+ data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
30917
30919
spellcheck = "false"
30918
- .textContent = "${this.fillRequestFieldsWithExample === 'true' ? example.exampleVal : ''}"
30920
+ .textContent= "${param['x-fill-example'] === 'no' ? '' : live_l( this.fillRequestFieldsWithExample === 'true' ? example.exampleVal : '') }"
30919
30921
style = "resize:vertical; width:100%; height: ${'read focused'.includes(this.renderStyle) ? '180px' : '120px'};"
30920
30922
></textarea>
30921
30923
</div>` : $`
@@ -31896,9 +31898,10 @@ class ApiRequest extends lit_element_s {
31896
31898
let respJson;
31897
31899
let respText;
31898
31900
tryBtnEl.disabled = true;
31899
- const startTime = performance.now();
31900
31901
this.responseText = '⌛';
31902
+ this.responseMessage = '';
31901
31903
this.requestUpdate();
31904
+ const startTime = performance.now();
31902
31905
fetchResponse = await fetch(fetchRequest, {
31903
31906
signal
31904
31907
});
@@ -33230,7 +33233,7 @@ function navbarTemplate() {
33230
33233
<nav class='nav-bar ${this.renderStyle}' part="section-navbar">
33231
33234
<slot name="nav-logo" class="logo"></slot>
33232
33235
${this.allowSearch === 'false' && this.allowAdvancedSearch === 'false' ? '' : $`
33233
- <div style="display:flex; flex-direction:row; justify-content:center; align-items:stretch; padding:8px 24px 12px 24px; ${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}">
33236
+ <div style="display:flex; flex-direction:row; justify-content:center; align-items:stretch; padding:8px 24px 12px 24px; ${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}" part="section-navbar-search" >
33234
33237
${this.allowSearch === 'false' ? '' : $`
33235
33238
<div style="display:flex; flex:1; line-height:22px;">
33236
33239
<input id="nav-bar-search"
@@ -35567,10 +35570,13 @@ class RapiDoc extends lit_element_s {
35567
35570
this.scrollTo(elementId);
35568
35571
}
35569
35572
} else if (this.renderStyle === 'focused') {
35570
- var _this$resolvedSpec$ta;
35573
+ // If goto-path is provided and no location-hash is present then try to scroll to default element
35574
+ if (!this.gotoPath) {
35575
+ var _this$resolvedSpec$ta;
35571
35576
35572
- const defaultElementId = this.showInfo ? 'overview' : (_this$resolvedSpec$ta = this.resolvedSpec.tags[0]) === null || _this$resolvedSpec$ta === void 0 ? void 0 : _this$resolvedSpec$ta.paths[0];
35573
- this.scrollTo(defaultElementId);
35577
+ const defaultElementId = this.showInfo ? 'overview' : (_this$resolvedSpec$ta = this.resolvedSpec.tags[0]) === null || _this$resolvedSpec$ta === void 0 ? void 0 : _this$resolvedSpec$ta.paths[0];
35578
+ this.scrollTo(defaultElementId);
35579
+ }
35574
35580
}
35575
35581
}
35576
35582
@@ -35741,7 +35747,6 @@ class RapiDoc extends lit_element_s {
35741
35747
// for focused mode update this.focusedElementId to update the rendering, else it wont find the needed html elements
35742
35748
// focusedElementId will get validated in the template
35743
35749
this.focusedElementId = elementId;
35744
- await sleep(0);
35745
35750
}
35746
35751
35747
35752
if (this.renderStyle === 'view') {
@@ -40454,7 +40459,7 @@ function getType(str) {
40454
40459
/******/
40455
40460
/******/ /* webpack/runtime/getFullHash */
40456
40461
/******/ (() => {
40457
- /******/ __webpack_require__.h = () => ("7e5b4aa8cf9c2be345b4 ")
40462
+ /******/ __webpack_require__.h = () => ("668fc200d1a4aec66c96 ")
40458
40463
/******/ })();
40459
40464
/******/
40460
40465
/******/ /* webpack/runtime/global */
0 commit comments