@nubisco/ui 1.53.0 → 1.53.2

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 (71) hide show
  1. package/dist/components/AiLabel.d.ts +19 -0
  2. package/dist/components/Badge.d.ts +23 -0
  3. package/dist/components/BlueprintControls.d.ts +21 -0
  4. package/dist/components/BlueprintMinimap.d.ts +17 -0
  5. package/dist/components/Board.d.ts +64 -0
  6. package/dist/components/BottomPanel.d.ts +13 -0
  7. package/dist/components/Button.d.ts +34 -0
  8. package/dist/components/Button.vue.d.ts +1 -1
  9. package/dist/components/Calendar.d.ts +32 -0
  10. package/dist/components/Charts/BarChart.d.ts +12 -0
  11. package/dist/components/Charts/GanttChart.d.ts +81 -0
  12. package/dist/components/Charts/InterpolationChart.d.ts +33 -0
  13. package/dist/components/Charts/LineChart.d.ts +15 -0
  14. package/dist/components/Charts/PieChart.d.ts +11 -0
  15. package/dist/components/Charts/Sparkline.d.ts +11 -0
  16. package/dist/components/Charts/shared/types.d.ts +53 -0
  17. package/dist/components/Checkbox.d.ts +9 -0
  18. package/dist/components/CheckboxGroup.d.ts +17 -0
  19. package/dist/components/ColorStrip.d.ts +22 -0
  20. package/dist/components/CommandPalette.d.ts +40 -0
  21. package/dist/components/DataTable.d.ts +131 -0
  22. package/dist/components/DatePicker.d.ts +52 -0
  23. package/dist/components/Field.d.ts +33 -0
  24. package/dist/components/FileUploader.d.ts +27 -0
  25. package/dist/components/FileUploader.vue.d.ts +1 -1
  26. package/dist/components/Flag.d.ts +9 -0
  27. package/dist/components/Form.d.ts +5 -0
  28. package/dist/components/Grid.d.ts +345 -0
  29. package/dist/components/Icon.d.ts +59 -0
  30. package/dist/components/Icon.vue.d.ts +1 -1
  31. package/dist/components/ImageCropper.d.ts +27 -0
  32. package/dist/components/JsonTree.d.ts +33 -0
  33. package/dist/components/Label.d.ts +14 -0
  34. package/dist/components/Menu.d.ts +53 -0
  35. package/dist/components/Message.d.ts +17 -0
  36. package/dist/components/Modal.d.ts +10 -0
  37. package/dist/components/Modal.vue.d.ts +1 -1
  38. package/dist/components/NumberInput.vue.d.ts +1 -1
  39. package/dist/components/Pagination.d.ts +38 -0
  40. package/dist/components/Pagination.vue.d.ts +1 -1
  41. package/dist/components/ProgressBar.d.ts +27 -0
  42. package/dist/components/Radio.d.ts +28 -0
  43. package/dist/components/Select.d.ts +23 -0
  44. package/dist/components/Shell.d.ts +60 -0
  45. package/dist/components/ShellPanel.d.ts +33 -0
  46. package/dist/components/SidebarBrand.d.ts +14 -0
  47. package/dist/components/SidebarLink.d.ts +24 -0
  48. package/dist/components/SidebarMenu.d.ts +10 -0
  49. package/dist/components/SidebarMenuGroup.d.ts +16 -0
  50. package/dist/components/SidebarMenuItem.d.ts +42 -0
  51. package/dist/components/Slider.d.ts +26 -0
  52. package/dist/components/Switch.d.ts +20 -0
  53. package/dist/components/TextInput.vue.d.ts +1 -1
  54. package/dist/components/Tree.d.ts +68 -0
  55. package/dist/components/TreeNode.vue.d.ts.map +1 -1
  56. package/dist/components/UserMenu.d.ts +43 -0
  57. package/dist/components/labs/Spreadsheet.d.ts +104 -0
  58. package/dist/directives/ToolTip.directive.d.ts +1 -1
  59. package/dist/global.d.ts +135 -0
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.cjs.map +1 -1
  62. package/dist/index.mjs +1 -1
  63. package/dist/index.mjs.map +1 -1
  64. package/dist/types/Decoration.d.ts +6 -0
  65. package/dist/types/Option.d.ts +29 -0
  66. package/dist/types/Props.d.ts +121 -0
  67. package/dist/types/Size.d.ts +33 -0
  68. package/dist/types/Variants.d.ts +12 -0
  69. package/dist/types/Vite.d.ts +3 -0
  70. package/dist/ui.css +1 -1
  71. package/package.json +6 -3
