@aquera/nile-elements 2.0.22 → 2.0.23
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/README.md +72 -34
- package/demo/nxtgen-classes.css +24 -4
- package/demo/nxtgen-dark.css +30 -16
- package/demo/nxtgen-properties.css +9 -2
- package/demo/nxtgen-utilities.css +31 -4
- package/demo/nxtgen.css +8 -4
- package/demo/utilities.css +2 -2
- package/demo/variables.css +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1966 -1022
- package/dist/nile-app-shell/index.cjs.js +1 -1
- package/dist/nile-app-shell/index.esm.js +1 -1
- package/dist/nile-app-shell/nile-app-shell.cjs.js +1 -1
- package/dist/nile-app-shell/nile-app-shell.cjs.js.map +1 -1
- package/dist/nile-app-shell/nile-app-shell.css.cjs.js +1 -1
- package/dist/nile-app-shell/nile-app-shell.css.cjs.js.map +1 -1
- package/dist/nile-app-shell/nile-app-shell.css.esm.js +72 -65
- package/dist/nile-app-shell/nile-app-shell.esm.js +60 -31
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js +1 -1
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js.map +1 -1
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.esm.js +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js.map +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js.map +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.esm.js +25 -7
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.esm.js +2 -2
- package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
- package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
- package/dist/nile-button-filter/nile-button-filter.css.cjs.js +1 -1
- package/dist/nile-button-filter/nile-button-filter.css.cjs.js.map +1 -1
- package/dist/nile-button-filter/nile-button-filter.css.esm.js +1 -1
- package/dist/nile-button-filter/nile-button-filter.esm.js +2 -4
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +9 -8
- package/dist/nile-color-picker/nile-color-picker.css.cjs.js +1 -1
- package/dist/nile-color-picker/nile-color-picker.css.cjs.js.map +1 -1
- package/dist/nile-color-picker/nile-color-picker.css.esm.js +1 -1
- package/dist/nile-combobox/nile-combobox.css.cjs.js +1 -1
- package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -1
- package/dist/nile-combobox/nile-combobox.css.esm.js +1 -1
- package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js +1 -1
- package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-command-menu-item/nile-command-menu-item.css.esm.js +5 -1
- package/dist/nile-context-menu/nile-context-menu.css.cjs.js +1 -1
- package/dist/nile-context-menu/nile-context-menu.css.cjs.js.map +1 -1
- package/dist/nile-context-menu/nile-context-menu.css.esm.js +2 -3
- package/dist/nile-dropdown-switcher/index.cjs.js +2 -0
- package/dist/nile-dropdown-switcher/index.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher/index.esm.js +1 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js +2 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js +2 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.esm.js +39 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.esm.js +1 -0
- package/dist/nile-dropdown-switcher-group/index.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-group/index.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-group/index.esm.js +1 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.esm.js +37 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.esm.js +8 -0
- package/dist/nile-dropdown-switcher-header/index.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-header/index.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-header/index.esm.js +1 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.esm.js +91 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.esm.js +33 -0
- package/dist/nile-dropdown-switcher-item/index.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-item/index.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-item/index.esm.js +1 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.esm.js +102 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.esm.js +35 -0
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +2 -2
- package/dist/nile-form-group/nile-form-group.css.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.css.cjs.js.map +1 -1
- package/dist/nile-form-group/nile-form-group.css.esm.js +3 -3
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.esm.js +20 -4
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.esm.js +3 -3
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.esm.js +3 -3
- package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js +1 -1
- package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js.map +1 -1
- package/dist/nile-markdown-editor/nile-markdown-editor.css.esm.js +4 -4
- package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
- package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
- package/dist/nile-menu/nile-menu.css.esm.js +1 -2
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.esm.js +6 -6
- package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js +1 -1
- package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js.map +1 -1
- package/dist/nile-nav-tab/nile-nav-tab.css.esm.js +3 -3
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js +1 -1
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js.map +1 -1
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.esm.js +15 -12
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +2 -2
- package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.css.esm.js +10 -0
- package/dist/nile-pagination/nile-pagination.esm.js +14 -14
- package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
- package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
- package/dist/nile-side-bar/nile-side-bar.css.cjs.js +1 -1
- package/dist/nile-side-bar/nile-side-bar.css.cjs.js.map +1 -1
- package/dist/nile-side-bar/nile-side-bar.css.esm.js +16 -14
- package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.esm.js +11 -4
- package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +8 -3
- package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
- package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +181 -25
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +10 -3
- package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.esm.js +10 -5
- package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
- package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
- package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +1 -1
- package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +52 -9
- package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +4 -4
- package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +1 -1
- package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +53 -8
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js +1 -1
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.esm.js +13 -4
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +4 -4
- package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js +1 -1
- package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.esm.js +9 -6
- package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.esm.js +12 -5
- package/dist/nile-side-bar-header-switcher/index.cjs.js +2 -0
- package/dist/nile-side-bar-header-switcher/index.cjs.js.map +1 -0
- package/dist/nile-side-bar-header-switcher/index.esm.js +1 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js +2 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js.map +1 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js +2 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js.map +1 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.esm.js +83 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.esm.js +24 -0
- package/dist/nile-side-bar-search/index.cjs.js +2 -0
- package/dist/nile-side-bar-search/index.cjs.js.map +1 -0
- package/dist/nile-side-bar-search/index.esm.js +1 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js +2 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js.map +1 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js +2 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js.map +1 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.css.esm.js +103 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.esm.js +25 -0
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +7 -5
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +2 -2
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +3 -3
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +6 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-app-shell/nile-app-shell.css.js +70 -63
- package/dist/src/nile-app-shell/nile-app-shell.css.js.map +1 -1
- package/dist/src/nile-app-shell/nile-app-shell.d.ts +40 -7
- package/dist/src/nile-app-shell/nile-app-shell.js +192 -41
- package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -1
- package/dist/src/nile-app-shell/nile-app-shell.test.d.ts +2 -0
- package/dist/src/nile-app-shell/nile-app-shell.test.js +272 -1020
- package/dist/src/nile-app-shell/nile-app-shell.test.js.map +1 -1
- package/dist/src/nile-app-shell/zz-layout.test.d.ts +15 -0
- package/dist/src/nile-app-shell/zz-layout.test.js +253 -0
- package/dist/src/nile-app-shell/zz-layout.test.js.map +1 -0
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js +1 -1
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js.map +1 -1
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js +24 -6
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js.map +1 -1
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.d.ts +8 -2
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js +56 -2
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js.map +1 -1
- package/dist/src/nile-button-filter/nile-button-filter.css.js +1 -1
- package/dist/src/nile-button-filter/nile-button-filter.css.js.map +1 -1
- package/dist/src/nile-button-filter/nile-button-filter.js +1 -3
- package/dist/src/nile-button-filter/nile-button-filter.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.css.js +9 -8
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-color-picker/nile-color-picker.css.js +3 -3
- package/dist/src/nile-color-picker/nile-color-picker.css.js.map +1 -1
- package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
- package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
- package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js +5 -1
- package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js.map +1 -1
- package/dist/src/nile-context-menu/nile-context-menu.css.js +2 -4
- package/dist/src/nile-context-menu/nile-context-menu.css.js.map +1 -1
- package/dist/src/nile-dropdown-switcher/index.d.ts +1 -0
- package/dist/src/nile-dropdown-switcher/index.js +2 -0
- package/dist/src/nile-dropdown-switcher/index.js.map +1 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.d.ts +10 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js +49 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js.map +1 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.d.ts +101 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js +463 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js.map +1 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.d.ts +4 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js +506 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-group/index.d.ts +1 -0
- package/dist/src/nile-dropdown-switcher-group/index.js +2 -0
- package/dist/src/nile-dropdown-switcher-group/index.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.d.ts +12 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js +49 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.d.ts +37 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js +72 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-header/index.d.ts +1 -0
- package/dist/src/nile-dropdown-switcher-header/index.js +2 -0
- package/dist/src/nile-dropdown-switcher-header/index.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.d.ts +12 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js +103 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.d.ts +46 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js +105 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-item/index.d.ts +1 -0
- package/dist/src/nile-dropdown-switcher-item/index.js +2 -0
- package/dist/src/nile-dropdown-switcher-item/index.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.d.ts +10 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js +112 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.d.ts +55 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js +154 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js.map +1 -0
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js +2 -2
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
- package/dist/src/nile-form-group/nile-form-group.css.js +1 -1
- package/dist/src/nile-form-group/nile-form-group.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +20 -4
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js +1 -1
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js +3 -3
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js.map +1 -1
- package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js +4 -4
- package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js.map +1 -1
- package/dist/src/nile-menu/nile-menu.css.js +1 -2
- package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
- package/dist/src/nile-menu-item/nile-menu-item.css.js +4 -4
- package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
- package/dist/src/nile-nav-tab/nile-nav-tab.css.js +3 -3
- package/dist/src/nile-nav-tab/nile-nav-tab.css.js.map +1 -1
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js +15 -12
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js.map +1 -1
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js +111 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js.map +1 -1
- package/dist/src/nile-option/nile-option.css.js +2 -2
- package/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.css.js +10 -0
- package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.d.ts +2 -0
- package/dist/src/nile-pagination/nile-pagination.js +13 -9
- package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
- package/dist/src/nile-side-bar/nile-side-bar.css.js +14 -12
- package/dist/src/nile-side-bar/nile-side-bar.css.js.map +1 -1
- package/dist/src/nile-side-bar/nile-side-bar.d.ts +17 -0
- package/dist/src/nile-side-bar/nile-side-bar.js +68 -12
- package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
- package/dist/src/nile-side-bar/nile-side-bar.test.d.ts +23 -0
- package/dist/src/nile-side-bar/nile-side-bar.test.js +1614 -1
- package/dist/src/nile-side-bar/nile-side-bar.test.js.map +1 -1
- package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js +11 -4
- package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +8 -3
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +7 -5
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +7 -5
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +1 -1
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +179 -23
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +15 -0
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +82 -2
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.d.ts +9 -0
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js +201 -0
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js.map +1 -0
- package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +8 -3
- package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +1 -1
- package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +50 -7
- package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
- package/dist/src/nile-side-bar-group/nile-side-bar-group.d.ts +35 -0
- package/dist/src/nile-side-bar-group/nile-side-bar-group.js +90 -3
- package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +1 -1
- package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +52 -7
- package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js +11 -2
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js.map +1 -1
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +11 -2
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +21 -15
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +1 -1
- package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js +7 -4
- package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js.map +1 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js +22 -17
- package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js.map +1 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.d.ts +4 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js +143 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js.map +1 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +10 -3
- package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +1 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +7 -5
- package/dist/src/nile-side-bar-header/nile-side-bar-header.js +7 -5
- package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
- package/dist/src/nile-side-bar-header-switcher/index.d.ts +1 -0
- package/dist/src/nile-side-bar-header-switcher/index.js +2 -0
- package/dist/src/nile-side-bar-header-switcher/index.js.map +1 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.d.ts +14 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js +97 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js.map +1 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.d.ts +38 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js +86 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js.map +1 -0
- package/dist/src/nile-side-bar-search/index.d.ts +1 -0
- package/dist/src/nile-side-bar-search/index.js +2 -0
- package/dist/src/nile-side-bar-search/index.js.map +1 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.css.d.ts +15 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js +118 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js.map +1 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.d.ts +56 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.js +150 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.js.map +1 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.test.d.ts +3 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js +153 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js.map +1 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +7 -5
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +2 -2
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +3 -3
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.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/dist/version.cjs.js +1 -1
- package/dist/version.cjs.js.map +1 -1
- package/dist/version.esm.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/nile-app-shell/nile-app-shell.css.ts +70 -63
- package/src/nile-app-shell/nile-app-shell.test.ts +332 -1227
- package/src/nile-app-shell/nile-app-shell.ts +223 -44
- package/src/nile-app-shell/zz-layout.test.ts +271 -0
- package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.ts +1 -5
- package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.ts +24 -6
- package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.ts +62 -2
- package/src/nile-button-filter/nile-button-filter.css.ts +1 -1
- package/src/nile-button-filter/nile-button-filter.ts +1 -3
- package/src/nile-calendar/nile-calendar.css.ts +9 -8
- package/src/nile-color-picker/nile-color-picker.css.ts +3 -3
- package/src/nile-combobox/nile-combobox.css.ts +1 -1
- package/src/nile-command-menu-item/nile-command-menu-item.css.ts +5 -1
- package/src/nile-context-menu/nile-context-menu.css.ts +2 -4
- package/src/nile-dropdown-switcher/index.ts +1 -0
- package/src/nile-dropdown-switcher/nile-dropdown-switcher.css.ts +51 -0
- package/src/nile-dropdown-switcher/nile-dropdown-switcher.test.ts +570 -0
- package/src/nile-dropdown-switcher/nile-dropdown-switcher.ts +502 -0
- package/src/nile-dropdown-switcher-group/index.ts +1 -0
- package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.ts +51 -0
- package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.ts +78 -0
- package/src/nile-dropdown-switcher-header/index.ts +1 -0
- package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.ts +105 -0
- package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.ts +105 -0
- package/src/nile-dropdown-switcher-item/index.ts +1 -0
- package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts +114 -0
- package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts +151 -0
- package/src/nile-filter-chip/nile-filter-chip.css.ts +2 -2
- package/src/nile-form-group/nile-form-group.css.ts +1 -1
- package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +20 -4
- package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts +1 -1
- package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts +3 -3
- package/src/nile-markdown-editor/nile-markdown-editor.css.ts +4 -4
- package/src/nile-menu/nile-menu.css.ts +1 -2
- package/src/nile-menu-item/nile-menu-item.css.ts +4 -4
- package/src/nile-nav-tab/nile-nav-tab.css.ts +3 -3
- package/src/nile-nav-tab-group/nile-nav-tab-group.css.ts +15 -12
- package/src/nile-nav-tab-group/nile-nav-tab-group.test.ts +130 -0
- package/src/nile-option/nile-option.css.ts +2 -2
- package/src/nile-pagination/nile-pagination.css.ts +10 -0
- package/src/nile-pagination/nile-pagination.ts +14 -9
- package/src/nile-side-bar/nile-side-bar.css.ts +14 -12
- package/src/nile-side-bar/nile-side-bar.test.ts +1854 -2
- package/src/nile-side-bar/nile-side-bar.ts +72 -15
- package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.ts +11 -4
- package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +8 -3
- package/src/nile-side-bar-footer/nile-side-bar-footer.ts +7 -5
- package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +179 -23
- package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.ts +219 -0
- package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +84 -2
- package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +8 -3
- package/src/nile-side-bar-group/nile-side-bar-group.css.ts +50 -7
- package/src/nile-side-bar-group/nile-side-bar-group.ts +100 -2
- package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +52 -7
- package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts +11 -2
- package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +22 -19
- package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts +7 -4
- package/src/nile-side-bar-header/nile-side-bar-app-shell.test.ts +22 -17
- package/src/nile-side-bar-header/nile-side-bar-header-surface.test.ts +175 -0
- package/src/nile-side-bar-header/nile-side-bar-header.css.ts +10 -3
- package/src/nile-side-bar-header/nile-side-bar-header.ts +7 -5
- package/src/nile-side-bar-header-switcher/index.ts +1 -0
- package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts +99 -0
- package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts +88 -0
- package/src/nile-side-bar-search/index.ts +1 -0
- package/src/nile-side-bar-search/nile-side-bar-search.css.ts +120 -0
- package/src/nile-side-bar-search/nile-side-bar-search.test.ts +175 -0
- package/src/nile-side-bar-search/nile-side-bar-search.ts +160 -0
- package/src/nile-slide-toggle/nile-slide-toggle.css.ts +1 -1
- package/src/nile-tooltip/nile-tooltip.css.ts +7 -5
- package/src/nile-virtual-select/nile-virtual-select.css.ts +1 -1
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +2 -2
- package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
- package/test-timings.json +0 -1
- package/vscode-html-custom-data.json +349 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar.cjs.js","sources":["../../../src/nile-side-bar/nile-side-bar.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 { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar component.\n *\n * @tag nile-side-bar\n *\n * @attr position - Position of the sidebar (\"left\" | \"right\"). Defaults to \"left\".\n * @attr width - Expanded width of the sidebar (px).\n * @attr collapsed-width - Collapsed width of the sidebar (px).\n * @attr overlay - When set, the sidebar is taken out of normal flow and floats\n * on top of adjacent content, so expanding it overlays the page instead of\n * pushing siblings sideways.\n *\n * @event nile-toggle - Fired after the collapsed state changes (via the built-in\n * expand button or the public expand()/collapse()/toggle() methods).\n * `event.detail.collapsed` is the new state.\n *\n * @method expand() - Expand the sidebar.\n * @method collapse() - Collapse the sidebar.\n * @method toggle(force?) - Toggle, or force a specific collapsed state.\n */\n@customElement('nile-side-bar')\nexport class NileSideBar extends NileElement {\n @property({ type: String, reflect: true, attribute: true })position: 'left' | 'right' = 'left';\n\n @property({ type: Boolean, reflect: true, attribute: true })collapsed: boolean = false;\n\n @property({ type: Boolean, reflect: true, attribute: true })overlay: boolean = false;\n\n @property({ type: Boolean, reflect: true, attribute: true })fullHeight: boolean = false;\n \n @property({ type: Number, attribute: true })width: number | null = null;\n\n \n @property({ type: Number, attribute: true })collapsedWidth: number | null = null;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n protected updated(changedProps: Map<string, unknown>) {\n super.updated(changedProps);\n\n if (changedProps.has('collapsed')) {\n this.querySelectorAll<NileElement>(\n `\n nile-side-bar-logo,\n nile-side-bar-footer-item,\n nile-side-bar-group-item,\n nile-side-bar-group,\n nile-side-bar-header,\n nile-side-bar-group-item-text,\n nile-side-bar-group-item-icon,\n nile-side-bar-expand\n `\n ).forEach(el => el.toggleAttribute('collapsed', this.collapsed));\n }\n \n\n if (changedProps.has('width') && this.width !== null) {\n this.style.setProperty('--sidebar-width', `${this.width}px`);\n }\n if (changedProps.has('collapsedWidth') && this.collapsedWidth !== null) {\n this.style.setProperty('--sidebar-collapsed-width', `${this.collapsedWidth}px`);\n }\n }\n public expand(): void {\n this.setCollapsed(false);\n }\n public collapse(): void {\n this.setCollapsed(true);\n }\n\n public toggle(force?: boolean): void {\n this.setCollapsed(force ?? !this.collapsed);\n }\n\n private setCollapsed(value: boolean): void {\n if (this.collapsed === value) return;\n this.collapsed = value;\n this.emit('nile-toggle', { collapsed: value });\n }\n\n public render(): TemplateResult {\n return html`\n <slot name=\"header\" part=\"header\"></slot>\n <div class=\"scroll-container\" part=\"scroll-container\">\n <slot></slot>\n </div>\n <slot name=\"footer\" part=\"footer\"></slot>\n `;\n }\n \n}\n\nexport default NileSideBar;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar': NileSideBar;\n }\n}\n"],"names":["NileSideBar","o","constructor","this","position","collapsed","overlay","fullHeight","width","collapsedWidth","_this","_inherits","_r","_createClass","key","value","updated","changedProps","super","has","querySelectorAll","forEach","el","toggleAttribute","style","setProperty","concat","expand","setCollapsed","collapse","toggle","force","emit","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","property","type","String","reflect","attribute","prototype","Boolean","Number","customElement"],"mappings":"+7HAiCaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCACsDC,KAAAA,CAAQC,QAAAA,CAAqB,MAE5BD,CAAAA,KAAAA,CAASE,SAAY,CAAA,CAAA,CAAA,CAErBF,KAAAA,CAAOG,OAAAA,CAAAA,CAAY,EAEnBH,KAAAA,CAAUI,UAAAA,CAAAA,CAAY,CAEtCJ,CAAAA,KAAAA,CAAKK,KAAkB,CAAA,IAAA,CAGvBL,KAAAA,CAAcM,cAAAA,CAAkB,IA2D7E,QAAAC,KAAA,EAzDQC,SAAA,CAAAV,CAAA,CAAAW,EAAA,SAAAC,YAAA,CAAAZ,CAAA,GAAAa,GAAA,WAAAC,KAAA,CAIG,SAAAC,OAAAA,CAAQC,CAAAA,CAAAA,KAAAA,MAAAA,MAChBC,aAAAA,CAAAA,CAAAA,oBAAcD,CAEVA,GAAAA,CAAAA,CAAaE,GAAI,CAAA,WAAA,CAAA,EACnBhB,IAAKiB,CAAAA,gBAAAA,CACH,2SAUAC,CAAAA,CAAAA,OAAAA,CAAQC,SAAAA,CAAMA,QAAAA,CAAAA,CAAAA,CAAGC,eAAgB,CAAA,WAAA,CAAapB,OAAKE,SAInDY,CAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAaE,GAAI,CAAA,OAAA,CAAA,EAA2B,IAAfhB,GAAAA,IAAAA,CAAKK,KACpCL,EAAAA,IAAAA,CAAKqB,KAAMC,CAAAA,WAAAA,CAAY,iBAAmB,IAAAC,MAAA,CAAGvB,IAAKK,CAAAA,KAAAA,MAAAA,CAAAA,CAEhDS,CAAaE,CAAAA,GA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AAA,CAAAA,CAAAA,CAAA8C,UAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAEnCN,EAAA,CAA3DC,CAAAA,CAAS,CAAEC,IAAMK,CAAAA,OAAAA,CAASH,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAAkC7C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA8C,UAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAE3BN,EAAA,CAA3DC,CAAAA,CAAS,CAAEC,IAAAA,CAAMK,QAASH,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAAgC7C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA8C,UAAA,SAAA,CAAA,IAAA,EAAA,CAAA,CAEzBN,CAAA,CAAA,CAA3DC,EAAS,CAAEC,IAAAA,CAAMK,QAASH,OAAS,CAAA,CAAA,CAAA,CAAMC,WAAW,CAAmC7C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA8C,SAAA,CAAA,YAAA,CAAA,IAAA,IAE5CN,CAAA,CAAA,CAA3CC,EAAS,CAAEC,IAAAA,CAAMM,OAAQH,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC7C,CAAA8C,CAAAA,SAAAA,CAAA,YAAA,EAG5BN,CAAAA,CAAAA,CAAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,KAAMM,MAAQH,CAAAA,SAAAA,CAAAA,CAAW,KAA4C7C,CAAA8C,CAAAA,SAAAA,CAAA,qBAAA,EAZtE9C,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAWwC,EAAA,CADvBS,CAAAA,CAAc,kBACFjD"}
|
|
1
|
+
{"version":3,"file":"nile-side-bar.cjs.js","sources":["../../../src/nile-side-bar/nile-side-bar.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 { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar.css';\nimport NileElement from '../internal/nile-element';\n\n/** The sidebar descendants whose layout keys off their own `[collapsed]` attribute. */\nconst COLLAPSIBLE = [\n 'nile-side-bar-logo',\n 'nile-side-bar-header-switcher',\n 'nile-side-bar-search',\n 'nile-side-bar-footer-item',\n 'nile-side-bar-group-item',\n 'nile-side-bar-group',\n 'nile-side-bar-header',\n 'nile-side-bar-group-item-text',\n 'nile-side-bar-group-item-icon',\n 'nile-side-bar-expand',\n];\n\n/** The elements that own collapsed state for what is inside them. */\nconst COLLAPSE_CONTAINERS = 'nile-side-bar, nile-app-shell-side-nav';\n\n/**\n * Nile side-bar component.\n *\n * @tag nile-side-bar\n *\n * @attr position - Position of the sidebar (\"left\" | \"right\"). Defaults to \"left\".\n * @attr width - Expanded width of the sidebar (px).\n * @attr collapsed-width - Collapsed width of the sidebar (px).\n * @attr overlay - When set, the sidebar is taken out of normal flow and floats\n * on top of adjacent content, so expanding it overlays the page instead of\n * pushing siblings sideways.\n * @attr searchable - Shows a slotted nile-side-bar-search's trigger (otherwise it renders\n * nothing). The trigger opens an internal nile-command-menu filled from that element's\n * `commands` slot; it does not add search behaviour of its own.\n * @attr searchPlaceholder - Placeholder for a slotted nile-side-bar-search, overriding its own\n * default. Has no effect when `searchable` is unset.\n *\n * @event nile-toggle - Fired after the collapsed state changes (via the built-in\n * expand button or the public expand()/collapse()/toggle() methods).\n * `event.detail.collapsed` is the new state.\n *\n * @method expand() - Expand the sidebar.\n * @method collapse() - Collapse the sidebar.\n * @method toggle(force?) - Toggle, or force a specific collapsed state.\n */\n@customElement('nile-side-bar')\nexport class NileSideBar extends NileElement {\n @property({ type: String, reflect: true, attribute: true })position: 'left' | 'right' = 'left';\n\n @property({ type: Boolean, reflect: true, attribute: true })collapsed: boolean = false;\n\n @property({ type: Boolean, reflect: true, attribute: true })overlay: boolean = false;\n\n @property({ type: Boolean, reflect: true, attribute: true })fullHeight: boolean = false;\n \n @property({ type: Number, attribute: true })width: number | null = null;\n\n \n @property({ type: Number, attribute: true })collapsedWidth: number | null = null;\n\n /** Shows a slotted nile-side-bar-search's trigger. Unset (the default), it renders nothing. */\n @property({ type: Boolean, reflect: true, attribute: true })searchable: boolean = false;\n\n /** Placeholder for a slotted nile-side-bar-search, overriding its own default. */\n @property({ type: String, reflect: true, attribute: true })searchPlaceholder?: string;\n\n private collapsedObserver?: MutationObserver;\n private collapsedApplied?: boolean;\n\n private ownsCollapsed(el: Element): boolean {\n return el.parentElement?.closest(COLLAPSE_CONTAINERS) === this;\n }\n\n private applyCollapsed(root: Element, collapsed: boolean): void {\n const selector = COLLAPSIBLE.join(',');\n const found = [...root.querySelectorAll(selector)];\n if (root.matches(selector)) found.unshift(root);\n for (const el of found) {\n if (this.ownsCollapsed(el)) el.toggleAttribute('collapsed', collapsed);\n }\n }\n\n private pushCollapsed(): void {\n this.collapsedApplied = this.collapsed;\n this.applyCollapsed(this, this.collapsedApplied);\n }\n\n private onCollapsedMutations = (records: MutationRecord[]): void => {\n for (const record of records) {\n for (const node of record.addedNodes) {\n if (node instanceof Element) this.applyCollapsed(node, this.collapsed);\n }\n }\n };\n\n public connectedCallback(): void {\n super.connectedCallback();\n this.collapsedObserver = new MutationObserver(this.onCollapsedMutations);\n this.collapsedObserver.observe(this, { childList: true, subtree: true });\n // Reconnected (moved) with children already in place: re-apply the current state.\n if (this.hasUpdated) this.pushCollapsed();\n }\n\n public disconnectedCallback(): void {\n super.disconnectedCallback();\n this.collapsedObserver?.disconnect();\n this.collapsedObserver = undefined;\n }\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n protected updated(changedProps: Map<string, unknown>) {\n super.updated(changedProps);\n\n if (this.collapsed !== this.collapsedApplied) this.pushCollapsed();\n\n if (changedProps.has('width') && this.width !== null) {\n this.style.setProperty('--sidebar-width', `${this.width}px`);\n }\n if (changedProps.has('collapsedWidth') && this.collapsedWidth !== null) {\n this.style.setProperty('--sidebar-collapsed-width', `${this.collapsedWidth}px`);\n }\n }\n public expand(): void {\n this.setCollapsed(false);\n }\n public collapse(): void {\n this.setCollapsed(true);\n }\n\n public toggle(force?: boolean): void {\n this.setCollapsed(force ?? !this.collapsed);\n }\n\n private setCollapsed(value: boolean): void {\n if (this.collapsed === value) return;\n this.collapsed = value;\n this.emit('nile-toggle', { collapsed: value });\n }\n\n public render(): TemplateResult {\n return html`\n <slot name=\"header\" part=\"header\"></slot>\n <div class=\"scroll-container\" part=\"scroll-container\">\n <slot></slot>\n </div>\n <slot name=\"footer\" part=\"footer\"></slot>\n `;\n }\n \n}\n\nexport default NileSideBar;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar': NileSideBar;\n }\n}\n"],"names":["COLLAPSIBLE","_export","NileSideBar","_r","a","this","position","collapsed","overlay","fullHeight","width","collapsedWidth","searchable","onCollapsedMutations","records","_iterator","_createForOfIteratorHelper","_step","s","n","done","record","addedNodes","_iterator2","_step2","node","Element","applyCollapsed","err","e","f","_this","_inherits","_createClass","key","value","ownsCollapsed","el","parentElement","closest","root","selector","join","found","_toConsumableArray","querySelectorAll","matches","unshift","_iterator3","_step3","toggleAttribute","pushCollapsed","collapsedApplied","connectedCallback","super","collapsedObserver","MutationObserver","observe","childList","subtree","hasUpdated","disconnectedCallback","disconnect","undefined","updated","changedProps","has","style","setProperty","concat","expand","setCollapsed","collapse","toggle","force","emit","render","html","_templateObject","_taggedTemplateLiteral","__decorate","get","styles","NileElement","property","type","String","reflect","attribute","prototype","Boolean","Number","customElement"],"mappings":"kmLAaMA,CAAAA,CAAc,CAClB,oBAAA,CACA,+BACA,CAAA,sBAAA,CACA,2BACA,CAAA,0BAAA,CACA,qBACA,CAAA,sBAAA,CACA,+BACA,CAAA,+BAAA,CACA,sBAgCK,CAAA,CAAAC,OAAA,KAAMC,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEACsDC,EAAAA,KAAAA,CAAQC,QAAqB,CAAA,MAAA,CAE5B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CAAkCtF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAuF,SAAA,CAAA,mBAAA,CAAA,IAAA,EAlB3EvF,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAW8E,CAAA,CAAA,CADvBY,CAAc,CAAA,eAAA,CAAA,CAAA,CACF1F"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,o;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",o=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n \n top: 0;\n /* NxtGen: 260 / 72; enterprise keeps 240 / 70. Keep in step with nile-app-shell.css.ts's track. */\n width: 260px;\n /* A transparent shadow, not the none keyword: the overlay rule below combines it with the elevation in a comma-separated box-shadow list, where none isn't a valid list item. */\n box-shadow: 0 0 0 0 transparent;\n display: flex;\n flex-direction: column;\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-tertiary));\n height: 100%;\n overflow: hidden; \n transition: width 0.25s ease, transform 0.25s ease;\n z-index: 1000;\n}\n\n \n/* NxtGen has no visible root border (paint disabled); enterprise keeps its own real 1px border. */\n:host([position='left']) {\n left: 0;\n border-right: var(--nile-border-width-1, var(--ng-border-width-0)) solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n}\n\n:host([position='right']) {\n right: 0;\n border-left: var(--nile-border-width-1, var(--ng-border-width-0)) solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n}\n\n \n:host([collapsed]) {\n width: 72px;\n}\n\n \n:host([position='right'][collapsed]) {\n transform: translateX(calc(var(--sidebar-width) - var(--sidebar-collapsed-width)));\n}\n\n:host([overlay]) {\n position: var(--sidebar-overlay-position, absolute);\n top: 0;\n bottom: 0;\n height: 100%;\n}\n\n:host([overlay][position='left']) {\n left: 0;\n}\n\n:host([overlay][position='right']) {\n right: 0;\n}\n\n/* Elevate while expanded so it reads as floating above the page. */\n:host([overlay]:not([collapsed])) {\n box-shadow: 0 0 0 0 transparent, var(\n --sidebar-overlay-shadow,\n 0px 8px 24px 0px rgba(119, 125, 130, 0.25)\n );\n}\n\n:host {\n scrollbar-width: thin;\n scrollbar-color: #64748b transparent;\n}\n\n:host::-webkit-scrollbar {\n width: 6px;\n}\n:host::-webkit-scrollbar-track {\n background: transparent;\n}\n:host::-webkit-scrollbar-thumb {\n background-color: #64748b;\n border-radius: 10px;\n}\n\n \n.scroll-container {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n}\n\n \n::slotted(nile-side-bar-header) {\n flex-shrink: 0;\n /* The header takes the sidebar's own surface (bg-tertiary on NxtGen, neutral-100 on enterprise) by painting nothing, so no token is repeated here. This is outer-context CSS, so it outranks the header's own :host background; a header outside a sidebar, and any author rule on the header itself, keep their own. */\n background: transparent;\n}\n\n::slotted(nile-side-bar-footer) {\n flex-shrink: 0;\n /* Like the header: the footer paints nothing, so it shows the sidebar's own surface (bg-tertiary on NxtGen, neutral-100 on enterprise) with no token repeated here. Outer-context CSS, so it outranks the footer's own :host background; a footer outside a sidebar, and any author rule on the footer itself, keep their own. */\n background: transparent;\n position: sticky;\n bottom: 0;\n margin-top: auto;\n}\n\n \n \n\n\n\n\n\n\n\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar.css.cjs.js","sources":["../../../src/nile-side-bar/nile-side-bar.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 * SideBar CSS\n */\nexport const styles = css`\n :host {\n \n top: 0;\n
|
|
1
|
+
{"version":3,"file":"nile-side-bar.css.cjs.js","sources":["../../../src/nile-side-bar/nile-side-bar.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 * SideBar CSS\n */\nexport const styles = css`\n :host {\n \n top: 0;\n /* NxtGen: 260 / 72; enterprise keeps 240 / 70. Keep in step with nile-app-shell.css.ts's track. */\n width: 260px;\n /* A transparent shadow, not the none keyword: the overlay rule below combines it with the elevation in a comma-separated box-shadow list, where none isn't a valid list item. */\n box-shadow: 0 0 0 0 transparent;\n display: flex;\n flex-direction: column;\n background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-tertiary));\n height: 100%;\n overflow: hidden; \n transition: width 0.25s ease, transform 0.25s ease;\n z-index: 1000;\n}\n\n \n/* NxtGen has no visible root border (paint disabled); enterprise keeps its own real 1px border. */\n:host([position='left']) {\n left: 0;\n border-right: var(--nile-border-width-1, var(--ng-border-width-0)) solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n}\n\n:host([position='right']) {\n right: 0;\n border-left: var(--nile-border-width-1, var(--ng-border-width-0)) solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n}\n\n \n:host([collapsed]) {\n width: 72px;\n}\n\n \n:host([position='right'][collapsed]) {\n transform: translateX(calc(var(--sidebar-width) - var(--sidebar-collapsed-width)));\n}\n\n:host([overlay]) {\n position: var(--sidebar-overlay-position, absolute);\n top: 0;\n bottom: 0;\n height: 100%;\n}\n\n:host([overlay][position='left']) {\n left: 0;\n}\n\n:host([overlay][position='right']) {\n right: 0;\n}\n\n/* Elevate while expanded so it reads as floating above the page. */\n:host([overlay]:not([collapsed])) {\n box-shadow: 0 0 0 0 transparent, var(\n --sidebar-overlay-shadow,\n 0px 8px 24px 0px rgba(119, 125, 130, 0.25)\n );\n}\n\n:host {\n scrollbar-width: thin;\n scrollbar-color: #64748b transparent;\n}\n\n:host::-webkit-scrollbar {\n width: 6px;\n}\n:host::-webkit-scrollbar-track {\n background: transparent;\n}\n:host::-webkit-scrollbar-thumb {\n background-color: #64748b;\n border-radius: 10px;\n}\n\n \n.scroll-container {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n}\n\n \n::slotted(nile-side-bar-header) {\n flex-shrink: 0;\n /* The header takes the sidebar's own surface (bg-tertiary on NxtGen, neutral-100 on enterprise) by painting nothing, so no token is repeated here. This is outer-context CSS, so it outranks the header's own :host background; a header outside a sidebar, and any author rule on the header itself, keep their own. */\n background: transparent;\n}\n\n::slotted(nile-side-bar-footer) {\n flex-shrink: 0;\n /* Like the header: the footer paints nothing, so it shows the sidebar's own surface (bg-tertiary on NxtGen, neutral-100 on enterprise) with no token repeated here. Outer-context CSS, so it outranks the footer's own :host background; a footer outside a sidebar, and any author rule on the footer itself, keep their own. */\n background: transparent;\n position: sticky;\n bottom: 0;\n margin-top: auto;\n}\n\n \n \n\n\n\n\n\n\n\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import{css as
|
|
1
|
+
import{css as e}from"lit";const o=e`
|
|
2
2
|
:host {
|
|
3
3
|
|
|
4
4
|
top: 0;
|
|
5
|
-
|
|
5
|
+
/* NxtGen: 260 / 72; enterprise keeps 240 / 70. Keep in step with nile-app-shell.css.ts's track. */
|
|
6
|
+
width: 260px;
|
|
7
|
+
/* A transparent shadow, not the none keyword: the overlay rule below combines it with the elevation in a comma-separated box-shadow list, where none isn't a valid list item. */
|
|
8
|
+
box-shadow: 0 0 0 0 transparent;
|
|
6
9
|
display: flex;
|
|
7
10
|
flex-direction: column;
|
|
8
|
-
background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-
|
|
11
|
+
background-color: var(--nile-colors-neutral-100, var(--ng-colors-bg-tertiary));
|
|
9
12
|
height: 100%;
|
|
10
13
|
overflow: hidden;
|
|
11
14
|
transition: width 0.25s ease, transform 0.25s ease;
|
|
@@ -13,19 +16,20 @@ import{css as o}from"lit";const t=o`
|
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
|
|
19
|
+
/* NxtGen has no visible root border (paint disabled); enterprise keeps its own real 1px border. */
|
|
16
20
|
:host([position='left']) {
|
|
17
21
|
left: 0;
|
|
18
|
-
border-right:
|
|
22
|
+
border-right: var(--nile-border-width-1, var(--ng-border-width-0)) solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
:host([position='right']) {
|
|
22
26
|
right: 0;
|
|
23
|
-
border-left:
|
|
27
|
+
border-left: var(--nile-border-width-1, var(--ng-border-width-0)) solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
|
|
27
31
|
:host([collapsed]) {
|
|
28
|
-
width:
|
|
32
|
+
width: 72px;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
|
|
@@ -33,12 +37,6 @@ import{css as o}from"lit";const t=o`
|
|
|
33
37
|
transform: translateX(calc(var(--sidebar-width) - var(--sidebar-collapsed-width)));
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
/*
|
|
37
|
-
* Overlay mode: lift the sidebar out of normal flow so expanding it floats
|
|
38
|
-
* on top of adjacent content instead of pushing siblings. Anchors to the
|
|
39
|
-
* nearest positioned ancestor; set --sidebar-overlay-position: fixed to pin
|
|
40
|
-
* it to the viewport instead.
|
|
41
|
-
*/
|
|
42
40
|
:host([overlay]) {
|
|
43
41
|
position: var(--sidebar-overlay-position, absolute);
|
|
44
42
|
top: 0;
|
|
@@ -56,7 +54,7 @@ import{css as o}from"lit";const t=o`
|
|
|
56
54
|
|
|
57
55
|
/* Elevate while expanded so it reads as floating above the page. */
|
|
58
56
|
:host([overlay]:not([collapsed])) {
|
|
59
|
-
box-shadow: var(
|
|
57
|
+
box-shadow: 0 0 0 0 transparent, var(
|
|
60
58
|
--sidebar-overlay-shadow,
|
|
61
59
|
0px 8px 24px 0px rgba(119, 125, 130, 0.25)
|
|
62
60
|
);
|
|
@@ -90,10 +88,14 @@ import{css as o}from"lit";const t=o`
|
|
|
90
88
|
|
|
91
89
|
::slotted(nile-side-bar-header) {
|
|
92
90
|
flex-shrink: 0;
|
|
91
|
+
/* The header takes the sidebar's own surface (bg-tertiary on NxtGen, neutral-100 on enterprise) by painting nothing, so no token is repeated here. This is outer-context CSS, so it outranks the header's own :host background; a header outside a sidebar, and any author rule on the header itself, keep their own. */
|
|
92
|
+
background: transparent;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
::slotted(nile-side-bar-footer) {
|
|
96
96
|
flex-shrink: 0;
|
|
97
|
+
/* Like the header: the footer paints nothing, so it shows the sidebar's own surface (bg-tertiary on NxtGen, neutral-100 on enterprise) with no token repeated here. Outer-context CSS, so it outranks the footer's own :host background; a footer outside a sidebar, and any author rule on the footer itself, keep their own. */
|
|
98
|
+
background: transparent;
|
|
97
99
|
position: sticky;
|
|
98
100
|
bottom: 0;
|
|
99
101
|
margin-top: auto;
|
|
@@ -108,4 +110,4 @@ import{css as o}from"lit";const t=o`
|
|
|
108
110
|
|
|
109
111
|
|
|
110
112
|
|
|
111
|
-
`;export{
|
|
113
|
+
`;export{o as s};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,customElement as s}from"lit/decorators.js";import{s as l}from"./nile-side-bar.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";
|
|
1
|
+
import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,customElement as s}from"lit/decorators.js";import{s as l}from"./nile-side-bar.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";const o=["nile-side-bar-logo","nile-side-bar-header-switcher","nile-side-bar-search","nile-side-bar-footer-item","nile-side-bar-group-item","nile-side-bar-group","nile-side-bar-header","nile-side-bar-group-item-text","nile-side-bar-group-item-icon","nile-side-bar-expand"];let a=class extends r{constructor(){super(...arguments),this.position="left",this.collapsed=!1,this.overlay=!1,this.fullHeight=!1,this.width=null,this.collapsedWidth=null,this.searchable=!1,this.onCollapsedMutations=e=>{for(const t of e)for(const e of t.addedNodes)e instanceof Element&&this.applyCollapsed(e,this.collapsed)}}ownsCollapsed(e){return e.parentElement?.closest("nile-side-bar, nile-app-shell-side-nav")===this}applyCollapsed(e,t){const i=o.join(","),s=[...e.querySelectorAll(i)];e.matches(i)&&s.unshift(e);for(const e of s)this.ownsCollapsed(e)&&e.toggleAttribute("collapsed",t)}pushCollapsed(){this.collapsedApplied=this.collapsed,this.applyCollapsed(this,this.collapsedApplied)}connectedCallback(){super.connectedCallback(),this.collapsedObserver=new MutationObserver(this.onCollapsedMutations),this.collapsedObserver.observe(this,{childList:!0,subtree:!0}),this.hasUpdated&&this.pushCollapsed()}disconnectedCallback(){super.disconnectedCallback(),this.collapsedObserver?.disconnect(),this.collapsedObserver=void 0}static get styles(){return[l]}updated(e){super.updated(e),this.collapsed!==this.collapsedApplied&&this.pushCollapsed(),e.has("width")&&null!==this.width&&this.style.setProperty("--sidebar-width",`${this.width}px`),e.has("collapsedWidth")&&null!==this.collapsedWidth&&this.style.setProperty("--sidebar-collapsed-width",`${this.collapsedWidth}px`)}expand(){this.setCollapsed(!1)}collapse(){this.setCollapsed(!0)}toggle(e){this.setCollapsed(e??!this.collapsed)}setCollapsed(e){this.collapsed!==e&&(this.collapsed=e,this.emit("nile-toggle",{collapsed:e}))}render(){return t`
|
|
2
2
|
<slot name="header" part="header"></slot>
|
|
3
3
|
<div class="scroll-container" part="scroll-container">
|
|
4
4
|
<slot></slot>
|
|
5
5
|
</div>
|
|
6
6
|
<slot name="footer" part="footer"></slot>
|
|
7
|
-
`}};e([i({type:String,reflect:!0,attribute:!0})],
|
|
7
|
+
`}};e([i({type:String,reflect:!0,attribute:!0})],a.prototype,"position",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],a.prototype,"collapsed",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],a.prototype,"overlay",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],a.prototype,"fullHeight",void 0),e([i({type:Number,attribute:!0})],a.prototype,"width",void 0),e([i({type:Number,attribute:!0})],a.prototype,"collapsedWidth",void 0),e([i({type:Boolean,reflect:!0,attribute:!0})],a.prototype,"searchable",void 0),e([i({type:String,reflect:!0,attribute:!0})],a.prototype,"searchPlaceholder",void 0),a=e([s("nile-side-bar")],a);export{a as N};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,i;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",i=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n box-sizing: border-box;\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n :host {\n display: block;\n }\n\n :host([inert]) {\n display: none;\n }\n\n .menu-item {\n position: relative;\n display: flex;\n border-radius: var(--nile-radius-sm,var(--ng-radius-sm));\n align-items: stretch;\n font-size: var(--nile-font-size-rem-large ,var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-regular,var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-1-8,var(--ng-line-height-text-md));\n letter-spacing: normal;\n color: var(--nile-color-dark-1, var(--ng-colors-text-
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,i;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",i=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n box-sizing: border-box;\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n :host {\n display: block;\n }\n\n :host([inert]) {\n display: none;\n }\n\n .menu-item {\n position: relative;\n display: flex;\n border-radius: var(--nile-radius-sm,var(--ng-radius-sm));\n align-items: stretch;\n font-size: var(--nile-font-size-rem-large ,var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-regular,var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-1-8,var(--ng-line-height-text-md));\n letter-spacing: normal;\n color: var(--nile-color-dark-1, var(--ng-colors-text-tertiary-600));\n min-height:40px;\n transition: 150ms fill;\n user-select: none;\n white-space: nowrap;\n cursor: pointer;\n padding: var(--nile-spacing-none, var(--ng-spacing-md)) var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n .menu-item.menu-item--disabled {\n outline: none;\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .menu-item .menu-item__label {\n margin: auto var(--nile-spacing-none,var(--ng-spacing-none));\n display: inline-flex;\n }\n\n .menu-item .menu-item__prefix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n\n .menu-item .menu-item__prefix::slotted(*) {\n margin-inline-end: var(--nile-font-size-rem-xsmall,var(--ng-spacing-md));\n }\n\n .menu-item .menu-item__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n\n .menu-item .menu-item__suffix::slotted(*) {\n margin-inline-start: var(--nile-font-size-rem-xsmall,var(--ng-spacing-md));\n }\n\n :host(:focus-visible) {\n outline: none;\n }\n\n :host(:hover:not([aria-disabled='true'], :focus-visible)) .menu-item {\n background-color: var(--nile-colors-neutral-100,var(--ng-colors-bg-secondary-hover));\n color: var(--nile-colors-dark-900,var(--ng-colors-text-tertiary-600));\n }\n\n :host(:focus-visible) .menu-item {\n outline: none;\n background-color: var(--nile-colors-blue-500,var(--ng-colors-bg-active));\n color: var(--nile-colors-white-base,var(--ng-colors-text-primary-900));\n opacity: 1;\n }\n\n .menu-item .menu-item__check,\n .menu-item .menu-item__chevron {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.5em;\n visibility: hidden;\n }\n\n .menu-item--checked .menu-item__check,\n .menu-item--has-submenu .menu-item__chevron {\n visibility: visible;\n }\n\n :host([active]) .menu-item {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));\n color: var(--nile-color-dark-1, var(--ng-colors-text-brand-secondary-700));\n }\n\n /* A selected item stays selected on hover. */\n :host([active]:hover:not([aria-disabled='true'], :focus-visible)) .menu-item {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));\n color: var(--nile-color-dark-1, var(--ng-colors-text-brand-secondary-700));\n }\n\n\n .menu-item {\n \n margin-left: 8px;\n margin-right: 8px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n @media (forced-colors: active) {\n :host(:hover:not([aria-disabled='true'])) .menu-item,\n :host(:focus-visible) .menu-item {\n outline: dashed 1px SelectedItem;\n outline-offset: -1px;\n }\n \n }\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-action-menu-item.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-action-menu-item.css.cjs.js","sources":["../../../src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.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 * SideBarActionMenuItem CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n :host {\n display: block;\n }\n\n :host([inert]) {\n display: none;\n }\n\n .menu-item {\n position: relative;\n display: flex;\n border-radius: var(--nile-radius-sm,var(--ng-radius-sm));\n align-items: stretch;\n font-size: var(--nile-font-size-rem-large ,var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-regular,var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-1-8,var(--ng-line-height-text-md));\n letter-spacing: normal;\n color: var(--nile-color-dark-1, var(--ng-colors-text-
|
|
1
|
+
{"version":3,"file":"nile-side-bar-action-menu-item.css.cjs.js","sources":["../../../src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.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 * SideBarActionMenuItem CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n\n :host {\n display: block;\n }\n\n :host([inert]) {\n display: none;\n }\n\n .menu-item {\n position: relative;\n display: flex;\n border-radius: var(--nile-radius-sm,var(--ng-radius-sm));\n align-items: stretch;\n font-size: var(--nile-font-size-rem-large ,var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-regular,var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-1-8,var(--ng-line-height-text-md));\n letter-spacing: normal;\n color: var(--nile-color-dark-1, var(--ng-colors-text-tertiary-600));\n min-height:40px;\n transition: 150ms fill;\n user-select: none;\n white-space: nowrap;\n cursor: pointer;\n padding: var(--nile-spacing-none, var(--ng-spacing-md)) var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n .menu-item.menu-item--disabled {\n outline: none;\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .menu-item .menu-item__label {\n margin: auto var(--nile-spacing-none,var(--ng-spacing-none));\n display: inline-flex;\n }\n\n .menu-item .menu-item__prefix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n\n .menu-item .menu-item__prefix::slotted(*) {\n margin-inline-end: var(--nile-font-size-rem-xsmall,var(--ng-spacing-md));\n }\n\n .menu-item .menu-item__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n }\n\n .menu-item .menu-item__suffix::slotted(*) {\n margin-inline-start: var(--nile-font-size-rem-xsmall,var(--ng-spacing-md));\n }\n\n :host(:focus-visible) {\n outline: none;\n }\n\n :host(:hover:not([aria-disabled='true'], :focus-visible)) .menu-item {\n background-color: var(--nile-colors-neutral-100,var(--ng-colors-bg-secondary-hover));\n color: var(--nile-colors-dark-900,var(--ng-colors-text-tertiary-600));\n }\n\n :host(:focus-visible) .menu-item {\n outline: none;\n background-color: var(--nile-colors-blue-500,var(--ng-colors-bg-active));\n color: var(--nile-colors-white-base,var(--ng-colors-text-primary-900));\n opacity: 1;\n }\n\n .menu-item .menu-item__check,\n .menu-item .menu-item__chevron {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.5em;\n visibility: hidden;\n }\n\n .menu-item--checked .menu-item__check,\n .menu-item--has-submenu .menu-item__chevron {\n visibility: visible;\n }\n\n :host([active]) .menu-item {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));\n color: var(--nile-color-dark-1, var(--ng-colors-text-brand-secondary-700));\n }\n\n /* A selected item stays selected on hover. */\n :host([active]:hover:not([aria-disabled='true'], :focus-visible)) .menu-item {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));\n color: var(--nile-color-dark-1, var(--ng-colors-text-brand-secondary-700));\n }\n\n\n .menu-item {\n \n margin-left: 8px;\n margin-right: 8px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n @media (forced-colors: active) {\n :host(:hover:not([aria-disabled='true'])) .menu-item,\n :host(:focus-visible) .menu-item {\n outline: dashed 1px SelectedItem;\n outline-offset: -1px;\n }\n \n }\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -33,7 +33,7 @@ import{css as e}from"lit";const i=e`
|
|
|
33
33
|
font-weight: var(--nile-font-weight-regular,var(--ng-font-weight-semibold));
|
|
34
34
|
line-height: var(--nile-line-height-1-8,var(--ng-line-height-text-md));
|
|
35
35
|
letter-spacing: normal;
|
|
36
|
-
color: var(--nile-color-dark-1, var(--ng-colors-text-
|
|
36
|
+
color: var(--nile-color-dark-1, var(--ng-colors-text-tertiary-600));
|
|
37
37
|
min-height:40px;
|
|
38
38
|
transition: 150ms fill;
|
|
39
39
|
user-select: none;
|
|
@@ -78,8 +78,8 @@ import{css as e}from"lit";const i=e`
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
:host(:hover:not([aria-disabled='true'], :focus-visible)) .menu-item {
|
|
81
|
-
background-color: var(--nile-colors-neutral-100,var(--ng-colors-bg-
|
|
82
|
-
color: var(--nile-colors-dark-900,var(--ng-colors-text-
|
|
81
|
+
background-color: var(--nile-colors-neutral-100,var(--ng-colors-bg-secondary-hover));
|
|
82
|
+
color: var(--nile-colors-dark-900,var(--ng-colors-text-tertiary-600));
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
:host(:focus-visible) .menu-item {
|
|
@@ -105,7 +105,14 @@ import{css as e}from"lit";const i=e`
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
:host([active]) .menu-item {
|
|
108
|
-
background: var(--nile-colors-primary-100, var(--ng-colors-bg-primary-
|
|
108
|
+
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));
|
|
109
|
+
color: var(--nile-color-dark-1, var(--ng-colors-text-brand-secondary-700));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* A selected item stays selected on hover. */
|
|
113
|
+
:host([active]:hover:not([aria-disabled='true'], :focus-visible)) .menu-item {
|
|
114
|
+
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));
|
|
115
|
+
color: var(--nile-color-dark-1, var(--ng-colors-text-brand-secondary-700));
|
|
109
116
|
}
|
|
110
117
|
|
|
111
118
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-footer.cjs.js","sources":["../../../src/nile-side-bar-footer/nile-side-bar-footer.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 { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-footer component.\n *\n * @tag nile-side-bar-footer\n *\n * @slot icon - Slot for footer icon\n * @slot text - Slot for footer text\n *\n * @attr background - Background treatment of the footer (\"default\" | \"transparent\").\n * Defaults to \"default\"
|
|
1
|
+
{"version":3,"file":"nile-side-bar-footer.cjs.js","sources":["../../../src/nile-side-bar-footer/nile-side-bar-footer.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 { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-footer component.\n *\n * @tag nile-side-bar-footer\n *\n * @slot icon - Slot for footer icon\n * @slot text - Slot for footer text\n *\n * @attr background - Background treatment of the footer (\"default\" | \"transparent\").\n * Defaults to \"default\". Inside a `nile-side-bar` the footer paints nothing, so it\n * follows the sidebar's own surface with no attribute needed; on its own it paints\n * its own surface. \"transparent\" always drops the background so whatever sits\n * behind the footer shows through.\n */\n@customElement('nile-side-bar-footer')\nexport class NileSideBarFooter extends NileElement {\n /**\n * Background treatment of the footer. `default` follows the sidebar surface\n * inside a `nile-side-bar` (and paints its own surface when used on its own);\n * `transparent` removes the background everywhere.\n */\n @property({ type: String, reflect: true, attribute: true }) background: 'default' | 'transparent' = 'default';\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"base\" class=\"footer\">\n <slot> </slot>\n </div>\n `;\n }\n}\n\nexport default NileSideBarFooter;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer': NileSideBarFooter;\n }\n}\n"],"names":["NileSideBarFooter","a","constructor","this","background","_this","_inherits","_o","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","property","type","String","reflect","attribute","prototype","customElement"],"mappings":"q8GA2BaA,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAMuDC,KAAAA,CAAUC,UAAAA,CAA8B,SAarG,QAAAC,KAAA,EAXQC,SAAA,CAAAL,CAAA,CAAAM,EAAA,SAAAC,YAAA,CAAAP,CAAA,GAAAQ,GAAA,UAAAC,KAAA,CAIA,SAAAC,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,+FAKZ,CAAA,KAAAL,GAAA,UAAAM,GAAA,CAVM,SAAAA,IAAA,CACL,CAAA,MAAO,CAACC,CACT,CAAA,EAEM,MAZ8BC,CAAAA,GAMuBC,EAAA,CAA3DC,CAAAA,CAAS,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,SAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAA0DvB,CAAAwB,CAAAA,SAAAA,CAAA,iBAAA,EANnGxB,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAiBkB,EAAA,CAD7BO,CAAAA,CAAc,yBACFzB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var a,_templateObject,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){a=_lit.css;}],execute:function execute(){_export("s",n=a(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n bottom: var(--nile-spacing-md);\n padding-bottom: var(--nile-spacing-xl, var(--ng-spacing-3xl));\n\tpadding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));\n\tpadding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var a,_templateObject,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){a=_lit.css;}],execute:function execute(){_export("s",n=a(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n bottom: var(--nile-spacing-md);\n padding-bottom: var(--nile-spacing-xl, var(--ng-spacing-3xl));\n\tpadding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));\n\tpadding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));\n /* NxtGen: no top padding; enterprise keeps 4px. */\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-none));\n gap: var(--nile-spacing-md, var(--ng-spacing-xl));\n bottom: 0;\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));\n}\n\n/* Opt-in: drop the surface color so the footer sits on whatever is behind it. */\n:host([background='transparent']) {\n background: transparent;\n}\n\n.footer {\n display: flex;\n flex-direction: column; \n align-items: stretch; \n /* NxtGen: footer items stack flush; the Account row's own gap is handled below. Enterprise keeps 8px. */\n gap: var(--nile-spacing-md, var(--ng-spacing-none));\n}\n\n::slotted(nile-side-bar-footer-item) {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-xs));\n justify-content: center;\n \n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n cursor: pointer;\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n transition: background 0.2s ease;\n}\n\n/* 16px gap above the Account row, scoped to [type='avatar'] so Support/Help keep stacking flush. */\n::slotted(nile-side-bar-footer-item[type='avatar']) {\n margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));\n}\n\n\n \n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-footer.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-footer.css.cjs.js","sources":["../../../src/nile-side-bar-footer/nile-side-bar-footer.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * SideBarFooter CSS\n */\nexport const styles = css`\n :host {\n display: block;\n bottom: var(--nile-spacing-md);\n padding-bottom: var(--nile-spacing-xl, var(--ng-spacing-3xl));\n\tpadding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));\n\tpadding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-
|
|
1
|
+
{"version":3,"file":"nile-side-bar-footer.css.cjs.js","sources":["../../../src/nile-side-bar-footer/nile-side-bar-footer.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * SideBarFooter CSS\n */\nexport const styles = css`\n :host {\n display: block;\n bottom: var(--nile-spacing-md);\n padding-bottom: var(--nile-spacing-xl, var(--ng-spacing-3xl));\n\tpadding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));\n\tpadding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));\n /* NxtGen: no top padding; enterprise keeps 4px. */\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-none));\n gap: var(--nile-spacing-md, var(--ng-spacing-xl));\n bottom: 0;\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));\n}\n\n/* Opt-in: drop the surface color so the footer sits on whatever is behind it. */\n:host([background='transparent']) {\n background: transparent;\n}\n\n.footer {\n display: flex;\n flex-direction: column; \n align-items: stretch; \n /* NxtGen: footer items stack flush; the Account row's own gap is handled below. Enterprise keeps 8px. */\n gap: var(--nile-spacing-md, var(--ng-spacing-none));\n}\n\n::slotted(nile-side-bar-footer-item) {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-xs));\n justify-content: center;\n \n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n cursor: pointer;\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n transition: background 0.2s ease;\n}\n\n/* 16px gap above the Account row, scoped to [type='avatar'] so Support/Help keep stacking flush. */\n::slotted(nile-side-bar-footer-item[type='avatar']) {\n margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));\n}\n\n\n \n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAKaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -5,7 +5,8 @@ import{css as a}from"lit";const n=a`
|
|
|
5
5
|
padding-bottom: var(--nile-spacing-xl, var(--ng-spacing-3xl));
|
|
6
6
|
padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
7
7
|
padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
8
|
-
|
|
8
|
+
/* NxtGen: no top padding; enterprise keeps 4px. */
|
|
9
|
+
padding-top: var(--nile-spacing-xs, var(--ng-spacing-none));
|
|
9
10
|
gap: var(--nile-spacing-md, var(--ng-spacing-xl));
|
|
10
11
|
bottom: 0;
|
|
11
12
|
background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));
|
|
@@ -20,7 +21,8 @@ import{css as a}from"lit";const n=a`
|
|
|
20
21
|
display: flex;
|
|
21
22
|
flex-direction: column;
|
|
22
23
|
align-items: stretch;
|
|
23
|
-
|
|
24
|
+
/* NxtGen: footer items stack flush; the Account row's own gap is handled below. Enterprise keeps 8px. */
|
|
25
|
+
gap: var(--nile-spacing-md, var(--ng-spacing-none));
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
::slotted(nile-side-bar-footer-item) {
|
|
@@ -36,7 +38,10 @@ import{css as a}from"lit";const n=a`
|
|
|
36
38
|
transition: background 0.2s ease;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
/* 16px gap above the Account row, scoped to [type='avatar'] so Support/Help keep stacking flush. */
|
|
42
|
+
::slotted(nile-side-bar-footer-item[type='avatar']) {
|
|
43
|
+
margin-top: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
44
|
+
}
|
|
40
45
|
|
|
41
46
|
|
|
42
47
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./nile-side-bar-footer-item.cjs.js","tslib","lit","lit/decorators.js","./nile-side-bar-footer-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSideBarFooterItemCjsJs){_export("NileSideBarFooterItem",_nileSideBarFooterItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileSideBarFooterItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
|
|
1
|
+
System.register(["./nile-side-bar-footer-item.cjs.js","tslib","lit","lit/directives/if-defined.js","lit/decorators.js","./nile-side-bar-footer-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSideBarFooterItemCjsJs){_export("NileSideBarFooterItem",_nileSideBarFooterItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDirectivesIfDefinedJs){},function(_litDecoratorsJs){},function(_nileSideBarFooterItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{N as NileSideBarFooterItem}from"./nile-side-bar-footer-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-side-bar-footer-item.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";
|
|
1
|
+
export{N as NileSideBarFooterItem}from"./nile-side-bar-footer-item.esm.js";import"tslib";import"lit";import"lit/directives/if-defined.js";import"lit/decorators.js";import"./nile-side-bar-footer-item.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
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-side-bar-footer-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,s,
|
|
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/directives/if-defined.js","lit/decorators.js","./nile-side-bar-footer-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,n,o,r,_templateObject,a;function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread 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 _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}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 _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 _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 _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){i=_lit.html;},function(_litDirectivesIfDefinedJs){e=_litDirectivesIfDefinedJs.ifDefined;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;n=_litDecoratorsJs.customElement;},function(_nileSideBarFooterItemCssCjsJs){o=_nileSideBarFooterItemCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",a=/*#__PURE__*/function(_r){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.type=null,_this.active=!1,_this.actionWasOpen=!1;return _this;}_inherits(a,_r);return _createClass(a,[{key:"handleClick",value:function handleClick(){this.dispatchEvent(new CustomEvent("nile-click",{detail:{type:this.type},bubbles:!0,composed:!0}));}},{key:"handleActionVisibility",value:function handleActionVisibility(t){var _i$tagName;var i=t.target;"nile-side-bar-action"===((_i$tagName=i.tagName)===null||_i$tagName===void 0?void 0:_i$tagName.toLowerCase())&&this.toggleAttribute("data-action-open","nile-show"===t.type);}},{key:"connectedCallback",value:function connectedCallback(){_superPropGet(a,"connectedCallback",this,3)([]),this.handleActionVisibility=this.handleActionVisibility.bind(this),this.addEventListener("nile-show",this.handleActionVisibility),this.addEventListener("nile-hide",this.handleActionVisibility);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(a,"disconnectedCallback",this,3)([]),this.removeEventListener("nile-show",this.handleActionVisibility),this.removeEventListener("nile-hide",this.handleActionVisibility);}},{key:"attributeChangedCallback",value:function attributeChangedCallback(t,i,e){_superPropGet(a,"attributeChangedCallback",this,3)([t,i,e]),"collapsed"===t&&this.requestUpdate();}},{key:"collapsedAccount",get:function get(){return"avatar"===this.type&&this.hasAttribute("collapsed");}},{key:"actionElement",get:function get(){return this.querySelector(':scope > nile-side-bar-action[slot="action"]');}},{key:"handleMouseDown",value:function handleMouseDown(){var _this$actionElement;this.actionWasOpen=!!((_this$actionElement=this.actionElement)!==null&&_this$actionElement!==void 0&&_this$actionElement.open);}},{key:"handleAccountClick",value:function handleAccountClick(t){if(!this.collapsedAccount||t.target.closest("nile-side-bar-action"))return;var i=this.actionElement;i&&(this.actionWasOpen?this.actionWasOpen=!1:i.show());}},{key:"handleAccountKeyDown",value:function handleAccountKeyDown(t){if(!this.collapsedAccount||t.target.closest("nile-side-bar-action"))return;if("Enter"!==t.key&&" "!==t.key)return;var i=this.actionElement;i&&(t.preventDefault(),i.open?i.hide():i.show());}},{key:"render",value:function render(){var _this2=this;return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n part=\"base\"\n class=\"footer-item\"\n tabindex=","\n @mousedown=","\n @click=","\n @keydown=","\n >\n <slot name=\"icon\" part=\"icon\"></slot>\n <slot name=\"text\" part=\"text\"></slot>\n <slot name=\"action\" part=\"action\"></slot>\n </div>\n "])),e(this.collapsedAccount&&this.actionElement?"0":void 0),this.handleMouseDown,function(t){_this2.handleClick(),_this2.handleAccountClick(t);},this.handleAccountKeyDown);}}],[{key:"styles",get:function get(){return[o];}},{key:"observedAttributes",get:function get(){return[].concat(_toConsumableArray(_superPropGet(a,"observedAttributes",this)),["collapsed"]);}}]);}(r));t([s({type:String,attribute:!0,reflect:!0})],a.prototype,"type",void 0),t([s({type:Boolean,attribute:!0,reflect:!0})],a.prototype,"active",void 0),_export("N",a=t([n("nile-side-bar-footer-item")],a));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-footer-item.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-footer-item.cjs.js","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts"],"sourcesContent":["import { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer-item.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-footer-item component.\n *\n * @tag nile-side-bar-footer-item\n *\n * @slot icon - Slot for footer item icon\n * @slot text - Slot for footer item text\n * @slot action - Slot for footer item action\n *\n * @csspart base - Wrapper for the footer item\n * @csspart icon - Wrapper for the icon slot\n * @csspart text - Wrapper for the text slot\n * @csspart action - Wrapper for the action slot\n */\n@customElement('nile-side-bar-footer-item')\nexport class NileSideBarFooterItem extends NileElement {\n @property({ type: String, reflect: true }) type: string | null = null;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private handleClick(): void {\n this.dispatchEvent(new CustomEvent('nile-click', {\n detail: { type: this.type },\n bubbles: true,\n composed: true\n }));\n }\n\n public render(): TemplateResult {\n return html`\n <div
|
|
1
|
+
{"version":3,"file":"nile-side-bar-footer-item.cjs.js","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts"],"sourcesContent":["import { html, CSSResultArray, TemplateResult } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer-item.css';\nimport NileElement from '../internal/nile-element';\nimport type { NileSideBarAction } from '../nile-side-bar-action/nile-side-bar-action';\n\n/**\n * Nile side-bar-footer-item component.\n *\n * @tag nile-side-bar-footer-item\n *\n * @slot icon - Slot for footer item icon\n * @slot text - Slot for footer item text\n * @slot action - Slot for footer item action\n *\n * @attr active - Selected/current. Same state model as nile-side-bar-group-item.\n *\n * @csspart base - Wrapper for the footer item\n * @csspart icon - Wrapper for the icon slot\n * @csspart text - Wrapper for the text slot\n * @csspart action - Wrapper for the action slot\n */\n@customElement('nile-side-bar-footer-item')\nexport class NileSideBarFooterItem extends NileElement {\n @property({ type: String, attribute: true, reflect: true }) type: string | null = null;\n\n /** Selected/current, same state model and brand colors as nile-side-bar-group-item. */\n @property({ type: Boolean, attribute: true, reflect: true }) active: boolean = false;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private handleClick(): void {\n this.dispatchEvent(new CustomEvent('nile-click', {\n detail: { type: this.type },\n bubbles: true,\n composed: true\n }));\n }\n\n /* Reflects a slotted nile-side-bar-action's open state as [data-action-open], since :has() doesn't re-match on a slotted child's own attribute changes. */\n private handleActionVisibility(e: Event): void {\n const target = e.target as Element;\n if (target.tagName?.toLowerCase() === 'nile-side-bar-action') {\n this.toggleAttribute('data-action-open', e.type === 'nile-show');\n }\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.handleActionVisibility = this.handleActionVisibility.bind(this);\n this.addEventListener('nile-show', this.handleActionVisibility);\n this.addEventListener('nile-hide', this.handleActionVisibility);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.removeEventListener('nile-show', this.handleActionVisibility);\n this.removeEventListener('nile-hide', this.handleActionVisibility);\n }\n\n static get observedAttributes(): string[] {\n return [...super.observedAttributes, 'collapsed'];\n }\n\n attributeChangedCallback(name: string, old: string | null, value: string | null): void {\n super.attributeChangedCallback(name, old, value);\n if (name === 'collapsed') this.requestUpdate();\n }\n\n private actionWasOpen = false;\n\n private get collapsedAccount(): boolean {\n return this.type === 'avatar' && this.hasAttribute('collapsed');\n }\n\n private get actionElement(): NileSideBarAction | null {\n return this.querySelector<NileSideBarAction>(':scope > nile-side-bar-action[slot=\"action\"]');\n }\n\n private handleMouseDown(): void {\n this.actionWasOpen = !!this.actionElement?.open;\n }\n\n private handleAccountClick(e: Event): void {\n if (!this.collapsedAccount || (e.target as Element).closest('nile-side-bar-action')) return;\n const action = this.actionElement;\n if (!action) return;\n if (this.actionWasOpen) {\n this.actionWasOpen = false;\n return;\n }\n action.show();\n }\n\n private handleAccountKeyDown(e: KeyboardEvent): void {\n if (!this.collapsedAccount || (e.target as Element).closest('nile-side-bar-action')) return;\n if (e.key !== 'Enter' && e.key !== ' ') return;\n const action = this.actionElement;\n if (!action) return;\n e.preventDefault();\n if (action.open) action.hide();\n else action.show();\n }\n\n public render(): TemplateResult {\n return html`\n <div\n part=\"base\"\n class=\"footer-item\"\n tabindex=${ifDefined(this.collapsedAccount && this.actionElement ? '0' : undefined)}\n @mousedown=${this.handleMouseDown}\n @click=${(e: Event) => {\n this.handleClick();\n this.handleAccountClick(e);\n }}\n @keydown=${this.handleAccountKeyDown}\n >\n <slot name=\"icon\" part=\"icon\"></slot>\n <slot name=\"text\" part=\"text\"></slot>\n <slot name=\"action\" part=\"action\"></slot>\n </div>\n `;\n }\n}\n\nexport default NileSideBarFooterItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer-item': NileSideBarFooterItem;\n }\n}\n"],"names":["NileSideBarFooterItem","_r","a","constructor","this","type","active","actionWasOpen","_this","_inherits","_createClass","key","value","handleClick","dispatchEvent","CustomEvent","detail","bubbles","composed","handleActionVisibility","e","target","_i$tagName","tagName","toLowerCase","toggleAttribute","connectedCallback","super","bind","addEventListener","disconnectedCallback","removeEventListener","attributeChangedCallback","name","old","requestUpdate","get","hasAttribute","querySelector","handleMouseDown","actionElement","open","handleAccountClick","collapsedAccount","closest","action","show","handleAccountKeyDown","preventDefault","hide","render","_this2","html","_templateObject","_taggedTemplateLiteral","ifDefined","undefined","styles","concat","_toConsumableArray","_superPropGet","NileElement","__decorate","property","String","attribute","reflect","prototype","Boolean","customElement"],"mappings":"miKAwBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCACuDC,KAAAA,CAAIC,IAAAA,CAAkB,KAGrBD,KAAAA,CAAME,MAAAA,CAAAA,CAAY,CA4CvEF,CAAAA,KAAAA,CAAaG,aAAG,CAAA,CAAA,CAsDzB,QAAAC,KAAA,EAhGQC,SAAA,CAAAP,CAAA,CAAAD,EAAA,SAAAS,YAAA,CAAAR,CAAA,GAAAS,GAAA,eAAAC,KAAA,CAIC,SAAAC,WAAAA,CAAAA,CACNT,CAAAA,IAAAA,CAAKU,aAAc,CAAA,GAAIC,CAAAA,WAAY,CAAA,YAAA,CAAc,CAC/CC,MAAQ,CAAA,CAAEX,IAAMD,CAAAA,IAAAA,CAAKC,IACrBY,CAAAA,CAAAA,OAAAA,CAAAA,CAAS,EACTC,QAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAEb,EAGO,GAAAP,GAAA,0BAAAC,KAAA,UAAAO,sBAAAA,CAAuBC,CAAAA,CAAAA,KAAAA,UAAAA,CAC7B,GAAMC,CAAAA,CAASD,CAAAA,CAAAA,CAAEC,MACqB,CAAA,sBAAA,KAAA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AC,sBAAA,4VAIIC,CAAAA,CAAUnD,IAAKuC,CAAAA,gBAAAA,EAAoBvC,IAAKoC,CAAAA,aAAAA,CAAgB,GAAMgB,CAAAA,IAAAA,EAAAA,CAAAA,CAC5DpD,IAAKmC,CAAAA,eAAAA,CACRnB,SAAAA,CAAAA,CAAAA,CACRhB,MAAKS,CAAAA,WAAAA,CAAAA,CAAAA,CACLT,MAAKsC,CAAAA,kBAAAA,CAAmBtB,CAAE,CAAA,EAAA,CAEjBhB,IAAK2C,CAAAA,oBAAAA,EAOrB,CAAA,KAAApC,GAAA,UAAAyB,GAAA,CA/FM,SAAAA,IAAA,CAAWqB,CAChB,MAAO,CAACA,CACT,CAAA,EAEO,GAAA9C,GAAA,sBAAAyB,GAAA,CA6BR,SAAAA,IAAA,CACE,CAAA,SAAAsB,MAAA,CAAAC,kBAAA,CAAAC,aAAA,CAAA1D,CAAA,8BAAqC,WACtC,GAAA,CAED,MA3CyC2D,IACmBC,CAAA,CAAA,CAA3DC,CAAS,CAAA,CAAE1D,KAAM2D,MAAQC,CAAAA,SAAAA,CAAAA,CAAW,CAAMC,CAAAA,OAAAA,CAAAA,CAAS,CAAmClE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAmE,SAAA,CAAA,MAAA,CAAA,IAAA,IAG1BL,CAAA,CAAA,CAA5DC,CAAS,CAAA,CAAE1D,IAAM+D,CAAAA,OAAAA,CAASH,SAAW,CAAA,CAAA,CAAA,CAAMC,SAAS,CAAgClE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAmE,SAAA,CAAA,QAAA,CAAA,IAAA,gBAJ1EnE,CAAqB8D,CAAAA,CAAAA,CAAA,CADjCO,CAAAA,CAAc,8BACFrE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var r,_templateObject,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){r=_lit.css;}],execute:function execute(){_export("s",o=r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n width: 100%;\n }\n\n .footer-item {\n display: flex;\n align-items: center;\n\t justify-content: flex-start;\n padding-top: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n cursor: pointer;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n border-radius: var(--nile-radius-sm, var(--ng-radius-lg));\n transition: background 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: hidden;\n line-height: 0;\n }\n\n .footer-item:hover {\n background: var(\n --nile-side-bar-footer-hover-bg,\n var(--ng-colors-bg-primary-hover)\n );\n }\n\n /* left: icon */\n ::slotted([slot='icon']) {\n flex-shrink: 0;\n font-size: 1.25rem;\n margin-right: 0.5rem;\n }\n\n /* middle: text */\n ::slotted([slot='text']) {\n flex-grow: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* right: action */\n ::slotted([slot='action']) {\n flex-shrink: 0;\n font-size: 1.25rem;\n color: var(\n --nile-side-bar-footer-icon-color,\n var(--ng-colors-fg-quaternary-400)\n );\n margin-left: auto;\n }\n\n \n :host([type='support']) .footer-item {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary));\n height: var(--nile-height-38px, var(--ng-spacing-5xl));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n\n }\n \n :host(:hover[type='support']) .footer-item {\n background: var(--nile-colors-neutral-500, var(--ng-colors-bg-primary-hover));\n height: var(--nile-height-38px, var(--ng-spacing-5xl));\n }\n\n :host([type='avatar']) .footer-item {\nborder: 1px solid var(--ng-colors-border-secondary);\nmin-height: var(--nile-radius-4xl, var(--ng-spacing-7xl));\n}\n:host([type='avatar'][active]) .footer-item {\nbackground: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n}\n\n\n\n:host([collapsed][type='avatar']) .footer-item {\nborder: none;\n}\n :host([collapsed][type='avatar']) .footer-item {\n padding: 4px;\n \n}\n:host([collapsed]) .footer-item{\n height: 38px;\n width: 38px;\n}\n"]))));}};});
|
|
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 width: 100%;\n box-sizing: border-box;\n /* 44px outer item wrapping a 40px inner row. */\n padding: var(--nile-spacing-xxs, var(--ng-spacing-xxs)) var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n .footer-item {\n display: flex;\n align-items: center;\n\t justify-content: flex-start;\n /* Untyped (Appearance/Help) row height; [type] variants below set their own. */\n height: var(--nile-height-40px, var(--ng-height-36px));\n padding-top: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n cursor: pointer;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n transition: background 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .footer-item:hover {\n background: var(\n --nile-side-bar-footer-hover-bg,\n var(--ng-colors-bg-primary-hover)\n );\n }\n\n /* Darkens the label on hover for every row except Account; the rule below repeats this for nile-side-bar-footer-text's own .main/.sub, which this selector alone can't reach. */\n :host(:not([type='avatar'])) .footer-item:hover ::slotted([slot='text']) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([type='avatar'])) .footer-item {\n --nile-side-bar-footer-text-main-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n }\n\n :host(:not([type='avatar'])) .footer-item:hover {\n --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([type='avatar']):not([active])) .footer-item:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));\n --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* left: icon, a fixed 20x20 box regardless of what the consumer's own icon element asks for. */\n ::slotted([slot='icon']) {\n flex-shrink: 0;\n width: var(--nile-height-20px, var(--ng-height-20px));\n height: var(--nile-height-20px, var(--ng-height-20px));\n margin-right: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n /* middle: text */\n ::slotted([slot='text']) {\n flex-grow: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n letter-spacing: normal;\n }\n\n /* right: action (e.g. Help's trailing chevron), a fixed 16x16 box. */\n ::slotted([slot='action']) {\n flex-shrink: 0;\n width: var(--nile-width-16px, var(--ng-width-4));\n height: var(--nile-width-16px, var(--ng-height-16px));\n margin-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n color: var(\n --nile-side-bar-footer-icon-color,\n var(--ng-colors-fg-quaternary-hover)\n );\n }\n\n /* Collapsed: a trailing action (Help's chevron) isn't shown in the rail. */\n :host([collapsed]:not([type='avatar'])) ::slotted([slot='action']) {\n display: none;\n }\n\n \n /* Resting: no fill, as in the design; the row sits on the sidebar surface. Hover below still fills. Enterprise keeps its neutral-400 fill. */\n :host([type='support']) .footer-item {\n background: var(--nile-colors-neutral-400, transparent);\n height: var(--nile-height-38px, var(--ng-height-36px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n\n }\n \n /* Hover follows the nav menu items (nile-side-bar-group-item): bg-secondary-subtle fill, text-tertiary-hover label, fg-tertiary-hover icon and chevron. bg-primary-hover was the same colour as the sidebar surface, so the row showed no change. */\n :host(:hover[type='support']) .footer-item {\n background: var(--nile-colors-neutral-500, var(--ng-colors-bg-secondary-subtle));\n height: var(--nile-height-38px, var(--ng-height-36px));\n }\n\n :host([type='support']) .footer-item:hover ::slotted([slot='text']) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host([type='support']) .footer-item:hover {\n --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* Account row: 11px padding + 1px border reproduces Figma's 12px outer-edge-to-content distance, since Figma's stroke doesn't consume its own Auto Layout padding the way a CSS border does. */\n :host([type='avatar']) {\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n /* The Account row's name is semibold. Support/Help rows use the text's own medium. */\n --nile-side-bar-footer-text-main-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n }\n\n :host([type='avatar']) .footer-item {\n height: auto;\n padding: calc(var(--nile-spacing-lg, var(--ng-spacing-lg)) - 1px);\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n border-radius: var(--nile-radius-xl, var(--ng-radius-xl));\n /* Resting/closed: bg-primary (Figma). Resolves to the same value as bg-primary-alt in Light and Dark. */\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n}\n\n /* [data-action-open] is set via JS, not :has(), since Chromium doesn't re-match :has() on a slotted child's own attribute changes. */\n :host([type='avatar']:not([collapsed])[data-action-open]) .footer-item {\n background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));\n }\n\n /* Hover: bg-primary-hover, like the open state. Not while selected, which keeps its own background. */\n :host([type='avatar']:not([collapsed]):not([active])) .footer-item:hover {\n background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));\n }\n\n:host([type='avatar'][active]) .footer-item {\nbackground: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n}\n\n /* Avatar: 40x40, not the generic 20x20 icon box. */\n :host([type='avatar']) ::slotted([slot='icon']) {\n width: var(--nile-height-40px, var(--ng-height-40px));\n height: var(--nile-height-40px, var(--ng-height-40px));\n }\n\n /* :not([collapsed]) avoids a specificity tie with the collapsed display:none rule below. */\n :host([type='avatar']:not([collapsed])) ::slotted([slot='action']) {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n padding: var(--nile-spacing-sm, var(--ng-spacing-sm));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n }\n\n:host([collapsed][type='avatar']) .footer-item {\n position: relative;\n /* Explicit clamp -- the content-driven height above otherwise stays 44px even when collapsed. */\n height: var(--nile-height-40px, var(--ng-height-40px));\nborder: none;\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n background: transparent;\n border-radius: var(--nile-radius-full, var(--ng-radius-full));\n}\n:host([collapsed]) .footer-item{\n width: var(--nile-width-40px, var(--ng-height-40px));\n}\n\n/* Collapsed NxtGen: a 40px row, 44px outer with the host's 2px block padding (Figma). The expanded row and the avatar are untouched, and enterprise resolves --nile-height-* first, so it keeps its own heights. */\n:host([collapsed]:not([type])) .footer-item {\n height: var(--nile-height-40px, var(--ng-height-40px));\n}\n\n:host([collapsed][type='support']) .footer-item,\n:host(:hover[collapsed][type='support']) .footer-item {\n height: var(--nile-height-38px, var(--ng-height-40px));\n}\n\n:host([collapsed][type='avatar']) ::slotted([slot='action']) {\n position: absolute;\n inset: 0;\n display: block;\n width: 100%;\n height: 100%;\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n opacity: 0;\n pointer-events: none;\n}\n\n/* Collapsed Account row. The 40px icon box carries no trailing margin (nothing sits beside it in a rail), is centred in the 40px row, and centres whatever avatar size it holds, so xs, sm, md and lg all sit on the rail's centre line. The row lets an avatar wider than 40px overflow evenly instead of being clipped. The expanded row is untouched. */\n:host([collapsed][type='avatar']) .footer-item {\n justify-content: center;\n overflow: visible;\n}\n\n:host([collapsed][type='avatar']) ::slotted([slot='icon']) {\n margin-right: var(--nile-spacing-none, var(--ng-spacing-none));\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Collapsed Appearance/Help (NxtGen): the 12px side padding and the 8px icon margin put the icon at x=38 in the 72px rail. Zero both and centre it so it sits at x=36, as the nav icons do; enterprise keeps its padding and margin. */\n:host([collapsed]:not([type])) .footer-item {\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-none));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-none));\n justify-content: center;\n}\n\n:host([collapsed]:not([type])) ::slotted([slot='icon']) {\n margin-right: var(--nile-spacing-md, var(--ng-spacing-none));\n}\n\n/* The label keeps its place in the tree but has no room, so only the icon is centred. */\n:host([collapsed]:not([type])) ::slotted([slot='text']) {\n flex: 0 0 0;\n width: 0;\n}\n\n/* Appearance/Help selected state -- scoped to the untyped variant only; avatar's own [active] rule above is separate. */\n:host([active]:not([type])) .footer-item {\n background: var(--ng-colors-bg-primary);\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n}\n\n:host([active]:not([type])) ::slotted([slot='text']) {\n color: var(--ng-colors-text-brand-secondary-700);\n}\n\n:host([active]:not([type])) {\n --nile-side-bar-footer-icon-color: var(--ng-colors-fg-brand-primary-600);\n}\n\n/* Focus-visible is the ring only, independent of selection \u2014 same rule as nile-side-bar-group-item. */\n.footer-item:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);\n}\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-footer-item.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-footer-item.css.cjs.js","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n width: 100%;\n }\n\n .footer-item {\n display: flex;\n align-items: center;\n\t justify-content: flex-start;\n padding-top: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n cursor: pointer;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n border-radius: var(--nile-radius-sm, var(--ng-radius-lg));\n transition: background 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: hidden;\n line-height: 0;\n }\n\n .footer-item:hover {\n background: var(\n --nile-side-bar-footer-hover-bg,\n var(--ng-colors-bg-primary-hover)\n );\n }\n\n /* left: icon */\n ::slotted([slot='icon']) {\n flex-shrink: 0;\n font-size: 1.25rem;\n margin-right: 0.5rem;\n }\n\n /* middle: text */\n ::slotted([slot='text']) {\n flex-grow: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* right: action */\n ::slotted([slot='action']) {\n flex-shrink: 0;\n font-size: 1.25rem;\n color: var(\n --nile-side-bar-footer-icon-color,\n var(--ng-colors-fg-quaternary-400)\n );\n margin-left: auto;\n }\n\n \n :host([type='support']) .footer-item {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary));\n height: var(--nile-height-38px, var(--ng-spacing-5xl));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n\n }\n \n :host(:hover[type='support']) .footer-item {\n background: var(--nile-colors-neutral-500, var(--ng-colors-bg-primary-hover));\n height: var(--nile-height-38px, var(--ng-spacing-5xl));\n }\n\n :host([type='avatar']) .footer-item {\nborder: 1px solid var(--ng-colors-border-secondary);\nmin-height: var(--nile-radius-4xl, var(--ng-spacing-7xl));\n}\n:host([type='avatar'][active]) .footer-item {\nbackground: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n}\n\n\n\n:host([collapsed][type='avatar']) .footer-item {\nborder: none;\n}\n :host([collapsed][type='avatar']) .footer-item {\n padding: 4px;\n \n}\n:host([collapsed]) .footer-item{\n height: 38px;\n width: 38px;\n}\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAEaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
1
|
+
{"version":3,"file":"nile-side-bar-footer-item.css.cjs.js","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n /* 44px outer item wrapping a 40px inner row. */\n padding: var(--nile-spacing-xxs, var(--ng-spacing-xxs)) var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n .footer-item {\n display: flex;\n align-items: center;\n\t justify-content: flex-start;\n /* Untyped (Appearance/Help) row height; [type] variants below set their own. */\n height: var(--nile-height-40px, var(--ng-height-36px));\n padding-top: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n cursor: pointer;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n transition: background 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .footer-item:hover {\n background: var(\n --nile-side-bar-footer-hover-bg,\n var(--ng-colors-bg-primary-hover)\n );\n }\n\n /* Darkens the label on hover for every row except Account; the rule below repeats this for nile-side-bar-footer-text's own .main/.sub, which this selector alone can't reach. */\n :host(:not([type='avatar'])) .footer-item:hover ::slotted([slot='text']) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([type='avatar'])) .footer-item {\n --nile-side-bar-footer-text-main-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n }\n\n :host(:not([type='avatar'])) .footer-item:hover {\n --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([type='avatar']):not([active])) .footer-item:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));\n --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* left: icon, a fixed 20x20 box regardless of what the consumer's own icon element asks for. */\n ::slotted([slot='icon']) {\n flex-shrink: 0;\n width: var(--nile-height-20px, var(--ng-height-20px));\n height: var(--nile-height-20px, var(--ng-height-20px));\n margin-right: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n /* middle: text */\n ::slotted([slot='text']) {\n flex-grow: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n letter-spacing: normal;\n }\n\n /* right: action (e.g. Help's trailing chevron), a fixed 16x16 box. */\n ::slotted([slot='action']) {\n flex-shrink: 0;\n width: var(--nile-width-16px, var(--ng-width-4));\n height: var(--nile-width-16px, var(--ng-height-16px));\n margin-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n color: var(\n --nile-side-bar-footer-icon-color,\n var(--ng-colors-fg-quaternary-hover)\n );\n }\n\n /* Collapsed: a trailing action (Help's chevron) isn't shown in the rail. */\n :host([collapsed]:not([type='avatar'])) ::slotted([slot='action']) {\n display: none;\n }\n\n \n /* Resting: no fill, as in the design; the row sits on the sidebar surface. Hover below still fills. Enterprise keeps its neutral-400 fill. */\n :host([type='support']) .footer-item {\n background: var(--nile-colors-neutral-400, transparent);\n height: var(--nile-height-38px, var(--ng-height-36px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n\n }\n \n /* Hover follows the nav menu items (nile-side-bar-group-item): bg-secondary-subtle fill, text-tertiary-hover label, fg-tertiary-hover icon and chevron. bg-primary-hover was the same colour as the sidebar surface, so the row showed no change. */\n :host(:hover[type='support']) .footer-item {\n background: var(--nile-colors-neutral-500, var(--ng-colors-bg-secondary-subtle));\n height: var(--nile-height-38px, var(--ng-height-36px));\n }\n\n :host([type='support']) .footer-item:hover ::slotted([slot='text']) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host([type='support']) .footer-item:hover {\n --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* Account row: 11px padding + 1px border reproduces Figma's 12px outer-edge-to-content distance, since Figma's stroke doesn't consume its own Auto Layout padding the way a CSS border does. */\n :host([type='avatar']) {\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n /* The Account row's name is semibold. Support/Help rows use the text's own medium. */\n --nile-side-bar-footer-text-main-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n }\n\n :host([type='avatar']) .footer-item {\n height: auto;\n padding: calc(var(--nile-spacing-lg, var(--ng-spacing-lg)) - 1px);\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n border-radius: var(--nile-radius-xl, var(--ng-radius-xl));\n /* Resting/closed: bg-primary (Figma). Resolves to the same value as bg-primary-alt in Light and Dark. */\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n}\n\n /* [data-action-open] is set via JS, not :has(), since Chromium doesn't re-match :has() on a slotted child's own attribute changes. */\n :host([type='avatar']:not([collapsed])[data-action-open]) .footer-item {\n background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));\n }\n\n /* Hover: bg-primary-hover, like the open state. Not while selected, which keeps its own background. */\n :host([type='avatar']:not([collapsed]):not([active])) .footer-item:hover {\n background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));\n }\n\n:host([type='avatar'][active]) .footer-item {\nbackground: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n}\n\n /* Avatar: 40x40, not the generic 20x20 icon box. */\n :host([type='avatar']) ::slotted([slot='icon']) {\n width: var(--nile-height-40px, var(--ng-height-40px));\n height: var(--nile-height-40px, var(--ng-height-40px));\n }\n\n /* :not([collapsed]) avoids a specificity tie with the collapsed display:none rule below. */\n :host([type='avatar']:not([collapsed])) ::slotted([slot='action']) {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n padding: var(--nile-spacing-sm, var(--ng-spacing-sm));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n }\n\n:host([collapsed][type='avatar']) .footer-item {\n position: relative;\n /* Explicit clamp -- the content-driven height above otherwise stays 44px even when collapsed. */\n height: var(--nile-height-40px, var(--ng-height-40px));\nborder: none;\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n background: transparent;\n border-radius: var(--nile-radius-full, var(--ng-radius-full));\n}\n:host([collapsed]) .footer-item{\n width: var(--nile-width-40px, var(--ng-height-40px));\n}\n\n/* Collapsed NxtGen: a 40px row, 44px outer with the host's 2px block padding (Figma). The expanded row and the avatar are untouched, and enterprise resolves --nile-height-* first, so it keeps its own heights. */\n:host([collapsed]:not([type])) .footer-item {\n height: var(--nile-height-40px, var(--ng-height-40px));\n}\n\n:host([collapsed][type='support']) .footer-item,\n:host(:hover[collapsed][type='support']) .footer-item {\n height: var(--nile-height-38px, var(--ng-height-40px));\n}\n\n:host([collapsed][type='avatar']) ::slotted([slot='action']) {\n position: absolute;\n inset: 0;\n display: block;\n width: 100%;\n height: 100%;\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n opacity: 0;\n pointer-events: none;\n}\n\n/* Collapsed Account row. The 40px icon box carries no trailing margin (nothing sits beside it in a rail), is centred in the 40px row, and centres whatever avatar size it holds, so xs, sm, md and lg all sit on the rail's centre line. The row lets an avatar wider than 40px overflow evenly instead of being clipped. The expanded row is untouched. */\n:host([collapsed][type='avatar']) .footer-item {\n justify-content: center;\n overflow: visible;\n}\n\n:host([collapsed][type='avatar']) ::slotted([slot='icon']) {\n margin-right: var(--nile-spacing-none, var(--ng-spacing-none));\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Collapsed Appearance/Help (NxtGen): the 12px side padding and the 8px icon margin put the icon at x=38 in the 72px rail. Zero both and centre it so it sits at x=36, as the nav icons do; enterprise keeps its padding and margin. */\n:host([collapsed]:not([type])) .footer-item {\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-none));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-none));\n justify-content: center;\n}\n\n:host([collapsed]:not([type])) ::slotted([slot='icon']) {\n margin-right: var(--nile-spacing-md, var(--ng-spacing-none));\n}\n\n/* The label keeps its place in the tree but has no room, so only the icon is centred. */\n:host([collapsed]:not([type])) ::slotted([slot='text']) {\n flex: 0 0 0;\n width: 0;\n}\n\n/* Appearance/Help selected state -- scoped to the untyped variant only; avatar's own [active] rule above is separate. */\n:host([active]:not([type])) .footer-item {\n background: var(--ng-colors-bg-primary);\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n}\n\n:host([active]:not([type])) ::slotted([slot='text']) {\n color: var(--ng-colors-text-brand-secondary-700);\n}\n\n:host([active]:not([type])) {\n --nile-side-bar-footer-icon-color: var(--ng-colors-fg-brand-primary-600);\n}\n\n/* Focus-visible is the ring only, independent of selection — same rule as nile-side-bar-group-item. */\n.footer-item:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);\n}\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAEaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|