@vc-shell/framework 1.1.78 → 1.1.79

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.
@@ -1 +1 @@
1
- {"version":3,"file":"vc-field.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-field/vc-field.vue"],"names":[],"mappings":"AA8GA,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;IACvD;;OAEG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;;UAlBQ,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO;iBAaxC,YAAY,GAAG,UAAU;iBAIzB,CAAC,MAAM,EAAE,MAAM,CAAC;;AAmJhC,wBAOG"}
1
+ {"version":3,"file":"vc-field.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-field/vc-field.vue"],"names":[],"mappings":"AAsHA,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;IACvD;;OAEG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;;UAlBQ,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO;iBAaxC,YAAY,GAAG,UAAU;iBAIzB,CAAC,MAAM,EAAE,MAAM,CAAC;;AA0JhC,wBAOG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.1.78",
3
+ "version": "1.1.79",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -90,9 +90,9 @@
90
90
  "@fullhuman/postcss-purgecss": "^7.0.2",
91
91
  "@laynezh/vite-plugin-lib-assets": "v1.1.0",
92
92
  "@types/dompurify": "^3.0.5",
93
- "@vc-shell/api-client-generator": "^1.1.78",
94
- "@vc-shell/config-generator": "^1.1.78",
95
- "@vc-shell/ts-config": "^1.1.78",
93
+ "@vc-shell/api-client-generator": "^1.1.79",
94
+ "@vc-shell/config-generator": "^1.1.79",
95
+ "@vc-shell/ts-config": "^1.1.79",
96
96
  "@vitejs/plugin-vue": "^5.2.3",
97
97
  "@vue/test-utils": "^2.4.5",
98
98
  "cypress-signalr-mock": "^1.5.0",
@@ -99,7 +99,7 @@ import SchemaRender from "../components/SchemaRender";
99
99
  import { VcImage } from "../../../../ui/components";
100
100
  import { useToolbarReducer } from "../composables/useToolbarReducer";
101
101
  import { useBeforeUnload } from "../../../../core/composables/useBeforeUnload";
102
- import { useLanguages, useNotifications } from "../../../../core/composables";
102
+ import { useLanguages, useNotifications, useBlade } from "../../../../core/composables";
103
103
  import { notification, GenericDropdown } from "../../../components";
104
104
  import { useWidgets } from "../../../../core/composables/useWidgets";
105
105
  import { BladeInstance } from "../../../../injection-keys";
@@ -136,7 +136,7 @@ const { showConfirmation } = usePopup();
136
136
  const { getFlag } = useLanguages();
137
137
 
138
138
  const isMixinReady = ref(false);
139
- const blade = inject(BladeInstance);
139
+ const blade = useBlade();
140
140
 
141
141
  if (typeof props.composables?.[props.model?.settings?.composable ?? ""] === "undefined") {
142
142
  throw new Error(`Composable ( ${props.model?.settings?.composable} ) is not defined`);
@@ -28,7 +28,7 @@
28
28
  >
29
29
  <VcButton
30
30
  v-if="copyable"
31
- icon="material-content_copy"
31
+ :icon="copyIcon"
32
32
  icon-size="m"
33
33
  class="vc-field__copy-button"
34
34
  text
@@ -40,6 +40,7 @@
40
40
  </template>
41
41
 
42
42
  <script lang="ts" setup>
43
+ import { ref } from "vue";
43
44
  import { VcLabel, VcCol } from "./../../";
44
45
  import VcFieldType from "./_internal/vc-field-type/vc-field-type.vue";
45
46
 
@@ -81,8 +82,14 @@ withDefaults(defineProps<Props>(), {
81
82
  aspectRatio: () => [1, 1],
82
83
  });
83
84
 
85
+ const copyIcon = ref("material-content_copy");
86
+
84
87
  function copy(value: string) {
85
88
  navigator.clipboard?.writeText(value);
89
+ copyIcon.value = "material-check";
90
+ setTimeout(() => {
91
+ copyIcon.value = "material-content_copy";
92
+ }, 1000);
86
93
  }
87
94
  </script>
88
95