[TASK] Streamline applying stylesheets in lit-element components
This change extracts dynamic stylesheets of web components that are attached to the light DOM to a corresponding static file in the directory `Build/Sources/Sass/element/` (it will be merged to `backend.css` during the build process). This change allows to get rid of the `window.litNonce` helper function that was introduced to allow CSP for dynamic styles. Besides that, the shadow DOM component `typo3-backend-spinner` now uses constructed stylesheets directly. In addition, the missing component names have been added to the global map. Resolves: #101744 Releases: main, 12.4 Change-Id: I7cf3cdc31d0ffe685897e48f000f18e9b5b5aca6 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80664 Tested-by:Benjamin Kott <benjamin.kott@outlook.com> Reviewed-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benjamin Kott <benjamin.kott@outlook.com> Tested-by:
Benjamin Franzke <ben@bnf.dev>
Showing
- Build/Sources/Sass/backend.scss 3 additions, 0 deletionsBuild/Sources/Sass/backend.scss
- Build/Sources/Sass/element/typo3-backend-draggable-resizable.scss 23 additions, 0 deletions...urces/Sass/element/typo3-backend-draggable-resizable.scss
- Build/Sources/Sass/element/typo3-backend-security-csp-reports.scss 68 additions, 0 deletions...rces/Sass/element/typo3-backend-security-csp-reports.scss
- Build/Sources/Sass/element/typo3-backend-security-sudo-mode.scss 7 additions, 0 deletions...ources/Sass/element/typo3-backend-security-sudo-mode.scss
- Build/Sources/Sass/element/typo3-backend-table-wizard.scss 3 additions, 0 deletionsBuild/Sources/Sass/element/typo3-backend-table-wizard.scss
- Build/Sources/TypeScript/backend/element/draggable-resizable-element.ts 0 additions, 14 deletions...TypeScript/backend/element/draggable-resizable-element.ts
- Build/Sources/TypeScript/backend/element/spinner-element.ts 9 additions, 11 deletionsBuild/Sources/TypeScript/backend/element/spinner-element.ts
- Build/Sources/TypeScript/backend/element/table-wizard-element.ts 1 addition, 6 deletions...ources/TypeScript/backend/element/table-wizard-element.ts
- Build/Sources/TypeScript/backend/security/element/csp-reports.ts 7 additions, 56 deletions...ources/TypeScript/backend/security/element/csp-reports.ts
- Build/Sources/TypeScript/backend/security/element/sudo-mode.ts 7 additions, 6 deletions.../Sources/TypeScript/backend/security/element/sudo-mode.ts
- Build/Sources/TypeScript/core/lit-helper.ts 1 addition, 0 deletionsBuild/Sources/TypeScript/core/lit-helper.ts
- typo3/sysext/backend/Resources/Public/Css/backend.css 46 additions, 0 deletionstypo3/sysext/backend/Resources/Public/Css/backend.css
- typo3/sysext/backend/Resources/Public/JavaScript/element/draggable-resizable-element.js 1 addition, 2 deletions.../Public/JavaScript/element/draggable-resizable-element.js
- typo3/sysext/backend/Resources/Public/JavaScript/element/spinner-element.js 5 additions, 11 deletions...nd/Resources/Public/JavaScript/element/spinner-element.js
- typo3/sysext/backend/Resources/Public/JavaScript/element/table-wizard-element.js 1 addition, 4 deletions...sources/Public/JavaScript/element/table-wizard-element.js
- typo3/sysext/backend/Resources/Public/JavaScript/security/element/csp-reports.js 2 additions, 56 deletions...sources/Public/JavaScript/security/element/csp-reports.js
- typo3/sysext/backend/Resources/Public/JavaScript/security/element/sudo-mode.js 1 addition, 5 deletions...Resources/Public/JavaScript/security/element/sudo-mode.js
Please register or sign in to comment