smarteye-e-components 0.0.71 → 0.0.73

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/dist/style.css CHANGED
@@ -1 +1 @@
1
- .root[data-v-f6bf9449]{position:relative}.count-show[data-v-f6bf9449]{position:absolute;right:10px;color:#b7b7b7}.count-show-online[data-v-f6bf9449]{color:#309c30}.infinite-list-container[data-v-12d2a294]{height:100%;overflow:auto;position:relative;-webkit-overflow-scrolling:touch}.infinite-list-phantom[data-v-12d2a294]{position:absolute;left:0;top:0;right:0;z-index:-1}.infinite-list[data-v-12d2a294]{left:0;right:0;top:0;position:absolute}.infinite-list-item[data-v-12d2a294]{color:#555;box-sizing:border-box}:root{--device-offline-color: rgb(168, 168, 168);--device-online-color: rgb(1, 172, 1);--group-name-width: 160px;--device-opts-width: 80px}.group-head-db-click[data-v-83ef1e48],.group-head-db-click .group-name[data-v-83ef1e48]{cursor:pointer;user-select:none;position:relative}.group-head-count[data-v-83ef1e48]{position:absolute;left:0px;display:inline-block;width:24px;height:24px;line-height:24px;top:calc(50% - 12px);text-align:center;font-size:10px}.device-show-div[data-v-83ef1e48]{max-height:400px;overflow-y:auto}.dark .handle-ls-svg[data-v-83ef1e48]{color:#fff}.handle-ls-svg[data-v-83ef1e48]{vertical-align:-5px;cursor:pointer;margin-right:5px;color:#383838}.group-avatar[data-v-83ef1e48]{vertical-align:-6px;color:gray}.device[data-v-83ef1e48],.group[data-v-83ef1e48]{margin:5px 0}.group-name[data-v-83ef1e48]{display:inline-block;width:var(--group-name-width);cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle;line-height:24px;padding-left:5px}.group-slot[data-v-83ef1e48]{display:inline-block;width:calc(100% - var(--group-name-width) - 100px)}.device-slot[data-v-83ef1e48]{display:inline-block;width:calc(var(--device-opts-width))}.device-avatar[data-v-83ef1e48]{vertical-align:-2px;margin-right:4px;margin-left:2px;color:var(--device-offline-color)}.device-name[data-v-83ef1e48]{display:inline-block;width:calc(100% - var(--device-opts-width) - 42px);cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;color:var(--device-offline-color);padding-left:5px}.online-device .device-avatar[data-v-83ef1e48],.online-device .device-name[data-v-83ef1e48]{color:var(--device-online-color)}:root{--sec-main-search-height: 32px }.device-group-list[data-v-beb643d9]{height:100%}.device-group-list .search-panel[data-v-beb643d9]{height:var(--sec-main-search-height)}.device-group-list .device-panel[data-v-beb643d9]{height:calc(100% - var(--sec-main-search-height));overflow-y:auto}.svg-style[data-v-775da49d]{height:24px;background-color:#ddd;display:inline-block;vertical-align:middle;width:24px}.layout-item[data-v-775da49d]{border-radius:5px;display:inline-block;cursor:pointer;box-sizing:border-box;border:2px solid rgba(0,0,0,0)}.layout-item[data-v-775da49d]:hover{border:2px solid rgb(212,212,212)}.layout-item-select[data-v-775da49d]:hover,.layout-item-select[data-v-775da49d]{border:2px solid rgb(177,177,177)}.play-area[data-v-e6baa31a]{border-right:0px;border-top:0px}.area-item[data-v-c3d9b21a]{height:100%;width:100%;border:1px solid black}.area-select[data-v-c3d9b21a]{background-color:#7fffd4}.close-btn[data-v-c3d9b21a]{color:red;cursor:pointer}.close-btn[data-v-c3d9b21a]:hover{opacity:.5}.area-select-cant[data-v-c3d9b21a]{background-color:red}.area-compose[data-v-c3d9b21a]{background-color:azure}.col-add-btn[data-v-c3d9b21a]{margin-top:4px;width:100%;border:1px solid grey;cursor:pointer;text-align:center}.row-add-btn[data-v-c3d9b21a]{height:100%;width:20px;position:absolute;right:-26px;top:0px;border:1px solid grey;cursor:pointer}.row-add-btn[data-v-c3d9b21a]:hover,.col-add-btn[data-v-c3d9b21a]:hover{color:gray;background-color:#ebebeb}.row-remove-btn[data-v-c3d9b21a],.col-remove-btn[data-v-c3d9b21a]{position:absolute}.plus-custom-layout[data-v-f8b51862]{margin-left:30px;cursor:pointer}.plus-custom-layout[data-v-f8b51862]:hover{opacity:.6}.layout-switcher[data-v-336e6f2c]{position:relative;color:#000;display:inline-block}.switch-switcher[data-v-336e6f2c]{background-color:#ddd;cursor:pointer}.switch-panel[data-v-336e6f2c]{border-radius:5px;width:300px;position:absolute;background-color:#fff;border:1px solid grey}
1
+ .root[data-v-f6bf9449]{position:relative}.count-show[data-v-f6bf9449]{position:absolute;right:10px;color:#b7b7b7}.count-show-online[data-v-f6bf9449]{color:#309c30}.infinite-list-container[data-v-12d2a294]{height:100%;overflow:auto;position:relative;-webkit-overflow-scrolling:touch}.infinite-list-phantom[data-v-12d2a294]{position:absolute;left:0;top:0;right:0;z-index:-1}.infinite-list[data-v-12d2a294]{left:0;right:0;top:0;position:absolute}.infinite-list-item[data-v-12d2a294]{color:#555;box-sizing:border-box}:root{--device-offline-color: rgb(168, 168, 168);--device-online-color: rgb(1, 172, 1);--group-name-width: 160px;--device-opts-width: 80px}.group-head-db-click[data-v-6caa5080],.group-head-db-click .group-name[data-v-6caa5080]{cursor:pointer;user-select:none;position:relative}.group-head-count[data-v-6caa5080]{position:absolute;left:0px;display:inline-block;width:24px;height:24px;line-height:24px;top:calc(50% - 12px);text-align:center;font-size:10px}.device-show-div[data-v-6caa5080]{max-height:400px;overflow-y:auto}.dark .handle-ls-svg[data-v-6caa5080]{color:#fff}.handle-ls-svg[data-v-6caa5080]{vertical-align:-5px;cursor:pointer;margin-right:5px;color:#383838}.group-avatar[data-v-6caa5080]{vertical-align:-6px;color:gray}.device[data-v-6caa5080],.group[data-v-6caa5080]{margin:5px 0}.group-name[data-v-6caa5080]{display:inline-block;width:var(--group-name-width);cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle;line-height:24px;padding-left:5px}.group-slot[data-v-6caa5080]{display:inline-block;width:calc(100% - var(--group-name-width) - 100px)}.device-slot[data-v-6caa5080]{display:inline-block;width:calc(var(--device-opts-width))}.device-avatar[data-v-6caa5080]{vertical-align:-2px;margin-right:4px;margin-left:2px;color:var(--device-offline-color)}.device-name[data-v-6caa5080]{display:inline-block;width:calc(100% - var(--device-opts-width) - 42px);cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;color:var(--device-offline-color);padding-left:5px}.online-device .device-avatar[data-v-6caa5080],.online-device .device-name[data-v-6caa5080]{color:var(--device-online-color)}:root{--sec-main-search-height: 32px }.device-group-list[data-v-beb643d9]{height:100%}.device-group-list .search-panel[data-v-beb643d9]{height:var(--sec-main-search-height)}.device-group-list .device-panel[data-v-beb643d9]{height:calc(100% - var(--sec-main-search-height));overflow-y:auto}.svg-style[data-v-2a8e4593]{height:24px;background-color:#ddd;display:inline-block;vertical-align:middle;width:24px}.layout-item[data-v-2a8e4593]{border-radius:5px;display:inline-block;cursor:pointer;box-sizing:border-box;border:2px solid rgba(0,0,0,0)}.layout-item[data-v-2a8e4593]:hover{border:2px solid rgb(212,212,212)}.layout-item-select[data-v-2a8e4593]:hover,.layout-item-select[data-v-2a8e4593]{border:2px solid rgb(177,177,177)}.play-area[data-v-e6baa31a]{border-right:0px;border-top:0px}.area-item[data-v-c3d9b21a]{height:100%;width:100%;border:1px solid black}.area-select[data-v-c3d9b21a]{background-color:#7fffd4}.close-btn[data-v-c3d9b21a]{color:red;cursor:pointer}.close-btn[data-v-c3d9b21a]:hover{opacity:.5}.area-select-cant[data-v-c3d9b21a]{background-color:red}.area-compose[data-v-c3d9b21a]{background-color:azure}.col-add-btn[data-v-c3d9b21a]{margin-top:4px;width:100%;border:1px solid grey;cursor:pointer;text-align:center}.row-add-btn[data-v-c3d9b21a]{height:100%;width:20px;position:absolute;right:-26px;top:0px;border:1px solid grey;cursor:pointer}.row-add-btn[data-v-c3d9b21a]:hover,.col-add-btn[data-v-c3d9b21a]:hover{color:gray;background-color:#ebebeb}.row-remove-btn[data-v-c3d9b21a],.col-remove-btn[data-v-c3d9b21a]{position:absolute}.plus-custom-layout[data-v-f8b51862]{margin-left:30px;cursor:pointer}.plus-custom-layout[data-v-f8b51862]:hover{opacity:.6}.layout-switcher[data-v-6348e5ec]{position:relative;color:#000;display:inline-block}.switch-switcher[data-v-6348e5ec]{background-color:#ddd;cursor:pointer}.switch-panel[data-v-6348e5ec]{border-radius:5px;width:310px;position:absolute;background-color:#fff;border:1px solid grey}.layout-display[data-v-4e937302]{display:inline-block;width:60px;height:32px;padding:4px;text-align:center;cursor:pointer}.layout-panel-item-container[data-v-2366cec9]{padding:2px;display:inline-block;border:1px dashed grey;margin:1px}.options[data-v-e67bc3bb]{cursor:pointer;background-color:#faebd7;border-radius:5px;font-size:13px;text-align:center;border:1px solid rgb(155,155,155)}.options[data-v-e67bc3bb]:hover{background-color:#faefda;border:1px solid rgb(155,155,155)}.close-btn[data-v-e67bc3bb]{height:24px;width:40px;position:absolute;left:calc(50% - 20px);top:calc(50% - 12px);background-color:#ff5858;border-radius:5px;text-align:center;cursor:pointer;border:1px solid rgb(100,100,100);display:none}.close-btn[data-v-e67bc3bb]:hover{background-color:#ff7878;border:1px solid rgb(214,214,214)}.close-svg[data-v-e67bc3bb]{line-height:32px}.layout-container:hover .close-btn[data-v-e67bc3bb]{display:block}.area-item[data-v-72eb3410]{height:calc(100% - 1px);width:calc(100% - 1px);border-left:1px solid black;border-top:1px solid black;box-sizing:content-box;user-select:none}.area-layout[data-v-72eb3410]{border-right:1px solid black;border-bottom:1px solid black}.current-area[data-v-72eb3410]{border-left:1px solid black;border-top:1px solid black;opacity:.8;position:absolute;background-color:#91cdf0;pointer-events:none;border-radius:10px}.close-svg[data-v-72eb3410]{cursor:pointer;position:absolute;right:10px;top:10px;pointer-events:all;color:red}.close-svg path[data-v-72eb3410]{fill:red!important}.dash-border[data-v-f8acefb3]{display:inline-block;border:1px dashed grey;margin:1px;box-sizing:border-box;padding:2px}.add-col-panel[data-v-f8acefb3],.add-col-panel-del[data-v-f8acefb3],.add-col-panel-add[data-v-f8acefb3]{display:inline-block;vertical-align:top;font-weight:700;font-size:24px;margin-left:1px;cursor:pointer;width:27px;text-align:center;border-radius:5px;box-sizing:border-box}.add-col-panel-add[data-v-f8acefb3]{background-color:#b9b9b9;height:calc(50% - 5px);padding-top:5px}.add-col-panel-del[data-v-f8acefb3]{background-color:#fa5252;height:calc(50% - 5px);margin-top:10px}.add-row-panel[data-v-f8acefb3]{display:inline-block;vertical-align:top;font-weight:700;font-size:24px;cursor:pointer;width:100%;margin-top:1px;border-radius:5px;box-sizing:border-box}.add-row-panel-add[data-v-f8acefb3]{background-color:#b9b9b9;text-align:center;display:inline-block;vertical-align:top;font-weight:700;font-size:24px;cursor:pointer;width:100%;margin-top:1px;border-radius:5px;box-sizing:border-box;margin-left:10px}.add-row-panel-remove[data-v-f8acefb3]{background-color:#fa5252;text-align:center;display:inline-block;vertical-align:top;font-weight:700;font-size:24px;cursor:pointer;width:100%;margin-top:1px;border-radius:5px;box-sizing:border-box}.layout-svg[data-v-4e8abd6b]{display:inline-block;height:32px;background-color:#ddd}.layout-text[data-v-4e8abd6b]{display:inline-block;height:32px;vertical-align:top;line-height:32px}.layout-panel-item-container[data-v-4e8abd6b]{padding:2px;display:inline-block;border:1px dashed grey;margin:1px}.layout-panel-item[data-v-4e8abd6b]{width:64px;display:inline-block;height:32px;text-align:center;box-sizing:content-box;border:2px solid transparent;padding:2px;border-radius:5px;user-select:none}.layout-panel-item[data-v-4e8abd6b]:hover{border:2px solid rgb(173,173,173);cursor:pointer}
package/lib/comp.d.ts CHANGED
@@ -6,6 +6,7 @@ export {}
6
6
 
7
7
  declare module '@vue/runtime-core' {
8
8
  export interface GlobalComponents {
9
+ MultiVideoAreaLayoutCustom: typeof import('./components/multi-video-area-layout-custom/index.vue')['default']
9
10
  MultiVideoAreaLayoutSwitch: typeof import('./components/multi-video-area-layout-switch/index.vue')['default']
10
11
  RecursionDeviceGroup: typeof import('./components/recursion-device-group/index.vue')['default']
11
12
  VideoAreasLayoutShow: typeof import('./components/video-areas-layout-show/index.vue')['default']
@@ -1,6 +1,15 @@
1
+ import { PropType } from "vue";
1
2
  import { VideoAreaLayout } from "./model";
2
3
  import { i18nT } from '../../locales';
3
- declare const _sfc_main: import("vue").DefineComponent<{}, {
4
+ declare const _sfc_main: import("vue").DefineComponent<{
5
+ layouts: {
6
+ type: PropType<{
7
+ cols: number;
8
+ rows: number;
9
+ areas?: [leftTopX: number, leftTopY: number, rightBottonX: number, rightBottonY: number][] | undefined;
10
+ }[]>;
11
+ };
12
+ }, {
4
13
  i18nT: typeof i18nT;
5
14
  selectClassicalLayout: (row: number, col: number, record?: boolean | undefined) => void;
6
15
  selectLoyoutById: (id: string, record?: boolean | undefined) => void;
@@ -9,10 +18,10 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
9
18
  $data: {};
10
19
  $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
11
20
  defaultLayout: {
12
- type: import("vue").PropType<VideoAreaLayout.ILayout>;
21
+ type: PropType<VideoAreaLayout.ILayout>;
13
22
  };
14
23
  layouts: {
15
- type: import("vue").PropType<VideoAreaLayout.ILayout[]>;
24
+ type: PropType<VideoAreaLayout.ILayout[]>;
16
25
  };
17
26
  }>> & {
18
27
  onOnselect?: ((layout: VideoAreaLayout.ILayoutChangeEvent, svg: string) => any) | undefined;
@@ -32,42 +41,17 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
32
41
  $el: any;
33
42
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
34
43
  defaultLayout: {
35
- type: import("vue").PropType<VideoAreaLayout.ILayout>;
44
+ type: PropType<VideoAreaLayout.ILayout>;
36
45
  };
37
46
  layouts: {
38
- type: import("vue").PropType<VideoAreaLayout.ILayout[]>;
47
+ type: PropType<VideoAreaLayout.ILayout[]>;
39
48
  };
40
49
  }>> & {
41
50
  onOnselect?: ((layout: VideoAreaLayout.ILayoutChangeEvent, svg: string) => any) | undefined;
42
51
  }, {
43
- layoutInfos: import("vue").Ref<{
52
+ layoutInfos: import("vue").ComputedRef<{
44
53
  svg: string;
45
- layout: {
46
- name: string;
47
- row: number;
48
- col: number;
49
- count: number;
50
- area?: {
51
- leftTop: {
52
- row: number;
53
- col: number;
54
- };
55
- rightBottom: {
56
- row: number;
57
- col: number;
58
- };
59
- } | undefined;
60
- areas?: {
61
- leftTop: {
62
- row: number;
63
- col: number;
64
- };
65
- rightBottom: {
66
- row: number;
67
- col: number;
68
- };
69
- }[] | undefined;
70
- };
54
+ layout: VideoAreaLayout.ILayout;
71
55
  select: boolean;
72
56
  }[]>;
73
57
  }, unknown, {}, {
@@ -101,42 +85,17 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
101
85
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
102
86
  } & Readonly<import("vue").ExtractPropTypes<{
103
87
  defaultLayout: {
104
- type: import("vue").PropType<VideoAreaLayout.ILayout>;
88
+ type: PropType<VideoAreaLayout.ILayout>;
105
89
  };
106
90
  layouts: {
107
- type: import("vue").PropType<VideoAreaLayout.ILayout[]>;
91
+ type: PropType<VideoAreaLayout.ILayout[]>;
108
92
  };
109
93
  }>> & {
110
94
  onOnselect?: ((layout: VideoAreaLayout.ILayoutChangeEvent, svg: string) => any) | undefined;
111
95
  } & import("vue").ShallowUnwrapRef<{
112
- layoutInfos: import("vue").Ref<{
96
+ layoutInfos: import("vue").ComputedRef<{
113
97
  svg: string;
114
- layout: {
115
- name: string;
116
- row: number;
117
- col: number;
118
- count: number;
119
- area?: {
120
- leftTop: {
121
- row: number;
122
- col: number;
123
- };
124
- rightBottom: {
125
- row: number;
126
- col: number;
127
- };
128
- } | undefined;
129
- areas?: {
130
- leftTop: {
131
- row: number;
132
- col: number;
133
- };
134
- rightBottom: {
135
- row: number;
136
- col: number;
137
- };
138
- }[] | undefined;
139
- };
98
+ layout: VideoAreaLayout.ILayout;
140
99
  select: boolean;
141
100
  }[]>;
142
101
  }> & {} & {
@@ -151,7 +110,40 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
151
110
  showSelectPanel: import("vue").Ref<boolean>;
152
111
  onselect: (layoutSelect: VideoAreaLayout.ILayoutChangeEvent, svg: string) => void;
153
112
  svgSelect: import("vue").Ref<string>;
154
- layout: VideoAreaLayout.ILayout[];
113
+ layout: {
114
+ name: string;
115
+ row: number;
116
+ col: number;
117
+ count: number;
118
+ area?: {
119
+ leftTop: {
120
+ row: number;
121
+ col: number;
122
+ };
123
+ rightBottom: {
124
+ row: number;
125
+ col: number;
126
+ };
127
+ } | undefined;
128
+ areas?: {
129
+ leftTop: {
130
+ row: number;
131
+ col: number;
132
+ };
133
+ rightBottom: {
134
+ row: number;
135
+ col: number;
136
+ };
137
+ }[] | undefined;
138
+ }[];
155
139
  defaultLayout: VideoAreaLayout.ILayout;
156
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
140
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
141
+ layouts: {
142
+ type: PropType<{
143
+ cols: number;
144
+ rows: number;
145
+ areas?: [leftTopX: number, leftTopY: number, rightBottonX: number, rightBottonY: number][] | undefined;
146
+ }[]>;
147
+ };
148
+ }>>, {}>;
157
149
  export default _sfc_main;
@@ -15,6 +15,14 @@ export declare namespace VideoAreaLayout {
15
15
  area?: IArea;
16
16
  areas?: Array<IArea>;
17
17
  }
18
+ interface ILayoutSlotParams {
19
+ id: string;
20
+ row: number;
21
+ col: number;
22
+ w: number;
23
+ h: number;
24
+ areas: Array<IArea>;
25
+ }
18
26
  interface ILayoutChangeEvent {
19
27
  layout: ILayout;
20
28
  cancel: boolean;
@@ -22,6 +30,19 @@ export declare namespace VideoAreaLayout {
22
30
  interface IAreaIdentifier extends IAreaInfo {
23
31
  areas: Array<IAreaInfo>;
24
32
  }
33
+ interface ILayoutsSaved {
34
+ layouts: Array<{
35
+ layout: VideoAreaLayout.ILayout;
36
+ locatoin: {
37
+ col: number;
38
+ row: number;
39
+ };
40
+ }>;
41
+ meta: {
42
+ row: number;
43
+ col: number;
44
+ };
45
+ }
25
46
  interface IAreaInfo {
26
47
  id: string;
27
48
  row: number;
@@ -4,3 +4,5 @@ export declare enum DeviceListNameDisplayStyle {
4
4
  }
5
5
  export declare function SetDeviceListNameDisplayStyle(deviceListNameDisplayStyle: DeviceListNameDisplayStyle): void;
6
6
  export declare function GetDeviceListNameDisplayStyle(): import("vue").Ref<DeviceListNameDisplayStyle>;
7
+ export declare function SetIsHideDeviceIdInDeviceDisplay(bHide: boolean): void;
8
+ export declare function GetIsHideDeviceIdInDeviceDisplay(): import("vue").Ref<boolean>;
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { App } from "vue";
2
2
  import { EnumLang } from './locales';
3
3
  import { DeviceListNameDisplayStyle } from "./config";
4
- export { DeviceListNameDisplayStyle, SetDeviceListNameDisplayStyle } from "./config";
4
+ export { DeviceListNameDisplayStyle, SetDeviceListNameDisplayStyle, SetIsHideDeviceIdInDeviceDisplay, GetIsHideDeviceIdInDeviceDisplay, } from "./config";
5
5
  export * from "./comp.d";
6
6
  export * from "./components";
7
7
  declare const _default: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smarteye-e-components",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "description": "",
5
5
  "main": "./dist/smarteye-e-components.mjs",
6
6
  "scripts": {