@winchsa/ui 0.1.44 → 0.1.46

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.
@@ -5,13 +5,13 @@ type __VLS_ModelProps = {
5
5
  'editModal'?: boolean;
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare var __VLS_19: {}, __VLS_34: {}, __VLS_42: {};
8
+ declare var __VLS_19: {}, __VLS_35: {}, __VLS_43: {};
9
9
  type __VLS_Slots = {} & {
10
10
  title?: (props: typeof __VLS_19) => any;
11
11
  } & {
12
- default?: (props: typeof __VLS_34) => any;
12
+ default?: (props: typeof __VLS_35) => any;
13
13
  } & {
14
- actions?: (props: typeof __VLS_42) => any;
14
+ actions?: (props: typeof __VLS_43) => any;
15
15
  };
16
16
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  "update:editModal": (value: boolean | undefined) => any;
@@ -1,7 +1,6 @@
1
1
  <script setup>
2
2
  import { VCardTitle, VDialog, VCardActions, VCardText } from "vuetify/components";
3
3
  import AppCard from "./cards/AppCard.vue";
4
- import IconBtn from "./IconBtn.vue";
5
4
  defineProps({
6
5
  isAppRtl: { type: Boolean, required: true }
7
6
  });
@@ -5,13 +5,13 @@ type __VLS_ModelProps = {
5
5
  'editModal'?: boolean;
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare var __VLS_19: {}, __VLS_34: {}, __VLS_42: {};
8
+ declare var __VLS_19: {}, __VLS_35: {}, __VLS_43: {};
9
9
  type __VLS_Slots = {} & {
10
10
  title?: (props: typeof __VLS_19) => any;
11
11
  } & {
12
- default?: (props: typeof __VLS_34) => any;
12
+ default?: (props: typeof __VLS_35) => any;
13
13
  } & {
14
- actions?: (props: typeof __VLS_42) => any;
14
+ actions?: (props: typeof __VLS_43) => any;
15
15
  };
16
16
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  "update:editModal": (value: boolean | undefined) => any;
@@ -5,6 +5,7 @@ type __VLS_Props = {
5
5
  to?: string;
6
6
  disabled?: boolean;
7
7
  info?: string;
8
+ empty?: boolean;
8
9
  };
9
10
  declare var __VLS_1: {}, __VLS_14: {};
10
11
  type __VLS_Slots = {} & {
@@ -9,7 +9,8 @@ const props = defineProps({
9
9
  color: { type: String, required: false, default: "" },
10
10
  to: { type: String, required: false },
11
11
  disabled: { type: Boolean, required: false, default: false },
12
- info: { type: String, required: false }
12
+ info: { type: String, required: false },
13
+ empty: { type: Boolean, required: false, default: false }
13
14
  });
14
15
  const colorStyle = computed(() => props.color ? `text-${props.color}` : "");
15
16
  </script>
@@ -26,15 +27,16 @@ const colorStyle = computed(() => props.color ? `text-${props.color}` : "");
26
27
  class="border px-4 py-0 mt-2 text-subtitle-2 d-flex align-center app-input-card"
27
28
  style="cursor: text;"
28
29
  :class="{
29
- 'bg-disable': disabled
30
+ 'bg-disable': disabled,
31
+ 'is-empty': empty
30
32
  }"
31
33
  elevation="0"
32
34
  min-height="41px"
33
35
  >
34
- <div class="d-flex flex-column">
36
+ <div class="d-flex flex-column app-font-size-13">
35
37
  <slot>
36
38
  <AppLink
37
- class="pb-0"
39
+ class="pb-0 app-font-size-13"
38
40
  :class="`${colorStyle}`"
39
41
  :to="to"
40
42
  >
@@ -55,8 +57,11 @@ const colorStyle = computed(() => props.color ? `text-${props.color}` : "");
55
57
  background: rgb(var(--v-disabled-background)) !important;
56
58
  }
57
59
 
58
- .app-input-card span {
59
- font-size: 14px;
60
+ .app-input-card span, .app-input-card p {
61
+ font-size: 13px;
60
62
  color: rgba(var(--v-theme-on-background), var(--v-high-emphasis-opacity));
61
63
  }
64
+ .app-input-card.is-empty span, .app-input-card.is-empty p {
65
+ color: rgba(var(--v-theme-on-surface), var(--v-disabled-opacity));
66
+ }
62
67
  </style>
@@ -5,6 +5,7 @@ type __VLS_Props = {
5
5
  to?: string;
6
6
  disabled?: boolean;
7
7
  info?: string;
8
+ empty?: boolean;
8
9
  };
9
10
  declare var __VLS_1: {}, __VLS_14: {};
10
11
  type __VLS_Slots = {} & {
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  modelValue?: string | null | number;
3
+ title?: string;
3
4
  };
4
5
  declare var __VLS_17: string | number, __VLS_18: any;
5
6
  type __VLS_Slots = {} & {
@@ -5,11 +5,12 @@ import { useI18n } from "vue-i18n";
5
5
  const { t } = useI18n();
6
6
  const attrs = useAttrs();
7
7
  defineOptions({
8
- name: "AppTextField",
8
+ name: "AppNumberField",
9
9
  inheritAttrs: false
10
10
  });
11
11
  const props = defineProps({
12
- modelValue: { type: [String, null, Number], required: false, default: null }
12
+ modelValue: { type: [String, null, Number], required: false, default: null },
13
+ title: { type: String, required: false }
13
14
  });
14
15
  const emit = defineEmits(["update:modelValue"]);
15
16
  const numberValue = ref(null);
@@ -44,10 +45,10 @@ const validateInput = (event) => {
44
45
  :class="$attrs.class"
45
46
  >
46
47
  <VLabel
47
- v-if="label"
48
+ v-if="title ?? label"
48
49
  :for="elementId"
49
50
  class="mb-2 text-body-2 text-high-emphasis app-font-size-13"
50
- :text="langLabel"
51
+ :text="title ?? langLabel"
51
52
  />
52
53
  <VTextField
53
54
  v-bind="{
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  modelValue?: string | null | number;
3
+ title?: string;
3
4
  };
4
5
  declare var __VLS_17: string | number, __VLS_18: any;
5
6
  type __VLS_Slots = {} & {
@@ -70,7 +70,8 @@ const queryParamsString = computed(() => buildQueryString({
70
70
  page: currentPage.value,
71
71
  pages_count: itemsPerPage.value
72
72
  }));
73
- const queryKey = computed(() => ["table-data", props.url, queryParamsString.value]);
73
+ const prefix = import.meta.env.VITE_APP_TYPE;
74
+ const queryKey = computed(() => ["table-data", prefix, props.url, queryParamsString.value]);
74
75
  const { data, error: tableError, isLoading, refetch: refresh } = useQuery({
75
76
  queryKey,
76
77
  queryFn: async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winchsa/ui",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "publishConfig": {