@covalent/components 10.4.0-beta.2 → 11.0.0-beta.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/_commonjsHelpers-DGT2Y9Xa.js +1 -0
- package/{_commonjsHelpers-HP5nalso.mjs → _commonjsHelpers-MdHo5S7N.mjs} +1 -1
- package/action-ribbon/action-ribbon-base.d.ts +0 -1
- package/action-ribbon/action-ribbon.d.ts +0 -1
- package/action-ribbon.js +5 -5
- package/action-ribbon.mjs +33 -33
- package/alert/alert-base.d.ts +0 -1
- package/alert/alert.d.ts +0 -1
- package/alert.js +5 -5
- package/alert.mjs +48 -48
- package/app-shell/app-shell.d.ts +0 -1
- package/app-shell.js +1 -1
- package/app-shell.mjs +7 -7
- package/async-directive-JqUnzsgG.mjs +66 -0
- package/async-directive-X7VhNdG3.js +5 -0
- package/badge/badge.d.ts +0 -1
- package/badge.js +1 -1
- package/badge.mjs +4 -4
- package/{base-element-5ZU-p99q.js → base-element-DP9GZic2.js} +1 -1
- package/{base-element-CzNmpVoz.mjs → base-element-DUJkJh_y.mjs} +1 -1
- package/button/button.d.ts +0 -1
- package/button.js +2 -2
- package/button.mjs +26 -26
- package/card/card-base.d.ts +0 -1
- package/card/card.d.ts +0 -1
- package/card.js +8 -8
- package/card.mjs +39 -39
- package/check-list-item.js +8 -8
- package/check-list-item.mjs +34 -34
- package/checkbox/checkbox.d.ts +0 -1
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/{chip-DmwMNZYy.js → chip-BjFvUMom.js} +44 -44
- package/{chip-tQfbvpbh.mjs → chip-Dc7_8pVI.mjs} +412 -408
- package/chip-set.js +5 -5
- package/chip-set.mjs +125 -125
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/chips/chip-base.d.ts +0 -1
- package/chips/chip-set-base.d.ts +0 -1
- package/chips/chip-set.d.ts +0 -1
- package/chips/chip.d.ts +0 -1
- package/circular-progress/circular-progress.d.ts +0 -1
- package/circular-progress.js +15 -15
- package/circular-progress.mjs +25 -25
- package/class-map-DPUylGZM.mjs +36 -0
- package/class-map-DTzB8z-1.js +5 -0
- package/code-editor/code-editor.d.ts +0 -1
- package/code-editor/code-editor.theme.d.ts +0 -1
- package/{code-editor-CryBkPGy.js → code-editor-Bu3qtyEg.js} +110 -110
- package/{code-editor-XU5DhFbC.mjs → code-editor-CPpojoPe.mjs} +5423 -5477
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet/code-snippet.d.ts +0 -1
- package/code-snippet.js +11 -11
- package/code-snippet.mjs +2611 -2641
- package/dialog/dialog.d.ts +0 -1
- package/{dialog-DMqDMT_N.js → dialog-BShWbhKq.js} +9 -9
- package/{dialog-BodJc4rc.mjs → dialog-CGLRIM8z.mjs} +186 -186
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/directive-C7oCP5Bh.js +5 -0
- package/directive-helpers-C-un5pST.js +5 -0
- package/directive-helpers-DS-VuBZD.mjs +11 -0
- package/{directive-B76A7YXI.mjs → directive-oAbCiebi.mjs} +4 -4
- package/drawer/drawer.d.ts +0 -1
- package/drawer.js +2 -2
- package/drawer.mjs +14 -14
- package/empty-state/empty-state.d.ts +0 -1
- package/empty-state.js +1 -1
- package/empty-state.mjs +6 -6
- package/{event-options-D44mpm5S.mjs → event-options-C7DvXRgq.mjs} +1 -1
- package/{event-options-IG-2g8HU.js → event-options-DD382x85.js} +1 -1
- package/expansion-panel/expansion-panel-item.d.ts +0 -1
- package/expansion-panel/expansion-panel.d.ts +0 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +3 -3
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +5 -5
- package/focused-page/focused-page.d.ts +0 -1
- package/focused-page.js +1 -1
- package/focused-page.mjs +7 -7
- package/form-element-BOhYShN_.mjs +50 -0
- package/form-element-BSAsNxWv.js +5 -0
- package/formfield/formfield.d.ts +0 -1
- package/formfield.js +7 -7
- package/formfield.mjs +45 -45
- package/{foundation-BYhAXCW_.mjs → foundation-CZtT3AWn.mjs} +15 -17
- package/{foundation-sIsx2I_x.js → foundation-CySCCTUE.js} +2 -2
- package/{foundation-D6JHa7Lg.mjs → foundation-PL3XY-m_.mjs} +4 -4
- package/{foundation-aT_gy6X8.js → foundation-pgmPu2iJ.js} +1 -1
- package/full-screen-dialog/full-screen-dialog.d.ts +0 -1
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +10 -10
- package/{html-DW6Y8eLM.mjs → html-DC72jQvb.mjs} +1 -1
- package/{html-CEiNqoVv.js → html-wWghN8cA.js} +1 -1
- package/icon/_icon-list.d.ts +0 -1
- package/icon/icon-demo.d.ts +0 -1
- package/icon/icon.d.ts +0 -1
- package/icon-button/icon-button.d.ts +0 -1
- package/icon-button-toggle/icon-button-toggle.d.ts +0 -1
- package/icon-button-toggle.js +6 -6
- package/icon-button-toggle.mjs +32 -32
- package/icon-button.js +5 -5
- package/icon-button.mjs +36 -36
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -7
- package/icon-checkbox/icon-check-toggle.d.ts +0 -1
- package/icon-lockup/icon-lockup.d.ts +0 -1
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +4 -4
- package/icon-radio/icon-radio-toggle.d.ts +0 -1
- package/icon-radio-toggle.js +1 -1
- package/icon-radio-toggle.mjs +13 -13
- package/icon.js +1 -1
- package/icon.mjs +13 -13
- package/{if-defined-B7G84qob.js → if-defined-CZCqOAYs.js} +1 -1
- package/{if-defined-DN7whKwy.mjs → if-defined-DGrxuPYz.mjs} +1 -1
- package/index.d.ts +0 -1
- package/index.js +7 -7
- package/index.mjs +121 -121
- package/inert.esm-CknhJysw.mjs +645 -0
- package/inert.esm-D2PJKL9E.js +28 -0
- package/{javascript-DzJ0FiwJ.mjs → javascript-C_a5TwhW.mjs} +1 -1
- package/{javascript-vVCDG6Rm.js → javascript-cY8cX08V.js} +1 -1
- package/linear-progress/linear-progress.d.ts +0 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +32 -32
- package/list/check-list-item.d.ts +0 -1
- package/list/list-item.d.ts +0 -1
- package/list/list.d.ts +0 -1
- package/list/nav-list-item.d.ts +0 -1
- package/list/radio-list-item.d.ts +0 -1
- package/{list-item-BIuZJQpK.mjs → list-item-CK66f3gK.mjs} +1 -1
- package/{list-item-V8RaZO6L.js → list-item-LcvIn8Xz.js} +1 -1
- package/list-item.js +7 -7
- package/list-item.mjs +21 -21
- package/list.js +3 -3
- package/list.mjs +16 -16
- package/menu/menu.d.ts +0 -1
- package/menu.js +3 -3
- package/menu.mjs +16 -16
- package/{mwc-checkbox.css-CNoj0V14.mjs → mwc-checkbox.css-BrjbMwch.mjs} +28 -28
- package/{mwc-checkbox.css-BV3dyB4C.js → mwc-checkbox.css-u49MHsHT.js} +1 -1
- package/{mwc-drawer-base-BIn51sQu.js → mwc-drawer-base-C2YS_KZk.js} +3 -3
- package/{mwc-drawer-base-C96HTnbC.mjs → mwc-drawer-base-_d7xArWM.mjs} +11 -11
- package/{mwc-icon-Xgr698ax.js → mwc-icon-BUzuM0iB.js} +1 -1
- package/{mwc-icon-DTCUplqR.mjs → mwc-icon-U80igLyY.mjs} +2 -2
- package/{mwc-icon-button.css-DOVWWyjA.js → mwc-icon-button.css-BzElD_JI.js} +1 -1
- package/{mwc-icon-button.css-DJiDOS0_.mjs → mwc-icon-button.css-DosQIdlt.mjs} +1 -1
- package/{mwc-line-ripple-directive-r80jluoU.js → mwc-line-ripple-directive-DBy5sTfo.js} +4 -4
- package/{mwc-line-ripple-directive-TO37-41n.mjs → mwc-line-ripple-directive-at_ngzOj.mjs} +35 -34
- package/{mwc-list-item.css-CO1JlA8e.js → mwc-list-item.css-Bib8TVz5.js} +10 -10
- package/{mwc-list-item.css-Cg9onxQ-.mjs → mwc-list-item.css-BtGzAhUF.mjs} +10 -10
- package/{mwc-list.css-C_-DVEme.mjs → mwc-list.css-BBbQixrF.mjs} +100 -100
- package/{mwc-list.css-Deg9oBaO.js → mwc-list.css-DWV8pw-x.js} +1 -1
- package/{mwc-menu.css-qpZxKN-g.mjs → mwc-menu.css-BUjxqJjM.mjs} +303 -303
- package/{mwc-menu.css-Dvr-f3_T.js → mwc-menu.css-D3EFugOg.js} +18 -18
- package/{mwc-radio.css-DjO4Rn44.js → mwc-radio.css-BWiWreTh.js} +1 -1
- package/{mwc-radio.css-BiHC1R8I.mjs → mwc-radio.css-DPbyzNg_.mjs} +8 -8
- package/{mwc-slider.css-Deh1__Ar.mjs → mwc-slider.css-CBNgYCJf.mjs} +277 -288
- package/{mwc-slider.css-DFOaS04S.js → mwc-slider.css-DytByuJk.js} +13 -13
- package/{mwc-tab.css-sq5suZKe.js → mwc-tab.css-CrjUDOft.js} +11 -11
- package/{mwc-tab.css-2UrPKkNg.mjs → mwc-tab.css-DJHVL7wZ.mjs} +31 -31
- package/{mwc-top-app-bar-base-DUdOcIjS.js → mwc-top-app-bar-base-Gxaye-WD.js} +3 -3
- package/{mwc-top-app-bar-base-BIZGhVtM.mjs → mwc-top-app-bar-base-N3OLLWe5.mjs} +21 -21
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +13 -13
- package/notebook-cell/notebook-cell.d.ts +0 -1
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +23 -23
- package/package.json +3 -3
- package/{property-BRKnMYJe.js → property-DYTC_2-m.js} +1 -1
- package/{python-CddQNZH2.mjs → python-3XbrQbry.mjs} +1 -1
- package/{python-DnfGbG5q.js → python-C-jtMxm_.js} +1 -1
- package/query-CDOd1Kwm.mjs +15 -0
- package/query-Dv2F3m_t.js +5 -0
- package/query-assigned-elements-8EurZY45.js +31 -0
- package/query-assigned-elements-D930kELM.mjs +591 -0
- package/query-assigned-nodes-BAfLwxmx.js +5 -0
- package/query-assigned-nodes-Dof2CSLU.mjs +17 -0
- package/radio/radio.d.ts +0 -1
- package/radio-list-item.js +9 -9
- package/radio-list-item.mjs +28 -28
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-BDmOLx8c.js → ripple-handlers-C7an-EE1.js} +5 -5
- package/{ripple-handlers-BAdg-fJB.mjs → ripple-handlers-_gEIkKpx.mjs} +71 -71
- package/select/select.d.ts +0 -1
- package/select.js +15 -15
- package/select.mjs +166 -167
- package/side-sheet/side-sheet.d.ts +0 -1
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider/slider-range.d.ts +0 -1
- package/slider/slider.d.ts +0 -1
- package/slider-range.js +5 -5
- package/slider-range.mjs +43 -43
- package/slider.js +2 -2
- package/slider.mjs +19 -19
- package/snackbar/snackbar.d.ts +0 -1
- package/snackbar.js +11 -11
- package/snackbar.mjs +54 -54
- package/{state-Csv4sdJA.js → state-C3HoXfoa.js} +1 -1
- package/status-dialog/status-dialog.d.ts +0 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +6 -6
- package/status-header/status-header-base.d.ts +0 -1
- package/status-header/status-header-item.d.ts +0 -1
- package/status-header/status-header.d.ts +0 -1
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +17 -17
- package/status-header.js +5 -5
- package/status-header.mjs +34 -34
- package/style-map-D2TR7M-D.mjs +42 -0
- package/style-map-DOMuf9Fg.js +5 -0
- package/switch/switch.d.ts +0 -1
- package/switch.js +5 -5
- package/switch.mjs +42 -42
- package/tab/tab-bar.d.ts +0 -1
- package/tab/tab.d.ts +0 -1
- package/tab-bar.js +11 -11
- package/tab-bar.mjs +98 -98
- package/tab.js +1 -1
- package/tab.mjs +13 -13
- package/text-lockup/text-lockup.d.ts +0 -1
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +9 -9
- package/textarea/textarea.d.ts +0 -1
- package/textarea.js +6 -6
- package/textarea.mjs +29 -29
- package/textfield/textfield.d.ts +0 -1
- package/{textfield-bHWjhOOq.js → textfield-Byf2gP_G.js} +31 -31
- package/{textfield-i_Whj47J.mjs → textfield-RbQ6Kwq7.mjs} +102 -102
- package/textfield.js +3 -3
- package/textfield.mjs +17 -17
- package/theme/prebuilt/dark-theme.css +1 -1
- package/theme/prebuilt/light-theme.css +1 -1
- package/toolbar/toolbar.d.ts +0 -1
- package/toolbar.js +1 -1
- package/toolbar.mjs +4 -4
- package/tooltip/tooltip.d.ts +0 -1
- package/tooltip.js +3 -3
- package/tooltip.mjs +54 -55
- package/top-app-bar/top-app-bar-fixed.d.ts +0 -1
- package/top-app-bar/top-app-bar.d.ts +0 -1
- package/{top-app-bar-CZ5ILmAf.mjs → top-app-bar-BQ88Rom5.mjs} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +40 -40
- package/{top-app-bar-UVbXY1md.js → top-app-bar-lbNkmJbQ.js} +1 -1
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +18 -18
- package/tree-list/tree-list-item.d.ts +0 -1
- package/tree-list/tree-list.d.ts +0 -1
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -4
- package/tree-list.js +4 -4
- package/tree-list.mjs +22 -22
- package/tslib.es6-CJ7TUrOc.mjs +75 -0
- package/{typescript-BRw9OFm1.js → typescript-CNfpftAV.js} +1 -1
- package/{typescript-CdlgcZ3y.mjs → typescript-Dj6mne2e.mjs} +1 -1
- package/typography/typography.d.ts +0 -1
- package/typography.js +1 -1
- package/typography.mjs +3 -3
- package/_commonjsHelpers-6jR-N8xe.js +0 -1
- package/action-ribbon/action-ribbon-base.d.ts.map +0 -1
- package/action-ribbon/action-ribbon.d.ts.map +0 -1
- package/alert/alert-base.d.ts.map +0 -1
- package/alert/alert.d.ts.map +0 -1
- package/app-shell/app-shell.d.ts.map +0 -1
- package/async-directive-2AOdKBUW.mjs +0 -66
- package/async-directive-DZ3MjSIj.js +0 -5
- package/badge/badge.d.ts.map +0 -1
- package/button/button.d.ts.map +0 -1
- package/card/card-base.d.ts.map +0 -1
- package/card/card.d.ts.map +0 -1
- package/checkbox/checkbox.d.ts.map +0 -1
- package/chips/chip-base.d.ts.map +0 -1
- package/chips/chip-set-base.d.ts.map +0 -1
- package/chips/chip-set.d.ts.map +0 -1
- package/chips/chip.d.ts.map +0 -1
- package/circular-progress/circular-progress.d.ts.map +0 -1
- package/class-map-BHl5MHd7.mjs +0 -36
- package/class-map-PsUYVqvf.js +0 -5
- package/code-editor/code-editor.d.ts.map +0 -1
- package/code-editor/code-editor.theme.d.ts.map +0 -1
- package/code-snippet/code-snippet.d.ts.map +0 -1
- package/dialog/dialog.d.ts.map +0 -1
- package/directive-C_VV3qwo.js +0 -5
- package/directive-helpers-6HCt_-zj.mjs +0 -11
- package/directive-helpers-BnUMbYHh.js +0 -5
- package/drawer/drawer.d.ts.map +0 -1
- package/empty-state/empty-state.d.ts.map +0 -1
- package/expansion-panel/expansion-panel-item.d.ts.map +0 -1
- package/expansion-panel/expansion-panel.d.ts.map +0 -1
- package/focused-page/focused-page.d.ts.map +0 -1
- package/form-element--PS8uSRI.js +0 -5
- package/form-element-Dn0Lerng.mjs +0 -50
- package/formfield/formfield.d.ts.map +0 -1
- package/full-screen-dialog/full-screen-dialog.d.ts.map +0 -1
- package/icon/_icon-list.d.ts.map +0 -1
- package/icon/icon-demo.d.ts.map +0 -1
- package/icon/icon.d.ts.map +0 -1
- package/icon-button/icon-button.d.ts.map +0 -1
- package/icon-button-toggle/icon-button-toggle.d.ts.map +0 -1
- package/icon-checkbox/icon-check-toggle.d.ts.map +0 -1
- package/icon-lockup/icon-lockup.d.ts.map +0 -1
- package/icon-radio/icon-radio-toggle.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/inert.esm-C8R-X3j4.mjs +0 -639
- package/inert.esm-t-228rpY.js +0 -28
- package/linear-progress/linear-progress.d.ts.map +0 -1
- package/list/check-list-item.d.ts.map +0 -1
- package/list/list-item.d.ts.map +0 -1
- package/list/list.d.ts.map +0 -1
- package/list/nav-list-item.d.ts.map +0 -1
- package/list/radio-list-item.d.ts.map +0 -1
- package/menu/menu.d.ts.map +0 -1
- package/notebook-cell/notebook-cell.d.ts.map +0 -1
- package/query-BvlE-gMJ.js +0 -5
- package/query-DSO61t36.mjs +0 -15
- package/query-assigned-elements-BQszEgac.js +0 -31
- package/query-assigned-elements-DhyCP_2z.mjs +0 -591
- package/query-assigned-nodes-9DFnkxV8.js +0 -5
- package/query-assigned-nodes-B-jCihdA.mjs +0 -17
- package/radio/radio.d.ts.map +0 -1
- package/select/select.d.ts.map +0 -1
- package/side-sheet/side-sheet.d.ts.map +0 -1
- package/slider/slider-range.d.ts.map +0 -1
- package/slider/slider.d.ts.map +0 -1
- package/snackbar/snackbar.d.ts.map +0 -1
- package/status-dialog/status-dialog.d.ts.map +0 -1
- package/status-header/status-header-base.d.ts.map +0 -1
- package/status-header/status-header-item.d.ts.map +0 -1
- package/status-header/status-header.d.ts.map +0 -1
- package/style-map-3QfsA_1O.js +0 -5
- package/style-map-QxIETvrs.mjs +0 -42
- package/switch/switch.d.ts.map +0 -1
- package/tab/tab-bar.d.ts.map +0 -1
- package/tab/tab.d.ts.map +0 -1
- package/text-lockup/text-lockup.d.ts.map +0 -1
- package/textarea/textarea.d.ts.map +0 -1
- package/textfield/textfield.d.ts.map +0 -1
- package/theme/prebuilt/dark-theme.css.map +0 -1
- package/theme/prebuilt/light-theme.css.map +0 -1
- package/toolbar/toolbar.d.ts.map +0 -1
- package/tooltip/tooltip.d.ts.map +0 -1
- package/top-app-bar/top-app-bar-fixed.d.ts.map +0 -1
- package/top-app-bar/top-app-bar.d.ts.map +0 -1
- package/tree-list/tree-list-item.d.ts.map +0 -1
- package/tree-list/tree-list.d.ts.map +0 -1
- package/tslib.es6-CISSdiiH.mjs +0 -75
- package/typography/typography.d.ts.map +0 -1
- /package/{style.css → covalent.css} +0 -0
package/inert.esm-C8R-X3j4.mjs
DELETED
@@ -1,639 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2016 Google Inc. All rights reserved.
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
(() => {
|
18
|
-
var E, m, N;
|
19
|
-
const l = Symbol(), g = Symbol(), I = Symbol(), v = Symbol(), S = Symbol(), T = Symbol(), u = Symbol(), t = Symbol(), e = Symbol(), i = Symbol(), r = Symbol(), a = Symbol(), c = Symbol();
|
20
|
-
class _ {
|
21
|
-
constructor() {
|
22
|
-
this[E] = [], this[m] = [], this[N] = /* @__PURE__ */ new Set();
|
23
|
-
}
|
24
|
-
destructor() {
|
25
|
-
this[e](this[I]);
|
26
|
-
const n = this;
|
27
|
-
n[l] = null, n[I] = null, n[g] = null;
|
28
|
-
}
|
29
|
-
get top() {
|
30
|
-
const n = this[l];
|
31
|
-
return n[n.length - 1] || null;
|
32
|
-
}
|
33
|
-
push(n) {
|
34
|
-
!n || n === this.top || (this.remove(n), this[T](n), this[l].push(n));
|
35
|
-
}
|
36
|
-
remove(n) {
|
37
|
-
const o = this[l].indexOf(n);
|
38
|
-
return o === -1 ? !1 : (this[l].splice(o, 1), o === this[l].length && this[T](this.top), !0);
|
39
|
-
}
|
40
|
-
pop() {
|
41
|
-
const n = this.top;
|
42
|
-
return n && this.remove(n), n;
|
43
|
-
}
|
44
|
-
has(n) {
|
45
|
-
return this[l].indexOf(n) !== -1;
|
46
|
-
}
|
47
|
-
/**
|
48
|
-
* Sets `inert` to all document elements except the new top element, its
|
49
|
-
* parents, and its distributed content.
|
50
|
-
*/
|
51
|
-
[(E = l, m = I, N = g, T)](n) {
|
52
|
-
const o = this[g], s = this[I];
|
53
|
-
if (!n) {
|
54
|
-
this[e](s), o.clear(), this[I] = [];
|
55
|
-
return;
|
56
|
-
}
|
57
|
-
const d = this[i](n);
|
58
|
-
if (d[d.length - 1].parentNode !== document.body)
|
59
|
-
throw Error("Non-connected element cannot be a blocking element");
|
60
|
-
this[I] = d;
|
61
|
-
const b = this[r](n);
|
62
|
-
if (!s.length) {
|
63
|
-
this[t](d, b, o);
|
64
|
-
return;
|
65
|
-
}
|
66
|
-
let f = s.length - 1, h = d.length - 1;
|
67
|
-
for (; f > 0 && h > 0 && s[f] === d[h]; )
|
68
|
-
f--, h--;
|
69
|
-
s[f] !== d[h] && this[u](s[f], d[h]), f > 0 && this[e](s.slice(0, f)), h > 0 && this[t](d.slice(0, h), b, null);
|
70
|
-
}
|
71
|
-
/**
|
72
|
-
* Swaps inertness between two sibling elements.
|
73
|
-
* Sets the property `inert` over the attribute since the inert spec
|
74
|
-
* doesn't specify if it should be reflected.
|
75
|
-
* https://html.spec.whatwg.org/multipage/interaction.html#inert
|
76
|
-
*/
|
77
|
-
[u](n, o) {
|
78
|
-
const s = n[v];
|
79
|
-
this[a](n) && !n.inert && (n.inert = !0, s.add(n)), s.has(o) && (o.inert = !1, s.delete(o)), o[S] = n[S], o[v] = s, n[S] = void 0, n[v] = void 0;
|
80
|
-
}
|
81
|
-
/**
|
82
|
-
* Restores original inertness to the siblings of the elements.
|
83
|
-
* Sets the property `inert` over the attribute since the inert spec
|
84
|
-
* doesn't specify if it should be reflected.
|
85
|
-
* https://html.spec.whatwg.org/multipage/interaction.html#inert
|
86
|
-
*/
|
87
|
-
[e](n) {
|
88
|
-
for (const o of n) {
|
89
|
-
o[S].disconnect(), o[S] = void 0;
|
90
|
-
const d = o[v];
|
91
|
-
for (const b of d)
|
92
|
-
b.inert = !1;
|
93
|
-
o[v] = void 0;
|
94
|
-
}
|
95
|
-
}
|
96
|
-
/**
|
97
|
-
* Inerts the siblings of the elements except the elements to skip. Stores
|
98
|
-
* the inerted siblings into the element's symbol `_siblingsToRestore`.
|
99
|
-
* Pass `toKeepInert` to collect the already inert elements.
|
100
|
-
* Sets the property `inert` over the attribute since the inert spec
|
101
|
-
* doesn't specify if it should be reflected.
|
102
|
-
* https://html.spec.whatwg.org/multipage/interaction.html#inert
|
103
|
-
*/
|
104
|
-
[t](n, o, s) {
|
105
|
-
for (const d of n) {
|
106
|
-
const b = d.parentNode, f = b.children, h = /* @__PURE__ */ new Set();
|
107
|
-
for (let R = 0; R < f.length; R++) {
|
108
|
-
const M = f[R];
|
109
|
-
M === d || !this[a](M) || o && o.has(M) || (s && M.inert ? s.add(M) : (M.inert = !0, h.add(M)));
|
110
|
-
}
|
111
|
-
d[v] = h;
|
112
|
-
const k = new MutationObserver(this[c].bind(this));
|
113
|
-
d[S] = k;
|
114
|
-
let p = b;
|
115
|
-
const y = p;
|
116
|
-
y.__shady && y.host && (p = y.host), k.observe(p, {
|
117
|
-
childList: !0
|
118
|
-
});
|
119
|
-
}
|
120
|
-
}
|
121
|
-
/**
|
122
|
-
* Handles newly added/removed nodes by toggling their inertness.
|
123
|
-
* It also checks if the current top Blocking Element has been removed,
|
124
|
-
* notifying and removing it.
|
125
|
-
*/
|
126
|
-
[c](n) {
|
127
|
-
const o = this[I], s = this[g];
|
128
|
-
for (const d of n) {
|
129
|
-
const b = d.target.host || d.target, f = b === document.body ? o.length : o.indexOf(b), h = o[f - 1], k = h[v];
|
130
|
-
for (let p = 0; p < d.removedNodes.length; p++) {
|
131
|
-
const y = d.removedNodes[p];
|
132
|
-
if (y === h) {
|
133
|
-
console.info("Detected removal of the top Blocking Element."), this.pop();
|
134
|
-
return;
|
135
|
-
}
|
136
|
-
k.has(y) && (y.inert = !1, k.delete(y));
|
137
|
-
}
|
138
|
-
for (let p = 0; p < d.addedNodes.length; p++) {
|
139
|
-
const y = d.addedNodes[p];
|
140
|
-
this[a](y) && (s && y.inert ? s.add(y) : (y.inert = !0, k.add(y)));
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|
144
|
-
/**
|
145
|
-
* Returns if the element is inertable.
|
146
|
-
*/
|
147
|
-
[a](n) {
|
148
|
-
return /^(style|template|script)$/.test(n.localName) === !1;
|
149
|
-
}
|
150
|
-
/**
|
151
|
-
* Returns the list of newParents of an element, starting from element
|
152
|
-
* (included) up to `document.body` (excluded).
|
153
|
-
*/
|
154
|
-
[i](n) {
|
155
|
-
const o = [];
|
156
|
-
let s = n;
|
157
|
-
for (; s && s !== document.body; ) {
|
158
|
-
if (s.nodeType === Node.ELEMENT_NODE && o.push(s), s.assignedSlot) {
|
159
|
-
for (; s = s.assignedSlot; )
|
160
|
-
o.push(s);
|
161
|
-
s = o.pop();
|
162
|
-
continue;
|
163
|
-
}
|
164
|
-
s = s.parentNode || s.host;
|
165
|
-
}
|
166
|
-
return o;
|
167
|
-
}
|
168
|
-
/**
|
169
|
-
* Returns the distributed children of the element's shadow root.
|
170
|
-
* Returns null if the element doesn't have a shadow root.
|
171
|
-
*/
|
172
|
-
[r](n) {
|
173
|
-
const o = n.shadowRoot;
|
174
|
-
if (!o)
|
175
|
-
return null;
|
176
|
-
const s = /* @__PURE__ */ new Set();
|
177
|
-
let d, b, f;
|
178
|
-
const h = o.querySelectorAll("slot");
|
179
|
-
if (h.length && h[0].assignedNodes)
|
180
|
-
for (d = 0; d < h.length; d++)
|
181
|
-
for (f = h[d].assignedNodes({
|
182
|
-
flatten: !0
|
183
|
-
}), b = 0; b < f.length; b++)
|
184
|
-
f[b].nodeType === Node.ELEMENT_NODE && s.add(f[b]);
|
185
|
-
return s;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
document.$blockingElements = new _();
|
189
|
-
})();
|
190
|
-
var A = /* @__PURE__ */ function() {
|
191
|
-
function E(m, N) {
|
192
|
-
for (var l = 0; l < N.length; l++) {
|
193
|
-
var g = N[l];
|
194
|
-
g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(m, g.key, g);
|
195
|
-
}
|
196
|
-
}
|
197
|
-
return function(m, N, l) {
|
198
|
-
return N && E(m.prototype, N), l && E(m, l), m;
|
199
|
-
};
|
200
|
-
}();
|
201
|
-
function x(E, m) {
|
202
|
-
if (!(E instanceof m))
|
203
|
-
throw new TypeError("Cannot call a class as a function");
|
204
|
-
}
|
205
|
-
(function() {
|
206
|
-
if (typeof window > "u" || typeof Element > "u")
|
207
|
-
return;
|
208
|
-
var E = Array.prototype.slice, m = Element.prototype.matches || Element.prototype.msMatchesSelector, N = ["a[href]", "area[href]", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])", "button:not([disabled])", "details", "summary", "iframe", "object", "embed", "video", "[contenteditable]"].join(","), l = function() {
|
209
|
-
function u(t, e) {
|
210
|
-
x(this, u), this._inertManager = e, this._rootElement = t, this._managedNodes = /* @__PURE__ */ new Set(), this._rootElement.hasAttribute("aria-hidden") ? this._savedAriaHidden = this._rootElement.getAttribute("aria-hidden") : this._savedAriaHidden = null, this._rootElement.setAttribute("aria-hidden", "true"), this._makeSubtreeUnfocusable(this._rootElement), this._observer = new MutationObserver(this._onMutation.bind(this)), this._observer.observe(this._rootElement, { attributes: !0, childList: !0, subtree: !0 });
|
211
|
-
}
|
212
|
-
return A(u, [{
|
213
|
-
key: "destructor",
|
214
|
-
value: function() {
|
215
|
-
this._observer.disconnect(), this._rootElement && (this._savedAriaHidden !== null ? this._rootElement.setAttribute("aria-hidden", this._savedAriaHidden) : this._rootElement.removeAttribute("aria-hidden")), this._managedNodes.forEach(function(e) {
|
216
|
-
this._unmanageNode(e.node);
|
217
|
-
}, this), this._observer = /** @type {?} */
|
218
|
-
null, this._rootElement = /** @type {?} */
|
219
|
-
null, this._managedNodes = /** @type {?} */
|
220
|
-
null, this._inertManager = /** @type {?} */
|
221
|
-
null;
|
222
|
-
}
|
223
|
-
/**
|
224
|
-
* @return {!Set<!InertNode>} A copy of this InertRoot's managed nodes set.
|
225
|
-
*/
|
226
|
-
}, {
|
227
|
-
key: "_makeSubtreeUnfocusable",
|
228
|
-
/**
|
229
|
-
* @param {!Node} startNode
|
230
|
-
*/
|
231
|
-
value: function(e) {
|
232
|
-
var i = this;
|
233
|
-
v(e, function(_) {
|
234
|
-
return i._visitNode(_);
|
235
|
-
});
|
236
|
-
var r = document.activeElement;
|
237
|
-
if (!document.body.contains(e)) {
|
238
|
-
for (var a = e, c = void 0; a; ) {
|
239
|
-
if (a.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
240
|
-
c = /** @type {!ShadowRoot} */
|
241
|
-
a;
|
242
|
-
break;
|
243
|
-
}
|
244
|
-
a = a.parentNode;
|
245
|
-
}
|
246
|
-
c && (r = c.activeElement);
|
247
|
-
}
|
248
|
-
e.contains(r) && (r.blur(), r === document.activeElement && document.body.focus());
|
249
|
-
}
|
250
|
-
/**
|
251
|
-
* @param {!Node} node
|
252
|
-
*/
|
253
|
-
}, {
|
254
|
-
key: "_visitNode",
|
255
|
-
value: function(e) {
|
256
|
-
if (e.nodeType === Node.ELEMENT_NODE) {
|
257
|
-
var i = (
|
258
|
-
/** @type {!HTMLElement} */
|
259
|
-
e
|
260
|
-
);
|
261
|
-
i !== this._rootElement && i.hasAttribute("inert") && this._adoptInertRoot(i), (m.call(i, N) || i.hasAttribute("tabindex")) && this._manageNode(i);
|
262
|
-
}
|
263
|
-
}
|
264
|
-
/**
|
265
|
-
* Register the given node with this InertRoot and with InertManager.
|
266
|
-
* @param {!Node} node
|
267
|
-
*/
|
268
|
-
}, {
|
269
|
-
key: "_manageNode",
|
270
|
-
value: function(e) {
|
271
|
-
var i = this._inertManager.register(e, this);
|
272
|
-
this._managedNodes.add(i);
|
273
|
-
}
|
274
|
-
/**
|
275
|
-
* Unregister the given node with this InertRoot and with InertManager.
|
276
|
-
* @param {!Node} node
|
277
|
-
*/
|
278
|
-
}, {
|
279
|
-
key: "_unmanageNode",
|
280
|
-
value: function(e) {
|
281
|
-
var i = this._inertManager.deregister(e, this);
|
282
|
-
i && this._managedNodes.delete(i);
|
283
|
-
}
|
284
|
-
/**
|
285
|
-
* Unregister the entire subtree starting at `startNode`.
|
286
|
-
* @param {!Node} startNode
|
287
|
-
*/
|
288
|
-
}, {
|
289
|
-
key: "_unmanageSubtree",
|
290
|
-
value: function(e) {
|
291
|
-
var i = this;
|
292
|
-
v(e, function(r) {
|
293
|
-
return i._unmanageNode(r);
|
294
|
-
});
|
295
|
-
}
|
296
|
-
/**
|
297
|
-
* If a descendant node is found with an `inert` attribute, adopt its managed nodes.
|
298
|
-
* @param {!HTMLElement} node
|
299
|
-
*/
|
300
|
-
}, {
|
301
|
-
key: "_adoptInertRoot",
|
302
|
-
value: function(e) {
|
303
|
-
var i = this._inertManager.getInertRoot(e);
|
304
|
-
i || (this._inertManager.setInert(e, !0), i = this._inertManager.getInertRoot(e)), i.managedNodes.forEach(function(r) {
|
305
|
-
this._manageNode(r.node);
|
306
|
-
}, this);
|
307
|
-
}
|
308
|
-
/**
|
309
|
-
* Callback used when mutation observer detects subtree additions, removals, or attribute changes.
|
310
|
-
* @param {!Array<!MutationRecord>} records
|
311
|
-
* @param {!MutationObserver} self
|
312
|
-
*/
|
313
|
-
}, {
|
314
|
-
key: "_onMutation",
|
315
|
-
value: function(e, i) {
|
316
|
-
e.forEach(function(r) {
|
317
|
-
var a = (
|
318
|
-
/** @type {!HTMLElement} */
|
319
|
-
r.target
|
320
|
-
);
|
321
|
-
if (r.type === "childList")
|
322
|
-
E.call(r.addedNodes).forEach(function(_) {
|
323
|
-
this._makeSubtreeUnfocusable(_);
|
324
|
-
}, this), E.call(r.removedNodes).forEach(function(_) {
|
325
|
-
this._unmanageSubtree(_);
|
326
|
-
}, this);
|
327
|
-
else if (r.type === "attributes") {
|
328
|
-
if (r.attributeName === "tabindex")
|
329
|
-
this._manageNode(a);
|
330
|
-
else if (a !== this._rootElement && r.attributeName === "inert" && a.hasAttribute("inert")) {
|
331
|
-
this._adoptInertRoot(a);
|
332
|
-
var c = this._inertManager.getInertRoot(a);
|
333
|
-
this._managedNodes.forEach(function(_) {
|
334
|
-
a.contains(_.node) && c._manageNode(_.node);
|
335
|
-
});
|
336
|
-
}
|
337
|
-
}
|
338
|
-
}, this);
|
339
|
-
}
|
340
|
-
}, {
|
341
|
-
key: "managedNodes",
|
342
|
-
get: function() {
|
343
|
-
return new Set(this._managedNodes);
|
344
|
-
}
|
345
|
-
/** @return {boolean} */
|
346
|
-
}, {
|
347
|
-
key: "hasSavedAriaHidden",
|
348
|
-
get: function() {
|
349
|
-
return this._savedAriaHidden !== null;
|
350
|
-
}
|
351
|
-
/** @param {?string} ariaHidden */
|
352
|
-
}, {
|
353
|
-
key: "savedAriaHidden",
|
354
|
-
set: function(e) {
|
355
|
-
this._savedAriaHidden = e;
|
356
|
-
},
|
357
|
-
get: function() {
|
358
|
-
return this._savedAriaHidden;
|
359
|
-
}
|
360
|
-
}]), u;
|
361
|
-
}(), g = function() {
|
362
|
-
function u(t, e) {
|
363
|
-
x(this, u), this._node = t, this._overrodeFocusMethod = !1, this._inertRoots = /* @__PURE__ */ new Set([e]), this._savedTabIndex = null, this._destroyed = !1, this.ensureUntabbable();
|
364
|
-
}
|
365
|
-
return A(u, [{
|
366
|
-
key: "destructor",
|
367
|
-
value: function() {
|
368
|
-
if (this._throwIfDestroyed(), this._node && this._node.nodeType === Node.ELEMENT_NODE) {
|
369
|
-
var e = (
|
370
|
-
/** @type {!HTMLElement} */
|
371
|
-
this._node
|
372
|
-
);
|
373
|
-
this._savedTabIndex !== null ? e.setAttribute("tabindex", this._savedTabIndex) : e.removeAttribute("tabindex"), this._overrodeFocusMethod && delete e.focus;
|
374
|
-
}
|
375
|
-
this._node = /** @type {?} */
|
376
|
-
null, this._inertRoots = /** @type {?} */
|
377
|
-
null, this._destroyed = !0;
|
378
|
-
}
|
379
|
-
/**
|
380
|
-
* @type {boolean} Whether this object is obsolete because the managed node is no longer inert.
|
381
|
-
* If the object has been destroyed, any attempt to access it will cause an exception.
|
382
|
-
*/
|
383
|
-
}, {
|
384
|
-
key: "_throwIfDestroyed",
|
385
|
-
/**
|
386
|
-
* Throw if user tries to access destroyed InertNode.
|
387
|
-
*/
|
388
|
-
value: function() {
|
389
|
-
if (this.destroyed)
|
390
|
-
throw new Error("Trying to access destroyed InertNode");
|
391
|
-
}
|
392
|
-
/** @return {boolean} */
|
393
|
-
}, {
|
394
|
-
key: "ensureUntabbable",
|
395
|
-
/** Save the existing tabindex value and make the node untabbable and unfocusable */
|
396
|
-
value: function() {
|
397
|
-
if (this.node.nodeType === Node.ELEMENT_NODE) {
|
398
|
-
var e = (
|
399
|
-
/** @type {!HTMLElement} */
|
400
|
-
this.node
|
401
|
-
);
|
402
|
-
if (m.call(e, N)) {
|
403
|
-
if (
|
404
|
-
/** @type {!HTMLElement} */
|
405
|
-
e.tabIndex === -1 && this.hasSavedTabIndex
|
406
|
-
)
|
407
|
-
return;
|
408
|
-
e.hasAttribute("tabindex") && (this._savedTabIndex = /** @type {!HTMLElement} */
|
409
|
-
e.tabIndex), e.setAttribute("tabindex", "-1"), e.nodeType === Node.ELEMENT_NODE && (e.focus = function() {
|
410
|
-
}, this._overrodeFocusMethod = !0);
|
411
|
-
} else e.hasAttribute("tabindex") && (this._savedTabIndex = /** @type {!HTMLElement} */
|
412
|
-
e.tabIndex, e.removeAttribute("tabindex"));
|
413
|
-
}
|
414
|
-
}
|
415
|
-
/**
|
416
|
-
* Add another inert root to this inert node's set of managing inert roots.
|
417
|
-
* @param {!InertRoot} inertRoot
|
418
|
-
*/
|
419
|
-
}, {
|
420
|
-
key: "addInertRoot",
|
421
|
-
value: function(e) {
|
422
|
-
this._throwIfDestroyed(), this._inertRoots.add(e);
|
423
|
-
}
|
424
|
-
/**
|
425
|
-
* Remove the given inert root from this inert node's set of managing inert roots.
|
426
|
-
* If the set of managing inert roots becomes empty, this node is no longer inert,
|
427
|
-
* so the object should be destroyed.
|
428
|
-
* @param {!InertRoot} inertRoot
|
429
|
-
*/
|
430
|
-
}, {
|
431
|
-
key: "removeInertRoot",
|
432
|
-
value: function(e) {
|
433
|
-
this._throwIfDestroyed(), this._inertRoots.delete(e), this._inertRoots.size === 0 && this.destructor();
|
434
|
-
}
|
435
|
-
}, {
|
436
|
-
key: "destroyed",
|
437
|
-
get: function() {
|
438
|
-
return (
|
439
|
-
/** @type {!InertNode} */
|
440
|
-
this._destroyed
|
441
|
-
);
|
442
|
-
}
|
443
|
-
}, {
|
444
|
-
key: "hasSavedTabIndex",
|
445
|
-
get: function() {
|
446
|
-
return this._savedTabIndex !== null;
|
447
|
-
}
|
448
|
-
/** @return {!Node} */
|
449
|
-
}, {
|
450
|
-
key: "node",
|
451
|
-
get: function() {
|
452
|
-
return this._throwIfDestroyed(), this._node;
|
453
|
-
}
|
454
|
-
/** @param {?number} tabIndex */
|
455
|
-
}, {
|
456
|
-
key: "savedTabIndex",
|
457
|
-
set: function(e) {
|
458
|
-
this._throwIfDestroyed(), this._savedTabIndex = e;
|
459
|
-
},
|
460
|
-
get: function() {
|
461
|
-
return this._throwIfDestroyed(), this._savedTabIndex;
|
462
|
-
}
|
463
|
-
}]), u;
|
464
|
-
}(), I = function() {
|
465
|
-
function u(t) {
|
466
|
-
if (x(this, u), !t)
|
467
|
-
throw new Error("Missing required argument; InertManager needs to wrap a document.");
|
468
|
-
this._document = t, this._managedNodes = /* @__PURE__ */ new Map(), this._inertRoots = /* @__PURE__ */ new Map(), this._observer = new MutationObserver(this._watchForInert.bind(this)), S(t.head || t.body || t.documentElement), t.readyState === "loading" ? t.addEventListener("DOMContentLoaded", this._onDocumentLoaded.bind(this)) : this._onDocumentLoaded();
|
469
|
-
}
|
470
|
-
return A(u, [{
|
471
|
-
key: "setInert",
|
472
|
-
value: function(e, i) {
|
473
|
-
if (i) {
|
474
|
-
if (this._inertRoots.has(e))
|
475
|
-
return;
|
476
|
-
var r = new l(e, this);
|
477
|
-
if (e.setAttribute("inert", ""), this._inertRoots.set(e, r), !this._document.body.contains(e))
|
478
|
-
for (var a = e.parentNode; a; )
|
479
|
-
a.nodeType === 11 && S(a), a = a.parentNode;
|
480
|
-
} else {
|
481
|
-
if (!this._inertRoots.has(e))
|
482
|
-
return;
|
483
|
-
var c = this._inertRoots.get(e);
|
484
|
-
c.destructor(), this._inertRoots.delete(e), e.removeAttribute("inert");
|
485
|
-
}
|
486
|
-
}
|
487
|
-
/**
|
488
|
-
* Get the InertRoot object corresponding to the given inert root element, if any.
|
489
|
-
* @param {!Node} element
|
490
|
-
* @return {!InertRoot|undefined}
|
491
|
-
*/
|
492
|
-
}, {
|
493
|
-
key: "getInertRoot",
|
494
|
-
value: function(e) {
|
495
|
-
return this._inertRoots.get(e);
|
496
|
-
}
|
497
|
-
/**
|
498
|
-
* Register the given InertRoot as managing the given node.
|
499
|
-
* In the case where the node has a previously existing inert root, this inert root will
|
500
|
-
* be added to its set of inert roots.
|
501
|
-
* @param {!Node} node
|
502
|
-
* @param {!InertRoot} inertRoot
|
503
|
-
* @return {!InertNode} inertNode
|
504
|
-
*/
|
505
|
-
}, {
|
506
|
-
key: "register",
|
507
|
-
value: function(e, i) {
|
508
|
-
var r = this._managedNodes.get(e);
|
509
|
-
return r !== void 0 ? r.addInertRoot(i) : r = new g(e, i), this._managedNodes.set(e, r), r;
|
510
|
-
}
|
511
|
-
/**
|
512
|
-
* De-register the given InertRoot as managing the given inert node.
|
513
|
-
* Removes the inert root from the InertNode's set of managing inert roots, and remove the inert
|
514
|
-
* node from the InertManager's set of managed nodes if it is destroyed.
|
515
|
-
* If the node is not currently managed, this is essentially a no-op.
|
516
|
-
* @param {!Node} node
|
517
|
-
* @param {!InertRoot} inertRoot
|
518
|
-
* @return {?InertNode} The potentially destroyed InertNode associated with this node, if any.
|
519
|
-
*/
|
520
|
-
}, {
|
521
|
-
key: "deregister",
|
522
|
-
value: function(e, i) {
|
523
|
-
var r = this._managedNodes.get(e);
|
524
|
-
return r ? (r.removeInertRoot(i), r.destroyed && this._managedNodes.delete(e), r) : null;
|
525
|
-
}
|
526
|
-
/**
|
527
|
-
* Callback used when document has finished loading.
|
528
|
-
*/
|
529
|
-
}, {
|
530
|
-
key: "_onDocumentLoaded",
|
531
|
-
value: function() {
|
532
|
-
var e = E.call(this._document.querySelectorAll("[inert]"));
|
533
|
-
e.forEach(function(i) {
|
534
|
-
this.setInert(i, !0);
|
535
|
-
}, this), this._observer.observe(this._document.body || this._document.documentElement, { attributes: !0, subtree: !0, childList: !0 });
|
536
|
-
}
|
537
|
-
/**
|
538
|
-
* Callback used when mutation observer detects attribute changes.
|
539
|
-
* @param {!Array<!MutationRecord>} records
|
540
|
-
* @param {!MutationObserver} self
|
541
|
-
*/
|
542
|
-
}, {
|
543
|
-
key: "_watchForInert",
|
544
|
-
value: function(e, i) {
|
545
|
-
var r = this;
|
546
|
-
e.forEach(function(a) {
|
547
|
-
switch (a.type) {
|
548
|
-
case "childList":
|
549
|
-
E.call(a.addedNodes).forEach(function(w) {
|
550
|
-
if (w.nodeType === Node.ELEMENT_NODE) {
|
551
|
-
var n = E.call(w.querySelectorAll("[inert]"));
|
552
|
-
m.call(w, "[inert]") && n.unshift(w), n.forEach(function(o) {
|
553
|
-
this.setInert(o, !0);
|
554
|
-
}, r);
|
555
|
-
}
|
556
|
-
}, r);
|
557
|
-
break;
|
558
|
-
case "attributes":
|
559
|
-
if (a.attributeName !== "inert")
|
560
|
-
return;
|
561
|
-
var c = (
|
562
|
-
/** @type {!HTMLElement} */
|
563
|
-
a.target
|
564
|
-
), _ = c.hasAttribute("inert");
|
565
|
-
r.setInert(c, _);
|
566
|
-
break;
|
567
|
-
}
|
568
|
-
}, this);
|
569
|
-
}
|
570
|
-
}]), u;
|
571
|
-
}();
|
572
|
-
function v(u, t, e) {
|
573
|
-
if (u.nodeType == Node.ELEMENT_NODE) {
|
574
|
-
var i = (
|
575
|
-
/** @type {!HTMLElement} */
|
576
|
-
u
|
577
|
-
);
|
578
|
-
t && t(i);
|
579
|
-
var r = (
|
580
|
-
/** @type {!HTMLElement} */
|
581
|
-
i.shadowRoot
|
582
|
-
);
|
583
|
-
if (r) {
|
584
|
-
v(r, t);
|
585
|
-
return;
|
586
|
-
}
|
587
|
-
if (i.localName == "content") {
|
588
|
-
for (var a = (
|
589
|
-
/** @type {!HTMLContentElement} */
|
590
|
-
i
|
591
|
-
), c = a.getDistributedNodes ? a.getDistributedNodes() : [], _ = 0; _ < c.length; _++)
|
592
|
-
v(c[_], t);
|
593
|
-
return;
|
594
|
-
}
|
595
|
-
if (i.localName == "slot") {
|
596
|
-
for (var w = (
|
597
|
-
/** @type {!HTMLSlotElement} */
|
598
|
-
i
|
599
|
-
), n = w.assignedNodes ? w.assignedNodes({ flatten: !0 }) : [], o = 0; o < n.length; o++)
|
600
|
-
v(n[o], t);
|
601
|
-
return;
|
602
|
-
}
|
603
|
-
}
|
604
|
-
for (var s = u.firstChild; s != null; )
|
605
|
-
v(s, t), s = s.nextSibling;
|
606
|
-
}
|
607
|
-
function S(u) {
|
608
|
-
if (!u.querySelector("style#inert-style, link#inert-style")) {
|
609
|
-
var t = document.createElement("style");
|
610
|
-
t.setAttribute("id", "inert-style"), t.textContent = `
|
611
|
-
[inert] {
|
612
|
-
pointer-events: none;
|
613
|
-
cursor: default;
|
614
|
-
}
|
615
|
-
|
616
|
-
[inert], [inert] * {
|
617
|
-
-webkit-user-select: none;
|
618
|
-
-moz-user-select: none;
|
619
|
-
-ms-user-select: none;
|
620
|
-
user-select: none;
|
621
|
-
}
|
622
|
-
`, u.appendChild(t);
|
623
|
-
}
|
624
|
-
}
|
625
|
-
if (!HTMLElement.prototype.hasOwnProperty("inert")) {
|
626
|
-
var T = new I(document);
|
627
|
-
Object.defineProperty(HTMLElement.prototype, "inert", {
|
628
|
-
enumerable: !0,
|
629
|
-
/** @this {!HTMLElement} */
|
630
|
-
get: function() {
|
631
|
-
return this.hasAttribute("inert");
|
632
|
-
},
|
633
|
-
/** @this {!HTMLElement} */
|
634
|
-
set: function(t) {
|
635
|
-
T.setInert(this, t);
|
636
|
-
}
|
637
|
-
});
|
638
|
-
}
|
639
|
-
})();
|
package/inert.esm-t-228rpY.js
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
"use strict";/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2016 Google Inc. All rights reserved.
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/(()=>{var E,m,N;const l=Symbol(),g=Symbol(),I=Symbol(),v=Symbol(),S=Symbol(),T=Symbol(),u=Symbol(),t=Symbol(),e=Symbol(),i=Symbol(),r=Symbol(),a=Symbol(),f=Symbol();class _{constructor(){this[E]=[],this[m]=[],this[N]=new Set}destructor(){this[e](this[I]);const n=this;n[l]=null,n[I]=null,n[g]=null}get top(){const n=this[l];return n[n.length-1]||null}push(n){!n||n===this.top||(this.remove(n),this[T](n),this[l].push(n))}remove(n){const o=this[l].indexOf(n);return o===-1?!1:(this[l].splice(o,1),o===this[l].length&&this[T](this.top),!0)}pop(){const n=this.top;return n&&this.remove(n),n}has(n){return this[l].indexOf(n)!==-1}[(E=l,m=I,N=g,T)](n){const o=this[g],s=this[I];if(!n){this[e](s),o.clear(),this[I]=[];return}const d=this[i](n);if(d[d.length-1].parentNode!==document.body)throw Error("Non-connected element cannot be a blocking element");this[I]=d;const b=this[r](n);if(!s.length){this[t](d,b,o);return}let c=s.length-1,h=d.length-1;for(;c>0&&h>0&&s[c]===d[h];)c--,h--;s[c]!==d[h]&&this[u](s[c],d[h]),c>0&&this[e](s.slice(0,c)),h>0&&this[t](d.slice(0,h),b,null)}[u](n,o){const s=n[v];this[a](n)&&!n.inert&&(n.inert=!0,s.add(n)),s.has(o)&&(o.inert=!1,s.delete(o)),o[S]=n[S],o[v]=s,n[S]=void 0,n[v]=void 0}[e](n){for(const o of n){o[S].disconnect(),o[S]=void 0;const d=o[v];for(const b of d)b.inert=!1;o[v]=void 0}}[t](n,o,s){for(const d of n){const b=d.parentNode,c=b.children,h=new Set;for(let R=0;R<c.length;R++){const M=c[R];M===d||!this[a](M)||o&&o.has(M)||(s&&M.inert?s.add(M):(M.inert=!0,h.add(M)))}d[v]=h;const k=new MutationObserver(this[f].bind(this));d[S]=k;let p=b;const y=p;y.__shady&&y.host&&(p=y.host),k.observe(p,{childList:!0})}}[f](n){const o=this[I],s=this[g];for(const d of n){const b=d.target.host||d.target,c=b===document.body?o.length:o.indexOf(b),h=o[c-1],k=h[v];for(let p=0;p<d.removedNodes.length;p++){const y=d.removedNodes[p];if(y===h){console.info("Detected removal of the top Blocking Element."),this.pop();return}k.has(y)&&(y.inert=!1,k.delete(y))}for(let p=0;p<d.addedNodes.length;p++){const y=d.addedNodes[p];this[a](y)&&(s&&y.inert?s.add(y):(y.inert=!0,k.add(y)))}}}[a](n){return/^(style|template|script)$/.test(n.localName)===!1}[i](n){const o=[];let s=n;for(;s&&s!==document.body;){if(s.nodeType===Node.ELEMENT_NODE&&o.push(s),s.assignedSlot){for(;s=s.assignedSlot;)o.push(s);s=o.pop();continue}s=s.parentNode||s.host}return o}[r](n){const o=n.shadowRoot;if(!o)return null;const s=new Set;let d,b,c;const h=o.querySelectorAll("slot");if(h.length&&h[0].assignedNodes)for(d=0;d<h.length;d++)for(c=h[d].assignedNodes({flatten:!0}),b=0;b<c.length;b++)c[b].nodeType===Node.ELEMENT_NODE&&s.add(c[b]);return s}}document.$blockingElements=new _})();var A=function(){function E(m,N){for(var l=0;l<N.length;l++){var g=N[l];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,N,l){return N&&E(m.prototype,N),l&&E(m,l),m}}();function x(E,m){if(!(E instanceof m))throw new TypeError("Cannot call a class as a function")}(function(){if(typeof window>"u"||typeof Element>"u")return;var E=Array.prototype.slice,m=Element.prototype.matches||Element.prototype.msMatchesSelector,N=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","video","[contenteditable]"].join(","),l=function(){function u(t,e){x(this,u),this._inertManager=e,this._rootElement=t,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return A(u,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(this._savedAriaHidden!==null?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach(function(e){this._unmanageNode(e.node)},this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(e){var i=this;v(e,function(_){return i._visitNode(_)});var r=document.activeElement;if(!document.body.contains(e)){for(var a=e,f=void 0;a;){if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){f=a;break}a=a.parentNode}f&&(r=f.activeElement)}e.contains(r)&&(r.blur(),r===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(e){if(e.nodeType===Node.ELEMENT_NODE){var i=e;i!==this._rootElement&&i.hasAttribute("inert")&&this._adoptInertRoot(i),(m.call(i,N)||i.hasAttribute("tabindex"))&&this._manageNode(i)}}},{key:"_manageNode",value:function(e){var i=this._inertManager.register(e,this);this._managedNodes.add(i)}},{key:"_unmanageNode",value:function(e){var i=this._inertManager.deregister(e,this);i&&this._managedNodes.delete(i)}},{key:"_unmanageSubtree",value:function(e){var i=this;v(e,function(r){return i._unmanageNode(r)})}},{key:"_adoptInertRoot",value:function(e){var i=this._inertManager.getInertRoot(e);i||(this._inertManager.setInert(e,!0),i=this._inertManager.getInertRoot(e)),i.managedNodes.forEach(function(r){this._manageNode(r.node)},this)}},{key:"_onMutation",value:function(e,i){e.forEach(function(r){var a=r.target;if(r.type==="childList")E.call(r.addedNodes).forEach(function(_){this._makeSubtreeUnfocusable(_)},this),E.call(r.removedNodes).forEach(function(_){this._unmanageSubtree(_)},this);else if(r.type==="attributes"){if(r.attributeName==="tabindex")this._manageNode(a);else if(a!==this._rootElement&&r.attributeName==="inert"&&a.hasAttribute("inert")){this._adoptInertRoot(a);var f=this._inertManager.getInertRoot(a);this._managedNodes.forEach(function(_){a.contains(_.node)&&f._manageNode(_.node)})}}},this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return this._savedAriaHidden!==null}},{key:"savedAriaHidden",set:function(e){this._savedAriaHidden=e},get:function(){return this._savedAriaHidden}}]),u}(),g=function(){function u(t,e){x(this,u),this._node=t,this._overrodeFocusMethod=!1,this._inertRoots=new Set([e]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return A(u,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var e=this._node;this._savedTabIndex!==null?e.setAttribute("tabindex",this._savedTabIndex):e.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete e.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var e=this.node;if(m.call(e,N)){if(e.tabIndex===-1&&this.hasSavedTabIndex)return;e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex),e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},this._overrodeFocusMethod=!0)}else e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex,e.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.add(e)}},{key:"removeInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.delete(e),this._inertRoots.size===0&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return this._savedTabIndex!==null}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(e){this._throwIfDestroyed(),this._savedTabIndex=e},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),u}(),I=function(){function u(t){if(x(this,u),!t)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=t,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),S(t.head||t.body||t.documentElement),t.readyState==="loading"?t.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return A(u,[{key:"setInert",value:function(e,i){if(i){if(this._inertRoots.has(e))return;var r=new l(e,this);if(e.setAttribute("inert",""),this._inertRoots.set(e,r),!this._document.body.contains(e))for(var a=e.parentNode;a;)a.nodeType===11&&S(a),a=a.parentNode}else{if(!this._inertRoots.has(e))return;var f=this._inertRoots.get(e);f.destructor(),this._inertRoots.delete(e),e.removeAttribute("inert")}}},{key:"getInertRoot",value:function(e){return this._inertRoots.get(e)}},{key:"register",value:function(e,i){var r=this._managedNodes.get(e);return r!==void 0?r.addInertRoot(i):r=new g(e,i),this._managedNodes.set(e,r),r}},{key:"deregister",value:function(e,i){var r=this._managedNodes.get(e);return r?(r.removeInertRoot(i),r.destroyed&&this._managedNodes.delete(e),r):null}},{key:"_onDocumentLoaded",value:function(){var e=E.call(this._document.querySelectorAll("[inert]"));e.forEach(function(i){this.setInert(i,!0)},this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(e,i){var r=this;e.forEach(function(a){switch(a.type){case"childList":E.call(a.addedNodes).forEach(function(w){if(w.nodeType===Node.ELEMENT_NODE){var n=E.call(w.querySelectorAll("[inert]"));m.call(w,"[inert]")&&n.unshift(w),n.forEach(function(o){this.setInert(o,!0)},r)}},r);break;case"attributes":if(a.attributeName!=="inert")return;var f=a.target,_=f.hasAttribute("inert");r.setInert(f,_);break}},this)}}]),u}();function v(u,t,e){if(u.nodeType==Node.ELEMENT_NODE){var i=u;t&&t(i);var r=i.shadowRoot;if(r){v(r,t);return}if(i.localName=="content"){for(var a=i,f=a.getDistributedNodes?a.getDistributedNodes():[],_=0;_<f.length;_++)v(f[_],t);return}if(i.localName=="slot"){for(var w=i,n=w.assignedNodes?w.assignedNodes({flatten:!0}):[],o=0;o<n.length;o++)v(n[o],t);return}}for(var s=u.firstChild;s!=null;)v(s,t),s=s.nextSibling}function S(u){if(!u.querySelector("style#inert-style, link#inert-style")){var t=document.createElement("style");t.setAttribute("id","inert-style"),t.textContent=`
|
17
|
-
[inert] {
|
18
|
-
pointer-events: none;
|
19
|
-
cursor: default;
|
20
|
-
}
|
21
|
-
|
22
|
-
[inert], [inert] * {
|
23
|
-
-webkit-user-select: none;
|
24
|
-
-moz-user-select: none;
|
25
|
-
-ms-user-select: none;
|
26
|
-
user-select: none;
|
27
|
-
}
|
28
|
-
`,u.appendChild(t)}}if(!HTMLElement.prototype.hasOwnProperty("inert")){var T=new I(document);Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(t){T.setInert(this,t)}})}})();
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"linear-progress.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/linear-progress/linear-progress.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAI5F,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,sBAAsB,CAAC;KAC9C;CACF;AAED,qBACa,sBAAuB,SAAQ,kBAAkB;IAC5D,OAAgB,MAAM,4BAA2C;CAClE;AAED,eAAe,sBAAsB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"check-list-item.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/list/check-list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAOhF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,qBAAqB,CAAC;KAC7C;CACF;AAED,qBACa,qBAAsB,SAAQ,iBAAiB;IAC1D,OAAgB,MAAM,4BAMpB;CACH;AAED,eAAe,qBAAqB,CAAC"}
|