@@ -0,0 +1,43 @@
1
+ interface IUserMenuUser {
2
+ email: string
3
+ name?: string | null
4
+ }
5
+
6
+ interface IUserMenuAccount {
7
+ /** Stable identifier for the account (e.g. the platform `sub`). */
8
+ id: string
9
+ email: string
10
+ name?: string | null
11
+ /** Marks the account the product is currently running as. */
12
+ current?: boolean
13
+ /** Whether the row offers "sign this account out of this browser". */
14
+ removable?: boolean
15
+ }
16
+
17
+ type TUserMenuPlacement = 'right-end' | 'top-start'
18
+
19
+ interface IUserMenuProps {
20
+ /** The identity the product is signed in as (header of the menu). */
21
+ user: IUserMenuUser
22
+ /**
23
+ * Other identities signed in on this browser, rendered as an inline switch
24
+ * list. Omit (or pass empty) when the product cannot enumerate them.
25
+ */
26
+ accounts?: IUserMenuAccount[]
27
+ /**
28
+ * True when the product could not determine the browser's identities (e.g.
29
+ * the identities endpoint was unreachable). Renders a generic
30
+ * "Switch account" action instead of an inline list, so the identity
31
+ * provider can show its own chooser.
32
+ */
33
+ accountsUnknown?: boolean
34
+ /** Hide the whole switch/add section for single-account products. */
35
+ showAccountActions?: boolean
36
+ /** Hide the Profile entry when the product has no profile page. */
37
+ showProfile?: boolean
38
+ /** Where the panel opens relative to the trigger. */
39
+ placement?: TUserMenuPlacement
40
+ disabled?: boolean
41
+ }
42
+
43
+ export { IUserMenuUser, IUserMenuAccount, TUserMenuPlacement, IUserMenuProps }
@@ -0,0 +1,104 @@
1
+ /**
2
+ * NbSpreadsheet — labs-tier spreadsheet-style data grid.
3
+ *
4
+ * Status: experimental. API may change. Use via `app.use(NubiscoUILabs)`.
5
+ */
6
+
7
+ export type TSpreadsheetCellType = 'text' | 'number' | 'date'
8
+ export type TSpreadsheetAlign = 'left' | 'center' | 'right'
9
+ export type TSpreadsheetPinCol = 'left' | 'right'
10
+ export type TSpreadsheetPinRow = 'top' | 'bottom'
11
+ export type TSpreadsheetSortDir = 'asc' | 'desc'
12
+
13
+ export interface ISpreadsheetColumn {
14
+ /** Stable id used for selection, sort, and host commits. */
15
+ id: string
16
+ /** Header label. */
17
+ label: string
18
+ /** Initial pixel width. Default 120. */
19
+ width?: number
20
+ /** Minimum width when the user resizes. Default 60. */
21
+ minWidth?: number
22
+ /** Pin the column to the left or right edge of the viewport. */
23
+ pinned?: TSpreadsheetPinCol
24
+ /** Text alignment inside the cell. Defaults: number+date right, text left. */
25
+ align?: TSpreadsheetAlign
26
+ /** Cell value type — drives default formatter, parser, and input mode. */
27
+ type?: TSpreadsheetCellType
28
+ /** All cells in this column are read-only. */
29
+ readOnly?: boolean
30
+ /** Allow header-click sorting. */
31
+ sortable?: boolean
32
+ /** Host-supplied display formatter. Defaults pick a sensible string. */
33
+ format?: (raw: unknown, row: ISpreadsheetRow) => string
34
+ /** Host-supplied parser for committed edits. Defaults follow `type`. */
35
+ parse?: (input: string) => unknown
36
+ }
37
+
38
+ export interface ISpreadsheetRow {
39
+ id: string
40
+ /** columnId -> raw value */
41
+ values: Record<string, unknown>
42
+ /** Pinned rows stick to the top or bottom of the viewport. */
43
+ pinned?: TSpreadsheetPinRow
44
+ /** Row-wide CSS class for theming (e.g. 'weekend'). */
45
+ className?: string
46
+ /** Marks the row as a totals/computed row — disables editing. */
47
+ computed?: boolean
48
+ }
49
+
50
+ export interface ISpreadsheetCellAttrs {
51
+ readOnly?: boolean
52
+ className?: string
53
+ tooltip?: string
54
+ /** Override the formatted display string. */
55
+ display?: string
56
+ /** Mark a single cell as derived (read-only + style). */
57
+ computed?: boolean
58
+ }
59
+
60
+ export interface ISpreadsheetChange {
61
+ rowId: string
62
+ columnId: string
63
+ before: unknown
64
+ after: unknown
65
+ }
66
+
67
+ export interface ISpreadsheetSelection {
68
+ startRowId: string
69
+ startColumnId: string
70
+ endRowId: string
71
+ endColumnId: string
72
+ }
73
+
74
+ export interface ISpreadsheetProps {
75
+ columns: ISpreadsheetColumn[]
76
+ rows: ISpreadsheetRow[]
77
+ /** Per-cell metadata. Called lazily for visible cells. */
78
+ cellAttrs?: (
79
+ rowId: string,
80
+ columnId: string,
81
+ row: ISpreadsheetRow,
82
+ column: ISpreadsheetColumn,
83
+ ) => ISpreadsheetCellAttrs | void
84
+ /**
85
+ * Compute a derived value for a cell. Lets the host implement totals or
86
+ * formulas without putting raw values in `row.values`. `get` reads other
87
+ * cells' raw values.
88
+ */
89
+ computed?: (
90
+ rowId: string,
91
+ columnId: string,
92
+ get: (rowId: string, columnId: string) => unknown,
93
+ ) => unknown
94
+ /** Allow column resize. Default true. */
95
+ resizable?: boolean
96
+ /** Allow row reorder by dragging the row header. Default false. */
97
+ rowReorderable?: boolean
98
+ /** Show a row index gutter on the left. Default true. */
99
+ showGutter?: boolean
100
+ /** Approximate visible rows used for the simple virtualization. Default 80. */
101
+ windowRows?: number
102
+ /** Locale used for default Intl-based number/date formatting. */
103
+ locale?: string
104
+ }
@@ -1,5 +1,5 @@
1
1
  import type { App } from 'vue';
