@jskit-ai/shell-web 0.2.9 → 0.2.11

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/fixtures/adaptive-shell/src/App.vue +2 -0
  3. package/fixtures/adaptive-shell/src/RecordListPage.vue +22 -0
  4. package/fixtures/adaptive-shell/src/RecordPage.vue +30 -0
  5. package/fixtures/adaptive-shell/src/ScreenPage.vue +7 -3
  6. package/fixtures/adaptive-shell/src/SettingsPage.vue +24 -0
  7. package/fixtures/adaptive-shell/src/main.js +60 -55
  8. package/fixtures/adaptive-shell/src/records.js +13 -0
  9. package/fixtures/adaptive-shell/src/theme/index.js +3 -0
  10. package/locales/en.json +1 -0
  11. package/package.json +17 -5
  12. package/patterns/application-shell/PATTERN.md +3 -1
  13. package/patterns/application-shell/example/expected-existing/src/pages/home/index.vue +5 -18
  14. package/patterns/application-shell/example/expected-existing/src/views/NotFound.vue +14 -0
  15. package/patterns/application-shell/example/src/pages/home/index.vue +21 -57
  16. package/patterns/application-shell/example/src/pages/home/settings/general/index.vue +24 -19
  17. package/patterns/application-shell/example/src/pages/home/settings.vue +27 -84
  18. package/patterns/application-shell/example/src/views/NotFound.vue +15 -0
  19. package/patterns/page-and-placement/example/src/components/SyncStatusElement.vue +2 -2
  20. package/patterns/page-and-placement/example/src/pages/home/reports/activity.vue +1 -1
  21. package/patterns/page-and-placement/example/src/pages/home/reports/overview.vue +1 -1
  22. package/patterns/page-and-placement/example/src/pages/home/reports.vue +6 -3
  23. package/patterns/page-and-placement/example/src/placement.js +1 -1
  24. package/src/client/components/ShellErrorHost.vue +13 -15
  25. package/src/client/components/ShellLayout.vue +388 -186
  26. package/src/client/components/ShellListDetail.vue +77 -0
  27. package/src/client/components/ShellMenuLinkItem.vue +10 -24
  28. package/src/client/components/ShellNavigationItem.vue +175 -0
  29. package/src/client/components/ShellNavigationScope.vue +18 -0
  30. package/src/client/components/ShellOutlet.vue +1 -1
  31. package/src/client/components/ShellOutletMenuWidget.vue +2 -2
  32. package/src/client/components/ShellPageAction.vue +91 -0
  33. package/src/client/components/ShellPageActions.vue +32 -0
  34. package/src/client/components/ShellSurfaceAwareMenuLinkItem.vue +10 -24
  35. package/src/client/components/ShellTabLinkItem.vue +77 -3
  36. package/src/client/composables/useShellDrawer.js +28 -18
  37. package/src/client/composables/useShellPageTitle.js +15 -0
  38. package/src/client/composables/useShellRouteTransition.js +1 -1
  39. package/src/client/composables/useShellWindowSizeClass.js +21 -0
  40. package/src/client/error/presentation.js +3 -5
  41. package/src/client/index.js +7 -0
  42. package/src/client/lib/menuIcons.js +21 -65
  43. package/src/client/navigation/documentNavigation.js +38 -0
  44. package/src/client/navigation/shellNavigationRuntime.js +480 -0
  45. package/src/client/navigation/useShellNavigation.js +94 -0
  46. package/src/client/providers/ShellWebClientProvider.js +11 -0
  47. package/src/client/support/drawerPresentation.js +9 -4
  48. package/src/client/support/drawerWidth.js +18 -1
  49. package/src/client/support/navigationPresentation.js +40 -0
  50. package/src/client/support/shellLayoutClass.js +6 -25
  51. package/src/client/support/windowSizeClass.js +29 -0
  52. package/src/test/adaptiveShellSmoke.js +43 -16
  53. package/src/test/shellNavigation.js +32 -0
  54. package/test/adaptiveShell.browser.test.js +207 -111
  55. package/test/clientUpdate.test.js +6 -1
  56. package/test/drawerPresentation.test.js +7 -7
  57. package/test/errorPresentation.test.js +4 -5
  58. package/test/materialBaselines.browser.test.js +96 -0
  59. package/test/menuIcons.test.js +14 -22
  60. package/test/outletMenuWidgetContract.test.js +2 -3
  61. package/test/playwrightContract.test.js +3 -1
  62. package/test/provider.test.js +9 -1
  63. package/test/settingsPlacementContract.test.js +33 -28
  64. package/test/shellGestureSupport.test.js +21 -9
  65. package/test/translation.test.js +2 -2
  66. package/test/useShellDrawer.test.js +20 -5
  67. package/test/useShellRouteTransition.test.js +3 -3
  68. package/patterns/application-shell/example/src/pages/home/settings/index.vue +0 -7
  69. package/src/client/components/ShellNavigationTooltip.vue +0 -39
@@ -1,39 +0,0 @@
1
- <script setup>
2
- import { useTheme } from "vuetify";
3
- import { useJskitText } from "../i18n.js";
4
-
5
- const props = defineProps({
6
- label: {
7
- type: [String, Object],
8
- default: ""
9
- }
10
- });
11
-
12
- const theme = useTheme();
13
- const { text } = useJskitText();
14
- </script>
15
-
16
- <template>
17
- <v-tooltip
18
- :text="text(props.label)"
19
- :theme="theme.name.value"
20
- location="end"
21
- content-class="shell-navigation-tooltip"
22
- :open-delay="400"
23
- :open-on-focus="true"
24
- :open-on-hover="true"
25
- >
26
- <template #activator="{ props: activatorProps }">
27
- <slot :activator-props="activatorProps" />
28
- </template>
29
- </v-tooltip>
30
- </template>
31
-
32
- <style>
33
- .shell-navigation-tooltip {
34
- background-color:
35
- rgb(var(--v-theme-inverse-surface, var(--v-theme-on-surface))) !important;
36
- color:
37
- rgb(var(--v-theme-inverse-on-surface, var(--v-theme-surface))) !important;
38
- }
39
- </style>