@vc-shell/framework 1.0.39 → 1.0.40

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 (212) hide show
  1. package/core/composables/usePermissions/index.ts +1 -1
  2. package/core/composables/useSettings/index.ts +31 -5
  3. package/core/types/index.ts +12 -12
  4. package/dist/core/composables/useSettings/index.d.ts +10 -1
  5. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  6. package/dist/core/types/index.d.ts.map +1 -1
  7. package/dist/framework.js +69 -69
  8. package/dist/framework.js.map +1 -1
  9. package/dist/index.d.ts +3 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/shared/blade-navigation/types/index.d.ts.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/tsconfig.tsbuildinfo +1 -1
  14. package/dist/ui/components/atoms/vc-badge/index.d.ts +5 -0
  15. package/dist/ui/components/atoms/vc-badge/index.d.ts.map +1 -0
  16. package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +28 -0
  17. package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +1 -0
  18. package/dist/{components → ui/components}/atoms/vc-badge/vc-badge.stories.d.ts +0 -0
  19. package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts.map +1 -0
  20. package/dist/ui/components/atoms/vc-button/index.d.ts +5 -0
  21. package/dist/ui/components/atoms/vc-button/index.d.ts.map +1 -0
  22. package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +28 -0
  23. package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +1 -0
  24. package/dist/{components → ui/components}/atoms/vc-button/vc-button.stories.d.ts +0 -0
  25. package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts.map +1 -0
  26. package/dist/{components → ui/components}/atoms/vc-checkbox/vc-checkbox.stories.d.ts +0 -0
  27. package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -0
  28. package/dist/{components → ui/components}/atoms/vc-container/vc-container.stories.d.ts +0 -0
  29. package/dist/ui/components/atoms/vc-container/vc-container.stories.d.ts.map +1 -0
  30. package/dist/{components → ui/components}/atoms/vc-hint/vc-hint.stories.d.ts +0 -0
  31. package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts.map +1 -0
  32. package/dist/{components → ui/components}/atoms/vc-icon/vc-icon.stories.d.ts +0 -0
  33. package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts.map +1 -0
  34. package/dist/{components → ui/components}/atoms/vc-image/vc-image.stories.d.ts +0 -0
  35. package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +1 -0
  36. package/dist/{components → ui/components}/atoms/vc-label/vc-label.stories.d.ts +0 -0
  37. package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts.map +1 -0
  38. package/dist/{components → ui/components}/atoms/vc-link/vc-link.stories.d.ts +0 -0
  39. package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts.map +1 -0
  40. package/dist/{components → ui/components}/atoms/vc-progress/vc-progress.stories.d.ts +0 -0
  41. package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts.map +1 -0
  42. package/dist/{components → ui/components}/atoms/vc-status/vc-status.stories.d.ts +0 -0
  43. package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts.map +1 -0
  44. package/dist/{components → ui/components}/atoms/vc-switch/vc-switch.stories.d.ts +0 -0
  45. package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts.map +1 -0
  46. package/dist/{components → ui/components}/index.d.ts +4 -3
  47. package/dist/ui/components/index.d.ts.map +1 -0
  48. package/dist/{components → ui/components}/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +0 -0
  49. package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +1 -0
  50. package/dist/{components → ui/components}/molecules/vc-form/vc-form.stories.d.ts +0 -0
  51. package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts.map +1 -0
  52. package/dist/ui/components/molecules/vc-input/index.d.ts +5 -0
  53. package/dist/ui/components/molecules/vc-input/index.d.ts.map +1 -0
  54. package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts +140 -0
  55. package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts.map +1 -0
  56. package/dist/ui/components/molecules/vc-input-currency/index.d.ts +5 -0
  57. package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -0
  58. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts +124 -0
  59. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts.map +1 -0
  60. package/dist/{components → ui/components}/molecules/vc-pagination/vc-pagination.stories.d.ts +0 -0
  61. package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +1 -0
  62. package/dist/{components → ui/components}/molecules/vc-rating/vc-rating.stories.d.ts +0 -0
  63. package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts.map +1 -0
  64. package/dist/ui/components/molecules/vc-select/index.d.ts +5 -0
  65. package/dist/ui/components/molecules/vc-select/index.d.ts.map +1 -0
  66. package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts +207 -0
  67. package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts.map +1 -0
  68. package/dist/{components → ui/components}/molecules/vc-textarea/vc-textarea.stories.d.ts +0 -0
  69. package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +1 -0
  70. package/dist/{components → ui/components}/organisms/vc-app/vc-app.stories.d.ts +0 -0
  71. package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -0
  72. package/dist/{components → ui/components}/organisms/vc-blade/vc-blade.stories.d.ts +0 -0
  73. package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -0
  74. package/dist/{components → ui/components}/organisms/vc-login-form/vc-login-form.stories.d.ts +0 -0
  75. package/dist/ui/components/organisms/vc-login-form/vc-login-form.stories.d.ts.map +1 -0
  76. package/dist/{components → ui/components}/organisms/vc-popup/vc-popup.stories.d.ts +0 -0
  77. package/dist/ui/components/organisms/vc-popup/vc-popup.stories.d.ts.map +1 -0
  78. package/dist/{components → ui/components}/organisms/vc-table/vc-table.stories.d.ts +0 -0
  79. package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -0
  80. package/dist/ui/types/index.d.ts +13 -0
  81. package/dist/ui/types/index.d.ts.map +1 -0
  82. package/dist/ui/types/ts-helpers.d.ts +13 -0
  83. package/dist/ui/types/ts-helpers.d.ts.map +1 -0
  84. package/dist/vite.config.d.ts.map +1 -1
  85. package/package.json +27 -10
  86. package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +9 -9
  87. package/shared/assets/components/assets-details/assets-details.vue +12 -12
  88. package/shared/blade-navigation/composables/useBladeNavigation/index.ts +4 -4
  89. package/shared/blade-navigation/types/index.ts +25 -25
  90. package/tailwind.config.js +4 -3
  91. package/ui/components/atoms/vc-badge/index.ts +7 -0
  92. package/ui/components/atoms/vc-badge/vc-badge-model.ts +30 -0
  93. package/{components → ui/components}/atoms/vc-badge/vc-badge.stories.ts +0 -0
  94. package/ui/components/atoms/vc-badge/vc-badge.vue +57 -0
  95. package/ui/components/atoms/vc-button/index.ts +7 -0
  96. package/ui/components/atoms/vc-button/vc-button-model.ts +30 -0
  97. package/{components → ui/components}/atoms/vc-button/vc-button.stories.ts +0 -0
  98. package/{components → ui/components}/atoms/vc-button/vc-button.vue +54 -54
  99. package/{components → ui/components}/atoms/vc-card/vc-card.vue +15 -15
  100. package/{components → ui/components}/atoms/vc-checkbox/vc-checkbox.stories.ts +0 -0
  101. package/{components → ui/components}/atoms/vc-checkbox/vc-checkbox.vue +21 -21
  102. package/{components → ui/components}/atoms/vc-col/vc-col.vue +2 -2
  103. package/{components → ui/components}/atoms/vc-container/vc-container.stories.ts +0 -0
  104. package/{components → ui/components}/atoms/vc-container/vc-container.vue +21 -19
  105. package/{components → ui/components}/atoms/vc-hint/vc-hint.stories.ts +0 -0
  106. package/{components → ui/components}/atoms/vc-hint/vc-hint.vue +1 -1
  107. package/{components → ui/components}/atoms/vc-icon/vc-icon.stories.ts +0 -0
  108. package/{components → ui/components}/atoms/vc-icon/vc-icon.vue +1 -1
  109. package/{components → ui/components}/atoms/vc-image/vc-image.stories.ts +0 -0
  110. package/{components → ui/components}/atoms/vc-image/vc-image.vue +9 -9
  111. package/{components → ui/components}/atoms/vc-info-row/vc-info-row.vue +3 -3
  112. package/{components → ui/components}/atoms/vc-label/vc-label.stories.ts +0 -0
  113. package/{components → ui/components}/atoms/vc-label/vc-label.vue +6 -6
  114. package/{components → ui/components}/atoms/vc-link/vc-link.stories.ts +0 -0
  115. package/{components → ui/components}/atoms/vc-link/vc-link.vue +3 -3
  116. package/ui/components/atoms/vc-loading/vc-loading.vue +33 -0
  117. package/{components → ui/components}/atoms/vc-progress/vc-progress.stories.ts +0 -0
  118. package/{components → ui/components}/atoms/vc-progress/vc-progress.vue +2 -2
  119. package/{components → ui/components}/atoms/vc-row/vc-row.vue +1 -1
  120. package/{components → ui/components}/atoms/vc-status/vc-status.stories.ts +0 -0
  121. package/{components → ui/components}/atoms/vc-status/vc-status.vue +4 -4
  122. package/{components → ui/components}/atoms/vc-status-icon/vc-status-icon.vue +3 -3
  123. package/{components → ui/components}/atoms/vc-switch/vc-switch.stories.ts +0 -0
  124. package/{components → ui/components}/atoms/vc-switch/vc-switch.vue +10 -10
  125. package/{components → ui/components}/atoms/vc-widget/vc-widget.vue +12 -12
  126. package/{components → ui/components}/index.ts +4 -3
  127. package/{components → ui/components}/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue +17 -17
  128. package/{components → ui/components}/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +0 -0
  129. package/{components → ui/components}/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +1 -1
  130. package/{components/molecules/vc-input → ui/components/molecules/vc-currency-input}/vc-input.vue +30 -37
  131. package/{components → ui/components}/molecules/vc-editor/vc-editor.vue +4 -4
  132. package/{components → ui/components}/molecules/vc-file-upload/vc-file-upload.vue +6 -6
  133. package/{components → ui/components}/molecules/vc-form/vc-form.stories.ts +0 -0
  134. package/{components → ui/components}/molecules/vc-form/vc-form.vue +0 -0
  135. package/ui/components/molecules/vc-input/index.ts +8 -0
  136. package/ui/components/molecules/vc-input/vc-input-model.ts +150 -0
  137. package/ui/components/molecules/vc-input/vc-input.vue +324 -0
  138. package/ui/components/molecules/vc-input-currency/index.ts +8 -0
  139. package/ui/components/molecules/vc-input-currency/vc-input-currency-model.ts +128 -0
  140. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +86 -0
  141. package/{components → ui/components}/molecules/vc-multivalue/vc-multivalue.vue +41 -41
  142. package/{components → ui/components}/molecules/vc-notification/vc-notification.vue +5 -5
  143. package/{components → ui/components}/molecules/vc-pagination/vc-pagination.stories.ts +0 -0
  144. package/{components → ui/components}/molecules/vc-pagination/vc-pagination.vue +24 -24
  145. package/{components → ui/components}/molecules/vc-rating/vc-rating.stories.ts +0 -0
  146. package/{components → ui/components}/molecules/vc-rating/vc-rating.vue +6 -6
  147. package/ui/components/molecules/vc-select/index.ts +7 -0
  148. package/ui/components/molecules/vc-select/vc-select-model.ts +216 -0
  149. package/ui/components/molecules/vc-select/vc-select.vue +727 -0
  150. package/{components → ui/components}/molecules/vc-slider/vc-slider.vue +12 -12
  151. package/{components → ui/components}/molecules/vc-textarea/vc-textarea.stories.ts +0 -0
  152. package/{components → ui/components}/molecules/vc-textarea/vc-textarea.vue +17 -17
  153. package/{components → ui/components}/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +20 -16
  154. package/{components → ui/components}/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +31 -31
  155. package/{components → ui/components}/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +9 -9
  156. package/{components → ui/components}/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +11 -11
  157. package/{components → ui/components}/organisms/vc-app/vc-app.stories.ts +0 -0
  158. package/{components → ui/components}/organisms/vc-app/vc-app.vue +9 -11
  159. package/{components → ui/components}/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +10 -10
  160. package/{components → ui/components}/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +17 -17
  161. package/{components → ui/components}/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +4 -4
  162. package/{components → ui/components}/organisms/vc-blade/vc-blade.stories.ts +0 -0
  163. package/{components → ui/components}/organisms/vc-blade/vc-blade.vue +5 -5
  164. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +426 -0
  165. package/{components → ui/components}/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +12 -12
  166. package/{components → ui/components}/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +9 -9
  167. package/{components → ui/components}/organisms/vc-gallery/vc-gallery.vue +6 -6
  168. package/{components → ui/components}/organisms/vc-login-form/vc-login-form.stories.ts +6 -6
  169. package/{components → ui/components}/organisms/vc-login-form/vc-login-form.vue +5 -5
  170. package/{components → ui/components}/organisms/vc-popup/vc-popup.stories.ts +0 -0
  171. package/{components → ui/components}/organisms/vc-popup/vc-popup.vue +13 -13
  172. package/{components → ui/components}/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +6 -6
  173. package/{components → ui/components}/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue +3 -3
  174. package/{components → ui/components}/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue +13 -13
  175. package/{components → ui/components}/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +23 -23
  176. package/{components → ui/components}/organisms/vc-table/vc-table.stories.ts +3 -3
  177. package/{components → ui/components}/organisms/vc-table/vc-table.vue +42 -42
  178. package/ui/types/index.ts +38 -0
  179. package/ui/types/ts-helpers.ts +46 -0
  180. package/components/atoms/vc-badge/vc-badge.vue +0 -63
  181. package/components/atoms/vc-loading/vc-loading.vue +0 -30
  182. package/components/molecules/vc-input/vc-input.stories.ts +0 -26
  183. package/components/molecules/vc-select/vc-select.stories.ts +0 -25
  184. package/components/molecules/vc-select/vc-select.vue +0 -402
  185. package/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +0 -292
  186. package/dist/components/atoms/vc-badge/vc-badge.stories.d.ts.map +0 -1
  187. package/dist/components/atoms/vc-button/vc-button.stories.d.ts.map +0 -1
  188. package/dist/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +0 -1
  189. package/dist/components/atoms/vc-container/vc-container.stories.d.ts.map +0 -1
  190. package/dist/components/atoms/vc-hint/vc-hint.stories.d.ts.map +0 -1
  191. package/dist/components/atoms/vc-icon/vc-icon.stories.d.ts.map +0 -1
  192. package/dist/components/atoms/vc-image/vc-image.stories.d.ts.map +0 -1
  193. package/dist/components/atoms/vc-label/vc-label.stories.d.ts.map +0 -1
  194. package/dist/components/atoms/vc-link/vc-link.stories.d.ts.map +0 -1
  195. package/dist/components/atoms/vc-progress/vc-progress.stories.d.ts.map +0 -1
  196. package/dist/components/atoms/vc-status/vc-status.stories.d.ts.map +0 -1
  197. package/dist/components/atoms/vc-switch/vc-switch.stories.d.ts.map +0 -1
  198. package/dist/components/index.d.ts.map +0 -1
  199. package/dist/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +0 -1
  200. package/dist/components/molecules/vc-form/vc-form.stories.d.ts.map +0 -1
  201. package/dist/components/molecules/vc-input/vc-input.stories.d.ts +0 -7
  202. package/dist/components/molecules/vc-input/vc-input.stories.d.ts.map +0 -1
  203. package/dist/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +0 -1
  204. package/dist/components/molecules/vc-rating/vc-rating.stories.d.ts.map +0 -1
  205. package/dist/components/molecules/vc-select/vc-select.stories.d.ts +0 -7
  206. package/dist/components/molecules/vc-select/vc-select.stories.d.ts.map +0 -1
  207. package/dist/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +0 -1
  208. package/dist/components/organisms/vc-app/vc-app.stories.d.ts.map +0 -1
  209. package/dist/components/organisms/vc-blade/vc-blade.stories.d.ts.map +0 -1
  210. package/dist/components/organisms/vc-login-form/vc-login-form.stories.d.ts.map +0 -1
  211. package/dist/components/organisms/vc-popup/vc-popup.stories.d.ts.map +0 -1
  212. package/dist/components/organisms/vc-table/vc-table.stories.d.ts.map +0 -1
