eco-vue-js 0.8.25 → 0.8.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AAqGA,iBAAS,cAAc;;;yBATL,IAAI;YA4GQ,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WApJZ,YAAY;eACR,OAAO;;WADX,YAAY;eACR,OAAO;iGAyJlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AAwGA,iBAAS,cAAc;;;yBATL,IAAI;YA8GQ,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAtJZ,YAAY;eACR,OAAO;;WADX,YAAY;eACR,OAAO;iGA2JlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  ]),
53
53
  content: withCtx(() => [
54
54
  createVNode(_sfc_main$2, {
55
- class: "-mr-[1.375rem] sm-not:-mr-6 bg-default dark:bg-default-dark rounded-xl shadow-md my-4 overflow-hidden dark:border dark:border-solid dark:border-gray-800",
55
+ class: "-mr-[1.375rem] sm-not:-mr-6 bg-default dark:bg-default-dark rounded-xl shadow-md my-4 overflow-hidden dark:border dark:border-solid dark:border-gray-800 text-start font-normal",
56
56
  onClick: close
57
57
  }, {
58
58
  default: withCtx(() => [
@@ -5,7 +5,7 @@ import _sfc_main$3 from './HeaderSettingsItem.vue.js';
5
5
  import _sfc_main$2 from './HeaderFieldNested.vue.js';
6
6
 
7
7
  const _hoisted_1 = { class: "p-4" };
8
- const _hoisted_2 = { class: "flex flex-col" };
8
+ const _hoisted_2 = { class: "grid grid-cols-1" };
9
9
  const _hoisted_3 = ["disabled"];
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "HeaderSettings",
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderSettingsItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderSettingsItem.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,UAAU,CAAA;yBAKnC,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAmKxD,mBAAmB,CAAC;;;;;;eA/JrB,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC;qBACtB,WAAW;qBACX,WAAW;mBACb,OAAO;uBACH,OAAO;eACf,MAAM;KA0JwE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,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IAAI;YAClC,YAAY,SAAS,MAAM,GAAG,IAAI;YAClC,UAAU,GAAG,IAAI;;;;;YA2JqB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA/KvE,wBA+K4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  }, [
50
50
  !_ctx.disabledDrag ? (openBlock(), createElementBlock("button", {
51
51
  key: 0,
52
- class: "relative w-ripple w-ripple-hover flex items-center justify-center",
52
+ class: "relative w-ripple w-ripple-hover flex items-center justify-center cursor-grab active:cursor-grabbing",
53
53
  onMousedown: initDrag
54
54
  }, [
55
55
  createVNode(unref(IconDrag), { class: "rotate-90" })
@@ -15,14 +15,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  key: unref(getFirstFieldLabel)(field)
16
16
  }, [
17
17
  "fields" in field ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18
- "keyArray" in field ? (openBlock(), createBlock(resolveDynamicComponent(field.componentArray ?? "div"), mergeProps({
18
+ "keyArray" in field || "getterArray" in field ? (openBlock(), createBlock(resolveDynamicComponent(field.componentArray ?? "div"), mergeProps({
19
19
  key: 0,
20
20
  ref_for: true
21
21
  }, field.componentArray ? { item: _ctx.item } : void 0, {
22
22
  class: [field.cssClassArray, "sm:mr-6"]
23
23
  }), {
24
24
  default: withCtx(() => [
25
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.item[field.keyArray], (inner) => {
25
+ (openBlock(true), createElementBlock(Fragment, null, renderList("keyArray" in field ? _ctx.item[field.keyArray] : field.getterArray(_ctx.item), (inner) => {
26
26
  return openBlock(), createElementBlock("div", {
27
27
  key: inner.id,
28
28
  class: normalizeClass([field.cssClass, "flex"])
@@ -34,7 +34,16 @@ export interface ListFieldNestedArray<Data, QueryParams = unknown> extends Field
34
34
  cssClassArray?: string;
35
35
  componentArray?: Raw<FieldComponent<Data>>;
36
36
  }
37
- export type ListFields<Data, QueryParams = unknown> = (ListField<Data, QueryParams> | ListFieldNested<Data, QueryParams> | ListFieldNestedEntity<Data, QueryParams> | ListFieldNestedArray<Data, QueryParams>)[];
37
+ type FieldNestedArrayGetter<Data, QueryParams = unknown, Inner = unknown> = {
38
+ getterArray: (data: Data) => Inner[];
39
+ fields: ListFields<Inner, QueryParams>;
40
+ };
41
+ export interface ListFieldNestedArrayGetter<Data, QueryParams = unknown> extends FieldNestedArrayGetter<Data, QueryParams> {
42
+ cssClass?: string;
43
+ cssClassArray?: string;
44
+ componentArray?: Raw<FieldComponent<Data>>;
45
+ }
46
+ export type ListFields<Data, QueryParams = unknown> = (ListField<Data, QueryParams> | ListFieldNested<Data, QueryParams> | ListFieldNestedEntity<Data, QueryParams> | ListFieldNestedArray<Data, QueryParams> | ListFieldNestedArrayGetter<Data, QueryParams>)[];
38
47
  export type MenuComponent<Data> = Component<{
39
48
  item: Data;
40
49
  readonly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAEvC,MAAM,MAAM,cAAc,CAAC,IAAI,IAAI,SAAS,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC,CAAA;AAEF,MAAM,MAAM,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,IAAI;IACnD,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAA;IACpC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,KAAK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IAC1C,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC,CAAA;AAEF,MAAM,MAAM,aAAa,CAAC,WAAW,IAAI,SAAS,CAAC;IACjD,iBAAiB,EAAE,MAAM,WAAW,CAAA;IACpC,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAC,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,mBAAmB,CAAC,MAAM,IAAI,MAAM,SAAS,CAAC,MAAM,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,GACzE,IAAI,SAAS;IAAC,KAAK,EAAE,MAAM,KAAK,CAAA;CAAC,GACjC,CAAC,KAAK,EAAE,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,GACrC,IAAI,SAAS;IAAC,MAAM,EAAE,MAAM,WAAW,CAAA;CAAC,GACxC,CAAC,GAAG,mBAAmB,CAAC,WAAW,CAAC,EAAE,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,GACnE,mBAAmB,CAAC,IAAI,CAAC,GACzB,EAAE,CAAA;AAEN,MAAM,MAAM,cAAc,CAAC,MAAM,SAAS,UAAU,CAAC,OAAO,CAAC,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AAGpG,MAAM,MAAM,cAAc,CAAC,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAA"}
@@ -59,6 +59,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
59
59
  declare const __VLS_component: import('vue').DefineComponent<{
60
60
  names?: string[];
61
61
  loading?: boolean;
62
+ disabled?: boolean;
63
+ disabledNext?: boolean;
62
64
  }, {
63
65
  next: () => void;
64
66
  previous: () => void;
@@ -72,6 +74,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
72
74
  }, string, import('vue').PublicProps, Readonly<{
73
75
  names?: string[];
74
76
  loading?: boolean;
77
+ disabled?: boolean;
78
+ disabledNext?: boolean;
75
79
  }> & Readonly<{
76
80
  onSubmit?: (() => any) | undefined;
77
81
  "onClose:modal"?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAiNA,iBAAS,cAAc;;uBA6MI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAUhB,OAAO,IAA6B;EAEjD;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAvTX,MAAM,EAAE;cACN,OAAO;;gBA2BF,IAAI;oBANA,IAAI;;;;;;;;;YAtBf,MAAM,EAAE;cACN,OAAO;;;;;;;;kFAqUjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAuNA,iBAAS,cAAc;;uBA6MI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAUhB,OAAO,IAA6B;EAEjD;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAzTX,MAAM,EAAE;cACN,OAAO;eACN,OAAO;mBACH,OAAO;;gBA2BP,IAAI;oBANA,IAAI;;;;;;;;;YAxBf,MAAM,EAAE;cACN,OAAO;eACN,OAAO;mBACH,OAAO;;;;;;;;kFAqUtB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -10,7 +10,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "WModalStepper",
11
11
  props: {
12
12
  names: {},
13
- loading: { type: Boolean }
13
+ loading: { type: Boolean },
14
+ disabled: { type: Boolean },
15
+ disabledNext: { type: Boolean }
14
16
  },
15
17
  emits: ["close:modal", "submit", "next", "previous", "update:current", "update:has-changes"],
16
18
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -59,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
61
  actions: withCtx(() => [
60
62
  current.value === 0 ? (openBlock(), createBlock(_sfc_main$2, {
61
63
  key: 0,
62
- disabled: _ctx.loading,
64
+ disabled: _ctx.loading || _ctx.disabled,
63
65
  "semantic-type": unref(SemanticType).SECONDARY,
64
66
  class: "w-full",
65
67
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close:modal"))
@@ -70,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
70
72
  _: 1
71
73
  }, 8, ["disabled", "semantic-type"])) : (openBlock(), createBlock(_sfc_main$2, {
72
74
  key: 1,
73
- disabled: _ctx.loading,
75
+ disabled: _ctx.loading || _ctx.disabled,
74
76
  "semantic-type": unref(SemanticType).SECONDARY,
75
77
  class: "w-full",
76
78
  onClick: previous
@@ -84,6 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
86
  key: 2,
85
87
  "semantic-type": unref(SemanticType).PRIMARY,
86
88
  loading: _ctx.loading,
89
+ disabled: _ctx.disabled || _ctx.disabledNext,
87
90
  class: "w-full",
88
91
  onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("submit"))
89
92
  }, {
@@ -91,10 +94,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
94
  createTextVNode(" Submit ")
92
95
  ])),
93
96
  _: 1
94
- }, 8, ["semantic-type", "loading"])) : (openBlock(), createBlock(_sfc_main$2, {
97
+ }, 8, ["semantic-type", "loading", "disabled"])) : (openBlock(), createBlock(_sfc_main$2, {
95
98
  key: 3,
96
99
  "semantic-type": unref(SemanticType).PRIMARY,
97
100
  loading: _ctx.loading,
101
+ disabled: _ctx.disabled || _ctx.disabledNext,
98
102
  class: "w-full",
99
103
  onClick: next
100
104
  }, {
@@ -102,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
106
  createTextVNode(" Next ")
103
107
  ])),
104
108
  _: 1
105
- }, 8, ["semantic-type", "loading"]))
109
+ }, 8, ["semantic-type", "loading", "disabled"]))
106
110
  ]),
107
111
  default: withCtx(() => [
108
112
  createVNode(_sfc_main$3, {
@@ -12,8 +12,8 @@ export declare class ApiErrorCancel<Data extends RequestData = NonNullable<unkno
12
12
  }
13
13
  export declare const handleApiError: <Error>(error: Error, form?: {
14
14
  invalidate: ComponentInstance<typeof WForm>["invalidate"];
15
- }, field?: string, formValidator?: {
15
+ } | null, field?: string, formValidator?: {
16
16
  invalidate: ComponentInstance<typeof WFormValidator>["invalidate"];
17
- }) => Promise<Error>;
17
+ } | null) => Promise<Error>;
18
18
  export {};
19
19
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAA;AACpD,OAAO,K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G,MAAM,EAAE;CACnG,CAAA;AAED,qBAAa,QAAQ,CAAC,IAAI,SAAS,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,CAAE,SAAQ,KAAK;aACvF,QAAQ,EAAE,eAAe,CAAC,SAAS,EAAE,IAAI,CAAC;gBAA1C,QAAQ,EAAE,eAAe,CAAC,SAAS,EAAE,IAAI,CAAC;CAGvE;AAED,qBAAa,cAAc,CAAC,IAAI,SAAS,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,CAAE,SAAQ,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;gBAChG,QAAQ,EAAE,eAAe,CAAC,SAAS,EAAE,IAAI,CAAC;CAGvD;AAED,eAAO,MAAM,cAAc,GAAI,KAAK,SAC3B,KAAK,SACL;IAAC,UAAU,EAAE,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC,CAAA;CAAC,GAAG,IAAI,UACjE,MAAM,kBACE;IAAC,UAAU,EAAE,iBAAiB,CAAC,OAAO,cAAc,CAAC,CAAC,YAAY,CAAC,CAAA;CAAC,GAAG,IAAI,KAC1F,OAAO,CAAC,KAAK,CAgBf,CAAA"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.8.25",
7
+ "version": "0.8.26",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",