@aquera/nile-elements 2.0.21 → 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 +76 -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 +1954 -937
- 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-empty-state/nile-empty-state.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
- package/dist/nile-empty-state/nile-empty-state.esm.js +4 -4
- 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/index.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/index.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js.map +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 +75 -3
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +3 -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/nile-wysiwyg-editor/types.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/types.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/types.esm.js +1 -1
- 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-empty-state/nile-empty-state.d.ts +5 -0
- package/dist/src/nile-empty-state/nile-empty-state.js +11 -2
- package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
- package/dist/src/nile-empty-state/nile-empty-state.test.js +31 -0
- package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
- 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/index.d.ts +2 -1
- package/dist/src/nile-wysiwyg-editor/index.js +1 -1
- package/dist/src/nile-wysiwyg-editor/index.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +77 -2
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.d.ts +20 -0
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +37 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.js +108 -0
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.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/nile-wysiwyg-editor/types.d.ts +8 -0
- package/dist/src/nile-wysiwyg-editor/types.js +50 -0
- package/dist/src/nile-wysiwyg-editor/types.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-empty-state/nile-empty-state.test.ts +24 -0
- package/src/nile-empty-state/nile-empty-state.ts +12 -2
- 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/index.ts +2 -1
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +78 -2
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.ts +132 -0
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +40 -1
- package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
- package/src/nile-wysiwyg-editor/types.ts +52 -0
- package/test-timings.json +0 -1
- package/vscode-html-custom-data.json +372 -24
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import { CSSResultArray, TemplateResult, PropertyValues } from 'lit';
|
|
8
8
|
import NileElement from '../internal/nile-element';
|
|
9
9
|
import '../nile-button/nile-button';
|
|
10
|
+
import '../nile-lite-tooltip/index';
|
|
11
|
+
import type { NileliteTooltip } from '../nile-lite-tooltip/nile-lite-tooltip';
|
|
10
12
|
/** The mode the AI panel is currently in. */
|
|
11
13
|
export type NileAppShellPanelMode = 'docked' | 'overlay';
|
|
12
14
|
/** Where the top bar is mounted. */
|
|
@@ -27,12 +29,16 @@ export interface NileAppShellClickDetail {
|
|
|
27
29
|
*
|
|
28
30
|
* @dependency nile-button
|
|
29
31
|
* @dependency nile-glyph
|
|
32
|
+
* @dependency nile-lite-tooltip
|
|
30
33
|
*
|
|
31
34
|
* @slot - The page body, inside the content container.
|
|
32
35
|
* @slot banner - A full-width strip above every other region.
|
|
33
36
|
* @slot top-bar - The page-title bar, mounted inside the container by default or spanning the shell when `top-bar-placement="shell"`.
|
|
34
37
|
* @slot top-bar-actions - Controls pinned to the end of the top bar.
|
|
35
38
|
* @slot tabs - A hoisted second-level tab strip, flush under the top bar and outside `<main>`'s scroller.
|
|
39
|
+
* @slot page-title - The page title's content, replacing `pageTitle`. It sits inside the shell's own heading wrapper, so the heading role and `headingLevel` still apply.
|
|
40
|
+
* @slot description - The line under the page title, replacing `description`. Takes any content, and the header grows to fit it.
|
|
41
|
+
* @slot breadcrumb - A breadcrumb trail (e.g. `<nile-breadcrumb>`) above the page title. Shown only with a `pageTitle`; the title block is pushed down by however tall the trail is.
|
|
36
42
|
* @slot app-icon - The mark shown before the page title whenever this slot has content, clipped to the shell's box.
|
|
37
43
|
* @slot side-nav - The navigation track. Works best with `<nile-side-bar>`.
|
|
38
44
|
* @slot aside - A secondary column between the content container and the panel.
|
|
@@ -57,6 +63,7 @@ export interface NileAppShellClickDetail {
|
|
|
57
63
|
* @csspart top-bar-actions - The end-aligned top bar action group.
|
|
58
64
|
* @csspart ask - The built-in Ask button, the shell's single door to the panel.
|
|
59
65
|
* @csspart title-area - The header's own title block: back control, app icon, title, badge and description.
|
|
66
|
+
* @csspart breadcrumb - The row above the page title that holds the `breadcrumb` slot.
|
|
60
67
|
* @csspart page-title - The title text, exposed as a heading whose level `headingLevel` sets.
|
|
61
68
|
* @csspart description - The second line under the title.
|
|
62
69
|
* @csspart badge - The pill after the title.
|
|
@@ -77,13 +84,10 @@ export interface NileAppShellClickDetail {
|
|
|
77
84
|
* @csspart panel-body - The panel's scroll region.
|
|
78
85
|
* @csspart panel-footer - The panel's footer.
|
|
79
86
|
*
|
|
80
|
-
* @cssproperty [--nile-app-shell-side-nav-width=
|
|
81
|
-
* @cssproperty [--nile-app-shell-side-nav-rail-width=
|
|
82
|
-
* @cssproperty [--nile-app-shell-side-nav-bg=transparent] - Surface behind a slotted side nav.
|
|
83
|
-
* @cssproperty [--nile-app-shell-side-nav-border=0] - Edge on a slotted side nav.
|
|
87
|
+
* @cssproperty [--nile-app-shell-side-nav-width=260px] - Expanded nav track (240px on the enterprise sheet), in step with nile-side-bar.
|
|
88
|
+
* @cssproperty [--nile-app-shell-side-nav-rail-width=72px] - Collapsed track (70px on the enterprise sheet), in step with nile-side-bar.
|
|
84
89
|
* @cssproperty [--nile-app-shell-gutter=4px] - Content-section padding, and the gap between container, aside and panel.
|
|
85
90
|
* @cssproperty [--nile-app-shell-content-padding=24px] - Container inner padding.
|
|
86
|
-
* @cssproperty [--nile-app-shell-top-bar-height=68px] - Top bar height.
|
|
87
91
|
* @cssproperty [--nile-app-shell-panel-header-height=56px] - The panel header's own height.
|
|
88
92
|
* @cssproperty [--nile-app-shell-tabs-height=33px] - Tab strip height.
|
|
89
93
|
* @cssproperty [--nile-app-shell-panel-width=480px] - Docked panel width, and the `min()` ceiling for the overlay drawer.
|
|
@@ -119,11 +123,11 @@ export declare class NileAppShell extends NileElement {
|
|
|
119
123
|
noPanel: boolean;
|
|
120
124
|
/** The default panel heading. Ignored when `panel-header` is slotted. */
|
|
121
125
|
panelLabel: string;
|
|
122
|
-
/** The page title, rendered as the top bar's own heading (`role="heading"`, level from `headingLevel`) before anything slotted into `top-bar`;
|
|
126
|
+
/** The page title, rendered as the top bar's own heading (`role="heading"`, level from `headingLevel`) before anything slotted into `top-bar`; the fallback for the `page-title` slot. Leave unset, with the slot empty, and no title block renders. */
|
|
123
127
|
pageTitle?: string;
|
|
124
128
|
/** The `aria-level` of the `pageTitle` heading, 1–6, so the title can fit the page's own heading outline; e.g. 2 when the page body or banner already has its h1. Out-of-range values clamp to 1–6 and non-numbers fall back to 1. */
|
|
125
129
|
headingLevel: number;
|
|
126
|
-
/** A second line under the page title;
|
|
130
|
+
/** A second line under the page title; the fallback for the `description` slot, and a modifier on the title that renders nothing without one. */
|
|
127
131
|
description?: string;
|
|
128
132
|
/** A pill after the page title; a modifier on `pageTitle` like `description`, so with no title there is no badge. */
|
|
129
133
|
badge?: string;
|
|
@@ -131,6 +135,12 @@ export declare class NileAppShell extends NileElement {
|
|
|
131
135
|
headerBack: boolean;
|
|
132
136
|
/** Accessible name of the header back control. Never rendered as visible text. */
|
|
133
137
|
headerBackLabel: string;
|
|
138
|
+
/** Turns off the shell's own tooltips: the labels on its icon buttons, and the full text of a title, description or panel title that its ellipsis has cut off. */
|
|
139
|
+
disableTooltip: boolean;
|
|
140
|
+
/** Placement of the tooltips on the shell's icon buttons: the nav toggle, the back button and the panel's back and close buttons. Unset keeps `bottom`. Any `nile-lite-tooltip` placement. */
|
|
141
|
+
controlTooltipPlacement?: NileliteTooltip['placement'];
|
|
142
|
+
/** Placement of the full-text tooltips on a title, description or panel title that its ellipsis has cut off. Unset keeps `top`. Any `nile-lite-tooltip` placement. */
|
|
143
|
+
textTooltipPlacement?: NileliteTooltip['placement'];
|
|
134
144
|
/** Hides the built-in nav toggle. Mount `nile-app-shell-nav-toggle` yourself. */
|
|
135
145
|
noNavToggle: boolean;
|
|
136
146
|
/** Drops the Cmd/Ctrl+J and Escape panel shortcuts. */
|
|
@@ -177,11 +187,16 @@ export declare class NileAppShell extends NileElement {
|
|
|
177
187
|
private _hasTopBarActions;
|
|
178
188
|
private _hasTabs;
|
|
179
189
|
private _hasAppIcon;
|
|
190
|
+
private _hasBreadcrumb;
|
|
191
|
+
private _hasTitleSlot;
|
|
192
|
+
private _hasDescriptionSlot;
|
|
180
193
|
private _hasPanel;
|
|
181
194
|
private _hasPanelFooter;
|
|
182
195
|
/** True when a `nile-app-shell-panel` is slotted, owning the panel's own chrome so the shell renders a bare region. */
|
|
183
196
|
private _panelOwnsChrome;
|
|
184
197
|
private _hasAside;
|
|
198
|
+
/** The full text of each heading the ellipsis is currently cutting off; empty while it fits. */
|
|
199
|
+
private _clipped;
|
|
185
200
|
private _main?;
|
|
186
201
|
private _width;
|
|
187
202
|
private _resizeObserver?;
|
|
@@ -202,6 +217,10 @@ export declare class NileAppShell extends NileElement {
|
|
|
202
217
|
disconnectedCallback(): void;
|
|
203
218
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
204
219
|
protected updated(changed: PropertyValues<this>): void;
|
|
220
|
+
/** Records the text of each title the ellipsis has cut off, so only those get a tooltip. */
|
|
221
|
+
private _syncClipping;
|
|
222
|
+
/** Wraps a control or heading in a nile-lite-tooltip; an empty `content`, or `disableTooltip`, leaves the tooltip off. */
|
|
223
|
+
private _tip;
|
|
205
224
|
/** Open the AI panel. No-op when no panel is mounted for this route. */
|
|
206
225
|
openPanel(): void;
|
|
207
226
|
/** Close the AI panel. */
|
|
@@ -233,6 +252,12 @@ export declare class NileAppShell extends NileElement {
|
|
|
233
252
|
private _recompute;
|
|
234
253
|
/** Mirrors the effective rail state onto a slotted `nile-side-bar`. */
|
|
235
254
|
private _syncSideNav;
|
|
255
|
+
/**
|
|
256
|
+
* Sets the effective rail state on a slotted nile-side-bar and on one nested in a nile-app-shell-side-nav.
|
|
257
|
+
* It sets the `collapsed` property rather than the attribute: a sidebar that has just toggled itself has
|
|
258
|
+
* not reflected that to its attribute yet, so toggling the attribute back would be a no-op.
|
|
259
|
+
*/
|
|
260
|
+
private _reassertRail;
|
|
236
261
|
/** A slotted sidebar's own expand button is the same toggle. */
|
|
237
262
|
private _onSideNavToggle;
|
|
238
263
|
private _onKeyDown;
|
|
@@ -243,11 +268,19 @@ export declare class NileAppShell extends NileElement {
|
|
|
243
268
|
private _renderNavToggle;
|
|
244
269
|
/** Whether the header has a title block of its own to draw: a title, the back arrow or a slotted app icon mounts it. */
|
|
245
270
|
private get _hasTitleBlock();
|
|
271
|
+
/** A title is present when `pageTitle` has content or the `page-title` slot is filled. */
|
|
272
|
+
private get _hasTitle();
|
|
273
|
+
/** A description is present when `description` has content or the `description` slot is filled. */
|
|
274
|
+
private get _hasDescription();
|
|
246
275
|
/** `headingLevel` as a safe `aria-level`: a whole number clamped to 1–6, and 1 for anything non-numeric. */
|
|
247
276
|
private get _headingLevel();
|
|
248
277
|
private _renderBack;
|
|
249
278
|
private _renderAppIconSlot;
|
|
279
|
+
private _renderBreadcrumbSlot;
|
|
250
280
|
private _renderAppIconProbe;
|
|
281
|
+
private _renderTitleProbe;
|
|
282
|
+
private _renderTitleSlot;
|
|
283
|
+
private _renderDescriptionSlot;
|
|
251
284
|
private _renderTitleBlock;
|
|
252
285
|
private _renderTopBar;
|
|
253
286
|
render(): TemplateResult;
|
|
@@ -12,6 +12,7 @@ import { styles } from './nile-app-shell.css';
|
|
|
12
12
|
import { renderGlyph } from '../internal/glyph';
|
|
13
13
|
import NileElement from '../internal/nile-element';
|
|
14
14
|
import '../nile-button/nile-button';
|
|
15
|
+
import '../nile-lite-tooltip/index';
|
|
15
16
|
/**
|
|
16
17
|
* @summary The application frame every route inherits: a side nav, a content container, an optional aside and an AI assistant panel.
|
|
17
18
|
*
|
|
@@ -22,12 +23,16 @@ import '../nile-button/nile-button';
|
|
|
22
23
|
*
|
|
23
24
|
* @dependency nile-button
|
|
24
25
|
* @dependency nile-glyph
|
|
26
|
+
* @dependency nile-lite-tooltip
|
|
25
27
|
*
|
|
26
28
|
* @slot - The page body, inside the content container.
|
|
27
29
|
* @slot banner - A full-width strip above every other region.
|
|
28
30
|
* @slot top-bar - The page-title bar, mounted inside the container by default or spanning the shell when `top-bar-placement="shell"`.
|
|
29
31
|
* @slot top-bar-actions - Controls pinned to the end of the top bar.
|
|
30
32
|
* @slot tabs - A hoisted second-level tab strip, flush under the top bar and outside `<main>`'s scroller.
|
|
33
|
+
* @slot page-title - The page title's content, replacing `pageTitle`. It sits inside the shell's own heading wrapper, so the heading role and `headingLevel` still apply.
|
|
34
|
+
* @slot description - The line under the page title, replacing `description`. Takes any content, and the header grows to fit it.
|
|
35
|
+
* @slot breadcrumb - A breadcrumb trail (e.g. `<nile-breadcrumb>`) above the page title. Shown only with a `pageTitle`; the title block is pushed down by however tall the trail is.
|
|
31
36
|
* @slot app-icon - The mark shown before the page title whenever this slot has content, clipped to the shell's box.
|
|
32
37
|
* @slot side-nav - The navigation track. Works best with `<nile-side-bar>`.
|
|
33
38
|
* @slot aside - A secondary column between the content container and the panel.
|
|
@@ -52,6 +57,7 @@ import '../nile-button/nile-button';
|
|
|
52
57
|
* @csspart top-bar-actions - The end-aligned top bar action group.
|
|
53
58
|
* @csspart ask - The built-in Ask button, the shell's single door to the panel.
|
|
54
59
|
* @csspart title-area - The header's own title block: back control, app icon, title, badge and description.
|
|
60
|
+
* @csspart breadcrumb - The row above the page title that holds the `breadcrumb` slot.
|
|
55
61
|
* @csspart page-title - The title text, exposed as a heading whose level `headingLevel` sets.
|
|
56
62
|
* @csspart description - The second line under the title.
|
|
57
63
|
* @csspart badge - The pill after the title.
|
|
@@ -72,13 +78,10 @@ import '../nile-button/nile-button';
|
|
|
72
78
|
* @csspart panel-body - The panel's scroll region.
|
|
73
79
|
* @csspart panel-footer - The panel's footer.
|
|
74
80
|
*
|
|
75
|
-
* @cssproperty [--nile-app-shell-side-nav-width=
|
|
76
|
-
* @cssproperty [--nile-app-shell-side-nav-rail-width=
|
|
77
|
-
* @cssproperty [--nile-app-shell-side-nav-bg=transparent] - Surface behind a slotted side nav.
|
|
78
|
-
* @cssproperty [--nile-app-shell-side-nav-border=0] - Edge on a slotted side nav.
|
|
81
|
+
* @cssproperty [--nile-app-shell-side-nav-width=260px] - Expanded nav track (240px on the enterprise sheet), in step with nile-side-bar.
|
|
82
|
+
* @cssproperty [--nile-app-shell-side-nav-rail-width=72px] - Collapsed track (70px on the enterprise sheet), in step with nile-side-bar.
|
|
79
83
|
* @cssproperty [--nile-app-shell-gutter=4px] - Content-section padding, and the gap between container, aside and panel.
|
|
80
84
|
* @cssproperty [--nile-app-shell-content-padding=24px] - Container inner padding.
|
|
81
|
-
* @cssproperty [--nile-app-shell-top-bar-height=68px] - Top bar height.
|
|
82
85
|
* @cssproperty [--nile-app-shell-panel-header-height=56px] - The panel header's own height.
|
|
83
86
|
* @cssproperty [--nile-app-shell-tabs-height=33px] - Tab strip height.
|
|
84
87
|
* @cssproperty [--nile-app-shell-panel-width=480px] - Docked panel width, and the `min()` ceiling for the overlay drawer.
|
|
@@ -121,6 +124,8 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
121
124
|
this.headerBack = false;
|
|
122
125
|
/** Accessible name of the header back control. Never rendered as visible text. */
|
|
123
126
|
this.headerBackLabel = 'Back';
|
|
127
|
+
/** Turns off the shell's own tooltips: the labels on its icon buttons, and the full text of a title, description or panel title that its ellipsis has cut off. */
|
|
128
|
+
this.disableTooltip = false;
|
|
124
129
|
/** Hides the built-in nav toggle. Mount `nile-app-shell-nav-toggle` yourself. */
|
|
125
130
|
this.noNavToggle = false;
|
|
126
131
|
/** Drops the Cmd/Ctrl+J and Escape panel shortcuts. */
|
|
@@ -165,11 +170,16 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
165
170
|
this._hasTopBarActions = false;
|
|
166
171
|
this._hasTabs = false;
|
|
167
172
|
this._hasAppIcon = false;
|
|
173
|
+
this._hasBreadcrumb = false;
|
|
174
|
+
this._hasTitleSlot = false;
|
|
175
|
+
this._hasDescriptionSlot = false;
|
|
168
176
|
this._hasPanel = false;
|
|
169
177
|
this._hasPanelFooter = false;
|
|
170
178
|
/** True when a `nile-app-shell-panel` is slotted, owning the panel's own chrome so the shell renders a bare region. */
|
|
171
179
|
this._panelOwnsChrome = false;
|
|
172
180
|
this._hasAside = false;
|
|
181
|
+
/** The full text of each heading the ellipsis is currently cutting off; empty while it fits. */
|
|
182
|
+
this._clipped = { title: '', description: '', panelTitle: '' };
|
|
173
183
|
this._width = 0;
|
|
174
184
|
this._restoredPanelOpen = null;
|
|
175
185
|
/** A slotted sidebar's own expand button is the same toggle. */
|
|
@@ -177,6 +187,8 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
177
187
|
const detail = event.detail;
|
|
178
188
|
if (detail && typeof detail.collapsed === 'boolean') {
|
|
179
189
|
this._setNavCollapsed(detail.collapsed);
|
|
190
|
+
// The shell decides the rail: a locked rail stays a rail whatever the button asked for.
|
|
191
|
+
this._reassertRail();
|
|
180
192
|
}
|
|
181
193
|
};
|
|
182
194
|
this._onKeyDown = (event) => {
|
|
@@ -225,6 +237,7 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
225
237
|
super.connectedCallback();
|
|
226
238
|
this._restore();
|
|
227
239
|
this._resizeObserver = new ResizeObserver(entries => {
|
|
240
|
+
this._syncClipping();
|
|
228
241
|
const entry = entries[entries.length - 1];
|
|
229
242
|
this._measure(entry.contentRect.width);
|
|
230
243
|
});
|
|
@@ -259,7 +272,8 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
259
272
|
this._hasTitleBlock ||
|
|
260
273
|
(!this.noNavToggle && this._hasSideNav));
|
|
261
274
|
// Only with a title to sit under: see _hasTitleBlock.
|
|
262
|
-
this.toggleAttribute('has-description',
|
|
275
|
+
this.toggleAttribute('has-description', this._hasDescription && this._hasTitle);
|
|
276
|
+
this.toggleAttribute('has-breadcrumb', this._hasBreadcrumb && this._hasTitle);
|
|
263
277
|
this.toggleAttribute('has-top-bar-actions', this._hasTopBarActions);
|
|
264
278
|
this.toggleAttribute('has-app-icon', this._hasAppIcon);
|
|
265
279
|
this.toggleAttribute('has-ask', this.askVisible);
|
|
@@ -270,6 +284,47 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
270
284
|
this.setAttribute('panel-mode', this._panelMode);
|
|
271
285
|
this.setAttribute('panel-chrome', this._panelOwnsChrome ? 'external' : 'internal');
|
|
272
286
|
this._syncSideNav();
|
|
287
|
+
this._syncClipping();
|
|
288
|
+
}
|
|
289
|
+
/** Records the text of each title the ellipsis has cut off, so only those get a tooltip. */
|
|
290
|
+
_syncClipping() {
|
|
291
|
+
const root = this.shadowRoot;
|
|
292
|
+
if (!root)
|
|
293
|
+
return;
|
|
294
|
+
const textOf = (slotName, fallback) => {
|
|
295
|
+
const slot = root.querySelector(`slot[name="${slotName}"]`);
|
|
296
|
+
const assigned = slot?.assignedNodes({ flatten: true }) ?? [];
|
|
297
|
+
const text = assigned.map(node => node.textContent ?? '').join('').trim();
|
|
298
|
+
return text || (fallback ?? '').trim();
|
|
299
|
+
};
|
|
300
|
+
const clippedText = (selector, text) => {
|
|
301
|
+
const el = root.querySelector(selector);
|
|
302
|
+
return el && el.scrollWidth > el.clientWidth ? text() : '';
|
|
303
|
+
};
|
|
304
|
+
const next = {
|
|
305
|
+
title: clippedText('.page-title', () => textOf('page-title', this.pageTitle)),
|
|
306
|
+
description: clippedText('.description', () => textOf('description', this.description)),
|
|
307
|
+
panelTitle: clippedText('.panel-title', () => this.panelLabel),
|
|
308
|
+
};
|
|
309
|
+
const prev = this._clipped;
|
|
310
|
+
if (next.title !== prev.title ||
|
|
311
|
+
next.description !== prev.description ||
|
|
312
|
+
next.panelTitle !== prev.panelTitle) {
|
|
313
|
+
this._clipped = next;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
/** Wraps a control or heading in a nile-lite-tooltip; an empty `content`, or `disableTooltip`, leaves the tooltip off. */
|
|
317
|
+
_tip(content, child, kind = 'control') {
|
|
318
|
+
const placement = kind === 'text'
|
|
319
|
+
? this.textTooltipPlacement ?? 'top'
|
|
320
|
+
: this.controlTooltipPlacement ?? 'bottom';
|
|
321
|
+
return html `<nile-lite-tooltip
|
|
322
|
+
class="tip"
|
|
323
|
+
placement=${placement}
|
|
324
|
+
content=${content}
|
|
325
|
+
?disabled=${this.disableTooltip || !content}
|
|
326
|
+
>${child}</nile-lite-tooltip
|
|
327
|
+
>`;
|
|
273
328
|
}
|
|
274
329
|
/** Open the AI panel. No-op when no panel is mounted for this route. */
|
|
275
330
|
openPanel() {
|
|
@@ -358,9 +413,9 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
358
413
|
return Number.isFinite(value) ? value : fallback;
|
|
359
414
|
};
|
|
360
415
|
return {
|
|
361
|
-
// Read the substituted value so they follow the active theme; the literals
|
|
362
|
-
nav: px('--nile-app-shell-side-nav-width',
|
|
363
|
-
rail: px('--nile-app-shell-side-nav-rail-width',
|
|
416
|
+
// Read the substituted value so they follow the active theme; the literals mirror the CSS fallback (NxtGen 260 / 72).
|
|
417
|
+
nav: px('--nile-app-shell-side-nav-width', 260),
|
|
418
|
+
rail: px('--nile-app-shell-side-nav-rail-width', 72),
|
|
364
419
|
gutter: px('--nile-app-shell-gutter', 4),
|
|
365
420
|
content: px('--nile-app-shell-content-min-width', 640),
|
|
366
421
|
aside: px('--nile-app-shell-aside-width', 320),
|
|
@@ -408,6 +463,18 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
408
463
|
el.toggleAttribute('collapsed', this.rail);
|
|
409
464
|
});
|
|
410
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* Sets the effective rail state on a slotted nile-side-bar and on one nested in a nile-app-shell-side-nav.
|
|
468
|
+
* It sets the `collapsed` property rather than the attribute: a sidebar that has just toggled itself has
|
|
469
|
+
* not reflected that to its attribute yet, so toggling the attribute back would be a no-op.
|
|
470
|
+
*/
|
|
471
|
+
_reassertRail() {
|
|
472
|
+
const bars = [
|
|
473
|
+
...this.querySelectorAll('nile-side-bar[slot="side-nav"]'),
|
|
474
|
+
...[...this.querySelectorAll('nile-app-shell-side-nav')].flatMap(nav => [...nav.querySelectorAll('nile-side-bar')].filter(bar => bar.parentElement?.closest('nile-side-bar, nile-app-shell-side-nav') === nav)),
|
|
475
|
+
];
|
|
476
|
+
bars.forEach(bar => (bar.collapsed = this.rail));
|
|
477
|
+
}
|
|
411
478
|
_storageKey(part) {
|
|
412
479
|
return `nile-app-shell:${this.persistKey}:${part}`;
|
|
413
480
|
}
|
|
@@ -440,6 +507,8 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
440
507
|
}
|
|
441
508
|
}
|
|
442
509
|
_onSlotChange(slot, event) {
|
|
510
|
+
if (!event.target.isConnected)
|
|
511
|
+
return;
|
|
443
512
|
const assigned = event.target.assignedNodes({
|
|
444
513
|
flatten: true,
|
|
445
514
|
});
|
|
@@ -465,6 +534,15 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
465
534
|
case 'app-icon':
|
|
466
535
|
this._hasAppIcon = filled;
|
|
467
536
|
break;
|
|
537
|
+
case 'breadcrumb':
|
|
538
|
+
this._hasBreadcrumb = filled;
|
|
539
|
+
break;
|
|
540
|
+
case 'page-title':
|
|
541
|
+
this._hasTitleSlot = filled;
|
|
542
|
+
break;
|
|
543
|
+
case 'description':
|
|
544
|
+
this._hasDescriptionSlot = filled;
|
|
545
|
+
break;
|
|
468
546
|
case 'aside':
|
|
469
547
|
this._hasAside = filled;
|
|
470
548
|
break;
|
|
@@ -487,7 +565,11 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
487
565
|
const expanded = !this.rail;
|
|
488
566
|
return html `
|
|
489
567
|
<div class="nav-toggle-group">
|
|
490
|
-
|
|
568
|
+
${this._tip(this._navLocked
|
|
569
|
+
? 'The navigation stays collapsed at this window width'
|
|
570
|
+
: expanded
|
|
571
|
+
? 'Collapse navigation'
|
|
572
|
+
: 'Expand navigation', html `<nile-button
|
|
491
573
|
class="nav-toggle utility-control"
|
|
492
574
|
part="nav-toggle"
|
|
493
575
|
variant="ghost"
|
|
@@ -495,16 +577,11 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
495
577
|
aria-controls="side-nav"
|
|
496
578
|
aria-expanded=${expanded ? 'true' : 'false'}
|
|
497
579
|
?disabled=${this._navLocked}
|
|
498
|
-
title=${this._navLocked
|
|
499
|
-
? 'The navigation stays collapsed at this window width'
|
|
500
|
-
: expanded
|
|
501
|
-
? 'Collapse navigation'
|
|
502
|
-
: 'Expand navigation'}
|
|
503
580
|
aria-label=${expanded ? 'Collapse navigation' : 'Expand navigation'}
|
|
504
581
|
@click=${() => this.toggleNav()}
|
|
505
582
|
>
|
|
506
|
-
|
|
507
|
-
|
|
583
|
+
${renderGlyph('ng-panel-left', 20, 'currentColor')}
|
|
584
|
+
</nile-button>`)}
|
|
508
585
|
${this._hasTopBar || this._hasTitleBlock
|
|
509
586
|
? html `<span class="rule" part="rule"></span>`
|
|
510
587
|
: ''}
|
|
@@ -513,7 +590,15 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
513
590
|
}
|
|
514
591
|
/** Whether the header has a title block of its own to draw: a title, the back arrow or a slotted app icon mounts it. */
|
|
515
592
|
get _hasTitleBlock() {
|
|
516
|
-
return
|
|
593
|
+
return this._hasTitle || this.headerBack || this._hasAppIcon;
|
|
594
|
+
}
|
|
595
|
+
/** A title is present when `pageTitle` has content or the `page-title` slot is filled. */
|
|
596
|
+
get _hasTitle() {
|
|
597
|
+
return !!this.pageTitle || this._hasTitleSlot;
|
|
598
|
+
}
|
|
599
|
+
/** A description is present when `description` has content or the `description` slot is filled. */
|
|
600
|
+
get _hasDescription() {
|
|
601
|
+
return !!this.description || this._hasDescriptionSlot;
|
|
517
602
|
}
|
|
518
603
|
/** `headingLevel` as a safe `aria-level`: a whole number clamped to 1–6, and 1 for anything non-numeric. */
|
|
519
604
|
get _headingLevel() {
|
|
@@ -525,16 +610,15 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
525
610
|
return '';
|
|
526
611
|
return html `
|
|
527
612
|
<span class="back-line">
|
|
528
|
-
|
|
613
|
+
${this._tip(this.headerBackLabel, html `<button
|
|
529
614
|
class="back"
|
|
530
615
|
part="back"
|
|
531
616
|
type="button"
|
|
532
617
|
aria-label=${this.headerBackLabel}
|
|
533
|
-
title=${this.headerBackLabel}
|
|
534
618
|
@click=${() => this.goBackHeader()}
|
|
535
619
|
>
|
|
536
620
|
${renderGlyph('ng-arrow-narrow-left', 20, 'currentColor')}
|
|
537
|
-
|
|
621
|
+
</button>`)}
|
|
538
622
|
</span>
|
|
539
623
|
`;
|
|
540
624
|
}
|
|
@@ -544,20 +628,53 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
544
628
|
@slotchange=${(e) => this._onSlotChange('app-icon', e)}
|
|
545
629
|
></slot>`;
|
|
546
630
|
}
|
|
631
|
+
_renderBreadcrumbSlot() {
|
|
632
|
+
return html `<slot
|
|
633
|
+
name="breadcrumb"
|
|
634
|
+
@slotchange=${(e) => this._onSlotChange('breadcrumb', e)}
|
|
635
|
+
></slot>`;
|
|
636
|
+
}
|
|
547
637
|
/* The app-icon slot has to exist whenever the stack does not, or a slotted icon could never mount it: park it, hidden. */
|
|
548
638
|
_renderAppIconProbe() {
|
|
549
639
|
return html `<span class="app-icon-probe" hidden
|
|
550
640
|
>${this._renderAppIconSlot()}</span
|
|
551
641
|
>`;
|
|
552
642
|
}
|
|
643
|
+
/* A slot that is not live in the stack still has to exist, or slotted content could never mount it: park it, hidden. */
|
|
644
|
+
_renderTitleProbe() {
|
|
645
|
+
const descriptionLive = this._hasTitle && this._hasDescription;
|
|
646
|
+
if (descriptionLive)
|
|
647
|
+
return '';
|
|
648
|
+
return html `<span class="title-probe" hidden
|
|
649
|
+
>${this._hasTitle ? '' : this._renderTitleSlot()}${descriptionLive
|
|
650
|
+
? ''
|
|
651
|
+
: this._renderDescriptionSlot()}</span
|
|
652
|
+
>`;
|
|
653
|
+
}
|
|
654
|
+
_renderTitleSlot() {
|
|
655
|
+
return html `<slot
|
|
656
|
+
name="page-title"
|
|
657
|
+
@slotchange=${(e) => this._onSlotChange('page-title', e)}
|
|
658
|
+
>${this.pageTitle}</slot
|
|
659
|
+
>`;
|
|
660
|
+
}
|
|
661
|
+
_renderDescriptionSlot() {
|
|
662
|
+
return html `<slot
|
|
663
|
+
name="description"
|
|
664
|
+
@slotchange=${(e) => this._onSlotChange('description', e)}
|
|
665
|
+
>${this.description}</slot
|
|
666
|
+
>`;
|
|
667
|
+
}
|
|
553
668
|
_renderTitleBlock() {
|
|
554
|
-
if (!this._hasTitleBlock)
|
|
555
|
-
return this._renderAppIconProbe()
|
|
669
|
+
if (!this._hasTitleBlock) {
|
|
670
|
+
return html `${this._renderAppIconProbe()}${this._renderTitleProbe()}`;
|
|
671
|
+
}
|
|
556
672
|
/* The stack is the title and/or the app icon; a back arrow on its own brings no empty stack. */
|
|
557
|
-
if (!this.
|
|
673
|
+
if (!this._hasTitle && !this._hasAppIcon) {
|
|
558
674
|
return html `
|
|
559
675
|
<div class="title-area" part="title-area">
|
|
560
676
|
${this._renderBack()} ${this._renderAppIconProbe()}
|
|
677
|
+
${this._renderTitleProbe()}
|
|
561
678
|
</div>
|
|
562
679
|
`;
|
|
563
680
|
}
|
|
@@ -570,23 +687,29 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
570
687
|
<span class="app-icon" part="app-icon"
|
|
571
688
|
>${this._renderAppIconSlot()}</span
|
|
572
689
|
>
|
|
573
|
-
${this.
|
|
574
|
-
? html `<div
|
|
690
|
+
${this._hasTitle
|
|
691
|
+
? this._tip(this._clipped.title, html `<div
|
|
575
692
|
class="page-title"
|
|
576
693
|
part="page-title"
|
|
577
694
|
role="heading"
|
|
578
695
|
aria-level=${this._headingLevel}
|
|
579
|
-
|
|
696
|
+
>${this._renderTitleSlot()}</div>`, 'text')
|
|
580
697
|
: ''}
|
|
581
|
-
${this.
|
|
698
|
+
${this._hasTitle && this.badge
|
|
582
699
|
? html `<span class="badge" part="badge">${this.badge}</span>`
|
|
583
700
|
: ''}
|
|
584
701
|
</div>
|
|
585
|
-
${this.
|
|
586
|
-
? html `<p
|
|
587
|
-
|
|
588
|
-
|
|
702
|
+
${this._hasTitle && this._hasDescription
|
|
703
|
+
? this._tip(this._clipped.description, html `<p
|
|
704
|
+
class=${this._hasDescriptionSlot
|
|
705
|
+
? 'description is-slotted'
|
|
706
|
+
: 'description'}
|
|
707
|
+
part="description"
|
|
708
|
+
>
|
|
709
|
+
${this._renderDescriptionSlot()}
|
|
710
|
+
</p>`, 'text')
|
|
589
711
|
: ''}
|
|
712
|
+
${this._renderTitleProbe()}
|
|
590
713
|
</div>
|
|
591
714
|
</div>
|
|
592
715
|
`;
|
|
@@ -597,6 +720,14 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
597
720
|
class=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}
|
|
598
721
|
part=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}
|
|
599
722
|
>
|
|
723
|
+
<div
|
|
724
|
+
class="breadcrumb"
|
|
725
|
+
part="breadcrumb"
|
|
726
|
+
?hidden=${!this._hasTitle || !this._hasBreadcrumb}
|
|
727
|
+
>
|
|
728
|
+
${this._renderBreadcrumbSlot()}
|
|
729
|
+
</div>
|
|
730
|
+
<div class="top-bar-row">
|
|
600
731
|
${this._renderNavToggle()}
|
|
601
732
|
<div class="top-bar-content">
|
|
602
733
|
${this._renderTitleBlock()}
|
|
@@ -623,13 +754,14 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
623
754
|
@click=${() => this.openPanel()}
|
|
624
755
|
>
|
|
625
756
|
<span slot="prefix" class="ask-mark">
|
|
626
|
-
${renderGlyph('ng-sparkles',
|
|
757
|
+
${renderGlyph('ng-sparkles', 20, 'currentColor')}
|
|
627
758
|
</span>
|
|
628
759
|
${this.askLabel}
|
|
629
760
|
</nile-button>
|
|
630
761
|
`
|
|
631
762
|
: ''}
|
|
632
763
|
</div>
|
|
764
|
+
</div>
|
|
633
765
|
</div>
|
|
634
766
|
`;
|
|
635
767
|
}
|
|
@@ -701,41 +833,39 @@ let NileAppShell = class NileAppShell extends NileElement {
|
|
|
701
833
|
: html `
|
|
702
834
|
<header class="panel-header" part="panel-header">
|
|
703
835
|
${this.panelBack
|
|
704
|
-
? html `<nile-button
|
|
836
|
+
? this._tip(this.panelBackLabel, html `<nile-button
|
|
705
837
|
class="panel-back utility-control"
|
|
706
838
|
part="panel-back"
|
|
707
839
|
variant="ghost"
|
|
708
840
|
circle
|
|
709
|
-
title=${this.panelBackLabel}
|
|
710
841
|
aria-label=${this.panelBackLabel}
|
|
711
842
|
@click=${() => this.goBackPanel()}
|
|
712
843
|
>
|
|
713
844
|
${renderGlyph('ng-arrow-left', 20, 'currentColor')}
|
|
714
|
-
</nile-button>`
|
|
845
|
+
</nile-button>`)
|
|
715
846
|
: ''}
|
|
716
847
|
<slot name="panel-header">
|
|
717
848
|
<span class="panel-heading">
|
|
718
849
|
<span class="panel-mark">
|
|
719
850
|
${renderGlyph('ng-sparkles', 20, 'currentColor')}
|
|
720
851
|
</span>
|
|
721
|
-
|
|
852
|
+
${this._tip(this._clipped.panelTitle, html `<h2 class="panel-title" part="panel-title">
|
|
722
853
|
${this.panelLabel}
|
|
723
|
-
|
|
854
|
+
</h2>`, 'text')}
|
|
724
855
|
</span>
|
|
725
856
|
</slot>
|
|
726
857
|
<div class="panel-actions" part="panel-actions">
|
|
727
858
|
<slot name="panel-actions"></slot>
|
|
728
|
-
|
|
859
|
+
${this._tip(`Close ${this.panelLabel}`, html `<nile-button
|
|
729
860
|
class="panel-close utility-control"
|
|
730
861
|
part="panel-close"
|
|
731
862
|
variant="ghost"
|
|
732
863
|
circle
|
|
733
|
-
title="Close ${this.panelLabel}"
|
|
734
864
|
aria-label="Close ${this.panelLabel}"
|
|
735
865
|
@click=${() => this.closePanel()}
|
|
736
866
|
>
|
|
737
867
|
${renderGlyph('ng-x-close', 20, 'currentColor')}
|
|
738
|
-
|
|
868
|
+
</nile-button>`)}
|
|
739
869
|
</div>
|
|
740
870
|
</header>
|
|
741
871
|
<div class="panel-body" part="panel-body">
|
|
@@ -786,6 +916,15 @@ __decorate([
|
|
|
786
916
|
__decorate([
|
|
787
917
|
property({ type: String, attribute: true, reflect: true })
|
|
788
918
|
], NileAppShell.prototype, "headerBackLabel", void 0);
|
|
919
|
+
__decorate([
|
|
920
|
+
property({ type: Boolean, reflect: true, attribute: true })
|
|
921
|
+
], NileAppShell.prototype, "disableTooltip", void 0);
|
|
922
|
+
__decorate([
|
|
923
|
+
property({ type: String, attribute: true })
|
|
924
|
+
], NileAppShell.prototype, "controlTooltipPlacement", void 0);
|
|
925
|
+
__decorate([
|
|
926
|
+
property({ type: String, attribute: true })
|
|
927
|
+
], NileAppShell.prototype, "textTooltipPlacement", void 0);
|
|
789
928
|
__decorate([
|
|
790
929
|
property({ type: Boolean, reflect: true, attribute: 'no-nav-toggle' })
|
|
791
930
|
], NileAppShell.prototype, "noNavToggle", void 0);
|
|
@@ -864,6 +1003,15 @@ __decorate([
|
|
|
864
1003
|
__decorate([
|
|
865
1004
|
state()
|
|
866
1005
|
], NileAppShell.prototype, "_hasAppIcon", void 0);
|
|
1006
|
+
__decorate([
|
|
1007
|
+
state()
|
|
1008
|
+
], NileAppShell.prototype, "_hasBreadcrumb", void 0);
|
|
1009
|
+
__decorate([
|
|
1010
|
+
state()
|
|
1011
|
+
], NileAppShell.prototype, "_hasTitleSlot", void 0);
|
|
1012
|
+
__decorate([
|
|
1013
|
+
state()
|
|
1014
|
+
], NileAppShell.prototype, "_hasDescriptionSlot", void 0);
|
|
867
1015
|
__decorate([
|
|
868
1016
|
state()
|
|
869
1017
|
], NileAppShell.prototype, "_hasPanel", void 0);
|
|
@@ -876,6 +1024,9 @@ __decorate([
|
|
|
876
1024
|
__decorate([
|
|
877
1025
|
state()
|
|
878
1026
|
], NileAppShell.prototype, "_hasAside", void 0);
|
|
1027
|
+
__decorate([
|
|
1028
|
+
state()
|
|
1029
|
+
], NileAppShell.prototype, "_clipped", void 0);
|
|
879
1030
|
__decorate([
|
|
880
1031
|
query('.main')
|
|
881
1032
|
], NileAppShell.prototype, "_main", void 0);
|