@neovici/cosmoz-omnitable 13.13.1 → 13.13.3

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.
@@ -1,12 +1,10 @@
1
1
  /* eslint-disable no-return-assign */
2
- import '@neovici/cosmoz-input';
2
+ import { html } from 'lit-html';
3
+ import { PolymerElement } from '@polymer/polymer/polymer-element';
3
4
  import '@polymer/paper-dropdown-menu/paper-dropdown-menu';
5
+ import '@neovici/cosmoz-input';
4
6
 
5
7
  import './ui-helpers/cosmoz-clear-button';
6
-
7
- import { PolymerElement } from '@polymer/polymer/polymer-element';
8
- import { html } from 'lit-html';
9
-
10
8
  import { columnMixin } from './cosmoz-omnitable-column-mixin';
11
9
  import './lib/cosmoz-omnitable-date-range-input';
12
10
  import { defaultComputeSource } from './lib/utils-data';
@@ -95,13 +93,14 @@ class OmnitableColumnDate extends columnMixin(PolymerElement) {
95
93
  }
96
94
 
97
95
  renderCell(column, { item }) {
98
- return getString(column, item);
96
+ return html`<div class="omnitable-cell-date">
97
+ ${getString(column, item)}
98
+ </div>`;
99
99
  }
100
100
 
101
101
  renderEditCell(column, { item }, onItemChange) {
102
102
  const onChange = (event) =>
103
103
  onItemChange(fromInputString(event.target.value));
104
-
105
104
  return html`<cosmoz-input
106
105
  no-label-float
107
106
  type="date"
@@ -344,6 +344,7 @@ export default css`
344
344
 
345
345
  .tableContent .itemRow-cell paper-dropdown-menu {
346
346
  margin-top: -20px;
347
+
347
348
  }
348
349
 
349
350
  cosmoz-omnitable-item-expand[expanded] {
@@ -437,7 +438,7 @@ export default css`
437
438
  overflow: initial;
438
439
  }
439
440
 
440
- .omnitable-cell-number {
441
+ .omnitable-cell-number, .omnitable-cell-date {
441
442
  font-variant-numeric: tabular-nums;
442
443
  }
443
444
 
@@ -1,7 +1,7 @@
1
- import { _ } from '@neovici/cosmoz-i18next';
2
1
  import { PolymerElement } from '@polymer/polymer';
3
- import { html } from 'lit-html';
4
2
  import { ifDefined } from 'lit-html/directives/if-defined.js';
3
+ import { html } from 'lit-html';
4
+ import { _ } from '@neovici/cosmoz-i18next';
5
5
  import '@neovici/cosmoz-input';
6
6
  import { rangeInputMixin } from './cosmoz-omnitable-range-input-mixin';
7
7
  import { polymerHauntedRender } from './polymer-haunted-render-mixin';
@@ -42,6 +42,12 @@ class NumberRangeInput extends rangeInputMixin(
42
42
  paper-dropdown-menu {
43
43
  --iron-icon-width: 0;
44
44
  display: block;
45
+ text-align: right;
46
+ }
47
+ .dropdown-content {
48
+ padding: 15px;
49
+ min-width: 100px;
50
+ text-align: left;
45
51
  }
46
52
  </style>
47
53
 
@@ -58,11 +64,7 @@ class NumberRangeInput extends rangeInputMixin(
58
64
  ?opened=${this.headerFocused}
59
65
  @opened-changed=${onOpenedChanged}
60
66
  >
61
- <div
62
- class="dropdown-content"
63
- slot="dropdown-content"
64
- style="padding: 15px; min-width: 100px;"
65
- >
67
+ <div class="dropdown-content" slot="dropdown-content">
66
68
  <h3 style="margin: 0;">${this.title}</h3>
67
69
  <cosmoz-input
68
70
  class=${this._fromClasses}
@@ -31,7 +31,7 @@ export const useSortAndGroupOptions = (
31
31
  suffix: '-sortOn',
32
32
  }),
33
33
  [descending, setDescending] = useHashState(
34
- settings.descending,
34
+ boolParam(settings.descending),
35
35
  hashParam,
36
36
  {
37
37
  suffix: '-descending',
@@ -42,7 +42,7 @@ export const useSortAndGroupOptions = (
42
42
  suffix: '-groupOn',
43
43
  }),
44
44
  [groupOnDescending, setGroupOnDescending] = useHashState(
45
- settings.groupOnDescending,
45
+ boolParam(settings.groupOnDescending),
46
46
  hashParam,
47
47
  { suffix: '-groupOnDescending', read: boolParam },
48
48
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "13.13.1",
3
+ "version": "13.13.3",
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"