stable

Clone or download

Read-only

feat: Add Will Hide modal event

No functional change on TLP modals. TLP-doc shows an example for how to use the event. All TLP-doc modal examples should work, previously only the simple ones did. Notes: This event will be used in the Artifact modal to prevent closing it and instead show a confirmation dialog, so that users are warned they may lose ongoing work if they close the modal. part of request #32653 Do not lose modifications done in Artifact Modal Change-Id: I9dbd689377c3ce2cfeafc1303fbdbe1fa224cfeb

Modified Files

Name
M lib/frontend/tlp-modal/package.json +2 −2 Go to diff View file
M lib/frontend/tlp-modal/pnpm-lock.yaml +3 −0 Go to diff View file
M lib/frontend/tlp-modal/src/index.ts +6 −1 Go to diff View file
M lib/frontend/tlp-modal/src/modal.test.ts +81 −54 Go to diff View file
M lib/frontend/tlp-modal/src/modal.ts +15 −7 Go to diff View file
M src/scripts/tlp-doc/package.json +1 −0 Go to diff View file
M src/scripts/tlp-doc/pnpm-lock.yaml +3 −0 Go to diff View file
M src/scripts/tlp-doc/src/editors.js +2 −9 Go to diff View file
A src/scripts/tlp-doc/src/modal.js +131 −0 Go to diff View file
M src/www/tlp-doc/resources/flyover/modals/open-target/example.html +1 −1 Go to diff View file
M src/www/tlp-doc/resources/flyover/modals/replace-placeholders/example.html +1 −1 Go to diff View file
M src/www/tlp-doc/resources/flyover/modals/types/example.html +6 −6 Go to diff View file
M src/www/tlp-doc/resources/flyover/modals/usage/doc.html +45 −7 Go to diff View file
M src/www/tlp-doc/resources/flyover/modals/usage/example.html +43 −16 Go to diff View file