@brightspot/ui 6.3.2-pr.309 → 6.3.3-pr.315.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/dist/custom-elements.json +187 -187
- package/dist/storybook/assets/{ActionBar.stories-CgkvHW27.js → ActionBar.stories-BrX0MXz4.js} +1 -1
- package/dist/storybook/assets/{ActionItem.stories-CyxwhrvR.js → ActionItem.stories-DvI8HQ-m.js} +1 -1
- package/dist/storybook/assets/{AiSparkle.stories-h2LSw10e.js → AiSparkle.stories-DObGV2m7.js} +1 -1
- package/dist/storybook/assets/{Avatar.stories-CQ3eFTbI.js → Avatar.stories-D4I46Hyz.js} +1 -1
- package/dist/storybook/assets/{AvatarGroup.stories-CIyZOd7R.js → AvatarGroup.stories-UCIaAQ6z.js} +1 -1
- package/dist/storybook/assets/{Badge.stories-CwPkYUuY.js → Badge.stories-DqxC9sgQ.js} +1 -1
- package/dist/storybook/assets/{Banner.stories-B7AhWymc.js → Banner.stories-B3gx63vx.js} +1 -1
- package/dist/storybook/assets/{Button-fLz-Mqji.js → Button-D-dkrrc-.js} +1 -1
- package/dist/storybook/assets/{Button.stories-Bj_cB5Tr.js → Button.stories-C0Aqx-a2.js} +1 -1
- package/dist/storybook/assets/{ButtonGroup.stories-DMAr8q3A.js → ButtonGroup.stories-7X1gc0r0.js} +1 -1
- package/dist/storybook/assets/{Card.stories-CouVkvTr.js → Card.stories-DEufDiiy.js} +1 -1
- package/dist/storybook/assets/{Celebrate.stories-Cai7aITx.js → Celebrate.stories-EeTFQPKF.js} +1 -1
- package/dist/storybook/assets/{Checkbox.stories-BTzuHih7.js → Checkbox.stories-E7vgGZdO.js} +1 -1
- package/dist/storybook/assets/{CircularProgress.stories-DwiMDCrW.js → CircularProgress.stories-BkcoGj3P.js} +1 -1
- package/dist/storybook/assets/{ClipboardMixin.stories-BTzKKsAG.js → ClipboardMixin.stories-CRM7r-wu.js} +1 -1
- package/dist/storybook/assets/{Color-6BZIO3FS-z5x4axZs.js → Color-6BZIO3FS-CnidbDnl.js} +1 -1
- package/dist/storybook/assets/{Colors.stories-LjQN3QJP.js → Colors.stories-De5Ddvwp.js} +1 -1
- package/dist/storybook/assets/{CombinedEffects.stories-CcWkxBPD.js → CombinedEffects.stories-CdAG8FJO.js} +1 -1
- package/dist/storybook/assets/{ComponentStatesMixin-6JmalSeW.js → ComponentStatesMixin-DoZO_0t-.js} +1 -1
- package/dist/storybook/assets/{ComponentStatesMixin.stories-wr7wl9D5.js → ComponentStatesMixin.stories-DV7YaTq0.js} +1 -1
- package/dist/storybook/assets/{CopyToClipboard.stories-CBL_GlzJ.js → CopyToClipboard.stories-Ww-86uT3.js} +1 -1
- package/dist/storybook/assets/{Debounce.stories-DDW0347e.js → Debounce.stories-jKhQ76m-.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-LL677BLK-LHrG4h5r.js → DocsRenderer-LL677BLK-ZawLCm95.js} +3 -3
- package/dist/storybook/assets/{Dropdown.stories-BixGKdVC.js → Dropdown.stories-CsXHE0YN.js} +1 -1
- package/dist/storybook/assets/{EmptyState.stories-DYCizkT5.js → EmptyState.stories-D314P_Rt.js} +1 -1
- package/dist/storybook/assets/{EscaAvatar.stories-IV0FybUu.js → EscaAvatar.stories-B97ttrOZ.js} +1 -1
- package/dist/storybook/assets/{Events.stories-9X1B5LFU.js → Events.stories-DKv8WxZX.js} +1 -1
- package/dist/storybook/assets/{Heading.stories-BWFKyeYP.js → Heading.stories-DP7Lw64r.js} +1 -1
- package/dist/storybook/assets/{HueRipple.stories-KJySD4yc.js → HueRipple.stories-CI1D5Ccj.js} +1 -1
- package/dist/storybook/assets/{Icon.stories-n4-_RBwe.js → Icon.stories-CsyGvKoP.js} +1 -1
- package/dist/storybook/assets/{IconButton.stories--cc9Az0q.js → IconButton.stories-Dpwd9JIl.js} +1 -1
- package/dist/storybook/assets/{LinearProgress.stories-CXISMQqr.js → LinearProgress.stories-DyYzxjC-.js} +1 -1
- package/dist/storybook/assets/{Message.stories-DCgZ9H2r.js → Message.stories-D0eWTIaR.js} +1 -1
- package/dist/storybook/assets/{OnFindMixin.stories-DwYEl4q4.js → OnFindMixin.stories-DviqXiwL.js} +1 -1
- package/dist/storybook/assets/{Pagination.stories-B8AqV3jI.js → Pagination.stories-BB2OeQXe.js} +1 -1
- package/dist/storybook/assets/{Popover.stories-Dj8TUysk.js → Popover.stories-CLS7f9d4.js} +1 -1
- package/dist/storybook/assets/{ReadyMixin-B1y8EBLz.js → ReadyMixin-Ai9PNiyf.js} +1 -1
- package/dist/storybook/assets/{RovingTabindexMixin.stories-BTYV78Cy.js → RovingTabindexMixin.stories-IX71tOnx.js} +1 -1
- package/dist/storybook/assets/{Rtc.stories-CiQ4OgEf.js → Rtc.stories-C7BrzXJI.js} +1 -1
- package/dist/storybook/assets/{ScrollShadow.stories-BRpbl9WU.js → ScrollShadow.stories-BIzHK0W_.js} +1 -1
- package/dist/storybook/assets/{Switch.stories-Dfw56-LB.js → Switch.stories-BH9HvVvq.js} +1 -1
- package/dist/storybook/assets/{Tab.stories-DCIPSPwr.js → Tab.stories-DDLjHU-G.js} +1 -1
- package/dist/storybook/assets/{Tabs.stories-DrT2D2oW.js → Tabs.stories-CJ5HEJTz.js} +1 -1
- package/dist/storybook/assets/{Throttle.stories-B5Y8K9s3.js → Throttle.stories-hYPWEFe3.js} +1 -1
- package/dist/storybook/assets/{Tooltip.stories-CUjm8cuW.js → Tooltip.stories-BQr6FEqH.js} +1 -1
- package/dist/storybook/assets/{Upload.stories-Dt7V8qIe.js → Upload.stories-CPtKX5bz.js} +1 -1
- package/dist/storybook/assets/{UploadItem.stories-DSXxGs8M.js → UploadItem.stories-B1IqnTbL.js} +1 -1
- package/dist/storybook/assets/{Welcome.stories-BDFQb8oF.js → Welcome.stories-DYwCxQ6e.js} +1 -1
- package/dist/storybook/assets/{Widget.stories-CQnE1dST.js → Widget.stories-CTzdfDhe.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-65CFNBJE-D1OYJPzp.js → WithTooltip-65CFNBJE-UtqUNpkn.js} +1 -1
- package/dist/storybook/assets/{blocks-Z0quNc1U.js → blocks-Cq1cJdF2.js} +5 -5
- package/dist/storybook/assets/{formatter-EIJCOSYU-DwWzDvJC.js → formatter-EIJCOSYU-BU9snprL.js} +1 -1
- package/dist/storybook/assets/if-defined-W7Mwqj47.js +1 -0
- package/dist/storybook/assets/{iframe-WTEmYHJj.js → iframe-CEOcKDKV.js} +4 -4
- package/dist/storybook/assets/{index-BvPCa7_B.js → index-BE1YaRzR.js} +1 -1
- package/dist/storybook/assets/{onFind-CqIRRMTv.js → onFind-B4EVip9_.js} +1 -1
- package/dist/storybook/assets/{onFind.stories-C4PPQTaQ.js → onFind.stories-CMd4Pv-l.js} +1 -1
- package/dist/storybook/assets/{onRemove.stories-BGFCh6DN.js → onRemove.stories-UlbLfBsB.js} +1 -1
- package/dist/storybook/assets/{onVisible.stories-4ni7syfJ.js → onVisible.stories-C52JDTwm.js} +1 -1
- package/dist/storybook/assets/{style-map-BhvFBtuB.js → style-map-C803I3zx.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-ED5Y7EFY-D_cJwnoJ.js → syntaxhighlighter-ED5Y7EFY-BQtXop1X.js} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/src/legacy/tool-ui/src/Entry.ts +4 -29
- package/src/legacy/tool-ui/src/Toggleable/index.ts +37 -1
- package/src/legacy/tool-ui/src/main/webapp/dist/{RTEProseMirror.94bb2bfda58abfdd894e.js → RTEProseMirror.420477026fe7508c83cf.js} +2 -2
- package/src/legacy/tool-ui/src/main/webapp/dist/{v4.cb024eef14914807528c.js → v4.189f793bd95d9d8139e0.js} +4 -4
- package/src/legacy/tool-ui/src/main/webapp/dist/{v5.10d2a7f1cabee072b6a1.js → v5.154a68ccd9077af6bdd5.js} +4 -4
- package/dist/storybook/assets/if-defined-Dl8MuiCE.js +0 -1
- /package/src/legacy/tool-ui/src/main/webapp/dist/{RTEProseMirror.94bb2bfda58abfdd894e.js.LICENSE.txt → RTEProseMirror.420477026fe7508c83cf.js.LICENSE.txt} +0 -0
- /package/src/legacy/tool-ui/src/main/webapp/dist/{v4.cb024eef14914807528c.js.LICENSE.txt → v4.189f793bd95d9d8139e0.js.LICENSE.txt} +0 -0
- /package/src/legacy/tool-ui/src/main/webapp/dist/{v5.10d2a7f1cabee072b6a1.js.LICENSE.txt → v5.154a68ccd9077af6bdd5.js.LICENSE.txt} +0 -0
|
@@ -37,6 +37,16 @@ export default class Toggleable extends EventEmitterMixin(
|
|
|
37
37
|
this._handleChange()
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
/*
|
|
41
|
+
Re-applies the current selection's show/hide + enable/disable state.
|
|
42
|
+
Called by an ancestor Toggleable after its enable pass, which would
|
|
43
|
+
otherwise leave this toggleable's toggled-off branch inputs enabled
|
|
44
|
+
and submitting stale values (BSP-19758).
|
|
45
|
+
*/
|
|
46
|
+
refresh() {
|
|
47
|
+
this._handleChange()
|
|
48
|
+
}
|
|
49
|
+
|
|
40
50
|
constructor() {
|
|
41
51
|
super()
|
|
42
52
|
this._forms = []
|
|
@@ -177,8 +187,8 @@ export default class Toggleable extends EventEmitterMixin(
|
|
|
177
187
|
body: data,
|
|
178
188
|
})
|
|
179
189
|
|
|
180
|
-
form.element.innerHTML = await response.text()
|
|
181
190
|
if (response.ok) {
|
|
191
|
+
form.element.innerHTML = await response.text()
|
|
182
192
|
delete form.element.dataset.formFieldsUrl
|
|
183
193
|
delete form.element.dataset.formFieldsData
|
|
184
194
|
|
|
@@ -187,6 +197,11 @@ export default class Toggleable extends EventEmitterMixin(
|
|
|
187
197
|
)
|
|
188
198
|
form.element.dispatchEvent(new Event('load'))
|
|
189
199
|
form.element.dispatchEvent(new UIEvent('resize'))
|
|
200
|
+
|
|
201
|
+
// The selection may have changed while the request was in
|
|
202
|
+
// flight; re-apply it so content that arrived for a branch
|
|
203
|
+
// that is no longer selected doesn't come back enabled.
|
|
204
|
+
this._handleChange()
|
|
190
205
|
} else {
|
|
191
206
|
form.element.dispatchEvent(
|
|
192
207
|
new CustomEvent('error', {
|
|
@@ -229,6 +244,27 @@ export default class Toggleable extends EventEmitterMixin(
|
|
|
229
244
|
inputs.forEach((input) => {
|
|
230
245
|
input.toggleAttribute('disabled', disable)
|
|
231
246
|
})
|
|
247
|
+
|
|
248
|
+
if (!disable) {
|
|
249
|
+
// The enable pass above walks the whole subtree, so it also enabled
|
|
250
|
+
// inputs in nested toggleables' toggled-off branches (BSP-19758:
|
|
251
|
+
// duplicate typeId params flip a polymorphic record to the wrong
|
|
252
|
+
// type on save). Re-apply each nested toggleable's own state, after
|
|
253
|
+
// the enable pass, to disable those branches again. Document order
|
|
254
|
+
// guarantees an outer nested toggleable is refreshed before any
|
|
255
|
+
// toggleable inside its branches.
|
|
256
|
+
divsToToggle.forEach((el) => {
|
|
257
|
+
el.querySelectorAll<Toggleable>('btu-toggleable').forEach(
|
|
258
|
+
(nested) => {
|
|
259
|
+
// A not-yet-upgraded element applies its own state when it
|
|
260
|
+
// connects, so it can safely be skipped here.
|
|
261
|
+
if (nested !== this && nested instanceof Toggleable) {
|
|
262
|
+
nested.refresh()
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
)
|
|
266
|
+
})
|
|
267
|
+
}
|
|
232
268
|
}
|
|
233
269
|
}
|
|
234
270
|
|