eco-vue-js 0.8.30 → 0.8.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts +1 -0
- package/dist/components/Button/models/semanticTypeStylesMap.d.ts.map +1 -1
- package/dist/components/Button/models/semanticTypeStylesMap.js +5 -1
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +5 -5
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +0 -1
- package/dist/components/List/WListCard.vue.js +1 -1
- package/dist/utils/useDefaultQuery.js +1 -1
- package/package.json +1 -1
@@ -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,SAA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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,
|
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
|
29
|
-
"square-5 mr-1": !_ctx.small,
|
30
|
-
"square-3 mr-0.5": _ctx.small,
|
31
|
-
[unref(
|
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":"
|
1
|
+
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AAkTA,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,E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) => 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);
|
@@ -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
|
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,
|
@@ -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.
|
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,
|