@vc-shell/framework 1.0.109 → 1.0.110

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.
@@ -16,5 +16,6 @@ export * from "./vc-row";
16
16
  export * from "./vc-status";
17
17
  export * from "./vc-status-icon";
18
18
  export * from "./vc-switch";
19
+ export * from "./vc-video";
19
20
  export * from "./vc-widget";
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/components/atoms/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/components/atoms/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export declare const VcIcon: import("vue").DefineComponent<{
2
2
  size: {
3
- type: import("vue").PropType<"s" | "m" | "xs" | "l" | "xl" | "xxl">;
3
+ type: import("vue").PropType<"s" | "m" | "xs" | "l" | "xl" | "xxl" | "xxxl">;
4
4
  default: string;
5
5
  };
6
6
  icon: {
@@ -9,7 +9,7 @@ export declare const VcIcon: import("vue").DefineComponent<{
9
9
  };
10
10
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
11
  size: {
12
- type: import("vue").PropType<"s" | "m" | "xs" | "l" | "xl" | "xxl">;
12
+ type: import("vue").PropType<"s" | "m" | "xs" | "l" | "xl" | "xxl" | "xxxl">;
13
13
  default: string;
14
14
  };
15
15
  icon: {
@@ -17,7 +17,7 @@ export declare const VcIcon: import("vue").DefineComponent<{
17
17
  default: string;
18
18
  };
19
19
  }>>, {
20
- size: "s" | "m" | "xs" | "l" | "xl" | "xxl";
20
+ size: "s" | "m" | "xs" | "l" | "xl" | "xxl" | "xxxl";
21
21
  icon: string;
22
22
  }, {}>;
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export interface Props {
2
2
  icon?: string;
3
- size?: "xs" | "s" | "m" | "l" | "xl" | "xxl";
3
+ size?: "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
4
4
  }
5
5
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
6
6
  icon: string;
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
9
9
  icon: string;
10
10
  size: string;
11
11
  }>>>, {
12
- size: "s" | "m" | "xs" | "l" | "xl" | "xxl";
12
+ size: "s" | "m" | "xs" | "l" | "xl" | "xxl" | "xxxl";
13
13
  icon: string;
14
14
  }, {}>;
15
15
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"vc-icon.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-icon/vc-icon.vue.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,KAAK;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC;CAC9C;;;;;;;;;;;AA8DD,wBAAkD;AAElD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,E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AAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,54 @@
1
+ export declare const VcVideo: import("vue").DefineComponent<{
2
+ label: {
3
+ type: import("vue").PropType<string>;
4
+ };
5
+ size: {
6
+ type: import("vue").PropType<"s" | "m" | "auto" | "xs" | "l" | "xl" | "xxl">;
7
+ default: string;
8
+ };
9
+ source: {
10
+ type: import("vue").PropType<string>;
11
+ };
12
+ clickable: {
13
+ type: import("vue").PropType<boolean>;
14
+ };
15
+ tooltip: {
16
+ type: import("vue").PropType<string>;
17
+ };
18
+ rounded: {
19
+ type: import("vue").PropType<boolean>;
20
+ };
21
+ bordered: {
22
+ type: import("vue").PropType<boolean>;
23
+ };
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ click: () => void;
26
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ label: {
28
+ type: import("vue").PropType<string>;
29
+ };
30
+ size: {
31
+ type: import("vue").PropType<"s" | "m" | "auto" | "xs" | "l" | "xl" | "xxl">;
32
+ default: string;
33
+ };
34
+ source: {
35
+ type: import("vue").PropType<string>;
36
+ };
37
+ clickable: {
38
+ type: import("vue").PropType<boolean>;
39
+ };
40
+ tooltip: {
41
+ type: import("vue").PropType<string>;
42
+ };
43
+ rounded: {
44
+ type: import("vue").PropType<boolean>;
45
+ };
46
+ bordered: {
47
+ type: import("vue").PropType<boolean>;
48
+ };
49
+ }>> & {
50
+ onClick?: () => any;
51
+ }, {
52
+ size: "s" | "m" | "auto" | "xs" | "l" | "xl" | "xxl";
53
+ }, {}>;
54
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-video/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA0B,CAAC"}
@@ -0,0 +1,42 @@
1
+ export interface Props {
2
+ label?: string;
3
+ tooltip?: string;
4
+ rounded?: boolean;
5
+ bordered?: boolean;
6
+ clickable?: boolean;
7
+ source?: string;
8
+ size?: "auto" | "xs" | "s" | "m" | "l" | "xl" | "xxl";
9
+ }
10
+ export interface Emits {
11
+ (event: "click"): void;
12
+ }
13
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ size: string;
15
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ click: () => void;
17
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ size: string;
19
+ }>>> & {
20
+ onClick?: () => any;
21
+ }, {
22
+ size: "s" | "m" | "auto" | "xs" | "l" | "xl" | "xxl";
23
+ }, {}>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
42
+ //# sourceMappingURL=vc-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CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AA6GN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.109",
3
+ "version": "1.0.110",
4
4
  "main": "./dist/framework.mjs",
5
5
  "module": "./dist/framework.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -36,6 +36,7 @@
36
36
  "@vueuse/components": "^10.1.2",
