@neovici/cosmoz-omnitable 8.2.4 → 8.3.2

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.
@@ -298,7 +298,7 @@ export default `<style>
298
298
  align-items: center;
299
299
  }
300
300
  .footer-control + .footer-control {
301
- margin-left: 34px;
301
+ margin-left: 16px;
302
302
  }
303
303
  .footer-control::part(input-label) {
304
304
  opacity: 0.7;
@@ -318,6 +318,7 @@ export default `<style>
318
318
  display: flex;
319
319
  flex-direction: column;
320
320
  align-items: flex-end;
321
+ white-space: nowrap;
321
322
  }
322
323
 
323
324
  .footer-tableStats :first-child {
@@ -146,6 +146,7 @@ class Omnitable extends hauntedPolymer(useOmnitable)(mixin({ isEmpty }, translat
146
146
  >
147
147
  <svg slot="suffix" viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet" focusable="false" width="24" fill="currentColor"><path d="M7 10l5 5 5-5z"></path></svg>
148
148
  </cosmoz-autocomplete>
149
+ <slot id="controlsSlot" name="controls"></slot>
149
150
  </div>
150
151
  <div class="footer-tableStats">
151
152
  <span>[[ ngettext('{0} group', '{0} groups', groupsCount, t) ]]</span>
@@ -125,15 +125,14 @@ const
125
125
  setColumns(domColumnsToConfig(host, { enabledColumns }));
126
126
  };
127
127
 
128
+ handler();
128
129
  slot.addEventListener('slotchange', handler);
129
130
  host.addEventListener('cosmoz-column-prop-changed', handler);
130
131
  return () => {
131
132
  slot.removeEventListener('slotchange', handler);
132
133
  host.removeEventListener('cosmoz-column-prop-changed', handler);
133
134
  };
134
- }, []);
135
-
136
- useEffect(() => setColumns(domColumnsToConfig(host, { enabledColumns })), [enabledColumns]);
135
+ }, [enabledColumns]);
137
136
 
138
137
  return columns;
139
138
  };
package/lib/utils-date.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toLocalISOString } from '@neovici/cosmoz-utils/lib/date';
1
+ import { toLocalISOString, ensureDate } from '@neovici/cosmoz-utils/lib/date';
2
2
  import { get } from '@polymer/polymer/lib/utils/path';
3
3
  import { toNumber } from './utils-number';
4
4
 
@@ -43,7 +43,11 @@ export const
43
43
  date = getAbsoluteISOString(date);
44
44
  }
45
45
 
46
- date = new Date(date);
46
+ date = ensureDate(date);
47
+
48
+ if (!date) {
49
+ return null;
50
+ }
47
51
  }
48
52
 
49
53
  if (Number.isNaN(date.getTime())) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "8.2.4",
3
+ "version": "8.3.2",
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"
@@ -58,7 +58,7 @@
58
58
  "@neovici/cosmoz-dropdown": "^1.5.0",
59
59
  "@neovici/cosmoz-grouped-list": "^3.2.0",
60
60
  "@neovici/cosmoz-i18next": "^3.1.1",
61
- "@neovici/cosmoz-page-router": "^6.0.3",
61
+ "@neovici/cosmoz-page-router": "^7.0.0",
62
62
  "@neovici/cosmoz-utils": "^3.19.0",
63
63
  "@neovici/nullxlsx": "^3.0.0",
64
64
  "@polymer/iron-icon": "^3.0.0",
@@ -92,8 +92,8 @@
92
92
  "@web/test-runner": "^0.13.0",
93
93
  "@web/test-runner-selenium": "^0.5.0",
94
94
  "husky": "^7.0.0",
95
- "semantic-release": "^18.0.0",
96
- "sinon": "^12.0.0",
95
+ "semantic-release": "^19.0.0",
96
+ "sinon": "^13.0.0",
97
97
  "web-animations-js": "^2.3.2"
98
98
  }
99
99
  }