@vc-shell/create-vc-app 1.1.7 → 1.1.8

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.1.8](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.7...v1.1.8) (2025-05-15)
2
+
3
+
4
+
1
5
  ## [1.1.7](https://github.com/VirtoCommerce/vc-shell/compare/v1.1.6...v1.1.7) (2025-05-12)
2
6
 
3
7
 
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import i from "node:path";
6
6
  import s from "node:fs";
7
7
  import { fileURLToPath as Re } from "node:url";
8
8
  import { cwd as je, argv as Ae, exit as we } from "node:process";
9
- const ke = "1.1.7", Oe = {
9
+ const ke = "1.1.8", Oe = {
10
10
  version: ke
11
11
  };
12
12
  var Ne = typeof global == "object" && global && global.Object === Object && global, Me = typeof self == "object" && self && self.Object === Object && self, Te = Ne || Me || Function("return this")(), p = Te.Symbol, H = Object.prototype, Ue = H.hasOwnProperty, Ee = H.toString, y = p ? p.toStringTag : void 0;
@@ -23,9 +23,9 @@
23
23
  "@types/node": "^20.10.5",
24
24
  "@typescript-eslint/eslint-plugin": "^6.16.0",
25
25
  "@typescript-eslint/parser": "^6.16.0",
26
- "@vc-shell/api-client-generator": "^1.1.7",
27
- "@vc-shell/release-config": "^1.1.7",
28
- "@vc-shell/ts-config": "^1.1.7",
26
+ "@vc-shell/api-client-generator": "^1.1.8",
27
+ "@vc-shell/release-config": "^1.1.8",
28
+ "@vc-shell/ts-config": "^1.1.8",
29
29
  "@vitejs/plugin-vue": "^5.2.3",
30
30
  "@vue/eslint-config-prettier": "^9.0.0",
31
31
  "@vue/eslint-config-typescript": "^12.0.0",
@@ -53,8 +53,8 @@
53
53
  "vue-tsc": "^2.2.10"
54
54
  },
