@webx-ui/core 0.3.1 → 0.5.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 (54) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +40 -0
  2. package/dist/components/Accordion/index.d.ts +2 -0
  3. package/dist/components/Accordion/types.d.ts +25 -0
  4. package/dist/components/AccordionItem/AccordionItem.d.ts +41 -0
  5. package/dist/components/AccordionItem/index.d.ts +2 -0
  6. package/dist/components/AccordionItem/types.d.ts +12 -0
  7. package/dist/components/Action/Action.d.ts +4 -4
  8. package/dist/components/Autocomplete/Autocomplete.d.ts +9 -9
  9. package/dist/components/Badge/Badge.d.ts +1 -1
  10. package/dist/components/Button/Button.d.ts +3 -3
  11. package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -3
  12. package/dist/components/Card/Card.d.ts +1 -1
  13. package/dist/components/Cascader/Cascader.d.ts +7 -7
  14. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  15. package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
  16. package/dist/components/DatePicker/DatePicker.d.ts +8 -8
  17. package/dist/components/DateRangePicker/DateRangePicker.d.ts +7 -7
  18. package/dist/components/DateTimePicker/DateTimePicker.d.ts +1 -1
  19. package/dist/components/DropdownItem/DropdownItem.d.ts +3 -3
  20. package/dist/components/EntityCard/EntityCard.d.ts +4 -4
  21. package/dist/components/FormItem/FormItem.d.ts +2 -2
  22. package/dist/components/Icon/Icon.d.ts +1 -1
  23. package/dist/components/Indicator/Indicator.d.ts +2 -2
  24. package/dist/components/Input/Input.d.ts +5 -5
  25. package/dist/components/Kanban/Kanban.d.ts +82 -0
  26. package/dist/components/Kanban/index.d.ts +2 -0
  27. package/dist/components/Kanban/types.d.ts +83 -0
  28. package/dist/components/Link/Link.d.ts +3 -3
  29. package/dist/components/Popover/Popover.d.ts +75 -0
  30. package/dist/components/Popover/index.d.ts +2 -0
  31. package/dist/components/Popover/types.d.ts +34 -0
  32. package/dist/components/Prose/Prose.d.ts +1 -1
  33. package/dist/components/Radio/Radio.d.ts +1 -1
  34. package/dist/components/RichText/RichText.d.ts +1 -1
  35. package/dist/components/RichText/ToolbarButton.d.ts +1 -1
  36. package/dist/components/Select/Select.d.ts +10 -10
  37. package/dist/components/Statistic/Statistic.d.ts +1 -1
  38. package/dist/components/Switch/Switch.d.ts +1 -1
  39. package/dist/components/Tab/Tab.d.ts +32 -0
  40. package/dist/components/Tab/index.d.ts +2 -0
  41. package/dist/components/Tab/types.d.ts +15 -0
  42. package/dist/components/Tabs/Tabs.d.ts +58 -0
  43. package/dist/components/Tabs/index.d.ts +2 -0
  44. package/dist/components/Tabs/types.d.ts +37 -0
  45. package/dist/components/TagsInput/TagsInput.d.ts +2 -2
  46. package/dist/components/Text/Text.d.ts +1 -1
  47. package/dist/components/Textarea/Textarea.d.ts +2 -2
  48. package/dist/components/TimePicker/TimePicker.d.ts +1 -1
  49. package/dist/components/index.d.ts +6 -0
  50. package/dist/composables/useAccordion.d.ts +16 -0
  51. package/dist/index.js +4762 -2332
  52. package/dist/index.js.map +1 -1
  53. package/dist/style.css +1 -1
  54. package/package.json +3 -2
