@vc-shell/framework 1.0.317 → 1.0.319

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 (65) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/core/composables/useSettings/index.ts +1 -1
  3. package/core/plugins/modularity/index.ts +1 -1
  4. package/dist/{azuread-CzkVV9sc.js → azuread-Fe76mXKk.js} +2 -2
  5. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  6. package/dist/{external-provider-CPsTBAfq.js → external-provider-CkRp_htS.js} +1 -1
  7. package/dist/{external-provider.vue_vue_type_script_setup_true_lang-CDpDapgk.js → external-provider.vue_vue_type_script_setup_true_lang-zLR4BUSu.js} +1 -1
  8. package/dist/external-providers-BNktadB8.js +4 -0
  9. package/dist/framework.js +1 -1
  10. package/dist/{index-B_-PsIBV.js → index-B5l5WRVE.js} +1 -1
  11. package/dist/{index-BuvUtKmW.js → index-BW7Dj1TX.js} +1 -1
  12. package/dist/{index-DZ9WtXgZ.js → index-BjviZH_W.js} +1 -1
  13. package/dist/{index-DBsWYmzw.js → index-BnVquWch.js} +1 -1
  14. package/dist/{index-DgPCJvJl.js → index-Bv3AOuXn.js} +1 -1
  15. package/dist/{index-Dn0aZ23J.js → index-CLSiP_fr.js} +1 -1
  16. package/dist/{index-Cg9ANNT7.js → index-CV6rggJA.js} +10250 -10200
  17. package/dist/{index-BBFraQ5T.js → index-CVyNRZ42.js} +1 -1
  18. package/dist/{index-ByZzd7pM.js → index-CgbW0LVF.js} +1 -1
  19. package/dist/{index-DXj7lY_8.js → index-CoflXBvv.js} +1 -1
  20. package/dist/{index-Z8V8A_9d.js → index-CurT7hrr.js} +1 -1
  21. package/dist/{index-CVz5_LNN.js → index-DE9i11JK.js} +1 -1
  22. package/dist/{index-DT1yjDi6.js → index-DY9p7Cbb.js} +1 -1
  23. package/dist/{index-Bq1JV4YO.js → index-DbB53H1x.js} +1 -1
  24. package/dist/{index-BH1SWYuT.js → index-Df-gFWLo.js} +1 -1
  25. package/dist/{index-DdHIKwAZ.js → index-DoMw5l7J.js} +1 -1
  26. package/dist/{index-VHgRkdCh.js → index-ywJAeFcI.js} +1 -1
  27. package/dist/index.css +1 -1
  28. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  29. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
  30. package/dist/shared/modules/dynamic/factories/types/index.d.ts +1 -0
  31. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
  32. package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -1
  33. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
  34. package/dist/shared/modules/dynamic/types/index.d.ts +1 -2
  35. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  36. package/dist/tsconfig.tsbuildinfo +1 -1
  37. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +21 -21
  38. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +3 -3
  39. package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +210 -30
  40. package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts.map +1 -1
  41. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +22 -3
  42. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  43. package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +12 -0
  44. package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -1
  45. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +1 -0
  46. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  47. package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +1 -1
  48. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +3 -3
  49. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  50. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  51. package/package.json +4 -4
  52. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +16 -9
  53. package/shared/components/theme-selector/theme-selector.vue +1 -1
  54. package/shared/components/user-dropdown-button/user-dropdown-button.vue +4 -4
  55. package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +6 -1
  56. package/shared/modules/dynamic/factories/types/index.ts +1 -0
  57. package/shared/modules/dynamic/helpers/override.ts +1 -1
  58. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +70 -19
  59. package/shared/modules/dynamic/types/index.ts +2 -2
  60. package/ui/components/molecules/vc-notification/vc-notification.vue +1 -1
  61. package/ui/components/molecules/vc-select/vc-select.vue +75 -23
  62. package/ui/components/organisms/vc-app/vc-app.vue +2 -0
  63. package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +4 -1
  64. package/ui/components/organisms/vc-blade/vc-blade.stories.ts +1 -1
  65. package/dist/external-providers-DXvj7iZI.js +0 -4
@@ -6,6 +6,7 @@
6
6
  'vc-select_error': error,
7
7
  'vc-select_disabled': disabled,
8
8
  'vc-select_has-hint-or-error': error || hint,
9
+ 'vc-select_no-outline': !outline,
9
10
  }"
10
11
  >
11
12
  <!-- Select label -->
@@ -239,8 +240,9 @@
239
240
  ref="root"
240
241
  :no-padding="true"
241
242
  >
243
+ <div v-if="listLoading"></div>
242
244
  <div
243
- v-if="!(optionsList && optionsList.length)"
245
+ v-else-if="!(optionsList && optionsList.length)"
244
246
  class="vc-select__no-options"
245
247
  >
246
248
  <slot name="no-options">
@@ -279,7 +281,16 @@ import { ref, computed, watch, nextTick, Ref, toRefs } from "vue";
279
281
  import { vOnClickOutside } from "@vueuse/components";
280
282
  import * as _ from "lodash-es";
281
283
  import { useIntersectionObserver } from "@vueuse/core";
282
- import { useFloating, UseFloatingReturn, offset, flip, shift, autoUpdate, MiddlewareState } from "@floating-ui/vue";
284
+ import {
285
+ useFloating,
286
+ UseFloatingReturn,
287
+ offset as uiOffset,
288
+ flip,
289
+ shift,
290
+ autoUpdate,
291
+ MiddlewareState,
292
+ Placement,
293
+ } from "@floating-ui/vue";
283
294
  import { VcLabel, VcContainer, VcHint, VcIcon } from "./../../";
284
295
  import { useI18n } from "vue-i18n";
285
296
 