55
55
  "dependencies": {
56
- "@vc-shell/config-generator": "^1.1.7",
57
- "@vc-shell/framework": "^1.1.7",
56
+ "@vc-shell/config-generator": "^1.1.8",
57
+ "@vc-shell/framework": "^1.1.8",
58
58
  "@vueuse/core": "^10.7.1",
59
59
  "@vueuse/integrations": "^10.7.1",
60
60
  "cross-spawn": "^7.0.3",
@@ -1,63 +1,64 @@
1
- /* eslint-disable */
2
- import {CoreBladeAdditionalSettings} from "@vc-shell/framework";
3
- import {Ref, Plugin} from "vue";
4
- import {DynamicGridSchema, DynamicDetailsSchema} from "@vc-shell/framework";
5
- import * as vue from "vue";
6
- import * as vueRouter from "vue-router";
7
- import * as veeValidate from "vee-validate";
8
- import * as vueI18n from "vue-i18n";
9
- import moment from "moment";
10
- import type {Component} from "vue";
11
-
12
- declare module "*.vue" {
13
- import type {DefineComponent} from "vue";
14
- const component: DefineComponent<{}, {}, any>;
15
- export default component;
16
- }
17
-
18
- declare module "@vue/runtime-core" {
19
- interface ComponentCustomProperties {
20
- $hasAccess: (permissions: string | string[]) => boolean;
21
- $isPhone: Ref<boolean>;
22
- $isTablet: Ref<boolean>;
23
- $isMobile: Ref<boolean>;
24
- $isDesktop: Ref<boolean>;
25
- $isTouch: boolean;
26
- $dynamicModules: {
27
- [x: string]: {
28
- components?: { [key: string]: Component };
29
- composables?: { [key: string]: (...args: any[]) => any };
30
- default: { install: (app: any, options?: any) => void };
31
- schema: { [key: string]: DynamicGridSchema | DynamicDetailsSchema };
32
- locales: { [key: string]: { [key: string]: string } };
33
- notificationTemplates?: { [key: string]: Component };
34
- };
35
- };
36
- }
37
-
38
- interface ComponentOptionsBase extends CoreBladeAdditionalSettings {
39
- }
40
- }
41
-
42
- declare global {
43
- interface Window {
44
- VcShellDynamicModules: {
45
- [x: string]: {
46
- components?: { [key: string]: Component };
47
- composables?: { [key: string]: (...args: any[]) => any };
48
- default: { install: (app: any, options?: any) => void };
49
- schema: { [key: string]: DynamicGridSchema | DynamicDetailsSchema };
50
- locales: { [key: string]: { [key: string]: string } };
51
- notificationTemplates?: { [key: string]: Component };
52
- };
53
- };
54
- Vue: typeof vue;
55
- VueRouter: typeof vueRouter;
56
- VeeValidate: typeof veeValidate;
57
- VueI18n: typeof vueI18n;
58
- moment: moment;
59
- VcShellFramework: any;
60
- }
61
- }
62
-
63
- export {};
1
+ /* eslint-disable */
2
+ import {CoreBladeAdditionalSettings} from "@vc-shell/framework";
3
+ import {Ref, Plugin} from "vue";
4
+ import {DynamicGridSchema, DynamicDetailsSchema} from "@vc-shell/framework";
5
+ import * as vue from "vue";
6
+ import * as vueRouter from "vue-router";
7
+ import * as veeValidate from "vee-validate";
8
+ import * as vueI18n from "vue-i18n";
9
+ import moment from "moment";
10
+ import type {Component} from "vue";
11
+
12
+ declare module "*.vue" {
13
+ import type {DefineComponent} from "vue";
14
+ const component: DefineComponent<{}, {}, any>;
15
+ export default component;
16
+ }
17
+
18
+ declare module "@vue/runtime-core" {
19
+ interface ComponentCustomProperties {
20
+ $hasAccess: (permissions: string | string[]) => boolean;
21
+ $isPhone: Ref<boolean>;
22
+ $isTablet: Ref<boolean>;
23
+ $isMobile: Ref<boolean>;
24
+ $isDesktop: Ref<boolean>;
25
+ $isTouch: boolean;
26
+ $t: (key: string, ...args: any[]) => string;
27
+ $dynamicModules: {
28
+ [x: string]: {
29
+ components?: { [key: string]: Component };
30
+ composables?: { [key: string]: (...args: any[]) => any };
31
+ default: { install: (app: any, options?: any) => void };
32
+ schema: { [key: string]: DynamicGridSchema | DynamicDetailsSchema };
33
+ locales: { [key: string]: { [key: string]: string } };
34
+ notificationTemplates?: { [key: string]: Component };
35
+ };
36
+ };
37
+ }
38
+
39
+ interface ComponentOptionsBase extends CoreBladeAdditionalSettings {
40
+ }
41
+ }
42
+
43
+ declare global {
44
+ interface Window {
45
+ VcShellDynamicModules: {
46
+ [x: string]: {
47
+ components?: { [key: string]: Component };
48
+ composables?: { [key: string]: (...args: any[]) => any };
49
+ default: { install: (app: any, options?: any) => void };
50
+ schema: { [key: string]: DynamicGridSchema | DynamicDetailsSchema };
51
+ locales: { [key: string]: { [key: string]: string } };
52
+ notificationTemplates?: { [key: string]: Component };
53
+ };
54
+ };
55
+ Vue: typeof vue;
56
+ VueRouter: typeof vueRouter;
57
+ VeeValidate: typeof veeValidate;
58
+ VueI18n: typeof vueI18n;
59
+ moment: moment;
60
+ VcShellFramework: any;
61
+ }
62
+ }
63
+
64
+ export {};
File without changes
@@ -10,6 +10,7 @@
10
10
  @collapse="$emit('collapse:blade')"
11
11
  >
12
12
  <!-- Blade contents -->
13
+ <!-- @vue-generic {never} -->
13
14
  <VcTable
14
15
  :expanded="expanded"
15
16
  class="tw-grow tw-basis-0"
@@ -1,41 +1,43 @@
1
- import { Ref, computed, ref } from "vue";
2
- import { useAsync, useLoading } from "@vc-shell/framework";
3
- import { MockedItem, MockedQuery, loadMockItemsList, removeMockItem } from "../../sample-data";
4
-
5
- export interface useClassicAppList {
6
- data: Ref<MockedItem[]>;
7
- loading: Ref<boolean>;
8
- totalCount: Ref<number>;
9
- pages: Ref<number>;
10
- currentPage: number;
11
- getItems: (query: MockedQuery) => void;
12
- removeItems: (args: { ids: string[] }) => void;
13
- }
14
-
15
- export default (): useClassicAppList => {
16
- const result = ref() as Ref<{ results: MockedItem[]; totalCount: number }>;
17
-
18
- const { loading: itemLoading, action: getItems } = useAsync<MockedQuery>(async (query) => {
19
- if (query) result.value = await loadMockItemsList(query);
20
- });
21
-
22
- const { loading: removeLoading, action: removeItems } = useAsync<{ ids: string[] }>(async (args) => {
23
- if (args) {
24
- for (const id of args.ids) {
25
- await removeMockItem({ id });
26
- }
27
- }
28
- });
29
-
30
- const loading = useLoading(itemLoading, removeLoading);
31
-
32
- return {
33
- data: computed(() => result.value?.results),
34
- loading: computed(() => loading.value),
35
- totalCount: computed(() => result.value?.totalCount),
36
- pages: computed(() => Math.ceil(result.value?.totalCount / 20)),
37
- currentPage: 0 / Math.max(1, 20) + 1,
38
- getItems,
39
- removeItems,
40
- };
41
- };
1
+ import { Ref, computed, ref } from "vue";
2
+ import { useAsync, useLoading } from "@vc-shell/framework";
3
+ import { MockedItem, MockedQuery, loadMockItemsList, removeMockItem } from "../../sample-data";
4
+
5
+ export interface useClassicAppList {
6
+ data: Ref<MockedItem[]>;
7
+ loading: Ref<boolean>;
8
+ totalCount: Ref<number>;
9
+ pages: Ref<number>;
10
+ currentPage: number;
11
+ getItems: (query: MockedQuery) => void;
12
+ removeItems: (args: { ids: string[] }) => void;
13
+ }
14
+
15
+ export type { MockedItem };
16
+
17
+ export default (): useClassicAppList => {
18
+ const result = ref() as Ref<{ results: MockedItem[]; totalCount: number }>;
19
+
20
+ const { loading: itemLoading, action: getItems } = useAsync<MockedQuery>(async (query) => {
21
+ if (query) result.value = await loadMockItemsList(query);
22
+ });
23
+
24
+ const { loading: removeLoading, action: removeItems } = useAsync<{ ids: string[] }>(async (args) => {
25
+ if (args) {
26
+ for (const id of args.ids) {
27
+ await removeMockItem({ id });
28
+ }
29
+ }
30
+ });
31
+
32
+ const loading = useLoading(itemLoading, removeLoading);
33
+
34
+ return {
35
+ data: computed(() => result.value?.results),
36
+ loading: computed(() => loading.value),
37
+ totalCount: computed(() => result.value?.totalCount),
38
+ pages: computed(() => Math.ceil(result.value?.totalCount / 20)),
39
+ currentPage: 0 / Math.max(1, 20) + 1,
40
+ getItems,
41
+ removeItems,
42
+ };
43
+ };
@@ -10,6 +10,7 @@
10
10
  @collapse="$emit('collapse:blade')"
11
11
  >
12
12
  <!-- Blade contents -->
13
+ <!-- @vue-generic {MockedItem} -->
13
14
  <VcTable
14
15
  :expanded="expanded"
15
16
  class="tw-grow tw-basis-0"
@@ -50,7 +51,7 @@ import {
50
51
  import { useI18n } from "vue-i18n";
51
52
  import { useList } from "./../composables";
52
53
  import Details from "./details.vue";
53
- import { MockedItem } from "../sample-data";
54
+ import { MockedItem } from "./../composables/useList";
54
55
 
55
56
  export interface Props {
56
57
  expanded?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vc-shell/create-vc-app",
3
3
  "description": "Application scaffolding",
4
- "version": "1.1.7",
4
+ "version": "1.1.8",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",
7
7
  "files": [
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/prompts": "^2.4.4",
16
- "@vc-shell/ts-config": "^1.1.7",
16
+ "@vc-shell/ts-config": "^1.1.8",
17
17
  "copyfiles": "^2.4.1",
18
18
  "cross-env": "^7.0.3",
19
19
  "shx": "^0.3.4",