2
- import type { IComponentContent } from '@/types/ContentRenderer';
2
+ import type { IComponentContent } from '../types/ContentRenderer';
3
3
  export interface ITooltipOptions {
4
4
  body?: string | Array<IComponentContent>;
5
5
  header?: string | Array<IComponentContent>;
@@ -0,0 +1,135 @@
1
+ // AUTO-GENERATED: do not edit by hand
2
+ // Re-run the build to update this file when components change
3
+ import AiLabel from './components/AiLabel.vue'
4
+ import Badge from './components/Badge.vue'
5
+ import BarChart from './components/Charts/BarChart.vue'
6
+ import Blueprint from './components/Blueprint.vue'
7
+ import BlueprintCard from './components/BlueprintCard.vue'
8
+ import BlueprintControls from './components/BlueprintControls.vue'
9
+ import BlueprintDomRenderer from './components/BlueprintDomRenderer.vue'
10
+ import BlueprintMinimap from './components/BlueprintMinimap.vue'
11
+ import BlueprintPixiRenderer from './components/BlueprintPixiRenderer.vue'
12
+ import Board from './components/Board.vue'
13
+ import BottomPanel from './components/BottomPanel.vue'
14
+ import Breadcrumbs from './components/Breadcrumbs.vue'
15
+ import Button from './components/Button.vue'
16
+ import Calendar from './components/Calendar.vue'
17
+ import Checkbox from './components/Checkbox.vue'
18
+ import CheckboxGroup from './components/CheckboxGroup.vue'
19
+ import ColorStrip from './components/ColorStrip.vue'
20
+ import CommandPalette from './components/CommandPalette.vue'
21
+ import DataTable from './components/DataTable.vue'
22
+ import DatePicker from './components/DatePicker.vue'
23
+ import Field from './components/Field.vue'
24
+ import FileUploader from './components/FileUploader.vue'
25
+ import Flag from './components/Flag.vue'
26
+ import Form from './components/Form.vue'
27
+ import GanttChart from './components/Charts/GanttChart.vue'
28
+ import Grid from './components/Grid.vue'
29
+ import Icon from './components/Icon.vue'
30
+ import ImageCropper from './components/ImageCropper.vue'
31
+ import InterpolationChart from './components/Charts/InterpolationChart.vue'
32
+ import JsonTree from './components/JsonTree.vue'
33
+ import Label from './components/Label.vue'
34
+ import LineChart from './components/Charts/LineChart.vue'
35
+ import Menu from './components/Menu.vue'
36
+ import MenuBar from './components/MenuBar.vue'
37
+ import MenuBarItem from './components/MenuBarItem.vue'
38
+ import MenuDivider from './components/MenuDivider.vue'
39
+ import MenuItem from './components/MenuItem.vue'
40
+ import Message from './components/Message.vue'
41
+ import Modal from './components/Modal.vue'
42
+ import NumberInput from './components/NumberInput.vue'
43
+ import Pagination from './components/Pagination.vue'
44
+ import Panel from './components/Panel.vue'
45
+ import PieChart from './components/Charts/PieChart.vue'
46
+ import ProgressBar from './components/ProgressBar.vue'
47
+ import Radio from './components/Radio.vue'
48
+ import Select from './components/Select.vue'
49
+ import Shell from './components/Shell.vue'
50
+ import ShellPanel from './components/ShellPanel.vue'
51
+ import SidebarBrand from './components/SidebarBrand.vue'
52
+ import SidebarLink from './components/SidebarLink.vue'
53
+ import SidebarMenu from './components/SidebarMenu.vue'
54
+ import SidebarMenuGroup from './components/SidebarMenuGroup.vue'
55
+ import SidebarMenuItem from './components/SidebarMenuItem.vue'
56
+ import SidebarVariantScope from './components/SidebarVariantScope.vue'
57
+ import Slider from './components/Slider.vue'
58
+ import Sparkline from './components/Charts/Sparkline.vue'
59
+ import Submenu from './components/Submenu.vue'
60
+ import Switch from './components/Switch.vue'
61
+ import TextInput from './components/TextInput.vue'
62
+ import Toast from './components/Toast.vue'
63
+ import Tree from './components/Tree.vue'
64
+ import TreeNode from './components/TreeNode.vue'
65
+ import UserMenu from './components/UserMenu.vue'
66
+
67
+ declare module 'vue' {
68
+ interface IGlobalComponents {
69
+ NbAiLabel: typeof AiLabel
70
+ NbBadge: typeof Badge
71
+ NbBarChart: typeof BarChart
72
+ NbBlueprint: typeof Blueprint
73
+ NbBlueprintCard: typeof BlueprintCard
74
+ NbBlueprintControls: typeof BlueprintControls
75
+ NbBlueprintDomRenderer: typeof BlueprintDomRenderer
76
+ NbBlueprintMinimap: typeof BlueprintMinimap
77
+ NbBlueprintPixiRenderer: typeof BlueprintPixiRenderer
78
+ NbBoard: typeof Board
79
+ NbBottomPanel: typeof BottomPanel
80
+ NbBreadcrumbs: typeof Breadcrumbs
81
+ NbButton: typeof Button
82
+ NbCalendar: typeof Calendar
83
+ NbCheckbox: typeof Checkbox
84
+ NbCheckboxGroup: typeof CheckboxGroup
85
+ NbColorStrip: typeof ColorStrip
86
+ NbCommandPalette: typeof CommandPalette
87
+ NbDataTable: typeof DataTable
88
+ NbDatePicker: typeof DatePicker
89
+ NbField: typeof Field
90
+ NbFileUploader: typeof FileUploader
91
+ NbFlag: typeof Flag
92
+ NbForm: typeof Form
93
+ NbGanttChart: typeof GanttChart
94
+ NbGrid: typeof Grid
95
+ NbIcon: typeof Icon
96
+ NbImageCropper: typeof ImageCropper
97
+ NbInterpolationChart: typeof InterpolationChart
98
+ NbJsonTree: typeof JsonTree
99
+ NbLabel: typeof Label
100
+ NbLineChart: typeof LineChart
101
+ NbMenu: typeof Menu
102
+ NbMenuBar: typeof MenuBar
103
+ NbMenuBarItem: typeof MenuBarItem
104
+ NbMenuDivider: typeof MenuDivider
105
+ NbMenuItem: typeof MenuItem
106
+ NbMessage: typeof Message
107
+ NbModal: typeof Modal
108
+ NbNumberInput: typeof NumberInput
109
+ NbPagination: typeof Pagination
110
+ NbPanel: typeof Panel
111
+ NbPieChart: typeof PieChart
112
+ NbProgressBar: typeof ProgressBar
113
+ NbRadio: typeof Radio
114
+ NbSelect: typeof Select
115
+ NbShell: typeof Shell
116
+ NbShellPanel: typeof ShellPanel
117
+ NbSidebarBrand: typeof SidebarBrand
118
+ NbSidebarLink: typeof SidebarLink
119
+ NbSidebarMenu: typeof SidebarMenu
120
+ NbSidebarMenuGroup: typeof SidebarMenuGroup
121
+ NbSidebarMenuItem: typeof SidebarMenuItem
122
+ NbSidebarVariantScope: typeof SidebarVariantScope
123
+ NbSlider: typeof Slider
124
+ NbSparkline: typeof Sparkline
125
+ NbSubmenu: typeof Submenu
126
+ NbSwitch: typeof Switch
127
+ NbTextInput: typeof TextInput
128
+ NbToast: typeof Toast
129
+ NbTree: typeof Tree
130
+ NbTreeNode: typeof TreeNode
131
+ NbUserMenu: typeof UserMenu
132
+ }
133
+ }
134
+
135
+ export {}