@@ -484,6 +495,14 @@ const props = withDefaults(
484
495
  multilanguage?: boolean;
485
496
  currentLanguage?: string;
486
497
  size?: "default" | "small";
498
+ outline?: boolean;
499
+ placement?: Placement;
500
+ offset?:
501
+ | {
502
+ crossAxis?: number;
503
+ mainAxis?: number;
504
+ }
505
+ | number;
487
506
  }>(),
488
507
  {
489
508
  optionValue: "id",
@@ -495,6 +514,9 @@ const props = withDefaults(
495
514
  mapOptions: true,
496
515
  size: "default",
497
516
  options: (): T[] => [],
517
+ outline: true,
518
+ placement: "bottom",
519
+ offset: -2,
498
520
  },
499
521
  );
500
522
 
@@ -552,13 +574,13 @@ useIntersectionObserver(
552
574
  );
553
575
 
554
576
  const popper = useFloating(dropdownToggleRef, dropdownRef, {
555
- placement: "bottom",
577
+ placement: props.placement,
556
578
  whileElementsMounted: autoUpdate,
557
579
  middleware: [
558
580
  flip({ fallbackPlacements: ["top", "bottom"] }),
559
581
  shift({ mainAxis: false }),
560
582
  sameWidthChangeBorders(),
561
- offset(-2),
583
+ uiOffset(props.offset),
562
584
  ],
563
585
  }) as FloatingInstanceType;
564
586
 
@@ -611,22 +633,36 @@ watch(
611
633
  );
612
634
 
613
635
  watch(
614
- options,
615
- async () => {
616
- if (props.options && typeof props.options === "function") {
617
- try {
618
- listLoading.value = true;
619
- const data = await props.options();
620
- optionsList.value = data.results as Option[];
621
- totalItems.value = data.totalCount;
622
- } finally {
623
- listLoading.value = false;
636
+ isOpened,
637
+ async (newVal) => {
638
+ if (newVal && !optionsList.value.length) {
639
+ if (props.options && typeof props.options === "function") {
640
+ try {
641
+ listLoading.value = true;
642
+ const data = await props.options();
643
+ optionsList.value = data.results as Option[];
644
+ totalItems.value = data.totalCount;
645
+ } finally {
646
+ listLoading.value = false;
647
+ }
624
648
  }
625
- } else if (props.options && Array.isArray(props.options)) {
626
- optionsList.value = props.options as Option[];
649
+
650
+ optionsTemp.value = optionsList.value;
627
651
  }
652
+ },
653
+ { immediate: true },
654
+ );
655
+
656
+ watch(
657
+ options,
658
+ async (newVal) => {
659
+ if (newVal && !optionsList.value.length && typeof props.options !== "function") {
660
+ if (props.options && Array.isArray(props.options)) {
661
+ optionsList.value = props.options as Option[];
662
+ }
628
663
 
629
- optionsTemp.value = optionsList.value;
664
+ optionsTemp.value = optionsList.value;
665
+ }
630
666
  },
631
667
  { immediate: true },
632
668
  );
@@ -836,12 +872,17 @@ function sameWidthChangeBorders() {
836
872
  return {
837
873
  x,
838
874
  y,
839
- data: {
840
- borderTop,
841
- borderBottom,
842
- borderRadius,
843
- width,
844
- },
875
+ data: props.outline
876
+ ? {
877
+ borderTop,
878
+ borderBottom,
879
+ borderRadius,
880
+ width,
881
+ }
882
+ : {
883
+ border: "1px solid var(--select-border-color)",
884
+ width: "max-content",
885
+ },
845
886
  };
846
887
  },
847
888
  };
@@ -964,6 +1005,17 @@ function onReset() {
964
1005
  }
965
1006
 
966
1007
  .vc-select {
1008
+ &_no-outline {
1009
+ .vc-select__chevron-container {
1010
+ display: none;
1011
+ }
1012
+
1013
+ .vc-select__field {
1014
+ border: none;
1015
+ background-color: transparent !important;
1016
+ }
1017
+ }
1018
+
967
1019
  &__container {
968
1020
  @apply tw-box-border tw-w-full;
969
1021
  }
@@ -63,6 +63,7 @@
63
63
  <UserDropdownButton
64
64
  :avatar-url="avatar"
65
65
  :role="role"
66
+ :name="name"
66
67
  />
67
68
  </slot>
68
69
  </slot>
@@ -121,6 +122,7 @@ export interface Props {
121
122
  version?: string;
122
123
  title?: string;
123
124
  avatar?: string;
125
+ name?: string;
124
126
  disableMenu?: boolean;
125
127
  role?: string;
126
128
  }
@@ -52,7 +52,10 @@
52
52
  </div>
53
53
  </div>
54
54
 
55
- <div v-if="$slots['actions']">
55
+ <div
56
+ v-if="$slots['actions']"
57
+ class="tw-w-auto tw-max-w-1/2"
58
+ >
56
59
  <slot name="actions"></slot>
57
60
  </div>
58
61
 
@@ -74,7 +74,7 @@ export const ExpandableBlade: StoryFn<typeof VcBlade> = (args) => ({
74
74
  template: '<vc-blade v-bind="args" expandable @expand="expandBlade"><div class="p-4">Blade Contents</div></vc-blade>',
75
75
  });
76
76
 
77
- export const bladeWithoutToolbar: StoryFn<typeof VcBlade> = (args) => ({
77
+ export const BladeWithoutToolbar: StoryFn<typeof VcBlade> = (args) => ({
78
78
  components: { VcBlade },
79
79
  setup() {
80
80
  return { args };
@@ -1,4 +0,0 @@
1
- import { b as f } from "./index-Cg9ANNT7.js";
2
- export {
3
- f as default
4
- };