@pantograph/vue 0.34.2 → 0.34.4

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.
@@ -1,12 +1,12 @@
1
+ import { EmitToProp } from '@pantograph/utils-vue';
2
+ import { ClassValue } from 'clsx';
1
3
  import { SelectContentEmits, SelectContentProps, SelectPortalProps, SelectRootEmits, SelectRootProps, SelectTriggerProps } from 'reka-ui';
2
- import { PopoverBaseProps, PopoverPlacement } from '../Popover';
3
4
  import { Direction } from '../ConfigProvider';
5
+ import { EmptyProps } from '../Empty';
6
+ import { PopoverBaseProps, PopoverPlacement } from '../Popover';
7
+ import { ScrollContainerProps } from '../ScrollContainer';
4
8
  import { SkeletonProps } from '../Skeleton';
5
9
  import { SelectSize, SelectStatus } from './Select.model';
6
- import { EmitToProp } from '@pantograph/utils-vue';
7
- import { ScrollContainerProps } from '../ScrollContainer';
8
- import { EmptyProps } from '../Empty';
9
- import { ClassValue } from 'clsx';
10
10
  /**
11
11
  * Interface for default Select option item
12
12
  */
@@ -56,6 +56,8 @@ export interface SelectProps extends SelectRootProps, Omit<SelectTriggerProps, '
56
56
  size?: SelectSize;
57
57
  /** Whether to allow multiple selections */
58
58
  multiple?: boolean;
59
+ /** Whether the select component is readonly */
60
+ readonly?: boolean;
59
61
  /** Whether the dropdown content should fit the trigger width */
60
62
  contentFit?: boolean;
61
63
  /** Whether the select component should wrap its content */
@@ -23,6 +23,8 @@ export interface SubMenuProps extends Omit<MenuItemContentProps, 'hasChildren'>
23
23
  })[];
24
24
  /** Whether to extend the parent menu context */
25
25
  unExtendParent?: boolean;
26
+ open?: boolean;
27
+ closeOnDisabled?: boolean;
26
28
  }
27
29
  /**
28
30
  * Slots for the SubMenu component
@@ -37,6 +39,9 @@ export interface SubMenuSlots extends MenuItemSlots {
37
39
  key: string;
38
40
  }) => never;
39
41
  }
42
+ export interface SubMenuEmits {
43
+ 'update:open': [value: boolean];
44
+ }
40
45
  /**
41
46
  * Context interface for the SubMenu component
42
47
  */
@@ -51,6 +56,7 @@ export declare const SUB_MENU_DEFAULT_PROPS: {
51
56
  readonly size: "md";
52
57
  readonly subMenuCloseDelay: 300;
53
58
  readonly subMenuOpenDelay: 700;
59
+ readonly open: undefined;
54
60
  readonly forceMountSubmenu: undefined;
55
61
  readonly danger: undefined;
56
62
  readonly unFocusable: undefined;
@@ -59,12 +65,18 @@ export declare const SUB_MENU_DEFAULT_PROPS: {
59
65
  readonly leadingCenter: undefined;
60
66
  readonly disabled: undefined;
61
67
  readonly unExtendParent: false;
68
+ readonly closeOnDisabled: undefined;
62
69
  readonly branchIcon: "tabler:chevron-right";
63
70
  };
64
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SubMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SubMenuProps> & Readonly<{}>, {
71
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<SubMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
72
+ "update:open": (value: boolean) => any;
73
+ }, string, import('vue').PublicProps, Readonly<SubMenuProps> & Readonly<{
74
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
75
+ }>, {
65
76
  size: "sm" | "md" | "lg";
66
77
  danger: boolean;
67
78
  disabled: boolean;
79
+ open: boolean;
68
80
  unExtendParent: boolean;
69
81
  hoverTrailing: boolean;
70
82
  selected: boolean;
@@ -74,6 +86,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Su
74
86
  subMenuCloseDelay: number;
75
87
  subMenuOpenDelay: number;
76
88
  forceMountSubmenu: boolean;
89
+ closeOnDisabled: boolean;
77
90
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<SubMenuSlots> & SubMenuSlots>;
78
91
  export default _default;
79
92
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -28,7 +28,8 @@ export interface TextareaProps {
28
28
  defaultHeight?: string | number;
29
29
  /** Maximum height of the textarea */
30
30
  maxHeight?: string | number;
31
- autofillStyle?: boolean;
31
+ outsideFgColor?: boolean;
32
+ readonly?: boolean;
32
33
  }
33
34
  /**
34
35
  * Events emitted by the Textarea component
@@ -43,9 +44,9 @@ export interface TextareaEmits {
43
44
  * Default props for the Textarea component
44
45
  */
45
46
  export declare const TEXTAREA_DEFAULT_PROPS: {
47
+ readonly readonly: undefined;
46
48
  readonly disabled: undefined;
47
49
  readonly bordered: true;
48
- readonly autofillStyle: true;
49
50
  };
50
51
  declare const _default: import('vue').DefineComponent<TextareaProps, {
51
52
  textarea: import('vue').Ref<any, any>;
@@ -61,8 +62,8 @@ declare const _default: import('vue').DefineComponent<TextareaProps, {
61
62
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
62
63
  }>, {
63
64
  disabled: boolean;
65
+ readonly: boolean;
64
66
  bordered: boolean;
65
- autofillStyle: boolean;
66
67
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
67
68
  textarea: HTMLTextAreaElement;
68
69
  }, HTMLTextAreaElement>;