@fmsim/board 1.0.34 → 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 +1499 -421
- 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/layers/movement-layer.d.ts +1 -0
- package/dist/src/layers/movement-layer.js +3 -0
- package/dist/src/layers/movement-layer.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 +12 -8
- 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,344 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { __decorate } from "tslib";
|
|
5
|
+
import '@operato/i18n/ox-i18n.js';
|
|
6
|
+
import '@operato/input/ox-input-color.js';
|
|
7
|
+
import '@operato/input/ox-input-color-stops.js';
|
|
8
|
+
import '@operato/input/ox-input-color-gradient.js';
|
|
9
|
+
import './restrul-input-background-pattern.js';
|
|
10
|
+
import { css, html } from 'lit';
|
|
11
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
12
|
+
import { OxFormField } from '@operato/input';
|
|
13
|
+
let RestfulInputColorStyle = class RestfulInputColorStyle extends OxFormField {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.colorOnly = false;
|
|
17
|
+
this._block_reset = false;
|
|
18
|
+
}
|
|
19
|
+
updated(changes) {
|
|
20
|
+
changes.has('value') && this._onChangedValue(this.value || {});
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return html `
|
|
24
|
+
<div @change=${(e) => this._onChangedFillType(e)} fill-type>
|
|
25
|
+
<input
|
|
26
|
+
type="radio"
|
|
27
|
+
id="fill-type-no"
|
|
28
|
+
name="fill-type"
|
|
29
|
+
value="no"
|
|
30
|
+
.checked=${!this.fillType || this.fillType == 'no'}
|
|
31
|
+
/>
|
|
32
|
+
<label for="fill-type-no"><ox-i18n msgid="label.no-fill">no fill</ox-i18n></label>
|
|
33
|
+
<input type="radio" id="fill-type-solid" name="fill-type" value="solid" .checked=${this.fillType == 'solid'} />
|
|
34
|
+
<label for="fill-type-solid"><ox-i18n msgid="label.solid">solid</ox-i18n></label>
|
|
35
|
+
<input
|
|
36
|
+
type="radio"
|
|
37
|
+
id="fill-type-gradient"
|
|
38
|
+
name="fill-type"
|
|
39
|
+
value="gradient"
|
|
40
|
+
.checked=${this.fillType == 'gradient'}
|
|
41
|
+
/>
|
|
42
|
+
|
|
43
|
+
<label for="fill-type-gradient"><ox-i18n msgid="label.gradient">gradient</ox-i18n></label>
|
|
44
|
+
|
|
45
|
+
${this.colorOnly
|
|
46
|
+
? html ``
|
|
47
|
+
: html `
|
|
48
|
+
<input
|
|
49
|
+
type="radio"
|
|
50
|
+
id="fill-type-pattern"
|
|
51
|
+
name="fill-type"
|
|
52
|
+
value="pattern"
|
|
53
|
+
.checked=${this.fillType == 'pattern'}
|
|
54
|
+
/>
|
|
55
|
+
<label for="fill-type-pattern"><ox-i18n msgid="label.pattern">pattern</ox-i18n></label>
|
|
56
|
+
`}
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div editors>
|
|
60
|
+
<div ?active=${this.fillType == 'no'}></div>
|
|
61
|
+
|
|
62
|
+
<div class="grid-10" ?active=${this.fillType == 'solid'}>
|
|
63
|
+
<label class="icon-only-label color"></label>
|
|
64
|
+
<ox-input-color @change=${(e) => this._onChangedSolid(e)} .value=${this.solid}> </ox-input-color>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div ?active=${this.fillType == 'gradient'}>
|
|
68
|
+
<ox-input-color-gradient @change=${(e) => this._onChandedGradient(e)} .value=${this.gradient}>
|
|
69
|
+
</ox-input-color-gradient>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div ?active=${this.fillType == 'pattern'}>
|
|
73
|
+
<restful-input-background-pattern @change=${(e) => this._onChangedPattern(e)} .value=${this.pattern}>
|
|
74
|
+
</restful-input-background-pattern>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
`;
|
|
78
|
+
}
|
|
79
|
+
async _onChangedValue(value) {
|
|
80
|
+
/*
|
|
81
|
+
* this._block_reset의 역할은 내부 사용자 인터렉션에 의한 value의 변경시에는 각 type별 이전값을 유지하기 위함이다.
|
|
82
|
+
*/
|
|
83
|
+
await this.requestUpdate();
|
|
84
|
+
/* 설정 값에 따라서, 멤버 속성을 설정한다. */
|
|
85
|
+
if (!value) {
|
|
86
|
+
this.fillType = 'no';
|
|
87
|
+
if (!this._block_reset) {
|
|
88
|
+
this.solid = undefined;
|
|
89
|
+
this.gradient = undefined;
|
|
90
|
+
this.pattern = undefined;
|
|
91
|
+
}
|
|
92
|
+
this._block_reset = false;
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
switch (typeof value) {
|
|
96
|
+
case 'string':
|
|
97
|
+
this.fillType = 'solid';
|
|
98
|
+
this.solid = value;
|
|
99
|
+
if (!this._block_reset) {
|
|
100
|
+
this.gradient = undefined;
|
|
101
|
+
this.pattern = undefined;
|
|
102
|
+
}
|
|
103
|
+
break;
|
|
104
|
+
case 'object':
|
|
105
|
+
this.fillType = value.type;
|
|
106
|
+
if (value.type === 'gradient') {
|
|
107
|
+
this.gradient = {
|
|
108
|
+
type: value.gradientType || 'linear',
|
|
109
|
+
colorStops: value.colorStops || [
|
|
110
|
+
{
|
|
111
|
+
position: 0,
|
|
112
|
+
color: this.solid || '#000000'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
position: 1,
|
|
116
|
+
color: this.solid || '#FFFFFF'
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
rotation: Number(value.rotation) || 0,
|
|
120
|
+
center: value.center
|
|
121
|
+
};
|
|
122
|
+
if (!this._block_reset) {
|
|
123
|
+
this.pattern = undefined;
|
|
124
|
+
this.solid = undefined;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
else if (value.type === 'pattern') {
|
|
128
|
+
this.pattern = {
|
|
129
|
+
image: value.image,
|
|
130
|
+
offsetX: Number(value.offsetX) || 0,
|
|
131
|
+
offsetY: Number(value.offsetY) || 0,
|
|
132
|
+
width: Number(value.width),
|
|
133
|
+
height: Number(value.height),
|
|
134
|
+
align: value.align,
|
|
135
|
+
fitPattern: value.fitPattern,
|
|
136
|
+
noRepeat: value.noRepeat,
|
|
137
|
+
guideOnly: value.guideOnly,
|
|
138
|
+
color: value.color
|
|
139
|
+
};
|
|
140
|
+
if (!this._block_reset) {
|
|
141
|
+
this.gradient = undefined;
|
|
142
|
+
this.solid = undefined;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
default:
|
|
147
|
+
}
|
|
148
|
+
this._block_reset = false;
|
|
149
|
+
}
|
|
150
|
+
_onChangedFillType(e) {
|
|
151
|
+
const element = e.target;
|
|
152
|
+
this.fillType = element.value;
|
|
153
|
+
switch (this.fillType) {
|
|
154
|
+
case 'gradient':
|
|
155
|
+
if (!this.gradient) {
|
|
156
|
+
this.gradient = {
|
|
157
|
+
type: 'linear',
|
|
158
|
+
colorStops: [
|
|
159
|
+
{
|
|
160
|
+
position: 0,
|
|
161
|
+
color: this.solid || '#000000'
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
position: 1,
|
|
165
|
+
color: this.solid || '#FFFFFF'
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
rotation: 0,
|
|
169
|
+
center: 'center'
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
this.value = {
|
|
173
|
+
type: 'gradient',
|
|
174
|
+
gradientType: this.gradient.type || 'linear',
|
|
175
|
+
colorStops: this.gradient.colorStops || [
|
|
176
|
+
{
|
|
177
|
+
position: 0,
|
|
178
|
+
color: this.solid || '#000000'
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
position: 1,
|
|
182
|
+
color: this.solid || '#FFFFFF'
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
rotation: Number(this.gradient.rotation) || 0,
|
|
186
|
+
center: this.gradient.center
|
|
187
|
+
};
|
|
188
|
+
break;
|
|
189
|
+
case 'pattern':
|
|
190
|
+
if (!this.pattern)
|
|
191
|
+
this.pattern = {};
|
|
192
|
+
this.value = {
|
|
193
|
+
type: 'pattern',
|
|
194
|
+
image: this.pattern.image,
|
|
195
|
+
offsetX: Number(this.pattern.offsetX) || 0,
|
|
196
|
+
offsetY: Number(this.pattern.offsetY) || 0,
|
|
197
|
+
width: Number(this.pattern.width),
|
|
198
|
+
height: Number(this.pattern.height),
|
|
199
|
+
align: this.pattern.align,
|
|
200
|
+
fitPattern: this.pattern.fitPattern,
|
|
201
|
+
noRepeat: this.pattern.noRepeat,
|
|
202
|
+
guideOnly: this.pattern.guideOnly,
|
|
203
|
+
color: this.pattern.color
|
|
204
|
+
};
|
|
205
|
+
break;
|
|
206
|
+
case 'solid':
|
|
207
|
+
if (!this.solid)
|
|
208
|
+
this.solid = '#fff';
|
|
209
|
+
this.value = this.solid;
|
|
210
|
+
break;
|
|
211
|
+
case 'no':
|
|
212
|
+
this.value = '';
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
this._block_reset = true;
|
|
216
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
|
|
217
|
+
}
|
|
218
|
+
_onChangedSolid(e) {
|
|
219
|
+
if (this.fillType !== 'solid')
|
|
220
|
+
return;
|
|
221
|
+
this.solid = e.target.value;
|
|
222
|
+
this.value = this.solid;
|
|
223
|
+
this._block_reset = true;
|
|
224
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
|
|
225
|
+
}
|
|
226
|
+
_onChandedGradient(e) {
|
|
227
|
+
/*
|
|
228
|
+
* TODO Gradient의 rotation은 symmetry 기능 등으로 외부에서 변경될 수도 있다.
|
|
229
|
+
* 이 점을 감안해서, 외부 변경에 대한 대응을 해야 한다.
|
|
230
|
+
*/
|
|
231
|
+
if (this.fillType !== 'gradient') {
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
this.gradient = e.target.value;
|
|
235
|
+
this.value = {
|
|
236
|
+
type: 'gradient',
|
|
237
|
+
gradientType: this.gradient.type || 'linear',
|
|
238
|
+
colorStops: this.gradient.colorStops || [
|
|
239
|
+
{
|
|
240
|
+
position: 0,
|
|
241
|
+
color: this.solid || '#000000'
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
position: 1,
|
|
245
|
+
color: this.solid || '#FFFFFF'
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
rotation: Number(this.gradient.rotation) || 0,
|
|
249
|
+
center: this.gradient.center
|
|
250
|
+
};
|
|
251
|
+
this._block_reset = true;
|
|
252
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
|
|
253
|
+
}
|
|
254
|
+
_onChangedPattern(e) {
|
|
255
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
256
|
+
if (this.fillType !== 'pattern')
|
|
257
|
+
return;
|
|
258
|
+
this.pattern = e.target.value;
|
|
259
|
+
this.value = {
|
|
260
|
+
type: 'pattern',
|
|
261
|
+
image: (_a = this.pattern) === null || _a === void 0 ? void 0 : _a.image,
|
|
262
|
+
offsetX: Number((_b = this.pattern) === null || _b === void 0 ? void 0 : _b.offsetX) || 0,
|
|
263
|
+
offsetY: Number((_c = this.pattern) === null || _c === void 0 ? void 0 : _c.offsetY) || 0,
|
|
264
|
+
width: Number((_d = this.pattern) === null || _d === void 0 ? void 0 : _d.width),
|
|
265
|
+
height: Number((_e = this.pattern) === null || _e === void 0 ? void 0 : _e.height),
|
|
266
|
+
align: (_f = this.pattern) === null || _f === void 0 ? void 0 : _f.align,
|
|
267
|
+
fitPattern: (_g = this.pattern) === null || _g === void 0 ? void 0 : _g.fitPattern,
|
|
268
|
+
noRepeat: (_h = this.pattern) === null || _h === void 0 ? void 0 : _h.noRepeat,
|
|
269
|
+
guideOnly: (_j = this.pattern) === null || _j === void 0 ? void 0 : _j.guideOnly,
|
|
270
|
+
color: (_k = this.pattern) === null || _k === void 0 ? void 0 : _k.color
|
|
271
|
+
};
|
|
272
|
+
this._block_reset = true;
|
|
273
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
RestfulInputColorStyle.styles = css `
|
|
277
|
+
:host {
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
[fill-type] {
|
|
283
|
+
display: flex;
|
|
284
|
+
margin: 0 0 14px 0;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
[fill-type] * {
|
|
288
|
+
flex: auto;
|
|
289
|
+
margin: 0;
|
|
290
|
+
text-align: left;
|
|
291
|
+
align-self: center;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.grid-10 {
|
|
295
|
+
display: grid;
|
|
296
|
+
|
|
297
|
+
grid-template-columns: repeat(10, 1fr);
|
|
298
|
+
grid-gap: 5px;
|
|
299
|
+
grid-auto-rows: minmax(24px, auto);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.grid-10 > ox-input-color {
|
|
303
|
+
grid-column: span 4;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.grid-10 > .icon-only-label {
|
|
307
|
+
grid-column: span 1;
|
|
308
|
+
|
|
309
|
+
background: var(--url-icon-properties-label) no-repeat;
|
|
310
|
+
float: left;
|
|
311
|
+
margin: 0;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.icon-only-label.color {
|
|
315
|
+
background-position: 100% -500px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
[editors] > :not([active]) {
|
|
319
|
+
display: none;
|
|
320
|
+
}
|
|
321
|
+
`;
|
|
322
|
+
__decorate([
|
|
323
|
+
property({ type: Object })
|
|
324
|
+
], RestfulInputColorStyle.prototype, "value", void 0);
|
|
325
|
+
__decorate([
|
|
326
|
+
property({ type: String })
|
|
327
|
+
], RestfulInputColorStyle.prototype, "fillType", void 0);
|
|
328
|
+
__decorate([
|
|
329
|
+
property({ type: String })
|
|
330
|
+
], RestfulInputColorStyle.prototype, "solid", void 0);
|
|
331
|
+
__decorate([
|
|
332
|
+
property({ type: Object })
|
|
333
|
+
], RestfulInputColorStyle.prototype, "gradient", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
property({ type: Object })
|
|
336
|
+
], RestfulInputColorStyle.prototype, "pattern", void 0);
|
|
337
|
+
__decorate([
|
|
338
|
+
property({ type: Boolean, attribute: 'color-only' })
|
|
339
|
+
], RestfulInputColorStyle.prototype, "colorOnly", void 0);
|
|
340
|
+
RestfulInputColorStyle = __decorate([
|
|
341
|
+
customElement('restful-input-fill-style')
|
|
342
|
+
], RestfulInputColorStyle);
|
|
343
|
+
export { RestfulInputColorStyle };
|
|
344
|
+
//# sourceMappingURL=restful-input-fill-style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restful-input-fill-style.js","sourceRoot":"","sources":["../../../src/component/restful-input-fill-style.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,0BAA0B,CAAA;AACjC,OAAO,kCAAkC,CAAA;AACzC,OAAO,wCAAwC,CAAA;AAC/C,OAAO,2CAA2C,CAAA;AAClD,OAAO,uCAAuC,CAAA;AAE9C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE3D,OAAO,EAA6B,WAAW,EAAwB,MAAM,gBAAgB,CAAA;AA0BtF,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,WAAW;IAAhD;;QAsDiD,cAAS,GAAY,KAAK,CAAA;QAExE,iBAAY,GAAY,KAAK,CAAA;IA6RvC,CAAC;IA3RC,OAAO,CAAC,OAA6B;QACnC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;IAChE,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;qBACM,CAAC,CAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;;;;;;qBAMxC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI;;;2FAG+B,IAAI,CAAC,QAAQ,IAAI,OAAO;;;;;;;qBAO9F,IAAI,CAAC,QAAQ,IAAI,UAAU;;;;;UAKtC,IAAI,CAAC,SAAS;YACd,CAAC,CAAC,IAAI,CAAA,EAAE;Y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AAI,WAAW,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAClF,CAAC;;AAnVM,6BAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6ClB,AA7CY,CA6CZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAAkB;AACjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAkB;AACjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAAe;AACd;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAA0B;AACzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDAAkC;AAEP;IAArD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;yDAA2B;AAtDrE,sBAAsB;IADlC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,sBAAsB,CAqVlC","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport '@operato/i18n/ox-i18n.js'\nimport '@operato/input/ox-input-color.js'\nimport '@operato/input/ox-input-color-stops.js'\nimport '@operato/input/ox-input-color-gradient.js'\nimport './restrul-input-background-pattern.js'\n\nimport { css, html, PropertyValues } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\nimport { ColorStop, GradientOption, OxFormField, OxInputColorGradient } from '@operato/input'\n\nimport { BackgroundPatternOption, RestfulInputBackgroundPattern } from './restrul-input-background-pattern.js'\n\nexport type FillStyle =\n | {\n type?: 'no' | 'solid' | 'gradient' | 'pattern'\n gradientType?: 'linear' | 'radial'\n colorStops?: ColorStop[]\n rotation?: number\n center?: 'center' | 'left-top' | 'right-top' | 'right-bottom' | 'left-bottom'\n image?: HTMLImageElement | string\n offsetX?: number\n offsetY?: number\n width?: number\n height?: number\n align?: 'left-top' | 'top' | 'right-top' | 'left' | 'center' | 'right' | 'left-bottom' | 'bottom' | 'right-bottom'\n fitPattern?: boolean\n noRepeat?: boolean\n guideOnly?: boolean\n color?: string\n }\n | 'no'\n | string\n\n@customElement('restful-input-fill-style')\nexport class RestfulInputColorStyle extends OxFormField {\n static styles = css`\n :host {\n display: flex;\n flex-direction: column;\n }\n\n [fill-type] {\n display: flex;\n margin: 0 0 14px 0;\n }\n\n [fill-type] * {\n flex: auto;\n margin: 0;\n text-align: left;\n align-self: center;\n }\n\n .grid-10 {\n display: grid;\n\n grid-template-columns: repeat(10, 1fr);\n grid-gap: 5px;\n grid-auto-rows: minmax(24px, auto);\n }\n\n .grid-10 > ox-input-color {\n grid-column: span 4;\n }\n\n .grid-10 > .icon-only-label {\n grid-column: span 1;\n\n background: var(--url-icon-properties-label) no-repeat;\n float: left;\n margin: 0;\n }\n\n .icon-only-label.color {\n background-position: 100% -500px;\n }\n\n [editors] > :not([active]) {\n display: none;\n }\n `\n\n @property({ type: Object }) value?: FillStyle\n @property({ type: String }) fillType?: string\n @property({ type: String }) solid?: string\n @property({ type: Object }) gradient?: GradientOption\n @property({ type: Object }) pattern?: BackgroundPatternOption\n\n @property({ type: Boolean, attribute: 'color-only' }) colorOnly: boolean = false\n\n private _block_reset: boolean = false\n\n updated(changes: PropertyValues<this>) {\n changes.has('value') && this._onChangedValue(this.value || {})\n }\n\n render() {\n return html`\n <div @change=${(e: Event) => this._onChangedFillType(e)} fill-type>\n <input\n type=\"radio\"\n id=\"fill-type-no\"\n name=\"fill-type\"\n value=\"no\"\n .checked=${!this.fillType || this.fillType == 'no'}\n />\n <label for=\"fill-type-no\"><ox-i18n msgid=\"label.no-fill\">no fill</ox-i18n></label>\n <input type=\"radio\" id=\"fill-type-solid\" name=\"fill-type\" value=\"solid\" .checked=${this.fillType == 'solid'} />\n <label for=\"fill-type-solid\"><ox-i18n msgid=\"label.solid\">solid</ox-i18n></label>\n <input\n type=\"radio\"\n id=\"fill-type-gradient\"\n name=\"fill-type\"\n value=\"gradient\"\n .checked=${this.fillType == 'gradient'}\n />\n\n <label for=\"fill-type-gradient\"><ox-i18n msgid=\"label.gradient\">gradient</ox-i18n></label>\n\n ${this.colorOnly\n ? html``\n : html`\n <input\n type=\"radio\"\n id=\"fill-type-pattern\"\n name=\"fill-type\"\n value=\"pattern\"\n .checked=${this.fillType == 'pattern'}\n />\n <label for=\"fill-type-pattern\"><ox-i18n msgid=\"label.pattern\">pattern</ox-i18n></label>\n `}\n </div>\n\n <div editors>\n <div ?active=${this.fillType == 'no'}></div>\n\n <div class=\"grid-10\" ?active=${this.fillType == 'solid'}>\n <label class=\"icon-only-label color\"></label>\n <ox-input-color @change=${(e: Event) => this._onChangedSolid(e)} .value=${this.solid}> </ox-input-color>\n </div>\n\n <div ?active=${this.fillType == 'gradient'}>\n <ox-input-color-gradient @change=${(e: Event) => this._onChandedGradient(e)} .value=${this.gradient}>\n </ox-input-color-gradient>\n </div>\n\n <div ?active=${this.fillType == 'pattern'}>\n <restful-input-background-pattern @change=${(e: Event) => this._onChangedPattern(e)} .value=${this.pattern}>\n </restful-input-background-pattern>\n </div>\n </div>\n `\n }\n\n async _onChangedValue(value: FillStyle) {\n /*\n * this._block_reset의 역할은 내부 사용자 인터렉션에 의한 value의 변경시에는 각 type별 이전값을 유지하기 위함이다.\n */\n await this.requestUpdate()\n\n /* 설정 값에 따라서, 멤버 속성을 설정한다. */\n if (!value) {\n this.fillType = 'no'\n\n if (!this._block_reset) {\n this.solid = undefined\n this.gradient = undefined\n this.pattern = undefined\n }\n\n this._block_reset = false\n return\n }\n\n switch (typeof value) {\n case 'string':\n this.fillType = 'solid'\n this.solid = value\n\n if (!this._block_reset) {\n this.gradient = undefined\n this.pattern = undefined\n }\n break\n case 'object':\n this.fillType = value.type\n\n if (value.type === 'gradient') {\n this.gradient = {\n type: value.gradientType || 'linear',\n colorStops: value.colorStops || [\n {\n position: 0,\n color: this.solid || '#000000'\n },\n {\n position: 1,\n color: this.solid || '#FFFFFF'\n }\n ],\n rotation: Number(value.rotation) || 0,\n center: value.center\n }\n\n if (!this._block_reset) {\n this.pattern = undefined\n this.solid = undefined\n }\n } else if (value.type === 'pattern') {\n this.pattern = {\n image: value.image,\n offsetX: Number(value.offsetX) || 0,\n offsetY: Number(value.offsetY) || 0,\n width: Number(value.width),\n height: Number(value.height),\n align: value.align,\n fitPattern: value.fitPattern,\n noRepeat: value.noRepeat,\n guideOnly: value.guideOnly,\n color: value.color\n }\n\n if (!this._block_reset) {\n this.gradient = undefined\n this.solid = undefined\n }\n }\n\n break\n default:\n }\n\n this._block_reset = false\n }\n\n _onChangedFillType(e: Event) {\n const element = e.target as HTMLInputElement\n this.fillType = element.value\n\n switch (this.fillType) {\n case 'gradient':\n if (!this.gradient) {\n this.gradient = {\n type: 'linear',\n colorStops: [\n {\n position: 0,\n color: this.solid || '#000000'\n },\n {\n position: 1,\n color: this.solid || '#FFFFFF'\n }\n ],\n rotation: 0,\n center: 'center'\n }\n }\n\n this.value = {\n type: 'gradient',\n gradientType: this.gradient.type || 'linear',\n colorStops: this.gradient.colorStops || [\n {\n position: 0,\n color: this.solid || '#000000'\n },\n {\n position: 1,\n color: this.solid || '#FFFFFF'\n }\n ],\n rotation: Number(this.gradient.rotation) || 0,\n center: this.gradient.center\n }\n break\n\n case 'pattern':\n if (!this.pattern) this.pattern = {}\n\n this.value = {\n type: 'pattern',\n image: this.pattern.image,\n offsetX: Number(this.pattern.offsetX) || 0,\n offsetY: Number(this.pattern.offsetY) || 0,\n width: Number(this.pattern.width),\n height: Number(this.pattern.height),\n align: this.pattern.align,\n fitPattern: this.pattern.fitPattern,\n noRepeat: this.pattern.noRepeat,\n guideOnly: this.pattern.guideOnly,\n color: this.pattern.color\n }\n break\n\n case 'solid':\n if (!this.solid) this.solid = '#fff'\n this.value = this.solid\n break\n\n case 'no':\n this.value = ''\n break\n }\n\n this._block_reset = true\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n }\n\n _onChangedSolid(e: Event) {\n if (this.fillType !== 'solid') return\n\n this.solid = (e.target as HTMLInputElement).value\n\n this.value = this.solid\n\n this._block_reset = true\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n }\n\n _onChandedGradient(e: Event) {\n /*\n * TODO Gradient의 rotation은 symmetry 기능 등으로 외부에서 변경될 수도 있다.\n * 이 점을 감안해서, 외부 변경에 대한 대응을 해야 한다.\n */\n\n if (this.fillType !== 'gradient') {\n return\n }\n\n this.gradient = (e.target as OxInputColorGradient).value\n\n this.value = {\n type: 'gradient',\n gradientType: this.gradient.type || 'linear',\n colorStops: this.gradient.colorStops || [\n {\n position: 0,\n color: this.solid || '#000000'\n },\n {\n position: 1,\n color: this.solid || '#FFFFFF'\n }\n ],\n rotation: Number(this.gradient.rotation) || 0,\n center: this.gradient.center\n }\n\n this._block_reset = true\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n }\n\n _onChangedPattern(e: Event) {\n if (this.fillType !== 'pattern') return\n\n this.pattern = (e.target as RestfulInputBackgroundPattern).value\n\n this.value = {\n type: 'pattern',\n image: this.pattern?.image,\n offsetX: Number(this.pattern?.offsetX) || 0,\n offsetY: Number(this.pattern?.offsetY) || 0,\n width: Number(this.pattern?.width),\n height: Number(this.pattern?.height),\n align: this.pattern?.align,\n fitPattern: this.pattern?.fitPattern,\n noRepeat: this.pattern?.noRepeat,\n guideOnly: this.pattern?.guideOnly,\n color: this.pattern?.color\n }\n\n this._block_reset = true\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n }\n}\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import '@operato/i18n/ox-i18n.js';
|
|
5
|
+
import '@operato/input/ox-input-color.js';
|
|
6
|
+
import './restful-input-attachment-selector.js';
|
|
7
|
+
import { OxFormField } from '@operato/input';
|
|
8
|
+
export type BackgroundPatternOption = {
|
|
9
|
+
image?: HTMLImageElement | string;
|
|
10
|
+
color?: string;
|
|
11
|
+
align?: 'left-top' | 'top' | 'right-top' | 'left' | 'center' | 'right' | 'left-bottom' | 'bottom' | 'right-bottom';
|
|
12
|
+
offsetX?: number;
|
|
13
|
+
offsetY?: number;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
fitPattern?: boolean;
|
|
17
|
+
guideOnly?: boolean;
|
|
18
|
+
noRepeat?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 컴포넌트의 fill pattern을 편집하는 element
|
|
22
|
+
*
|
|
23
|
+
* Example:
|
|
24
|
+
* <restful-input-background-pattern
|
|
25
|
+
* @change="${e => { this.pattern = e.target.value }}"
|
|
26
|
+
* .value=${this.pattern}"
|
|
27
|
+
* ></restful-input-background-pattern>
|
|
28
|
+
*/
|
|
29
|
+
export declare class RestfulInputBackgroundPattern extends OxFormField {
|
|
30
|
+
static styles: import("lit").CSSResult;
|
|
31
|
+
value?: BackgroundPatternOption;
|
|
32
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
33
|
+
firstUpdated(): void;
|
|
34
|
+
_onChange(e: Event): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { __decorate } from "tslib";
|
|
5
|
+
import '@operato/i18n/ox-i18n.js';
|
|
6
|
+
import '@operato/input/ox-input-color.js';
|
|
7
|
+
import './restful-input-attachment-selector.js';
|
|
8
|
+
import { css, html } from 'lit';
|
|
9
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
10
|
+
import { OxFormField } from '@operato/input';
|
|
11
|
+
/**
|
|
12
|
+
* 컴포넌트의 fill pattern을 편집하는 element
|
|
13
|
+
*
|
|
14
|
+
* Example:
|
|
15
|
+
* <restful-input-background-pattern
|
|
16
|
+
* @change="${e => { this.pattern = e.target.value }}"
|
|
17
|
+
* .value=${this.pattern}"
|
|
18
|
+
* ></restful-input-background-pattern>
|
|
19
|
+
*/
|
|
20
|
+
let RestfulInputBackgroundPattern = class RestfulInputBackgroundPattern extends OxFormField {
|
|
21
|
+
render() {
|
|
22
|
+
const value = this.value || {};
|
|
23
|
+
return html `
|
|
24
|
+
<label> <ox-i18n msgid="label.image" auto="">image</ox-i18n> </label>
|
|
25
|
+
|
|
26
|
+
<restful-input-attachment-selector
|
|
27
|
+
value-key="image"
|
|
28
|
+
.value=${value.image}
|
|
29
|
+
.properties=${{
|
|
30
|
+
category: 'image'
|
|
31
|
+
}}
|
|
32
|
+
custom-editor
|
|
33
|
+
></restful-input-attachment-selector>
|
|
34
|
+
|
|
35
|
+
<label> <ox-i18n msgid="label.align" auto="">align</ox-i18n> </label>
|
|
36
|
+
|
|
37
|
+
<select value-key="align" class="select-content" .value=${value.align || ''}>
|
|
38
|
+
<option value="left-top">Left Top</option>
|
|
39
|
+
<option value="top">Center Top</option>
|
|
40
|
+
<option value="right-top">Right Top</option>
|
|
41
|
+
<option value="left">Left Center</option>
|
|
42
|
+
<option value="center">Center Center</option>
|
|
43
|
+
<option value="right">Right Center</option>
|
|
44
|
+
<option value="left-bottom">Left Bottom</option>
|
|
45
|
+
<option value="bottom">Center Bottom</option>
|
|
46
|
+
<option value="right-bottom">Right Bottom</option>
|
|
47
|
+
</select>
|
|
48
|
+
|
|
49
|
+
<div class="grid-10">
|
|
50
|
+
<label> <ox-i18n msgid="label.offset-x" auto="">offsetX</ox-i18n> </label>
|
|
51
|
+
<input type="number" value-key="offsetX" .value=${String(value.offsetX)} />
|
|
52
|
+
|
|
53
|
+
<label> <ox-i18n msgid="label.offset-y" auto="">offsetY</ox-i18n> </label>
|
|
54
|
+
<input type="number" value-key="offsetY" .value=${String(value.offsetY)} />
|
|
55
|
+
|
|
56
|
+
<label> <ox-i18n msgid="label.width" auto="">width</ox-i18n> </label>
|
|
57
|
+
<input type="number" value-key="width" .value=${String(value.width)} />
|
|
58
|
+
|
|
59
|
+
<label> <ox-i18n msgid="label.height" auto="">height</ox-i18n> </label>
|
|
60
|
+
<input type="number" value-key="height" .value=${String(value.height)} />
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div class="grid-10">
|
|
64
|
+
<label class="icon-only-label color"></label>
|
|
65
|
+
<ox-input-color value-key="color" .value=${value.color}> </ox-input-color>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div class="grid-10">
|
|
69
|
+
<input value-key="fitPattern" type="checkbox" .checked=${!!value.fitPattern} required />
|
|
70
|
+
<label> <ox-i18n msgid="label.fit" auto="">fit</ox-i18n> </label>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<div class="grid-10">
|
|
74
|
+
<input value-key="noRepeat" type="checkbox" .checked=${!!value.noRepeat} required />
|
|
75
|
+
<label> <ox-i18n msgid="label.no-repeat" auto="">no repeat</ox-i18n> </label>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div class="grid-10">
|
|
79
|
+
<input value-key="guideOnly" type="checkbox" .checked=${!!value.guideOnly} required />
|
|
80
|
+
<label> <ox-i18n msgid="label.guide-only" auto="">guide only</ox-i18n> </label>
|
|
81
|
+
</div>
|
|
82
|
+
`;
|
|
83
|
+
}
|
|
84
|
+
firstUpdated() {
|
|
85
|
+
this.renderRoot.addEventListener('change', this._onChange.bind(this));
|
|
86
|
+
}
|
|
87
|
+
_onChange(e) {
|
|
88
|
+
var element = e.target;
|
|
89
|
+
var key = element.getAttribute('value-key');
|
|
90
|
+
var value = element.value;
|
|
91
|
+
if (key === 'fitPattern' || key === 'noRepeat' || key == 'guideOnly') {
|
|
92
|
+
value = element.checked;
|
|
93
|
+
}
|
|
94
|
+
this.value = {
|
|
95
|
+
...this.value,
|
|
96
|
+
[key]: value
|
|
97
|
+
};
|
|
98
|
+
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
RestfulInputBackgroundPattern.styles = css `
|
|
102
|
+
:host,
|
|
103
|
+
.grid-10 {
|
|
104
|
+
display: grid;
|
|
105
|
+
grid-template-columns: repeat(10, 1fr);
|
|
106
|
+
grid-gap: 5px;
|
|
107
|
+
grid-auto-rows: minmax(24px, auto);
|
|
108
|
+
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
* {
|
|
113
|
+
align-self: stretch;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
label {
|
|
117
|
+
grid-column: span 2;
|
|
118
|
+
text-align: right;
|
|
119
|
+
text-transform: capitalize;
|
|
120
|
+
|
|
121
|
+
align-self: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.grid-10 {
|
|
125
|
+
grid-column: span 10;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
select,
|
|
129
|
+
input,
|
|
130
|
+
[custom-editor] {
|
|
131
|
+
grid-column: span 8;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
select {
|
|
135
|
+
height: 100%;
|
|
136
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
input[type='checkbox'] {
|
|
140
|
+
grid-column: 3 / 4;
|
|
141
|
+
align-self: center;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
input[type='checkbox'] ~ label {
|
|
145
|
+
grid-column: span 7;
|
|
146
|
+
text-align: left;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.grid-10 > input[type='number'] {
|
|
150
|
+
grid-column: span 3;
|
|
151
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.grid-10 > label {
|
|
155
|
+
grid-column: span 2;
|
|
156
|
+
text-align: right;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.grid-10 > .icon-only-label {
|
|
160
|
+
grid-column: span 2;
|
|
161
|
+
|
|
162
|
+
background: var(--url-icon-properties-label) no-repeat;
|
|
163
|
+
float: left;
|
|
164
|
+
margin: 0;
|
|
165
|
+
align-self: stretch;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.icon-only-label.color {
|
|
169
|
+
background-position: 100% -500px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.grid-10 > ox-input-color {
|
|
173
|
+
grid-column: span 8;
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
__decorate([
|
|
177
|
+
property({ type: Object })
|
|
178
|
+
], RestfulInputBackgroundPattern.prototype, "value", void 0);
|
|
179
|
+
RestfulInputBackgroundPattern = __decorate([
|
|
180
|
+
customElement('restful-input-background-pattern')
|
|
181
|
+
], RestfulInputBackgroundPattern);
|
|
182
|
+
export { RestfulInputBackgroundPattern };
|
|
183
|
+
//# sourceMappingURL=restrul-input-background-pattern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restrul-input-background-pattern.js","sourceRoot":"","sources":["../../../src/component/restrul-input-background-pattern.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,OAAO,0BAA0B,CAAA;AACjC,OAAO,kCAAkC,CAAA;AACzC,OAAO,wCAAwC,CAAA;AAE/C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAe5C;;;;;;;;GAQG;AAGI,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,WAAW;IA+E5D,MAAM;QACJ,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAK,EAA8B,CAAA;QAE3D,OAAO,IAAI,CAAA;;;;;i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M,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0ElB,AA1EY,CA0EZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4DAAgC;AA7EhD,6BAA6B;IADzC,aAAa,CAAC,kCAAkC,CAAC;GACrC,6BAA6B,CAoKzC","sourcesContent":["/**\n * @license Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport '@operato/i18n/ox-i18n.js'\nimport '@operato/input/ox-input-color.js'\nimport './restful-input-attachment-selector.js'\n\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\nimport { OxFormField } from '@operato/input'\n\nexport type BackgroundPatternOption = {\n image?: HTMLImageElement | string\n color?: string\n align?: 'left-top' | 'top' | 'right-top' | 'left' | 'center' | 'right' | 'left-bottom' | 'bottom' | 'right-bottom'\n offsetX?: number\n offsetY?: number\n width?: number\n height?: number\n fitPattern?: boolean\n guideOnly?: boolean\n noRepeat?: boolean\n}\n\n/**\n * 컴포넌트의 fill pattern을 편집하는 element\n *\n * Example:\n * <restful-input-background-pattern\n * @change=\"${e => { this.pattern = e.target.value }}\"\n * .value=${this.pattern}\"\n * ></restful-input-background-pattern>\n */\n\n@customElement('restful-input-background-pattern')\nexport class RestfulInputBackgroundPattern extends OxFormField {\n static styles = css`\n :host,\n .grid-10 {\n display: grid;\n grid-template-columns: repeat(10, 1fr);\n grid-gap: 5px;\n grid-auto-rows: minmax(24px, auto);\n\n align-items: center;\n }\n\n * {\n align-self: stretch;\n }\n\n label {\n grid-column: span 2;\n text-align: right;\n text-transform: capitalize;\n\n align-self: center;\n }\n\n .grid-10 {\n grid-column: span 10;\n }\n\n select,\n input,\n [custom-editor] {\n grid-column: span 8;\n }\n\n select {\n height: 100%;\n border: 1px solid rgba(0, 0, 0, 0.2);\n }\n\n input[type='checkbox'] {\n grid-column: 3 / 4;\n align-self: center;\n }\n\n input[type='checkbox'] ~ label {\n grid-column: span 7;\n text-align: left;\n }\n\n .grid-10 > input[type='number'] {\n grid-column: span 3;\n border: 1px solid rgba(0, 0, 0, 0.2);\n }\n\n .grid-10 > label {\n grid-column: span 2;\n text-align: right;\n }\n\n .grid-10 > .icon-only-label {\n grid-column: span 2;\n\n background: var(--url-icon-properties-label) no-repeat;\n float: left;\n margin: 0;\n align-self: stretch;\n }\n\n .icon-only-label.color {\n background-position: 100% -500px;\n }\n\n .grid-10 > ox-input-color {\n grid-column: span 8;\n }\n `\n\n @property({ type: Object }) value?: BackgroundPatternOption\n\n render() {\n const value = this.value || ({} as BackgroundPatternOption)\n\n return html`\n <label> <ox-i18n msgid=\"label.image\" auto=\"\">image</ox-i18n> </label>\n\n <restful-input-attachment-selector\n value-key=\"image\"\n .value=${value.image as string}\n .properties=${{\n category: 'image'\n }}\n custom-editor\n ></restful-input-attachment-selector>\n\n <label> <ox-i18n msgid=\"label.align\" auto=\"\">align</ox-i18n> </label>\n\n <select value-key=\"align\" class=\"select-content\" .value=${value.align || ''}>\n <option value=\"left-top\">Left Top</option>\n <option value=\"top\">Center Top</option>\n <option value=\"right-top\">Right Top</option>\n <option value=\"left\">Left Center</option>\n <option value=\"center\">Center Center</option>\n <option value=\"right\">Right Center</option>\n <option value=\"left-bottom\">Left Bottom</option>\n <option value=\"bottom\">Center Bottom</option>\n <option value=\"right-bottom\">Right Bottom</option>\n </select>\n\n <div class=\"grid-10\">\n <label> <ox-i18n msgid=\"label.offset-x\" auto=\"\">offsetX</ox-i18n> </label>\n <input type=\"number\" value-key=\"offsetX\" .value=${String(value.offsetX)} />\n\n <label> <ox-i18n msgid=\"label.offset-y\" auto=\"\">offsetY</ox-i18n> </label>\n <input type=\"number\" value-key=\"offsetY\" .value=${String(value.offsetY)} />\n\n <label> <ox-i18n msgid=\"label.width\" auto=\"\">width</ox-i18n> </label>\n <input type=\"number\" value-key=\"width\" .value=${String(value.width)} />\n\n <label> <ox-i18n msgid=\"label.height\" auto=\"\">height</ox-i18n> </label>\n <input type=\"number\" value-key=\"height\" .value=${String(value.height)} />\n </div>\n\n <div class=\"grid-10\">\n <label class=\"icon-only-label color\"></label>\n <ox-input-color value-key=\"color\" .value=${value.color}> </ox-input-color>\n </div>\n\n <div class=\"grid-10\">\n <input value-key=\"fitPattern\" type=\"checkbox\" .checked=${!!value.fitPattern} required />\n <label> <ox-i18n msgid=\"label.fit\" auto=\"\">fit</ox-i18n> </label>\n </div>\n\n <div class=\"grid-10\">\n <input value-key=\"noRepeat\" type=\"checkbox\" .checked=${!!value.noRepeat} required />\n <label> <ox-i18n msgid=\"label.no-repeat\" auto=\"\">no repeat</ox-i18n> </label>\n </div>\n\n <div class=\"grid-10\">\n <input value-key=\"guideOnly\" type=\"checkbox\" .checked=${!!value.guideOnly} required />\n <label> <ox-i18n msgid=\"label.guide-only\" auto=\"\">guide only</ox-i18n> </label>\n </div>\n `\n }\n\n firstUpdated() {\n this.renderRoot.addEventListener('change', this._onChange.bind(this))\n }\n\n _onChange(e: Event) {\n var element = e.target as HTMLInputElement\n var key = element.getAttribute('value-key')\n var value: any = element.value\n\n if (key === 'fitPattern' || key === 'noRepeat' || key == 'guideOnly') {\n value = element.checked\n }\n\n this.value = {\n ...this.value,\n [key!]: value\n }\n\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))\n }\n}\n"]}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAE5D,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA","sourcesContent":["export * from './types.js'\n\nexport { registerDefaultGroups } from './component/register-default-groups.js'\nexport { DataStorage } from './data-storage/data-storage.js'\n\nexport * from './ox-board-viewer.js'\nexport * from './ox-board-modeller.js'\nexport * from './ox-board-list.js'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAE5D,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAElC,cAAc,sBAAsB,CAAA","sourcesContent":["export * from './types.js'\n\nexport { registerDefaultGroups } from './component/register-default-groups.js'\nexport { DataStorage } from './data-storage/data-storage.js'\n\nexport * from './ox-board-viewer.js'\nexport * from './ox-board-modeller.js'\nexport * from './ox-board-list.js'\n\nexport * from './component/index.js'\n"]}
|
|
@@ -40,6 +40,7 @@ export default class MovementLayer extends Layer {
|
|
|
40
40
|
clickComponentHandler: (e: Event) => void;
|
|
41
41
|
ready(): void;
|
|
42
42
|
dispose(): void;
|
|
43
|
+
get pointerEvents(): string;
|
|
43
44
|
get capturable(): boolean;
|
|
44
45
|
drawArrow(ctx: CanvasRenderingContext2D, p1: POINT, p2: POINT, pathType: PathType, pathStatus: PathStatus, label: string, styles?: PathStyles): void;
|
|
45
46
|
findSourceAndTarget(path: PATH): [Component?, Component?];
|
|
@@ -36,6 +36,9 @@ export default class MovementLayer extends Layer {
|
|
|
36
36
|
window.removeEventListener('clickComponent', this.clickComponentHandler);
|
|
37
37
|
super.dispose && super.dispose();
|
|
38
38
|
}
|
|
39
|
+
get pointerEvents() {
|
|
40
|
+
return 'none';
|
|
41
|
+
}
|
|
39
42
|
get capturable() {
|
|
40
43
|
return false;
|
|
41
44
|
}
|