@@ -49,7 +49,7 @@ export default defineComponent({
49
49
  </script>
50
50
 
51
51
  <script lang="ts" setup>
52
- import { VcIcon } from "@/components";
52
+ import { VcIcon } from "@/ui/components";
53
53
  import { createPopper, Instance } from "@popperjs/core";
54
54
  import { IBladeDropdownItem } from "@/core/types";
55
55
 
@@ -166,57 +166,57 @@ function handleDropItemClick(item: IBladeDropdownItem) {
166
166
  }
167
167
 
168
168
  .vc-blade-toolbar-button {
169
- @apply px-2 bg-[color:var(--blade-toolbar-button-background-color)] box-border cursor-pointer;
169
+ @apply tw-px-2 tw-bg-[color:var(--blade-toolbar-button-background-color)] tw-box-border tw-cursor-pointer;
170
170
 
171
171
  &__wrap {
172
- @apply inline-flex flex-col justify-center items-center relative;
172
+ @apply tw-inline-flex tw-flex-col tw-justify-center tw-items-center tw-relative;
173
173
  }
174
174
 
175
175
  &__title {
176
- @apply text-sm whitespace-nowrap mt-1 text-[color:var(--blade-toolbar-button-title-color)];
176
+ @apply tw-text-sm tw-whitespace-nowrap tw-mt-1 tw-text-[color:var(--blade-toolbar-button-title-color)];
177
177
  }
178
178
 
179
179
  &__icon {
180
- @apply text-[color:var(--blade-toolbar-button-icon-color)];
180
+ @apply tw-text-[color:var(--blade-toolbar-button-icon-color)];
181
181
  }
182
182
 
183
183
  &__dropdown {
184
- @apply absolute bg-white z-[9999] shadow-[1px_1px_22px_rgba(126,142,157,0.2)];
184
+ @apply tw-absolute tw-bg-white tw-z-[9999] tw-shadow-[1px_1px_22px_rgba(126,142,157,0.2)];
185
185
  }
186
186
 
187
187
  &__dropdown-item {
188
- @apply p-3 text-lg text-black border-l border-solid
189
- border-l-[#eef0f2] border-b border-b-[#eef0f2]
190
- bg-white cursor-pointer flex flex-row items-center
191
- hover:bg-[#eff7fc];
188
+ @apply tw-p-3 tw-text-lg tw-text-black tw-border-l tw-border-solid
189
+ tw-border-l-[#eef0f2] tw-border-b tw-border-b-[#eef0f2]
190
+ tw-bg-white tw-cursor-pointer tw-flex tw-flex-row tw-items-center
191
+ hover:tw-bg-[#eff7fc];
192
192
  }
193
193
 
194
194
  &__dropdown-item-icon {
195
- @apply text-[#a9bfd2] mr-2;
195
+ @apply tw-text-[#a9bfd2] tw-mr-2;
196
196
  }
197
197
 
198
198
  &:hover {
199
- @apply bg-[color:var(--blade-toolbar-button-background-color-hover)];
199
+ @apply tw-bg-[color:var(--blade-toolbar-button-background-color-hover)];
200
200
 
201
201
  .vc-blade-toolbar-button__title {
202
- @apply text-[color:var(--blade-toolbar-button-title-color-hover)];
202
+ @apply tw-text-[color:var(--blade-toolbar-button-title-color-hover)];
203
203
  }
204
204
 
205
205
  .vc-blade-toolbar-button__icon {
206
- @apply text-[color:var(--blade-toolbar-button-icon-color-hover)];
206
+ @apply tw-text-[color:var(--blade-toolbar-button-icon-color-hover)];
207
207
  }
208
208
  }
209
209
 
210
210
  &_disabled,
211
211
  &_disabled:hover {
212
- @apply bg-[color:var(--blade-toolbar-button-background-color-disabled)] cursor-default;
212
+ @apply tw-bg-[color:var(--blade-toolbar-button-background-color-disabled)] tw-cursor-default;
213
213
 
214
214
  .vc-blade-toolbar-button__title {
215
- @apply text-[color:var(--blade-toolbar-button-title-color-disabled)];
215
+ @apply tw-text-[color:var(--blade-toolbar-button-title-color-disabled)];
216
216
  }
217
217
 
218
218
  .vc-blade-toolbar-button__icon {
219
- @apply text-[color:var(--blade-toolbar-button-icon-color-disabled)];
219
+ @apply tw-text-[color:var(--blade-toolbar-button-icon-color-disabled)];
220
220
  }
221
221
  }
222
222
  }
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="isToolbarVisible()"
4
- class="h-[var(--blade-toolbar-height)] bg-[color:var(--blade-toolbar-background-color)] border-b-[color:#eaedf3] border-solid border-b flex box-border w-full content-center items-stretch shrink-0"
5
- :class="{ '!h-[var(--blade-toolbar-height-expanded)]': isExpanded }"
4
+ class="tw-h-[var(--blade-toolbar-height)] tw-bg-[color:var(--blade-toolbar-background-color)] tw-border-b-[color:#eaedf3] tw-border-solid tw-border-b tw-flex tw-box-border tw-w-full tw-content-center tw-items-stretch tw-shrink-0"
5
+ :class="{ '!tw-h-[var(--blade-toolbar-height-expanded)]': isExpanded }"
6
6
  >
7
7
  <div
8
- class="grow basis-0 flex content-start items-center overflow-x-auto px-2"
8
+ class="tw-grow tw-basis-0 tw-flex tw-content-start tw-items-center tw-overflow-x-auto tw-px-2"
9
9
  >
10
10
  <template v-for="item in items" :key="item.id">
11
11
  <VcBladeToolbarButton
@@ -16,7 +16,7 @@
16
16
  </template>
17
17
  </div>
18
18
  <VcIcon
19
- class="self-center justify-self-center text-[#a1c0d4] cursor-pointer mr-4 hover:text-[#7ea8c4]"
19
+ class="tw-self-center tw-justify-self-center tw-text-[#a1c0d4] tw-cursor-pointer tw-mr-4 hover:tw-text-[#7ea8c4]"
20
20
  :icon="`fas fa-chevron-${isExpanded ? 'up' : 'down'}`"
21
21
  @click="toggleToolbar"
22
22
  ></VcIcon>
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <div
3
- class="vc-blade relative flex shrink-0 flex-col bg-[color:var(--blade-background-color)] rounded-[var(--blade-border-radius)] shadow-[2px_2px_8px_rgba(126,142,157,0.14)] my-4 mx-2 overflow-hidden transition-[width] duration-200"
3
+ class="vc-blade tw-relative tw-flex tw-shrink-0 tw-flex-col tw-bg-[color:var(--blade-background-color)] tw-rounded-[var(--blade-border-radius)] tw-shadow-[2px_2px_8px_rgba(126,142,157,0.14)] tw-my-4 tw-mx-2 tw-overflow-hidden tw-transition-[width] tw-duration-200"
4
4
  :style="{ width: typeof width === 'number' ? `${width}px` : width }"
5
- :class="[$attrs.class, { '!w-full shrink': $isMobile.value || expanded }]"
5
+ :class="[$attrs.class, { '!tw-w-full tw-shrink': $isMobile.value || expanded }]"
6
6
  >
7
7
  <!-- Init blade header -->
8
8
  <VcBladeHeader
9
- class="shrink-0"
9
+ class="tw-shrink-0"
10
10
  v-if="!$isMobile.value || closable"
11
11
  :expanded="expanded"
12
12
  :closable="closable"
@@ -21,7 +21,7 @@
21
21
  </VcBladeHeader>
22
22
 
23
23
  <!-- Set up blade toolbar -->
24
- <VcBladeToolbar class="shrink-0" :items="toolbarItems"></VcBladeToolbar>
24
+ <VcBladeToolbar class="tw-shrink-0" :items="toolbarItems"></VcBladeToolbar>
25
25
 
26
26
  <slot></slot>
27
27
  </div>
@@ -82,6 +82,6 @@ defineProps({
82
82
  }
83
83
 
84
84
  .vc-app_mobile .vc-blade {
85
- @apply m-0 rounded-none;
85
+ @apply tw-m-0 tw-rounded-none;
86
86
  }
87
87
  </style>
@@ -0,0 +1,426 @@
1
+ <template>
2
+ <Field
3
+ v-if="
4
+ (property.dictionary || property.isDictionary) && !property.multivalue
5
+ "
6
+ v-slot="{ field, errorMessage, handleChange, errors }"
7
+ :name="property.displayName || property.name"
8
+ :modelValue="getter(property, true)"
9
+ :rules="rules"
10
+ >
11
+ <VcSelect
12
+ v-bind="$attrs"
13
+ :error="!!errors.length"
14
+ :error-message="errorMessage"
15
+ :label="handleDisplayName || property.displayName"
16
+ :modelValue="getter(property, true)"
17
+ @update:modelValue="
18
+ (e) => {
19
+ handleChange(e);
20
+ setter(property, e, items);
21
+ }
22
+ "
23
+ :required="property.required || property.isRequired"
24
+ :placeholder="handleDisplayName || property.defaultValue"
25
+ :options="items"
26
+ option-value="id"
27
+ :option-label="handleDisplayProperty"
28
+ :disabled="disabled"
29
+ searchable
30
+ @search="onSearch"
31
+ @close="onClose"
32
+ ></VcSelect>
33
+ </Field>
34
+
35
+ <Field
36
+ v-else-if="
37
+ property.valueType === 'ShortText' &&
38
+ property.multivalue &&
39
+ !(property.dictionary || property.isDictionary)
40
+ "
41
+ v-slot="{ field, errorMessage, handleChange }"
42
+ :name="property.name"
43
+ :modelValue="property.values"
44
+ :rules="rules"
45
+ >
46
+ <VcMultivalue
47
+ v-bind="$attrs"
48
+ :error-message="errorMessage"
49
+ :label="handleDisplayName"
50
+ :modelValue="property.values"
51
+ @update:modelValue="
52
+ (e) => {
53
+ handleChange(e);
54
+ setter(property, e);
55
+ }
56
+ "
57
+ :required="property.required || property.isRequired"
58
+ placeholder="Add value"
59
+ :disabled="disabled"
60
+ ></VcMultivalue>
61
+ </Field>
62
+
63
+ <Field
64
+ v-else-if="
65
+ property.valueType === 'ShortText' &&
66
+ property.multivalue &&
67
+ (property.dictionary || property.isDictionary)
68
+ "
69
+ v-slot="{ field, errorMessage, handleChange }"
70
+ :name="property.name"
71
+ :modelValue="property.values"
72
+ :rules="rules"
73
+ >
74
+ <VcMultivalue
75
+ v-bind="$attrs"
76
+ :error-message="errorMessage"
77
+ :label="handleDisplayName"
78
+ :modelValue="property.values"
79
+ @update:modelValue="
80
+ (e) => {
81
+ handleChange(e);
82
+ setter(property, e, items);
83
+ }
84
+ "
85
+ :required="property.required || property.isRequired"
86
+ placeholder="Add value"
87
+ :multivalue="property.multivalue"
88
+ :disabled="disabled"
89
+ :options="items"
90
+ keyProperty="id"
91
+ displayProperty="alias"
92
+ @search="onSearch"
93
+ @close="onClose"
94
+ ></VcMultivalue>
95
+ </Field>
96
+
97
+ <Field
98
+ v-else-if="property.valueType === 'ShortText'"
99
+ v-slot="{ field, errorMessage, handleChange, errors }"
100
+ :name="property.displayName || property.name"
101
+ :modelValue="getter(property)"
102
+ :rules="rules"
103
+ >
104
+ <VcInput
105
+ v-bind="$attrs"
106
+ :error="!!errors.length"
107
+ :error-message="errorMessage"
108
+ :label="handleDisplayName || property.displayName"
109
+ :modelValue="getter(property)"
110
+ @update:modelValue="
111
+ (e) => {
112
+ handleChange(e);
113
+ setter(property, e);
114
+ }
115
+ "
116
+ clearable
117
+ :required="property.required || property.isRequired"
118
+ :placeholder="handleDisplayName || 'Add value'"
119
+ :disabled="disabled"
120
+ ></VcInput>
121
+ </Field>
122
+
123
+ <Field
124
+ v-else-if="property.valueType === 'Number' && property.multivalue"
125
+ v-slot="{ field, errorMessage, handleChange }"
126
+ :name="property.name"
127
+ :modelValue="property.values"
128
+ :rules="rules"
129
+ >
130
+ <VcMultivalue
131
+ v-bind="$attrs"
132
+ :error-message="errorMessage"
133
+ :label="handleDisplayName"
134
+ :modelValue="property.values"
135
+ @update:modelValue="
136
+ (e) => {
137
+ handleChange(e);
138
+ setter(property, e);
139
+ }
140
+ "
141
+ type="number"
142
+ :required="property.required || property.isRequired"
143
+ placeholder="Add value"
144
+ :disabled="disabled"
145
+ ></VcMultivalue>
146
+ </Field>
147
+
148
+ <Field
149
+ v-else-if="property.valueType === 'Number'"
150
+ v-slot="{ field, errorMessage, handleChange, errors }"
151
+ :name="property.name"
152
+ :modelValue="getter(property)"
153
+ :rules="rules"
154
+ >
155
+ <VcInput
156
+ v-bind="$attrs"
157
+ :error="!!errors.length"
158
+ :error-message="errorMessage"
159
+ :label="handleDisplayName"
160
+ :modelValue="getter(property)"
161
+ @update:modelValue="
162
+ (e) => {
163
+ handleChange(e);
164
+ setter(property, e);
165
+ }
166
+ "
167
+ clearable
168
+ type="number"
169
+ :required="property.required || property.isRequired"
170
+ :placeholder="handleDisplayName || property.defaultValue"
171
+ :disabled="disabled"
172
+ ></VcInput>
173
+ </Field>
174
+
175
+ <Field
176
+ v-else-if="property.valueType === 'Integer'"
177
+ v-slot="{ field, errorMessage, handleChange, errors }"
178
+ :name="property.name"
179
+ :modelValue="getter(property)"
180
+ :rules="rules"
181
+ >
182
+ <VcInput
183
+ v-bind="$attrs"
184
+ :error="!!errors.length"
185
+ :error-message="errorMessage"
186
+ :label="handleDisplayName"
187
+ :modelValue="getter(property)"
188
+ @update:modelValue="
189
+ (e) => {
190
+ handleChange(e);
191
+ setter(property, e);
192
+ }
193
+ "
194
+ clearable
195
+ type="number"
196
+ step="1"
197
+ :required="property.required || property.isRequired"
198
+ :placeholder="handleDisplayName || property.defaultValue"
199
+ :disabled="disabled"
200
+ ></VcInput>
201
+ </Field>
202
+
203
+ <Field
204
+ v-else-if="property.valueType === 'DateTime'"
205
+ v-slot="{ field, errorMessage, handleChange, errors }"
206
+ :name="property.name"
207
+ :modelValue="getter(property)"
208
+ :rules="rules"
209
+ >
210
+ <VcInput
211
+ v-bind="$attrs"
212
+ :error="!!errors.length"
213
+ :error-message="errorMessage"
214
+ :label="handleDisplayName"
215
+ :modelValue="getter(property)"
216
+ @update:modelValue="
217
+ (e) => {
218
+ handleChange(e);
219
+ setter(property, e);
220
+ }
221
+ "
222
+ type="datetime-local"
223
+ :required="property.required || property.isRequired"
224
+ :placeholder="handleDisplayName || property.defaultValue"
225
+ :disabled="disabled"
226
+ ></VcInput>
227
+ </Field>
228
+
229
+ <Field
230
+ v-else-if="property.valueType === 'LongText'"
231
+ v-slot="{ field, errorMessage, handleChange }"
232
+ :name="property.name"
233
+ :modelValue="getter(property)"
234
+ :rules="rules"
235
+ >
236
+ <VcTextarea
237
+ v-bind="$attrs"
238
+ :error-message="errorMessage"
239
+ :label="handleDisplayName"
240
+ :modelValue="getter(property)"
241
+ @update:modelValue="
242
+ (e) => {
243
+ handleChange(e);
244
+ setter(property, e);
245
+ }
246
+ "
247
+ :isRequired="property.required || property.isRequired"
248
+ :placeholder="handleDisplayName || property.defaultValue"
249
+ :disabled="disabled"
250
+ ></VcTextarea>
251
+ </Field>
252
+
253
+ <Field
254
+ v-else-if="property.valueType === 'Boolean'"
255
+ v-slot="{ field, errorMessage, handleChange }"
256
+ :name="property.displayName || property.name"
257
+ :modelValue="getter(property)"
258
+ :rules="rules"
259
+ >
260
+ <VcCheckbox
261
+ v-bind="$attrs"
262
+ :error-message="errorMessage"
263
+ :modelValue="getter(property)"
264
+ @update:modelValue="
265
+ (e) => {
266
+ handleChange(e);
267
+ setter(property, e);
268
+ }
269
+ "
270
+ :required="property.required || property.isRequired"
271
+ :disabled="disabled"
272
+ :name="property.displayName || property.name"
273
+ >
274
+ {{ handleDisplayName || property.displayName }}
275
+ </VcCheckbox>
276
+ </Field>
277
+
278
+ <Field
279
+ v-else-if="property.valueType === 'Html'"
280
+ v-slot="{ field, errorMessage, handleChange }"
281
+ :name="property.displayName || property.name"
282
+ :modelValue="getter(property)"
283
+ :rules="rules"
284
+ >
285
+ <VcEditor
286
+ v-bind="$attrs"
287
+ :label="handleDisplayName || property.displayName"
288
+ :modelValue="getter(property)"
289
+ @update:modelValue="
290
+ (e) => {
291
+ handleChange(e);
292
+ setter(property, e);
293
+ }
294
+ "
295
+ :required="property.required || property.isRequired"
296
+ :placeholder="handleDisplayName || 'Add value'"
297
+ :disabled="disabled"
298
+ :name="property.displayName || property.name"
299
+ :error-message="errorMessage"
300
+ >
301
+ </VcEditor>
302
+ </Field>
303
+ </template>
304
+
305
+ <script lang="ts" setup>
306
+ import { ref, onMounted, computed } from "vue";
307
+ import { useI18n } from "@/core/composables";
308
+ import { Field } from "vee-validate";
309
+
310
+ interface IValidationRules {
311
+ required?: boolean;
312
+ min?: number;
313
+ max?: number;
314
+ regex?: RegExp;
315
+ }
316
+
317
+ interface IDisplayName {
318
+ languageCode: string;
319
+ name?: string;
320
+ }
321
+
322
+ const props = defineProps({
323
+ property: {
324
+ type: Object,
325
+ default: () => ({}),
326
+ },
327
+
328
+ dictionaries: {
329
+ type: Object,
330
+ default: () => ({}),
331
+ },
332
+
333
+ getter: {
334
+ type: Function,
335
+ },
336
+
337
+ optionsGetter: {
338
+ type: Function,
339
+ },
340
+
341
+ setter: {
342
+ type: Function,
343
+ },
344
+
345
+ culture: {
346
+ type: String,
347
+ default: "en-US",
348
+ },
349
+
350
+ disabled: {
351
+ type: Boolean,
352
+ default: false,
353
+ },
354
+ });
355
+
356
+ const { locale, te, t } = useI18n();
357
+
358
+ const rules: IValidationRules = {};
359
+ const items = ref([]);
360
+ const handleDisplayProperty = computed(() => {
361
+ return items.value?.some((x: { alias: string }) => x.alias)
362
+ ? "alias"
363
+ : "name";
364
+ });
365
+ const handleDisplayName = computed(() => {
366
+ let localized: string;
367
+ const isLocaleExists = props.property.displayNames?.find((x: IDisplayName) =>
368
+ x.languageCode
369
+ ?.toLowerCase()
370
+ .startsWith((locale.value as string)?.toLowerCase())
371
+ );
372
+ if (isLocaleExists && isLocaleExists.name) {
373
+ localized = isLocaleExists.name;
374
+ } else {
375
+ const fallback = props.property.displayNames?.find((x: IDisplayName) =>
376
+ x.languageCode?.toLowerCase().includes(props.culture?.toLowerCase())
377
+ );
378
+ localized =
379
+ fallback && fallback?.name ? fallback.name : props.property.name;
380
+ }
381
+
382
+ return localized && te(localized.toUpperCase())
383
+ ? t(localized.toUpperCase())
384
+ : localized;
385
+ });
386
+
387
+ onMounted(async () => {
388
+ if (props.optionsGetter) {
389
+ items.value = await props.optionsGetter(props.property);
390
+ }
391
+ });
392
+
393
+ if (props.property.required || props.property.isRequired) {
394
+ rules.required = true;
395
+ }
396
+ if (props.property.validationRule?.charCountMin) {
397
+ rules.min = Number(props.property.validationRule.charCountMin);
398
+ }
399
+ if (props.property.validationRule?.charCountMax) {
400
+ rules.max = Number(props.property.validationRule.charCountMax);
401
+ }
402
+ if (props.property.validationRule?.regExp) {
403
+ rules.regex = new RegExp(props.property.validationRule?.regExp);
404
+ }
405
+
406
+ /*function getLabel() {
407
+ return (
408
+ (props.property.displayNames as { culture: string }[]).find(
409
+ (item) => item.culture === props.culture
410
+ ) || props.property.name
411
+ );
412
+ }
413
+ */
414
+
415
+ async function onSearch(keyword: string) {
416
+ if (props.optionsGetter) {
417
+ items.value = await props.optionsGetter(props.property, keyword);
418
+ }
419
+ }
420
+
421
+ async function onClose() {
422
+ if (props.optionsGetter) {
423
+ items.value = await props.optionsGetter(props.property);
424
+ }
425
+ }
426
+ </script>
@@ -10,18 +10,18 @@
10
10
  >
11
11
  <VcImage aspect="1x1" :src="image.url" background="contain"></VcImage>
12
12
  <div class="vc-gallery-item__overlay">
13
- <div class="flex">
13
+ <div class= "tw-flex">
14
14
  <VcIcon
15
15
  v-if="!readonly && !disableDrag"
16
16
  class="vc-gallery-item__move"
17
17
  icon="fas fa-arrows-alt"
18
18
  size="s"
19
19
  ></VcIcon>
20
- <div class="truncate" :title="image.name">
20
+ <div class="tw-truncate" :title="image.name">
21
21
  {{ image.name }}
22
22
  </div>
23
23
  </div>
24
- <div class="flex grow basis-0 items-center justify-around">
24
+ <div class= "tw-flex tw-grow tw-basis-0 tw-items-center tw-justify-around">
25
25
  <div
26
26
  class="vc-gallery-item__button"
27
27
  @click="$emit('preview', image)"
@@ -31,7 +31,7 @@
31
31
  class="vc-gallery-item__button-icon"
32
32
  icon="fas fa-eye"
33
33
  ></VcIcon>
34
- <div class="mt-2">Fullscreen</div>
34
+ <div class="tw-mt-2">Fullscreen</div>
35
35
  </div>
36
36
  <div
37
37
  v-if="!readonly && actions && actions.edit"
@@ -42,7 +42,7 @@
42
42
  class="vc-gallery-item__button-icon"
43
43
  icon="fas fa-pen"
44
44
  ></VcIcon>
45
- <div class="mt-2">Edit</div>
45
+ <div class="tw-mt-2">Edit</div>
46
46
  </div>
47
47
  <div
48
48
  v-if="!readonly && actions && actions.remove"
@@ -53,7 +53,7 @@
53
53
  class="vc-gallery-item__button-icon"
54
54
  icon="fas fa-trash"
55
55
  ></VcIcon>
56
- <div class="mt-2">Delete</div>
56
+ <div class="tw-mt-2">Delete</div>
57
57
  </div>
58
58
  </div>
59
59
  </div>
@@ -97,26 +97,26 @@ function onClose() {
97
97
 
98
98
  <style lang="scss">
99
99
  .vc-gallery-item {
100
- @apply relative w-[155px] h-[155px] box-border border border-solid border-[#d3dae9] rounded-md p-1;
100
+ @apply tw-relative tw-w-[155px] tw-h-[155px] tw-box-border tw-border tw-border-solid tw-border-[#d3dae9] tw-rounded-md tw-p-1;
101
101
 
102
102
  &__overlay {
103
- @apply bg-[rgba(238,246,252,0.97)] flex-col p-2 opacity-0 flex absolute left-0 top-0 right-0 bottom-0 transition duration-200;
103
+ @apply tw-bg-[rgba(238,246,252,0.97)] tw-flex-col tw-p-2 tw-opacity-0 tw-flex tw-absolute tw-left-0 tw-top-0 tw-right-0 tw-bottom-0 tw-transition tw-duration-200;
104
104
  }
105
105
 
106
106
  &:hover &__overlay,
107
107
  .vc-app_touch &_hover &__overlay {
108
- @apply opacity-100;
108
+ @apply tw-opacity-100;
109
109
  }
110
110
 
111
111
  &__move {
112
- @apply text-[#a1c0d4] cursor-pointer mr-2;
112
+ @apply tw-text-[#a1c0d4] tw-cursor-pointer tw-mr-2;
113
113
  }
114
114
 
115
115
  &__button {
116
- @apply cursor-pointer flex flex-col items-center;
116
+ @apply tw-cursor-pointer tw-flex tw-flex-col tw-items-center;
117
117
 
118
118
  &-icon {
119
- @apply text-[#319ed4];
119
+ @apply tw-text-[#319ed4];
120
120
  }
121
121
  }
122
122
  }