eco-vue-js 0.8.30 → 0.8.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  import { SemanticType } from '../../../utils/SemanticType';
2
2
  export declare const semanticTypeButtonStylesMap: Record<SemanticType, string>;
3
+ export declare const semanticTypeChipsStylesMap: Record<SemanticType, string>;
3
4
  export declare const semanticTypeButtonBorderStylesMap: Record<SemanticType, string>;
4
5
  export declare const semanticTypeTextStylesMap: Record<SemanticType, string>;
5
6
  //# sourceMappingURL=semanticTypeStylesMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"semanticTypeStylesMap.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/models/semanticTypeStylesMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAEjD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOpE,CAAA;AAED,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAO1E,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOlE,CAAA"}
1
+ {"version":3,"file":"semanticTypeStylesMap.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/models/semanticTypeStylesMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAEjD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOpE,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGnE,CAAA;AAED,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAO1E,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOlE,CAAA"}
@@ -8,6 +8,10 @@ const semanticTypeButtonStylesMap = {
8
8
  [SemanticType.WARNING]: "bg-warning dark:bg-warning-dark text-black-default dark:text-default-dark ",
9
9
  [SemanticType.INFO]: "bg-info dark:bg-info-dark text-secondary-default dark:text-default-dark"
10
10
  };
11
+ const semanticTypeChipsStylesMap = {
12
+ ...semanticTypeButtonStylesMap,
13
+ [SemanticType.SECONDARY]: "bg-gray-200 dark:bg-gray-800 text-description"
14
+ };
11
15
  const semanticTypeButtonBorderStylesMap = {
12
16
  [SemanticType.PRIMARY]: "border border-solid border-primary-default dark:border-primary-dark",
13
17
  [SemanticType.SECONDARY]: "border border-solid border-gray-300 dark:border-gray-700",
@@ -25,4 +29,4 @@ const semanticTypeTextStylesMap = {
25
29
  [SemanticType.INFO]: "text-info dark:text-info-dark"
26
30
  };
27
31
 
28
- export { semanticTypeButtonBorderStylesMap, semanticTypeButtonStylesMap, semanticTypeTextStylesMap };
32
+ export { semanticTypeButtonBorderStylesMap, semanticTypeButtonStylesMap, semanticTypeChipsStylesMap, semanticTypeTextStylesMap };
@@ -1 +1 @@
1
- {"version":3,"file":"WLink.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Link/WLink.vue"],"names":[],"mappings":"AAqDA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAEjD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAI5C,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAChD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AA0BD,iBAAS,cAAc;;yBAwEO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eA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C,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import { defineComponent, openBlock, createBlock, resolveDynamicComponent, unref
2
2
  import { RouterLink } from 'vue-router';
3
3
  import IconLink from '../../assets/icons/sax/IconLink.svg.js';
4
4
  import { SemanticType } from '../../utils/SemanticType.js';
5
- import { semanticTypeTextStylesMap, semanticTypeButtonStylesMap } from '../Button/models/semanticTypeStylesMap.js';
5
+ import { semanticTypeTextStylesMap, semanticTypeChipsStylesMap } from '../Button/models/semanticTypeStylesMap.js';
6
6
 
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "WLink",
@@ -25,10 +25,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  }), {
26
26
  default: withCtx(() => [
27
27
  createVNode(unref(IconLink), {
28
- class: normalizeClass(["inline -mt-1 rounded-lg p-[1px]", {
29
- "square-5 mr-1": !_ctx.small,
30
- "square-3 mr-0.5": _ctx.small,
31
- [unref(semanticTypeButtonStylesMap)[_ctx.semanticType]]: true
28
+ class: normalizeClass(["inline rounded-lg p-px", {
29
+ "square-5 mr-1 -mt-1": !_ctx.small,
30
+ "square-3.5 mr-0.5 -mt-0.5": _ctx.small,
31
+ [unref(semanticTypeChipsStylesMap)[_ctx.semanticType]]: true
32
32
  }])
33
33
  }, null, 8, ["class"]),
34
34
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AAoTA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;yBAYpF,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,eACtF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mB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ponent, ref, computed, toRef, openBlock, createBlock, unref, withCtx, renderSlot, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, normalizeClass, createCommentVNode, createVNode, normalizeStyle, isRef } from 'vue';
1
+ import { defineComponent, ref, computed, toRef, openBlock, createBlock, unref, withCtx, renderSlot, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, normalizeClass, createCommentVNode, createVNode, isRef, normalizeStyle } from 'vue';
2
2
  import _sfc_main$1 from '../InfiniteList/WInfiniteList.vue.js';
3
3
  import { getIsMobile } from '../../utils/mobile.js';
4
4
  import { useSelected, getPosition } from '../../utils/useSelected.js';
@@ -45,7 +45,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  const fieldsVisible = computed(() => filterFields(props.fields, (field) => field.visibleGetter?.(props.queryParams) ?? true));
46
46
  const { fieldConfigMap, hasSaved, reset } = useFieldConfigMap(toRef(props, "configKey"), fieldsVisible, toRef(props, "defaultConfigMap"));
47
47
  const fieldsFiltered = computed(() => {
48
- if (isMobile) return fieldsVisible.value;
49
48
  return filterFields(fieldsVisible.value, (field) => fieldConfigMap.value[field.label]?.visible).sort((a, b) => fieldConfigMap.value[getFirstFieldLabel(a)].order - fieldConfigMap.value[getFirstFieldLabel(b)].order);
50
49
  });
51
50
  const allowSelect = computed(() => props.bulk !== void 0);
@@ -90,6 +89,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
89
  }
91
90
  return props.queryParams;
92
91
  };
92
+ const getFieldStyles = (label) => {
93
+ if (isMobile || !fieldConfigMap.value[label]?.width) return void 0;
94
+ const value = fieldConfigMap.value[label].width + "px";
95
+ return {
96
+ minWidth: value,
97
+ maxWidth: value
98
+ };
99
+ };
93
100
  return (_ctx, _cache) => {
94
101
  return openBlock(), createBlock(_sfc_main$1, {
95
102
  "use-query-fn": _ctx.useQueryFn,
@@ -169,12 +176,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
169
176
  ordering: ordering.value,
170
177
  disabled: !field.field,
171
178
  "allow-resize": field.allowResize,
172
- style: normalizeStyle({
173
- minWidth: !unref(isMobile) && unref(fieldConfigMap)[field.label]?.width ? unref(fieldConfigMap)[field.label].width + "px" : void 0
174
- }),
179
+ "item-class": field.cssClassHeader,
180
+ "width-style": getFieldStyles(field.label),
175
181
  "onUpdate:width": ($event) => unref(fieldConfigMap)[field.label].width = $event,
176
182
  "onSave:width": _cache[3] || (_cache[3] = ($event) => fieldConfigMap.value = unref(fieldConfigMap))
177
- }, null, 8, ["title", "field", "class", "ordering", "disabled", "allow-resize", "style", "onUpdate:width"])
183
+ }, null, 8, ["title", "field", "class", "ordering", "disabled", "allow-resize", "item-class", "width-style", "onUpdate:width"])
178
184
  ]),