@@ -0,0 +1,40 @@
1
+ import { AccordionModelValue, AccordionProps } from './types';
2
+ type __VLS_Props = AccordionProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: AccordionModelValue;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: Readonly<{
9
+ /** The `WxAccordionItem`s. */
10
+ default?: () => unknown;
11
+ }> & {
12
+ /** The `WxAccordionItem`s. */
13
+ default?: () => unknown;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ change: (value: AccordionModelValue) => any;
21
+ "update:modelValue": (value: AccordionModelValue) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ onChange?: ((value: AccordionModelValue) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: AccordionModelValue) => any) | undefined;
25
+ }>, {
26
+ multiple: boolean;
27
+ collapsible: boolean;
28
+ variant: import('./types').AccordionVariant;
29
+ size: import('./types').AccordionSize;
30
+ iconPosition: import('./types').AccordionIconPosition;
31
+ headingTag: string;
32
+ disabled: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxAccordion } from './Accordion';
2
+ export type * from './types';
@@ -0,0 +1,25 @@
1
+ import { AccordionIconPosition, AccordionSize, AccordionVariant } from '../../composables/useAccordion';
2
+ /** One open item, or a set of them when `multiple` is on. */
3
+ export type AccordionModelValue = string | string[] | undefined;
4
+ export interface AccordionProps {
5
+ /** Let more than one item stand open. The model becomes an array. */
6
+ multiple?: boolean;
7
+ /** With one item at a time, clicking the open one closes it. */
8
+ collapsible?: boolean;
9
+ /** Outline around the whole list, a card per item, or bare rules. */
10
+ variant?: AccordionVariant;
11
+ size?: AccordionSize;
12
+ /** Chevron before the title or after it. */
13
+ iconPosition?: AccordionIconPosition;
14
+ /**
15
+ * Element the titles are written as. Headings are how a screen reader skims a page,
16
+ * so pick the level that follows the one above the accordion.
17
+ */
18
+ headingTag?: string;
19
+ /** Nothing in the accordion opens or closes. */
20
+ disabled?: boolean;
21
+ }
22
+ export interface AccordionEmits {
23
+ change: [value: AccordionModelValue];
24
+ }
25
+ export type { AccordionIconPosition, AccordionSize, AccordionVariant };
@@ -0,0 +1,41 @@
1
+ import { AccordionItemProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ /** The panel. */
6
+ default?: () => unknown;
7
+ /** Replaces `title`. */
8
+ title?: () => unknown;
9
+ /**
10
+ * Sits at the end of the header, outside the button — so a switch or a menu there
11
+ * can be operated without opening the item.
12
+ */
13
+ extra?: () => unknown;
14
+ }> & {
15
+ /** The panel. */
16
+ default?: () => unknown;
17
+ /** Replaces `title`. */
18
+ title?: () => unknown;
19
+ /**
20
+ * Sits at the end of the header, outside the button — so a switch or a menu there
21
+ * can be operated without opening the item.
22
+ */
23
+ extra?: () => unknown;
24
+ };
25
+ refs: {};
26
+ rootEl: any;
27
+ };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
+ declare const __VLS_component: import('vue').DefineComponent<AccordionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionItemProps> & Readonly<{}>, {
30
+ disabled: boolean;
31
+ title: string;
32
+ subtitle: string;
33
+ icon: import('..').IconName;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxAccordionItem } from './AccordionItem';
2
+ export type * from './types';
@@ -0,0 +1,12 @@
1
+ import { IconName } from '../Icon/types';
2
+ export interface AccordionItemProps {
3
+ /** Unique within the accordion; this is what `v-model` holds. */
4
+ value: string;
5
+ /** Text of the header. The `title` slot replaces it. */
6
+ title?: string;
7
+ /** A second line under the title — a hint, a count, a status. */
8
+ subtitle?: string;
9
+ /** Icon before the title, after the chevron when that sits first. */
10
+ icon?: IconName;
11
+ disabled?: boolean;
12
+ }
@@ -15,15 +15,15 @@ declare const __VLS_component: import('vue').DefineComponent<ActionProps, {}, {}
15
15
  onClick?: ((event: MouseEvent) => any) | undefined;