37
37
  "@vueuse/core": "^10.1.2",
38
38
  "@vueuse/integrations": "^10.1.2",
39
+ "ace-builds": "^1.27.0",
39
40
  "buffer-esm": "^1.2.0",
40
41
  "client-oauth2": "^4.3.3",
41
42
  "moment": "^2.29.4",
@@ -55,8 +56,8 @@
55
56
  "whatwg-fetch": "^3.6.2"
56
57
  },
57
58
  "devDependencies": {
58
- "@vc-shell/api-client-generator": "^1.0.109",
59
- "@vc-shell/config-generator": "^1.0.109",
59
+ "@vc-shell/api-client-generator": "^1.0.110",
60
+ "@vc-shell/config-generator": "^1.0.110",
60
61
  "@vitejs/plugin-vue": "^4.2.3",
61
62
  "sass": "^1.62.1",
62
63
  "typescript": "~5.0.4",
@@ -16,4 +16,5 @@ export * from "./vc-row";
16
16
  export * from "./vc-status";
17
17
  export * from "./vc-status-icon";
18
18
  export * from "./vc-switch";
19
+ export * from "./vc-video";
19
20
  export * from "./vc-widget";
@@ -5,7 +5,7 @@
5
5
  <script lang="ts" setup>
6
6
  export interface Props {
7
7
  icon?: string;
8
- size?: "xs" | "s" | "m" | "l" | "xl" | "xxl";
8
+ size?: "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
9
9
  }
10
10
 
11
11
  withDefaults(defineProps<Props>(), {
@@ -22,9 +22,10 @@ withDefaults(defineProps<Props>(), {
22
22
  --icon-size-l: 20px;
23
23
  --icon-size-xl: 22px;
24
24
  --icon-size-xxl: 30px;
25
+ --icon-size-xxxl: 64px;
25
26
  }
26
27
 
27
- $sizes: xs, s, m, l, xl, xxl;
28
+ $sizes: xs, s, m, l, xl, xxl, xxxl;
28
29
 
29
30
  .vc-icon {
30
31
  @each $size in $sizes {
@@ -0,0 +1,3 @@
1
+ import _Video from "./vc-video.vue";
2
+
3
+ export const VcVideo = _Video as typeof _Video;
@@ -0,0 +1,102 @@
1
+ <template>
2
+ <div
3
+ class="vc-video"
4
+ :class="[`vc-video_${size}`]"
5
+ >
6
+ <VcLabel
7
+ v-if="label"
8
+ class="tw-mb-2"
9
+ >
10
+ <span>{{ label }}</span>
11
+ <template
12
+ v-if="tooltip"
13
+ #tooltip
14
+ >{{ tooltip }}</template
15
+ >
16
+ </VcLabel>
17
+
18
+ <div
19
+ :class="[
20
+ `vc-video_auto`,
21
+ {
22
+ 'tw-rounded-full tw-pb-[var(--video-padding-bottom-1x1)]': rounded,
23
+ 'tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]': bordered,
24
+ 'tw-cursor-pointer': clickable,
25
+ },
26
+ 'tw-relative',
27
+ ]"
28
+ >
29
+ <div v-if="source">
30
+ <iframe
31
+ :src="`${source}`"
32
+ width="100%"
33
+ height="300"
34
+ frameborder="0"
35
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
36
+ allowfullscreen="false"
37
+ >
38
+ </iframe>
39
+ </div>
40
+ <div
41
+ v-else
42
+ class="tw-absolute tw-w-full tw-h-full tw-flex tw-items-center tw-justify-center tw-text-[#83a3be]"
43
+ >
44
+ <VcIcon
45
+ icon="fas fa-film"
46
+ size="xl"
47
+ ></VcIcon>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </template>
52
+
53
+ <script lang="ts" setup>
54
+ import { VcIcon, VcLabel } from "./../../";
55
+
56
+ export interface Props {
57
+ label?: string;
58
+ tooltip?: string;
59
+ rounded?: boolean;
60
+ bordered?: boolean;
61
+ clickable?: boolean;
62
+ source?: string;
63
+ size?: "auto" | "xs" | "s" | "m" | "l" | "xl" | "xxl";
64
+ }
65
+
66
+ export interface Emits {
67
+ (event: "click"): void;
68
+ }
69
+
70
+ const props = withDefaults(defineProps<Props>(), {
71
+ size: "auto",
72
+ });
73
+
74
+ const emit = defineEmits<Emits>();
75
+ </script>
76
+
77
+ <style lang="scss">
78
+ :root {
79
+ --image-size-xs: 32px;
80
+ --image-size-s: 48px;
81
+ --image-size-m: 64px;
82
+ --image-size-l: 96px;
83
+ --image-size-xl: 128px;
84
+ --image-size-xxl: 145px;
85
+ }
86
+
87
+ $paddings: xs, s, m, l, xl, xxl;
88
+
89
+ .vc-video {
90
+ @apply tw-inline-block tw-relative;
91
+
92
+ @each $padding in $paddings {
93
+ &_#{$padding} {
94
+ @apply tw-w-[var(--image-size-#{$padding})];
95
+ }
96
+ }
97
+
98
+ &_auto {
99
+ @apply tw-w-full;
100
+ }
101
+ }
102
+ </style>