@vc-shell/framework 1.0.133 → 1.0.135

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.
Files changed (141) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/core/interceptors/index.ts +13 -9
  3. package/dist/core/interceptors/index.d.ts.map +1 -1
  4. package/dist/framework.js +8244 -8422
  5. package/dist/index.css +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +1 -1
  8. package/dist/shared/components/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +1 -1
  9. package/dist/shared/components/blade-navigation/components/vc-blade-view/vc-blade-view.d.ts +1 -1
  10. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  11. package/dist/shared/components/change-password/change-password.vue.d.ts +1 -1
  12. package/dist/shared/components/change-password/index.d.ts +1 -1
  13. package/dist/shared/components/error-interceptor/interceptor.d.ts +1 -1
  14. package/dist/shared/components/language-selector/index.d.ts +1 -1
  15. package/dist/shared/components/language-selector/index.d.ts.map +1 -1
  16. package/dist/shared/components/language-selector/language-selector.vue.d.ts +1 -1
  17. package/dist/shared/components/notification-dropdown/_internal/notification/notification.vue.d.ts +1 -1
  18. package/dist/shared/components/notification-dropdown/index.d.ts +1 -1
  19. package/dist/shared/components/notification-dropdown/index.d.ts.map +1 -1
  20. package/dist/shared/components/notification-dropdown/notification-dropdown.vue.d.ts +1 -1
  21. package/dist/shared/components/notification-template/notification-template.vue.d.ts +1 -1
  22. package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
  23. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts +1 -1
  24. package/dist/shared/components/popup-handler/components/vc-popup-container/index.d.ts.map +1 -1
  25. package/dist/shared/components/popup-handler/components/vc-popup-container/vc-popup-container.vue.d.ts +1 -1
  26. package/dist/shared/components/user-dropdown-button/index.d.ts +1 -1
  27. package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts +1 -1
  28. package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts +1 -1
  29. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +1 -1
  30. package/dist/shared/modules/assets-manager/components/assets-manager/index.d.ts +1 -1
  31. package/dist/shared/modules/dynamic/components/SchemaRender.d.ts +1 -1
  32. package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts.map +1 -1
  33. package/dist/shared/modules/dynamic/components/fields/ValidationField.d.ts +1 -1
  34. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +1 -1
  35. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +1 -1
  36. package/dist/shared/modules/dynamic/types/index.d.ts +0 -10
  37. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  38. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  39. package/dist/shared/pages/InvitePage/components/invite/index.d.ts +1 -1
  40. package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts +1 -1
  41. package/dist/shared/pages/LoginPage/components/login/index.d.ts +1 -1
  42. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  43. package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +1 -1
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  46. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts +1 -1
  47. package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts +1 -1
  48. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -1
  49. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +1 -1
  50. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  51. package/dist/ui/components/atoms/vc-col/vc-col.vue.d.ts +1 -1
  52. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +1 -1
  53. package/dist/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +1 -1
  54. package/dist/ui/components/atoms/vc-icon/index.d.ts +1 -1
  55. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  56. package/dist/ui/components/atoms/vc-image/index.d.ts +1 -1
  57. package/dist/ui/components/atoms/vc-image/vc-image.vue.d.ts +1 -1
  58. package/dist/ui/components/atoms/vc-info-row/index.d.ts +1 -1
  59. package/dist/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +1 -1
  60. package/dist/ui/components/atoms/vc-label/index.d.ts +1 -83
  61. package/dist/ui/components/atoms/vc-label/index.d.ts.map +1 -1
  62. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +1 -1
  63. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  64. package/dist/ui/components/atoms/vc-link/vc-link.vue.d.ts +1 -1
  65. package/dist/ui/components/atoms/vc-loading/index.d.ts +1 -1
  66. package/dist/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +1 -1
  67. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  68. package/dist/ui/components/atoms/vc-row/vc-row.vue.d.ts +1 -1
  69. package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +1 -1
  70. package/dist/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +1 -1
  71. package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -1
  72. package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +1 -1
  73. package/dist/ui/components/atoms/vc-video/index.d.ts +1 -1
  74. package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +1 -1
  75. package/dist/ui/components/atoms/vc-widget/index.d.ts +1 -1
  76. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +1 -1
  77. package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +1 -1
  78. package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +1 -1
  79. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +1 -1
  80. package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +1 -1
  81. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +1 -3
  82. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  83. package/dist/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue.d.ts +1 -1
  84. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts +2 -2
  85. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +1 -1
  86. package/dist/ui/components/molecules/vc-form/vc-form.vue.d.ts +1 -1
  87. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
  88. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +1 -330
  89. package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -1
  90. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +20 -4
  91. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  92. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +3 -14
  93. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  94. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +1 -1
  95. package/dist/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -1
  96. package/dist/ui/components/molecules/vc-pagination/index.d.ts +1 -1
  97. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
  98. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  99. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
  100. package/dist/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +1 -1
  101. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
  102. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +1 -1
  103. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +1 -1
  104. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
  105. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +1 -1
  106. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +3 -3
  107. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +1 -1
  108. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
  109. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +1 -1
  110. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  111. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
  112. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  113. package/dist/ui/components/organisms/vc-gallery/index.d.ts +1 -136
  114. package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +1 -1
  115. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +1 -1
  116. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +1 -1
  117. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts +1 -1
  118. package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts +1 -1
  119. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  120. package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -1
  121. package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +1 -1
  122. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  123. package/dist/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +1 -1
  124. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +3 -3
  125. package/package.json +19 -20
  126. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +1 -0
  127. package/shared/modules/dynamic/components/fields/MultivalueField.ts +0 -2
  128. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +1 -1
  129. package/shared/modules/dynamic/types/index.ts +0 -10
  130. package/ui/components/atoms/vc-checkbox/vc-checkbox.stories.ts +4 -2
  131. package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +1 -0
  132. package/ui/components/atoms/vc-label/index.ts +1 -3
  133. package/ui/components/atoms/vc-label/vc-label.vue +33 -28
  134. package/ui/components/molecules/vc-editor/vc-editor.vue +0 -3
  135. package/ui/components/molecules/vc-field/vc-field.vue +0 -2
  136. package/ui/components/molecules/vc-input-currency/index.ts +1 -18
  137. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +13 -0
  138. package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +10 -17
  139. package/ui/components/molecules/vc-notification/vc-notification.vue +34 -8
  140. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +0 -1
  141. package/ui/components/organisms/vc-gallery/index.ts +1 -3
