@manohub/ui 1.1.4 → 1.2.0

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 (44) hide show
  1. package/dist/components/button/index.d.ts +12 -12
  2. package/dist/components/capsule/index.d.ts +1 -1
  3. package/dist/components/code-block/index.d.ts +5 -5
  4. package/dist/components/date-picker/date-panel.d.ts +1 -1
  5. package/dist/components/date-picker/index.d.ts +6 -6
  6. package/dist/components/dialog/index.d.ts +2 -12
  7. package/dist/components/dialog/index.js +8 -7
  8. package/dist/components/drawer/index.js +7 -1
  9. package/dist/components/filter/index.d.ts +2 -2
  10. package/dist/components/form/index.d.ts +4 -4
  11. package/dist/components/input/index.d.ts +10 -10
  12. package/dist/components/input/number-input.d.ts +2 -2
  13. package/dist/components/list/list-shared.d.ts +11 -0
  14. package/dist/components/list/list-shared.js +13 -2
  15. package/dist/components/list/list.d.ts +1 -1
  16. package/dist/components/list/tree.d.ts +18 -1
  17. package/dist/components/list/tree.js +9 -0
  18. package/dist/components/list-view/index.d.ts +2 -2
  19. package/dist/components/notice/index.d.ts +2 -2
  20. package/dist/components/notification/index.d.ts +1 -1
  21. package/dist/components/page/index.d.ts +2 -4
  22. package/dist/components/page/index.js +9 -2
  23. package/dist/components/panel/index.d.ts +2 -2
  24. package/dist/components/panel/index.js +10 -3
  25. package/dist/components/query-state/index.d.ts +1 -3
  26. package/dist/components/radio/index.d.ts +7 -7
  27. package/dist/components/scrollbar/index.d.ts +50 -0
  28. package/dist/components/scrollbar/index.js +187 -0
  29. package/dist/components/select/select-list.d.ts +1 -3
  30. package/dist/components/select/select-tree.d.ts +24 -2
  31. package/dist/components/select/select-tree.js +19 -3
  32. package/dist/components/tabbar/index.d.ts +1 -1
  33. package/dist/components/table/index.js +10 -3
  34. package/dist/components/tabs/index.d.ts +3 -3
  35. package/dist/components/toast/index.d.ts +4 -4
  36. package/dist/styles/components/dialog.css +21 -6
  37. package/dist/styles/components/drawer.css +18 -5
  38. package/dist/styles/components/list.css +17 -0
  39. package/dist/styles/components/page.css +20 -3
  40. package/dist/styles/components/panel.css +17 -0
  41. package/dist/styles/components/scrollbar.css +63 -0
  42. package/dist/styles/components/table.css +33 -4
  43. package/dist/styles/index.css +1 -0
  44. package/package.json +2 -2
