@neovici/cosmoz-omnitable 12.26.3 → 12.27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "12.26.3",
3
+ "version": "12.27.0",
4
4
  "description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-omnitable.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-omnitable)",
5
5
  "keywords": [
6
6
  "web-components"
@@ -66,6 +66,7 @@
66
66
  "@neovici/cosmoz-dropdown": "^3.0.0",
67
67
  "@neovici/cosmoz-grouped-list": "^6.0.0",
68
68
  "@neovici/cosmoz-i18next": "^3.1.1",
69
+ "@neovici/cosmoz-input": "^3.15.0",
69
70
  "@neovici/cosmoz-router": "^10.0.0",
70
71
  "@neovici/cosmoz-utils": "^5.16.0",
71
72
  "@neovici/nullxlsx": "^3.0.0",
@@ -73,17 +74,15 @@
73
74
  "@polymer/iron-icons": "^3.0.0",
74
75
  "@polymer/paper-dropdown-menu": "^3.2.0",
75
76
  "@polymer/paper-icon-button": "^3.0.0",
76
- "@polymer/paper-input": "^3.2.0",
77
77
  "@polymer/paper-spinner": "^3.0.0",
78
78
  "@polymer/polymer": "^3.3.0",
79
- "@webcomponents/shadycss": "^1.10.0",
80
79
  "file-saver-es": "^2.0.0",
81
80
  "haunted": "^5.0.0",
82
81
  "lit-html": "^2.0.0"
83
82
  },
84
83
  "devDependencies": {
85
- "@commitlint/cli": "^17.0.0",
86
- "@commitlint/config-conventional": "^17.0.0",
84
+ "@commitlint/cli": "^18.0.0",
85
+ "@commitlint/config-conventional": "^18.0.0",
87
86
  "@neovici/cfg": "^1.18.0",
88
87
  "@neovici/cosmoz-viewinfo": "^3.1.0",
89
88
  "@open-wc/testing": "^3.0.0",
@@ -95,8 +94,7 @@
95
94
  "@semantic-release/changelog": "^6.0.0",
96
95
  "@semantic-release/git": "^10.0.0",
97
96
  "husky": "^8.0.0",
98
- "semantic-release": "^21.0.0",
99
- "sinon": "^15.0.0",
100
- "web-animations-js": "^2.3.0"
97
+ "semantic-release": "^22.0.0",
98
+ "sinon": "^17.0.0"
101
99
  }
102
100
  }
@@ -1,62 +1,69 @@
1
- import '@polymer/iron-icon/iron-icon';
2
- import '@polymer/iron-icons/iron-icons';
3
-
4
- import { html } from '@polymer/polymer/lib/utils/html-tag';
5
- import { PolymerElement } from '@polymer/polymer/polymer-element';
6
-
7
- class CosmozClearButton extends PolymerElement {
8
- static get template() {
9
- return html`
10
- <style is="custom-style">
11
- :host(:not([light])) {
12
- position: absolute;
13
- right: 0;
14
- z-index: +1;
15
- }
16
-
17
- :host(:not([visible])){
18
- display: none !important;
19
- }
20
-
21
- :host(:not([light])) iron-icon {
22
- top: 10px;
23
- margin: 2px 7px;
24
- color: #cdcdcd;
25
- background-color: #a6a6a6;
26
- border-radius: 500px;
27
- cursor: pointer;
28
- min-width: 16px;
29
- width: 16px !important;
30
- min-height: 16px;
31
- height: 16px;
32
- padding: 2px;
33
- box-sizing: border-box;
34
- transition: background-color 0.25s, color 0.25s;
35
- float: right;
36
- }
37
-
38
- :host(:not([light])) iron-icon:hover {
39
- background-color: #b0b0b0;
40
- color: #dfdfdf;
41
- }
42
- </style>
43
- <iron-icon icon="clear"></iron-icon>
44
- `;
1
+ import { tagged as css } from '@neovici/cosmoz-utils';
2
+ import { html, component } from 'haunted';
3
+
4
+ const styles = css`
5
+ :host {
6
+ display: flex;
7
+ }
8
+ :host(:not([light])) {
9
+ position: absolute;
10
+ right: 0;
11
+ z-index: +1;
12
+ }
13
+
14
+ :host(:not([visible])) {
15
+ display: none !important;
16
+ }
17
+
18
+ .icon {
19
+ fill: currentColor;
45
20
  }
46
21
 
47
- static get properties() {
48
- return {
49
- light: {
50
- reflectToAttribute: true,
51
- type: Boolean,
52
- value: false
53
- },
54
- visible: {
55
- reflectToAttribute: true,
56
- type: Boolean,
57
- value: false
58
- }
59
- };
22
+ :host([light]) {
23
+ flex: 0 0 24px;
60
24
  }
61
- }
62
- customElements.define('cosmoz-clear-button', CosmozClearButton);
25
+
26
+ :host(:not([light])) .icon {
27
+ top: 10px;
28
+ margin: 2px 7px;
29
+ color: #cdcdcd;
30
+ background-color: #a6a6a6;
31
+ border-radius: 500px;
32
+ cursor: pointer;
33
+ min-width: 16px;
34
+ width: 16px !important;
35
+ min-height: 16px;
36
+ height: 16px;
37
+ padding: 2px;
38
+ box-sizing: border-box;
39
+ transition:
40
+ background-color 0.25s,
41
+ color 0.25s;
42
+ float: right;
43
+ }
44
+
45
+ :host(:not([light])) .icon:hover {
46
+ background-color: #b0b0b0;
47
+ color: #dfdfdf;
48
+ }
49
+ `;
50
+
51
+ const Clear = () => html`
52
+ <style>
53
+ ${styles}
54
+ </style>
55
+ <svg
56
+ viewBox="0 0 24 24"
57
+ preserveAspectRatio="xMidYMid meet"
58
+ focusable="false"
59
+ class="icon"
60
+ >
61
+ <g>
62
+ <path
63
+ d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
64
+ ></path>
65
+ </g>
66
+ </svg>
67
+ `;
68
+
69
+ customElements.define('cosmoz-clear-button', component(Clear));