@open-xamu-co/ui-components-vue 3.0.0-next.21 → 3.0.0-next.22
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.
- package/CHANGELOG.md +15 -0
- package/dist/components/table/Simple.vue.d.ts +1 -2
- package/dist/components/value/List.vue.d.ts +3 -3
- package/dist/components/value/Simple.vue.d.ts +3 -3
- package/dist/composables/utils.d.ts +0 -4
- package/dist/{index-BCdjj9e9.mjs → index-C-5Xe5vV.mjs} +8 -8
- package/dist/{index-jJWQKnYD.js → index-CJSbLi4M.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/plugin.js +1 -1
- package/dist/plugin.mjs +1 -1
- package/dist/theme-D_KWoQRo.js +1 -0
- package/dist/theme-DhHPCJSY.mjs +83 -0
- package/dist/theme.js +1 -1
- package/dist/theme.mjs +1 -1
- package/package.json +4 -4
- package/dist/theme-BY5EMAVZ.mjs +0 -96
- package/dist/theme-Yzs-MjlT.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
Xamu UI
|
|
2
2
|
|
|
3
|
+
# [@open-xamu-co/ui-components-vue-v3.0.0-next.22](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v3.0.0-next.21...@open-xamu-co/ui-components-vue-v3.0.0-next.22) (2024-06-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* expose use order ([d46cf8c](https://github.com/xamu-co/ui/commit/d46cf8c1f9b32b7cae96e1b04af114815f2a166e))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
[34mUpdating dependant packages with "@open-xamu-co/ui-components-vue" version "3.0.0-next.22"[0m
|
|
15
|
+
[34mUpdating "nuxt"[0m
|
|
16
|
+
[34mSuccesfully updated "nuxt" package[0m
|
|
17
|
+
|
|
3
18
|
# [@open-xamu-co/ui-components-vue-v3.0.0-next.21](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v3.0.0-next.20...@open-xamu-co/ui-components-vue-v3.0.0-next.21) (2024-06-22)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type AllowedComponentProps } from "vue";
|
|
2
|
-
import type { iNodeFn, iProperty, tOrderBy, tProps, tSizeModifier } from "@open-xamu-co/ui-common-types";
|
|
2
|
+
import type { iNodeFn, iProperty, tOrderBy, tPropertyOrderFn, tProps, tSizeModifier } from "@open-xamu-co/ui-common-types";
|
|
3
3
|
import type { iModalProps } from "../../types/props";
|
|
4
|
-
import { type tPropertyOrderFn } from "../../composables/utils";
|
|
5
4
|
declare const _default: <T extends Record<string, any>>(__VLS_props: {
|
|
6
5
|
refresh?: (() => unknown) | undefined;
|
|
7
6
|
classes?: tProps<string> | undefined;
|
|
@@ -3,13 +3,13 @@ import type { iModalProps } from "../../types/props";
|
|
|
3
3
|
import type { AllowedComponentProps } from "vue";
|
|
4
4
|
declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
5
5
|
node?: Record<string, any> | undefined;
|
|
6
|
-
property?: iProperty<Record<string, any>, Record<string, any>> | undefined;
|
|
7
6
|
classes?: tProps<string> | undefined;
|
|
8
7
|
theme?: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier> | undefined;
|
|
9
8
|
invertTheme?: boolean | undefined;
|
|
10
9
|
shadow?: boolean | import("@open-xamu-co/ui-common-types").tThemeModifier[] | undefined;
|
|
11
10
|
value: Record<string, any>;
|
|
12
11
|
readonly?: boolean | undefined;
|
|
12
|
+
property?: iProperty<Record<string, any>, Record<string, any>> | undefined;
|
|
13
13
|
modalProps?: (iModalProps & AllowedComponentProps) | undefined;
|
|
14
14
|
} & import("vue").VNodeProps & AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
15
15
|
attrs: any;
|
|
@@ -18,13 +18,13 @@ declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
|
18
18
|
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
19
19
|
props: {
|
|
20
20
|
node?: Record<string, any> | undefined;
|
|
21
|
-
property?: iProperty<Record<string, any>, Record<string, any>> | undefined;
|
|
22
21
|
classes?: tProps<string> | undefined;
|
|
23
22
|
theme?: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier> | undefined;
|
|
24
23
|
invertTheme?: boolean | undefined;
|
|
25
24
|
shadow?: boolean | import("@open-xamu-co/ui-common-types").tThemeModifier[] | undefined;
|
|
26
25
|
value: Record<string, any>;
|
|
27
26
|
readonly?: boolean | undefined;
|
|
27
|
+
property?: iProperty<Record<string, any>, Record<string, any>> | undefined;
|
|
28
28
|
modalProps?: (iModalProps & AllowedComponentProps) | undefined;
|
|
29
29
|
} & import("vue").VNodeProps & AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
30
30
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
@@ -37,13 +37,13 @@ declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
|
37
37
|
__ctx?: {
|
|
38
38
|
props: {
|
|
39
39
|
node?: Record<string, any> | undefined;
|
|
40
|
-
property?: iProperty<Record<string, any>, Record<string, any>> | undefined;
|
|
41
40
|
classes?: tProps<string> | undefined;
|
|
42
41
|
theme?: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier> | undefined;
|
|
43
42
|
invertTheme?: boolean | undefined;
|
|
44
43
|
shadow?: boolean | import("@open-xamu-co/ui-common-types").tThemeModifier[] | undefined;
|
|
45
44
|
value: Record<string, any>;
|
|
46
45
|
readonly?: boolean | undefined;
|
|
46
|
+
property?: iProperty<Record<string, any>, Record<string, any>> | undefined;
|
|
47
47
|
modalProps?: (iModalProps & AllowedComponentProps) | undefined;
|
|
48
48
|
} & import("vue").VNodeProps & AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
49
49
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
@@ -2,7 +2,6 @@ import { type AllowedComponentProps } from "vue";
|
|
|
2
2
|
import type { tProps, tSizeModifier, iProperty } from "@open-xamu-co/ui-common-types";
|
|
3
3
|
import type { iModalProps } from "../../types/props";
|
|
4
4
|
declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
5
|
-
property?: iProperty<P, Record<string, any>> | undefined;
|
|
6
5
|
classes?: tProps<string> | undefined;
|
|
7
6
|
size?: tSizeModifier | undefined;
|
|
8
7
|
theme?: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier> | undefined;
|
|
@@ -10,6 +9,7 @@ declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
|
10
9
|
shadow?: boolean | import("@open-xamu-co/ui-common-types").tThemeModifier[] | undefined;
|
|
11
10
|
value: P[keyof P];
|
|
12
11
|
readonly?: boolean | undefined;
|
|
12
|
+
property?: iProperty<P, Record<string, any>> | undefined;
|
|
13
13
|
modalProps?: (iModalProps & AllowedComponentProps) | undefined;
|
|
14
14
|
verbose?: boolean | undefined;
|
|
15
15
|
} & import("vue").VNodeProps & AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -18,7 +18,6 @@ declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
|
18
18
|
emit: any;
|
|
19
19
|
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
20
20
|
props: {
|
|
21
|
-
property?: iProperty<P, Record<string, any>> | undefined;
|
|
22
21
|
classes?: tProps<string> | undefined;
|
|
23
22
|
size?: tSizeModifier | undefined;
|
|
24
23
|
theme?: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier> | undefined;
|
|
@@ -26,6 +25,7 @@ declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
|
26
25
|
shadow?: boolean | import("@open-xamu-co/ui-common-types").tThemeModifier[] | undefined;
|
|
27
26
|
value: P[keyof P];
|
|
28
27
|
readonly?: boolean | undefined;
|
|
28
|
+
property?: iProperty<P, Record<string, any>> | undefined;
|
|
29
29
|
modalProps?: (iModalProps & AllowedComponentProps) | undefined;
|
|
30
30
|
verbose?: boolean | undefined;
|
|
31
31
|
} & import("vue").VNodeProps & AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -38,7 +38,6 @@ declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
|
38
38
|
}> & {
|
|
39
39
|
__ctx?: {
|
|
40
40
|
props: {
|
|
41
|
-
property?: iProperty<P, Record<string, any>> | undefined;
|
|
42
41
|
classes?: tProps<string> | undefined;
|
|
43
42
|
size?: tSizeModifier | undefined;
|
|
44
43
|
theme?: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier> | undefined;
|
|
@@ -46,6 +45,7 @@ declare const _default: <P extends Record<string, any>>(__VLS_props: {
|
|
|
46
45
|
shadow?: boolean | import("@open-xamu-co/ui-common-types").tThemeModifier[] | undefined;
|
|
47
46
|
value: P[keyof P];
|
|
48
47
|
readonly?: boolean | undefined;
|
|
48
|
+
property?: iProperty<P, Record<string, any>> | undefined;
|
|
49
49
|
modalProps?: (iModalProps & AllowedComponentProps) | undefined;
|
|
50
50
|
verbose?: boolean | undefined;
|
|
51
51
|
} & import("vue").VNodeProps & AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { iPluginOptions, tOrderBy } from "@open-xamu-co/ui-common-types";
|
|
2
|
-
export type tPropertyOrderFn = (a: [string, any], b: [string, any]) => -1 | 0 | 1;
|
|
3
|
-
export declare function useSortObject(data: Record<string, any>): [string, any][];
|
|
4
|
-
export declare function isPlainValue(value: any): boolean;
|
|
5
|
-
export declare const useOrderProperty: tPropertyOrderFn;
|
|
6
2
|
export declare function useHelpers<T>(helper: (o?: iPluginOptions) => T): ReturnType<typeof helper>;
|
|
7
3
|
export declare function useOrderBy(orderByParam: any): tOrderBy[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as W, inject as ye, computed as N, openBlock as f, createBlock as E, resolveDynamicComponent as ge, normalizeProps as Q, guardReactiveProps as oe, mergeProps as D, withCtx as S, renderSlot as H, createElementBlock as C, Fragment as Z, createTextVNode as ue, toDisplayString as j, createCommentVNode as V, watch as de, unref as d, setBlockTracking as ha, createElementVNode as R, renderList as ie, normalizeClass as X, createVNode as L, ref as x, onErrorCaptured as hn, onMounted as Xt, onBeforeUnmount as lt, withModifiers as pe, normalizeStyle as st, reactive as Xa, getCurrentInstance as yt, Teleport as vn, withDirectives as Jt, vShow as Qt, Transition as Ja, onActivated as yn, onDeactivated as gn, resolveComponent as bn, useSlots as wn } from "vue";
|
|
2
|
-
import { useUtils as be, toOption as Ee, useI18n as ae, useSwal as gt, fileMatchesMimeTypes as _n, standardImageMimeTypes as $n, renameFile as Cn, getBase64FromImageFile as An, timeAgo as Sn,
|
|
3
|
-
import { u as Y, a as le, b as
|
|
2
|
+
import { useUtils as be, toOption as Ee, useI18n as ae, useSwal as gt, fileMatchesMimeTypes as _n, standardImageMimeTypes as $n, renameFile as Cn, getBase64FromImageFile as An, timeAgo as Sn, useOrderProperty as Bn, isPlainValue as Tn, useSortObject as Qa, useForm as el } from "@open-xamu-co/ui-common-helpers";
|
|
3
|
+
import { u as Y, a as le, b as tl } from "./theme-DhHPCJSY.mjs";
|
|
4
4
|
import { eColors as De, eSizes as Ne, eFormType as q, eFormTypeSimple as Bt } from "@open-xamu-co/ui-common-enums";
|
|
5
5
|
const bt = /* @__PURE__ */ W({
|
|
6
6
|
name: "BaseImg",
|
|
@@ -3570,7 +3570,7 @@ const nn = /* @__PURE__ */ W({
|
|
|
3570
3570
|
const t = e, { t: a, tet: n } = Y(ae), l = Y(gt), { themeClasses: r, themeValues: o, dangerThemeValues: s } = le(t), i = (I = yt()) == null ? void 0 : I.appContext.config.globalProperties.$router, c = x($(t.nodes.length)), h = N(() => c.value.filter(([u]) => u).length), w = N(() => c.value.filter(([, u]) => u).length), p = N(() => {
|
|
3571
3571
|
let [u = "id", z = "desc"] = Array.isArray(t.canSort) ? t.canSort : [], P = { [u]: z };
|
|
3572
3572
|
if (i) {
|
|
3573
|
-
const T = i.currentRoute.value, M =
|
|
3573
|
+
const T = i.currentRoute.value, M = tl(T.query.orderBy);
|
|
3574
3574
|
if (!M.length)
|
|
3575
3575
|
return P;
|
|
3576
3576
|
P = M.reduce((G, [K, ke]) => (G[K] = ke || "desc", G), {});
|
|
@@ -4216,7 +4216,7 @@ const nn = /* @__PURE__ */ W({
|
|
|
4216
4216
|
], 64)) : (p = s.property) != null && p.createNode ? V("", !0) : (f(), C("span", Pf, "-"))
|
|
4217
4217
|
], 8, Sf)) : typeof s.value == "object" && s.value !== null && Object.keys(s.value).length ? (f(), C(Z, { key: 1 }, [
|
|
4218
4218
|
Object.keys(s.value).length <= 3 && Object.values(s.value).every((O) => typeof O == "string" && O.length <= 7) ? (f(), C("div", Ef, [
|
|
4219
|
-
(f(!0), C(Z, null, ie(d(
|
|
4219
|
+
(f(!0), C(Z, null, ie(d(Qa)(s.value), ([O, g], $) => (f(), C(Z, { key: $ }, [
|
|
4220
4220
|
L(ut, D({ ref_for: !0 }, {
|
|
4221
4221
|
value: g,
|
|
4222
4222
|
property: {
|
|
@@ -4315,7 +4315,7 @@ const nn = /* @__PURE__ */ W({
|
|
|
4315
4315
|
return (t, a) => (f(), C("ul", {
|
|
4316
4316
|
class: X(["flx --flxColumn --minWidth-220", t.classes])
|
|
4317
4317
|
}, [
|
|
4318
|
-
(f(!0), C(Z, null, ie(d(
|
|
4318
|
+
(f(!0), C(Z, null, ie(d(Qa)(t.value), ([n, l], r) => (f(), C("li", {
|
|
4319
4319
|
key: r,
|
|
4320
4320
|
class: "flx --flxColumn --flx-center-start --gap-5 --flx-fit"
|
|
4321
4321
|
}, [
|
|
@@ -4940,7 +4940,7 @@ const at = /* @__PURE__ */ W({
|
|
|
4940
4940
|
const $ = Number(w);
|
|
4941
4941
|
B.at = isNaN($) ? g : $;
|
|
4942
4942
|
}
|
|
4943
|
-
return B.orderBy =
|
|
4943
|
+
return B.orderBy = tl(p.query.orderBy), B;
|
|
4944
4944
|
}), s = N({
|
|
4945
4945
|
get() {
|
|
4946
4946
|
return t.withRoute ? o.value : r.value;
|
|
@@ -5114,7 +5114,7 @@ const Ac = { class: "flx --flxRow --flx-start-center --gap-5" }, Sc = {
|
|
|
5114
5114
|
shadow: { type: [Boolean, Array] }
|
|
5115
5115
|
},
|
|
5116
5116
|
setup(e) {
|
|
5117
|
-
const t = e, { t: a } = Y(ae), { isValidValue: n, notEmptyValue: l } = Y(
|
|
5117
|
+
const t = e, { t: a } = Y(ae), { isValidValue: n, notEmptyValue: l } = Y(el).utils, { getInputError: r } = fn(t);
|
|
5118
5118
|
return (o, s) => (f(), C(Z, null, [
|
|
5119
5119
|
(f(!0), C(Z, null, ie(o.models, (i, c) => (f(), C("div", {
|
|
5120
5120
|
key: c,
|
|
@@ -5323,7 +5323,7 @@ const Pc = /* @__PURE__ */ W({
|
|
|
5323
5323
|
},
|
|
5324
5324
|
emits: ["update:model-value"],
|
|
5325
5325
|
setup(e, { emit: t }) {
|
|
5326
|
-
const a = e, n = t, { t: l, tet: r } = Y(ae), { isValidFormInputValue: o, notEmptyValue: s } = Y(
|
|
5326
|
+
const a = e, n = t, { t: l, tet: r } = Y(ae), { isValidFormInputValue: o, notEmptyValue: s } = Y(el).utils, { getInputPlaceholder: i, getInputAutocomplete: c, getInputTextType: h } = fn(a), { defaultCountry: w } = ma(), p = N(() => (a.countries || []).map(({ code: y, name: k }) => ({ value: y, alias: k }))), B = N(() => (a.countries || []).map(({ name: y, code: k, indicative: I }) => ({
|
|
5327
5327
|
value: k + I,
|
|
5328
5328
|
alias: y
|
|
5329
5329
|
}))), O = N(() => {
|