@fmsim/board 1.0.35 → 1.0.38
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/.storybook/main.ts +58 -0
- package/.storybook/preview.ts +15 -0
- package/custom-elements.json +1947 -874
- package/dist/src/component/index.d.ts +3 -1
- package/dist/src/component/index.js +3 -1
- package/dist/src/component/index.js.map +1 -1
- package/dist/src/component/restful-attachment-creation-card.d.ts +18 -0
- package/dist/src/component/restful-attachment-creation-card.js +264 -0
- package/dist/src/component/restful-attachment-creation-card.js.map +1 -0
- package/dist/src/component/restful-attachment-selector.d.ts +36 -0
- package/dist/src/component/restful-attachment-selector.js +663 -0
- package/dist/src/component/restful-attachment-selector.js.map +1 -0
- package/dist/src/component/restful-file-selector.d.ts +14 -0
- package/dist/src/component/restful-file-selector.js +181 -0
- package/dist/src/component/restful-file-selector.js.map +1 -0
- package/dist/src/component/restful-input-attachment-selector.d.ts +16 -0
- package/dist/src/component/restful-input-attachment-selector.js +110 -0
- package/dist/src/component/restful-input-attachment-selector.js.map +1 -0
- package/dist/src/component/restful-input-fill-style.d.ts +45 -0
- package/dist/src/component/restful-input-fill-style.js +344 -0
- package/dist/src/component/restful-input-fill-style.js.map +1 -0
- package/dist/src/component/restrul-input-background-pattern.d.ts +35 -0
- package/dist/src/component/restrul-input-background-pattern.js +183 -0
- package/dist/src/component/restrul-input-background-pattern.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/modeller/property-sidebar/styles/styles.d.ts +1 -0
- package/dist/src/modeller/property-sidebar/styles/styles.js +5 -1
- package/dist/src/modeller/property-sidebar/styles/styles.js.map +1 -1
- package/dist/stories/restful-attachment-selector.stories.d.ts +30 -0
- package/dist/stories/restful-attachment-selector.stories.js +104 -0
- package/dist/stories/restful-attachment-selector.stories.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/icons/attachment/btn-copy-link-hover.svg +4 -0
- package/icons/attachment/btn-copy-link.svg +4 -0
- package/icons/attachment/btn-delete-hover.svg +4 -0
- package/icons/attachment/btn-delete.svg +4 -0
- package/icons/attachment/btn-download-hover.svg +4 -0
- package/icons/attachment/btn-download.svg +4 -0
- package/icons/attachment/btn-zoom-hover.svg +4 -0
- package/icons/attachment/btn-zoom.svg +4 -0
- package/icons/attachment/file.svg +3 -0
- package/icons/board/btn-add-board.svg +5 -0
- package/icons/board/btn-add-list.svg +5 -0
- package/icons/board/btn-close-dropbox.svg +3 -0
- package/icons/board/btn-edit-hover.svg +4 -0
- package/icons/board/btn-edit.svg +4 -0
- package/icons/board/btn-favorite-hover-on.svg +4 -0
- package/icons/board/btn-favorite-hover.svg +4 -0
- package/icons/board/btn-favorite-on.svg +4 -0
- package/icons/board/btn-favorite.svg +4 -0
- package/icons/board/btn-info-hover.svg +3 -0
- package/icons/board/btn-info.svg +3 -0
- package/icons/board/btn-open-dropbox.svg +3 -0
- package/icons/board/btn-users.svg +4 -0
- package/icons/board/favorite_black.svg +1 -0
- package/icons/group-bar/btn-add-list.png +0 -0
- package/icons/group-bar/btn-close-dropbox.png +0 -0
- package/icons/group-bar/btn-edit.png +0 -0
- package/icons/group-bar/btn-open-dropbox-color.png +0 -0
- package/icons/group-bar/btn-search-name.png +0 -0
- package/package.json +11 -7
- package/stories/restful-attachment-selector.stories.ts +113 -0
- package/.storybook/main.js +0 -3
- package/dist/stories/index.stories.d.ts +0 -33
- package/dist/stories/index.stories.js +0 -33
- package/dist/stories/index.stories.js.map +0 -1
- package/stories/index.stories.ts +0 -52
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#FFF" fill-rule="evenodd" d="M6 8h8v2H6V8zm12.1 1H20c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1zM1.9 9c0-1.71 1.39-3.1 3.1-3.1h4V4H5C2.24 4 0 6.24 0 9s2.24 5 5 5h4v-1.9H5c-1.71 0-3.1-1.39-3.1-3.1zM17 9h-2v3h-3v2h3v3h2v-3h3v-2h-3V9z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#EA6780" fill-rule="evenodd" d="M6 8h8v2H6V8zm12.1 1H20c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1zM1.9 9c0-1.71 1.39-3.1 3.1-3.1h4V4H5C2.24 4 0 6.24 0 9s2.24 5 5 5h4v-1.9H5c-1.71 0-3.1-1.39-3.1-3.1zM17 9h-2v3h-3v2h3v3h2v-3h3v-2h-3V9z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#FFF" fill-rule="evenodd" d="M3.143 17.778C3.143 19 4.171 20 5.429 20h9.142c1.258 0 2.286-1 2.286-2.222V4.444H3.143v13.334zM18 1.111h-4L12.857 0H7.143L6 1.111H2v2.222h16V1.111z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#EA6780" fill-rule="evenodd" d="M3.143 17.778C3.143 19 4.171 20 5.429 20h9.142c1.258 0 2.286-1 2.286-2.222V4.444H3.143v13.334zM18 1.111h-4L12.857 0H7.143L6 1.111H2v2.222h16V1.111z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#FFF" fill-rule="evenodd" d="M17 17H3V3h7V1H3c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM12 1v2h3.59l-9.83 9.83 1.41 1.41L17 4.41V8h2V1h-7z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#EA6780" fill-rule="evenodd" d="M17 17H3V3h7V1H3c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM12 1v2h3.59l-9.83 9.83 1.41 1.41L17 4.41V8h2V1h-7z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40.5" height="40.5">
|
|
2
|
+
<path fill="none" fill-rule="evenodd" stroke="#E96780" stroke-width="3" d="M19.5 4.5c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15 0-8.284 6.716-15 15-15z"/>
|
|
3
|
+
<path fill="#E96780" fill-rule="evenodd" d="M10.5 17.5h19v3h-19v-3z"/>
|
|
4
|
+
<path fill="#E96780" fill-rule="evenodd" d="M18.5 9.5h3v19h-3v-19z"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14.65" height="14.65">
|
|
2
|
+
<path fill="none" fill-rule="evenodd" stroke="#505050" stroke-width="1.3" d="M2.5 5.857h8c.276 0 .5.224.5.5v.286c0 .276-.224.5-.5.5h-8c-.276 0-.5-.224-.5-.5v-.286c0-.276.224-.5.5-.5z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" stroke="#505050" stroke-width="1.3" d="M6.357 2h.286c.276 0 .5.224.5.5v8c0 .276-.224.5-.5.5h-.286c-.276 0-.5-.224-.5-.5v-8c0-.276.224-.5.5-.5z"/>
|
|
4
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h14v14H0V0z"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#FFF" fill-rule="evenodd" d="M.991 15.255v3.757h3.748l11.055-11.08-3.748-3.756L.991 15.255zM18.692 5.027c.39-.39.39-1.022 0-1.412L16.354 1.27c-.39-.39-1.02-.39-1.41 0l-1.829 1.834 3.748 3.757 1.829-1.834z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#EA6780" fill-rule="evenodd" d="M.991 15.255v3.757h3.748l11.055-11.08-3.748-3.756L.991 15.255zM18.692 5.027c.39-.39.39-1.022 0-1.412L16.354 1.27c-.39-.39-1.02-.39-1.41 0l-1.829 1.834 3.748 3.757 1.829-1.834z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#FFF" fill-rule="evenodd" d="M14.5.999c-1.74 0-3.41.794-4.5 2.05C8.91 1.793 7.24.999 5.5.999 2.42.999 0 3.373 0 6.394c0 3.708 3.4 6.73 8.55 11.321L10 19l1.45-1.295C16.6 13.124 20 10.102 20 6.394 20 3.373 17.58.999 14.5.999z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#FFF" fill-rule="evenodd" d="M14.5.999c-1.74 0-3.41.794-4.5 2.05C8.91 1.793 7.24.999 5.5.999 2.42.999 0 3.373 0 6.394c0 3.708 3.4 6.73 8.55 11.321L10 19l1.45-1.295C16.6 13.124 20 10.102 20 6.394 20 3.373 17.58.999 14.5.999zm-4.4 15.254l-.1.099-.1-.099C5.14 12.025 2 9.23 2 6.394c0-1.962 1.5-3.433 3.5-3.433 1.54 0 3.04.971 3.57 2.315h1.87c.52-1.344 2.02-2.315 3.56-2.315 2 0 3.5 1.471 3.5 3.433 0 2.836-3.14 5.631-7.9 9.859z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#EA6780" fill-rule="evenodd" d="M14.5.999c-1.74 0-3.41.794-4.5 2.05C8.91 1.793 7.24.999 5.5.999 2.42.999 0 3.373 0 6.394c0 3.708 3.4 6.73 8.55 11.321L10 19l1.45-1.295C16.6 13.124 20 10.102 20 6.394 20 3.373 17.58.999 14.5.999z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
|
2
|
+
<path fill="#EA6780" fill-rule="evenodd" d="M14.5.999c-1.74 0-3.41.794-4.5 2.05C8.91 1.793 7.24.999 5.5.999 2.42.999 0 3.373 0 6.394c0 3.708 3.4 6.73 8.55 11.321L10 19l1.45-1.295C16.6 13.124 20 10.102 20 6.394 20 3.373 17.58.999 14.5.999zm-4.4 15.254l-.1.099-.1-.099C5.14 12.025 2 9.23 2 6.394c0-1.962 1.5-3.433 3.5-3.433 1.54 0 3.04.971 3.57 2.315h1.87c.52-1.344 2.02-2.315 3.56-2.315 2 0 3.5 1.471 3.5 3.433 0 2.836-3.14 5.631-7.9 9.859z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h20v20H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25">
|
|
2
|
+
<path fill="#A5A5A5" fill-rule="evenodd" d="M17.045 11.964c1.887 0 3.398-1.555 3.398-3.482C20.443 6.555 18.932 5 17.045 5c-1.886 0-3.409 1.555-3.409 3.482 0 1.927 1.523 3.482 3.409 3.482zm-9.09 0c1.886 0 3.397-1.555 3.397-3.482C11.352 6.555 9.841 5 7.955 5c-1.887 0-3.41 1.555-3.41 3.482 0 1.927 1.523 3.482 3.41 3.482zm0 2.322C5.307 14.286 0 15.644 0 18.348v2.902h15.909v-2.902c0-2.704-5.307-4.062-7.954-4.062zm9.09 0c-.329 0-.704.023-1.102.058 1.318.975 2.239 2.286 2.239 4.004v2.902H25v-2.902c0-2.704-5.307-4.062-7.955-4.062z"/>
|
|
3
|
+
<path fill="none" fill-rule="evenodd" d="M0 0h25v25H0V0z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fmsim/board",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"description": "보드 구성을 위한 기본 UI (웹)컴포넌트들을 제공합니다.",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"./ox-property-editor-board-selector.js": "./dist/src/ox-property-editor-board-selector.js",
|
|
30
30
|
"./ox-board-selector.js": "./dist/src/selector/ox-board-selector.js",
|
|
31
31
|
"./ox-board-creation-card.js": "./dist/src/selector/ox-board-creation-card.js",
|
|
32
|
-
"./register-default-groups.js": "./dist/src/component/register-default-groups.js"
|
|
32
|
+
"./register-default-groups.js": "./dist/src/component/register-default-groups.js",
|
|
33
|
+
"./restful-attachment-selector.js": "./dist/src/component/restful-attachment-selector.js"
|
|
33
34
|
},
|
|
34
35
|
"typesVersions": {
|
|
35
36
|
"*": {
|
|
@@ -68,6 +69,9 @@
|
|
|
68
69
|
],
|
|
69
70
|
"register-default-groups.js": [
|
|
70
71
|
"./dist/src/component/register-default-groups.d.ts"
|
|
72
|
+
],
|
|
73
|
+
"./restful-attachment-selector.js": [
|
|
74
|
+
"./dist/src/component/restful-attachment-selector.d.ts"
|
|
71
75
|
]
|
|
72
76
|
}
|
|
73
77
|
},
|
|
@@ -80,11 +84,11 @@
|
|
|
80
84
|
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
81
85
|
"test": "tsc && wtr --coverage",
|
|
82
86
|
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
|
83
|
-
"storybook": "
|
|
84
|
-
"storybook
|
|
87
|
+
"storybook": "storybook dev -p 6006",
|
|
88
|
+
"build-storybook": "storybook build"
|
|
85
89
|
},
|
|
86
90
|
"dependencies": {
|
|
87
|
-
"@fmsim/api": "^1.0.
|
|
91
|
+
"@fmsim/api": "^1.0.38",
|
|
88
92
|
"@open-wc/scoped-elements": "^3.0.5",
|
|
89
93
|
"@operato/app": "^1.3.7",
|
|
90
94
|
"@operato/data-grist": "^1.3.5",
|
|
@@ -131,7 +135,7 @@
|
|
|
131
135
|
"lint-staged": "^15.3.0",
|
|
132
136
|
"prettier": "^3.4.2",
|
|
133
137
|
"tslib": "^2.8.1",
|
|
134
|
-
"typescript": "^5.
|
|
138
|
+
"typescript": "^5.8.2"
|
|
135
139
|
},
|
|
136
140
|
"customElements": "custom-elements.json",
|
|
137
141
|
"prettier": "@hatiolab/prettier-config",
|
|
@@ -146,5 +150,5 @@
|
|
|
146
150
|
"prettier --write"
|
|
147
151
|
]
|
|
148
152
|
},
|
|
149
|
-
"gitHead": "
|
|
153
|
+
"gitHead": "f5b6e30361db0aa27c5e38f8ce88d4ecd6841938"
|
|
150
154
|
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { html } from 'lit'
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/web-components'
|
|
3
|
+
import '../src/component/restful-attachment-selector'
|
|
4
|
+
import { RestfulAttachmentSelector } from '../src/component/restful-attachment-selector'
|
|
5
|
+
|
|
6
|
+
sessionStorage.setItem('lv_server_ip_port', 'http://localhost:16060')
|
|
7
|
+
sessionStorage.setItem('lv_server_context_path', '/mcs/lv')
|
|
8
|
+
|
|
9
|
+
const meta = {
|
|
10
|
+
title: 'Components/RestfulAttachmentSelector',
|
|
11
|
+
component: 'restful-attachment-selector',
|
|
12
|
+
argTypes: {
|
|
13
|
+
category: {
|
|
14
|
+
control: 'select',
|
|
15
|
+
options: ['', 'audio', 'video', 'image', 'text', 'application'],
|
|
16
|
+
description: '첨부파일 카테고리'
|
|
17
|
+
},
|
|
18
|
+
creatable: {
|
|
19
|
+
control: 'boolean',
|
|
20
|
+
description: '파일 업로드 가능 여부'
|
|
21
|
+
},
|
|
22
|
+
userName: {
|
|
23
|
+
control: 'text',
|
|
24
|
+
description: '사용자 이름'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
parameters: {
|
|
28
|
+
layout: 'centered'
|
|
29
|
+
}
|
|
30
|
+
} satisfies Meta
|
|
31
|
+
|
|
32
|
+
export default meta
|
|
33
|
+
type Story = StoryObj
|
|
34
|
+
|
|
35
|
+
export const Default: Story = {
|
|
36
|
+
render: args => html`
|
|
37
|
+
<restful-attachment-selector
|
|
38
|
+
.category=${args.category}
|
|
39
|
+
.creatable=${args.creatable}
|
|
40
|
+
.userName=${args.userName}
|
|
41
|
+
style="width: 800px; height: 600px;"
|
|
42
|
+
></restful-attachment-selector>
|
|
43
|
+
`,
|
|
44
|
+
args: {
|
|
45
|
+
category: '',
|
|
46
|
+
creatable: true,
|
|
47
|
+
userName: 'testUser'
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const WithCategory: Story = {
|
|
52
|
+
...Default,
|
|
53
|
+
args: {
|
|
54
|
+
...Default.args,
|
|
55
|
+
category: 'document'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const ReadOnly: Story = {
|
|
60
|
+
...Default,
|
|
61
|
+
args: {
|
|
62
|
+
...Default.args,
|
|
63
|
+
creatable: false
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const WithTestData: Story = {
|
|
68
|
+
...Default,
|
|
69
|
+
args: {
|
|
70
|
+
...Default.args,
|
|
71
|
+
category: 'document'
|
|
72
|
+
},
|
|
73
|
+
play: async ({ canvasElement }) => {
|
|
74
|
+
const selector = canvasElement.querySelector('restful-attachment-selector') as RestfulAttachmentSelector
|
|
75
|
+
if (selector) {
|
|
76
|
+
// 테스트 데이터 주입
|
|
77
|
+
selector.attachments = [
|
|
78
|
+
{
|
|
79
|
+
id: 'test-1',
|
|
80
|
+
name: 'test1.txt',
|
|
81
|
+
description: 'Test file 1',
|
|
82
|
+
mimetype: 'text/plain',
|
|
83
|
+
encoding: '7bit',
|
|
84
|
+
category: 'document',
|
|
85
|
+
path: 'test1.txt',
|
|
86
|
+
bulk: '27',
|
|
87
|
+
createdAt: new Date().toISOString(),
|
|
88
|
+
updatedAt: new Date().toISOString(),
|
|
89
|
+
creatorId: 'testUser',
|
|
90
|
+
updaterId: 'testUser',
|
|
91
|
+
fullpath: 'http://localhost:16060/mcs/lv/images/test1.txt',
|
|
92
|
+
download: 'http://localhost:16060/mcs/lv/downloadFile/test1.txt'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: 'test-2',
|
|
96
|
+
name: 'test2.jpg',
|
|
97
|
+
description: 'Test image',
|
|
98
|
+
mimetype: 'image/jpeg',
|
|
99
|
+
encoding: '7bit',
|
|
100
|
+
category: 'image',
|
|
101
|
+
path: 'test2.jpg',
|
|
102
|
+
bulk: '1024',
|
|
103
|
+
createdAt: new Date().toISOString(),
|
|
104
|
+
updatedAt: new Date().toISOString(),
|
|
105
|
+
creatorId: 'testUser',
|
|
106
|
+
updaterId: 'testUser',
|
|
107
|
+
fullpath: 'http://localhost:16060/mcs/lv/images/test2.jpg',
|
|
108
|
+
download: 'http://localhost:16060/mcs/lv/downloadFile/test2.jpg'
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
package/.storybook/main.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import '../index.js';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: string;
|
|
6
|
-
argTypes: {
|
|
7
|
-
title: {
|
|
8
|
-
control: string;
|
|
9
|
-
};
|
|
10
|
-
counter: {
|
|
11
|
-
control: string;
|
|
12
|
-
};
|
|
13
|
-
textColor: {
|
|
14
|
-
control: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
19
|
-
interface Story<T> {
|
|
20
|
-
(args: T): TemplateResult;
|
|
21
|
-
args?: Partial<T>;
|
|
22
|
-
argTypes?: Record<string, unknown>;
|
|
23
|
-
}
|
|
24
|
-
interface ArgTypes {
|
|
25
|
-
title?: string;
|
|
26
|
-
counter?: number;
|
|
27
|
-
textColor?: string;
|
|
28
|
-
slot?: TemplateResult;
|
|
29
|
-
}
|
|
30
|
-
export declare const Regular: Story<ArgTypes>;
|
|
31
|
-
export declare const CustomTitle: Story<ArgTypes>;
|
|
32
|
-
export declare const CustomCounter: Story<ArgTypes>;
|
|
33
|
-
export declare const SlottedContent: Story<ArgTypes>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import '../index.js';
|
|
2
|
-
import { html } from 'lit';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'BoardViewer',
|
|
5
|
-
component: 'board-viewer',
|
|
6
|
-
argTypes: {
|
|
7
|
-
title: { control: 'text' },
|
|
8
|
-
counter: { control: 'number' },
|
|
9
|
-
textColor: { control: 'color' }
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const Template = ({ title = 'Hello world', counter = 5, textColor, slot }) => html `
|
|
13
|
-
<ox-board-viewer style="--board-viewer-text-color: ${textColor || 'black'}" .title=${title} .counter=${counter}>
|
|
14
|
-
${slot}
|
|
15
|
-
</ox-board-viewer>
|
|
16
|
-
`;
|
|
17
|
-
export const Regular = Template.bind({});
|
|
18
|
-
export const CustomTitle = Template.bind({});
|
|
19
|
-
CustomTitle.args = {
|
|
20
|
-
title: 'My title'
|
|
21
|
-
};
|
|
22
|
-
export const CustomCounter = Template.bind({});
|
|
23
|
-
CustomCounter.args = {
|
|
24
|
-
counter: 123456
|
|
25
|
-
};
|
|
26
|
-
export const SlottedContent = Template.bind({});
|
|
27
|
-
SlottedContent.args = {
|
|
28
|
-
slot: html `<p>Slotted content</p>`
|
|
29
|
-
};
|
|
30
|
-
SlottedContent.argTypes = {
|
|
31
|
-
slot: { table: { disable: true } }
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=index.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../stories/index.stories.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAkB,IAAI,EAAE,MAAM,KAAK,CAAA;AAE1C,eAAe;IACb,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,cAAc;IACzB,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC1B,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC9B,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KAChC;CACF,CAAA;AAeD,MAAM,QAAQ,GAAoB,CAAC,EAAE,KAAK,GAAG,aAAa,EAAE,OAAO,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;uDACtD,SAAS,IAAI,OAAO,YAAY,KAAK,aAAa,OAAO;MAC1G,IAAI;;CAET,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC5C,WAAW,CAAC,IAAI,GAAG;IACjB,KAAK,EAAE,UAAU;CAClB,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC9C,aAAa,CAAC,IAAI,GAAG;IACnB,OAAO,EAAE,MAAM;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC/C,cAAc,CAAC,IAAI,GAAG;IACpB,IAAI,EAAE,IAAI,CAAA,wBAAwB;CACnC,CAAA;AACD,cAAc,CAAC,QAAQ,GAAG;IACxB,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACnC,CAAA","sourcesContent":["import '../index.js'\n\nimport { TemplateResult, html } from 'lit'\n\nexport default {\n title: 'BoardViewer',\n component: 'board-viewer',\n argTypes: {\n title: { control: 'text' },\n counter: { control: 'number' },\n textColor: { control: 'color' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n title?: string\n counter?: number\n textColor?: string\n slot?: TemplateResult\n}\n\nconst Template: Story<ArgTypes> = ({ title = 'Hello world', counter = 5, textColor, slot }: ArgTypes) => html`\n <ox-board-viewer style=\"--board-viewer-text-color: ${textColor || 'black'}\" .title=${title} .counter=${counter}>\n ${slot}\n </ox-board-viewer>\n`\n\nexport const Regular = Template.bind({})\n\nexport const CustomTitle = Template.bind({})\nCustomTitle.args = {\n title: 'My title'\n}\n\nexport const CustomCounter = Template.bind({})\nCustomCounter.args = {\n counter: 123456\n}\n\nexport const SlottedContent = Template.bind({})\nSlottedContent.args = {\n slot: html`<p>Slotted content</p>`\n}\nSlottedContent.argTypes = {\n slot: { table: { disable: true } }\n}\n"]}
|
package/stories/index.stories.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import '../index.js'
|
|
2
|
-
|
|
3
|
-
import { TemplateResult, html } from 'lit'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'BoardViewer',
|
|
7
|
-
component: 'board-viewer',
|
|
8
|
-
argTypes: {
|
|
9
|
-
title: { control: 'text' },
|
|
10
|
-
counter: { control: 'number' },
|
|
11
|
-
textColor: { control: 'color' }
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface Story<T> {
|
|
16
|
-
(args: T): TemplateResult
|
|
17
|
-
args?: Partial<T>
|
|
18
|
-
argTypes?: Record<string, unknown>
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface ArgTypes {
|
|
22
|
-
title?: string
|
|
23
|
-
counter?: number
|
|
24
|
-
textColor?: string
|
|
25
|
-
slot?: TemplateResult
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const Template: Story<ArgTypes> = ({ title = 'Hello world', counter = 5, textColor, slot }: ArgTypes) => html`
|
|
29
|
-
<ox-board-viewer style="--board-viewer-text-color: ${textColor || 'black'}" .title=${title} .counter=${counter}>
|
|
30
|
-
${slot}
|
|
31
|
-
</ox-board-viewer>
|
|
32
|
-
`
|
|
33
|
-
|
|
34
|
-
export const Regular = Template.bind({})
|
|
35
|
-
|
|
36
|
-
export const CustomTitle = Template.bind({})
|
|
37
|
-
CustomTitle.args = {
|
|
38
|
-
title: 'My title'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const CustomCounter = Template.bind({})
|
|
42
|
-
CustomCounter.args = {
|
|
43
|
-
counter: 123456
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export const SlottedContent = Template.bind({})
|
|
47
|
-
SlottedContent.args = {
|
|
48
|
-
slot: html`<p>Slotted content</p>`
|
|
49
|
-
}
|
|
50
|
-
SlottedContent.argTypes = {
|
|
51
|
-
slot: { table: { disable: true } }
|
|
52
|
-
}
|