eco-vue-js 0.8.24 → 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(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AA+KA,iBAAS,cAAc;;yBAmKO,GAAG;;;;;WAUnB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;gBA1OP,OAAO,GAAG,IAAI;YAClB,MAAM;eACH,OAAO;eACP,OAAO;WACX,YAAY;YACX,OAAO;cACL,OAAO;mBACF,OAAO;kBACR,MAAM;iBACP,OAAO;eACT,OAAO;;;;;gBAVN,OAAO,GAAG,IAAI;YAClB,MAAM;eACH,OAAO;eACP,OAAO;WACX,YAAY;YACX,OAAO;cACL,OAAO;mBACF,OAAO;kBACR,MAAM;iBACP,OAAO;eACT,OAAO;;;;kFA0OlB,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":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AA+KA,iBAAS,cAAc;;yBAkKO,GAAG;;;;;WAUnB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;gBAzOP,OAAO,GAAG,IAAI;YAClB,MAAM;eACH,OAAO;eACP,OAAO;WACX,YAAY;YACX,OAAO;cACL,OAAO;mBACF,OAAO;kBACR,MAAM;iBACP,OAAO;eACT,OAAO;;;;;gBAVN,OAAO,GAAG,IAAI;YAClB,MAAM;eACH,OAAO;eACP,OAAO;WACX,YAAY;YACX,OAAO;cACL,OAAO;mBACF,OAAO;kBACR,MAAM;iBACP,OAAO;eACT,OAAO;;;;kFAyOlB,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"}
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  "cursor-progress": _ctx.loading,
46
46
  "cursor-not-allowed opacity-70": _ctx.disabled,
47
47
  "pt-1 pb-4": _ctx.title,
48
- "items-start pt-2": _ctx.alignTop,
48
+ "items-start": _ctx.alignTop,
49
49
  "items-center": !_ctx.alignTop
50
50
  }]),
51
51
  onClick: toggle
@@ -1 +1 @@
1
- {"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAmRA,iBAAS,cAAc;;;;;YAqUO,GAAG;sBACN,GAAG;2BACE,GAAG;;;WASrB,OAAO,IAA6B;EAEjD;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAhbR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;;;;;;;eAPR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;;;;kFAobnB,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":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCard.vue"],"names":[],"mappings":"AAoRA,iBAAS,cAAc;;;;;YAwUO,GAAG;sBACN,GAAG;2BACE,GAAG;;;WASrB,OAAO,IAA6B;EAEjD;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAnbR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;;;;;;;eAPR,OAAO;eACP,OAAO;aACT,OAAO;iBACH,OAAO;eACT,OAAO;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;;;;kFAubnB,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"}
@@ -99,7 +99,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  "allow-shift": unref(allowSelectRange),
100
100
  "align-top": _ctx.alignTop,
101
101
  class: normalizeClass(["px-4 h-full", {
102
- "opacity-50": unref(allowSelectHover)
102
+ "opacity-50": unref(allowSelectHover),
103
+ "pt-3": _ctx.alignTop
103
104
  }]),
104
105
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(allowSelectHover) ? unref(updateSelectedRange)?.() : unref(updateSelected)?.($event)),
105
106
  "onUpdateShift:modelValue": _cache[1] || (_cache[1] = ($event) => unref(updateSelectedRange)?.()),
@@ -142,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
142
143
  class: normalizeClass(["sm-not:absolute sm-not:right-0 sm-not:bottom-0 flex px-4 sm:h-full", {
143
144
  "sm-not:top-5": !_ctx.moreBottom,
144
145
  "sm-not:top-10": _ctx.moreBottom,
145
- "items-start pt-2": _ctx.alignTop,
146
+ "items-start pt-3": _ctx.alignTop,
146
147
  "items-center": !_ctx.alignTop
147
148
  }]),
148
149
  disabled: _ctx.disabled
