@fmsim/board 1.0.71 → 1.0.72
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/custom-elements.json +182 -176
- package/dist/src/component/etc.js +1 -2
- package/dist/src/component/etc.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.js +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js +1 -1
- package/dist/src/modeller/property-sidebar/effects/property-event-tap.js.map +1 -1
- package/dist/src/ox-board-modeller.js +1 -1
- package/dist/src/ox-board-modeller.js.map +1 -1
- package/dist/src/ox-board-viewer.d.ts +3 -3
- package/dist/src/ox-board-viewer.js +30 -17
- package/dist/src/ox-board-viewer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -2,91 +2,6 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "stories/restful-attachment-selector.stories.ts",
|
|
8
|
-
"declarations": [
|
|
9
|
-
{
|
|
10
|
-
"kind": "variable",
|
|
11
|
-
"name": "meta",
|
|
12
|
-
"default": "{ title: 'Components/RestfulAttachmentSelector', component: 'restful-attachment-selector', argTypes: { category: { control: 'select', options: ['', 'audio', 'video', 'image', 'text', 'application'], description: '첨부파일 카테고리' }, creatable: { control: 'boolean', description: '파일 업로드 가능 여부' }, userName: { control: 'text', description: '사용자 이름' } }, parameters: { layout: 'centered' } } satisfies Meta"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"kind": "variable",
|
|
16
|
-
"name": "Default",
|
|
17
|
-
"type": {
|
|
18
|
-
"text": "Story"
|
|
19
|
-
},
|
|
20
|
-
"default": "{ render: args => html` <restful-attachment-selector .category=${args.category} .creatable=${args.creatable} .userName=${args.userName} style=\"width: 800px; height: 600px;\" ></restful-attachment-selector> `, args: { category: '', creatable: true, userName: 'testUser' } }"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"kind": "variable",
|
|
24
|
-
"name": "WithCategory",
|
|
25
|
-
"type": {
|
|
26
|
-
"text": "Story"
|
|
27
|
-
},
|
|
28
|
-
"default": "{ ...Default, args: { ...Default.args, category: 'document' } }"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"kind": "variable",
|
|
32
|
-
"name": "ReadOnly",
|
|
33
|
-
"type": {
|
|
34
|
-
"text": "Story"
|
|
35
|
-
},
|
|
36
|
-
"default": "{ ...Default, args: { ...Default.args, creatable: false } }"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"kind": "variable",
|
|
40
|
-
"name": "WithTestData",
|
|
41
|
-
"type": {
|
|
42
|
-
"text": "Story"
|
|
43
|
-
},
|
|
44
|
-
"default": "{ ...Default, args: { ...Default.args, category: 'document' }, play: async ({ canvasElement }) => { const selector = canvasElement.querySelector('restful-attachment-selector') as RestfulAttachmentSelector if (selector) { // 테스트 데이터 주입 selector.attachments = [ { id: 'test-1', name: 'test1.txt', description: 'Test file 1', mimetype: 'text/plain', encoding: '7bit', category: 'document', path: 'test1.txt', bulk: '27', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), creatorId: 'testUser', updaterId: 'testUser', fullpath: 'http://localhost:16060/mcs/lv/images/test1.txt', download: 'http://localhost:16060/mcs/lv/downloadFile/test1.txt' }, { id: 'test-2', name: 'test2.jpg', description: 'Test image', mimetype: 'image/jpeg', encoding: '7bit', category: 'image', path: 'test2.jpg', bulk: '1024', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), creatorId: 'testUser', updaterId: 'testUser', fullpath: 'http://localhost:16060/mcs/lv/images/test2.jpg', download: 'http://localhost:16060/mcs/lv/downloadFile/test2.jpg' } ] } } }"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"exports": [
|
|
48
|
-
{
|
|
49
|
-
"kind": "js",
|
|
50
|
-
"name": "default",
|
|
51
|
-
"declaration": {
|
|
52
|
-
"name": "meta",
|
|
53
|
-
"module": "stories/restful-attachment-selector.stories.ts"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"kind": "js",
|
|
58
|
-
"name": "Default",
|
|
59
|
-
"declaration": {
|
|
60
|
-
"name": "Default",
|
|
61
|
-
"module": "stories/restful-attachment-selector.stories.ts"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"kind": "js",
|
|
66
|
-
"name": "WithCategory",
|
|
67
|
-
"declaration": {
|
|
68
|
-
"name": "WithCategory",
|
|
69
|
-
"module": "stories/restful-attachment-selector.stories.ts"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"kind": "js",
|
|
74
|
-
"name": "ReadOnly",
|
|
75
|
-
"declaration": {
|
|
76
|
-
"name": "ReadOnly",
|
|
77
|
-
"module": "stories/restful-attachment-selector.stories.ts"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"kind": "js",
|
|
82
|
-
"name": "WithTestData",
|
|
83
|
-
"declaration": {
|
|
84
|
-
"name": "WithTestData",
|
|
85
|
-
"module": "stories/restful-attachment-selector.stories.ts"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
5
|
{
|
|
91
6
|
"kind": "javascript-module",
|
|
92
7
|
"path": "src/index.ts",
|
|
@@ -1088,9 +1003,10 @@
|
|
|
1088
1003
|
"kind": "field",
|
|
1089
1004
|
"name": "popup",
|
|
1090
1005
|
"type": {
|
|
1091
|
-
"text": "BoardComponentInfo |
|
|
1006
|
+
"text": "BoardComponentInfo | null"
|
|
1092
1007
|
},
|
|
1093
|
-
"privacy": "private"
|
|
1008
|
+
"privacy": "private",
|
|
1009
|
+
"default": "null"
|
|
1094
1010
|
},
|
|
1095
1011
|
{
|
|
1096
1012
|
"kind": "field",
|
|
@@ -1200,6 +1116,11 @@
|
|
|
1200
1116
|
}
|
|
1201
1117
|
]
|
|
1202
1118
|
},
|
|
1119
|
+
{
|
|
1120
|
+
"kind": "field",
|
|
1121
|
+
"name": "resizeHandler",
|
|
1122
|
+
"privacy": "private"
|
|
1123
|
+
},
|
|
1203
1124
|
{
|
|
1204
1125
|
"kind": "method",
|
|
1205
1126
|
"name": "bindSceneEvents"
|
|
@@ -1383,20 +1304,20 @@
|
|
|
1383
1304
|
},
|
|
1384
1305
|
{
|
|
1385
1306
|
"kind": "method",
|
|
1386
|
-
"name": "
|
|
1307
|
+
"name": "onOpenPopup",
|
|
1387
1308
|
"parameters": [
|
|
1388
1309
|
{
|
|
1389
|
-
"name": "
|
|
1310
|
+
"name": "popup",
|
|
1390
1311
|
"type": {
|
|
1391
|
-
"text": "
|
|
1312
|
+
"text": "string"
|
|
1392
1313
|
}
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"name": "value",
|
|
1317
|
+
"type": {
|
|
1318
|
+
"text": "any"
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1400
1321
|
{
|
|
1401
1322
|
"name": "component",
|
|
1402
1323
|
"type": {
|
|
@@ -1783,92 +1704,85 @@
|
|
|
1783
1704
|
},
|
|
1784
1705
|
{
|
|
1785
1706
|
"kind": "javascript-module",
|
|
1786
|
-
"path": "
|
|
1707
|
+
"path": "stories/restful-attachment-selector.stories.ts",
|
|
1787
1708
|
"declarations": [
|
|
1788
1709
|
{
|
|
1789
|
-
"kind": "
|
|
1790
|
-
"
|
|
1791
|
-
"
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
"return": {
|
|
1825
|
-
"type": {
|
|
1826
|
-
"text": "Promise<void>"
|
|
1827
|
-
}
|
|
1828
|
-
},
|
|
1829
|
-
"parameters": [
|
|
1830
|
-
{
|
|
1831
|
-
"name": "key",
|
|
1832
|
-
"type": {
|
|
1833
|
-
"text": "Component"
|
|
1834
|
-
}
|
|
1835
|
-
},
|
|
1836
|
-
{
|
|
1837
|
-
"name": "value",
|
|
1838
|
-
"type": {
|
|
1839
|
-
"text": "any"
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
]
|
|
1843
|
-
},
|
|
1844
|
-
{
|
|
1845
|
-
"kind": "method",
|
|
1846
|
-
"name": "clear",
|
|
1847
|
-
"privacy": "public",
|
|
1848
|
-
"return": {
|
|
1849
|
-
"type": {
|
|
1850
|
-
"text": "Promise<void>"
|
|
1851
|
-
}
|
|
1852
|
-
},
|
|
1853
|
-
"parameters": [
|
|
1854
|
-
{
|
|
1855
|
-
"name": "key",
|
|
1856
|
-
"type": {
|
|
1857
|
-
"text": "Component"
|
|
1858
|
-
}
|
|
1859
|
-
}
|
|
1860
|
-
]
|
|
1861
|
-
}
|
|
1862
|
-
]
|
|
1710
|
+
"kind": "variable",
|
|
1711
|
+
"name": "meta",
|
|
1712
|
+
"default": "{ title: 'Components/RestfulAttachmentSelector', component: 'restful-attachment-selector', argTypes: { category: { control: 'select', options: ['', 'audio', 'video', 'image', 'text', 'application'], description: '첨부파일 카테고리' }, creatable: { control: 'boolean', description: '파일 업로드 가능 여부' }, userName: { control: 'text', description: '사용자 이름' } }, parameters: { layout: 'centered' } } satisfies Meta"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"kind": "variable",
|
|
1716
|
+
"name": "Default",
|
|
1717
|
+
"type": {
|
|
1718
|
+
"text": "Story"
|
|
1719
|
+
},
|
|
1720
|
+
"default": "{ render: args => html` <restful-attachment-selector .category=${args.category} .creatable=${args.creatable} .userName=${args.userName} style=\"width: 800px; height: 600px;\" ></restful-attachment-selector> `, args: { category: '', creatable: true, userName: 'testUser' } }"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"kind": "variable",
|
|
1724
|
+
"name": "WithCategory",
|
|
1725
|
+
"type": {
|
|
1726
|
+
"text": "Story"
|
|
1727
|
+
},
|
|
1728
|
+
"default": "{ ...Default, args: { ...Default.args, category: 'document' } }"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"kind": "variable",
|
|
1732
|
+
"name": "ReadOnly",
|
|
1733
|
+
"type": {
|
|
1734
|
+
"text": "Story"
|
|
1735
|
+
},
|
|
1736
|
+
"default": "{ ...Default, args: { ...Default.args, creatable: false } }"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"kind": "variable",
|
|
1740
|
+
"name": "WithTestData",
|
|
1741
|
+
"type": {
|
|
1742
|
+
"text": "Story"
|
|
1743
|
+
},
|
|
1744
|
+
"default": "{ ...Default, args: { ...Default.args, category: 'document' }, play: async ({ canvasElement }) => { const selector = canvasElement.querySelector('restful-attachment-selector') as RestfulAttachmentSelector if (selector) { // 테스트 데이터 주입 selector.attachments = [ { id: 'test-1', name: 'test1.txt', description: 'Test file 1', mimetype: 'text/plain', encoding: '7bit', category: 'document', path: 'test1.txt', bulk: '27', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), creatorId: 'testUser', updaterId: 'testUser', fullpath: 'http://localhost:16060/mcs/lv/images/test1.txt', download: 'http://localhost:16060/mcs/lv/downloadFile/test1.txt' }, { id: 'test-2', name: 'test2.jpg', description: 'Test image', mimetype: 'image/jpeg', encoding: '7bit', category: 'image', path: 'test2.jpg', bulk: '1024', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), creatorId: 'testUser', updaterId: 'testUser', fullpath: 'http://localhost:16060/mcs/lv/images/test2.jpg', download: 'http://localhost:16060/mcs/lv/downloadFile/test2.jpg' } ] } } }"
|
|
1863
1745
|
}
|
|
1864
1746
|
],
|
|
1865
1747
|
"exports": [
|
|
1866
1748
|
{
|
|
1867
1749
|
"kind": "js",
|
|
1868
|
-
"name": "
|
|
1750
|
+
"name": "default",
|
|
1869
1751
|
"declaration": {
|
|
1870
|
-
"name": "
|
|
1871
|
-
"module": "
|
|
1752
|
+
"name": "meta",
|
|
1753
|
+
"module": "stories/restful-attachment-selector.stories.ts"
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"kind": "js",
|
|
1758
|
+
"name": "Default",
|
|
1759
|
+
"declaration": {
|
|
1760
|
+
"name": "Default",
|
|
1761
|
+
"module": "stories/restful-attachment-selector.stories.ts"
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"kind": "js",
|
|
1766
|
+
"name": "WithCategory",
|
|
1767
|
+
"declaration": {
|
|
1768
|
+
"name": "WithCategory",
|
|
1769
|
+
"module": "stories/restful-attachment-selector.stories.ts"
|
|
1770
|
+
}
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"kind": "js",
|
|
1774
|
+
"name": "ReadOnly",
|
|
1775
|
+
"declaration": {
|
|
1776
|
+
"name": "ReadOnly",
|
|
1777
|
+
"module": "stories/restful-attachment-selector.stories.ts"
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"kind": "js",
|
|
1782
|
+
"name": "WithTestData",
|
|
1783
|
+
"declaration": {
|
|
1784
|
+
"name": "WithTestData",
|
|
1785
|
+
"module": "stories/restful-attachment-selector.stories.ts"
|
|
1872
1786
|
}
|
|
1873
1787
|
}
|
|
1874
1788
|
]
|
|
@@ -1883,7 +1797,7 @@
|
|
|
1883
1797
|
"type": {
|
|
1884
1798
|
"text": "ComponentGroup"
|
|
1885
1799
|
},
|
|
1886
|
-
"default": "{ name: 'etc', description: 'a group of components that have not yet been defined.', icon, templates: [ { type: 'rect', description: 'rectangle shape', icon: rect, group: 'shape', model: { type: 'rect', left: 100, top: 100, width: 100, height: 100, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'ellipse', description: 'ellipse shape', icon: ellipse, group: 'shape', model: { type: 'ellipse', rx: 50, ry: 50, cx: 150, cy: 150, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'triangle', description: 'triangle shape', icon: triangle, group: 'shape', model: { type: 'triangle', x1: 150, y1: 100, x2: 100, y2: 200, x3: 200, y3: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'line', description: 'simple line', icon: lineIcon, group: 'line', model: { type: 'line', x1: 100, y1: 100, x2: 200, y2: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 3, lineDash: 'solid', lineCap: 'butt' } }, { type: 'dash', description: 'dash line', icon: dash, group: 'line', model: { type: 'line', x1: 100, y1: 100, x2: 200, y2: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 3, lineDash: 'round-dot', lineCap: 'butt' } }, { type: 'container', description: 'container shape', icon: container, group: 'container', model: { type: 'container', left: 100, top: 100, width: 400, height: 300, fillStyle: '#fff', strokeStyle: '#999', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'popup', description: 'popup window', icon: popup, group: 'container', model: { type: 'popup', left: 100, top: 100, width: 100, height: 100, fillStyle: '#fff', strokeStyle: 'DarkGoldenRod'
|
|
1800
|
+
"default": "{ name: 'etc', description: 'a group of components that have not yet been defined.', icon, templates: [ { type: 'rect', description: 'rectangle shape', icon: rect, group: 'shape', model: { type: 'rect', left: 100, top: 100, width: 100, height: 100, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'ellipse', description: 'ellipse shape', icon: ellipse, group: 'shape', model: { type: 'ellipse', rx: 50, ry: 50, cx: 150, cy: 150, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'triangle', description: 'triangle shape', icon: triangle, group: 'shape', model: { type: 'triangle', x1: 150, y1: 100, x2: 100, y2: 200, x3: 200, y3: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'line', description: 'simple line', icon: lineIcon, group: 'line', model: { type: 'line', x1: 100, y1: 100, x2: 200, y2: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 3, lineDash: 'solid', lineCap: 'butt' } }, { type: 'dash', description: 'dash line', icon: dash, group: 'line', model: { type: 'line', x1: 100, y1: 100, x2: 200, y2: 200, fillStyle: '#fff', strokeStyle: '#000', alpha: 1, hidden: false, lineWidth: 3, lineDash: 'round-dot', lineCap: 'butt' } }, { type: 'container', description: 'container shape', icon: container, group: 'container', model: { type: 'container', left: 100, top: 100, width: 400, height: 300, fillStyle: '#fff', strokeStyle: '#999', alpha: 1, hidden: false, lineWidth: 1, lineDash: 'solid', lineCap: 'butt' } }, { type: 'popup', description: 'popup window', icon: popup, group: 'container', model: { type: 'popup', left: 100, top: 100, width: 100, height: 100, fillStyle: '#fff', strokeStyle: 'DarkGoldenRod' } } ] }"
|
|
1887
1801
|
}
|
|
1888
1802
|
],
|
|
1889
1803
|
"exports": [
|
|
@@ -2975,6 +2889,98 @@
|
|
|
2975
2889
|
}
|
|
2976
2890
|
]
|
|
2977
2891
|
},
|
|
2892
|
+
{
|
|
2893
|
+
"kind": "javascript-module",
|
|
2894
|
+
"path": "src/data-storage/data-storage.ts",
|
|
2895
|
+
"declarations": [
|
|
2896
|
+
{
|
|
2897
|
+
"kind": "class",
|
|
2898
|
+
"description": "",
|
|
2899
|
+
"name": "DataStorage",
|
|
2900
|
+
"members": [
|
|
2901
|
+
{
|
|
2902
|
+
"kind": "field",
|
|
2903
|
+
"name": "id",
|
|
2904
|
+
"type": {
|
|
2905
|
+
"text": "string"
|
|
2906
|
+
},
|
|
2907
|
+
"privacy": "private",
|
|
2908
|
+
"default": "id"
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
"kind": "method",
|
|
2912
|
+
"name": "load",
|
|
2913
|
+
"privacy": "public",
|
|
2914
|
+
"return": {
|
|
2915
|
+
"type": {
|
|
2916
|
+
"text": "Promise<any>"
|
|
2917
|
+
}
|
|
2918
|
+
},
|
|
2919
|
+
"parameters": [
|
|
2920
|
+
{
|
|
2921
|
+
"name": "key",
|
|
2922
|
+
"type": {
|
|
2923
|
+
"text": "Component"
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
]
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
"kind": "method",
|
|
2930
|
+
"name": "save",
|
|
2931
|
+
"privacy": "public",
|
|
2932
|
+
"return": {
|
|
2933
|
+
"type": {
|
|
2934
|
+
"text": "Promise<void>"
|
|
2935
|
+
}
|
|
2936
|
+
},
|
|
2937
|
+
"parameters": [
|
|
2938
|
+
{
|
|
2939
|
+
"name": "key",
|
|
2940
|
+
"type": {
|
|
2941
|
+
"text": "Component"
|
|
2942
|
+
}
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"name": "value",
|
|
2946
|
+
"type": {
|
|
2947
|
+
"text": "any"
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
]
|
|
2951
|
+
},
|
|
2952
|
+
{
|
|
2953
|
+
"kind": "method",
|
|
2954
|
+
"name": "clear",
|
|
2955
|
+
"privacy": "public",
|
|
2956
|
+
"return": {
|
|
2957
|
+
"type": {
|
|
2958
|
+
"text": "Promise<void>"
|
|
2959
|
+
}
|
|
2960
|
+
},
|
|
2961
|
+
"parameters": [
|
|
2962
|
+
{
|
|
2963
|
+
"name": "key",
|
|
2964
|
+
"type": {
|
|
2965
|
+
"text": "Component"
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
]
|
|
2969
|
+
}
|
|
2970
|
+
]
|
|
2971
|
+
}
|
|
2972
|
+
],
|
|
2973
|
+
"exports": [
|
|
2974
|
+
{
|
|
2975
|
+
"kind": "js",
|
|
2976
|
+
"name": "DataStorage",
|
|
2977
|
+
"declaration": {
|
|
2978
|
+
"name": "DataStorage",
|
|
2979
|
+
"module": "src/data-storage/data-storage.ts"
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
]
|
|
2983
|
+
},
|
|
2978
2984
|
{
|
|
2979
2985
|
"kind": "javascript-module",
|
|
2980
2986
|
"path": "src/layers/mcs-mouse-event-handler.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etc.js","sourceRoot":"","sources":["../../../src/component/etc.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAChF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,uCAAuC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AACtF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,oCAAoC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA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AAe;aAC7B;SACF;KACF;CACF,CAAA","sourcesContent":["import { ComponentGroup } from '../types'\n\nconst rect = new URL('../../../icons/components/rect.png', import.meta.url).href\nconst ellipse = new URL('../../../icons/components/ellipse.png', import.meta.url).href\nconst lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href\nconst dash = new URL('../../../icons/components/dash.png', import.meta.url).href\nconst triangle = new URL('../../../icons/components/triangle.png', import.meta.url).href\nconst container = new URL('../../../icons/components/container.png', import.meta.url).href\nconst popup = new URL('../../../icons/components/popup.png', import.meta.url).href\n\nconst icon = `\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 30 30\" style=\"enable-background:new 0 0 30 30;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <circle class=\"st0\" cx=\"7.1\" cy=\"15\" r=\"2\"/>\n <circle class=\"st0\" cx=\"15\" cy=\"15\" r=\"2\"/>\n <circle class=\"st0\" cx=\"22.9\" cy=\"15\" r=\"2\"/>\n </g>\n</svg>\n`\n\nexport const etc: ComponentGroup = {\n name: 'etc',\n description: 'a group of components that have not yet been defined.',\n icon,\n templates: [\n {\n type: 'rect',\n description: 'rectangle shape',\n icon: rect,\n group: 'shape',\n model: {\n type: 'rect',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'ellipse',\n description: 'ellipse shape',\n icon: ellipse,\n group: 'shape',\n model: {\n type: 'ellipse',\n rx: 50,\n ry: 50,\n cx: 150,\n cy: 150,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'triangle',\n description: 'triangle shape',\n icon: triangle,\n group: 'shape',\n model: {\n type: 'triangle',\n x1: 150,\n y1: 100,\n x2: 100,\n y2: 200,\n x3: 200,\n y3: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'line',\n description: 'simple line',\n icon: lineIcon,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 3,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'dash',\n description: 'dash line',\n icon: dash,\n group: 'line',\n model: {\n type: 'line',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n fillStyle: '#fff',\n strokeStyle: '#000',\n alpha: 1,\n hidden: false,\n lineWidth: 3,\n lineDash: 'round-dot',\n lineCap: 'butt'\n }\n },\n {\n type: 'container',\n description: 'container shape',\n icon: container,\n group: 'container',\n model: {\n type: 'container',\n left: 100,\n top: 100,\n width: 400,\n height: 300,\n fillStyle: '#fff',\n strokeStyle: '#999',\n alpha: 1,\n hidden: false,\n lineWidth: 1,\n lineDash: 'solid',\n lineCap: 'butt'\n }\n },\n {\n type: 'popup',\n description: 'popup window',\n icon: popup,\n group: 'container',\n model: {\n type: 'popup',\n left: 100,\n top: 100,\n width: 100,\n height: 100,\n fillStyle: '#fff',\n strokeStyle: 'DarkGoldenRod'\n }\n }\n ]\n}\n"]}
|
|
@@ -35,7 +35,7 @@ export class PropertyEffects extends ScopedElementsMixin(AbstractProperty) {
|
|
|
35
35
|
<property-shadow value-key="shadow" .value=${value.shadow || {}}> </property-shadow>
|
|
36
36
|
</fieldset>
|
|
37
37
|
|
|
38
|
-
${this.selected.length == 1
|
|
38
|
+
${this.selected.length == 1
|
|
39
39
|
? html ` <property-event value-key="event" .scene=${this.scene} .value=${value.event || {}}> </property-event> `
|
|
40
40
|
: nothing}
|
|
41
41
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effects.js","sourceRoot":"","sources":["../../../../../src/modeller/property-sidebar/effects/effects.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAG5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,OAAO,eAAgB,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IAA1E;;QAK6B,aAAQ,GAAgB,EAAE,CAAA;IA8BvD,CAAC;IA5BC,YAAY;QACV,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAC5E,CAAC;IAED,MAAM,KAAK,cAAc;QACvB,OAAO;YACL,iBAAiB,EAAE,cAAc;YACjC,gBAAgB,EAAE,aAAa;SAChC,CAAA;IACH,CAAC;IAED,MAAM;QACJ,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAA;QAE9B,OAAO,IAAI,CAAA;;;;;;qDAMsC,KAAK,CAAC,MAAM,IAAI,EAAE;;;QAG/D,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"effects.js","sourceRoot":"","sources":["../../../../../src/modeller/property-sidebar/effects/effects.ts"],"names":[],"mappings":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MAAM,EAAE,CAAC;8CAAmB;AAClB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CAAc;AACd;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;iDAA2B","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport '@operato/i18n/ox-i18n.js'\n\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport { Component, Properties, Scene } from '@hatiolab/things-scene'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\n\nimport { AbstractProperty } from '../abstract-property.js'\nimport { PropertySharedStyle } from '../property-shared-style.js'\nimport { PropertyEvent } from './property-event.js'\nimport { PropertyShadow } from './property-shadow.js'\n\nexport class PropertyEffects extends ScopedElementsMixin(AbstractProperty) {\n static styles = [PropertySharedStyle]\n\n @property({ type: Object }) value?: Properties\n @property({ type: Object }) scene?: Scene\n @property({ type: Array }) selected: Component[] = []\n\n firstUpdated() {\n this.renderRoot.addEventListener('change', this._onValueChange.bind(this))\n }\n\n static get scopedElements() {\n return {\n 'property-shadow': PropertyShadow,\n 'property-event': PropertyEvent\n }\n }\n\n render() {\n const value = this.value || {}\n\n return html`\n <fieldset>\n <legend>\n <ox-i18n topic=\"board-modeller/effects/shadow\" msgid=\"label.shadow\">shadow</ox-i18n>\n </legend>\n\n <property-shadow value-key=\"shadow\" .value=${value.shadow || {}}> </property-shadow>\n </fieldset>\n\n ${this.selected.length == 1\n ? html` <property-event value-key=\"event\" .scene=${this.scene} .value=${value.event || {}}> </property-event> `\n : nothing}\n `\n }\n}\n"]}
|
|
@@ -27,8 +27,8 @@ export class PropertyEventTap extends LitElement {
|
|
|
27
27
|
<option value=""></option>
|
|
28
28
|
<option value="link-open">open new window for target link</option>
|
|
29
29
|
<option value="link-move">move to target link</option>
|
|
30
|
+
<option value="open-popup">popup</option>
|
|
30
31
|
<option value="data-toggle">toggle data</option>
|
|
31
|
-
<option value="legend-toggle">toggle legend</option>
|
|
32
32
|
</select>
|
|
33
33
|
|
|
34
34
|
<label> <ox-i18n msgid="label.target">target</ox-i18n> </label>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-event-tap.js","sourceRoot":"","sources":["../../../../../src/modeller/property-sidebar/effects/property-event-tap.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,iCAAiC,CAAA;AACxC,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAInD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAE3C,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAAhD;;QAMW,eAAU,GAA6C,EAAE,CAAA;IAsEpE,CAAC;IApEC,KAAK,CAAC,YAAY;QAChB,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAC5E,CAAC;IAED,MAAM;QACJ,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAA;QAEvD,OAAO,IAAI,CAAA;kFACmE,OAAO;;;;0DAI/B,MAAM,IAAI,EAAE;;;;;;;;;yCAS7B,MAAM,iBAAiB,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;KACtF,CAAA;IACH,CAAC;IAED,cAAc,CAAC,MAAc;QAC3B,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,WAAW,CAAC;YACjB,KAAK,WAAW;gBACd,OAAO,0BAA0B,CAAA;YACnC;gBACE,OAAO,EAAE,CAAA;QACb,CAAC;IACH,CAAC;IAED,cAA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,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAc;AAEhC;IAAR,KAAK,EAAE;oDAA0D","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport '@operato/input/ox-input-data.js'\nimport '@operato/i18n/ox-i18n.js'\n\nimport { html, LitElement } from 'lit'\nimport { property, state } from 'lit/decorators.js'\n\nimport { Properties, Scene } from '@hatiolab/things-scene'\n\nimport { EffectsSharedStyle } from './effects-shared-style'\nimport { convert } from './value-converter'\n\nexport class PropertyEventTap extends LitElement {\n static styles = [EffectsSharedStyle]\n\n @property({ type: Object }) value?: Properties\n @property({ type: Object }) scene?: Scene\n\n @state() targetList: { value: string; description: string }[] = []\n\n async firstUpdated() {\n this.renderRoot.addEventListener('change', this._onValueChange.bind(this))\n }\n\n render() {\n var { action, target = '', pressed } = this.value || {}\n\n return html`\n <input id=\"checkbox-pressed\" type=\"checkbox\" value-key=\"pressed\" .checked=${pressed} />\n <label for=\"checkbox-pressed\" class=\"checkbox-label\"> <ox-i18n msgid=\"label.pressed\">pressed</ox-i18n> </label>\n\n <label> <ox-i18n msgid=\"label.action\">action</ox-i18n> </label>\n <select id=\"tap-select\" value-key=\"action\" .value=${action || ''}>\n <option value=\"\"></option>\n <option value=\"link-open\">open new window for target link</option>\n <option value=\"link-move\">move to target link</option>\n <option value=\"
|
|
1
|
+
{"version":3,"file":"property-event-tap.js","sourceRoot":"","sources":["../../../../../src/modeller/property-sidebar/effects/property-event-tap.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,iCAAiC,CAAA;AACxC,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAInD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAA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AC;aAAM,CAAC;YACN,IAAI,CAAC,KAAK,GAAG;gBACX,GAAG,IAAI,CAAC,KAAK;gBACb,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;aACxB,CAAA;QACH,CAAC;QAED,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAC3B,IAAI,MAAM,KAAK,MAAM,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC,OAAO,CAAC,CAAA,EAAE,CAAC;YACpD,0BAA0B;YAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAA;QAC3B,CAAC;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAClF,CAAC;;AA1EM,uBAAM,GAAG,CAAC,kBAAkB,CAAC,AAAvB,CAAuB;AAER;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAmB;AAClB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAc;AAEhC;IAAR,KAAK,EAAE;oDAA0D","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport '@operato/input/ox-input-data.js'\nimport '@operato/i18n/ox-i18n.js'\n\nimport { html, LitElement } from 'lit'\nimport { property, state } from 'lit/decorators.js'\n\nimport { Properties, Scene } from '@hatiolab/things-scene'\n\nimport { EffectsSharedStyle } from './effects-shared-style'\nimport { convert } from './value-converter'\n\nexport class PropertyEventTap extends LitElement {\n static styles = [EffectsSharedStyle]\n\n @property({ type: Object }) value?: Properties\n @property({ type: Object }) scene?: Scene\n\n @state() targetList: { value: string; description: string }[] = []\n\n async firstUpdated() {\n this.renderRoot.addEventListener('change', this._onValueChange.bind(this))\n }\n\n render() {\n var { action, target = '', pressed } = this.value || {}\n\n return html`\n <input id=\"checkbox-pressed\" type=\"checkbox\" value-key=\"pressed\" .checked=${pressed} />\n <label for=\"checkbox-pressed\" class=\"checkbox-label\"> <ox-i18n msgid=\"label.pressed\">pressed</ox-i18n> </label>\n\n <label> <ox-i18n msgid=\"label.action\">action</ox-i18n> </label>\n <select id=\"tap-select\" value-key=\"action\" .value=${action || ''}>\n <option value=\"\"></option>\n <option value=\"link-open\">open new window for target link</option>\n <option value=\"link-move\">move to target link</option>\n <option value=\"open-popup\">popup</option>\n <option value=\"data-toggle\">toggle data</option>\n </select>\n\n <label> <ox-i18n msgid=\"label.target\">target</ox-i18n> </label>\n <input value-key=\"target\" .value=${target} .placeholder=${this._getPlaceHoder(action)} />\n `\n }\n\n _getPlaceHoder(action: string) {\n switch (action) {\n case 'link-open':\n case 'link-move':\n return 'http://www.hatiolab.com/'\n default:\n return ''\n }\n }\n\n _onValueChange(e: Event) {\n var element = e.target as HTMLElement\n var key = element.getAttribute('value-key')\n\n if (!key) {\n return\n }\n\n if (key === 'input' || key === 'output') {\n var { options = {} } = this.value || {}\n\n this.value = {\n ...this.value,\n options: {\n ...options,\n [key]: convert(element)\n }\n }\n } else {\n this.value = {\n ...this.value,\n [key]: convert(element)\n }\n }\n\n var { action } = this.value\n if (action !== 'goto' && !action?.includes('popup')) {\n /* clear unused options */\n delete this.value.options\n }\n\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n }\n}\n"]}
|
|
@@ -172,7 +172,6 @@ let BoardModeller = class BoardModeller extends ScopedElementsMixin(LitElement)
|
|
|
172
172
|
<ox-scene-property name="paddingTop" value="50" type="number"></ox-scene-property>
|
|
173
173
|
<ox-scene-property name="paddingLeft" value="50" type="number"></ox-scene-property>
|
|
174
174
|
</ox-scene-layer>
|
|
175
|
-
<ox-scene-layer type="decorator-layer"></ox-scene-layer>
|
|
176
175
|
<ox-scene-handler type="text-editor"></ox-scene-handler>
|
|
177
176
|
<ox-scene-handler type="move-handler"></ox-scene-handler>
|
|
178
177
|
</ox-scene-viewer>
|
|
@@ -330,6 +329,7 @@ BoardModeller.styles = [
|
|
|
330
329
|
position: absolute;
|
|
331
330
|
right: 15px;
|
|
332
331
|
bottom: 15px;
|
|
332
|
+
z-index: 1000;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
ox-popup {
|