16
16
  }>, {
17
17
  size: import('./types').ActionSize;
18
- label: string;
18
+ disabled: boolean;
19
19
  type: ActionType;
20
+ as: string | import('vue').Component;
21
+ label: string;
22
+ target: string;
20
23
  title: string;
21
24
  icon: IconName;
22
25
  tone: ActionTone;
23
26
  href: string;
24
- target: string;
25
- as: string | import('vue').Component;
26
- disabled: boolean;
27
27
  hidden: boolean;
28
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
29
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -17,27 +17,27 @@ declare function __VLS_template(): {
17
17
  };
18
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
- close: () => any;
20
+ change: (value: string) => any;
21
21
  search: (term: string) => any;
22
+ "update:modelValue": (value: string) => any;
23
+ close: () => any;
22
24
  select: (option: AutocompleteOption) => any;
23
- clear: () => any;
24
25
  open: () => any;
25
- change: (value: string) => any;
26
- "update:modelValue": (value: string) => any;
26
+ clear: () => any;
27
27
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
- onClose?: (() => any) | undefined;
28
+ onChange?: ((value: string) => any) | undefined;
29
29
  onSearch?: ((term: string) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
31
+ onClose?: (() => any) | undefined;
30
32
  onSelect?: ((option: AutocompleteOption) => any) | undefined;
31
- onClear?: (() => any) | undefined;
32
33
  onOpen?: (() => any) | undefined;
33
- onChange?: ((value: string) => any) | undefined;
34
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
+ onClear?: (() => any) | undefined;
35
35
  }>, {
36
36
  name: string;
37
37
  size: import('../..').ControlSize;
38
38
  disabled: boolean;
39
- teleport: boolean;
40
39
  placeholder: string;
40
+ teleport: boolean;
41
41
  ariaLabel: string;
42
42
  options: AutocompleteOption[];
43
43
  remote: boolean;
@@ -14,10 +14,10 @@ declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {},
14
14
  }, string, import('vue').PublicProps, Readonly<BadgeProps> & Readonly<{
15
15
  onClose?: ((event: MouseEvent) => any) | undefined;
16
16
  }>, {
17
+ variant: import('./types').BadgeVariant;
17
18
  size: import('./types').BadgeSize;
18
19
  type: import('./types').BadgeType;
19
20
  round: boolean;
20
- variant: import('./types').BadgeVariant;
21
21
  dot: boolean;
22
22
  closable: boolean;
23
23
  closeLabel: string;
@@ -14,14 +14,14 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
14
14
  }, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
15
15
  onClick?: ((event: MouseEvent) => any) | undefined;
16
16
  }>, {
17
+ variant: import('./types').ButtonVariant;
17
18
  size: import('./types').ButtonSize;
19
+ disabled: boolean;
18
20
  type: import('./types').ButtonType;
21
+ target: string;
19
22
  round: boolean;
20
23
  href: string;
21
- target: string;
22
- disabled: boolean;
23
24
  loading: boolean;
24
- variant: import('./types').ButtonVariant;
25
25
  block: boolean;
26
26
  nativeType: import('./types').ButtonNativeType;
27
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -9,12 +9,12 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
12
+ variant: import('..').ButtonVariant;
12
13
  size: import('..').ButtonSize;
13
- type: import('..').ButtonType;
14
14
  disabled: boolean;
15
- ariaLabel: string;
16
- variant: import('..').ButtonVariant;
15
+ type: import('..').ButtonType;
17
16
  vertical: boolean;
17
+ ariaLabel: string;
18
18
  attached: boolean;
19
19
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
20
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -14,10 +14,10 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: import('vue').DefineComponent<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
17
+ bordered: boolean;
17
18
  title: string;
18
19
  shadow: import('./types').CardShadow;
19
20
  padding: import('./types').CardPadding;
20
- bordered: boolean;
21
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
22
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
23
  export default _default;
@@ -18,25 +18,25 @@ declare function __VLS_template(): {
18
18
  };
19
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
20
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- close: () => any;
22
- clear: () => any;
23
- open: () => any;
24
21
  change: (value: CascaderModelValue) => any;
25
22
  "update:modelValue": (value: CascaderModelValue) => any;
23
+ close: () => any;
24
+ open: () => any;
25
+ clear: () => any;
26
26
  expand: (path: CascaderOption[]) => any;
27
27
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
- onClose?: (() => any) | undefined;
29
- onClear?: (() => any) | undefined;
30
- onOpen?: (() => any) | undefined;
31
28
  onChange?: ((value: CascaderModelValue) => any) | undefined;
32
29
  "onUpdate:modelValue"?: ((value: CascaderModelValue) => any) | undefined;
30
+ onClose?: (() => any) | undefined;
31
+ onOpen?: (() => any) | undefined;
32
+ onClear?: (() => any) | undefined;
33
33
  onExpand?: ((path: CascaderOption[]) => any) | undefined;
34
34
  }>, {
35
35
  name: string;
36
36
  size: import('../..').ControlSize;
37
37
  disabled: boolean;
38
- teleport: boolean;
39
38
  placeholder: string;
39
+ teleport: boolean;
40
40
  ariaLabel: string;
41
41
  options: CascaderOption[];
42
42
  emptyText: string;
@@ -23,10 +23,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
23
23
  }>, {
24
24
  name: string;
25
25
  size: import('../..').ControlSize;
26
- label: string;
27
26
  disabled: boolean;
28
- ariaLabel: string;
27
+ label: string;
29
28
  value: import('../../composables/useFormField').ChoiceValue;
29
+ ariaLabel: string;
30
30
  id: string;
31
31
  indeterminate: boolean;
32
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -13,8 +13,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
13
13
  name: string;
14
14
  size: import('../..').ControlSize;
15
15
  disabled: boolean;
16
- teleport: boolean;
17
16
  placeholder: string;
17
+ teleport: boolean;
18
18
  ariaLabel: string;
19
19
  clearable: boolean;
20
20
  status: import('../..').ControlStatus;
@@ -11,24 +11,24 @@ declare function __VLS_template(): {
11
11
  };
12
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
13
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- close: () => any;
15
- clear: () => any;
16
- open: () => any;
17
14
  change: (value: DatePickerModelValue) => any;
18
15
  "update:modelValue": (value: DatePickerModelValue) => any;
16
+ close: () => any;
17
+ open: () => any;
18
+ clear: () => any;
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
- onClose?: (() => any) | undefined;
21
- onClear?: (() => any) | undefined;
22
- onOpen?: (() => any) | undefined;
23
20
  onChange?: ((value: DatePickerModelValue) => any) | undefined;
24
21
  "onUpdate:modelValue"?: ((value: DatePickerModelValue) => any) | undefined;
22
+ onClose?: (() => any) | undefined;
23
+ onOpen?: (() => any) | undefined;
24
+ onClear?: (() => any) | undefined;
25
25
  }>, {
26
26
  name: string;
27
27
  size: import('../..').ControlSize;
28
- type: import('./types').DatePickerType;
29
28
  disabled: boolean;
30
- teleport: boolean | string;
29
+ type: import('./types').DatePickerType;
31
30
  placeholder: string;
31
+ teleport: boolean | string;
32
32
  ariaLabel: string;
33
33
  clearable: boolean;
34
34
  status: import('../..').ControlStatus;
@@ -11,23 +11,23 @@ declare function __VLS_template(): {
11
11
  };
12
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
13
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- close: () => any;
15
- clear: () => any;
16
- open: () => any;
17
14
  change: (value: DateRangePickerModelValue) => any;
18
15
  "update:modelValue": (value: DateRangePickerModelValue) => any;
16
+ close: () => any;
17
+ open: () => any;
18
+ clear: () => any;
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
- onClose?: (() => any) | undefined;
21
- onClear?: (() => any) | undefined;
22
- onOpen?: (() => any) | undefined;
23
20
  onChange?: ((value: DateRangePickerModelValue) => any) | undefined;
24
21
  "onUpdate:modelValue"?: ((value: DateRangePickerModelValue) => any) | undefined;
22
+ onClose?: (() => any) | undefined;
23
+ onOpen?: (() => any) | undefined;
24
+ onClear?: (() => any) | undefined;
25
25
  }>, {
26
26
  name: string;
27
27
  size: import('../..').ControlSize;
28
28
  disabled: boolean;
29
- teleport: boolean;
30
29
  placeholder: string;
30
+ teleport: boolean;
31
31
  ariaLabel: string;
32
32
  clearable: boolean;
33
33
  status: import('../..').ControlStatus;
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
25
25
  name: string;
26
26
  size: import('../..').ControlSize;
27
27
  disabled: boolean;
28
- teleport: boolean | string;
29
28
  placeholder: string;
29
+ teleport: boolean | string;
30
30
  ariaLabel: string;
31
31
  clearable: boolean;
32
32
  status: import('../..').ControlStatus;
@@ -15,12 +15,12 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownItemProps,
15
15
  }, string, import('vue').PublicProps, Readonly<DropdownItemProps> & Readonly<{
16
16
  onClick?: ((event: MouseEvent) => any) | undefined;
17
17
  }>, {
18
+ disabled: boolean;
19
+ as: string | import('vue').Component;
20
+ target: string;
18
21
  icon: import('..').IconName;
19
22
  tone: import('./types').DropdownItemTone;
20
23
  href: string;
21
- target: string;
22
- as: string | import('vue').Component;
23
- disabled: boolean;
24
24
  active: boolean;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -18,14 +18,14 @@ declare const __VLS_component: import('vue').DefineComponent<EntityCardProps, {}
18
18
  }, string, import('vue').PublicProps, Readonly<EntityCardProps> & Readonly<{
19
19
  onClick?: ((event: MouseEvent) => any) | undefined;
20
20
  }>, {
21
- image: string;
21
+ bordered: boolean;
22
+ variant: import('./types').EntityCardVariant;
22
23
  size: import('./types').EntityCardSize;
24
+ image: string;
23
25
  meta: import('./types').EntityCardMeta[];
24
26
  title: string;
25
- href: string;
26
- variant: import('./types').EntityCardVariant;
27
- bordered: boolean;
28
27
  subtitle: string;
28
+ href: string;
29
29
  imageAlt: string;
30
30
  shape: import('./types').EntityCardShape;
31
31
  imageSize: number | string;
@@ -16,9 +16,9 @@ declare const __VLS_component: import('vue').DefineComponent<FormItemProps, {
16
16
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FormItemProps> & Readonly<{}>, {
17
17
  name: string;
18
18
  size: ControlSize;
19
- label: string;
20
- required: boolean;
21
19
  disabled: boolean;
20
+ required: boolean;
21
+ label: string;
22
22
  error: string | string[];
23
23
  labelWidth: string;
24
24
  help: string;
@@ -1,8 +1,8 @@
1
1
  import { IconProps } from './types';
2
2
  declare const _default: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
3
3
  size: import('./types').IconSize | number | string;
4
+ label: string;
4
5
  strokeWidth: number | string;
5
6
  spin: boolean;
6
- label: string;
7
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;
@@ -10,11 +10,11 @@ declare function __VLS_template(): {
10
10
  };
11
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import('vue').DefineComponent<IndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IndicatorProps> & Readonly<{}>, {
13
- label: string;
14
13
  type: import('./types').IndicatorType;
14
+ label: string;
15
+ value: number | string;
15
16
  hidden: boolean;
16
17
  offset: [number, number];
17
- value: number | string;
18
18
  dot: boolean;
19
19
  max: number;
20
20
  showZero: boolean;
@@ -21,23 +21,23 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
21
21
  select: () => void | undefined;
22
22
  input: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
23
23
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
- input: (value: string) => any;
25
- clear: () => any;
26
24
  change: (value: string) => any;
27
25
  "update:modelValue": (value: InputModelValue) => any;
26
+ input: (value: string) => any;
27
+ clear: () => any;
28
28
  blur: (event: FocusEvent) => any;
29
29
  focus: (event: FocusEvent) => any;
30
30
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
- onInput?: ((value: string) => any) | undefined;
32
- onClear?: (() => any) | undefined;
33
31
  onChange?: ((value: string) => any) | undefined;
34
32
  "onUpdate:modelValue"?: ((value: InputModelValue) => any) | undefined;
33
+ onInput?: ((value: string) => any) | undefined;
34
+ onClear?: (() => any) | undefined;
35
35
  onBlur?: ((event: FocusEvent) => any) | undefined;
36
36
  onFocus?: ((event: FocusEvent) => any) | undefined;
37
37
  }>, {
38
38
  size: import('./types').InputSize;
39
- type: import('./types').InputNativeType;
40
39
  disabled: boolean;
40
+ type: import('./types').InputNativeType;
41
41
  placeholder: string;
42
42
  ariaLabel: string;
43
43
  clearable: boolean;
@@ -0,0 +1,82 @@
1
+ import { KanbanCard, KanbanColumn, KanbanId, KanbanProps, KanbanVia } from './types';
2
+ declare const _default: <T extends KanbanCard = KanbanCard>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onAdd?: ((column: KanbanColumn<T>) => any) | undefined;
5
+ readonly "onUpdate:collapsed"?: ((value: KanbanId[]) => any) | undefined;
6
+ readonly onMove?: ((move: import('./types').KanbanMove<T>) => any) | undefined;
7
+ readonly "onColumn-move"?: ((move: import('./types').KanbanColumnMove<T>) => any) | undefined;
8
+ readonly "onAdd-column"?: (() => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onAdd" | "onUpdate:collapsed" | "onMove" | "onColumn-move" | "onAdd-column"> & ({
10
+ collapsed?: KanbanId[];
11
+ } & KanbanProps<T>) & Partial<{}>> & import('vue').PublicProps;
12
+ expose(exposed: import('vue').ShallowUnwrapRef<{
13
+ move: (from: KanbanColumn<T>, fromIndex: number, to: KanbanColumn<T>, toIndex: number, via: KanbanVia) => void;
14
+ moveColumn: (from: number, to: number, via: KanbanVia) => void;
15
+ toggle: (column: KanbanColumn<T>) => void;
16
+ }>): void;
17
+ attrs: any;
18
+ slots: Readonly<{
19
+ /** One card. Without it the board falls back to the card's own title. */
20
+ card?: (props: {
21
+ card: T;
22
+ column: KanbanColumn<T>;
23
+ index: number;
24
+ }) => unknown;
25
+ /** Replaces the title and the count above a column. */
26
+ 'column-header'?: (props: {
27
+ column: KanbanColumn<T>;
28
+ count: number;
29
+ overLimit: boolean;
30
+ }) => unknown;
31
+ /** The end of a column's heading — a plus, a menu, whatever the column can do. */
32
+ 'column-actions'?: (props: {
33
+ column: KanbanColumn<T>;
34
+ collapsed: boolean;
35
+ }) => unknown;
36
+ /** Under the cards, where the add button would be. */
37
+ 'column-footer'?: (props: {
38
+ column: KanbanColumn<T>;
39
+ }) => unknown;
40
+ /** Shown in a column holding no cards. */
41
+ empty?: (props: {
42
+ column: KanbanColumn<T>;
43
+ }) => unknown;
44
+ /** After the last column, in place of the add-a-column button. */
45
+ default?: () => unknown;
46
+ }> & {
47
+ /** One card. Without it the board falls back to the card's own title. */
48
+ card?: (props: {
49
+ card: T;
50
+ column: KanbanColumn<T>;
51
+ index: number;
52
+ }) => unknown;
53
+ /** Replaces the title and the count above a column. */
54
+ 'column-header'?: (props: {
55
+ column: KanbanColumn<T>;
56
+ count: number;
57
+ overLimit: boolean;
58
+ }) => unknown;
59
+ /** The end of a column's heading — a plus, a menu, whatever the column can do. */
60
+ 'column-actions'?: (props: {
61
+ column: KanbanColumn<T>;
62
+ collapsed: boolean;
63
+ }) => unknown;
64
+ /** Under the cards, where the add button would be. */
65
+ 'column-footer'?: (props: {
66
+ column: KanbanColumn<T>;
67
+ }) => unknown;
68
+ /** Shown in a column holding no cards. */
69
+ empty?: (props: {
70
+ column: KanbanColumn<T>;
71
+ }) => unknown;
72
+ /** After the last column, in place of the add-a-column button. */
73
+ default?: () => unknown;
74
+ };
75
+ emit: (((evt: "add", column: KanbanColumn<T>) => void) & ((evt: "move", move: import('./types').KanbanMove<T>) => void) & ((evt: "column-move", move: import('./types').KanbanColumnMove<T>) => void) & ((evt: "add-column") => void)) & ((evt: "update:collapsed", value: KanbanId[]) => void);
76
+ }>) => import('vue').VNode & {
77
+ __ctx?: Awaited<typeof __VLS_setup>;
78
+ };
79
+ export default _default;
80
+ type __VLS_PrettifyLocal<T> = {
81
+ [K in keyof T]: T[K];
82
+ } & {};
@@ -0,0 +1,2 @@
1
+ export { default as WxKanban } from './Kanban';
2
+ export type * from './types';