@operato/app 1.0.0-beta.38 → 1.0.0-beta.39
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/CHANGELOG.md +9 -0
- package/dist/src/input/ox-input-background-pattern.d.ts +3 -0
- package/dist/src/input/ox-input-background-pattern.js +35 -7
- package/dist/src/input/ox-input-background-pattern.js.map +1 -1
- package/dist/src/input/ox-input-fill-style.d.ts +4 -2
- package/dist/src/input/ox-input-fill-style.js +13 -7
- package/dist/src/input/ox-input-fill-style.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/src/input/ox-input-background-pattern.ts +37 -7
- package/src/input/ox-input-fill-style.ts +18 -8
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "WebApplication production supporting components following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "heartyoh",
|
|
6
|
-
"version": "1.0.0-beta.
|
|
6
|
+
"version": "1.0.0-beta.39",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"module": "dist/src/index.js",
|
|
9
9
|
"exports": {
|
|
@@ -59,19 +59,19 @@
|
|
|
59
59
|
"@material/mwc-button": "^0.25.3",
|
|
60
60
|
"@material/mwc-icon": "^0.25.3",
|
|
61
61
|
"@material/mwc-icon-button": "^0.25.3",
|
|
62
|
-
"@operato/attachment": "^1.0.0-beta.
|
|
63
|
-
"@operato/data-grist": "^1.0.0-beta.
|
|
64
|
-
"@operato/font": "^1.0.0-beta.
|
|
65
|
-
"@operato/form": "^1.0.0-beta.
|
|
66
|
-
"@operato/graphql": "^1.0.0-beta.
|
|
67
|
-
"@operato/i18n": "^1.0.0-beta.
|
|
68
|
-
"@operato/input": "^1.0.0-beta.
|
|
69
|
-
"@operato/layout": "^1.0.0-beta.
|
|
70
|
-
"@operato/property-editor": "^1.0.0-beta.
|
|
71
|
-
"@operato/shell": "^1.0.0-beta.
|
|
72
|
-
"@operato/styles": "^1.0.0-beta.
|
|
73
|
-
"@operato/utils": "^1.0.0-beta.
|
|
74
|
-
"codemirror": "^5.
|
|
62
|
+
"@operato/attachment": "^1.0.0-beta.39",
|
|
63
|
+
"@operato/data-grist": "^1.0.0-beta.39",
|
|
64
|
+
"@operato/font": "^1.0.0-beta.39",
|
|
65
|
+
"@operato/form": "^1.0.0-beta.39",
|
|
66
|
+
"@operato/graphql": "^1.0.0-beta.39",
|
|
67
|
+
"@operato/i18n": "^1.0.0-beta.39",
|
|
68
|
+
"@operato/input": "^1.0.0-beta.39",
|
|
69
|
+
"@operato/layout": "^1.0.0-beta.39",
|
|
70
|
+
"@operato/property-editor": "^1.0.0-beta.39",
|
|
71
|
+
"@operato/shell": "^1.0.0-beta.39",
|
|
72
|
+
"@operato/styles": "^1.0.0-beta.39",
|
|
73
|
+
"@operato/utils": "^1.0.0-beta.39",
|
|
74
|
+
"codemirror": "^5.64.0",
|
|
75
75
|
"codemirror-graphql": "^0.15.2",
|
|
76
76
|
"cronstrue": "^2.2.0",
|
|
77
77
|
"cross-fetch": "^3.1.5",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"prettier --write"
|
|
112
112
|
]
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "4862f9f433eefda3a54029686df497a4596e9c30"
|
|
115
115
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import '@operato/i18n/ox-i18n.js'
|
|
6
|
+
import '@operato/input/ox-input-color.js'
|
|
6
7
|
import '@operato/attachment/ox-attachment-selector.js'
|
|
7
8
|
|
|
8
9
|
import { css, html } from 'lit'
|
|
@@ -12,12 +13,14 @@ import { OxFormField } from '@operato/input'
|
|
|
12
13
|
|
|
13
14
|
export type BackgroundPatternOption = {
|
|
14
15
|
image?: HTMLImageElement | string
|
|
16
|
+
color?: string
|
|
15
17
|
align?: 'left-top' | 'top' | 'right-top' | 'left' | 'center' | 'right' | 'left-bottom' | 'bottom' | 'right-bottom'
|
|
16
18
|
offsetX?: number
|
|
17
19
|
offsetY?: number
|
|
18
20
|
width?: number
|
|
19
21
|
height?: number
|
|
20
22
|
fitPattern?: boolean
|
|
23
|
+
noRepeat?: boolean
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
/**
|
|
@@ -89,6 +92,23 @@ export class OxInputBackgroundPattern extends OxFormField {
|
|
|
89
92
|
grid-column: span 2;
|
|
90
93
|
text-align: right;
|
|
91
94
|
}
|
|
95
|
+
|
|
96
|
+
.grid-10 > .icon-only-label {
|
|
97
|
+
grid-column: span 2;
|
|
98
|
+
|
|
99
|
+
background: var(--url-icon-properties-label) no-repeat;
|
|
100
|
+
float: left;
|
|
101
|
+
margin: 0;
|
|
102
|
+
align-self: stretch;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.icon-only-label.color {
|
|
106
|
+
background-position: 100% -500px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.grid-10 > ox-input-color {
|
|
110
|
+
grid-column: span 8;
|
|
111
|
+
}
|
|
92
112
|
`
|
|
93
113
|
|
|
94
114
|
@property({ type: Object }) value?: BackgroundPatternOption
|
|
@@ -112,13 +132,13 @@ export class OxInputBackgroundPattern extends OxFormField {
|
|
|
112
132
|
|
|
113
133
|
<select value-key="align" class="select-content" .value=${value.align}>
|
|
114
134
|
<option value="left-top">Left Top</option>
|
|
115
|
-
<option value="top">Top</option>
|
|
135
|
+
<option value="top">Center Top</option>
|
|
116
136
|
<option value="right-top">Right Top</option>
|
|
117
|
-
<option value="left">Left</option>
|
|
118
|
-
<option value="center">Center</option>
|
|
119
|
-
<option value="right">Right</option>
|
|
137
|
+
<option value="left">Left Center</option>
|
|
138
|
+
<option value="center">Center Center</option>
|
|
139
|
+
<option value="right">Right Center</option>
|
|
120
140
|
<option value="left-bottom">Left Bottom</option>
|
|
121
|
-
<option value="bottom">Bottom</option>
|
|
141
|
+
<option value="bottom">Center Bottom</option>
|
|
122
142
|
<option value="right-bottom">Right Bottom</option>
|
|
123
143
|
</select>
|
|
124
144
|
|
|
@@ -136,9 +156,19 @@ export class OxInputBackgroundPattern extends OxFormField {
|
|
|
136
156
|
<input type="number" value-key="height" .value=${value.height} />
|
|
137
157
|
</div>
|
|
138
158
|
|
|
159
|
+
<div class="grid-10">
|
|
160
|
+
<label class="icon-only-label color"></label>
|
|
161
|
+
<ox-input-color value-key="color" .value=${value.color}> </ox-input-color>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
139
164
|
<div class="grid-10">
|
|
140
165
|
<input value-key="fitPattern" type="checkbox" .checked=${value.fitPattern} required />
|
|
141
|
-
<label> <ox-i18n msgid="label.fit" auto="">
|
|
166
|
+
<label> <ox-i18n msgid="label.fit" auto="">fit</ox-i18n> </label>
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
<div class="grid-10">
|
|
170
|
+
<input value-key="noRepeat" type="checkbox" .checked=${value.noRepeat} required />
|
|
171
|
+
<label> <ox-i18n msgid="label.no-repeat" auto="">no repeat</ox-i18n> </label>
|
|
142
172
|
</div>
|
|
143
173
|
`
|
|
144
174
|
}
|
|
@@ -152,7 +182,7 @@ export class OxInputBackgroundPattern extends OxFormField {
|
|
|
152
182
|
var key = element.getAttribute('value-key')
|
|
153
183
|
var value: any = element.value
|
|
154
184
|
|
|
155
|
-
if (key
|
|
185
|
+
if (key === 'fitPattern' || key === 'noRepeat') {
|
|
156
186
|
value = element.checked
|
|
157
187
|
}
|
|
158
188
|
|
|
@@ -8,10 +8,12 @@ import '@operato/input/ox-input-color-stops.js'
|
|
|
8
8
|
import '@operato/input/ox-input-color-gradient.js'
|
|
9
9
|
import './ox-input-background-pattern.js'
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { css, html, PropertyValues } from 'lit'
|
|
12
|
+
import { customElement, property } from 'lit/decorators.js'
|
|
13
|
+
|
|
12
14
|
import { ColorStop, GradientOption, OxFormField, OxInputColorGradient } from '@operato/input'
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
+
|
|
16
|
+
import { BackgroundPatternOption, OxInputBackgroundPattern } from './ox-input-background-pattern.js'
|
|
15
17
|
|
|
16
18
|
export type FillStyle =
|
|
17
19
|
| {
|
|
@@ -27,6 +29,8 @@ export type FillStyle =
|
|
|
27
29
|
height?: number
|
|
28
30
|
align?: 'left-top' | 'top' | 'right-top' | 'left' | 'center' | 'right' | 'left-bottom' | 'bottom' | 'right-bottom'
|
|
29
31
|
fitPattern?: boolean
|
|
32
|
+
noRepeat?: boolean
|
|
33
|
+
color?: string
|
|
30
34
|
}
|
|
31
35
|
| 'no'
|
|
32
36
|
| string
|
|
@@ -66,13 +70,13 @@ export class OxInputColorStyle extends OxFormField {
|
|
|
66
70
|
.grid-10 > .icon-only-label {
|
|
67
71
|
grid-column: span 1;
|
|
68
72
|
|
|
69
|
-
background: url
|
|
73
|
+
background: var(--url-icon-properties-label) no-repeat;
|
|
70
74
|
float: left;
|
|
71
75
|
margin: 0;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
.icon-only-label.color {
|
|
75
|
-
background-position:
|
|
79
|
+
background-position: 100% -500px;
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
[editors] > :not([active]) {
|
|
@@ -206,7 +210,9 @@ export class OxInputColorStyle extends OxFormField {
|
|
|
206
210
|
width: Number(value.width),
|
|
207
211
|
height: Number(value.height),
|
|
208
212
|
align: value.align,
|
|
209
|
-
fitPattern: value.fitPattern
|
|
213
|
+
fitPattern: value.fitPattern,
|
|
214
|
+
noRepeat: value.noRepeat,
|
|
215
|
+
color: value.color
|
|
210
216
|
}
|
|
211
217
|
|
|
212
218
|
if (!this._block_reset) {
|
|
@@ -275,7 +281,9 @@ export class OxInputColorStyle extends OxFormField {
|
|
|
275
281
|
width: Number(this.pattern.width),
|
|
276
282
|
height: Number(this.pattern.height),
|
|
277
283
|
align: this.pattern.align,
|
|
278
|
-
fitPattern: this.pattern.fitPattern
|
|
284
|
+
fitPattern: this.pattern.fitPattern,
|
|
285
|
+
noRepeat: this.pattern.noRepeat,
|
|
286
|
+
color: this.pattern.color
|
|
279
287
|
}
|
|
280
288
|
break
|
|
281
289
|
|
|
@@ -350,7 +358,9 @@ export class OxInputColorStyle extends OxFormField {
|
|
|
350
358
|
width: Number(this.pattern?.width),
|
|
351
359
|
height: Number(this.pattern?.height),
|
|
352
360
|
align: this.pattern?.align,
|
|
353
|
-
fitPattern: this.pattern?.fitPattern
|
|
361
|
+
fitPattern: this.pattern?.fitPattern,
|
|
362
|
+
noRepeat: this.pattern?.noRepeat,
|
|
363
|
+
color: this.pattern?.color
|
|
354
364
|
}
|
|
355
365
|
|
|
356
366
|
this._block_reset = true
|