@glimstone/vue 4.0.0 → 4.1.1

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 (53) hide show
  1. package/dist/Button.vue.d.ts +23 -2
  2. package/dist/Card.vue.d.ts +2 -0
  3. package/dist/Checkbox.vue.d.ts +24 -0
  4. package/dist/ColorPicker.vue.d.ts +30 -0
  5. package/dist/Combobox.js +32 -31
  6. package/dist/Combobox.vue.d.ts +1 -1
  7. package/dist/ContextMenu.vue.d.ts +29 -0
  8. package/dist/CopyField.vue.d.ts +24 -0
  9. package/dist/FieldRow.vue.d.ts +32 -0
  10. package/dist/FieldRowGroup.vue.d.ts +19 -0
  11. package/dist/GlyphField.vue.d.ts +35 -0
  12. package/dist/GlyphTile.vue.d.ts +13 -0
  13. package/dist/IconButton.vue.d.ts +18 -0
  14. package/dist/IconTipButton.vue.d.ts +2 -0
  15. package/dist/Kbd.vue.d.ts +15 -0
  16. package/dist/ListRow.vue.d.ts +26 -0
  17. package/dist/ListSelect.vue.d.ts +4 -1
  18. package/dist/MenuBar.vue.d.ts +13 -0
  19. package/dist/MenuChoice.vue.d.ts +2 -1
  20. package/dist/MenuRows.vue.d.ts +12 -0
  21. package/dist/MenuSelect.vue.d.ts +4 -1
  22. package/dist/MenuSubmenu.vue.d.ts +2 -1
  23. package/dist/Meter.vue.d.ts +23 -0
  24. package/dist/PasswordField.vue.d.ts +31 -0
  25. package/dist/PathField.vue.d.ts +40 -0
  26. package/dist/Pill.vue.d.ts +23 -0
  27. package/dist/ProgressBar.vue.d.ts +19 -0
  28. package/dist/RowMark.vue.d.ts +6 -0
  29. package/dist/Select.js +241 -218
  30. package/dist/Select.vue.d.ts +10 -4
  31. package/dist/Selector.vue.d.ts +48 -50
  32. package/dist/SelectorSegment.vue.d.ts +1 -1
  33. package/dist/SidebarRow.vue.d.ts +19 -2
  34. package/dist/SidebarRowLink.vue.d.ts +17 -0
  35. package/dist/Slider.js +19 -18
  36. package/dist/Slider.vue.d.ts +1 -1
  37. package/dist/SubCard.vue.d.ts +1 -1
  38. package/dist/Table.vue.d.ts +32 -0
  39. package/dist/TextArea.vue.d.ts +21 -0
  40. package/dist/TextField.vue.d.ts +21 -0
  41. package/dist/ToastViewport.vue.d.ts +2 -1
  42. package/dist/Toggle.vue.d.ts +2 -1
  43. package/dist/Tree.vue.d.ts +23 -0
  44. package/dist/Window.vue.d.ts +46 -0
  45. package/dist/fieldName-DBygJJfe.js +8 -0
  46. package/dist/fieldName.d.ts +5 -0
  47. package/dist/{glyphs-CvCRgBMU.js → glyphs-CYhs4mrY.js} +2 -2
  48. package/dist/glyphs.d.ts +5 -0
  49. package/dist/index.d.ts +26 -0
  50. package/dist/index.js +1734 -459
  51. package/dist/selectorItem.d.ts +5 -3
  52. package/dist/windowParts.d.ts +27 -0
  53. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import type { Component } from "vue";
2
- export interface SelectorItem {
3
- /** Stable id, handed back through v-model. */
4
- id: string;
2
+ export interface SelectorItem<V extends string | number = string> {
3
+ /** Stable id, handed back through v-model as it stands here. */
4
+ id: V;
5
5
  label: string;
6
6
  /** Shown before the label; in a tab strip it is tinted with its tab's hue. */
7
7
  glyph?: Component;
@@ -16,4 +16,6 @@ export interface SelectorItem {
16
16
  href?: string;
17
17
  /** Tiles only: a page with nothing on it yet, dimmed rather than hidden. */
18
18
  dim?: boolean;
19
+ /** Attributes for the item's own segment, such as a data hook. */
20
+ attrs?: Record<string, string>;
19
21
  }
@@ -0,0 +1,27 @@
1
+ import type { Component } from "vue";
2
+ import type { MenuEntry as CoreMenuEntry, MenuHead as CoreMenuHead, MenuItem as CoreMenuItem, TreeNode as CoreTreeNode } from "@glimstone/core";
3
+ export type MenuEntry = CoreMenuEntry<Component>;
4
+ export type MenuItem = CoreMenuItem<Component>;
5
+ export type MenuHead = CoreMenuHead<Component>;
6
+ export type TreeNode = CoreTreeNode<Component>;
7
+ export interface MenuBarMenu {
8
+ label: string;
9
+ items: MenuEntry[];
10
+ /** The id of the open menu, for a caller or a script that looks for it. */
11
+ id?: string;
12
+ }
13
+ export interface WindowAction {
14
+ label: string;
15
+ /** The translation key behind `label`, which picks the glyph, or `null`. */
16
+ labelKey: string | null;
17
+ glyph?: Component;
18
+ /** The forward action, filled with the accent and placed last. */
19
+ primary?: boolean;
20
+ /** This action already leaves the window, such as Done, so no Cancel or Close is added. */
21
+ wayOut?: boolean;
22
+ disabled?: boolean;
23
+ /** Attributes for the action's button, such as a data hook. */
24
+ attrs?: Record<string, string>;
25
+ /** Runs on press. The window closes afterwards unless it returns false. */
26
+ onClick?: () => void | false;
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glimstone/vue",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "description": "GlimStone's components for Vue",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "build": "vite build && vue-tsc -p tsconfig.build.json"
37
37
  },
38
38
  "dependencies": {
39
- "@glimstone/core": "4.0.0"
39
+ "@glimstone/core": "4.1.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@zag-js/combobox": "^1.46.0",