179
185
  _: 1
180
186
  }, 8, ["fields"])
@@ -221,9 +227,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
221
227
  "items-center": !_ctx.alignTop,
222
228
  "items-start": _ctx.alignTop
223
229
  }),
224
- style: normalizeStyle({
225
- minWidth: !unref(isMobile) && unref(fieldConfigMap)[defaultScope.field.label]?.width ? unref(fieldConfigMap)[defaultScope.field.label].width + "px" : void 0
226
- }),
230
+ style: normalizeStyle(getFieldStyles(defaultScope.field.label)),
227
231
  "onUpdate:item": setter,
228
232
  "onDelete:item": ($event) => {
229
233
  setter();
@@ -142,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
142
142
  }, [
143
143
  !_ctx.hideMore ? (openBlock(), createBlock(_sfc_main$2, {
144
144
  key: 0,
145
- class: normalizeClass(["sm-not:absolute sm-not:right-0 sm-not:bottom-0 flex px-4 sm:h-full", {
145
+ class: normalizeClass(["sm-not:absolute sm-not:right-0 flex px-4 h-14 sm:h-full", {
146
146
  "sm-not:top-5": !_ctx.moreBottom,
147
147
  "sm-not:top-10": _ctx.moreBottom,
148
148
  "items-start pt-3": _ctx.alignTop,
@@ -1 +1 @@
1
- {"version":3,"file":"WListHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeader.vue"],"names":[],"mappings":"AAwFA,iBAAS,cAAc;;yBAwIM,GAAG;0BACF,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBAtLL,OAAO;eACV,OAAO;eACP,OAAO;YACV,MAAM;gBACF,OAAO,GAAG,IAAI;iBACb,MAAM;;;;kBALL,OAAO;eACV,OAAO;eACP,OAAO;YACV,MAAM;gBACF,OAAO,GAAG,IAAI;iBACb,MAAM;;;kFA0LnB,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":"WListHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeader.vue"],"names":[],"mappings":"AAwFA,iBAAS,cAAc;;yBAsIM,GAAG;0BACF,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBApLL,OAAO;eACV,OAAO;eACP,OAAO;YACV,MAAM;gBACF,OAAO,GAAG,IAAI;iBACb,MAAM;;;;kBALL,OAAO;eACV,OAAO;eACP,OAAO;YACV,MAAM;gBACF,OAAO,GAAG,IAAI;iBACb,MAAM;;;kFAwLnB,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,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, createBlock, createCommentVNode, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../Checkbox/WCheckbox.vue.js';
3
3
 
4
- const _hoisted_1 = { class: "flex text-description font-semibold h-12" };
4
+ const _hoisted_1 = { class: "flex h-12" };
5
5
  const _hoisted_2 = { class: "sticky z-[1] left-inner bg-default dark:bg-default-dark" };
6
6
  const _hoisted_3 = { class: "bg-primary-light dark:bg-primary-darkest border-y border-solid border-gray-300 dark:border-gray-700 flex flex-1" };
7
7
  const _hoisted_4 = { class: "sticky z-[1] right-inner bg-default dark:bg-default-dark" };
@@ -1,3 +1,4 @@
1
+ import { StyleValue } from 'vue';
1
2
  import { OrderItem } from '../../utils/order';
2
3
  declare const _default: <Field>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -8,6 +9,8 @@ declare const _default: <Field>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
8
9
  ordering: OrderItem<Field>[];
9
10
  disabled?: boolean;
10
11
  allowResize?: boolean;
12
+ itemClass?: string;
13
+ widthStyle: StyleValue | undefined;
11
14
  }> & import('vue').PublicProps;
12
15
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
13
16
  attrs: any;
@@ -1 +1 @@
1
- {"version":3,"file":"WListHeaderItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WListHeaderItem.vue"],"names":[],"mappings":"AAgHA,OAAO,EAAwB,KAAK,SAAS,EAAC,MAAM,eAAe,CAAA;yBAIlD,KAAK,eACR,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,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AAC,KAAK,CAAC,EAAE;mBACjB,OAAO;sBACJ,OAAO;oBACT,MAAM;oBACN,UAAU,GAAG,SAAS;KAgNmD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBA9BiB,GAAG;;cA/K3B,cAAc,SAAS,MAAM,KAAG,IAAI;;;;YAkNE,OAAO,CAAC,OAAO,WAAW,CAAC;;AApOvE,wBAoO4E;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, computed, openBlock, createBlock, resolveDynamicComponent, withCtx, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, Transition, createElementBlock, createVNode, unref, createCommentVNode } from 'vue';
1
+ import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, Transition, createElementBlock, createVNode, unref, createCommentVNode } from 'vue';
2
2
  import { useRoute, useRouter } from 'vue-router';
3
3
  import IconBack from '../../assets/icons/default/IconBack.svg.js';
4
4
  import { Order, encodeOrdering } from '../../utils/order.js';
@@ -16,7 +16,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  field: {},
17
17
  ordering: {},
18
18
  disabled: { type: Boolean },
19
- allowResize: { type: Boolean }
19
+ allowResize: { type: Boolean },
20
+ itemClass: {},
21
+ widthStyle: { type: [Boolean, null, String, Object, Array] }
20
22
  },
21
23
  emits: ["update:width"],
22
24
  setup(__props) {
@@ -47,22 +49,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
49
  updateQuery(newOrdering);
48
50
  };
49
51
  return (_ctx, _cache) => {
50
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.allowResize ? _sfc_main$1 : "div"), {
52
+ return openBlock(), createBlock(resolveDynamicComponent(_ctx.allowResize ? _sfc_main$1 : "div"), mergeProps(_ctx.allowResize ? { hasStyles: _ctx.widthStyle !== void 0 } : void 0, {
51
53
  class: "select-none text-description pr-6",
54
+ style: _ctx.widthStyle,
52
55
  "onUpdate:width": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:width", $event))
53
- }, {
56
+ }), {
54
57
  default: withCtx(() => [
55
58
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.disabled ? "div" : "button"), {
56
- class: normalizeClass(["h-full w-full flex gap-2 group font-semibold items-center overflow-hidden", {
57
- "cursor-pointer": !_ctx.disabled
59
+ class: normalizeClass(["h-full w-full flex gap-2 group", {
60
+ "cursor-pointer": !_ctx.disabled,
61
+ [_ctx.itemClass ?? ""]: true,
62
+ "font-semibold items-center whitespace-nowrap overflow-hidden": !_ctx.itemClass
58
63
  }]),
59
64
  onClick: setOrdering
60
65
  }, {
61
66
  default: withCtx(() => [
62
67
  createElementVNode("div", {
63
- class: normalizeClass(["whitespace-nowrap", {
68
+ class: normalizeClass({
64
69
  "group-hover:underline": !_ctx.disabled
65
- }])
70
+ })
66
71
  }, [
67
72
  renderSlot(_ctx.$slots, "default", {}, () => [
68
73
  createTextVNode(toDisplayString(_ctx.title), 1)
@@ -93,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
98
  }, 8, ["class"]))
94
99
  ]),
95
100
  _: 3
96
- }, 32);
101
+ }, 16, ["style"]);
97
102
  };
98
103
  }
99
104
  });
@@ -2,7 +2,9 @@ declare const _default: <Field>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
2
2
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
3
3
  readonly "onUpdate:width"?: ((value: number) => any) | undefined;
4
4
  readonly "onSave:width"?: (() => any) | undefined;
5
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:width" | "onSave:width"> & {}> & import('vue').PublicProps;
5
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:width" | "onSave:width"> & {
6
+ hasStyles: boolean;
7
+ }> & import('vue').PublicProps;
6
8
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
7
9
  attrs: any;
8
10
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderItemResizer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderItemResizer.vue"],"names":[],"mappings":"yBAsFiB,KAAK,eACR,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;WA6IxD,mBAAmB,CAAC;;;4JAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBA9BgB,GAAG;;;YA7G1B,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,YAAY,GAAG,IAAI;;;;;YA+ImB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAvJvE,wBAuJ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"HeaderItemResizer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/List/components/HeaderItemResizer.vue"],"names":[],"mappings":"yBA4FiB,KAAK,eACR,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;WAqJxD,mBAAmB,CAAC;;;;mBA9IjB,OAAO;KA8ImE,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBA9BgB,GAAG;;;YA7G1B,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,YAAY,GAAG,IAAI;;;;;YA+ImB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA/JvE,wBA+J4E;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, useTemplateRef, onMounted, onBeforeUnmount, openBlock, createElementBlock, renderSlot, createElementVNode, withModifiers, createVNode, unref } from 'vue';
1
+ import { defineComponent, useTemplateRef, watch, onBeforeUnmount, openBlock, createElementBlock, renderSlot, createElementVNode, withModifiers, createVNode, unref } from 'vue';
2
2
  import IconDrag from '../../../assets/icons/sax/IconDrag.svg.js';
3
3
  import DOMListenerContainer from '../../../utils/DOMListenerContainer.js';
4
4
 
@@ -6,10 +6,16 @@ const _hoisted_1 = {
6
6
  ref: "element",
7
7
  class: "relative"
8
8
  };
9
+ const MIN_WIDTH = 64;
10
+ const MAX_WIDTH = 2e3;
9
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
12
  __name: "HeaderItemResizer",
13
+ props: {
14
+ hasStyles: { type: Boolean }
15
+ },
11
16
  emits: ["update:width", "save:width"],
12
17
  setup(__props, { emit: __emit }) {
18
+ const props = __props;
13
19
  const emit = __emit;
14
20
  const listenerContainer = new DOMListenerContainer();
15
21
  const elementRef = useTemplateRef("element");
@@ -24,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
30
  endDrag();
25
31
  return;
26
32
  }
27
- emit("update:width", widthSaved + event.clientX - started);
33
+ emit("update:width", Math.min(Math.max(widthSaved + event.clientX - started, MIN_WIDTH), MAX_WIDTH));
28
34
  });
29
35
  listenerContainer.addEventListener(document, "mouseup", (event) => {
30
36
  event.stopPropagation();
@@ -38,12 +44,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
44
  widthSaved = null;
39
45
  emit("save:width");
40
46
  };
41
- onMounted(() => {
42
- setTimeout(() => {
47
+ watch(() => props.hasStyles, (value) => {
48
+ if (!value) setTimeout(() => {
43
49
  if (!elementRef.value) return;
44
50
  emit("update:width", elementRef.value.offsetWidth);
45
- }, 1e3);
46
- });
51
+ }, 0);
52
+ }, { immediate: true });
47
53
  onBeforeUnmount(() => {
48
54
  listenerContainer.destroy();
49
55
  });
@@ -53,7 +59,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
59
  createElementVNode("button", {
54
60
  class: "absolute top-0 right-1 h-full w-6 flex items-center opacity-50 hover:opacity-100 cursor-col-resize",
55
61
  onMousedown: withModifiers(startDrag, ["stop", "prevent"]),
56
- onMouseup: withModifiers(endDrag, ["stop", "prevent"]),
57
62
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
58
63
  }, ["stop", "prevent"]))
59
64
  }, [
@@ -23,6 +23,7 @@ export type ListField<Data, QueryParams = unknown> = {
23
23
  title: string | ((params: QueryParams) => string);
24
24
  label: string;
25
25
  cssClass?: string;
26
+ cssClassHeader?: string;
26
27
  field?: Extract<keyof Data, string> | ((params: QueryParams) => Extract<keyof Data, string>);
27
28
  visibleGetter?: (params: QueryParams) => boolean;
28
29
  allowResize?: 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,KA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,CAAA;AAEF,MAAM,MAAM,aAAa,CAAC,WAAW,IAAI,SAAS,CAAC;IACjD,iBAAiB,EAAE,MAAM,WAAW,CAAA;IACpC,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC,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"}
@@ -19,7 +19,7 @@ const makeQueryPaginated = (key, getter, setter, pageLength = PAGE_LENGTH) => {
19
19
  return new Promise((resolve, reject) => {
20
20
  const currentList = getter(unref(queryParams));
21
21
  const current = Math.max(unref(queryParams).page ?? 1, 1);
22
- const pages_count = Math.floor(currentList.length / pageLength) + 1;
22
+ const pages_count = Math.max(Math.ceil(currentList.length / pageLength), 1);
23
23
  if (current > pages_count) reject(new ApiError({ status: 404 }));
24
24
  else resolve({
25
25
  count: currentList.length,
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.30",
7
+ "version": "0.8.32",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",