@neovici/cosmoz-omnitable 12.5.0 → 12.6.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/cosmoz-omnitable.js
CHANGED
|
@@ -18,6 +18,7 @@ import styles from './cosmoz-omnitable-styles';
|
|
|
18
18
|
|
|
19
19
|
import { html as polymerHtml } from '@polymer/polymer/lib/utils/html-tag';
|
|
20
20
|
import { html } from 'lit-html';
|
|
21
|
+
import { guard } from 'lit-html/directives/guard.js';
|
|
21
22
|
|
|
22
23
|
import { useOmnitable } from './lib/use-omnitable';
|
|
23
24
|
import { component } from 'haunted';
|
|
@@ -26,12 +27,14 @@ import { renderFooter } from './lib/render-footer';
|
|
|
26
27
|
import { renderList } from './lib/render-list';
|
|
27
28
|
import { notifyProperty } from '@neovici/cosmoz-utils/hooks/use-notify-property';
|
|
28
29
|
|
|
30
|
+
const shimCSS = (s) => window.ShadyCSS?.ApplyShim?.transformCssText?.(s) || s;
|
|
31
|
+
|
|
29
32
|
const Omnitable = (host) => {
|
|
30
33
|
const { header, list, footer } = useOmnitable(host);
|
|
31
34
|
|
|
32
35
|
return html`
|
|
33
36
|
<style>
|
|
34
|
-
${styles}
|
|
37
|
+
${guard([], () => shimCSS(styles))}
|
|
35
38
|
</style>
|
|
36
39
|
<div id="layoutStyle"></div>
|
|
37
40
|
|
package/lib/use-omnitable.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.6.0",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|