@@ -203,18 +203,18 @@ export declare const Button: import("vue").DefineComponent<import("vue").Extract
203
203
  }>> & Readonly<{}>, {
204
204
  block: boolean;
205
205
  size: ControlSize;
206
- icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "delete" | "image" | "close" | "pause" | "play" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
206
+ icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
207
207
  menu: boolean;
208
208
  caret: boolean;
209
209
  disabled: boolean;
210
210
  title: string;
211
- type: "button" | "reset" | "submit";
212
211
  onClick: (e: MouseEvent) => void;
212
+ type: "button" | "reset" | "submit";
213
213
  loading: boolean;
214
214
  variant: ButtonVariant;
215
215
  shape: ButtonShape;
216
216
  danger: boolean;
217
- trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "delete" | "image" | "close" | "pause" | "play" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
217
+ trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
218
218
  href: string;
219
219
  target: string;
220
220
  popoverTarget: string;
@@ -358,18 +358,18 @@ export declare const ButtonCompound: {
358
358
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
359
359
  block: boolean;
360
360
  size: ControlSize;
361
- icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "delete" | "image" | "close" | "pause" | "play" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
361
+ icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
362
362
  menu: boolean;
363
363
  caret: boolean;
364
364
  disabled: boolean;
365
365
  title: string;
366
- type: "button" | "reset" | "submit";
367
366
  onClick: (e: MouseEvent) => void;
367
+ type: "button" | "reset" | "submit";
368
368
  loading: boolean;
369
369
  variant: ButtonVariant;
370
370
  shape: ButtonShape;
371
371
  danger: boolean;
372
- trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "delete" | "image" | "close" | "pause" | "play" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
372
+ trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
373
373
  href: string;
374
374
  target: string;
375
375
  popoverTarget: string;
@@ -470,18 +470,18 @@ export declare const ButtonCompound: {
470
470
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
471
471
  block: boolean;
472
472
  size: ControlSize;
473
- icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "delete" | "image" | "close" | "pause" | "play" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
473
+ icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
474
474
  menu: boolean;
475
475
  caret: boolean;
476
476
  disabled: boolean;
477
477
  title: string;
478
- type: "button" | "reset" | "submit";
479
478
  onClick: (e: MouseEvent) => void;
479
+ type: "button" | "reset" | "submit";
480
480
  loading: boolean;
481
481
  variant: ButtonVariant;
482
482
  shape: ButtonShape;
483
483
  danger: boolean;
484
- trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "delete" | "image" | "close" | "pause" | "play" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
484
+ trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
485
485
  href: string;
486
486
  target: string;
487
487
  popoverTarget: string;
@@ -576,18 +576,18 @@ export declare const ButtonCompound: {
576
576
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
577
577
  block: boolean;
578
578
  size: ControlSize;
579
- icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "delete" | "image" | "close" | "pause" | "play" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
579
+ icon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
580
580
  menu: boolean;
581
581
  caret: boolean;
582
582
  disabled: boolean;
583
583
  title: string;
584
- type: "button" | "reset" | "submit";
585
584
  onClick: (e: MouseEvent) => void;
585
+ type: "button" | "reset" | "submit";
586
586
  loading: boolean;
587
587
  variant: ButtonVariant;
588
588
  shape: ButtonShape;
589
589
  danger: boolean;
590
- trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "delete" | "image" | "close" | "pause" | "play" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
590
+ trailingIcon: "search" | "link" | "filter" | "copy" | "help" | "table" | "menu" | "close" | "pause" | "play" | "image" | "delete" | "key" | "application" | "client" | "service" | "schema" | "compose" | "log" | "mcp" | "agent" | "server" | "exposure" | "openapi" | "loading" | "info" | "alert" | "chevron-left" | "chevron-right" | "chevron-down" | "chevron-up" | "chevrons-left" | "chevrons-right" | "check" | "user" | "download" | "back" | "folder" | "folder-open" | "file" | "file-code" | "file-json" | "file-text" | "terminal" | "shield" | "tool" | "plus" | "notification" | "settings" | "logout" | "home" | "workbench" | "apps" | "favorite" | "page-title" | "favorite-filled" | "drag-handle" | "edit" | "refresh" | "upload" | "save" | "more" | "preview" | "external-link" | "minus" | "plus-circle" | "close-circle" | "info-circle" | "check-circle" | "alert-circle" | "play-filled" | "pause-filled" | "list" | "calendar" | "clock" | "lock" | "unlock" | "users" | "archive" | "package" | "plug" | "branch" | "tag" | "ai" | "shield-check" | "shield-alert" | "history";
591
591
  href: string;
592
592
  target: string;
593
593
  popoverTarget: string;
@@ -137,8 +137,8 @@ export declare const Capsule: import("vue").DefineComponent<import("vue").Extrac
137
137
  block: boolean;
138
138
  size: ControlSize;
139
139
  disabled: boolean;
140
- name: string;
141
140
  onChange: (value: string | number) => void;
141
+ name: string;
142
142
  options: CapsuleOption[];
143
143
  defaultValue: string | number | undefined;
144
144
  shape: CapsuleShape;
@@ -108,9 +108,9 @@ export declare const CodeView: import("vue").DefineComponent<import("vue").Extra
108
108
  }>> & Readonly<{}>, {
109
109
  inline: boolean;
110
110
  wrap: boolean;
111
- plain: boolean;
112
111
  code: string;
113
112
  onCopy: (ok: boolean) => void;
113
+ plain: boolean;
114
114
  maxHeight: string | number;
115
115
  language: string;
116
116
  copyable: boolean;
@@ -356,10 +356,10 @@ export declare const CodeBlock: {
356
356
  inline: boolean;
357
357
  wrap: boolean;
358
358
  disabled: boolean;
359
- plain: boolean;
360
359
  code: string;
361
360
  onCopy: (ok: boolean) => void;
362
361
  onChange: (v: string) => void;
362
+ plain: boolean;
363
363
  defaultValue: string;
364
364
  placeholder: string;
365
365
  rows: number;
@@ -454,10 +454,10 @@ export declare const CodeBlock: {
454
454
  inline: boolean;
455
455
  wrap: boolean;
456
456
  disabled: boolean;
457
- plain: boolean;
458
457
  code: string;
459
458
  onCopy: (ok: boolean) => void;
460
459
  onChange: (v: string) => void;
460
+ plain: boolean;
461
461
  defaultValue: string;
462
462
  placeholder: string;
463
463
  rows: number;
@@ -549,10 +549,10 @@ export declare const CodeBlock: {
549
549
  inline: boolean;
550
550
  wrap: boolean;
551
551
  disabled: boolean;
552
- plain: boolean;
553
552
  code: string;
554
553
  onCopy: (ok: boolean) => void;
555
554
  onChange: (v: string) => void;
555
+ plain: boolean;
556
556
  defaultValue: string;
557
557
  placeholder: string;
558
558
  rows: number;
@@ -635,9 +635,9 @@ export declare const CodeBlock: {
635
635
  }>> & Readonly<{}>, {
636
636
  inline: boolean;
637
637
  wrap: boolean;
638
- plain: boolean;
639
638
  code: string;
640
639
  onCopy: (ok: boolean) => void;
640
+ plain: boolean;
641
641
  maxHeight: string | number;
642
642
  language: string;
643
643
  copyable: boolean;
@@ -286,10 +286,10 @@ export declare const DatePanel: import("vue").DefineComponent<import("vue").Extr
286
286
  };
287
287
  }>> & Readonly<{}>, {
288
288
  range: boolean;
289
+ onKeydown: (event: KeyboardEvent) => void;
289
290
  min: string;
290
291
  max: string;
291
292
  mode: "date" | "month";
292
- onKeydown: (event: KeyboardEvent) => void;
293
293
  preview: string;
294
294
  selected: string;
295
295
  precision: TimePrecision;
@@ -128,9 +128,9 @@ export declare const DatePicker: {
128
128
  }, import("vue").PublicProps, {
129
129
  size: ControlSize;
130
130
  disabled: boolean;
131
+ onChange: (value: string) => void;
131
132
  min: string;
132
133
  max: string;
133
- onChange: (value: string) => void;
134
134
  defaultValue: string;
135
135
  placeholder: string;
136
136
  modelValue: string;
@@ -218,9 +218,9 @@ export declare const DatePicker: {
218
218
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
219
219
  size: ControlSize;
220
220
  disabled: boolean;
221
+ onChange: (value: string) => void;
221
222
  min: string;
222
223
  max: string;
223
- onChange: (value: string) => void;
224
224
  defaultValue: string;
225
225
  placeholder: string;
226
226
  modelValue: string;
@@ -307,9 +307,9 @@ export declare const DatePicker: {
307
307
  }, string, {
308
308
  size: ControlSize;
309
309
  disabled: boolean;
310
+ onChange: (value: string) => void;
310
311
  min: string;
311
312
  max: string;
312
- onChange: (value: string) => void;
313
313
  defaultValue: string;
314
314
  placeholder: string;
315
315
  modelValue: string;
@@ -470,9 +470,9 @@ export declare const DatePicker: {
470
470
  size: ControlSize;
471
471
  separator: string;
472
472
  disabled: boolean;
473
+ onChange: (value: string[]) => void;
473
474
  min: string;
474
475
  max: string;
475
- onChange: (value: string[]) => void;
476
476
  defaultValue: string[];
477
477
  placeholder: string;
478
478
  modelValue: string[];
@@ -634,9 +634,9 @@ export declare const DateRangePicker: import("vue").DefineComponent<import("vue"
634
634
  size: ControlSize;
635
635
  separator: string;
636
636
  disabled: boolean;
637
+ onChange: (value: string[]) => void;
637
638
  min: string;
638
639
  max: string;
639
- onChange: (value: string[]) => void;
640
640
  defaultValue: string[];
641
641
  placeholder: string;
642
642
  modelValue: string[];
@@ -796,9 +796,9 @@ export declare const DateTimePicker: import("vue").DefineComponent<import("vue")
796
796
  }>, {
797
797
  size: ControlSize;
798
798
  disabled: boolean;
799
+ onChange: (value: string) => void;
799
800
  min: string;
800
801
  max: string;
801
- onChange: (value: string) => void;
802
802
  defaultValue: string;
803
803
  placeholder: string;
804
804
  modelValue: string;
@@ -58,12 +58,7 @@ export declare const Dialog: import("vue").DefineComponent<import("vue").Extract
58
58
  default: boolean;
59
59
  };
60
60
  /**
61
- * 点遮罩是否关闭(**默认开**,与主流组件形态一致)。
62
- *
63
- * 组件是「受控弹窗」,用户点遮罩想退出是最常见的心智;「防误关」只对**命令式确认框**成立
64
- * (那里一条误点就丢一次决策),故服务层的 `confirm()` / `alert()` 会**显式**传 `false` 把它关掉 ——
65
- * 与 Ant Design 的分工相同(`<Modal maskClosable>` 默认 `true`,`Modal.confirm` 默认 `false`)。
66
- * 表单类弹窗若怕手滑丢内容,自己显式传 `:close-on-backdrop="false"`。
61
+ * 点遮罩是否关闭(**默认开**)。
67
62
  */
68
63
  closeOnBackdrop: {
69
64
  type: BooleanConstructor;
@@ -165,12 +160,7 @@ export declare const Dialog: import("vue").DefineComponent<import("vue").Extract
165
160
  default: boolean;
166
161
  };
167
162
  /**
168
- * 点遮罩是否关闭(**默认开**,与主流组件形态一致)。
169
- *
170
- * 组件是「受控弹窗」,用户点遮罩想退出是最常见的心智;「防误关」只对**命令式确认框**成立
171
- * (那里一条误点就丢一次决策),故服务层的 `confirm()` / `alert()` 会**显式**传 `false` 把它关掉 ——
172
- * 与 Ant Design 的分工相同(`<Modal maskClosable>` 默认 `true`,`Modal.confirm` 默认 `false`)。
173
- * 表单类弹窗若怕手滑丢内容,自己显式传 `:close-on-backdrop="false"`。
163
+ * 点遮罩是否关闭(**默认开**)。
174
164
  */
175
165
  closeOnBackdrop: {
176
166
  type: BooleanConstructor;
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, ref, watch, onMounted, onBeforeUnmount, computed, createVNode } from "vue";
2
2
  import { Icon } from "@manohub/icon";
3
3
  import { Button } from "../button/index.js";
4
+ import { useOverlayScrollbar } from "../scrollbar/index.js";
4
5
  const TONE_ICON = {
5
6
  info: "info-circle",
6
7
  success: "check-circle",
@@ -41,12 +42,7 @@ const Dialog = /* @__PURE__ */ defineComponent({
41
42
  default: true
42
43
  },
43
44
  /**
44
- * 点遮罩是否关闭(**默认开**,与主流组件形态一致)。
45
- *
46
- * 组件是「受控弹窗」,用户点遮罩想退出是最常见的心智;「防误关」只对**命令式确认框**成立
47
- * (那里一条误点就丢一次决策),故服务层的 `confirm()` / `alert()` 会**显式**传 `false` 把它关掉 ——
48
- * 与 Ant Design 的分工相同(`<Modal maskClosable>` 默认 `true`,`Modal.confirm` 默认 `false`)。
49
- * 表单类弹窗若怕手滑丢内容,自己显式传 `:close-on-backdrop="false"`。
45
+ * 点遮罩是否关闭(**默认开**)。
50
46
  */
51
47
  closeOnBackdrop: {
52
48
  type: Boolean,
@@ -126,6 +122,8 @@ const Dialog = /* @__PURE__ */ defineComponent({
126
122
  attrs
127
123
  }) {
128
124
  const dialogRef = ref(null);
125
+ const scrollRef = ref(null);
126
+ const scrollbar = useOverlayScrollbar(scrollRef);
129
127
  const innerLoading = ref(false);
130
128
  const requestClose = (kind = "close") => {
131
129
  if (kind === "cancel") props.onCancel?.();
@@ -208,7 +206,10 @@ const Dialog = /* @__PURE__ */ defineComponent({
208
206
  "size": 14
209
207
  }, null)]) : null]) : null, createVNode("div", {
210
208
  "class": "mh-dialog__body"
211
- }, [slots.default?.()]), slots.footer ? createVNode("div", {
209
+ }, [createVNode("div", {
210
+ "class": "mh-dialog__scroll",
211
+ "ref": scrollRef
212
+ }, [slots.default?.()]), scrollbar.render()]), slots.footer ? createVNode("div", {
212
213
  "class": "mh-dialog__footer"
213
214
  }, [slots.footer()]) : showBuiltinFooter.value ? createVNode("div", {
214
215
  "class": "mh-dialog__footer"
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, ref, watch, onMounted, onBeforeUnmount, computed, createVNode } from "vue";
2
2
  import { Icon } from "@manohub/icon";
3
3
  import { Button } from "../button/index.js";
4
+ import { useOverlayScrollbar } from "../scrollbar/index.js";
4
5
  const Drawer = /* @__PURE__ */ defineComponent({
5
6
  name: "Drawer",
6
7
  inheritAttrs: false,
@@ -102,6 +103,8 @@ const Drawer = /* @__PURE__ */ defineComponent({
102
103
  attrs
103
104
  }) {
104
105
  const dialogRef = ref(null);
106
+ const scrollRef = ref(null);
107
+ const scrollbar = useOverlayScrollbar(scrollRef);
105
108
  const innerLoading = ref(false);
106
109
  const requestClose = (kind = "close") => {
107
110
  if (kind === "cancel") props.onCancel?.();
@@ -172,7 +175,10 @@ const Drawer = /* @__PURE__ */ defineComponent({
172
175
  "size": 14
173
176
  }, null)]) : null]) : null, createVNode("div", {
174
177
  "class": "mh-drawer__body"
175
- }, [slots.default?.()]), slots.footer ? createVNode("div", {
178
+ }, [createVNode("div", {
179
+ "class": "mh-drawer__scroll",
180
+ "ref": scrollRef
181
+ }, [slots.default?.()]), scrollbar.render()]), slots.footer ? createVNode("div", {
176
182
  "class": "mh-drawer__footer"
177
183
  }, [slots.footer()]) : showBuiltinFooter.value ? createVNode("div", {
178
184
  "class": "mh-drawer__footer"
@@ -130,8 +130,8 @@ export declare const FilterItem: import("vue").DefineComponent<import("vue").Ext
130
130
  default: string;
131
131
  };
132
132
  }>> & Readonly<{}>, {
133
- label: string;
134
133
  error: string;
134
+ label: string;
135
135
  required: boolean;
136
136
  hint: string;
137
137
  }, SlotsType<{
@@ -412,8 +412,8 @@ export declare const Filter: {
412
412
  default: string;
413
413
  };
414
414
  }>> & Readonly<{}>, {
415
- label: string;
416
415
  error: string;
416
+ label: string;
417
417
  required: boolean;
418
418
  hint: string;
419
419
  }, SlotsType<{
@@ -277,9 +277,9 @@ export declare const FormItem: import("vue").DefineComponent<import("vue").Extra
277
277
  default: undefined;
278
278
  };
279
279
  }>> & Readonly<{}>, {
280
- name: string;
281
- label: string;
282
280
  error: string;
281
+ label: string;
282
+ name: string;
283
283
  required: boolean;
284
284
  align: FormItemAlign;
285
285
  readonly: boolean;
@@ -721,9 +721,9 @@ export declare const Form: {
721
721
  default: undefined;
722
722
  };
723
723
  }>> & Readonly<{}>, {
724
- name: string;
725
- label: string;
726
724
  error: string;
725
+ label: string;
726
+ name: string;
727
727
  required: boolean;
728
728
  align: FormItemAlign;
729
729
  readonly: boolean;
@@ -291,9 +291,9 @@ declare const InputBase: import("vue").DefineComponent<import("vue").ExtractProp
291
291
  }>, {
292
292
  size: ControlSize;
293
293
  disabled: boolean;
294
- type: string;
295
- onChange: (v: string) => void;
296
294
  invalid: boolean;
295
+ onChange: (v: string) => void;
296
+ type: string;
297
297
  defaultValue: string;
298
298
  placeholder: string;
299
299
  autofocus: boolean;
@@ -502,8 +502,8 @@ export declare const Textarea: import("vue").DefineComponent<import("vue").Extra
502
502
  }>, {
503
503
  size: ControlSize;
504
504
  disabled: boolean;
505
- onChange: (v: string) => void;
506
505
  invalid: boolean;
506
+ onChange: (v: string) => void;
507
507
  defaultValue: string;
508
508
  placeholder: string;
509
509
  rows: number;
@@ -652,9 +652,9 @@ export declare const InputCompound: {
652
652
  }, import("vue").PublicProps, {
653
653
  size: ControlSize;
654
654
  disabled: boolean;
655
- type: string;
656
- onChange: (v: string) => void;
657
655
  invalid: boolean;
656
+ onChange: (v: string) => void;
657
+ type: string;
658
658
  defaultValue: string;
659
659
  placeholder: string;
660
660
  autofocus: boolean;
@@ -814,9 +814,9 @@ export declare const InputCompound: {
814
814
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
815
815
  size: ControlSize;
816
816
  disabled: boolean;
817
- type: string;
818
- onChange: (v: string) => void;
819
817
  invalid: boolean;
818
+ onChange: (v: string) => void;
819
+ type: string;
820
820
  defaultValue: string;
821
821
  placeholder: string;
822
822
  autofocus: boolean;
@@ -971,9 +971,9 @@ export declare const InputCompound: {
971
971
  }, string, {
972
972
  size: ControlSize;
973
973
  disabled: boolean;
974
- type: string;
975
- onChange: (v: string) => void;
976
974
  invalid: boolean;
975
+ onChange: (v: string) => void;
976
+ type: string;
977
977
  defaultValue: string;
978
978
  placeholder: string;
979
979
  autofocus: boolean;
@@ -1142,8 +1142,8 @@ export declare const InputCompound: {
1142
1142
  }>, {
1143
1143
  size: ControlSize;
1144
1144
  disabled: boolean;
1145
- onChange: (v: string) => void;
1146
1145
  invalid: boolean;
1146
+ onChange: (v: string) => void;
1147
1147
  defaultValue: string;
1148
1148
  placeholder: string;
1149
1149
  rows: number;
@@ -216,10 +216,10 @@ export declare const NumberInput: import("vue").DefineComponent<import("vue").Ex
216
216
  }>, {
217
217
  size: ControlSize;
218
218
  disabled: boolean;
219
+ invalid: boolean;
220
+ onChange: (v: number | null) => void;
219
221
  min: number;
220
222
  max: number;
221
- onChange: (v: number | null) => void;
222
- invalid: boolean;
223
223
  defaultValue: number | null;
224
224
  placeholder: string;
225
225
  modelValue: number | null;
@@ -59,6 +59,11 @@ export declare const ListRow: import("vue").DefineComponent<import("vue").Extrac
59
59
  type: BooleanConstructor;
60
60
  default: boolean;
61
61
  };
62
+ /** 禁用行:`is-disabled` + `aria-disabled`,行点击不再触发 `onSelect`(展开箭头的点击不受影响) */
63
+ disabled: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
62
67
  onSelect: {
63
68
  type: PropType<(node: ListNode) => void>;
64
69
  default: undefined;
@@ -128,6 +133,11 @@ export declare const ListRow: import("vue").DefineComponent<import("vue").Extrac
128
133
  type: BooleanConstructor;
129
134
  default: boolean;
130
135
  };
136
+ /** 禁用行:`is-disabled` + `aria-disabled`,行点击不再触发 `onSelect`(展开箭头的点击不受影响) */
137
+ disabled: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
131
141
  onSelect: {
132
142
  type: PropType<(node: ListNode) => void>;
133
143
  default: undefined;
@@ -160,6 +170,7 @@ export declare const ListRow: import("vue").DefineComponent<import("vue").Extrac
160
170
  }>> & Readonly<{}>, {
161
171
  expanded: boolean;
162
172
  caret: boolean;
173
+ disabled: boolean;
163
174
  onSelect: (node: ListNode) => void;
164
175
  onToggle: (node: ListNode) => void;
165
176
  selected: boolean;
@@ -43,6 +43,11 @@ const ListRow = /* @__PURE__ */ defineComponent({
43
43
  type: Boolean,
44
44
  default: false
45
45
  },
46
+ /** 禁用行:`is-disabled` + `aria-disabled`,行点击不再触发 `onSelect`(展开箭头的点击不受影响) */
47
+ disabled: {
48
+ type: Boolean,
49
+ default: false
50
+ },
46
51
  onSelect: {
47
52
  type: Function,
48
53
  default: void 0
@@ -75,16 +80,22 @@ const ListRow = /* @__PURE__ */ defineComponent({
75
80
  },
76
81
  setup(props) {
77
82
  return () => createVNode("div", {
78
- "class": "mh-list__row",
83
+ "class": ["mh-list__row", props.disabled ? "is-disabled" : ""].filter(Boolean).join(" "),
79
84
  "role": props.role,
80
85
  "aria-selected": props.selected,
86
+ "aria-disabled": props.disabled ? "true" : void 0,
81
87
  "aria-expanded": props.caret && props.hasChildren ? props.expanded : void 0,
82
88
  "data-selected": props.selected ? "true" : void 0,
83
89
  "data-level": props.depth,
84
90
  "style": {
85
91
  "--mh-list-level": props.depth
86
92
  },
87
- "onClick": () => props.onSelect?.(props.node)
93
+ "onClick": () => {
94
+ if (props.disabled) {
95
+ return;
96
+ }
97
+ props.onSelect?.(props.node);
98
+ }
88
99
  }, [props.caret ? props.hasChildren ? createVNode("span", {
89
100
  "class": "mh-list__caret",
90
101
  "data-expanded": props.expanded ? "true" : "false",
@@ -201,8 +201,8 @@ export declare const List: import("vue").DefineComponent<import("vue").ExtractPr
201
201
  };
202
202
  }>> & Readonly<{}>, {
203
203
  size: "sm" | "md";
204
- onSelect: (node: ListNode) => void;
205
204
  error: any;
205
+ onSelect: (node: ListNode) => void;
206
206
  loading: boolean;
207
207
  selected: string;
208
208
  empty: string;
@@ -72,6 +72,14 @@ export declare const Tree: import("vue").DefineComponent<import("vue").ExtractPr
72
72
  type: PropType<(node: ListNode) => void>;
73
73
  default: undefined;
74
74
  };
75
+ /**
76
+ * 行禁用判定:命中的行带 `is-disabled` / `aria-disabled`,点行不再触发 `onSelect`。
77
+ * 只影响「选中」这一路;展开箭头仍可用(父节点即便不可选,也还能靠箭头开合)。
78
+ */
79
+ disabledNode: {
80
+ type: PropType<(node: ListNode) => boolean>;
81
+ default: undefined;
82
+ };
75
83
  /**
76
84
  * 标签体的自定义渲染(**替掉** `labelKey` 的纯文本)。与 `renderNode` 的分工:本 prop 渲染的是**标签本体**
77
85
  * (占位 / 省略号 / 行内对齐都由 `.mh-list__label` 承担,故必须留在那个槽里);`renderNode` 渲染标签**之后**的
@@ -216,6 +224,14 @@ export declare const Tree: import("vue").DefineComponent<import("vue").ExtractPr
216
224
  type: PropType<(node: ListNode) => void>;
217
225
  default: undefined;
218
226
  };
227
+ /**
228
+ * 行禁用判定:命中的行带 `is-disabled` / `aria-disabled`,点行不再触发 `onSelect`。
229
+ * 只影响「选中」这一路;展开箭头仍可用(父节点即便不可选,也还能靠箭头开合)。
230
+ */
231
+ disabledNode: {
232
+ type: PropType<(node: ListNode) => boolean>;
233
+ default: undefined;
234
+ };
219
235
  /**
220
236
  * 标签体的自定义渲染(**替掉** `labelKey` 的纯文本)。与 `renderNode` 的分工:本 prop 渲染的是**标签本体**
221
237
  * (占位 / 省略号 / 行内对齐都由 `.mh-list__label` 承担,故必须留在那个槽里);`renderNode` 渲染标签**之后**的
@@ -331,8 +347,8 @@ export declare const Tree: import("vue").DefineComponent<import("vue").ExtractPr
331
347
  };
332
348
  }>> & Readonly<{}>, {
333
349
  size: "sm" | "md";
334
- onSelect: (node: ListNode) => void;
335
350
  error: any;
351
+ onSelect: (node: ListNode) => void;
336
352
  loading: boolean;
337
353
  selected: string;
338
354
  empty: string;
@@ -348,6 +364,7 @@ export declare const Tree: import("vue").DefineComponent<import("vue").ExtractPr
348
364
  renderNode: (node: ListNode) => unknown;
349
365
  renderActions: (node: ListNode) => unknown;
350
366
  childrenKey: string;
367
+ disabledNode: (node: ListNode) => boolean;
351
368
  expandedKeys: string[];
352
369
  defaultExpandedKeys: string[];
353
370
  defaultExpandAll: boolean;