@operato/input 2.0.0-alpha.62 → 2.0.0-alpha.68
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 +18 -0
- package/demo/index-multiple-colors.html +14 -2
- package/demo/index-partition-keys.html +13 -2
- package/demo/index-select.html +20 -9
- package/demo/index-table.html +13 -2
- package/demo/index.html +13 -2
- package/dist/src/ox-input-duration.js +10 -4
- package/dist/src/ox-input-duration.js.map +1 -1
- package/dist/src/ox-input-file.js +1 -0
- package/dist/src/ox-input-file.js.map +1 -1
- package/dist/src/ox-input-key-values.js +2 -3
- package/dist/src/ox-input-key-values.js.map +1 -1
- package/dist/src/ox-input-mass-fraction.js +28 -19
- package/dist/src/ox-input-mass-fraction.js.map +1 -1
- package/dist/src/ox-input-multiple-colors.js +3 -0
- package/dist/src/ox-input-multiple-colors.js.map +1 -1
- package/dist/src/ox-input-options.js +2 -0
- package/dist/src/ox-input-options.js.map +1 -1
- package/dist/src/ox-input-partition-keys.js +2 -0
- package/dist/src/ox-input-partition-keys.js.map +1 -1
- package/dist/src/ox-input-privilege.js +15 -30
- package/dist/src/ox-input-privilege.js.map +1 -1
- package/dist/src/ox-input-unit-number.js +2 -1
- package/dist/src/ox-input-unit-number.js.map +1 -1
- package/dist/src/ox-input-value-map.js +2 -0
- package/dist/src/ox-input-value-map.js.map +1 -1
- package/dist/src/ox-input-value-ranges.js +2 -0
- package/dist/src/ox-input-value-ranges.js.map +1 -1
- package/dist/src/ox-input-work-shift.js +2 -0
- package/dist/src/ox-input-work-shift.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/ox-input-duration.ts +10 -4
- package/src/ox-input-file.ts +1 -0
- package/src/ox-input-key-values.ts +2 -3
- package/src/ox-input-mass-fraction.ts +28 -19
- package/src/ox-input-multiple-colors.ts +3 -0
- package/src/ox-input-options.ts +2 -0
- package/src/ox-input-partition-keys.ts +2 -0
- package/src/ox-input-privilege.ts +15 -30
- package/src/ox-input-unit-number.ts +2 -1
- package/src/ox-input-value-map.ts +2 -0
- package/src/ox-input-value-ranges.ts +2 -0
- package/src/ox-input-work-shift.ts +2 -0
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@operato/input",
|
3
3
|
"description": "Webcomponents for input following open-wc recommendations",
|
4
4
|
"author": "heartyoh@hatiolab.com",
|
5
|
-
"version": "2.0.0-alpha.
|
5
|
+
"version": "2.0.0-alpha.68",
|
6
6
|
"main": "dist/src/index.js",
|
7
7
|
"module": "dist/src/index.js",
|
8
8
|
"license": "MIT",
|
@@ -197,9 +197,9 @@
|
|
197
197
|
"@material/web": "^1.4.0",
|
198
198
|
"@operato/color-picker": "^2.0.0-alpha.57",
|
199
199
|
"@operato/i18n": "^2.0.0-alpha.59",
|
200
|
-
"@operato/popup": "^2.0.0-alpha.
|
201
|
-
"@operato/styles": "^2.0.0-alpha.
|
202
|
-
"@operato/utils": "^2.0.0-alpha.
|
200
|
+
"@operato/popup": "^2.0.0-alpha.68",
|
201
|
+
"@operato/styles": "^2.0.0-alpha.68",
|
202
|
+
"@operato/utils": "^2.0.0-alpha.68",
|
203
203
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
204
204
|
"@polymer/paper-item": "^3.0.1",
|
205
205
|
"@thebespokepixel/es-tinycolor": "^3.1.0",
|
@@ -243,5 +243,5 @@
|
|
243
243
|
"prettier --write"
|
244
244
|
]
|
245
245
|
},
|
246
|
-
"gitHead": "
|
246
|
+
"gitHead": "147f2ca9e09180c6851dccacf340fc660e7548ab"
|
247
247
|
}
|
package/src/ox-input-duration.ts
CHANGED
@@ -26,9 +26,14 @@ export class OxInputDuration extends OxFormField {
|
|
26
26
|
}
|
27
27
|
|
28
28
|
form {
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
display: flex;
|
30
|
+
flex-direction: row;
|
31
|
+
|
32
|
+
align-items: center;
|
33
|
+
}
|
34
|
+
|
35
|
+
[padding] {
|
36
|
+
min-width: 100px;
|
32
37
|
}
|
33
38
|
|
34
39
|
input {
|
@@ -63,7 +68,6 @@ export class OxInputDuration extends OxFormField {
|
|
63
68
|
border: var(--button-border);
|
64
69
|
border-radius: var(--border-radius);
|
65
70
|
background-color: var(--button-background-color);
|
66
|
-
padding: var(--padding-narrow) var(--padding-default);
|
67
71
|
min-height: 35px;
|
68
72
|
line-height: 0.8;
|
69
73
|
color: var(--button-color);
|
@@ -97,6 +101,7 @@ export class OxInputDuration extends OxFormField {
|
|
97
101
|
|
98
102
|
return html`
|
99
103
|
<form @change=${this.onChange.bind(this)}>
|
104
|
+
<div padding></div>
|
100
105
|
<input id="days" type="number" .value=${String(days || 0)} pattern="\\d*" ?disabled=${this.disabled} />
|
101
106
|
<label for="days">${i18next.t('label.days')}</label>
|
102
107
|
|
@@ -147,6 +152,7 @@ export class OxInputDuration extends OxFormField {
|
|
147
152
|
>
|
148
153
|
<md-icon>backspace</md-icon>
|
149
154
|
</button>
|
155
|
+
<div padding></div>
|
150
156
|
</form>
|
151
157
|
`
|
152
158
|
}
|
package/src/ox-input-file.ts
CHANGED
@@ -29,6 +29,8 @@ export class OxInputKeyValues extends OxFormField {
|
|
29
29
|
flex-direction: column;
|
30
30
|
overflow: hidden;
|
31
31
|
margin-bottom: var(--margin-wide);
|
32
|
+
|
33
|
+
--md-icon-size: 14px;
|
32
34
|
}
|
33
35
|
|
34
36
|
div {
|
@@ -50,9 +52,6 @@ export class OxInputKeyValues extends OxFormField {
|
|
50
52
|
button + button {
|
51
53
|
margin-left: -5px;
|
52
54
|
}
|
53
|
-
button md-icon {
|
54
|
-
font-size: var(--fontsize-default);
|
55
|
-
}
|
56
55
|
button:focus,
|
57
56
|
button:hover,
|
58
57
|
button:active {
|
@@ -43,19 +43,26 @@ export class OxInputMassFraction extends OxFormField {
|
|
43
43
|
display: flex;
|
44
44
|
flex-direction: column;
|
45
45
|
justify-content: space-between;
|
46
|
+
|
47
|
+
--md-icon-size: var(--fontsize-default, 14px);
|
46
48
|
}
|
47
49
|
|
48
50
|
[records] {
|
49
51
|
flex: 1;
|
50
52
|
|
51
53
|
overflow: overlay;
|
52
|
-
}
|
53
54
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
> div {
|
56
|
+
display: flex;
|
57
|
+
flex-flow: row nowrap;
|
58
|
+
gap: var(--mass-fraction-gap, 3px);
|
59
|
+
margin-bottom: var(--margin-narrow);
|
60
|
+
}
|
61
|
+
|
62
|
+
> [nofraction] {
|
63
|
+
display: block;
|
64
|
+
text-align: center;
|
65
|
+
}
|
59
66
|
}
|
60
67
|
|
61
68
|
[data-record-new] {
|
@@ -74,13 +81,14 @@ export class OxInputMassFraction extends OxFormField {
|
|
74
81
|
padding: var(--mass-fraction-button-padding-vertical, 3px) var(--mass-fraction-button-padding-horizontal, 3px);
|
75
82
|
color: var(--button-color);
|
76
83
|
cursor: pointer;
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
+
|
85
|
+
&:focus,
|
86
|
+
&:hover,
|
87
|
+
&:active {
|
88
|
+
border: var(--button-active-border, 1px solid rgba(0, 0, 0, 0.2));
|
89
|
+
background-color: var(--button-background-focus-color);
|
90
|
+
color: var(--theme-white-color);
|
91
|
+
}
|
84
92
|
}
|
85
93
|
|
86
94
|
input,
|
@@ -93,10 +101,15 @@ export class OxInputMassFraction extends OxFormField {
|
|
93
101
|
min-width: 50px;
|
94
102
|
}
|
95
103
|
|
96
|
-
input
|
104
|
+
input,
|
105
|
+
label {
|
97
106
|
padding: var(--input-padding);
|
98
107
|
}
|
99
108
|
|
109
|
+
label {
|
110
|
+
text-align: center;
|
111
|
+
}
|
112
|
+
|
100
113
|
ox-select {
|
101
114
|
padding: 0;
|
102
115
|
}
|
@@ -125,11 +138,6 @@ export class OxInputMassFraction extends OxFormField {
|
|
125
138
|
left: 0;
|
126
139
|
}
|
127
140
|
|
128
|
-
[records] > [nofraction] {
|
129
|
-
display: block;
|
130
|
-
text-align: center;
|
131
|
-
}
|
132
|
-
|
133
141
|
[right-end] {
|
134
142
|
margin-left: auto;
|
135
143
|
}
|
@@ -164,6 +172,7 @@ export class OxInputMassFraction extends OxFormField {
|
|
164
172
|
<label data-value>체적비(몰분율)</label>
|
165
173
|
<button hidden><md-icon>remove</md-icon></button>
|
166
174
|
<button hidden><md-icon>remove</md-icon></button>
|
175
|
+
${this.composable ? html` <button hidden><md-icon>remove</md-icon></button>` : nothing}
|
167
176
|
</div>
|
168
177
|
${arrayed.length
|
169
178
|
? arrayed.map(
|
@@ -28,7 +28,10 @@ export class OxInputMultipleColors extends OxFormField {
|
|
28
28
|
static styles = css`
|
29
29
|
:host {
|
30
30
|
display: inline-block;
|
31
|
+
|
32
|
+
--md-icon-size: var(--fontsize-default, 14px);
|
31
33
|
}
|
34
|
+
|
32
35
|
#colors-container > div {
|
33
36
|
display: grid;
|
34
37
|
grid-template-columns: 34px 1fr 34px;
|
package/src/ox-input-options.ts
CHANGED
@@ -31,6 +31,21 @@ export class OxInputPrivilege extends OxFormField {
|
|
31
31
|
height: 100%;
|
32
32
|
}
|
33
33
|
|
34
|
+
select {
|
35
|
+
border: 0;
|
36
|
+
border-bottom: var(--border-dark-color);
|
37
|
+
padding: var(--input-padding);
|
38
|
+
font: var(--input-font);
|
39
|
+
color: var(--primary-text-color);
|
40
|
+
|
41
|
+
max-height: 35px;
|
42
|
+
}
|
43
|
+
|
44
|
+
select:focus {
|
45
|
+
outline: none;
|
46
|
+
border-bottom: 1px solid var(--primary-color);
|
47
|
+
}
|
48
|
+
|
34
49
|
div[values] {
|
35
50
|
display: grid;
|
36
51
|
grid-template-columns: 1fr 1fr;
|
@@ -64,41 +79,11 @@ export class OxInputPrivilege extends OxFormField {
|
|
64
79
|
border-bottom: 1px solid var(--primary-color);
|
65
80
|
}
|
66
81
|
|
67
|
-
input:invalid {
|
68
|
-
border-bottom: 1px solid var(--status-danger-color);
|
69
|
-
color: var(--status-danger-color);
|
70
|
-
}
|
71
|
-
|
72
82
|
label {
|
73
83
|
margin-right: var(--margin-default);
|
74
84
|
font: normal 0.8em var(--theme-font);
|
75
85
|
color: var(--primary-color);
|
76
86
|
}
|
77
|
-
|
78
|
-
div[buttons] {
|
79
|
-
display: flex;
|
80
|
-
flex-direction: row;
|
81
|
-
justify-content: left;
|
82
|
-
padding: 10px;
|
83
|
-
}
|
84
|
-
|
85
|
-
button {
|
86
|
-
border: var(--button-border);
|
87
|
-
border-radius: var(--border-radius);
|
88
|
-
background-color: var(--button-background-color);
|
89
|
-
padding: var(--padding-narrow) var(--padding-default);
|
90
|
-
min-height: 35px;
|
91
|
-
line-height: 0.8;
|
92
|
-
color: var(--button-color);
|
93
|
-
cursor: pointer;
|
94
|
-
}
|
95
|
-
button:focus,
|
96
|
-
button:hover,
|
97
|
-
button:active {
|
98
|
-
border: var(--button-activ-border);
|
99
|
-
background-color: var(--button-background-focus-color);
|
100
|
-
color: var(--theme-white-color);
|
101
|
-
}
|
102
87
|
`
|
103
88
|
|
104
89
|
@property({ type: Object }) value?: {
|
@@ -178,6 +178,8 @@ export class OxInputUnitNumber extends OxFormField {
|
|
178
178
|
display: flex;
|
179
179
|
flex-direction: row;
|
180
180
|
align-items: center;
|
181
|
+
|
182
|
+
--md-icon-size: var(--fontsize-default, 14px);
|
181
183
|
}
|
182
184
|
|
183
185
|
input {
|
@@ -218,7 +220,6 @@ export class OxInputUnitNumber extends OxFormField {
|
|
218
220
|
}
|
219
221
|
|
220
222
|
md-icon {
|
221
|
-
font-size: 18px;
|
222
223
|
color: var(--primary-color, #3c3938);
|
223
224
|
margin-left: auto;
|
224
225
|
}
|
@@ -33,6 +33,8 @@ export class OxInputValueMap extends OxFormField {
|
|
33
33
|
flex-direction: column;
|
34
34
|
border: var(--border-dark-color);
|
35
35
|
padding: var(--padding-narrow) var(--padding-narrow) 0 var(--padding-narrow);
|
36
|
+
|
37
|
+
--md-icon-size: var(--fontsize-default, 14px);
|
36
38
|
}
|
37
39
|
|
38
40
|
div {
|
@@ -33,6 +33,8 @@ export class OxInputValueRange extends OxFormField {
|
|
33
33
|
flex-direction: column;
|
34
34
|
border: var(--border-dark-color);
|
35
35
|
padding: var(--padding-narrow) var(--padding-narrow) 0 var(--padding-narrow);
|
36
|
+
|
37
|
+
--md-icon-size: var(--fontsize-default, 14px);
|
36
38
|
}
|
37
39
|
|
38
40
|
div {
|