@point-hub/papp 0.0.54 → 0.0.55
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 { type BaseFormLayoutType } from './base-form.vue';
|
|
2
2
|
export type BaseAutocompleteBorderType = 'none' | 'simple' | 'full';
|
|
3
3
|
export interface BaseAutocompleteOptionInterface {
|
|
4
|
-
label
|
|
4
|
+
label?: string;
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}
|
|
7
7
|
export interface Props {
|
|
@@ -19,7 +19,7 @@ export interface Props {
|
|
|
19
19
|
errors?: string[];
|
|
20
20
|
}
|
|
21
21
|
declare const _default: import("vue").DefineComponent<{
|
|
22
|
-
modelValue: import("vue").PropType<
|
|
22
|
+
modelValue: import("vue").PropType<BaseAutocompleteOptionInterface>;
|
|
23
23
|
isLoading: import("vue").PropType<boolean>;
|
|
24
24
|
query: import("vue").PropType<string>;
|
|
25
25
|
required: {
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
}, {
|
|
68
68
|
inputRef: import("vue").Ref<any>;
|
|
69
69
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
-
modelValue: import("vue").PropType<
|
|
70
|
+
modelValue: import("vue").PropType<BaseAutocompleteOptionInterface>;
|
|
71
71
|
isLoading: import("vue").PropType<boolean>;
|
|
72
72
|
query: import("vue").PropType<string>;
|
|
73
73
|
required: {
|
|
@@ -4,6 +4,7 @@ export interface Props {
|
|
|
4
4
|
modelValue: number | null;
|
|
5
5
|
id?: string;
|
|
6
6
|
label?: string;
|
|
7
|
+
align?: 'left' | 'right';
|
|
7
8
|
description?: string;
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
border?: BaseInputNumberBorderType;
|
|
@@ -17,6 +18,7 @@ export interface Props {
|
|
|
17
18
|
}
|
|
18
19
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
20
|
decimalLength: number;
|
|
21
|
+
align: string;
|
|
20
22
|
border: string;
|
|
21
23
|
layout: string;
|
|
22
24
|
autofocus: boolean;
|
|
@@ -28,6 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
28
30
|
"update:modelValue": (value: number) => void;
|
|
29
31
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
30
32
|
decimalLength: number;
|
|
33
|
+
align: string;
|
|
31
34
|
border: string;
|
|
32
35
|
layout: string;
|
|
33
36
|
autofocus: boolean;
|
|
@@ -41,6 +44,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
41
44
|
layout: BaseFormLayoutType;
|
|
42
45
|
border: BaseInputNumberBorderType;
|
|
43
46
|
autofocus: boolean;
|
|
47
|
+
align: "left" | "right";
|
|
44
48
|
decimalLength: number;
|
|
45
49
|
}, {}>;
|
|
46
50
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -7619,9 +7619,7 @@ const Hv = /* @__PURE__ */ _({
|
|
|
7619
7619
|
helpers: {},
|
|
7620
7620
|
errors: {}
|
|
7621
7621
|
}, {
|
|
7622
|
-
modelValue: {
|
|
7623
|
-
default: { label: "" }
|
|
7624
|
-
},
|
|
7622
|
+
modelValue: {},
|
|
7625
7623
|
modelModifiers: {},
|
|
7626
7624
|
isLoading: { type: Boolean, default: !1 },
|
|
7627
7625
|
isLoadingModifiers: {},
|
|
@@ -7677,10 +7675,10 @@ const Hv = /* @__PURE__ */ _({
|
|
|
7677
7675
|
required: n.required,
|
|
7678
7676
|
disabled: n.disabled,
|
|
7679
7677
|
placeholder: f.placeholder,
|
|
7680
|
-
displayValue: (g) => g.label,
|
|
7678
|
+
displayValue: (g) => g.label ?? "",
|
|
7681
7679
|
onChange: c[0] || (c[0] = (g) => Ze(o) ? o.value = g.target.value : o = g.target.value)
|
|
7682
7680
|
}, null, 8, ["autofocus", "required", "disabled", "placeholder", "class", "displayValue"]),
|
|
7683
|
-
((v = r.value) == null ? void 0 : v.label) === "" ? (S(), V(F(pu), {
|
|
7681
|
+
!r.value || ((v = r.value) == null ? void 0 : v.label) === "" ? (S(), V(F(pu), {
|
|
7684
7682
|
key: 0,
|
|
7685
7683
|
ref_key: "buttonRef",
|
|
7686
7684
|
ref: s,
|
|
@@ -7691,7 +7689,7 @@ const Hv = /* @__PURE__ */ _({
|
|
|
7691
7689
|
]),
|
|
7692
7690
|
_: 1
|
|
7693
7691
|
}, 512)) : Y("", !0),
|
|
7694
|
-
((m = r.value) == null ? void 0 : m.label) !== "" ? (S(), V(re(Pe), {
|
|
7692
|
+
r.value && ((m = r.value) == null ? void 0 : m.label) !== "" ? (S(), V(re(Pe), {
|
|
7695
7693
|
key: 1,
|
|
7696
7694
|
size: "none",
|
|
7697
7695
|
variant: "text",
|
|
@@ -7751,7 +7749,7 @@ const Hv = /* @__PURE__ */ _({
|
|
|
7751
7749
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
|
|
7752
7750
|
};
|
|
7753
7751
|
}
|
|
7754
|
-
}), sm = /* @__PURE__ */ se(lm, [["__scopeId", "data-v-
|
|
7752
|
+
}), sm = /* @__PURE__ */ se(lm, [["__scopeId", "data-v-da2d5c22"]]), um = { class: "flex gap-2 items-center" }, dm = ["id", "required", "disabled"], cm = ["for"], fm = { key: 0 }, pm = /* @__PURE__ */ _({
|
|
7755
7753
|
__name: "base-checkbox",
|
|
7756
7754
|
props: {
|
|
7757
7755
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -9982,6 +9980,7 @@ const qh = ["placeholder", "autofocus", "required", "disabled"], Uh = /* @__PURE
|
|
|
9982
9980
|
modelValue: {},
|
|
9983
9981
|
id: {},
|
|
9984
9982
|
label: {},
|
|
9983
|
+
align: { default: "right" },
|
|
9985
9984
|
description: {},
|
|
9986
9985
|
placeholder: {},
|
|
9987
9986
|
border: { default: "simple" },
|
|
@@ -10024,6 +10023,7 @@ const qh = ["placeholder", "autofocus", "required", "disabled"], Uh = /* @__PURE
|
|
|
10024
10023
|
ref_key: "inputRef",
|
|
10025
10024
|
ref: a,
|
|
10026
10025
|
class: q(["form-input", {
|
|
10026
|
+
"text-right": s.align === "right",
|
|
10027
10027
|
"border-simple px-0!": s.border === "simple",
|
|
10028
10028
|
"border-full": s.border === "full",
|
|
10029
10029
|
"border-none px-0!": s.border === "none"
|
|
@@ -10040,7 +10040,7 @@ const qh = ["placeholder", "autofocus", "required", "disabled"], Uh = /* @__PURE
|
|
|
10040
10040
|
_: 1
|
|
10041
10041
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]));
|
|
10042
10042
|
}
|
|
10043
|
-
}), zh = /* @__PURE__ */ se(Uh, [["__scopeId", "data-v-
|
|
10043
|
+
}), zh = /* @__PURE__ */ se(Uh, [["__scopeId", "data-v-931781c5"]]), Yh = { class: "cursor-pointer" }, Xh = { class: "flex items-center justify-between gap-2" }, Qh = {
|
|
10044
10044
|
key: 0,
|
|
10045
10045
|
class: "shrink-0 text-white"
|
|
10046
10046
|
}, Gh = {
|