@operato/scene-integration 0.0.23 → 0.1.0

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 (92) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/connection-control.js +2 -3
  3. package/dist/connection-control.js.map +1 -1
  4. package/dist/connection-state-subscription.js +2 -3
  5. package/dist/connection-state-subscription.js.map +1 -1
  6. package/dist/data-subscription.js +2 -3
  7. package/dist/data-subscription.js.map +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/scenario-control.js +2 -3
  10. package/dist/scenario-control.js.map +1 -1
  11. package/dist/scenario-instance-subscription.js +2 -3
  12. package/dist/scenario-instance-subscription.js.map +1 -1
  13. package/dist/scenario-queue-subscription.js +2 -3
  14. package/dist/scenario-queue-subscription.js.map +1 -1
  15. package/dist/scenario-run.js +2 -3
  16. package/dist/scenario-run.js.map +1 -1
  17. package/dist/scenario-start.js +2 -3
  18. package/dist/scenario-start.js.map +1 -1
  19. package/dist/scenario-stop.js +2 -3
  20. package/dist/scenario-stop.js.map +1 -1
  21. package/dist/templates/connection-control.d.ts +1 -1
  22. package/dist/templates/connection-control.js +1 -1
  23. package/dist/templates/connection-control.js.map +1 -1
  24. package/dist/templates/connection-state-subscription.d.ts +1 -1
  25. package/dist/templates/connection-state-subscription.js +1 -1
  26. package/dist/templates/connection-state-subscription.js.map +1 -1
  27. package/dist/templates/data-subscription.d.ts +1 -1
  28. package/dist/templates/data-subscription.js +1 -1
  29. package/dist/templates/data-subscription.js.map +1 -1
  30. package/dist/templates/index.d.ts +1 -1
  31. package/dist/templates/scenario-control.d.ts +1 -1
  32. package/dist/templates/scenario-control.js +1 -1
  33. package/dist/templates/scenario-control.js.map +1 -1
  34. package/dist/templates/scenario-instance-subscription.d.ts +1 -1
  35. package/dist/templates/scenario-instance-subscription.js +1 -1
  36. package/dist/templates/scenario-instance-subscription.js.map +1 -1
  37. package/dist/templates/scenario-queue-subscription.d.ts +1 -1
  38. package/dist/templates/scenario-queue-subscription.js +1 -1
  39. package/dist/templates/scenario-queue-subscription.js.map +1 -1
  40. package/dist/templates/scenario-run.d.ts +1 -1
  41. package/dist/templates/scenario-run.js +1 -1
  42. package/dist/templates/scenario-run.js.map +1 -1
  43. package/dist/templates/scenario-start.d.ts +1 -1
  44. package/dist/templates/scenario-start.js +1 -1
  45. package/dist/templates/scenario-start.js.map +1 -1
  46. package/dist/templates/scenario-stop.d.ts +1 -1
  47. package/dist/templates/scenario-stop.js +1 -1
  48. package/dist/templates/scenario-stop.js.map +1 -1
  49. package/{assets → icons}/icon-camera-stream.png +0 -0
  50. package/{assets → icons}/icon-connection-control.png +0 -0
  51. package/{assets → icons}/icon-connection-state-subscription.png +0 -0
  52. package/{assets → icons}/icon-data-subscription.png +0 -0
  53. package/{assets → icons}/icon-integration.png +0 -0
  54. package/{assets → icons}/icon-scenario-control.png +0 -0
  55. package/{assets → icons}/icon-scenario-instance-subscription.png +0 -0
  56. package/{assets → icons}/icon-scenario-queue-subscription.png +0 -0
  57. package/{assets → icons}/icon-scenario-run.png +0 -0
  58. package/{assets → icons}/icon-scenario-start.png +0 -0
  59. package/{assets → icons}/icon-scenario-stop.png +0 -0
  60. package/{assets → icons}/no-image.png +0 -0
  61. package/{assets → icons}/symbol-connection-control.png +0 -0
  62. package/{assets → icons}/symbol-connection-state-subscription.png +0 -0
  63. package/{assets → icons}/symbol-data-subscription.png +0 -0
  64. package/{assets → icons}/symbol-integration.png +0 -0
  65. package/{assets → icons}/symbol-scenario-control.png +0 -0
  66. package/{assets → icons}/symbol-scenario-instance-subscription.png +0 -0
  67. package/{assets → icons}/symbol-scenario-queue-subscription.png +0 -0
  68. package/{assets → icons}/symbol-scenario-run.png +0 -0
  69. package/{assets → icons}/symbol-scenario-start.png +0 -0
  70. package/{assets → icons}/symbol-scenario-stop.png +0 -0
  71. package/package.json +7 -7
  72. package/src/connection-control.ts +3 -3
  73. package/src/connection-state-subscription.ts +7 -4
  74. package/src/data-subscription.ts +3 -3
  75. package/src/scenario-control.ts +3 -3
  76. package/src/scenario-instance-subscription.ts +7 -4
  77. package/src/scenario-queue-subscription.ts +6 -3
  78. package/src/scenario-run.ts +3 -3
  79. package/src/scenario-start.ts +3 -3
  80. package/src/scenario-stop.ts +3 -3
  81. package/src/templates/connection-control.ts +1 -1
  82. package/src/templates/connection-state-subscription.ts +1 -1
  83. package/src/templates/data-subscription.ts +1 -1
  84. package/src/templates/scenario-control.ts +1 -1
  85. package/src/templates/scenario-instance-subscription.ts +1 -1
  86. package/src/templates/scenario-queue-subscription.ts +1 -1
  87. package/src/templates/scenario-run.ts +1 -1
  88. package/src/templates/scenario-start.ts +1 -1
  89. package/src/templates/scenario-stop.ts +1 -1
  90. package/tsconfig.json +1 -1
  91. package/tsconfig.tsbuildinfo +1 -1
  92. package/@types/global/index.d.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"scenario-control.js","sourceRoot":"","sources":["../../src/templates/scenario-control.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,wCAAwC,CAAA;AAEzD,eAAe;IACb,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,WAAW,EAAE,EAAE;QACf,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["import icon from '../../assets/icon-scenario-control.png'\n\nexport default {\n type: 'scenario-control',\n description: 'scenario-control',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-control',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n controlType: '',\n hidden: true\n }\n}\n"]}
1
+ {"version":3,"file":"scenario-control.js","sourceRoot":"","sources":["../../src/templates/scenario-control.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,uCAAuC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEnF,eAAe;IACb,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,WAAW,EAAE,EAAE;QACf,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-scenario-control.png', import.meta.url).href\n\nexport default {\n type: 'scenario-control',\n description: 'scenario-control',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-control',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n controlType: '',\n hidden: true\n }\n}\n"]}
@@ -2,7 +2,7 @@ declare const _default: {
2
2
  type: string;
3
3
  description: string;
4
4
  group: string;
5
- icon: any;
5
+ icon: string;
6
6
  model: {
7
7
  type: string;
8
8
  left: number;
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-queue-subscription.png';
1
+ const icon = new URL('../../icons/icon-scenario-queue-subscription.png', import.meta.url).href;
2
2
  export default {
3
3
  type: 'scenario-queue-subscription',
4
4
  description: 'scenario-queue-subscription',
@@ -1 +1 @@
1
- {"version":3,"file":"scenario-instance-subscription.js","sourceRoot":"","sources":["../../src/templates/scenario-instance-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mDAAmD,CAAA;AAEpE,eAAe;IACb,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,6BAA6B;QACnC,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["import icon from '../../assets/icon-scenario-queue-subscription.png'\n\nexport default {\n type: 'scenario-queue-subscription',\n description: 'scenario-queue-subscription',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-queue-subscription',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
1
+ {"version":3,"file":"scenario-instance-subscription.js","sourceRoot":"","sources":["../../src/templates/scenario-instance-subscription.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,kDAAkD,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE9F,eAAe;IACb,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,6BAA6B;QACnC,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-scenario-queue-subscription.png', import.meta.url).href\n\nexport default {\n type: 'scenario-queue-subscription',\n description: 'scenario-queue-subscription',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-queue-subscription',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
@@ -2,7 +2,7 @@ declare const _default: {
2
2
  type: string;
3
3
  description: string;
4
4
  group: string;
5
- icon: any;
5
+ icon: string;
6
6
  model: {
7
7
  type: string;
8
8
  left: number;
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-instance-subscription.png';
1
+ const icon = new URL('../../icons/icon-scenario-instance-subscription.png', import.meta.url).href;
2
2
  export default {
3
3
  type: 'scenario-instance-subscription',
4
4
  description: 'scenario-instance-subscription',
@@ -1 +1 @@
1
- {"version":3,"file":"scenario-queue-subscription.js","sourceRoot":"","sources":["../../src/templates/scenario-queue-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,sDAAsD,CAAA;AAEvE,eAAe;IACb,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,gCAAgC;QACtC,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["import icon from '../../assets/icon-scenario-instance-subscription.png'\n\nexport default {\n type: 'scenario-instance-subscription',\n description: 'scenario-instance-subscription',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-instance-subscription',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
1
+ {"version":3,"file":"scenario-queue-subscription.js","sourceRoot":"","sources":["../../src/templates/scenario-queue-subscription.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,qDAAqD,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEjG,eAAe;IACb,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,gCAAgC;QACtC,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-scenario-instance-subscription.png', import.meta.url).href\n\nexport default {\n type: 'scenario-instance-subscription',\n description: 'scenario-instance-subscription',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-instance-subscription',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
@@ -2,7 +2,7 @@ declare const _default: {
2
2
  type: string;
3
3
  description: string;
4
4
  group: string;
5
- icon: any;
5
+ icon: string;
6
6
  model: {
7
7
  type: string;
8
8
  left: number;
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-run.png';
1
+ const icon = new URL('../../icons/icon-scenario-run.png', import.meta.url).href;
2
2
  export default {
3
3
  type: 'scenario-run',
4
4
  description: 'scenario-run',
@@ -1 +1 @@
1
- {"version":3,"file":"scenario-run.js","sourceRoot":"","sources":["../../src/templates/scenario-run.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,oCAAoC,CAAA;AAErD,eAAe;IACb,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["import icon from '../../assets/icon-scenario-run.png'\n\nexport default {\n type: 'scenario-run',\n description: 'scenario-run',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-run',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
1
+ {"version":3,"file":"scenario-run.js","sourceRoot":"","sources":["../../src/templates/scenario-run.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,mCAAmC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE/E,eAAe;IACb,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-scenario-run.png', import.meta.url).href\n\nexport default {\n type: 'scenario-run',\n description: 'scenario-run',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-run',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
@@ -2,7 +2,7 @@ declare const _default: {
2
2
  type: string;
3
3
  description: string;
4
4
  group: string;
5
- icon: any;
5
+ icon: string;
6
6
  model: {
7
7
  type: string;
8
8
  left: number;
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-start.png';
1
+ const icon = new URL('../../icons/icon-scenario-start.png', import.meta.url).href;
2
2
  export default {
3
3
  type: 'scenario-start',
4
4
  description: 'scenario-start',
@@ -1 +1 @@
1
- {"version":3,"file":"scenario-start.js","sourceRoot":"","sources":["../../src/templates/scenario-start.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,sCAAsC,CAAA;AAEvD,eAAe;IACb,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["import icon from '../../assets/icon-scenario-start.png'\n\nexport default {\n type: 'scenario-start',\n description: 'scenario-start',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-start',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
1
+ {"version":3,"file":"scenario-start.js","sourceRoot":"","sources":["../../src/templates/scenario-start.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,qCAAqC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEjF,eAAe;IACb,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-scenario-start.png', import.meta.url).href\n\nexport default {\n type: 'scenario-start',\n description: 'scenario-start',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-start',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
@@ -2,7 +2,7 @@ declare const _default: {
2
2
  type: string;
3
3
  description: string;
4
4
  group: string;
5
- icon: any;
5
+ icon: string;
6
6
  model: {
7
7
  type: string;
8
8
  left: number;
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-stop.png';
1
+ const icon = new URL('../../icons/icon-scenario-stop.png', import.meta.url).href;
2
2
  export default {
3
3
  type: 'scenario-stop',
4
4
  description: 'scenario-stop',
@@ -1 +1 @@
1
- {"version":3,"file":"scenario-stop.js","sourceRoot":"","sources":["../../src/templates/scenario-stop.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,qCAAqC,CAAA;AAEtD,eAAe;IACb,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["import icon from '../../assets/icon-scenario-stop.png'\n\nexport default {\n type: 'scenario-stop',\n description: 'scenario-stop',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-stop',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
1
+ {"version":3,"file":"scenario-stop.js","sourceRoot":"","sources":["../../src/templates/scenario-stop.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEhF,eAAe;IACb,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,KAAK,EAAE,YAAY;IACnB,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-scenario-stop.png', import.meta.url).href\n\nexport default {\n type: 'scenario-stop',\n description: 'scenario-stop',\n group: 'dataSource',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'scenario-stop',\n left: 10,\n top: 10,\n width: 100,\n height: 100,\n hidden: true\n }\n}\n"]}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@operato/scene-integration",
3
3
  "description": "Things factory integration component for things-scene",
4
- "version": "0.0.23",
4
+ "version": "0.1.0",
5
5
  "license": "MIT",
6
6
  "author": "heartyoh",
7
7
  "main": "dist/index.js",
@@ -26,16 +26,16 @@
26
26
  "migration": "things-factory-migration"
27
27
  },
28
28
  "dependencies": {
29
- "@apollo/client": "^3.4.17",
30
- "@hatiolab/things-scene": "^2.7.30",
29
+ "@apollo/client": "^3.5.6",
30
+ "@hatiolab/things-scene": "^2.7.31",
31
31
  "graphql-tag": "^2.12.6",
32
32
  "subscriptions-transport-ws": "^0.11.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@hatiolab/prettier-config": "^1.0.0",
36
- "@operato/board": "^0.2.51",
37
- "@things-factory/builder": "^4.0.23",
38
- "@things-factory/operato-board": "^4.0.23",
36
+ "@operato/board": "^0.3.1",
37
+ "@things-factory/builder": "^4.0.26",
38
+ "@things-factory/operato-board": "^4.0.26",
39
39
  "@typescript-eslint/eslint-plugin": "^4.33.0",
40
40
  "@typescript-eslint/parser": "^4.33.0",
41
41
  "@web/dev-server": "^0.1.28",
@@ -60,5 +60,5 @@
60
60
  "prettier --write"
61
61
  ]
62
62
  },
63
- "gitHead": "25276846c3b00cb1367c58465fcbbd70d7acdd73"
63
+ "gitHead": "ea310c514bb1bb5b60f14ca455e62515e05fe2c4"
64
64
  }
@@ -1,8 +1,8 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, RectPath, Shape } from '@hatiolab/things-scene'
2
4
 
3
- import COMPONENT_IMAGE from '../assets/symbol-connection-control.png'
4
5
  import { getClient } from './origin-client'
5
- import gql from 'graphql-tag'
6
6
 
7
7
  const NATURE = {
8
8
  mutable: false,
@@ -66,7 +66,7 @@ export default class ConnectionControl extends RectPath(Shape) {
66
66
  static get image() {
67
67
  if (!ConnectionControl._image) {
68
68
  ConnectionControl._image = new Image()
69
- ConnectionControl._image.src = COMPONENT_IMAGE
69
+ ConnectionControl._image.src = new URL('../icons/symbol-connection-control.png', import.meta.url).href
70
70
  }
71
71
  return ConnectionControl._image
72
72
  }
@@ -1,8 +1,8 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, DataSource, RectPath, Shape } from '@hatiolab/things-scene'
2
- import { getClient, subscribe } from './origin-client'
3
4
 
4
- import COMPONENT_IMAGE from '../assets/symbol-connection-state-subscription.png'
5
- import gql from 'graphql-tag'
5
+ import { getClient, subscribe } from './origin-client'
6
6
 
7
7
  const NATURE = {
8
8
  mutable: false,
@@ -43,7 +43,10 @@ export default class ConnectionStateSubscription extends DataSource(RectPath(Sha
43
43
  static get image() {
44
44
  if (!ConnectionStateSubscription._image) {
45
45
  ConnectionStateSubscription._image = new Image()
46
- ConnectionStateSubscription._image.src = COMPONENT_IMAGE
46
+ ConnectionStateSubscription._image.src = new URL(
47
+ '../icons/symbol-connection-state-subscription.png',
48
+ import.meta.url
49
+ ).href
47
50
  }
48
51
 
49
52
  return ConnectionStateSubscription._image
@@ -1,7 +1,7 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, DataSource, RectPath, Shape } from '@hatiolab/things-scene'
2
4
 
3
- import COMPONENT_IMAGE from '../assets/symbol-data-subscription.png'
4
- import gql from 'graphql-tag'
5
5
  import { subscribe } from './origin-client'
6
6
 
7
7
  const NATURE = {
@@ -24,7 +24,7 @@ export default class DataSubscription extends DataSource(RectPath(Shape)) {
24
24
  static get image() {
25
25
  if (!DataSubscription._image) {
26
26
  DataSubscription._image = new Image()
27
- DataSubscription._image.src = COMPONENT_IMAGE
27
+ DataSubscription._image.src = new URL('../icons/symbol-data-subscription.png', import.meta.url).href
28
28
  }
29
29
 
30
30
  return DataSubscription._image
@@ -1,8 +1,8 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, DataSource, Properties, RectPath, Shape } from '@hatiolab/things-scene'
2
4
 
3
- import COMPONENT_IMAGE from '../assets/symbol-scenario-control.png'
4
5
  import { getClient } from './origin-client'
5
- import gql from 'graphql-tag'
6
6
 
7
7
  const NATURE = {
8
8
  mutable: false,
@@ -66,7 +66,7 @@ export default class ScenarioControl extends DataSource(RectPath(Shape)) {
66
66
  static get image() {
67
67
  if (!ScenarioControl._image) {
68
68
  ScenarioControl._image = new Image()
69
- ScenarioControl._image.src = COMPONENT_IMAGE
69
+ ScenarioControl._image.src = new URL('../icons/symbol-scenario-control.png', import.meta.url).href
70
70
  }
71
71
  return ScenarioControl._image
72
72
  }
@@ -1,8 +1,8 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, DataSource, RectPath, Shape } from '@hatiolab/things-scene'
2
- import { getClient, subscribe } from './origin-client'
3
4
 
4
- import COMPONENT_IMAGE from '../assets/symbol-scenario-instance-subscription.png'
5
- import gql from 'graphql-tag'
5
+ import { getClient, subscribe } from './origin-client'
6
6
 
7
7
  const NATURE = {
8
8
  mutable: false,
@@ -49,7 +49,10 @@ export default class ScenarioInstanceSubscription extends DataSource(RectPath(Sh
49
49
  static get image() {
50
50
  if (!ScenarioInstanceSubscription._image) {
51
51
  ScenarioInstanceSubscription._image = new Image()
52
- ScenarioInstanceSubscription._image.src = COMPONENT_IMAGE
52
+ ScenarioInstanceSubscription._image.src = new URL(
53
+ '../icons/symbol-scenario-instance-subscription.png',
54
+ import.meta.url
55
+ ).href
53
56
  }
54
57
 
55
58
  return ScenarioInstanceSubscription._image
@@ -1,7 +1,7 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, DataSource, RectPath, Shape } from '@hatiolab/things-scene'
2
4
 
3
- import COMPONENT_IMAGE from '../assets/symbol-scenario-queue-subscription.png'
4
- import gql from 'graphql-tag'
5
5
  import { subscribe } from './origin-client'
6
6
 
7
7
  const NATURE = {
@@ -18,7 +18,10 @@ export default class ScenarioQueueSubscription extends DataSource(RectPath(Shape
18
18
  static get image() {
19
19
  if (!ScenarioQueueSubscription._image) {
20
20
  ScenarioQueueSubscription._image = new Image()
21
- ScenarioQueueSubscription._image.src = COMPONENT_IMAGE
21
+ ScenarioQueueSubscription._image.src = new URL(
22
+ '../icons/symbol-scenario-queue-subscription.png',
23
+ import.meta.url
24
+ ).href
22
25
  }
23
26
 
24
27
  return ScenarioQueueSubscription._image
@@ -1,8 +1,8 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, DataSource, Properties, RectPath, Shape } from '@hatiolab/things-scene'
2
4
 
3
- import COMPONENT_IMAGE from '../assets/symbol-scenario-run.png'
4
5
  import { getClient } from './origin-client'
5
- import gql from 'graphql-tag'
6
6
 
7
7
  const NATURE = {
8
8
  mutable: false,
@@ -55,7 +55,7 @@ export default class ScenarioRun extends DataSource(RectPath(Shape)) {
55
55
  static get image() {
56
56
  if (!ScenarioRun._image) {
57
57
  ScenarioRun._image = new Image()
58
- ScenarioRun._image.src = COMPONENT_IMAGE
58
+ ScenarioRun._image.src = new URL('../icons/symbol-scenario-run.png', import.meta.url).href
59
59
  }
60
60
  return ScenarioRun._image
61
61
  }
@@ -1,8 +1,8 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, DataSource, Properties, RectPath, Shape } from '@hatiolab/things-scene'
2
4
 
3
- import COMPONENT_IMAGE from '../assets/symbol-scenario-start.png'
4
5
  import { getClient } from './origin-client'
5
- import gql from 'graphql-tag'
6
6
 
7
7
  const NATURE = {
8
8
  mutable: false,
@@ -55,7 +55,7 @@ export default class ScenarioStart extends DataSource(RectPath(Shape)) {
55
55
  static get image() {
56
56
  if (!ScenarioStart._image) {
57
57
  ScenarioStart._image = new Image()
58
- ScenarioStart._image.src = COMPONENT_IMAGE
58
+ ScenarioStart._image.src = new URL('../icons/symbol-scenario-start.png', import.meta.url).href
59
59
  }
60
60
  return ScenarioStart._image
61
61
  }
@@ -1,8 +1,8 @@
1
+ import gql from 'graphql-tag'
2
+
1
3
  import { Component, DataSource, Properties, RectPath, Shape } from '@hatiolab/things-scene'
2
4
 
3
- import COMPONENT_IMAGE from '../assets/symbol-scenario-stop.png'
4
5
  import { getClient } from './origin-client'
5
- import gql from 'graphql-tag'
6
6
 
7
7
  const NATURE = {
8
8
  mutable: false,
@@ -50,7 +50,7 @@ export default class ScenarioStop extends DataSource(RectPath(Shape)) {
50
50
  static get image() {
51
51
  if (!ScenarioStop._image) {
52
52
  ScenarioStop._image = new Image()
53
- ScenarioStop._image.src = COMPONENT_IMAGE
53
+ ScenarioStop._image.src = new URL('../icons/symbol-scenario-stop.png', import.meta.url).href
54
54
  }
55
55
  return ScenarioStop._image
56
56
  }
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-connection-control.png'
1
+ const icon = new URL('../../icons/icon-connection-control.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'connection-control',
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-connection-state-subscription.png'
1
+ const icon = new URL('../../icons/icon-connection-state-subscription.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'connection-state-subscription',
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-data-subscription.png'
1
+ const icon = new URL('../../icons/icon-data-subscription.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'data-subscription',
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-control.png'
1
+ const icon = new URL('../../icons/icon-scenario-control.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'scenario-control',
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-queue-subscription.png'
1
+ const icon = new URL('../../icons/icon-scenario-queue-subscription.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'scenario-queue-subscription',
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-instance-subscription.png'
1
+ const icon = new URL('../../icons/icon-scenario-instance-subscription.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'scenario-instance-subscription',
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-run.png'
1
+ const icon = new URL('../../icons/icon-scenario-run.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'scenario-run',
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-start.png'
1
+ const icon = new URL('../../icons/icon-scenario-start.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'scenario-start',
@@ -1,4 +1,4 @@
1
- import icon from '../../assets/icon-scenario-stop.png'
1
+ const icon = new URL('../../icons/icon-scenario-stop.png', import.meta.url).href
2
2
 
3
3
  export default {
4
4
  type: 'scenario-stop',
package/tsconfig.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "rootDir": "src",
17
17
  "declaration": true,
18
18
  "incremental": true,
19
- "typeRoots": ["./node_modules", "@types"],
19
+ "typeRoots": ["./node_modules"],
20
20
  "types": ["node"]
21
21
  },
22
22
  "include": ["**/*.ts", "*.d.ts"]