@stacksjs/defaults 0.75.244 → 0.75.246

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 (42) hide show
  1. package/ai/skills/stacks-dashboard/SKILL.md +2 -2
  2. package/ai/skills/stacks-native/CATALOG.md +7 -7
  3. package/ai/skills/stacks-path/SKILL.md +19 -1
  4. package/app/Actions/Dashboard/Models/ModelsIndexAction.ts +2 -1
  5. package/app/Actions/Dashboard/Search/GlobalSearchAction.ts +2 -1
  6. package/app/Actions/Dashboard/Source/source-inventory.ts +2 -1
  7. package/ide/vscode/package.json +1 -1
  8. package/package.json +2 -2
  9. package/project/storage/framework/tsconfig.app.json +8 -0
  10. package/resources/components/Dashboard/Analytics/WebAnalyticsDashboard.stx +5 -5
  11. package/resources/components/Dashboard/Ci/CiDashboard.stx +2 -2
  12. package/resources/components/Dashboard/Ci/CiRunHistoryDrawer.stx +1 -1
  13. package/resources/components/Dashboard/Content/AuthorsDashboard.stx +59 -20
  14. package/resources/components/Dashboard/Content/BlogDashboard.stx +2 -2
  15. package/resources/components/Dashboard/Content/ContentDashboard.stx +2 -2
  16. package/resources/components/Dashboard/Content/ContentTaxonomyDashboard.stx +50 -18
  17. package/resources/components/Dashboard/Content/PagesDashboard.stx +54 -10
  18. package/resources/components/Dashboard/Content/PostsDashboard.stx +91 -20
  19. package/resources/components/Dashboard/Content/SeoDashboard.stx +61 -59
  20. package/resources/components/Dashboard/Email/InboxSettingsDashboard.stx +3 -3
  21. package/resources/components/Dashboard/Environment/EnvironmentDashboard.stx +1 -1
  22. package/resources/components/Dashboard/Kanban/KanbanBoardDashboard.stx +3 -3
  23. package/resources/components/Dashboard/Kanban/KanbanBoardsDashboard.stx +2 -2
  24. package/resources/components/Dashboard/Kanban/KanbanCardDialog.stx +1 -1
  25. package/resources/components/Dashboard/Library/ComponentsDashboard.stx +47 -81
  26. package/resources/components/Dashboard/Library/FunctionsDashboard.stx +24 -15
  27. package/resources/components/Dashboard/Library/PackagesDashboard.stx +68 -13
  28. package/resources/components/Dashboard/Management/PermissionsDashboard.stx +12 -15
  29. package/resources/components/Dashboard/Models/ModelRecordsDashboard.stx +3 -3
  30. package/resources/components/Dashboard/Settings/AppearanceSettingsDashboard.stx +3 -3
  31. package/resources/components/Dashboard/Settings/SettingsDashboard.stx +1 -1
  32. package/resources/components/Dashboard/Teams/TeamInvitationDashboard.stx +2 -2
  33. package/resources/components/Dashboard/UI/Button.stx +29 -3
  34. package/resources/components/Dashboard/UI/SearchFilter.stx +46 -0
  35. package/resources/components/Dashboard/UI/Table.stx +43 -20
  36. package/resources/functions/dashboard/data.ts +27 -4
  37. package/resources/functions/dashboard/sidebar.ts +3 -2
  38. package/resources/plugins/preloader.ts +9 -1
  39. package/views/dashboard/layouts/default.stx +17 -13
  40. package/views/system-tray/index.stx +1 -1
  41. package/resources/components/Dashboard/Commerce/Delivery/SearchFilter.stx +0 -24
  42. package/resources/components/Dashboard/UI/FilterBar.stx +0 -62
@@ -1,62 +0,0 @@
1
- <script client>
2
- const searchPlaceholder = useReactiveProp('searchPlaceholder', 'Search...')
3
- const requestedSearch = useReactiveProp('searchValue', '')
4
- const requestedItemsPerPage = useReactiveProp('itemsPerPage', 10)
5
- const itemsPerPageOptions = useReactiveProp<number[]>('itemsPerPageOptions', [10, 25, 50, 100])
6
- const showItemsPerPage = useReactiveProp('showItemsPerPage', true)
7
- const searchValue = state(requestedSearch())
8
- const itemsPerPage = state(requestedItemsPerPage())
9
- const emit = defineEmits()
10
-
11
- effect(() => {
12
- searchValue.set(requestedSearch())
13
- })
14
-
15
- effect(() => {
16
- itemsPerPage.set(requestedItemsPerPage())
17
- })
18
-
19
- function emitSearch(event: Event): void {
20
- const value = (event.target as HTMLInputElement).value
21
- emit('update:searchValue', value)
22
- emit('search', value)
23
- }
24
-
25
- function emitItemsPerPage(event: Event): void {
26
- const value = Number((event.target as HTMLSelectElement).value)
27
- emit('update:itemsPerPage', value)
28
- emit('per-page', value)
29
- }
30
- </script>
31
-
32
- <div class="flex flex-col gap-3 sm:flex-row sm:items-center">
33
- <div class="relative flex-1 max-w-sm">
34
- <span aria-hidden="true" class="absolute inset-y-0 left-3 my-auto h-4 w-4 text-neutral-400 dark:text-neutral-500 i-hugeicons-search-01"></span>
35
- <input
36
- x-model="searchValue"
37
- type="search"
38
- :placeholder="searchPlaceholder()"
39
- :aria-label="searchPlaceholder()"
40
- class="block pl-9 pr-3 py-1.5 w-full text-[13px] text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-400 dark:placeholder:text-neutral-500 bg-white dark:bg-white/10 border border-black/10 rounded-lg dark:border-white/15 focus:border-blue-400 focus:outline-none focus:ring-2 focus:ring-blue-500/20 hover:border-black/20 dark:hover:border-white/25 duration-150 transition-all"
41
- @input="emitSearch($event)"
42
- />
43
- </div>
44
-
45
- <div class="flex flex-wrap gap-2 items-center">
46
- <slot />
47
- </div>
48
-
49
- <label :if="showItemsPerPage()" class="flex gap-2 items-center ml-auto text-[12px] text-neutral-500 dark:text-neutral-400">
50
- <span>Show</span>
51
- <select
52
- x-model.number="itemsPerPage"
53
- aria-label="Items per page"
54
- class="px-2 h-7 text-[12px] text-neutral-700 dark:text-neutral-200 bg-white dark:bg-white/10 border border-black/10 rounded-md dark:border-white/15 focus:border-blue-500/50 focus:ring-blue-500/40"
55
- @change="emitItemsPerPage($event)"
56
- >
57
- <template :for="option in itemsPerPageOptions()">
58
- <option :value="option">{{ option }}</option>
59
- </template>
60
- </select>
61
- </label>
62
- </div>