@glimstone/vue 4.1.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.
- package/dist/Button.vue.d.ts +23 -2
- package/dist/Card.vue.d.ts +2 -0
- package/dist/Combobox.js +32 -31
- package/dist/Combobox.vue.d.ts +1 -1
- package/dist/ContextMenu.vue.d.ts +2 -0
- package/dist/CopyField.vue.d.ts +4 -2
- package/dist/FieldRow.vue.d.ts +32 -0
- package/dist/FieldRowGroup.vue.d.ts +19 -0
- package/dist/GlyphField.vue.d.ts +35 -0
- package/dist/GlyphTile.vue.d.ts +13 -0
- package/dist/IconButton.vue.d.ts +18 -0
- package/dist/IconTipButton.vue.d.ts +2 -0
- package/dist/ListRow.vue.d.ts +26 -0
- package/dist/ListSelect.vue.d.ts +4 -1
- package/dist/MenuChoice.vue.d.ts +2 -1
- package/dist/MenuSelect.vue.d.ts +4 -1
- package/dist/MenuSubmenu.vue.d.ts +2 -1
- package/dist/Meter.vue.d.ts +1 -1
- package/dist/PasswordField.vue.d.ts +7 -1
- package/dist/PathField.vue.d.ts +40 -0
- package/dist/RowMark.vue.d.ts +6 -0
- package/dist/Select.js +241 -218
- package/dist/Select.vue.d.ts +10 -4
- package/dist/Selector.vue.d.ts +48 -50
- package/dist/SelectorSegment.vue.d.ts +1 -1
- package/dist/SidebarRow.vue.d.ts +19 -2
- package/dist/SidebarRowLink.vue.d.ts +17 -0
- package/dist/Slider.js +19 -18
- package/dist/Slider.vue.d.ts +1 -1
- package/dist/SubCard.vue.d.ts +1 -1
- package/dist/Table.vue.d.ts +32 -0
- package/dist/TextArea.vue.d.ts +21 -0
- package/dist/TextField.vue.d.ts +21 -0
- package/dist/ToastViewport.vue.d.ts +2 -1
- package/dist/Toggle.vue.d.ts +2 -1
- package/dist/Tree.vue.d.ts +23 -0
- package/dist/Window.vue.d.ts +5 -1
- package/dist/fieldName-DBygJJfe.js +8 -0
- package/dist/fieldName.d.ts +5 -0
- package/dist/{glyphs-Cgknt-k1.js → glyphs-CYhs4mrY.js} +2 -2
- package/dist/glyphs.d.ts +1 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1238 -657
- package/dist/selectorItem.d.ts +5 -3
- package/dist/windowParts.d.ts +6 -1
- package/package.json +2 -2
package/dist/selectorItem.d.ts
CHANGED
|
@@ -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:
|
|
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
|
}
|
package/dist/windowParts.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { Component } from "vue";
|
|
2
|
-
import type { MenuEntry as CoreMenuEntry, MenuHead as CoreMenuHead, MenuItem as CoreMenuItem } from "@glimstone/core";
|
|
2
|
+
import type { MenuEntry as CoreMenuEntry, MenuHead as CoreMenuHead, MenuItem as CoreMenuItem, TreeNode as CoreTreeNode } from "@glimstone/core";
|
|
3
3
|
export type MenuEntry = CoreMenuEntry<Component>;
|
|
4
4
|
export type MenuItem = CoreMenuItem<Component>;
|
|
5
5
|
export type MenuHead = CoreMenuHead<Component>;
|
|
6
|
+
export type TreeNode = CoreTreeNode<Component>;
|
|
6
7
|
export interface MenuBarMenu {
|
|
7
8
|
label: string;
|
|
8
9
|
items: MenuEntry[];
|
|
10
|
+
/** The id of the open menu, for a caller or a script that looks for it. */
|
|
11
|
+
id?: string;
|
|
9
12
|
}
|
|
10
13
|
export interface WindowAction {
|
|
11
14
|
label: string;
|
|
@@ -17,6 +20,8 @@ export interface WindowAction {
|
|
|
17
20
|
/** This action already leaves the window, such as Done, so no Cancel or Close is added. */
|
|
18
21
|
wayOut?: boolean;
|
|
19
22
|
disabled?: boolean;
|
|
23
|
+
/** Attributes for the action's button, such as a data hook. */
|
|
24
|
+
attrs?: Record<string, string>;
|
|
20
25
|
/** Runs on press. The window closes afterwards unless it returns false. */
|
|
21
26
|
onClick?: () => void | false;
|
|
22
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glimstone/vue",
|
|
3
|
-
"version": "4.1.
|
|
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.1.
|
|
39
|
+
"@glimstone/core": "4.1.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@zag-js/combobox": "^1.46.0",
|