@@ -1,18 +1 @@
1
- import { VNode } from "vue";
2
- import _InputCurrency from "./vc-input-currency.vue";
3
-
4
- export const VcInputCurrency = _InputCurrency as typeof _InputCurrency & {
5
- new (): {
6
- $slots: {
7
- /**
8
- * Slot for custom dropdown open handler
9
- */
10
- button?: (scope: {
11
- /**
12
- * Dropdown open/close handler
13
- */
14
- toggleHandler: () => void;
15
- }) => VNode[];
16
- };
17
- };
18
- };
1
+ export { default as VcInputCurrency } from "./vc-input-currency.vue";
@@ -166,6 +166,19 @@ const props = withDefaults(defineProps<Props>(), {
166
166
  debounce: 0,
167
167
  });
168
168
 
169
+ defineSlots<{
170
+ /**
171
+ * Slot for custom dropdown open handler
172
+ */
173
+ button: (scope: {
174
+ /**
175
+ * Dropdown open/close handler
176
+ */
177
+ toggleHandler: () => void;
178
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
179
+ }) => any;
180
+ }>();
181
+
169
182
  const emit = defineEmits<Emits>();
170
183
 
171
184
  const { inputRef, setOptions, numberValue } = useCurrencyInput(
@@ -41,7 +41,9 @@
41
41
  class="vc-multivalue__field-value"
42
42
  >
43
43
  <span class="tw-truncate">{{
44
- type === "number" ? Number(item[props.emitLabel as keyof T]).toFixed(3) : item[props.emitLabel as keyof T]
44
+ type === "number"
45
+ ? Number(item[props.optionLabel as keyof T]).toFixed(3)
46
+ : item[props.optionLabel as keyof T]
45
47
  }}</span>
46
48
  <VcIcon
47
49
  v-if="!disabled"
@@ -118,11 +120,12 @@
118
120
  </div>
119
121
  </template>
120
122
  <!-- eslint-disable @typescript-eslint/no-explicit-any -->
121
- <script lang="ts" setup generic="T extends { id?: string; alias?: string; languageCode?: string; value?: string }">
123
+ <script lang="ts" setup generic="T extends { id?: string }">
122
124
  import { unref, nextTick, ref, computed } from "vue";
123
125
  import { vOnClickOutside } from "@vueuse/components";
124
126
  import { useFloating, UseFloatingReturn, offset, flip, shift, autoUpdate, MiddlewareState } from "@floating-ui/vue";
125
127
  import { generateId } from "../../../../core/utilities";
128
+ import * as _ from "lodash-es";
126
129
 
127
130
  export interface Props<T> {
128
131
  placeholder?: string;
@@ -136,8 +139,6 @@ export interface Props<T> {
136
139
  options?: T[];
137
140
  optionValue?: string;
138
141
  optionLabel?: string;
139
- emitValue?: string;
140
- emitLabel?: string;
141
142
  multivalue?: boolean;
142
143
  error?: boolean;
143
144
  errorMessage?: string;
@@ -169,8 +170,6 @@ const props = withDefaults(defineProps<Props<T>>(), {
169
170
  options: () => [],
170
171
  optionValue: "id",
171
172
  optionLabel: "title",
172
- emitValue: "valueId",
173
- emitLabel: "value",
174
173
  });
175
174
 
176
175
  const emit = defineEmits<Emits<T>>();
@@ -207,30 +206,24 @@ const dropdownStyle = computed(() => {
207
206
 
208
207
  const slicedDictionary = computed(() => {
209
208
  return props.options?.filter((x) => {
210
- return !props.modelValue?.find((item) => item[props.emitValue as keyof T] === x[props.optionValue as keyof T]);
209
+ return !props.modelValue?.find((item) => {
210
+ return item[props.optionValue as keyof T] === x[props.optionValue as keyof T];
211
+ });
211
212
  });
212
213
  });
213
214
 
214
- // Handle input event to propertly validate value and emit changes
215
215
  function onInput(e: KeyboardEvent) {
216
216
  const newValue = (e.target as HTMLInputElement).value;
217
- emit("update:model-value", [
218
- ...props.modelValue,
219
- { [props.emitLabel]: newValue, languageCode: props.currentLanguage } as T,
220
- ]);
217
+ emit("update:model-value", [...props.modelValue, { [props.optionLabel]: newValue } as T]);
221
218
  value.value = undefined;
222
219
  }
223
220
 
224
221
  function onItemSelect(item: T) {
225
- emit("update:model-value", [
226
- ...props.modelValue,
227
- { [props.emitValue]: item[props.optionValue as keyof T], [props.emitLabel]: item[props.optionLabel as keyof T] },
228
- ] as T[]);
222
+ emit("update:model-value", [...props.modelValue, item]);
229
223
  emit("close");
230
224
  closeDropdown();
231
225
  }
232
226
 
233
- // Handle event to propertly remove particular value and emit changes
234
227
  function onDelete(i: number) {
235
228
  const result = unref(props.modelValue);
236
229
  result.splice(i, 1);
@@ -6,14 +6,18 @@
6
6
  @mouseenter="onMouseEnter"
7
7
  @mouseleave="onMouseLeave"
8
8
  >
9
- <VcIcon
10
- :icon="types[type ?? 'default']?.icon"
11
- :style="{ color: types[type ?? 'default']?.color }"
12
- size="l"
13
- class="tw-mr-2"
14
- ></VcIcon>
15
- <div class="tw-text-[color:var(--notification-content-color)] tw-whitespace-pre-line">
16
- {{ content }}
9
+ <div class="tw-flex tw-flex-row tw-items-center">
10
+ <VcIcon
11
+ :icon="types[type ?? 'default']?.icon"
12
+ :style="{ color: types[type ?? 'default']?.color }"
13
+ size="l"
14
+ class="tw-mr-2"
15
+ ></VcIcon>
16
+ <div
17
+ class="vc-notification__content tw-text-[color:var(--notification-content-color)] tw-whitespace-pre-line tw-overflow-auto tw-max-h-[100px]"
18
+ >
19
+ {{ content }}
20
+ </div>
17
21
  </div>
18
22
  <VcIcon
19
23
  icon="fas fa-times"
@@ -125,6 +129,11 @@ function onMouseLeave() {
125
129
  --notification-error: #ef796f;
126
130
  --notification-success: #87b563;
127
131
  --notification-info: #bdd1df;
132
+
133
+ --notification-scroll-color: #e1eff9;
134
+ --notification-scroll-color-hover: #cce4f5;
135
+ --notification-scroll-width: 8px;
136
+ --notification-scroll-shadow: 0 3px 2px rgba(0, 0, 0, 0.1) inset, 0 -3px 2px rgba(0, 0, 0, 0.1) inset;
128
137
  }
129
138
 
130
139
  .vc-notification {
@@ -133,5 +142,22 @@ function onMouseLeave() {
133
142
  .vc-app_mobile {
134
143
  @apply tw-max-w-[80%];
135
144
  }
145
+
146
+ &__content {
147
+ &::-webkit-scrollbar {
148
+ @apply tw-w-[var(--notification-scroll-width)] tw-bg-transparent;
149
+ }
150
+
151
+ &::-webkit-scrollbar-track {
152
+ @apply tw-bg-transparent;
153
+ }
154
+
155
+ &::-webkit-scrollbar-thumb {
156
+ @apply tw-bg-[color:var(--notification-scroll-color)]
157
+ tw-rounded-[calc(var(--notification-scroll-width)/2)]
158
+ tw-overflow-x-hidden
159
+ hover:tw-bg-[color:var(--notification-scroll-color-hover)];
160
+ }
161
+ }
136
162
  }
137
163
  </style>
@@ -67,7 +67,6 @@
67
67
  :option-label="multilanguage ? 'value' : 'alias'"
68
68
  option-value="id"
69
69
  :multivalue="computedProperty.multivalue"
70
- :emit-label="multilanguage ? 'value' : 'alias'"
71
70
  @search="onSearch"
72
71
  @close="onClose"
73
72
  ></VcMultivalue>
@@ -1,3 +1 @@
1
- import _Gallery from "./vc-gallery.vue";
2
-
3
- export const VcGallery = _Gallery as typeof _Gallery;
1
+ export { default as VcGallery } from "./vc-gallery.vue";