@aquera/nile-elements 1.3.8-beta-1.1 → 1.3.8-beta-1.2
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/demo/index.html +12 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +27 -13
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.esm.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.css.esm.js +17 -2
- package/dist/nile-code-editor/nile-code-editor.esm.js +4 -4
- package/dist/nile-dialog/index.cjs.js +1 -1
- package/dist/nile-dialog/index.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/icons/svg/ng-alert-triangle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-alert-triangle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-alert-triangle.esm.js +1 -0
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
- package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +8 -9
- package/dist/nile-tab/index.cjs.js +1 -1
- package/dist/nile-tab/index.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.esm.js +2 -2
- package/dist/nile-tab-group/index.cjs.js +1 -1
- package/dist/nile-tab-group/index.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.esm.js +1 -1
- package/dist/nile-toast/index.cjs.js +1 -1
- package/dist/nile-toast/index.esm.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.esm.js +1 -1
- package/dist/nile-tree/index.cjs.js +1 -1
- package/dist/nile-tree/index.esm.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
- package/dist/nile-tree/nile-tree.esm.js +1 -1
- package/dist/nile-tree-item/index.cjs.js +1 -1
- package/dist/nile-tree-item/index.esm.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
- package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
- package/dist/nile-virtual-select/index.cjs.js +1 -1
- package/dist/nile-virtual-select/index.esm.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
- package/dist/src/nile-calendar/nile-calendar.js +0 -6
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.css.js +15 -0
- package/dist/src/nile-code-editor/nile-code-editor.css.js.map +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -0
- package/dist/src/nile-code-editor/nile-code-editor.js +15 -3
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/index.d.ts +1 -0
- package/dist/src/nile-icon/icons/svg/index.js +1 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/ng-alert-triangle.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-alert-triangle.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-alert-triangle.js.map +1 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.js +5 -6
- package/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-calendar/nile-calendar.ts +0 -9
- package/src/nile-code-editor/nile-code-editor.css.ts +15 -0
- package/src/nile-code-editor/nile-code-editor.ts +13 -3
- package/src/nile-icon/icons/svg/index.ts +1 -0
- package/src/nile-icon/icons/svg/ng-alert-triangle.ts +5 -0
- package/src/nile-slide-toggle/nile-slide-toggle.ts +5 -6
- package/vscode-html-custom-data.json +6 -1
- package/dist/axe.min-2b379f29.cjs.js +0 -12
- package/dist/axe.min-2b379f29.cjs.js.map +0 -1
- package/dist/axe.min-c2cd8733.esm.js +0 -12
- package/dist/fixture-2b5b3aba.esm.js +0 -569
- package/dist/fixture-3bfb4490.cjs.js +0 -395
- package/dist/fixture-3bfb4490.cjs.js.map +0 -1
- package/dist/fixture-7bfb866e.cjs.js +0 -395
- package/dist/fixture-7bfb866e.cjs.js.map +0 -1
- package/dist/fixture-8edec91c.esm.js +0 -569
- package/dist/fixture-d1470b58.cjs.js +0 -395
- package/dist/fixture-d1470b58.cjs.js.map +0 -1
- package/dist/fixture-dff65c89.cjs.js +0 -395
- package/dist/fixture-dff65c89.cjs.js.map +0 -1
- package/dist/fixture-e7023246.esm.js +0 -569
- package/dist/fixture-fe6c932e.cjs.js +0 -395
- package/dist/fixture-fe6c932e.cjs.js.map +0 -1
- package/dist/nile-grid-body/index.cjs.js +0 -2
- package/dist/nile-grid-body/index.cjs.js.map +0 -1
- package/dist/nile-grid-body/index.esm.js +0 -1
- package/dist/nile-grid-body/nile-grid-body.cjs.js +0 -2
- package/dist/nile-grid-body/nile-grid-body.cjs.js.map +0 -1
- package/dist/nile-grid-body/nile-grid-body.css.cjs.js +0 -2
- package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +0 -1
- package/dist/nile-grid-body/nile-grid-body.css.esm.js +0 -15
- package/dist/nile-grid-body/nile-grid-body.esm.js +0 -5
- package/dist/nile-grid-cell/index.cjs.js +0 -2
- package/dist/nile-grid-cell/index.cjs.js.map +0 -1
- package/dist/nile-grid-cell/index.esm.js +0 -1
- package/dist/nile-grid-cell/nile-grid-cell.cjs.js +0 -2
- package/dist/nile-grid-cell/nile-grid-cell.cjs.js.map +0 -1
- package/dist/nile-grid-cell/nile-grid-cell.css.cjs.js +0 -2
- package/dist/nile-grid-cell/nile-grid-cell.css.cjs.js.map +0 -1
- package/dist/nile-grid-cell/nile-grid-cell.css.esm.js +0 -23
- package/dist/nile-grid-cell/nile-grid-cell.esm.js +0 -5
- package/dist/nile-grid-header/index.cjs.js +0 -2
- package/dist/nile-grid-header/index.cjs.js.map +0 -1
- package/dist/nile-grid-header/index.esm.js +0 -1
- package/dist/nile-grid-header/nile-grid-header.cjs.js +0 -2
- package/dist/nile-grid-header/nile-grid-header.cjs.js.map +0 -1
- package/dist/nile-grid-header/nile-grid-header.css.cjs.js +0 -2
- package/dist/nile-grid-header/nile-grid-header.css.cjs.js.map +0 -1
- package/dist/nile-grid-header/nile-grid-header.css.esm.js +0 -31
- package/dist/nile-grid-header/nile-grid-header.esm.js +0 -12
- package/dist/nile-grid-row/index.cjs.js +0 -2
- package/dist/nile-grid-row/index.cjs.js.map +0 -1
- package/dist/nile-grid-row/index.esm.js +0 -1
- package/dist/nile-grid-row/nile-grid-row.cjs.js +0 -2
- package/dist/nile-grid-row/nile-grid-row.cjs.js.map +0 -1
- package/dist/nile-grid-row/nile-grid-row.css.cjs.js +0 -2
- package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +0 -1
- package/dist/nile-grid-row/nile-grid-row.css.esm.js +0 -10
- package/dist/nile-grid-row/nile-grid-row.esm.js +0 -5
- package/dist/nile-sidebar/index.cjs.js +0 -2
- package/dist/nile-sidebar/index.cjs.js.map +0 -1
- package/dist/nile-sidebar/index.esm.js +0 -72
- package/dist/nile-sidebar-menu/index.cjs.js +0 -2
- package/dist/nile-sidebar-menu/index.cjs.js.map +0 -1
- package/dist/nile-sidebar-menu/index.esm.js +0 -1
- package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +0 -2
- package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +0 -1
- package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +0 -2
- package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +0 -1
- package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +0 -35
- package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +0 -10
- package/dist/nile-sidebar-menu-items/index.cjs.js +0 -2
- package/dist/nile-sidebar-menu-items/index.cjs.js.map +0 -1
- package/dist/nile-sidebar-menu-items/index.esm.js +0 -1
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +0 -2
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +0 -1
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +0 -2
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +0 -1
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +0 -33
- package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +0 -14
- package/dist/nile-sidebar-wrapper/index.cjs.js +0 -2
- package/dist/nile-sidebar-wrapper/index.cjs.js.map +0 -1
- package/dist/nile-sidebar-wrapper/index.esm.js +0 -1
- package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +0 -2
- package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +0 -1
- package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +0 -2
- package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +0 -1
- package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +0 -102
- package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +0 -16
- package/dist/scopedElementsWrapper-1bff26ef.cjs.js +0 -2
- package/dist/scopedElementsWrapper-1bff26ef.cjs.js.map +0 -1
- package/dist/scopedElementsWrapper-4c29be11.esm.js +0 -7
- package/dist/scopedElementsWrapper-a112fc73.cjs.js +0 -6
- package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +0 -1
- package/dist/scopedElementsWrapper-c815042c.cjs.js +0 -2
- package/dist/scopedElementsWrapper-c815042c.cjs.js.map +0 -1
- package/dist/src/nile-grid-body/index.d.ts +0 -1
- package/dist/src/nile-grid-body/index.js +0 -2
- package/dist/src/nile-grid-body/index.js.map +0 -1
- package/dist/src/nile-grid-body/nile-grid-body.css.d.ts +0 -12
- package/dist/src/nile-grid-body/nile-grid-body.css.js +0 -27
- package/dist/src/nile-grid-body/nile-grid-body.css.js.map +0 -1
- package/dist/src/nile-grid-body/nile-grid-body.d.ts +0 -33
- package/dist/src/nile-grid-body/nile-grid-body.js +0 -47
- package/dist/src/nile-grid-body/nile-grid-body.js.map +0 -1
- package/dist/src/nile-grid-cell/index.d.ts +0 -1
- package/dist/src/nile-grid-cell/index.js +0 -2
- package/dist/src/nile-grid-cell/index.js.map +0 -1
- package/dist/src/nile-grid-cell/nile-grid-cell.css.d.ts +0 -12
- package/dist/src/nile-grid-cell/nile-grid-cell.css.js +0 -35
- package/dist/src/nile-grid-cell/nile-grid-cell.css.js.map +0 -1
- package/dist/src/nile-grid-cell/nile-grid-cell.d.ts +0 -37
- package/dist/src/nile-grid-cell/nile-grid-cell.js +0 -65
- package/dist/src/nile-grid-cell/nile-grid-cell.js.map +0 -1
- package/dist/src/nile-grid-cell-item/index.d.ts +0 -1
- package/dist/src/nile-grid-cell-item/index.js +0 -2
- package/dist/src/nile-grid-cell-item/index.js.map +0 -1
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.d.ts +0 -12
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +0 -47
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +0 -1
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +0 -36
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +0 -93
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +0 -1
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +0 -10
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js +0 -34
- package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +0 -1
- package/dist/src/nile-grid-head/index.d.ts +0 -1
- package/dist/src/nile-grid-head/index.js +0 -2
- package/dist/src/nile-grid-head/index.js.map +0 -1
- package/dist/src/nile-grid-head/nile-grid-head.css.d.ts +0 -12
- package/dist/src/nile-grid-head/nile-grid-head.css.js +0 -19
- package/dist/src/nile-grid-head/nile-grid-head.css.js.map +0 -1
- package/dist/src/nile-grid-head/nile-grid-head.d.ts +0 -28
- package/dist/src/nile-grid-head/nile-grid-head.js +0 -41
- package/dist/src/nile-grid-head/nile-grid-head.js.map +0 -1
- package/dist/src/nile-grid-head-item/index.d.ts +0 -1
- package/dist/src/nile-grid-head-item/index.js +0 -2
- package/dist/src/nile-grid-head-item/index.js.map +0 -1
- package/dist/src/nile-grid-head-item/nile-grid-head-item.css.d.ts +0 -12
- package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +0 -46
- package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +0 -1
- package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +0 -37
- package/dist/src/nile-grid-head-item/nile-grid-head-item.js +0 -100
- package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +0 -1
- package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +0 -10
- package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js +0 -34
- package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +0 -1
- package/dist/src/nile-grid-header/index.d.ts +0 -1
- package/dist/src/nile-grid-header/index.js +0 -2
- package/dist/src/nile-grid-header/index.js.map +0 -1
- package/dist/src/nile-grid-header/nile-grid-header.css.d.ts +0 -12
- package/dist/src/nile-grid-header/nile-grid-header.css.js +0 -43
- package/dist/src/nile-grid-header/nile-grid-header.css.js.map +0 -1
- package/dist/src/nile-grid-header/nile-grid-header.d.ts +0 -41
- package/dist/src/nile-grid-header/nile-grid-header.js +0 -118
- package/dist/src/nile-grid-header/nile-grid-header.js.map +0 -1
- package/dist/src/nile-grid-row/index.d.ts +0 -1
- package/dist/src/nile-grid-row/index.js +0 -2
- package/dist/src/nile-grid-row/index.js.map +0 -1
- package/dist/src/nile-grid-row/nile-grid-row.css.d.ts +0 -12
- package/dist/src/nile-grid-row/nile-grid-row.css.js +0 -22
- package/dist/src/nile-grid-row/nile-grid-row.css.js.map +0 -1
- package/dist/src/nile-grid-row/nile-grid-row.d.ts +0 -35
- package/dist/src/nile-grid-row/nile-grid-row.js +0 -59
- package/dist/src/nile-grid-row/nile-grid-row.js.map +0 -1
- package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
- package/dist/src/nile-rich-text-editor/utils.js +0 -538
- package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
- package/dist/src/nile-sidebar/index.d.ts +0 -28
- package/dist/src/nile-sidebar/index.js +0 -116
- package/dist/src/nile-sidebar/index.js.map +0 -1
- package/dist/src/nile-sidebar-menu/index.d.ts +0 -1
- package/dist/src/nile-sidebar-menu/index.js +0 -2
- package/dist/src/nile-sidebar-menu/index.js.map +0 -1
- package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.d.ts +0 -12
- package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js +0 -47
- package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js.map +0 -1
- package/dist/src/nile-sidebar-menu/nile-sidebar-menu.d.ts +0 -37
- package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js +0 -84
- package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js.map +0 -1
- package/dist/src/nile-sidebar-menu-items/index.d.ts +0 -1
- package/dist/src/nile-sidebar-menu-items/index.js +0 -2
- package/dist/src/nile-sidebar-menu-items/index.js.map +0 -1
- package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.d.ts +0 -12
- package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +0 -45
- package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +0 -1
- package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.d.ts +0 -35
- package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js +0 -78
- package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js.map +0 -1
- package/dist/src/nile-sidebar-wrapper/index.d.ts +0 -1
- package/dist/src/nile-sidebar-wrapper/index.js +0 -2
- package/dist/src/nile-sidebar-wrapper/index.js.map +0 -1
- package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.d.ts +0 -12
- package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js +0 -114
- package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js.map +0 -1
- package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.d.ts +0 -35
- package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js +0 -89
- package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nile-sidebar-menu-items.css.cjs.js","sources":["../../../src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * SidebarMenuItems CSS\n */\nexport const styles = css`\n :host {\n --min-width: 280px;\n }\n\n .nile__sidebar-menu-item {\n display: flex;\n align-items: center;\n padding: 12px;\n gap: 15px;\n min-width: var(--min-width);\n width: max-content;\n box-sizing: border-box;\n\n font-family: var(--nile-font-family-serif);\n font-size: var(--nile-type-scale-4);\n font-weight: 500;\n line-height: var(--nile-line-height-medium);\n }\n\n .nile__sidebar-menu-item:hover {\n background-color: var(--nile-colors-neutral-100);\n border-radius: 6px;\n }\n\n .hide-sidebar-menu-items{\n min-width:48px;\n }\n\n .hide-items {\n display: none;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{css as i}from"lit";const e=i`
|
|
2
|
-
:host {
|
|
3
|
-
--min-width: 280px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.nile__sidebar-menu-item {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
padding: 12px;
|
|
10
|
-
gap: 15px;
|
|
11
|
-
min-width: var(--min-width);
|
|
12
|
-
width: max-content;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
|
|
15
|
-
font-family: var(--nile-font-family-serif);
|
|
16
|
-
font-size: var(--nile-type-scale-4);
|
|
17
|
-
font-weight: 500;
|
|
18
|
-
line-height: var(--nile-line-height-medium);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.nile__sidebar-menu-item:hover {
|
|
22
|
-
background-color: var(--nile-colors-neutral-100);
|
|
23
|
-
border-radius: 6px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.hide-sidebar-menu-items{
|
|
27
|
-
min-width:48px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.hide-items {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
`;export{e as s};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{__decorate as e}from"tslib";import{html as i}from"lit";import{property as s,state as t,customElement as r}from"lit/decorators.js";import{s as o}from"./nile-sidebar-menu-items.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{classMap as m}from"lit/directives/class-map.js";let a=class extends l{constructor(){super(...arguments),this.iconValue="",this.active=!1,this.collapsed=!1}static get styles(){return[o]}render(){return i`
|
|
2
|
-
<div
|
|
3
|
-
class=${m({"nile__sidebar-menu-item":!0,"hide-sidebar-menu-items":this.collapsed})}
|
|
4
|
-
>
|
|
5
|
-
${this.iconValue?i`<nile-icon
|
|
6
|
-
name="${this.iconValue}"
|
|
7
|
-
aria-label="${this.iconValue}"
|
|
8
|
-
size="24"
|
|
9
|
-
></nile-icon>`:""}
|
|
10
|
-
<slot
|
|
11
|
-
class=${m({"hide-items":this.collapsed})}
|
|
12
|
-
></slot>
|
|
13
|
-
</div>
|
|
14
|
-
`}};e([s()],a.prototype,"iconValue",void 0),e([s({type:Boolean,reflect:!0})],a.prototype,"active",void 0),e([t()],a.prototype,"collapsed",void 0),a=e([r("nile-sidebar-menu-items")],a);export{a as N};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
System.register(["./nile-sidebar-wrapper.cjs.js","tslib","lit","lit/decorators.js","./nile-sidebar-wrapper.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";return{setters:[function(_nileSidebarWrapperCjsJs){_export("NileSidebarWrapper",_nileSidebarWrapperCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileSidebarWrapperCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){}};});
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{N as NileSidebarWrapper}from"./nile-sidebar-wrapper.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-sidebar-wrapper.css.esm.js";import"../internal/nile-element.esm.js";import"lit/directives/class-map.js";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-sidebar-wrapper.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var t,e,s,i,r,o,l,_templateObject,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_nileSidebarWrapperCssCjsJs){r=_nileSidebarWrapperCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_litDirectivesClassMapJs){l=_litDirectivesClassMapJs.classMap;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_o){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.overlaysidebar=!1,_this.placement="left",_this.isopen=!1;return _this;}_inherits(n,_o);return _createClass(n,[{key:"render",value:function render(){return console.log(this.isopen),e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n class=","\n >\n <slot\n name=\"sidebar-content\"\n class=","\n >\n </slot>\n <slot\n name=\"body-content\"\n class=","\n >\n </slot>\n </div>\n "])),l({"wrapper-box":!0,"wrapper-box--right":"right"===this.placement&&!this.overlaysidebar}),l({"sidebar-content":!0,"sidebar__content--overlay":this.overlaysidebar,"sidebar__content--overlay--right":"right"===this.placement,"sidebar__content--overlay--left":"left"===this.placement,"sidebar__content--overlay-open-left":this.isopen&&"left"===this.placement&&this.overlaysidebar,"sidebar__content--overlay-closed-left":!this.isopen&&"left"===this.placement&&this.overlaysidebar,"sidebar__content--overlay-open-right":this.isopen&&"right"===this.placement&&this.overlaysidebar,"sidebar__content--overlay-closed-right":!this.isopen&&"right"===this.placement&&this.overlaysidebar}),l({"body-content":!0,"body__content--overlay":this.overlaysidebar&&this.isopen}));}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:Boolean,reflect:!0})],n.prototype,"overlaysidebar",void 0),t([s({reflect:!0})],n.prototype,"placement",void 0),t([s({type:Boolean,reflect:!0})],n.prototype,"isopen",void 0),_export("N",n=t([i("nile-sidebar-wrapper")],n));}};});
|
|
2
|
-
//# sourceMappingURL=nile-sidebar-wrapper.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nile-sidebar-wrapper.cjs.js","sources":["../../../src/nile-sidebar-wrapper/nile-sidebar-wrapper.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, state, property } from 'lit/decorators.js';\nimport { styles } from './nile-sidebar-wrapper.css';\nimport NileElement from '../internal/nile-element';\nimport { classMap } from 'lit/directives/class-map.js';\n\n/**\n * Nile sidebar-wrapper component.\n *\n * @tag nile-sidebar-wrapper\n *\n */\n@customElement('nile-sidebar-wrapper')\nexport class NileSidebarWrapper extends NileElement {\n /**\n * The styles for nile-sidebar-wrapper\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true }) overlaysidebar = false;\n @property({ reflect: true }) placement: 'left' | 'right' = 'left';\n @property({ type: Boolean, reflect: true }) isopen = false;\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n console.log(this.isopen);\n\n return html`\n <div\n class=${classMap({\n 'wrapper-box': true,\n 'wrapper-box--right':\n this.placement === 'right' && !this.overlaysidebar,\n })}\n >\n <slot\n name=\"sidebar-content\"\n class=${classMap({\n 'sidebar-content': true,\n 'sidebar__content--overlay': this.overlaysidebar,\n 'sidebar__content--overlay--right': this.placement === 'right',\n 'sidebar__content--overlay--left': this.placement === 'left',\n 'sidebar__content--overlay-open-left':\n this.isopen && this.placement === 'left' && this.overlaysidebar,\n 'sidebar__content--overlay-closed-left':\n !this.isopen && this.placement === 'left' && this.overlaysidebar,\n 'sidebar__content--overlay-open-right':\n this.isopen && this.placement === 'right'&& this.overlaysidebar,\n 'sidebar__content--overlay-closed-right':\n !this.isopen && this.placement === 'right' && this.overlaysidebar,\n })}\n >\n </slot>\n <slot\n name=\"body-content\"\n class=${classMap({\n 'body-content': true,\n 'body__content--overlay': this.overlaysidebar && this.isopen,\n })}\n >\n </slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileSidebarWrapper;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-sidebar-wrapper': NileSidebarWrapper;\n }\n}\n"],"names":["NileSidebarWrapper","_o","n","constructor","this","overlaysidebar","placement","isopen","_this","_inherits","_createClass","key","value","render","console","log","html","_templateObject","_taggedTemplateLiteral","classMap","get","styles","NileElement","__decorate","property","type","Boolean","reflect","prototype","customElement"],"mappings":"6vGAyBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,mCASuCC,EAAAA,KAAAA,CAAcC,gBAAG,CAChCD,CAAAA,KAAAA,CAASE,UAAqB,MACfF,CAAAA,KAAAA,CAAMG,QAAG,CAoDtD,QAAAC,KAAA,EA1DQC,SAAA,CAAAP,CAAA,CAAAD,EAAA,SAAAS,YAAA,CAAAR,CAAA,GAAAS,GAAA,UAAAC,KAAA,CAgBA,SAAAC,MAAAA,CAAAA,CAGL,CAAA,MAFAC,CAAAA,QAAQC,GAAIX,CAAAA,IAAAA,CAAKG,QAEVS,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,yQAECC,CAAAA,CAAS,CACf,aAAe,CAAA,CAAA,CAAA,CACf,qBACqB,OAAnBf,GAAAA,IAAAA,CAAKE,YAA0BF,IAAKC,CAAAA,cAAAA,CAAAA,CAAAA,CAK9Bc,CAAS,CAAA,CACf,mBAAmB,CACnB,CAAA,2BAAA,CAA6Bf,KAAKC,cAClC,CAAA,kCAAA,CAAuD,UAAnBD,IAAKE,CAAAA,SAAAA,CACzC,kCAAsD,MAAn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 -1,2 +0,0 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",t=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n }\n\n .wrapper-box {\n display: flex;\n height: 100vh;\n width: 100%;\n }\n\n .wrapper-box--right {\n flex-direction: row-reverse;\n }\n\n .sidebar-content {\n display: flex;\n height: 100%;\n }\n\n .body-content {\n display: flex;\n height: 100%;\n background-color: red;\n }\n\n .sidebar__content--overlay {\n position: absolute;\n z-index: 1000;\n }\n\n .sidebar__content--overlay--right {\n right: 0;\n }\n\n .sidebar__content--overlay--left {\n left: 0;\n }\n\n .body__content--overlay {\n position: absolute;\n left: 0;\n opacity:0.5;\n background-color:var(--nile-sidebar-wrapper-overlay-background-color);\n }\n\n /* For left side */\n .sidebar__content--overlay-open-left {\n animation: slide-in-left 0.3s ease-in-out forwards;\n }\n\n .sidebar__content--overlay-closed-left {\n animation: slide-out-left 0.3s ease-in-out forwards;\n }\n\n @keyframes slide-in-left {\n 0% {\n transform: translateX(-100%);\n }\n\n 100% {\n transform: translateX(0);\n }\n }\n\n @keyframes slide-out-left {\n 0% {\n transform: translateX(0);\n }\n\n 100% {\n transform: translateX(-100%);\n }\n }\n\n /* For right side */\n .sidebar__content--overlay-open-right {\n animation: slide-in-right 0.3s ease-in-out forwards;\n }\n\n .sidebar__content--overlay-closed-right {\n animation: slide-out-right 0.3s ease-in-out forwards;\n }\n\n @keyframes slide-in-right {\n 0% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(0);\n }\n }\n\n @keyframes slide-out-right {\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n"]))));}};});
|
|
2
|
-
//# sourceMappingURL=nile-sidebar-wrapper.css.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nile-sidebar-wrapper.css.cjs.js","sources":["../../../src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * SidebarWrapper CSS\n */\nexport const styles = css`\n :host {\n display: block;\n }\n\n .wrapper-box {\n display: flex;\n height: 100vh;\n width: 100%;\n }\n\n .wrapper-box--right {\n flex-direction: row-reverse;\n }\n\n .sidebar-content {\n display: flex;\n height: 100%;\n }\n\n .body-content {\n display: flex;\n height: 100%;\n background-color: red;\n }\n\n .sidebar__content--overlay {\n position: absolute;\n z-index: 1000;\n }\n\n .sidebar__content--overlay--right {\n right: 0;\n }\n\n .sidebar__content--overlay--left {\n left: 0;\n }\n\n .body__content--overlay {\n position: absolute;\n left: 0;\n opacity:0.5;\n background-color:var(--nile-sidebar-wrapper-overlay-background-color);\n }\n\n /* For left side */\n .sidebar__content--overlay-open-left {\n animation: slide-in-left 0.3s ease-in-out forwards;\n }\n\n .sidebar__content--overlay-closed-left {\n animation: slide-out-left 0.3s ease-in-out forwards;\n }\n\n @keyframes slide-in-left {\n 0% {\n transform: translateX(-100%);\n }\n\n 100% {\n transform: translateX(0);\n }\n }\n\n @keyframes slide-out-left {\n 0% {\n transform: translateX(0);\n }\n\n 100% {\n transform: translateX(-100%);\n }\n }\n\n /* For right side */\n .sidebar__content--overlay-open-right {\n animation: slide-in-right 0.3s ease-in-out forwards;\n }\n\n .sidebar__content--overlay-closed-right {\n animation: slide-out-right 0.3s ease-in-out forwards;\n }\n\n @keyframes slide-in-right {\n 0% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(0);\n }\n }\n\n @keyframes slide-out-right {\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import{css as e}from"lit";const t=e`
|
|
2
|
-
:host {
|
|
3
|
-
display: block;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.wrapper-box {
|
|
7
|
-
display: flex;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.wrapper-box--right {
|
|
13
|
-
flex-direction: row-reverse;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.sidebar-content {
|
|
17
|
-
display: flex;
|
|
18
|
-
height: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.body-content {
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100%;
|
|
24
|
-
background-color: red;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.sidebar__content--overlay {
|
|
28
|
-
position: absolute;
|
|
29
|
-
z-index: 1000;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.sidebar__content--overlay--right {
|
|
33
|
-
right: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.sidebar__content--overlay--left {
|
|
37
|
-
left: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.body__content--overlay {
|
|
41
|
-
position: absolute;
|
|
42
|
-
left: 0;
|
|
43
|
-
opacity:0.5;
|
|
44
|
-
background-color:var(--nile-sidebar-wrapper-overlay-background-color);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* For left side */
|
|
48
|
-
.sidebar__content--overlay-open-left {
|
|
49
|
-
animation: slide-in-left 0.3s ease-in-out forwards;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.sidebar__content--overlay-closed-left {
|
|
53
|
-
animation: slide-out-left 0.3s ease-in-out forwards;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@keyframes slide-in-left {
|
|
57
|
-
0% {
|
|
58
|
-
transform: translateX(-100%);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
100% {
|
|
62
|
-
transform: translateX(0);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@keyframes slide-out-left {
|
|
67
|
-
0% {
|
|
68
|
-
transform: translateX(0);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
100% {
|
|
72
|
-
transform: translateX(-100%);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* For right side */
|
|
77
|
-
.sidebar__content--overlay-open-right {
|
|
78
|
-
animation: slide-in-right 0.3s ease-in-out forwards;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.sidebar__content--overlay-closed-right {
|
|
82
|
-
animation: slide-out-right 0.3s ease-in-out forwards;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@keyframes slide-in-right {
|
|
86
|
-
0% {
|
|
87
|
-
transform: translateX(100%);
|
|
88
|
-
}
|
|
89
|
-
100% {
|
|
90
|
-
transform: translateX(0);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@keyframes slide-out-right {
|
|
95
|
-
0% {
|
|
96
|
-
transform: translateX(0);
|
|
97
|
-
}
|
|
98
|
-
100% {
|
|
99
|
-
transform: translateX(100%);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
`;export{t as s};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as s,customElement as i}from"lit/decorators.js";import{s as r}from"./nile-sidebar-wrapper.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import{classMap as l}from"lit/directives/class-map.js";let n=class extends o{constructor(){super(...arguments),this.overlaysidebar=!1,this.placement="left",this.isopen=!1}static get styles(){return[r]}render(){return console.log(this.isopen),e`
|
|
2
|
-
<div
|
|
3
|
-
class=${l({"wrapper-box":!0,"wrapper-box--right":"right"===this.placement&&!this.overlaysidebar})}
|
|
4
|
-
>
|
|
5
|
-
<slot
|
|
6
|
-
name="sidebar-content"
|
|
7
|
-
class=${l({"sidebar-content":!0,"sidebar__content--overlay":this.overlaysidebar,"sidebar__content--overlay--right":"right"===this.placement,"sidebar__content--overlay--left":"left"===this.placement,"sidebar__content--overlay-open-left":this.isopen&&"left"===this.placement&&this.overlaysidebar,"sidebar__content--overlay-closed-left":!this.isopen&&"left"===this.placement&&this.overlaysidebar,"sidebar__content--overlay-open-right":this.isopen&&"right"===this.placement&&this.overlaysidebar,"sidebar__content--overlay-closed-right":!this.isopen&&"right"===this.placement&&this.overlaysidebar})}
|
|
8
|
-
>
|
|
9
|
-
</slot>
|
|
10
|
-
<slot
|
|
11
|
-
name="body-content"
|
|
12
|
-
class=${l({"body-content":!0,"body__content--overlay":this.overlaysidebar&&this.isopen})}
|
|
13
|
-
>
|
|
14
|
-
</slot>
|
|
15
|
-
</div>
|
|
16
|
-
`}};t([s({type:Boolean,reflect:!0})],n.prototype,"overlaysidebar",void 0),t([s({reflect:!0})],n.prototype,"placement",void 0),t([s({type:Boolean,reflect:!0})],n.prototype,"isopen",void 0),n=t([i("nile-sidebar-wrapper")],n);export{n as N};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["./css-tag-bb10c0fa.cjs.js","lit"],function(_export,_context){"use strict";var t,e,s,o,r,i,n,c,m,_l;function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function d(t,e){var s=_l();var o=/*#__PURE__*/function(_m){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_m);return _createClass(o);}(m);customElements.define(s,o);return new o(e,t);}_export("getScopedElementsTemplate",d);return{setters:[function(_cssTag003CjsJs){t=_cssTag003CjsJs.S;},function(_lit){e=_lit.LitElement;}],execute:function execute(){s=new WeakMap();o="2.2.2",r=window.scopedElementsVersions||(window.scopedElementsVersions=[]);r.includes(o)||r.push(o);i=!!ShadowRoot.prototype.createElement,n=(c=function c(e){return/*#__PURE__*/function(_e){function _class(){var _this;_classCallCheck(this,_class);_this=_callSuper(this,_class),_this.renderOptions=_this.renderOptions||void 0;return _this;}_inherits(_class,_e);return _createClass(_class,[{key:"registry",get:function get(){return this.constructor.i;},set:function set(t){this.constructor.i=t;}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$constructor=this.constructor,e=_this$constructor.scopedElements,s=_this$constructor.shadowRootOptions,o=_this$constructor.elementStyles;if(!this.registry||this.registry===this.constructor.i&&!Object.prototype.hasOwnProperty.call(this.constructor,"__registry")){this.registry=i?new CustomElementRegistry():customElements;for(var _i=0,_Object$entries=Object.entries(e);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),_t=_Object$entries$_i[0],_s=_Object$entries$_i[1];this.defineScopedElement(_t,_s);}}var r=_objectSpread(_objectSpread({mode:"open"},s),{},{customElements:this.registry,registry:this.registry}),n=this.attachShadow(r);return i&&(this.renderOptions.creationScope=n),n instanceof ShadowRoot&&(t(n,o),this.renderOptions.renderBefore=this.renderOptions.renderBefore||n.firstChild),n;}},{key:"createScopedElement",value:function createScopedElement(t){return(i?this.shadowRoot:document).createElement(t);}},{key:"defineScopedElement",value:function defineScopedElement(t,e){var s=this.registry.get(t);return s&&!1===i&&s!==e&&console.error(["You are trying to re-register the \"".concat(t,"\" custom element with a different class via ScopedElementsMixin."),"This is only possible with a CustomElementRegistry.","Your browser does not support this feature so you will need to load a polyfill for it.",'Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.','e.g. add "<script src="/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js"><\/script>" as your first script tag.',"For more details you can visit https://open-wc.org/docs/development/scoped-elements/"].join("\n")),s?this.registry.get(t):this.registry.define(t,e);}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.constructor.getScopedTagName(t);}}],[{key:"scopedElements",get:function get(){return{};}},{key:"scopedElementsVersion",get:function get(){return o;}},{key:"shadowRootOptions",get:function get(){return this.t;},set:function set(t){this.t=t;}},{key:"elementStyles",get:function get(){return this.o;},set:function set(t){this.o=t;}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.i.get(t)?t:void 0;}}]);}(e);},function(t){if(function(t,e){var o=e;for(;o;){if(s.get(o)===t)return!0;o=Object.getPrototypeOf(o);}return!1;}(c,t))return t;var e=c(t);return s.set(e,c),e;});m=/*#__PURE__*/function(_n){function m(t,e){var _this2;_classCallCheck(this,m);_this2=_callSuper(this,m),_this2.scopedElements=t,_this2.template=e;return _this2;}_inherits(m,_n);return _createClass(m,[{key:"firstUpdated",value:function firstUpdated(t){var _this3=this;_superPropGet(m,"firstUpdated",this,3)([t]),Object.keys(this.scopedElements).forEach(function(t){return _this3.defineScopedElement(t,_this3.scopedElements[t]);});}},{key:"render",value:function render(){return this.template;}}],[{key:"properties",get:function get(){return{scopedElements:{type:Object},template:{type:Object}};}}]);}(n(e));_l=function l(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var e="scoped-elements-test-wrapper-".concat(t);return void 0!==customElements.get(e)?_l(t+1):e;};}};});
|
|
2
|
-
//# sourceMappingURL=scopedElementsWrapper-1bff26ef.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopedElementsWrapper-1bff26ef.cjs.js","sources":["../../../node_modules/@open-wc/testing-helpers/src/scopedElementsWrapper.js","../../../node_modules/@open-wc/dedupe-mixin/src/dedupeMixin.js","../../../node_modules/@open-wc/scoped-elements/src/ScopedElementsMixin.js"],"sourcesContent":["import { ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { LitElement } from 'lit';\n\n/** @typedef {import('@open-wc/scoped-elements').ScopedElementsMap} ScopedElementsMap */\n/** @typedef {import('lit/html.js').TemplateResult} TemplateResult */\n\n/**\n * Regarding the @ts-expect-error, it is caused by having '& typeof ScopedElementsHost' on ScopedElementsMixin.\n * This type intersection is necessary though, in order to access static props of the mixin. For example:\n *\n * static get scopedElements() {\n * return {\n * ...super.scopedElements, // <-- this will error without '& typeof ScopedElementsHost'\n * }\n * }\n *\n * However, a new type error is created --> Base constructors must all have the same return type.ts(2510)\n * But this can be ignored, and then at least you do get the super static props typed properly.\n */\n// @ts-ignore https://github.com/microsoft/TypeScript/issues/40110 , not using expect-error, because in some TS versions it does not throw\nclass ScopedElementsTestWrapper extends ScopedElementsMixin(LitElement) {\n static get properties() {\n return {\n scopedElements: { type: Object },\n template: { type: Object },\n };\n }\n\n constructor(scopedElement, template) {\n super();\n\n /** @type {ScopedElementsMap} */\n this.scopedElements = scopedElement;\n\n /** @type {import('./renderable').LitHTMLRenderable} */\n // eslint-disable-next-line no-unused-expressions\n this.template = template;\n }\n\n firstUpdated(_changed) {\n super.firstUpdated(_changed);\n\n Object.keys(this.scopedElements).forEach(key =>\n // @ts-ignore\n this.defineScopedElement(key, this.scopedElements[key]),\n );\n }\n\n render() {\n return this.template;\n }\n}\n\n/**\n * Obtains a unique tag name for the test wrapper\n * @param {number} [counter=0]\n * @returns {string}\n */\nconst getWrapperUniqueName = (counter = 0) => {\n const tag = `scoped-elements-test-wrapper-${counter}`;\n\n if (customElements.get(tag) !== undefined) {\n return getWrapperUniqueName(counter + 1);\n }\n\n return tag;\n};\n\n/**\n * Wraps the template inside a scopedElements component\n *\n * @param {import('./renderable').LitHTMLRenderable} template\n * @param {ScopedElementsMap} scopedElements\n * @return {HTMLElement}\n */\nexport function getScopedElementsTemplate(template, scopedElements) {\n const wrapperTagName = getWrapperUniqueName();\n class Scope extends ScopedElementsTestWrapper {}\n\n // @ts-ignore\n customElements.define(wrapperTagName, Scope);\n\n /** @type {ScopedElementsTestWrapper} */\n const scope = new Scope(scopedElements, template);\n\n return scope;\n}\n\n/** @typedef {typeof getScopedElementsTemplate} ScopedElementsTemplateGetter */\n","const appliedClassMixins = new WeakMap();\n\n/** Vefify if the Mixin was previously applyed\n * @private\n * @param {function} mixin Mixin being applyed\n * @param {object} superClass Class receiving the new mixin\n * @returns {boolean}\n */\nfunction wasMixinPreviouslyApplied(mixin, superClass) {\n let klass = superClass;\n while (klass) {\n if (appliedClassMixins.get(klass) === mixin) {\n return true;\n }\n klass = Object.getPrototypeOf(klass);\n }\n return false;\n}\n\n/** Apply each mixin in the chain to make sure they are not applied more than once to the final class.\n * @export\n * @param {function} mixin Mixin to be applyed\n * @returns {object} Mixed class with mixin applied\n */\nexport function dedupeMixin(mixin) {\n return superClass => {\n if (wasMixinPreviouslyApplied(mixin, superClass)) {\n return superClass;\n }\n const mixedClass = mixin(superClass);\n appliedClassMixins.set(mixedClass, mixin);\n return mixedClass;\n };\n}\n","import { dedupeMixin } from '@open-wc/dedupe-mixin';\nimport { adoptStyles } from '@lit/reactive-element/css-tag.js';\n\n/**\n * @typedef {import('./types').RenderOptions} RenderOptions\n * @typedef {import('./types').ScopedElementsMixin} ScopedElementsMixin\n * @typedef {import('./types').ScopedElementsHost} ScopedElementsHost\n * @typedef {import('./types').ScopedElementsMap} ScopedElementsMap\n * @typedef {import('@lit/reactive-element').CSSResultOrNative} CSSResultOrNative\n */\n\nconst version = '2.2.2';\n// eslint-disable-next-line dot-notation\nconst versions = window['scopedElementsVersions'] || (window['scopedElementsVersions'] = []);\nif (!versions.includes(version)) {\n versions.push(version);\n}\n\n// @ts-ignore\nconst supportsScopedRegistry = !!ShadowRoot.prototype.createElement;\n\n/**\n * @template {import('./types').Constructor<HTMLElement>} T\n * @param {T} superclass\n * @return {T & import('./types').Constructor<ScopedElementsHost>}\n */\nconst ScopedElementsMixinImplementation = superclass =>\n /** @type {ScopedElementsHost} */\n class ScopedElementsHost extends superclass {\n /**\n * Obtains the scoped elements definitions map if specified.\n *\n * @returns {ScopedElementsMap}\n */\n static get scopedElements() {\n return {};\n }\n\n static get scopedElementsVersion() {\n return version;\n }\n\n /**\n * Obtains the ShadowRoot options.\n *\n * @type {ShadowRootInit}\n */\n static get shadowRootOptions() {\n return this.__shadowRootOptions;\n }\n\n /**\n * Set the shadowRoot options.\n *\n * @param {ShadowRootInit} value\n */\n static set shadowRootOptions(value) {\n this.__shadowRootOptions = value;\n }\n\n /**\n * Obtains the element styles.\n *\n * @returns {CSSResultOrNative[]}\n */\n static get elementStyles() {\n return this.__elementStyles;\n }\n\n static set elementStyles(styles) {\n this.__elementStyles = styles;\n }\n\n // either TS or ESLint will complain here\n // eslint-disable-next-line no-unused-vars\n constructor(..._args) {\n super();\n /** @type {RenderOptions} */\n this.renderOptions = this.renderOptions || undefined;\n }\n\n /**\n * Obtains the CustomElementRegistry associated to the ShadowRoot.\n *\n * @returns {CustomElementRegistry}\n */\n get registry() {\n // @ts-ignore\n return this.constructor.__registry;\n }\n\n /**\n * Set the CustomElementRegistry associated to the ShadowRoot\n *\n * @param {CustomElementRegistry} registry\n */\n set registry(registry) {\n // @ts-ignore\n this.constructor.__registry = registry;\n }\n\n createRenderRoot() {\n const { scopedElements, shadowRootOptions, elementStyles } =\n /** @type {typeof ScopedElementsHost} */ (this.constructor);\n\n const shouldCreateRegistry =\n !this.registry ||\n // @ts-ignore\n (this.registry === this.constructor.__registry &&\n !Object.prototype.hasOwnProperty.call(this.constructor, '__registry'));\n\n /**\n * Create a new registry if:\n * - the registry is not defined\n * - this class doesn't have its own registry *AND* has no shared registry\n */\n if (shouldCreateRegistry) {\n this.registry = supportsScopedRegistry ? new CustomElementRegistry() : customElements;\n for (const [tagName, klass] of Object.entries(scopedElements)) {\n this.defineScopedElement(tagName, klass);\n }\n }\n\n /** @type {ShadowRootInit} */\n const options = {\n mode: 'open',\n ...shadowRootOptions,\n customElements: this.registry,\n registry: this.registry,\n };\n\n const createdRoot = this.attachShadow(options);\n if (supportsScopedRegistry) {\n this.renderOptions.creationScope = createdRoot;\n }\n\n if (createdRoot instanceof ShadowRoot) {\n adoptStyles(createdRoot, elementStyles);\n this.renderOptions.renderBefore = this.renderOptions.renderBefore || createdRoot.firstChild;\n }\n\n return createdRoot;\n }\n\n createScopedElement(tagName) {\n const root = supportsScopedRegistry ? this.shadowRoot : document;\n // @ts-ignore polyfill to support createElement on shadowRoot is loaded\n return root.createElement(tagName);\n }\n\n /**\n * Defines a scoped element.\n *\n * @param {string} tagName\n * @param {typeof HTMLElement} klass\n */\n defineScopedElement(tagName, klass) {\n const registeredClass = this.registry.get(tagName);\n if (registeredClass && supportsScopedRegistry === false && registeredClass !== klass) {\n // eslint-disable-next-line no-console\n console.error(\n [\n `You are trying to re-register the \"${tagName}\" custom element with a different class via ScopedElementsMixin.`,\n 'This is only possible with a CustomElementRegistry.',\n 'Your browser does not support this feature so you will need to load a polyfill for it.',\n 'Load \"@webcomponents/scoped-custom-element-registry\" before you register ANY web component to the global customElements registry.',\n 'e.g. add \"<script src=\"/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js\"></script>\" as your first script tag.',\n 'For more details you can visit https://open-wc.org/docs/development/scoped-elements/',\n ].join('\\n'),\n );\n }\n if (!registeredClass) {\n return this.registry.define(tagName, klass);\n }\n return this.registry.get(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n getScopedTagName(tagName) {\n // @ts-ignore\n return this.constructor.getScopedTagName(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n static getScopedTagName(tagName) {\n // @ts-ignore\n return this.__registry.get(tagName) ? tagName : undefined;\n }\n };\n\nexport const ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);\n"],"names":["getScopedElementsTemplate","template","scopedElements","wrapperTagName","getWrapperUniqueName","Scope","ScopedElementsTestWrapper","customElements","define","appliedClassMixins","WeakMap","version","versions","window","scopedElementsVersions","includes","push","supportsScopedRegistry","ShadowRoot","prototype","createElement","ScopedElementsMixin","mixin","superclass","_e","_class","super","this","renderOptions","undefined","_this","_inherits","_createClass","key","get","constructor","__registry","set","registry","value","createRenderRoot","_this$constructor","shadowRootOptions","elementStyles","Object","hasOwnProperty","call","CustomElementRegistry","_i","_Object$entries","entries","_Object$entries$_i","_slicedToArray","tagName","klass","defineScopedElement","options","_objectSpread","mode","createdRoot","attachShadow","creationScope","adoptStyles","renderBefore","firstChild","createScopedElement","shadowRoot","document","registeredClass","console","error","concat","join","getScopedTagName","scopedElementsVersion","__shadowRootOptions","__elementStyles","styles","superClass","getPrototypeOf","wasMixinPreviouslyApplied","mixedClass","m","scopedElement","_this2","_n","firstUpdated","_changed","keys","forEach","render","properties","type","LitElement","l","counter","tag"],"mappings":"4lKA2EO,QAASA,CAAAA,CAAAA,CAA0BC,EAAUC,CAClD,CAAA,CAAA,GAAMC,CAAAA,EAAiBC,EACvB,CAAA,CAAA,CAAA,GAAMC,CAAAA,+IAAcC,CAGpBC,EAAAA,cAAAA,CAAeC,OAAOL,CAAgBE,CAAAA,CAAAA,CAAAA,CAKtC,MAFc,IAAIA,CAAAA,CAAAA,CAAMH,CAAgBD,CAAAA,CAAAA,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CAAWyD,CACT,MAAO,CACLzF,cAAAA,CAAgB,CAAE0F,IAAMhD,CAAAA,MAAAA,CAAAA,CACxB3C,SAAU,CAAE2F,IAAAA,CAAMhD,QAErB,EAED,MARsCvB,CAAAA,CAAoBwE,IAsCtDzF,EAAuB,CAAA,QAAvBA,CAAAA,CAAuB0F,CAAA,CAC3B,IAD4BC,CAAAA,4DAAU,CACtC,CAAA,GAAMC,CAAAA,yCAAsCD,CAAAA,CAAAA,CAE5C,WAAgClE,EAA5BtB,GAAAA,cAAAA,CAAe2B,IAAI8D,CACd5F,CAAAA,CAAAA,EAAAA,CAAqB2F,EAAU,CAGjCC,CAAAA,CAAAA,CAAG","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{LitElement as t}from"lit";const e=new WeakMap;
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2019 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/
|
|
7
|
-
const s=globalThis,o=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n="2.2.2",r=window.scopedElementsVersions||(window.scopedElementsVersions=[]);r.includes(n)||r.push(n);const i=!!ShadowRoot.prototype.createElement,c=(l=t=>class extends t{static get scopedElements(){return{}}static get scopedElementsVersion(){return n}static get shadowRootOptions(){return this.t}static set shadowRootOptions(t){this.t=t}static get elementStyles(){return this.o}static set elementStyles(t){this.o=t}constructor(...t){super(),this.renderOptions=this.renderOptions||void 0}get registry(){return this.constructor.i}set registry(t){this.constructor.i=t}createRenderRoot(){const{scopedElements:t,shadowRootOptions:e,elementStyles:n}=this.constructor;if(!this.registry||this.registry===this.constructor.i&&!Object.prototype.hasOwnProperty.call(this.constructor,"__registry")){this.registry=i?new CustomElementRegistry:customElements;for(const[e,s]of Object.entries(t))this.defineScopedElement(e,s)}const r={mode:"open",...e,customElements:this.registry,registry:this.registry},c=this.attachShadow(r);return i&&(this.renderOptions.creationScope=c),c instanceof ShadowRoot&&(((t,e)=>{if(o)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),n=s.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=o.cssText,t.appendChild(e)}})(c,n),this.renderOptions.renderBefore=this.renderOptions.renderBefore||c.firstChild),c}createScopedElement(t){return(i?this.shadowRoot:document).createElement(t)}defineScopedElement(t,e){const s=this.registry.get(t);return s&&!1===i&&s!==e&&console.error([`You are trying to re-register the "${t}" custom element with a different class via ScopedElementsMixin.`,"This is only possible with a CustomElementRegistry.","Your browser does not support this feature so you will need to load a polyfill for it.",'Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.','e.g. add "<script src="/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js"><\/script>" as your first script tag.',"For more details you can visit https://open-wc.org/docs/development/scoped-elements/"].join("\n")),s?this.registry.get(t):this.registry.define(t,e)}getScopedTagName(t){return this.constructor.getScopedTagName(t)}static getScopedTagName(t){return this.i.get(t)?t:void 0}},t=>{if(function(t,s){let o=s;for(;o;){if(e.get(o)===t)return!0;o=Object.getPrototypeOf(o)}return!1}(l,t))return t;const s=l(t);return e.set(s,l),s});var l;class d extends(c(t)){static get properties(){return{scopedElements:{type:Object},template:{type:Object}}}constructor(t,e){super(),this.scopedElements=t,this.template=e}firstUpdated(t){super.firstUpdated(t),Object.keys(this.scopedElements).forEach((t=>this.defineScopedElement(t,this.scopedElements[t])))}render(){return this.template}}const m=(t=0)=>{const e=`scoped-elements-test-wrapper-${t}`;return void 0!==customElements.get(e)?m(t+1):e};function h(t,e){const s=m();class o extends d{}customElements.define(s,o);return new o(e,t)}export{h as getScopedElementsTemplate};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["lit"],function(_export,_context){"use strict";var t,e,s,o,n,r,i,c,l,d,_m;function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function h(t,e){var s=_m();var o=/*#__PURE__*/function(_d){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_d);return _createClass(o);}(d);customElements.define(s,o);return new o(e,t);}_export("getScopedElementsTemplate",h);return{setters:[function(_lit){t=_lit.LitElement;}],execute:function execute(){e=new WeakMap();/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/s=globalThis,o=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n="2.2.2",r=window.scopedElementsVersions||(window.scopedElementsVersions=[]);r.includes(n)||r.push(n);i=!!ShadowRoot.prototype.createElement,c=(l=function l(t){return/*#__PURE__*/function(_t){function _class(){var _this;_classCallCheck(this,_class);_this=_callSuper(this,_class),_this.renderOptions=_this.renderOptions||void 0;return _this;}_inherits(_class,_t);return _createClass(_class,[{key:"registry",get:function get(){return this.constructor.i;},set:function set(t){this.constructor.i=t;}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$constructor=this.constructor,t=_this$constructor.scopedElements,e=_this$constructor.shadowRootOptions,n=_this$constructor.elementStyles;if(!this.registry||this.registry===this.constructor.i&&!Object.prototype.hasOwnProperty.call(this.constructor,"__registry")){this.registry=i?new CustomElementRegistry():customElements;for(var _i=0,_Object$entries=Object.entries(t);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),_e=_Object$entries$_i[0],_s=_Object$entries$_i[1];this.defineScopedElement(_e,_s);}}var r=_objectSpread(_objectSpread({mode:"open"},e),{},{customElements:this.registry,registry:this.registry}),c=this.attachShadow(r);return i&&(this.renderOptions.creationScope=c),c instanceof ShadowRoot&&(function(t,e){if(o)t.adoptedStyleSheets=e.map(function(t){return t instanceof CSSStyleSheet?t:t.styleSheet;});else{var _iterator=_createForOfIteratorHelper(e),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _o=_step.value;var _e2=document.createElement("style"),_n=s.litNonce;void 0!==_n&&_e2.setAttribute("nonce",_n),_e2.textContent=_o.cssText,t.appendChild(_e2);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}}(c,n),this.renderOptions.renderBefore=this.renderOptions.renderBefore||c.firstChild),c;}},{key:"createScopedElement",value:function createScopedElement(t){return(i?this.shadowRoot:document).createElement(t);}},{key:"defineScopedElement",value:function defineScopedElement(t,e){var s=this.registry.get(t);return s&&!1===i&&s!==e&&console.error(["You are trying to re-register the \"".concat(t,"\" custom element with a different class via ScopedElementsMixin."),"This is only possible with a CustomElementRegistry.","Your browser does not support this feature so you will need to load a polyfill for it.",'Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.','e.g. add "<script src="/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js"><\/script>" as your first script tag.',"For more details you can visit https://open-wc.org/docs/development/scoped-elements/"].join("\n")),s?this.registry.get(t):this.registry.define(t,e);}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.constructor.getScopedTagName(t);}}],[{key:"scopedElements",get:function get(){return{};}},{key:"scopedElementsVersion",get:function get(){return n;}},{key:"shadowRootOptions",get:function get(){return this.t;},set:function set(t){this.t=t;}},{key:"elementStyles",get:function get(){return this.o;},set:function set(t){this.o=t;}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.i.get(t)?t:void 0;}}]);}(t);},function(t){if(function(t,s){var o=s;for(;o;){if(e.get(o)===t)return!0;o=Object.getPrototypeOf(o);}return!1;}(l,t))return t;var s=l(t);return e.set(s,l),s;});d=/*#__PURE__*/function(_c){function d(t,e){var _this2;_classCallCheck(this,d);_this2=_callSuper(this,d),_this2.scopedElements=t,_this2.template=e;return _this2;}_inherits(d,_c);return _createClass(d,[{key:"firstUpdated",value:function firstUpdated(t){var _this3=this;_superPropGet(d,"firstUpdated",this,3)([t]),Object.keys(this.scopedElements).forEach(function(t){return _this3.defineScopedElement(t,_this3.scopedElements[t]);});}},{key:"render",value:function render(){return this.template;}}],[{key:"properties",get:function get(){return{scopedElements:{type:Object},template:{type:Object}};}}]);}(c(t));_m=function m(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var e="scoped-elements-test-wrapper-".concat(t);return void 0!==customElements.get(e)?_m(t+1):e;};}};});
|
|
6
|
-
//# sourceMappingURL=scopedElementsWrapper-a112fc73.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopedElementsWrapper-a112fc73.cjs.js","sources":["../../../node_modules/@open-wc/testing-helpers/src/scopedElementsWrapper.js","../../../node_modules/@open-wc/dedupe-mixin/src/dedupeMixin.js","../../../node_modules/@open-wc/scoped-elements/node_modules/@lit/reactive-element/css-tag.js","../../../node_modules/@open-wc/scoped-elements/src/ScopedElementsMixin.js"],"sourcesContent":["import { ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { LitElement } from 'lit';\n\n/** @typedef {import('@open-wc/scoped-elements').ScopedElementsMap} ScopedElementsMap */\n/** @typedef {import('lit/html.js').TemplateResult} TemplateResult */\n\n/**\n * Regarding the @ts-expect-error, it is caused by having '& typeof ScopedElementsHost' on ScopedElementsMixin.\n * This type intersection is necessary though, in order to access static props of the mixin. For example:\n *\n * static get scopedElements() {\n * return {\n * ...super.scopedElements, // <-- this will error without '& typeof ScopedElementsHost'\n * }\n * }\n *\n * However, a new type error is created --> Base constructors must all have the same return type.ts(2510)\n * But this can be ignored, and then at least you do get the super static props typed properly.\n */\n// @ts-ignore https://github.com/microsoft/TypeScript/issues/40110 , not using expect-error, because in some TS versions it does not throw\nclass ScopedElementsTestWrapper extends ScopedElementsMixin(LitElement) {\n static get properties() {\n return {\n scopedElements: { type: Object },\n template: { type: Object },\n };\n }\n\n constructor(scopedElement, template) {\n super();\n\n /** @type {ScopedElementsMap} */\n this.scopedElements = scopedElement;\n\n /** @type {import('./renderable').LitHTMLRenderable} */\n // eslint-disable-next-line no-unused-expressions\n this.template = template;\n }\n\n firstUpdated(_changed) {\n super.firstUpdated(_changed);\n\n Object.keys(this.scopedElements).forEach(key =>\n // @ts-ignore\n this.defineScopedElement(key, this.scopedElements[key]),\n );\n }\n\n render() {\n return this.template;\n }\n}\n\n/**\n * Obtains a unique tag name for the test wrapper\n * @param {number} [counter=0]\n * @returns {string}\n */\nconst getWrapperUniqueName = (counter = 0) => {\n const tag = `scoped-elements-test-wrapper-${counter}`;\n\n if (customElements.get(tag) !== undefined) {\n return getWrapperUniqueName(counter + 1);\n }\n\n return tag;\n};\n\n/**\n * Wraps the template inside a scopedElements component\n *\n * @param {import('./renderable').LitHTMLRenderable} template\n * @param {ScopedElementsMap} scopedElements\n * @return {HTMLElement}\n */\nexport function getScopedElementsTemplate(template, scopedElements) {\n const wrapperTagName = getWrapperUniqueName();\n class Scope extends ScopedElementsTestWrapper {}\n\n // @ts-ignore\n customElements.define(wrapperTagName, Scope);\n\n /** @type {ScopedElementsTestWrapper} */\n const scope = new Scope(scopedElements, template);\n\n return scope;\n}\n\n/** @typedef {typeof getScopedElementsTemplate} ScopedElementsTemplateGetter */\n","const appliedClassMixins = new WeakMap();\n\n/** Vefify if the Mixin was previously applyed\n * @private\n * @param {function} mixin Mixin being applyed\n * @param {object} superClass Class receiving the new mixin\n * @returns {boolean}\n */\nfunction wasMixinPreviouslyApplied(mixin, superClass) {\n let klass = superClass;\n while (klass) {\n if (appliedClassMixins.get(klass) === mixin) {\n return true;\n }\n klass = Object.getPrototypeOf(klass);\n }\n return false;\n}\n\n/** Apply each mixin in the chain to make sure they are not applied more than once to the final class.\n * @export\n * @param {function} mixin Mixin to be applyed\n * @returns {object} Mixed class with mixin applied\n */\nexport function dedupeMixin(mixin) {\n return superClass => {\n if (wasMixinPreviouslyApplied(mixin, superClass)) {\n return superClass;\n }\n const mixedClass = mixin(superClass);\n appliedClassMixins.set(mixedClass, mixin);\n return mixedClass;\n };\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import { dedupeMixin } from '@open-wc/dedupe-mixin';\nimport { adoptStyles } from '@lit/reactive-element/css-tag.js';\n\n/**\n * @typedef {import('./types').RenderOptions} RenderOptions\n * @typedef {import('./types').ScopedElementsMixin} ScopedElementsMixin\n * @typedef {import('./types').ScopedElementsHost} ScopedElementsHost\n * @typedef {import('./types').ScopedElementsMap} ScopedElementsMap\n * @typedef {import('@lit/reactive-element').CSSResultOrNative} CSSResultOrNative\n */\n\nconst version = '2.2.2';\n// eslint-disable-next-line dot-notation\nconst versions = window['scopedElementsVersions'] || (window['scopedElementsVersions'] = []);\nif (!versions.includes(version)) {\n versions.push(version);\n}\n\n// @ts-ignore\nconst supportsScopedRegistry = !!ShadowRoot.prototype.createElement;\n\n/**\n * @template {import('./types').Constructor<HTMLElement>} T\n * @param {T} superclass\n * @return {T & import('./types').Constructor<ScopedElementsHost>}\n */\nconst ScopedElementsMixinImplementation = superclass =>\n /** @type {ScopedElementsHost} */\n class ScopedElementsHost extends superclass {\n /**\n * Obtains the scoped elements definitions map if specified.\n *\n * @returns {ScopedElementsMap}\n */\n static get scopedElements() {\n return {};\n }\n\n static get scopedElementsVersion() {\n return version;\n }\n\n /**\n * Obtains the ShadowRoot options.\n *\n * @type {ShadowRootInit}\n */\n static get shadowRootOptions() {\n return this.__shadowRootOptions;\n }\n\n /**\n * Set the shadowRoot options.\n *\n * @param {ShadowRootInit} value\n */\n static set shadowRootOptions(value) {\n this.__shadowRootOptions = value;\n }\n\n /**\n * Obtains the element styles.\n *\n * @returns {CSSResultOrNative[]}\n */\n static get elementStyles() {\n return this.__elementStyles;\n }\n\n static set elementStyles(styles) {\n this.__elementStyles = styles;\n }\n\n // either TS or ESLint will complain here\n // eslint-disable-next-line no-unused-vars\n constructor(..._args) {\n super();\n /** @type {RenderOptions} */\n this.renderOptions = this.renderOptions || undefined;\n }\n\n /**\n * Obtains the CustomElementRegistry associated to the ShadowRoot.\n *\n * @returns {CustomElementRegistry}\n */\n get registry() {\n // @ts-ignore\n return this.constructor.__registry;\n }\n\n /**\n * Set the CustomElementRegistry associated to the ShadowRoot\n *\n * @param {CustomElementRegistry} registry\n */\n set registry(registry) {\n // @ts-ignore\n this.constructor.__registry = registry;\n }\n\n createRenderRoot() {\n const { scopedElements, shadowRootOptions, elementStyles } =\n /** @type {typeof ScopedElementsHost} */ (this.constructor);\n\n const shouldCreateRegistry =\n !this.registry ||\n // @ts-ignore\n (this.registry === this.constructor.__registry &&\n !Object.prototype.hasOwnProperty.call(this.constructor, '__registry'));\n\n /**\n * Create a new registry if:\n * - the registry is not defined\n * - this class doesn't have its own registry *AND* has no shared registry\n */\n if (shouldCreateRegistry) {\n this.registry = supportsScopedRegistry ? new CustomElementRegistry() : customElements;\n for (const [tagName, klass] of Object.entries(scopedElements)) {\n this.defineScopedElement(tagName, klass);\n }\n }\n\n /** @type {ShadowRootInit} */\n const options = {\n mode: 'open',\n ...shadowRootOptions,\n customElements: this.registry,\n registry: this.registry,\n };\n\n const createdRoot = this.attachShadow(options);\n if (supportsScopedRegistry) {\n this.renderOptions.creationScope = createdRoot;\n }\n\n if (createdRoot instanceof ShadowRoot) {\n adoptStyles(createdRoot, elementStyles);\n this.renderOptions.renderBefore = this.renderOptions.renderBefore || createdRoot.firstChild;\n }\n\n return createdRoot;\n }\n\n createScopedElement(tagName) {\n const root = supportsScopedRegistry ? this.shadowRoot : document;\n // @ts-ignore polyfill to support createElement on shadowRoot is loaded\n return root.createElement(tagName);\n }\n\n /**\n * Defines a scoped element.\n *\n * @param {string} tagName\n * @param {typeof HTMLElement} klass\n */\n defineScopedElement(tagName, klass) {\n const registeredClass = this.registry.get(tagName);\n if (registeredClass && supportsScopedRegistry === false && registeredClass !== klass) {\n // eslint-disable-next-line no-console\n console.error(\n [\n `You are trying to re-register the \"${tagName}\" custom element with a different class via ScopedElementsMixin.`,\n 'This is only possible with a CustomElementRegistry.',\n 'Your browser does not support this feature so you will need to load a polyfill for it.',\n 'Load \"@webcomponents/scoped-custom-element-registry\" before you register ANY web component to the global customElements registry.',\n 'e.g. add \"<script src=\"/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js\"></script>\" as your first script tag.',\n 'For more details you can visit https://open-wc.org/docs/development/scoped-elements/',\n ].join('\\n'),\n );\n }\n if (!registeredClass) {\n return this.registry.define(tagName, klass);\n }\n return this.registry.get(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n getScopedTagName(tagName) {\n // @ts-ignore\n return this.constructor.getScopedTagName(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n static getScopedTagName(tagName) {\n // @ts-ignore\n return this.__registry.get(tagName) ? tagName : undefined;\n }\n };\n\nexport const ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);\n"],"names":["getScopedElementsTemplate","template","scopedElements","wrapperTagName","getWrapperUniqueName","Scope","ScopedElementsTestWrapper","customElements","define","appliedClassMixins","WeakMap","t","globalThis","e","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","version","versions","window","scopedElementsVersions","includes","push","supportsScopedRegistry","createElement","ScopedElementsMixin","mixin","superclass","_class","super","this","renderOptions","undefined","_this","_inherits","_t","_createClass","key","get","constructor","__registry","set","registry","value","createRenderRoot","_this$constructor","shadowRootOptions","elementStyles","Object","hasOwnProperty","call","CustomElementRegistry","_i","_Object$entries","entries","_Object$entries$_i","_slicedToArray","tagName","klass","defineScopedElement","options","mode","createdRoot","attachShadow","creationScope","s","o","adoptedStyleSheets","map","styleSheet","_iterator","_createForOfIteratorHelper","_step","n","done","document","litNonce","setAttribute","textContent","cssText","appendChild","err","f","renderBefore","firstChild","createScopedElement","shadowRoot","registeredClass","console","error","concat","join","getScopedTagName","__shadowRootOptions","__elementStyles","styles","superClass","getPrototypeOf","wasMixinPreviouslyApplied","mixedClass","d","scopedElement","_this2","_c","firstUpdated","_changed","keys","forEach","render","type","LitElement","m","counter","arguments","length","tag"],"mappings":"2xLA2EO,QAASA,CAAAA,CAA0BC,CAAAA,CAAAA,CAAUC,CAClD,CAAA,CAAA,GAAMC,CAAAA,CAAiBC,CAAAA,EAAAA,CAAAA,CAAAA,CACvB,GAAMC,CAAAA,CAAcC,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA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CAAK5E,IAAK/B,CAAAA,cAAAA,CAAAA,CAAgB4G,QAAQtE,SAAAA,CAEvCP,QAAAA,CAAAA,MAAAA,CAAK6B,oBAAoBtB,CAAKP,CAAAA,MAAAA,CAAK/B,eAAesC,CAErD,CAAA,CAAA,EAAA,CAAA,EAED,GAAAA,GAAA,UAAAM,KAAA,UAAAiE,MAAAA,CAAAA,CAAAA,CACE,MAAO9E,KAAAA,CAAKhC,QACb,EAQH,KAAAuC,GAAA,cAAAC,GAAA,CArCE,SAAAA,IAAA,CACE,CAAA,MAAO,CACLvC,cAAAA,CAAgB,CAAE8G,IAAAA,CAAM7D,QACxBlD,QAAU,CAAA,CAAE+G,IAAM7D,CAAAA,MAAAA,CAAAA,CAErB,EAED,MARsCvB,CAAoBqF,CAAAA,CAAAA,CAAAA,EAsCtD7G,EAAuB,CAAA,QAAvBA,CAAAA,CAAuB8G,CAAA,CAAW,IAAVC,CAAAA,CAAU,CAAAC,SAAA,CAAAC,MAAA,IAAAD,SAAA,MAAAjF,SAAA,CAAAiF,SAAA,IAAA,CAAA,CACtC,GAAME,CAAAA,CAAM,iCAAAzB,MAAA,CAAgCsB,CAE5C,CAAA,CAAA,MAAA,KAAgChF,EAA5B5B,GAAAA,cAAAA,CAAekC,IAAI6E,CACdlH,CAAAA,CAAAA,EAAAA,CAAqB+G,CAAU,CAAA,CAAA,CAAA,CAGjCG,CAAG,EAAA","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["./css-tag-bb10c0fa.cjs.js","lit"],function(_export,_context){"use strict";var t,e,s,o,r,i,n,c,m,_l;function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function d(t,e){var s=_l();var o=/*#__PURE__*/function(_m){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_m);return _createClass(o);}(m);customElements.define(s,o);return new o(e,t);}_export("getScopedElementsTemplate",d);return{setters:[function(_cssTag002CjsJs){t=_cssTag002CjsJs.S;},function(_lit){e=_lit.LitElement;}],execute:function execute(){s=new WeakMap();o="2.2.2",r=window.scopedElementsVersions||(window.scopedElementsVersions=[]);r.includes(o)||r.push(o);i=!!ShadowRoot.prototype.createElement,n=(c=function c(e){return/*#__PURE__*/function(_e){function _class(){var _this;_classCallCheck(this,_class);_this=_callSuper(this,_class),_this.renderOptions=_this.renderOptions||void 0;return _this;}_inherits(_class,_e);return _createClass(_class,[{key:"registry",get:function get(){return this.constructor.i;},set:function set(t){this.constructor.i=t;}},{key:"createRenderRoot",value:function createRenderRoot(){var _this$constructor=this.constructor,e=_this$constructor.scopedElements,s=_this$constructor.shadowRootOptions,o=_this$constructor.elementStyles;if(!this.registry||this.registry===this.constructor.i&&!Object.prototype.hasOwnProperty.call(this.constructor,"__registry")){this.registry=i?new CustomElementRegistry():customElements;for(var _i=0,_Object$entries=Object.entries(e);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),_t=_Object$entries$_i[0],_s=_Object$entries$_i[1];this.defineScopedElement(_t,_s);}}var r=_objectSpread(_objectSpread({mode:"open"},s),{},{customElements:this.registry,registry:this.registry}),n=this.attachShadow(r);return i&&(this.renderOptions.creationScope=n),n instanceof ShadowRoot&&(t(n,o),this.renderOptions.renderBefore=this.renderOptions.renderBefore||n.firstChild),n;}},{key:"createScopedElement",value:function createScopedElement(t){return(i?this.shadowRoot:document).createElement(t);}},{key:"defineScopedElement",value:function defineScopedElement(t,e){var s=this.registry.get(t);return s&&!1===i&&s!==e&&console.error(["You are trying to re-register the \"".concat(t,"\" custom element with a different class via ScopedElementsMixin."),"This is only possible with a CustomElementRegistry.","Your browser does not support this feature so you will need to load a polyfill for it.",'Load "@webcomponents/scoped-custom-element-registry" before you register ANY web component to the global customElements registry.','e.g. add "<script src="/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js"><\/script>" as your first script tag.',"For more details you can visit https://open-wc.org/docs/development/scoped-elements/"].join("\n")),s?this.registry.get(t):this.registry.define(t,e);}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.constructor.getScopedTagName(t);}}],[{key:"scopedElements",get:function get(){return{};}},{key:"scopedElementsVersion",get:function get(){return o;}},{key:"shadowRootOptions",get:function get(){return this.t;},set:function set(t){this.t=t;}},{key:"elementStyles",get:function get(){return this.o;},set:function set(t){this.o=t;}},{key:"getScopedTagName",value:function getScopedTagName(t){return this.i.get(t)?t:void 0;}}]);}(e);},function(t){if(function(t,e){var o=e;for(;o;){if(s.get(o)===t)return!0;o=Object.getPrototypeOf(o);}return!1;}(c,t))return t;var e=c(t);return s.set(e,c),e;});m=/*#__PURE__*/function(_n){function m(t,e){var _this2;_classCallCheck(this,m);_this2=_callSuper(this,m),_this2.scopedElements=t,_this2.template=e;return _this2;}_inherits(m,_n);return _createClass(m,[{key:"firstUpdated",value:function firstUpdated(t){var _this3=this;_superPropGet(m,"firstUpdated",this,3)([t]),Object.keys(this.scopedElements).forEach(function(t){return _this3.defineScopedElement(t,_this3.scopedElements[t]);});}},{key:"render",value:function render(){return this.template;}}],[{key:"properties",get:function get(){return{scopedElements:{type:Object},template:{type:Object}};}}]);}(n(e));_l=function l(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var e="scoped-elements-test-wrapper-".concat(t);return void 0!==customElements.get(e)?_l(t+1):e;};}};});
|
|
2
|
-
//# sourceMappingURL=scopedElementsWrapper-c815042c.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopedElementsWrapper-c815042c.cjs.js","sources":["../../../node_modules/@open-wc/testing-helpers/src/scopedElementsWrapper.js","../../../node_modules/@open-wc/dedupe-mixin/src/dedupeMixin.js","../../../node_modules/@open-wc/scoped-elements/src/ScopedElementsMixin.js"],"sourcesContent":["import { ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { LitElement } from 'lit';\n\n/** @typedef {import('@open-wc/scoped-elements').ScopedElementsMap} ScopedElementsMap */\n/** @typedef {import('lit/html.js').TemplateResult} TemplateResult */\n\n/**\n * Regarding the @ts-expect-error, it is caused by having '& typeof ScopedElementsHost' on ScopedElementsMixin.\n * This type intersection is necessary though, in order to access static props of the mixin. For example:\n *\n * static get scopedElements() {\n * return {\n * ...super.scopedElements, // <-- this will error without '& typeof ScopedElementsHost'\n * }\n * }\n *\n * However, a new type error is created --> Base constructors must all have the same return type.ts(2510)\n * But this can be ignored, and then at least you do get the super static props typed properly.\n */\n// @ts-ignore https://github.com/microsoft/TypeScript/issues/40110 , not using expect-error, because in some TS versions it does not throw\nclass ScopedElementsTestWrapper extends ScopedElementsMixin(LitElement) {\n static get properties() {\n return {\n scopedElements: { type: Object },\n template: { type: Object },\n };\n }\n\n constructor(scopedElement, template) {\n super();\n\n /** @type {ScopedElementsMap} */\n this.scopedElements = scopedElement;\n\n /** @type {import('./renderable').LitHTMLRenderable} */\n // eslint-disable-next-line no-unused-expressions\n this.template = template;\n }\n\n firstUpdated(_changed) {\n super.firstUpdated(_changed);\n\n Object.keys(this.scopedElements).forEach(key =>\n // @ts-ignore\n this.defineScopedElement(key, this.scopedElements[key]),\n );\n }\n\n render() {\n return this.template;\n }\n}\n\n/**\n * Obtains a unique tag name for the test wrapper\n * @param {number} [counter=0]\n * @returns {string}\n */\nconst getWrapperUniqueName = (counter = 0) => {\n const tag = `scoped-elements-test-wrapper-${counter}`;\n\n if (customElements.get(tag) !== undefined) {\n return getWrapperUniqueName(counter + 1);\n }\n\n return tag;\n};\n\n/**\n * Wraps the template inside a scopedElements component\n *\n * @param {import('./renderable').LitHTMLRenderable} template\n * @param {ScopedElementsMap} scopedElements\n * @return {HTMLElement}\n */\nexport function getScopedElementsTemplate(template, scopedElements) {\n const wrapperTagName = getWrapperUniqueName();\n class Scope extends ScopedElementsTestWrapper {}\n\n // @ts-ignore\n customElements.define(wrapperTagName, Scope);\n\n /** @type {ScopedElementsTestWrapper} */\n const scope = new Scope(scopedElements, template);\n\n return scope;\n}\n\n/** @typedef {typeof getScopedElementsTemplate} ScopedElementsTemplateGetter */\n","const appliedClassMixins = new WeakMap();\n\n/** Vefify if the Mixin was previously applyed\n * @private\n * @param {function} mixin Mixin being applyed\n * @param {object} superClass Class receiving the new mixin\n * @returns {boolean}\n */\nfunction wasMixinPreviouslyApplied(mixin, superClass) {\n let klass = superClass;\n while (klass) {\n if (appliedClassMixins.get(klass) === mixin) {\n return true;\n }\n klass = Object.getPrototypeOf(klass);\n }\n return false;\n}\n\n/** Apply each mixin in the chain to make sure they are not applied more than once to the final class.\n * @export\n * @param {function} mixin Mixin to be applyed\n * @returns {object} Mixed class with mixin applied\n */\nexport function dedupeMixin(mixin) {\n return superClass => {\n if (wasMixinPreviouslyApplied(mixin, superClass)) {\n return superClass;\n }\n const mixedClass = mixin(superClass);\n appliedClassMixins.set(mixedClass, mixin);\n return mixedClass;\n };\n}\n","import { dedupeMixin } from '@open-wc/dedupe-mixin';\nimport { adoptStyles } from '@lit/reactive-element/css-tag.js';\n\n/**\n * @typedef {import('./types').RenderOptions} RenderOptions\n * @typedef {import('./types').ScopedElementsMixin} ScopedElementsMixin\n * @typedef {import('./types').ScopedElementsHost} ScopedElementsHost\n * @typedef {import('./types').ScopedElementsMap} ScopedElementsMap\n * @typedef {import('@lit/reactive-element').CSSResultOrNative} CSSResultOrNative\n */\n\nconst version = '2.2.2';\n// eslint-disable-next-line dot-notation\nconst versions = window['scopedElementsVersions'] || (window['scopedElementsVersions'] = []);\nif (!versions.includes(version)) {\n versions.push(version);\n}\n\n// @ts-ignore\nconst supportsScopedRegistry = !!ShadowRoot.prototype.createElement;\n\n/**\n * @template {import('./types').Constructor<HTMLElement>} T\n * @param {T} superclass\n * @return {T & import('./types').Constructor<ScopedElementsHost>}\n */\nconst ScopedElementsMixinImplementation = superclass =>\n /** @type {ScopedElementsHost} */\n class ScopedElementsHost extends superclass {\n /**\n * Obtains the scoped elements definitions map if specified.\n *\n * @returns {ScopedElementsMap}\n */\n static get scopedElements() {\n return {};\n }\n\n static get scopedElementsVersion() {\n return version;\n }\n\n /**\n * Obtains the ShadowRoot options.\n *\n * @type {ShadowRootInit}\n */\n static get shadowRootOptions() {\n return this.__shadowRootOptions;\n }\n\n /**\n * Set the shadowRoot options.\n *\n * @param {ShadowRootInit} value\n */\n static set shadowRootOptions(value) {\n this.__shadowRootOptions = value;\n }\n\n /**\n * Obtains the element styles.\n *\n * @returns {CSSResultOrNative[]}\n */\n static get elementStyles() {\n return this.__elementStyles;\n }\n\n static set elementStyles(styles) {\n this.__elementStyles = styles;\n }\n\n // either TS or ESLint will complain here\n // eslint-disable-next-line no-unused-vars\n constructor(..._args) {\n super();\n /** @type {RenderOptions} */\n this.renderOptions = this.renderOptions || undefined;\n }\n\n /**\n * Obtains the CustomElementRegistry associated to the ShadowRoot.\n *\n * @returns {CustomElementRegistry}\n */\n get registry() {\n // @ts-ignore\n return this.constructor.__registry;\n }\n\n /**\n * Set the CustomElementRegistry associated to the ShadowRoot\n *\n * @param {CustomElementRegistry} registry\n */\n set registry(registry) {\n // @ts-ignore\n this.constructor.__registry = registry;\n }\n\n createRenderRoot() {\n const { scopedElements, shadowRootOptions, elementStyles } =\n /** @type {typeof ScopedElementsHost} */ (this.constructor);\n\n const shouldCreateRegistry =\n !this.registry ||\n // @ts-ignore\n (this.registry === this.constructor.__registry &&\n !Object.prototype.hasOwnProperty.call(this.constructor, '__registry'));\n\n /**\n * Create a new registry if:\n * - the registry is not defined\n * - this class doesn't have its own registry *AND* has no shared registry\n */\n if (shouldCreateRegistry) {\n this.registry = supportsScopedRegistry ? new CustomElementRegistry() : customElements;\n for (const [tagName, klass] of Object.entries(scopedElements)) {\n this.defineScopedElement(tagName, klass);\n }\n }\n\n /** @type {ShadowRootInit} */\n const options = {\n mode: 'open',\n ...shadowRootOptions,\n customElements: this.registry,\n registry: this.registry,\n };\n\n const createdRoot = this.attachShadow(options);\n if (supportsScopedRegistry) {\n this.renderOptions.creationScope = createdRoot;\n }\n\n if (createdRoot instanceof ShadowRoot) {\n adoptStyles(createdRoot, elementStyles);\n this.renderOptions.renderBefore = this.renderOptions.renderBefore || createdRoot.firstChild;\n }\n\n return createdRoot;\n }\n\n createScopedElement(tagName) {\n const root = supportsScopedRegistry ? this.shadowRoot : document;\n // @ts-ignore polyfill to support createElement on shadowRoot is loaded\n return root.createElement(tagName);\n }\n\n /**\n * Defines a scoped element.\n *\n * @param {string} tagName\n * @param {typeof HTMLElement} klass\n */\n defineScopedElement(tagName, klass) {\n const registeredClass = this.registry.get(tagName);\n if (registeredClass && supportsScopedRegistry === false && registeredClass !== klass) {\n // eslint-disable-next-line no-console\n console.error(\n [\n `You are trying to re-register the \"${tagName}\" custom element with a different class via ScopedElementsMixin.`,\n 'This is only possible with a CustomElementRegistry.',\n 'Your browser does not support this feature so you will need to load a polyfill for it.',\n 'Load \"@webcomponents/scoped-custom-element-registry\" before you register ANY web component to the global customElements registry.',\n 'e.g. add \"<script src=\"/node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js\"></script>\" as your first script tag.',\n 'For more details you can visit https://open-wc.org/docs/development/scoped-elements/',\n ].join('\\n'),\n );\n }\n if (!registeredClass) {\n return this.registry.define(tagName, klass);\n }\n return this.registry.get(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n getScopedTagName(tagName) {\n // @ts-ignore\n return this.constructor.getScopedTagName(tagName);\n }\n\n /**\n * @deprecated use the native el.tagName instead\n *\n * @param {string} tagName\n * @returns {string} the tag name\n */\n // eslint-disable-next-line class-methods-use-this\n static getScopedTagName(tagName) {\n // @ts-ignore\n return this.__registry.get(tagName) ? tagName : undefined;\n }\n };\n\nexport const ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);\n"],"names":["getScopedElementsTemplate","template","scopedElements","wrapperTagName","getWrapperUniqueName","Scope","ScopedElementsTestWrapper","customElements","define","appliedClassMixins","WeakMap","version","versions","window","scopedElementsVersions","includes","push","supportsScopedRegistry","ShadowRoot","prototype","createElement","ScopedElementsMixin","mixin","superclass","_e","_class","super","this","renderOptions","undefined","_this","_inherits","_createClass","key","get","constructor","__registry","set","registry","value","createRenderRoot","_this$constructor","shadowRootOptions","elementStyles","Object","hasOwnProperty","call","CustomElementRegistry","_i","_Object$entries","entries","_Object$entries$_i","_slicedToArray","tagName","klass","defineScopedElement","options","_objectSpread","mode","createdRoot","attachShadow","creationScope","adoptStyles","renderBefore","firstChild","createScopedElement","shadowRoot","document","registeredClass","console","error","concat","join","getScopedTagName","scopedElementsVersion","__shadowRootOptions","__elementStyles","styles","superClass","getPrototypeOf","wasMixinPreviouslyApplied","mixedClass","m","scopedElement","_this2","_n","firstUpdated","_changed","keys","forEach","render","properties","type","LitElement","l","counter","tag"],"mappings":"4lKA2EO,QAASA,CAAAA,CAAAA,CAA0BC,EAAUC,CAClD,CAAA,CAAA,GAAMC,CAAAA,EAAiBC,EACvB,CAAA,CAAA,CAAA,GAAMC,CAAAA,+IAAcC,CAGpBC,EAAAA,cAAAA,CAAeC,OAAOL,CAAgBE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,CACE,CAAA,MAAO/D,MAAK1B,QACb,EAAA,KAAAgC,GAAA,cAAAC,GAAA,CA7BD,SAAAA,IAAA,CAAWyD,CACT,MAAO,CACLzF,cAAAA,CAAgB,CAAE0F,IAAMhD,CAAAA,MAAAA,CAAAA,CACxB3C,SAAU,CAAE2F,IAAAA,CAAMhD,QAErB,EAED,MARsCvB,CAAAA,CAAoBwE,IAsCtDzF,EAAuB,CAAA,QAAvBA,CAAAA,CAAuB0F,CAAA,CAC3B,IAD4BC,CAAAA,4DAAU,CACtC,CAAA,GAAMC,CAAAA,yCAAsCD,CAAAA,CAAAA,CAE5C,WAAgClE,EAA5BtB,GAAAA,cAAAA,CAAe2B,IAAI8D,CACd5F,CAAAA,CAAAA,EAAAA,CAAqB2F,EAAU,CAGjCC,CAAAA,CAAAA,CAAG","x_google_ignoreList":[0,1,2]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NileGridBody } from './nile-grid-body';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-grid-body/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { NileGridBody } from './nile-grid-body';"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright Aquera Inc 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* GridBody CSS
|
|
9
|
-
*/
|
|
10
|
-
export declare const styles: import("lit").CSSResult;
|
|
11
|
-
declare const _default: import("lit").CSSResult[];
|
|
12
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright Aquera Inc 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
import { css } from 'lit';
|
|
8
|
-
/**
|
|
9
|
-
* GridBody CSS
|
|
10
|
-
*/
|
|
11
|
-
export const styles = css `
|
|
12
|
-
:host{
|
|
13
|
-
display: grid;
|
|
14
|
-
overflow:auto;
|
|
15
|
-
box-sizing:border-box;
|
|
16
|
-
border: 1px solid #eaecf0;
|
|
17
|
-
border-radius: 8px;
|
|
18
|
-
background-color: var(--nile-colors-white-base);
|
|
19
|
-
border: 1pc solid var(--nile-colors-neutral-400);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
::slotted(*) {
|
|
23
|
-
box-sizing:border-box;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
export default [styles];
|
|
27
|
-
//# sourceMappingURL=nile-grid-body.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nile-grid-body.css.js","sourceRoot":"","sources":["../../../src/nile-grid-body/nile-grid-body.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2025\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * GridBody CSS\n */\nexport const styles = css`\n\t:host{\n\t\tdisplay: grid;\n\t\toverflow:auto;\n\t\tbox-sizing:border-box;\n\t\tborder: 1px solid #eaecf0;\n\t\tborder-radius: 8px;\n\t\tbackground-color: var(--nile-colors-white-base);\n\t\tborder: 1pc solid var(--nile-colors-neutral-400);\n\t}\n\t\n\t::slotted(*) {\n\t\tbox-sizing:border-box;\n\t}\n`;\n\nexport default [styles];"]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright Aquera Inc 2025
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the BSD-3-Clause license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
import { CSSResultArray, TemplateResult } from 'lit';
|
|
8
|
-
import NileElement from '../internal/nile-element';
|
|
9
|
-
/**
|
|
10
|
-
* Nile grid-body component.
|
|
11
|
-
*
|
|
12
|
-
* @tag nile-grid-body
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export declare class NileGridBody extends NileElement {
|
|
16
|
-
/**
|
|
17
|
-
* The styles for nile-grid-body
|
|
18
|
-
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
|
19
|
-
*/
|
|
20
|
-
static get styles(): CSSResultArray;
|
|
21
|
-
connectedCallback(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Render method
|
|
24
|
-
* @slot This is a slot test
|
|
25
|
-
*/
|
|
26
|
-
render(): TemplateResult;
|
|
27
|
-
}
|
|
28
|
-
export default NileGridBody;
|
|
29
|
-
declare global {
|
|
30
|
-
interface HTMLElementTagNameMap {
|
|
31
|
-
'nile-grid-body': NileGridBody;
|
|
32
|
-
}
|
|
33
|
-
}
|