pxd 0.0.46 → 0.0.47

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.
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<CarouselGroupProps, {},
13
13
  }, string, import("vue").PublicProps, Readonly<CarouselGroupProps> & Readonly<{
14
14
  onChange?: ((index: number) => any) | undefined;
15
15
  }>, {
16
- index: number;
17
16
  height: number | string;
17
+ index: number;
18
18
  loop: boolean;
19
19
  arrow: boolean;
20
20
  autoplay: boolean;
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<CarouselGroupProps, {},
13
13
  }, string, import("vue").PublicProps, Readonly<CarouselGroupProps> & Readonly<{
14
14
  onChange?: ((index: number) => any) | undefined;
15
15
  }>, {
16
- index: number;
17
16
  height: number | string;
17
+ index: number;
18
18
  loop: boolean;
19
19
  arrow: boolean;
20
20
  autoplay: boolean;
@@ -19,8 +19,8 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
19
19
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((args_0: number) => any) | undefined;
21
21
  }>, {
22
- max: number;
23
22
  disabled: boolean;
23
+ max: number;
24
24
  precision: number;
25
25
  min: number;
26
26
  readonly: boolean;
@@ -19,8 +19,8 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
19
19
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((args_0: number) => any) | undefined;
21
21
  }>, {
22
- max: number;
23
22
  disabled: boolean;
23
+ max: number;
24
24
  precision: number;
25
25
  min: number;
26
26
  readonly: boolean;
@@ -18,8 +18,8 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
18
18
  "onUpdate:modelValue"?: ((args_0: number) => any) | undefined;
19
19
  }>, {
20
20
  label: boolean | string | number;
21
- max: number;
22
21
  variant: ComponentVariant | "secondary";
22
+ max: number;
23
23
  min: number;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -18,8 +18,8 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
18
18
  "onUpdate:modelValue"?: ((args_0: number) => any) | undefined;
19
19
  }>, {
20
20
  label: boolean | string | number;
21
- max: number;
22
21
  variant: ComponentVariant | "secondary";
22
+ max: number;
23
23
  min: number;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
14
14
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
15
15
  "onUpdate:modelValue"?: ((args_0: NonNullable<number | [number, number] | null | undefined>) => any) | undefined;
16
16
  }>, {
17
- max: number;
18
17
  variant: ComponentVariant | "secondary";
18
+ max: number;
19
19
  modelValue: number | [number, number] | null;
20
20
  min: number;
21
21
  step: number;
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
14
14
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
15
15
  "onUpdate:modelValue"?: ((args_0: NonNullable<number | [number, number] | null | undefined>) => any) | undefined;
16
16
  }>, {
17
- max: number;
18
17
  variant: ComponentVariant | "secondary";
18
+ max: number;
19
19
  modelValue: number | [number, number] | null;
20
20
  min: number;
21
21
  step: number;
@@ -10,8 +10,8 @@ interface Props {
10
10
  prefixIcon?: boolean;
11
11
  placeholder?: string;
12
12
  closeOnPressEscape?: boolean;
13
- formatter?: string;
14
- valueFormatter?: string;
13
+ format?: string;
14
+ valueFormat?: string;
15
15
  }
16
16
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  select: (args_0: MouseEvent) => any;
@@ -24,10 +24,10 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
24
24
  }>, {
25
25
  modelValue: Date | string | number;
26
26
  closeOnPressEscape: boolean;
27
- formatter: string;
27
+ format: string;
28
28
  presets: DateTimePreset[];
29
29
  prefixIcon: boolean;
30
- valueFormatter: string;
30
+ valueFormat: string;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
33
33
  export default _default;
@@ -24,8 +24,8 @@ const props = defineProps({
24
24
  prefixIcon: { type: Boolean, required: false, default: true },
25
25
  placeholder: { type: String, required: false },
26
26
  closeOnPressEscape: { type: Boolean, required: false, default: true },
27
- formatter: { type: String, required: false, default: "HH:mm:ss" },
28
- valueFormatter: { type: String, required: false, default: "HH:mm:ss" }
27
+ format: { type: String, required: false, default: "HH:mm:ss" },
28
+ valueFormat: { type: String, required: false, default: "HH:mm:ss" }
29
29
  });
30
30
  const emits = defineEmits(["change", "select", "update:modelValue"]);
31
31
  const HEIGHT = 32;
@@ -42,7 +42,7 @@ const popoverVisible = shallowRef(false);
42
42
  const dayjsDateTime = shallowRef(null);
43
43
  const modelValue = computed({
44
44
  get() {
45
- return dayjsDateTime.value ? dayjsDateTime.value.format(props.formatter) : "";
45
+ return dayjsDateTime.value ? dayjsDateTime.value.format(props.format) : "";
46
46
  },
47
47
  set(value) {
48
48
  emits("update:modelValue", value);
@@ -127,7 +127,7 @@ function onCancelClick() {
127
127
  hidePopover();
128
128
  }
129
129
  function onConfirmClick() {
130
- modelValue.value = dayjsDateTime.value ? dayjsDateTime.value.format(props.valueFormatter) : "";
130
+ modelValue.value = dayjsDateTime.value ? dayjsDateTime.value.format(props.valueFormat) : "";
131
131
  }
132
132
  function onPresetTimeClick(date) {
133
133
  onInputValueChange(date ?? /* @__PURE__ */ new Date());
@@ -140,7 +140,7 @@ function onInputValueChange(value) {
140
140
  return;
141
141
  }
142
142
  dayjsDateTime.value = getFormattedValue(value);
143
- modelValue.value = dayjsDateTime.value.format(props.valueFormatter);
143
+ onConfirmClick();
144
144
  }
145
145
  function onUpdateModelValue(value) {
146
146
  if (value) {
@@ -10,8 +10,8 @@ interface Props {
10
10
  prefixIcon?: boolean;
11
11
  placeholder?: string;
12
12
  closeOnPressEscape?: boolean;
13
- formatter?: string;
14
- valueFormatter?: string;
13
+ format?: string;
14
+ valueFormat?: string;
15
15
  }
16
16
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  select: (args_0: MouseEvent) => any;
@@ -24,10 +24,10 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
24
24
  }>, {
25
25
  modelValue: Date | string | number;
26
26
  closeOnPressEscape: boolean;
27
- formatter: string;
27
+ format: string;
28
28
  presets: DateTimePreset[];
29
29
  prefixIcon: boolean;
30
- valueFormatter: string;
30
+ valueFormat: string;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
33
33
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pxd",
3
3
  "type": "module",
4
- "version": "0.0.46",
4
+ "version": "0.0.47",
5
5
  "description": "A universal UI component library for Vue2&3.",
6
6
  "author": "libondev <bon.li@outlook.com>",
7
7
  "license": "MIT",