@@ -1 +1 @@
1
- {"version":3,"file":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;;yBA+CM,GAAG;uBACL,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAhFN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;;iBAFN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;iGAoFnB,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":"WListCardField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListCardField.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;;yBA8CM,GAAG;uBACL,GAAG;;;WAShB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBA/EN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;;iBAFN,MAAM,GAAG,MAAM;eACjB,OAAO;gBACN,OAAO;iGAmFnB,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"}
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  setup(__props) {
13
13
  return (_ctx, _cache) => {
14
14
  return openBlock(), createElementBlock("div", {
15
- class: normalizeClass(["grid grid-cols-1 sm:min-h-16 sm:pr-6 sm:last:-mr-6", { "pointer-events-none": _ctx.allowOpen }])
15
+ class: normalizeClass(["grid grid-cols-1 sm:pr-6 sm:last:-mr-6", { "pointer-events-none": _ctx.allowOpen }])
16
16
  }, [
17
17
  _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
18
18
  createElementVNode("div", _hoisted_1, [
@@ -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":"AA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AAC,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;WAqKxD,mBAAmB,CAAC;;;;;;eAjKrB,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC;qBACtB,WAAW;qBACX,WAAW;mBACb,OAAO;uBACH,OAAO;eACf,MAAM;KA4JwE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;YAzJP,0BAA0B,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;YACrE,YAAY,SAAS,MAAM,GAAG,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" })
@@ -1 +1 @@
1
- {"version":3,"file":"ListCardFieldNested.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/ListCardFieldNested.vue"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EAAC,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,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;WAkHxD,mBAAmB,CAAC;gBA9GpB,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC;cAC/B,IAAI;KA6G2E,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;iBA1GF,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAAC,IAAI,EAAE,IAAI,CAAA;SAAC,KAAK,IAAI;;iBAAlE,CAAC,KAAK,EAAE;YAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAAC,IAAI,EAAE,IAAI,CAAA;SAAC,KAAK,IAAI;;UA4GpE,EAAE;;;;YAGiC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA5HvE,wBA4H4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, createVNode, withCtx, renderSlot, mergeProps } from 'vue';
1
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, resolveDynamicComponent, mergeProps, withCtx, normalizeClass, createVNode, renderSlot } from 'vue';
2
2
  import { getFirstFieldLabel } from '../use/useFieldConfigMap.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -15,27 +15,32 @@ 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(), createElementBlock("div", {
18
+ "keyArray" in field || "getterArray" in field ? (openBlock(), createBlock(resolveDynamicComponent(field.componentArray ?? "div"), mergeProps({
19
19
  key: 0,
20
- class: normalizeClass([field.cssClassArray, "sm:mr-6"])
21
- }, [
22
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.item[field.keyArray], (inner) => {
23
- return openBlock(), createElementBlock("div", {
24
- key: inner.id,
25
- class: normalizeClass([field.cssClass, "flex"])
26
- }, [
27
- createVNode(_component_ListCardFieldNested, {
28
- fields: field.fields,
29
- item: inner
30
- }, {
31
- default: withCtx((defaultScope) => [
32
- renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, defaultScope))
33
- ]),
34
- _: 2
35
- }, 1032, ["fields", "item"])
36
- ], 2);
37
- }), 128))
38
- ], 2)) : (openBlock(), createElementBlock("div", {
20
+ ref_for: true
21
+ }, field.componentArray ? { item: _ctx.item } : void 0, {
22
+ class: [field.cssClassArray, "sm:mr-6"]
23
+ }), {
24
+ default: withCtx(() => [
25
+ (openBlock(true), createElementBlock(Fragment, null, renderList("keyArray" in field ? _ctx.item[field.keyArray] : field.getterArray(_ctx.item), (inner) => {
26
+ return openBlock(), createElementBlock("div", {
27
+ key: inner.id,
28
+ class: normalizeClass([field.cssClass, "flex"])
29
+ }, [
30
+ createVNode(_component_ListCardFieldNested, {
31
+ fields: field.fields,
32
+ item: inner
33
+ }, {
34
+ default: withCtx((defaultScope) => [
35
+ renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, defaultScope))
36
+ ]),
37
+ _: 2
38
+ }, 1032, ["fields", "item"])
39
+ ], 2);
40
+ }), 128))
41
+ ]),
42
+ _: 2
43
+ }, 1040, ["class"])) : (openBlock(), createElementBlock("div", {
39
44
  key: 1,
40
45
  class: normalizeClass([field.cssClass, "flex sm:mr-6"])
41
46
  }, [
@@ -32,8 +32,18 @@ type FieldNestedArray<Data, QueryParams = unknown, Key extends keyof PickByType<
32
32
  export interface ListFieldNestedArray<Data, QueryParams = unknown> extends FieldNestedArray<Data, QueryParams> {
33
33
  cssClass?: string;
34
34
  cssClassArray?: string;
35
+ componentArray?: Raw<FieldComponent<Data>>;
35
36
  }
36
- 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>)[];
37
47
  export type MenuComponent<Data> = Component<{
38
48
  item: Data;
39
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,CA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 -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, {
@@ -1 +1 @@
1
- {"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBAGvB,KAAK,SAAS,OAAO,GAAG,IAAI,yBAC/B,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CA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AC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -66,24 +66,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  }])
67
67
  }, [
68
68
  createElementVNode("div", {
69
- class: normalizeClass(["absolute square-6 -top-1 rounded-full transition-all", {
69
+ class: normalizeClass(["absolute square-6 -top-1 rounded-full transition-[right] shadow-md z-10 flex items-center justify-center border border-solid", {
70
70
  "right-4": _ctx.modelValue === false,
71
71
  "right-2": _ctx.modelValue === null,
72
72
  "right-0": _ctx.modelValue === true,
73
- "w-ripple w-hover-circle": !_ctx.disabled && !_ctx.readonly
73
+ "w-ripple w-hover-circle": !_ctx.disabled && !_ctx.readonly,
74
+ "bg-default dark:bg-gray-100 border-default dark:border-gray-100": !_ctx.modelValue || _ctx.loading,
75
+ "bg-primary-default dark:bg-primary-dark border-primary-default dark:border-primary-dark": _ctx.modelValue && !_ctx.loading
74
76
  }])
75
77
  }, [
76
- createElementVNode("div", {
77
- class: normalizeClass(["h-full w-full rounded-full shadow-md z-10 flex items-center justify-center text-description", {
78
- "bg-default dark:bg-gray-100": !_ctx.modelValue || _ctx.loading,
79
- "bg-primary-default dark:bg-primary-dark": _ctx.modelValue && !_ctx.loading
80
- }])
81
- }, [
82
- _ctx.loading ? (openBlock(), createBlock(WSpinner, {
83
- key: 0,
84
- class: "[--spinner-size:1.25rem]"
85
- })) : createCommentVNode("", true)
86
- ], 2)
78
+ _ctx.loading ? (openBlock(), createBlock(WSpinner, {
79
+ key: 0,
80
+ class: "[--spinner-size:1.25rem] text-description"
81
+ })) : createCommentVNode("", true)
87
82
  ], 2)
88
83
  ], 2)
89
84
  ], 10, _hoisted_1),
@@ -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,KAAK,cAAc,MAAM,sCAAsC,CAAA;AAItE,KAAK,aAAa,CAAC,QAAQ,IAAI;KAC5B,GAAG,IAAI,QAAQ,GAAG,kBAAkB,GAAG,MAAM,QAAQ,CAAC,CAAC,EAAE,GAAG,SAAS,QAAQ,GAAG,MAAM,GAAG,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,UAC1D,MAAM,kBACE;IAAC,UAAU,EAAE,iBAAiB,CAAC,OAAO,cAAc,CAAC,CAAC,YAAY,CAAC,CAAA;CAAC,KACnF,OAAO,CAAC,KAAK,CAgBf,CAAA"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAA;AACpD,OAAO,KAAK,cAAc,MAAM,sCAAsC,CAAA;AAItE,KAAK,aAAa,CAAC,QAAQ,IAAI;KAC5B,GAAG,IAAI,QAAQ,GAAG,kBAAkB,GAAG,MAAM,QAAQ,CAAC,CAAC,EAAE,GAAG,SAAS,QAAQ,GAAG,MAAM,GAAG,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.24",
7
+ "version": "0.8.26",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",