@operato/input 2.0.0-alpha.146 → 2.0.0-alpha.148
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 +29 -0
- package/demo/index-barcode.html +4 -4
- package/demo/index-checkbox.html +4 -4
- package/demo/index-code.html +4 -4
- package/demo/index-options.html +2 -2
- package/dist/src/ox-buttons-radio.d.ts +9 -5
- package/dist/src/ox-buttons-radio.js +43 -11
- package/dist/src/ox-buttons-radio.js.map +1 -1
- package/dist/src/ox-checkbox.js +23 -19
- package/dist/src/ox-checkbox.js.map +1 -1
- package/dist/src/ox-input-3axis.js +13 -2
- package/dist/src/ox-input-3axis.js.map +1 -1
- package/dist/src/ox-input-3dish.js +16 -11
- package/dist/src/ox-input-3dish.js.map +1 -1
- package/dist/src/ox-input-angle.js +9 -2
- package/dist/src/ox-input-angle.js.map +1 -1
- package/dist/src/ox-input-barcode.js +12 -8
- package/dist/src/ox-input-barcode.js.map +1 -1
- package/dist/src/ox-input-code.js +3 -0
- package/dist/src/ox-input-code.js.map +1 -1
- package/dist/src/ox-input-color.js +8 -6
- package/dist/src/ox-input-color.js.map +1 -1
- package/dist/src/ox-input-crontab.js +29 -25
- package/dist/src/ox-input-crontab.js.map +1 -1
- package/dist/src/ox-input-data.js +15 -6
- package/dist/src/ox-input-data.js.map +1 -1
- package/dist/src/ox-input-duration.js +15 -34
- package/dist/src/ox-input-duration.js.map +1 -1
- package/dist/src/ox-input-file.js +19 -14
- package/dist/src/ox-input-file.js.map +1 -1
- package/dist/src/ox-input-hashtags.js +13 -14
- package/dist/src/ox-input-hashtags.js.map +1 -1
- package/dist/src/ox-input-i18n-label.js +4 -4
- package/dist/src/ox-input-i18n-label.js.map +1 -1
- package/dist/src/ox-input-image.js +1 -1
- package/dist/src/ox-input-image.js.map +1 -1
- package/dist/src/ox-input-key-values.js +6 -6
- package/dist/src/ox-input-key-values.js.map +1 -1
- package/dist/src/ox-input-mass-fraction.js +5 -5
- package/dist/src/ox-input-mass-fraction.js.map +1 -1
- package/dist/src/ox-input-multiple-colors.js +2 -2
- package/dist/src/ox-input-multiple-colors.js.map +1 -1
- package/dist/src/ox-input-options.js +6 -6
- package/dist/src/ox-input-options.js.map +1 -1
- package/dist/src/ox-input-partition-keys.js +6 -6
- package/dist/src/ox-input-partition-keys.js.map +1 -1
- package/dist/src/ox-input-privilege.js +13 -16
- package/dist/src/ox-input-privilege.js.map +1 -1
- package/dist/src/ox-input-quantifier.js +5 -5
- package/dist/src/ox-input-quantifier.js.map +1 -1
- package/dist/src/ox-input-range.js +8 -8
- package/dist/src/ox-input-range.js.map +1 -1
- package/dist/src/ox-input-search.js +3 -5
- package/dist/src/ox-input-search.js.map +1 -1
- package/dist/src/ox-input-select-buttons.js +1 -1
- package/dist/src/ox-input-select-buttons.js.map +1 -1
- package/dist/src/ox-input-table.js +1 -1
- package/dist/src/ox-input-table.js.map +1 -1
- package/dist/src/ox-input-unit-number.js +5 -5
- package/dist/src/ox-input-unit-number.js.map +1 -1
- package/dist/src/ox-input-value-map.js +6 -6
- package/dist/src/ox-input-value-map.js.map +1 -1
- package/dist/src/ox-input-value-ranges.js +7 -7
- package/dist/src/ox-input-value-ranges.js.map +1 -1
- package/dist/src/ox-input-work-shift.js +7 -7
- package/dist/src/ox-input-work-shift.js.map +1 -1
- package/dist/src/ox-select.js +4 -4
- package/dist/src/ox-select.js.map +1 -1
- package/dist/stories/ox-buttons-radio.stories.d.ts +31 -0
- package/dist/stories/ox-buttons-radio.stories.js +81 -0
- package/dist/stories/ox-buttons-radio.stories.js.map +1 -0
- package/dist/stories/ox-checkbox.stories.d.ts +6 -0
- package/dist/stories/ox-checkbox.stories.js +57 -13
- package/dist/stories/ox-checkbox.stories.js.map +1 -1
- package/dist/stories/ox-input-3axis.stories.d.ts +5 -0
- package/dist/stories/ox-input-3axis.stories.js +32 -10
- package/dist/stories/ox-input-3axis.stories.js.map +1 -1
- package/dist/stories/ox-input-3dish.stories.d.ts +5 -0
- package/dist/stories/ox-input-3dish.stories.js +35 -13
- package/dist/stories/ox-input-3dish.stories.js.map +1 -1
- package/dist/stories/ox-input-angle.stories.d.ts +5 -0
- package/dist/stories/ox-input-angle.stories.js +36 -13
- package/dist/stories/ox-input-angle.stories.js.map +1 -1
- package/dist/stories/ox-input-barcode.stories.d.ts +5 -0
- package/dist/stories/ox-input-barcode.stories.js +35 -18
- package/dist/stories/ox-input-barcode.stories.js.map +1 -1
- package/dist/stories/ox-input-code.stories.d.ts +5 -0
- package/dist/stories/ox-input-code.stories.js +38 -13
- package/dist/stories/ox-input-code.stories.js.map +1 -1
- package/dist/stories/ox-input-crontab.stories.d.ts +5 -0
- package/dist/stories/ox-input-crontab.stories.js +35 -12
- package/dist/stories/ox-input-crontab.stories.js.map +1 -1
- package/dist/stories/ox-input-data.stories.d.ts +5 -0
- package/dist/stories/ox-input-data.stories.js +34 -11
- package/dist/stories/ox-input-data.stories.js.map +1 -1
- package/dist/stories/ox-input-duration.stories.d.ts +5 -0
- package/dist/stories/ox-input-duration.stories.js +36 -13
- package/dist/stories/ox-input-duration.stories.js.map +1 -1
- package/dist/stories/ox-input-file.stories.d.ts +5 -0
- package/dist/stories/ox-input-file.stories.js +39 -16
- package/dist/stories/ox-input-file.stories.js.map +1 -1
- package/dist/stories/ox-input-hashtags.stories.d.ts +5 -0
- package/dist/stories/ox-input-hashtags.stories.js +35 -12
- package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
- package/dist/stories/ox-input-i18n-label.stories.d.ts +5 -0
- package/dist/stories/ox-input-i18n-label.stories.js +35 -12
- package/dist/stories/ox-input-i18n-label.stories.js.map +1 -1
- package/dist/stories/ox-input-key-values.stories.d.ts +5 -0
- package/dist/stories/ox-input-key-values.stories.js +35 -12
- package/dist/stories/ox-input-key-values.stories.js.map +1 -1
- package/dist/stories/ox-input-mass-fraction.stories.d.ts +5 -0
- package/dist/stories/ox-input-mass-fraction.stories.js +36 -13
- package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
- package/dist/stories/ox-input-multiple-colors.stories.d.ts +5 -0
- package/dist/stories/ox-input-multiple-colors.stories.js +31 -149
- package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
- package/dist/stories/ox-input-options.stories.d.ts +5 -0
- package/dist/stories/ox-input-options.stories.js +34 -11
- package/dist/stories/ox-input-options.stories.js.map +1 -1
- package/dist/stories/ox-input-partition-keys.stories.d.ts +5 -0
- package/dist/stories/ox-input-partition-keys.stories.js +34 -11
- package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
- package/dist/stories/ox-input-privilege.stories.d.ts +5 -0
- package/dist/stories/ox-input-privilege.stories.js +36 -18
- package/dist/stories/ox-input-privilege.stories.js.map +1 -1
- package/dist/stories/ox-input-quantifier.stories.d.ts +5 -0
- package/dist/stories/ox-input-quantifier.stories.js +37 -10
- package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
- package/dist/stories/ox-input-range.stories.d.ts +5 -0
- package/dist/stories/ox-input-range.stories.js +32 -5
- package/dist/stories/ox-input-range.stories.js.map +1 -1
- package/dist/stories/ox-input-search.stories.d.ts +5 -0
- package/dist/stories/ox-input-search.stories.js +35 -12
- package/dist/stories/ox-input-search.stories.js.map +1 -1
- package/dist/stories/ox-input-select-buttons.stories.d.ts +5 -0
- package/dist/stories/ox-input-select-buttons.stories.js +36 -14
- package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
- package/dist/stories/ox-input-unit.stories.d.ts +5 -0
- package/dist/stories/ox-input-unit.stories.js +40 -13
- package/dist/stories/ox-input-unit.stories.js.map +1 -1
- package/dist/stories/ox-input-value-map.stories.d.ts +5 -0
- package/dist/stories/ox-input-value-map.stories.js +36 -13
- package/dist/stories/ox-input-value-map.stories.js.map +1 -1
- package/dist/stories/ox-input-value-ranges.stories.d.ts +5 -0
- package/dist/stories/ox-input-value-ranges.stories.js +36 -13
- package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
- package/dist/stories/ox-input-work-shift.stories.d.ts +5 -0
- package/dist/stories/ox-input-work-shift.stories.js +36 -13
- package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
- package/dist/stories/ox-select-set-options.stories.d.ts +5 -0
- package/dist/stories/ox-select-set-options.stories.js +29 -4
- package/dist/stories/ox-select-set-options.stories.js.map +1 -1
- package/dist/stories/ox-select.stories.d.ts +5 -0
- package/dist/stories/ox-select.stories.js +29 -5
- package/dist/stories/ox-select.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/ox-buttons-radio.ts +37 -5
- package/src/ox-checkbox.ts +23 -19
- package/src/ox-input-3axis.ts +13 -2
- package/src/ox-input-3dish.ts +16 -11
- package/src/ox-input-angle.ts +9 -2
- package/src/ox-input-barcode.ts +12 -8
- package/src/ox-input-code.ts +3 -0
- package/src/ox-input-color.ts +8 -6
- package/src/ox-input-crontab.ts +29 -25
- package/src/ox-input-data.ts +15 -6
- package/src/ox-input-duration.ts +15 -34
- package/src/ox-input-file.ts +19 -14
- package/src/ox-input-hashtags.ts +14 -16
- package/src/ox-input-i18n-label.ts +4 -4
- package/src/ox-input-image.ts +1 -1
- package/src/ox-input-key-values.ts +6 -6
- package/src/ox-input-mass-fraction.ts +5 -5
- package/src/ox-input-multiple-colors.ts +2 -2
- package/src/ox-input-options.ts +6 -6
- package/src/ox-input-partition-keys.ts +6 -6
- package/src/ox-input-privilege.ts +13 -16
- package/src/ox-input-quantifier.ts +5 -5
- package/src/ox-input-range.ts +8 -8
- package/src/ox-input-search.ts +3 -5
- package/src/ox-input-select-buttons.ts +1 -1
- package/src/ox-input-table.ts +1 -1
- package/src/ox-input-unit-number.ts +5 -5
- package/src/ox-input-value-map.ts +6 -6
- package/src/ox-input-value-ranges.ts +7 -7
- package/src/ox-input-work-shift.ts +7 -7
- package/src/ox-select.ts +4 -4
- package/stories/ox-buttons-radio.stories.ts +96 -0
- package/stories/ox-checkbox.stories.ts +61 -14
- package/stories/ox-input-3axis.stories.ts +35 -12
- package/stories/ox-input-3dish.stories.ts +38 -15
- package/stories/ox-input-angle.stories.ts +39 -15
- package/stories/ox-input-barcode.stories.ts +37 -18
- package/stories/ox-input-code.stories.ts +42 -15
- package/stories/ox-input-crontab.stories.ts +43 -14
- package/stories/ox-input-data.stories.ts +38 -14
- package/stories/ox-input-duration.stories.ts +39 -15
- package/stories/ox-input-file.stories.ts +41 -16
- package/stories/ox-input-hashtags.stories.ts +42 -12
- package/stories/ox-input-i18n-label.stories.ts +55 -31
- package/stories/ox-input-key-values.stories.ts +44 -14
- package/stories/ox-input-mass-fraction.stories.ts +40 -15
- package/stories/ox-input-multiple-colors.stories.ts +34 -151
- package/stories/ox-input-options.stories.ts +37 -13
- package/stories/ox-input-partition-keys.stories.ts +42 -13
- package/stories/ox-input-privilege.stories.ts +45 -20
- package/stories/ox-input-quantifier.stories.ts +38 -10
- package/stories/ox-input-range.stories.ts +34 -5
- package/stories/ox-input-search.stories.ts +37 -12
- package/stories/ox-input-select-buttons.stories.ts +40 -16
- package/stories/ox-input-unit.stories.ts +43 -14
- package/stories/ox-input-value-map.stories.ts +40 -15
- package/stories/ox-input-value-ranges.stories.ts +40 -15
- package/stories/ox-input-work-shift.stories.ts +39 -15
- package/stories/ox-select-set-options.stories.ts +31 -4
- package/stories/ox-select.stories.ts +31 -5
- package/themes/dark-hc.css +151 -0
- package/themes/dark-mc.css +151 -0
- package/themes/dark.css +151 -0
- package/themes/grist-theme.css +169 -0
- package/themes/light-hc.css +151 -0
- package/themes/light-mc.css +151 -0
- package/themes/light.css +151 -0
- package/themes/md-typescale-styles.css +100 -0
- package/themes/spacing.css +43 -0
- package/themes/state-color.css +6 -0
- package/themes/app-theme.css +0 -145
- package/themes/input-theme.css +0 -32
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.148",
|
6
6
|
"main": "dist/src/index.js",
|
7
7
|
"module": "dist/src/index.js",
|
8
8
|
"license": "MIT",
|
@@ -196,9 +196,9 @@
|
|
196
196
|
"@lit/localize": "^0.12.1",
|
197
197
|
"@material/web": "^1.4.0",
|
198
198
|
"@operato/color-picker": "^2.0.0-alpha.111",
|
199
|
-
"@operato/i18n": "^2.0.0-alpha.
|
200
|
-
"@operato/popup": "^2.0.0-alpha.
|
201
|
-
"@operato/styles": "^2.0.0-alpha.
|
199
|
+
"@operato/i18n": "^2.0.0-alpha.148",
|
200
|
+
"@operato/popup": "^2.0.0-alpha.148",
|
201
|
+
"@operato/styles": "^2.0.0-alpha.148",
|
202
202
|
"@operato/utils": "^2.0.0-alpha.145",
|
203
203
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
204
204
|
"@polymer/paper-item": "^3.0.1",
|
@@ -243,5 +243,5 @@
|
|
243
243
|
"prettier --write"
|
244
244
|
]
|
245
245
|
},
|
246
|
-
"gitHead": "
|
246
|
+
"gitHead": "469b2e97392a3766bc7e2bc4807b77406c19c676"
|
247
247
|
}
|
package/src/ox-buttons-radio.ts
CHANGED
@@ -12,18 +12,50 @@ import { OxFormField } from './ox-form-field'
|
|
12
12
|
|
13
13
|
Example:
|
14
14
|
|
15
|
-
<ox-buttons-radio
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
<ox-buttons-radio
|
16
|
+
class="light"
|
17
|
+
@change=${(e: CustomEvent) => console.log(e.detail)}
|
18
|
+
value="1"
|
19
|
+
>
|
20
|
+
<md-outlined-button data-value="1" ?active=${value == '1'}>Option 1</md-outlined-button>
|
21
|
+
<md-outlined-button data-value="2" ?active=${value == '2'}>Option 2</md-outlined-button>
|
22
|
+
<md-outlined-button data-value="3" ?active=${value == '3'}>Option 3</md-outlined-button>
|
19
23
|
</ox-buttons-radio>
|
20
24
|
*/
|
21
25
|
@customElement('ox-buttons-radio')
|
22
|
-
export class
|
26
|
+
export class OxButtonsRadio extends OxFormField {
|
23
27
|
static styles = [
|
24
28
|
css`
|
25
29
|
:host {
|
26
30
|
display: inline-block;
|
31
|
+
background-color: var(--ox-buttons-radio-background-color, var(--md-sys-color-surface));
|
32
|
+
|
33
|
+
--md-outlined-button-label-text-color:var(--md-sys-color-on-surface-variant);
|
34
|
+
--md-outlined-button-label-text-size:var(--md-sys-typescale-label-medium-size);
|
35
|
+
--md-outlined-button-container-height:var(--form-element-height-medium);
|
36
|
+
--md-outlined-button-container-shape:var(--md-sys-shape-corner-small);
|
37
|
+
--md-outlined-button-leading-space:var(--spacing-large);
|
38
|
+
--md-outlined-button-trailing-space:var(--spacing-large);
|
39
|
+
--md-outlined-button-hover-label-text-color:var(--md-sys-color-primary);
|
40
|
+
--md-outlined-button-pressed-outline-color:var(--md-sys-color-primary);
|
41
|
+
--md-outlined-button-pressed-label-text-color:var(--md-sys-color-primary);
|
42
|
+
|
43
|
+
--md-filled-button-container-color: var(--md-sys-color-primary);
|
44
|
+
--md-filled-button-label-text-color: var(--md-sys-color-primary-container);
|
45
|
+
--md-filled-button-label-text-size: var(--md-sys-typescale-label-medium-size);
|
46
|
+
--md-filled-button-container-height: var(--form-element-height-medium);
|
47
|
+
--md-filled-button-container-shape: var(--md-sys-shape-corner-small);
|
48
|
+
--md-filled-button-leading-space: var(--spacing-large);
|
49
|
+
--md-filled-button-trailing-space: var(--spacing-large);
|
50
|
+
--md-filled-button-hover-label-text-color: var(--md-sys-color-secondary-container);
|
51
|
+
--md-filled-button-pressed-label-text-color: var(--md-sys-color-secondary-container);
|
52
|
+
--md-filled-button-focus-label-text-color: var(--md-sys-color-secondary-container);
|
53
|
+
|
54
|
+
--md-text-button-container-height: var(--form-element-height-medium);
|
55
|
+
--md-text-button-container-shape: var(--md-sys-shape-corner-small);
|
56
|
+
|
57
|
+
--md-elevated-button-container-height: var(--form-element-height-medium);
|
58
|
+
--md-elevated-button-container-shape: var(--md-sys-shape-corner-small);
|
27
59
|
}
|
28
60
|
`
|
29
61
|
]
|
package/src/ox-checkbox.ts
CHANGED
@@ -28,33 +28,36 @@ export class OxCheckbox extends OxFormField {
|
|
28
28
|
cursor: auto;
|
29
29
|
}
|
30
30
|
|
31
|
-
|
31
|
+
.checkbox {
|
32
32
|
display: flex;
|
33
33
|
border-radius: var(--ox-checkbox-border-radius, 4px);
|
34
|
-
|
35
|
-
|
34
|
+
background-color: var(--ox-checkbox-unchecked-background-color, var(--md-sys-color-surface-container-lowest));
|
35
|
+
border: var(--ox-checkbox-unchecked-border, 1px solid var(--md-sys-color-outline));
|
36
36
|
width: var(--ox-checkbox-size, 15px);
|
37
37
|
height: var(--ox-checkbox-size, 15px);
|
38
38
|
align-items: center;
|
39
39
|
justify-content: center;
|
40
40
|
}
|
41
41
|
|
42
|
-
|
43
|
-
background-color: var(--ox-checkbox-unchecked-background-color,
|
44
|
-
border: var(--ox-checkbox-unchecked-border, 1px solid rgba(0, 0, 0, 0.3));
|
42
|
+
:host([indeterminate]) .checkbox {
|
43
|
+
background-color: var(--ox-checkbox-unchecked-background-color, var(--md-ref-palette-primary80));
|
45
44
|
}
|
46
45
|
|
47
|
-
:host([checked])
|
48
|
-
background-color: var(--ox-checkbox-checked-background-color,
|
49
|
-
border: var(--ox-checkbox-checked-border, 1px solid #38a25b);
|
46
|
+
:host([checked]) .checkbox {
|
47
|
+
background-color: var(--ox-checkbox-checked-background-color, var(--md-ref-palette-primary60));
|
50
48
|
}
|
51
49
|
|
52
50
|
path {
|
53
|
-
fill: var(--ox-checkbox-
|
51
|
+
fill: var(--ox-checkbox-unchecked-color, var(--md-sys-color-surface-container-lowest));
|
52
|
+
}
|
53
|
+
|
54
|
+
:host([indeterminate]) line {
|
55
|
+
fill: var(--ox-checkbox-intermidiate-color, var(--md-sys-color-on-surface-variant));
|
56
|
+
stroke: var(--ox-checkbox-intermidiate-color, var(--md-sys-color-outline));
|
54
57
|
}
|
55
58
|
|
56
59
|
:host([checked]) path {
|
57
|
-
fill: var(--ox-checkbox-checked-color,
|
60
|
+
fill: var(--ox-checkbox-checked-color, var(--md-sys-color-on-primary));
|
58
61
|
}
|
59
62
|
|
60
63
|
svg {
|
@@ -62,12 +65,13 @@ export class OxCheckbox extends OxFormField {
|
|
62
65
|
height: var(--ox-checkbox-size, 15px);
|
63
66
|
}
|
64
67
|
|
65
|
-
|
66
|
-
color: var(--ox-checkbox-label-color,
|
68
|
+
.label {
|
69
|
+
color: var(--ox-checkbox-label-color, var(--md-sys-color-on-surface-variant));
|
70
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
71
|
+
line-height:var(--md-sys-typescale-label-medium-line-height);
|
67
72
|
}
|
68
|
-
|
69
|
-
|
70
|
-
font-weight: var(--ox-checkbox-checked-font-weight, bold);
|
73
|
+
:host([checked]) .label{
|
74
|
+
font-weight:700;
|
71
75
|
}
|
72
76
|
`
|
73
77
|
]
|
@@ -87,11 +91,11 @@ export class OxCheckbox extends OxFormField {
|
|
87
91
|
<slot></slot>
|
88
92
|
</span>`
|
89
93
|
: ''}
|
90
|
-
<a href="#" @click=${(e: Event) => e.preventDefault()} checkbox>
|
94
|
+
<a href="#" @click=${(e: Event) => e.preventDefault()} class="checkbox">
|
91
95
|
${this.indeterminate ? this.indeterminateIcon : this.checked ? this.checkedIcon : this.uncheckedIcon}
|
92
96
|
</a>
|
93
97
|
${this._hasInner && !this.left
|
94
|
-
? html` <span label>
|
98
|
+
? html` <span class="label">
|
95
99
|
<slot></slot>
|
96
100
|
</span>`
|
97
101
|
: ''}
|
@@ -155,7 +159,7 @@ export class OxCheckbox extends OxFormField {
|
|
155
159
|
get indeterminateIcon() {
|
156
160
|
return html`
|
157
161
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
158
|
-
<line x1="4" x2="20" y1="12" y2="12" stroke
|
162
|
+
<line x1="4" x2="20" y1="12" y2="12" stroke-width="2" stroke-linecap="round" />
|
159
163
|
</svg>
|
160
164
|
`
|
161
165
|
}
|
package/src/ox-input-3axis.ts
CHANGED
@@ -18,13 +18,24 @@ export class OxInput3Axis extends OxFormField {
|
|
18
18
|
display: flex;
|
19
19
|
}
|
20
20
|
|
21
|
+
input{
|
22
|
+
box-sizing:border-box;
|
23
|
+
padding:0 var(--spacing-small);
|
24
|
+
height:var(--form-element-height-medium);
|
25
|
+
border:1px solid var(--md-sys-color-outline);
|
26
|
+
border-radius:var(--md-sys-shape-corner-small);
|
27
|
+
background-color:var(--md-sys-color-on-primary);
|
28
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
29
|
+
color: var(--md-sys-color-on-primary-container);
|
30
|
+
}
|
31
|
+
|
21
32
|
input:not(:last-child) {
|
22
33
|
margin-right: var(--margin-default, 2px);
|
23
34
|
}
|
24
35
|
|
25
36
|
input:focus {
|
26
|
-
outline:
|
27
|
-
border-
|
37
|
+
outline:none;
|
38
|
+
border-color:var(--md-sys-color-secondary-fixed-dim)
|
28
39
|
}
|
29
40
|
`
|
30
41
|
]
|
package/src/ox-input-3dish.ts
CHANGED
@@ -20,14 +20,14 @@ export class OxInput3Dish extends OxFormField {
|
|
20
20
|
:host {
|
21
21
|
display: grid;
|
22
22
|
grid-template-columns: repeat(7, minmax(50px, 1fr));
|
23
|
-
grid-gap: var(--
|
23
|
+
grid-gap: var(--spacing-medium);
|
24
24
|
}
|
25
25
|
|
26
26
|
label {
|
27
27
|
text-align: right;
|
28
28
|
align-self: center;
|
29
|
-
font:
|
30
|
-
color: var(--
|
29
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
30
|
+
color: var(--md-sys-color-on-primary-container);
|
31
31
|
text-transform: var(--label-text-transform);
|
32
32
|
grid-column: span 1;
|
33
33
|
}
|
@@ -35,18 +35,23 @@ export class OxInput3Dish extends OxFormField {
|
|
35
35
|
span {
|
36
36
|
grid-column: span 2;
|
37
37
|
text-align: center;
|
38
|
-
font:
|
39
|
-
color: var(--
|
38
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
39
|
+
color: var(--md-sys-color-surface-tint);
|
40
|
+
font-weight:var(--md-sys-typescale-label-medium-weight)
|
40
41
|
}
|
41
42
|
|
42
43
|
input,
|
43
44
|
ox-input-angle {
|
44
45
|
grid-column: span 2;
|
45
|
-
border
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
46
|
+
box-sizing:border-box;
|
47
|
+
padding:0 var(--spacing-small);
|
48
|
+
height:var(--form-element-height-medium);
|
49
|
+
border:1px solid var(--md-sys-color-outline);
|
50
|
+
border-radius:var(--md-sys-shape-corner-small);
|
51
|
+
overflow:hidden;
|
52
|
+
background-color:var(--md-sys-color-on-primary);
|
53
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
54
|
+
color: var(--md-sys-color-on-primary-container);
|
50
55
|
}
|
51
56
|
|
52
57
|
ox-input-angle {
|
@@ -55,7 +60,7 @@ export class OxInput3Dish extends OxFormField {
|
|
55
60
|
|
56
61
|
input:focus {
|
57
62
|
outline: none;
|
58
|
-
border-
|
63
|
+
border-color:var(--md-sys-color-secondary-fixed-dim)
|
59
64
|
}
|
60
65
|
`
|
61
66
|
]
|
package/src/ox-input-angle.ts
CHANGED
@@ -17,13 +17,20 @@ export class OxInputAngle extends OxFormField {
|
|
17
17
|
|
18
18
|
input {
|
19
19
|
width: 100%;
|
20
|
-
height:
|
20
|
+
height:100%;
|
21
|
+
min-height:var(--form-element-height-medium);
|
22
|
+
padding:0 var(--spacing-small);
|
21
23
|
box-sizing: border-box;
|
22
|
-
border: var(--input-border, 1px solid
|
24
|
+
border: var(--input-border, 1px solid var(--md-sys-color-outline));
|
25
|
+
border-radius:var(--md-sys-shape-corner-small);
|
26
|
+
background-color:var(--md-sys-color-on-primary);
|
27
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
28
|
+
color: var(--md-sys-color-on-primary-container);
|
23
29
|
}
|
24
30
|
|
25
31
|
input:focus {
|
26
32
|
outline: var(--input-focus-outline, inherit);
|
33
|
+
border-color:var(--md-sys-color-secondary-fixed-dim)
|
27
34
|
}
|
28
35
|
`
|
29
36
|
]
|
package/src/ox-input-barcode.ts
CHANGED
@@ -60,23 +60,27 @@ export class OxInputBarcode extends OxFormField {
|
|
60
60
|
|
61
61
|
input {
|
62
62
|
flex: 1;
|
63
|
-
|
64
|
-
|
65
|
-
padding: var(--
|
63
|
+
width: 10px; /* intentionally width set */
|
64
|
+
box-sizing: border-box;
|
65
|
+
padding: 0 var(--spacing-small);
|
66
66
|
padding-right: 35px;
|
67
|
-
|
68
|
-
|
69
|
-
|
67
|
+
height: var(--form-element-height-medium);
|
68
|
+
border: 1px solid var(--md-sys-color-outline);
|
69
|
+
border-radius: var(--md-sys-shape-corner-small);
|
70
|
+
|
71
|
+
background-color: var(--md-sys-color-on-primary);
|
72
|
+
font-size: var(--md-sys-typescale-label-medium-size);
|
73
|
+
color: var(--md-sys-color-on-primary-container);
|
70
74
|
}
|
71
75
|
input:focus {
|
72
76
|
outline: none;
|
73
|
-
border-
|
77
|
+
border-color: var(--md-sys-color-secondary-fixed-dim);
|
74
78
|
}
|
75
79
|
|
76
80
|
#scan-button {
|
77
81
|
display: block;
|
78
82
|
position: relative;
|
79
|
-
margin-left: -
|
83
|
+
margin-left: -35px;
|
80
84
|
width: 30px;
|
81
85
|
border: none;
|
82
86
|
background: var(--barcodescan-input-button-icon) no-repeat center center;
|
package/src/ox-input-code.ts
CHANGED
@@ -40,10 +40,13 @@ export class OxInputCode extends OxFormField {
|
|
40
40
|
position: relative;
|
41
41
|
background: white;
|
42
42
|
overflow: auto;
|
43
|
+
border:1px solid var(--md-sys-color-outline);
|
44
|
+
border-radius:var(--md-sys-shape-corner-small);
|
43
45
|
}
|
44
46
|
|
45
47
|
.cm-editor {
|
46
48
|
flex: 1;
|
49
|
+
|
47
50
|
}
|
48
51
|
`
|
49
52
|
]
|
package/src/ox-input-color.ts
CHANGED
@@ -183,15 +183,15 @@ export class OxInputColor extends OxFormField {
|
|
183
183
|
input[type='text'] {
|
184
184
|
width: 100%;
|
185
185
|
border: 0;
|
186
|
-
border-bottom:
|
187
|
-
padding: var(--
|
186
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
187
|
+
padding: var(--spacing-tiny);
|
188
188
|
font: var(--input-font);
|
189
|
-
color: var(--
|
189
|
+
color: var(--md-sys-color-on-primary-container);
|
190
190
|
padding-right: 35px;
|
191
191
|
}
|
192
192
|
input:focus {
|
193
193
|
outline: none;
|
194
|
-
border-bottom: 1px solid var(--primary-
|
194
|
+
border-bottom: 1px solid var(--md-sys-color-on-primary-container);
|
195
195
|
}
|
196
196
|
|
197
197
|
a {
|
@@ -208,7 +208,7 @@ export class OxInputColor extends OxFormField {
|
|
208
208
|
span {
|
209
209
|
width: 80%;
|
210
210
|
height: 60%;
|
211
|
-
border:
|
211
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
212
212
|
border-radius: var(--border-radius);
|
213
213
|
}
|
214
214
|
|
@@ -216,7 +216,9 @@ export class OxInputColor extends OxFormField {
|
|
216
216
|
background-color: #fefefe;
|
217
217
|
background-image: linear-gradient(45deg, #cbcbcb 25%, transparent 25%, transparent 75%, #cbcbcb 75%, #cbcbcb),
|
218
218
|
linear-gradient(45deg, #cbcbcb 25%, transparent 25%, transparent 75%, #cbcbcb 75%, #cbcbcb);
|
219
|
-
background-position:
|
219
|
+
background-position:
|
220
|
+
0 0,
|
221
|
+
9px 9px;
|
220
222
|
background-size: 18px 18px;
|
221
223
|
}
|
222
224
|
`
|
package/src/ox-input-crontab.ts
CHANGED
@@ -110,47 +110,50 @@ export class OxInputCrontab extends OxFormField {
|
|
110
110
|
label[for='example'] {
|
111
111
|
text-align: right;
|
112
112
|
grid-column: 3;
|
113
|
-
font:
|
114
|
-
color: var(--
|
113
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
114
|
+
color: var(--md-sys-color-on-primary-container);
|
115
115
|
text-transform: capitalize;
|
116
116
|
}
|
117
117
|
|
118
118
|
#example {
|
119
119
|
grid-column: 4 / span 3;
|
120
120
|
width: 100%;
|
121
|
-
|
122
|
-
padding: var(--
|
123
|
-
|
124
|
-
border
|
121
|
+
box-sizing:border-box;
|
122
|
+
padding:0 var(--spacing-small);
|
123
|
+
height:var(--form-element-height-medium);
|
124
|
+
border:1px solid var(--md-sys-color-outline);
|
125
|
+
border-radius:var(--md-sys-shape-corner-small);
|
126
|
+
background-color:var(--md-sys-color-on-primary);
|
125
127
|
text-transform: capitalize;
|
126
|
-
font:
|
127
|
-
color: var(--
|
128
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
129
|
+
color: var(--md-sys-color-on-primary-container);
|
128
130
|
}
|
129
131
|
|
130
132
|
input {
|
131
133
|
width: 100%;
|
132
|
-
|
133
|
-
padding:
|
134
|
-
|
135
|
-
border
|
136
|
-
|
137
|
-
|
138
|
-
|
134
|
+
box-sizing:border-box;
|
135
|
+
padding:0 var(--spacing-small);
|
136
|
+
height:var(--form-element-height-medium);
|
137
|
+
border:1px solid var(--md-sys-color-outline);
|
138
|
+
border-radius:var(--md-sys-shape-corner-small);
|
139
|
+
background-color:var(--md-sys-color-on-primary);
|
140
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
141
|
+
color: var(--md-sys-color-on-primary-container);
|
139
142
|
}
|
140
143
|
input:focus {
|
141
144
|
outline: none;
|
142
|
-
border-
|
145
|
+
border-color:var(--md-sys-color-secondary-fixed-dim)
|
143
146
|
}
|
144
147
|
|
145
148
|
input:invalid {
|
146
|
-
border-
|
149
|
+
border-color:var(--md-sys-color-error);
|
147
150
|
color: var(--status-danger-color);
|
148
151
|
}
|
149
152
|
|
150
153
|
label {
|
151
154
|
width: 100%;
|
152
|
-
font:
|
153
|
-
color: var(--primary-
|
155
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
156
|
+
color: var(--md-sys-color-on-primary-container);
|
154
157
|
}
|
155
158
|
|
156
159
|
label:not([for='example']) {
|
@@ -168,7 +171,7 @@ export class OxInputCrontab extends OxFormField {
|
|
168
171
|
flex: 1;
|
169
172
|
display: grid;
|
170
173
|
grid-template-rows: 1fr auto;
|
171
|
-
grid-gap:
|
174
|
+
grid-gap: var(--spacing-small);
|
172
175
|
min-width: 60px;
|
173
176
|
max-width: 33%;
|
174
177
|
margin: 0.25rem;
|
@@ -187,18 +190,19 @@ export class OxInputCrontab extends OxFormField {
|
|
187
190
|
|
188
191
|
#tooltip > div {
|
189
192
|
padding: 0.25rem 0.5rem;
|
190
|
-
border-bottom:
|
191
|
-
font:
|
193
|
+
border-bottom: var(--md-sys-color-on-surface-variant) 1px dashed;
|
194
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
195
|
+
color: var(--md-sys-color-on-primary-container);
|
192
196
|
}
|
193
197
|
|
194
198
|
#tooltip > .crontab-value {
|
195
199
|
text-align: right;
|
196
|
-
color: var(--
|
200
|
+
color: var(--md-sys-color-surface-tint);
|
197
201
|
}
|
198
202
|
|
199
203
|
#tooltip > .crontab-description {
|
200
204
|
text-align: left;
|
201
|
-
color:
|
205
|
+
color: var(--md-sys-color-on-primary-container);
|
202
206
|
}
|
203
207
|
|
204
208
|
#button-wrapper {
|
@@ -215,7 +219,7 @@ export class OxInputCrontab extends OxFormField {
|
|
215
219
|
}
|
216
220
|
button:hover,
|
217
221
|
button:active {
|
218
|
-
background-color: var(--primary-
|
222
|
+
background-color: var(--md-sys-color-on-primary-container);
|
219
223
|
}
|
220
224
|
`
|
221
225
|
|
package/src/ox-input-data.ts
CHANGED
@@ -30,16 +30,25 @@ export class OxInputData extends OxFormField {
|
|
30
30
|
position: relative;
|
31
31
|
}
|
32
32
|
|
33
|
-
div
|
33
|
+
div.datatype {
|
34
34
|
display: flex;
|
35
35
|
align-items: center;
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
margin-bottom: var(--spacing-small);
|
37
|
+
padding: var(--spacing-small);
|
38
|
+
background-color: var(--md-sys-color-primary-container);
|
39
|
+
border:1px solid var(--md-sys-color-primary-fixed-dim);
|
40
|
+
border-radius:var(--md-sys-shape-corner-small);
|
41
|
+
font-size: var(--md-sys-typescale-label-medium-size);
|
42
|
+
color: var(--md-sys-color-on-primary-container);
|
39
43
|
}
|
40
44
|
|
41
|
-
div
|
45
|
+
div.datatype md-icon {
|
42
46
|
margin-left: auto;
|
47
|
+
color:var(--md-sys-color-primary);
|
48
|
+
cursor:pointer
|
49
|
+
}
|
50
|
+
div.datatype label{
|
51
|
+
margin-right:var(--spacing-small)
|
43
52
|
}
|
44
53
|
|
45
54
|
ox-input-code {
|
@@ -54,7 +63,7 @@ export class OxInputData extends OxFormField {
|
|
54
63
|
const valueType = typeof this.value
|
55
64
|
|
56
65
|
return html`
|
57
|
-
<div datatype>
|
66
|
+
<div class="datatype">
|
58
67
|
<input
|
59
68
|
id="string"
|
60
69
|
type="radio"
|
package/src/ox-input-duration.ts
CHANGED
@@ -15,6 +15,8 @@ export class OxInputDuration extends OxFormField {
|
|
15
15
|
:host {
|
16
16
|
text-align: center;
|
17
17
|
padding: 10px;
|
18
|
+
--md-filled-icon-button-container-height:var(--form-element-height-medium);
|
19
|
+
--md-filled-icon-button-container-shape:var(--md-sys-shape-corner-small);
|
18
20
|
}
|
19
21
|
|
20
22
|
:host * {
|
@@ -37,19 +39,20 @@ export class OxInputDuration extends OxFormField {
|
|
37
39
|
}
|
38
40
|
|
39
41
|
input {
|
40
|
-
border
|
41
|
-
|
42
|
-
|
43
|
-
|
42
|
+
box-sizing:border-box;
|
43
|
+
padding:0 var(--spacing-small);
|
44
|
+
height:var(--form-element-height-medium);
|
45
|
+
border:1px solid var(--md-sys-color-outline);
|
46
|
+
border-radius:var(--md-sys-shape-corner-small);
|
44
47
|
max-width: 70px;
|
45
|
-
font:
|
46
|
-
color: var(--
|
48
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
49
|
+
color: var(--md-sys-color-on-primary-container);
|
47
50
|
text-align: right;
|
48
51
|
}
|
49
52
|
|
50
53
|
input:focus {
|
51
54
|
outline: none;
|
52
|
-
border-
|
55
|
+
border-color:var(--md-sys-color-secondary-fixed-dim)
|
53
56
|
}
|
54
57
|
|
55
58
|
input:invalid {
|
@@ -59,31 +62,9 @@ export class OxInputDuration extends OxFormField {
|
|
59
62
|
|
60
63
|
label {
|
61
64
|
width: 100%;
|
62
|
-
margin-right: var(--
|
63
|
-
font:
|
64
|
-
color: var(--primary-
|
65
|
-
}
|
66
|
-
|
67
|
-
button {
|
68
|
-
border: var(--button-border);
|
69
|
-
border-radius: var(--border-radius);
|
70
|
-
background-color: var(--button-background-color);
|
71
|
-
min-height: 35px;
|
72
|
-
line-height: 0.8;
|
73
|
-
color: var(--button-color);
|
74
|
-
cursor: pointer;
|
75
|
-
}
|
76
|
-
|
77
|
-
button + button {
|
78
|
-
margin-left: -5px;
|
79
|
-
}
|
80
|
-
|
81
|
-
button:focus,
|
82
|
-
button:hover,
|
83
|
-
button:active {
|
84
|
-
border: var(--button-activ-border);
|
85
|
-
background-color: var(--button-background-focus-color);
|
86
|
-
color: var(--theme-white-color);
|
65
|
+
margin-right: var(--spacing-medium);
|
66
|
+
font-size:var(--md-sys-typescale-label-medium-size);
|
67
|
+
color: var(--md-sys-color-on-primary-container);
|
87
68
|
}
|
88
69
|
`
|
89
70
|
|
@@ -132,7 +113,7 @@ export class OxInputDuration extends OxFormField {
|
|
132
113
|
/>
|
133
114
|
<label for="second">${i18next.t('label.seconds')}</label>
|
134
115
|
|
135
|
-
<button
|
116
|
+
<md-filled-icon-button
|
136
117
|
type="button"
|
137
118
|
@click=${(e: Event) => {
|
138
119
|
e.preventDefault()
|
@@ -151,7 +132,7 @@ export class OxInputDuration extends OxFormField {
|
|
151
132
|
?disabled=${this.disabled}
|
152
133
|
>
|
153
134
|
<md-icon>backspace</md-icon>
|
154
|
-
</button>
|
135
|
+
</md-filled-icon-button>
|
155
136
|
<div padding></div>
|
156
137
|
</form>
|
157
138
|
`
|