@operato/form 10.22.0 → 10.24.0
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 +17 -0
- package/coverage/lcov-report/index.html +22 -7
- package/coverage/lcov.info +219 -48
- package/dist/src/filters/filter-styles.js +2 -1
- package/dist/src/filters/filter-styles.js.map +1 -1
- package/dist/src/styles/search-form-styles.js +2 -1
- package/dist/src/styles/search-form-styles.js.map +1 -1
- package/dist/test/readonly-theme.test.d.ts +1 -0
- package/dist/test/readonly-theme.test.js +19 -0
- package/dist/test/readonly-theme.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/test/readonly-theme.test.ts +20 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/form",
|
|
3
3
|
"description": "WebApplication form supporting components following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "10.
|
|
5
|
+
"version": "10.24.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"module": "dist/src/index.js",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@material/web": "^2.0.0",
|
|
66
66
|
"@operato/graphql": "^10.22.0",
|
|
67
|
-
"@operato/input": "^10.
|
|
68
|
-
"@operato/p13n": "^10.
|
|
69
|
-
"@operato/styles": "^10.
|
|
67
|
+
"@operato/input": "^10.23.0",
|
|
68
|
+
"@operato/p13n": "^10.23.0",
|
|
69
|
+
"@operato/styles": "^10.23.0",
|
|
70
70
|
"@operato/time-calculator": "^10.16.2",
|
|
71
71
|
"@operato/utils": "^10.22.0",
|
|
72
72
|
"lit": "^3.1.2"
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"prettier --write"
|
|
105
105
|
]
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "c3cb8b0e25f05aba9836418b05bc0e24c8095797"
|
|
108
108
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { expect } from '@open-wc/testing'
|
|
2
|
+
|
|
3
|
+
import { FilterStyles } from '../src/filters/filter-styles.js'
|
|
4
|
+
import { SearchFormStyles } from '../src/styles/search-form-styles.js'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Read-only fields sit on a surface of the theme. They were a fixed #f0f0f0 behind text that follows
|
|
8
|
+
* the theme - light text on a light field in the dark theme.
|
|
9
|
+
*/
|
|
10
|
+
describe('read-only fields in the filter and search forms', () => {
|
|
11
|
+
for (const [name, styles] of [
|
|
12
|
+
['FilterStyles', FilterStyles],
|
|
13
|
+
['SearchFormStyles', SearchFormStyles]
|
|
14
|
+
] as const) {
|
|
15
|
+
it(`${name} uses the theme's surface`, () => {
|
|
16
|
+
expect(styles.cssText).to.match(/readonly\][^{]*\{\s*background-color:\s*var\(--md-sys-color-surface-container-highest\)/)
|
|
17
|
+
expect(styles.cssText).to.not.match(/#f0f0f0/i)
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
})
|