@firstnoodle-ui/bui 0.0.40 → 0.0.41

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,7 +1,7 @@
1
1
  import { CalendarViewProps } from './types.ts';
2
2
  declare const _default: import('vue').DefineComponent<CalendarViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
- change: (date: string | null) => any;
3
+ change: (date: Date | null) => any;
4
4
  }, string, import('vue').PublicProps, Readonly<CalendarViewProps> & Readonly<{
5
- onChange?: ((date: string | null) => any) | undefined;
5
+ onChange?: ((date: Date | null) => any) | undefined;
6
6
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
7
7
  export default _default;
@@ -8,19 +8,19 @@ export declare enum ViewType {
8
8
  YEAR = "YEAR",
9
9
  DECADE = "DECADE"
10
10
  }
11
- export declare const useCalendar: (value: (string | Date | null) | undefined, options: CalendarOptions) => {
11
+ export declare const useCalendar: (value: (Date | null) | undefined, options: CalendarOptions) => {
12
12
  selectedDate: Date | null;
13
13
  viewData: import('vue').Ref<[] | {
14
14
  label: number | string;
15
15
  current: boolean;
16
- date?: string | undefined;
16
+ date?: Date | undefined;
17
17
  disabled?: boolean | undefined;
18
18
  inactive?: boolean | undefined;
19
19
  selected?: boolean | undefined;
20
20
  }[], [] | CalendarGridItem[] | {
21
21
  label: number | string;
22
22
  current: boolean;
23
- date?: string | undefined;
23
+ date?: Date | undefined;
24
24
  disabled?: boolean | undefined;
25
25
  inactive?: boolean | undefined;
26
26
  selected?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  import { DateFormat } from './utils/utils/format';
2
2
  export type CalendarViewProps = {
3
- value?: string | Date | null;
3
+ value?: Date | null;
4
4
  clearable?: boolean;
5
5
  type?: DateFormat;
6
6
  format?: DateFormat;
@@ -5,7 +5,7 @@ export type CalendarOptions = {
5
5
  export type CalendarGridItem = {
6
6
  label: number | string;
7
7
  current: boolean;
8
- date?: string;
8
+ date?: Date;
9
9
  disabled?: boolean;
10
10
  inactive?: boolean;
11
11
  selected?: boolean;
@@ -1,9 +1,9 @@
1
1
  import { ConfirmCancelProps } from './types';
2
2
  declare const _default: import('vue').DefineComponent<ConfirmCancelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
- confirm: (...args: any[]) => void;
4
3
  cancel: (...args: any[]) => void;
4
+ confirm: (...args: any[]) => void;
5
5
  }, string, import('vue').PublicProps, Readonly<ConfirmCancelProps> & Readonly<{
6
- onConfirm?: ((...args: any[]) => any) | undefined;
7
6
  onCancel?: ((...args: any[]) => any) | undefined;
7
+ onConfirm?: ((...args: any[]) => any) | undefined;
8
8
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
9
  export default _default;
@@ -13,11 +13,11 @@ declare function __VLS_template(): {
13
13
  };
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
15
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
- confirm: () => any;
17
16
  cancel: () => any;
17
+ confirm: () => any;
18
18
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
- onConfirm?: (() => any) | undefined;
20
19
  onCancel?: (() => any) | undefined;
20
+ onConfirm?: (() => any) | undefined;
21
21
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
23
  export default _default;
@@ -173,11 +173,11 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
173
173
  declare const __VLS_component: import('vue').DefineComponent<PopCalendarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
174
174
  close: () => any;
175
175
  open: (targets: HTMLElement[]) => any;
176
- change: (value: string | Date | null) => any;
176
+ change: (value: Date | null) => any;
177
177
  }, string, import('vue').PublicProps, Readonly<PopCalendarProps> & Readonly<{
178
178
  onClose?: (() => any) | undefined;
179
179
  onOpen?: ((targets: HTMLElement[]) => any) | undefined;
180
- onChange?: ((value: string | Date | null) => any) | undefined;
180
+ onChange?: ((value: Date | null) => any) | undefined;
181
181
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
182
182
  popperRef: ({
183
183
  $: import('vue').ComponentInternalInstance;
@@ -175,12 +175,12 @@ declare function __VLS_template(): {
175
175
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
176
176
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
177
177
  close: (...args: any[]) => void;
178
- confirm: (...args: any[]) => void;
179
178
  cancel: (...args: any[]) => void;
179
+ confirm: (...args: any[]) => void;
180
180
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
181
181
  onClose?: ((...args: any[]) => any) | undefined;
182
- onConfirm?: ((...args: any[]) => any) | undefined;
183
182
  onCancel?: ((...args: any[]) => any) | undefined;
183
+ onConfirm?: ((...args: any[]) => any) | undefined;
184
184
  }>, {
185
185
  placement: Placement;
186
186
  tagName: string;