@digital-realty/ix-grid 1.3.1 → 1.4.1-alpha.1

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
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent ix-grid following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "Digital Realty",
6
- "version": "1.3.1",
6
+ "version": "1.4.1-alpha.1",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@digital-realty/grid": "^1.1.1",
33
33
  "@digital-realty/ix-button": "^3.4.1",
34
- "@digital-realty/ix-date": "^1.2.1",
34
+ "@digital-realty/ix-date": "^1.2.2-alpha.1",
35
35
  "@digital-realty/ix-icon": "^1.2.1",
36
36
  "@digital-realty/ix-icon-button": "^1.2.1",
37
37
  "@digital-realty/ix-menu": "^1.2.1",
@@ -46,6 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@custom-elements-manifest/analyzer": "^0.4.17",
49
+ "@digital-realty/ix-app-logic": "^1.2.2-alpha.1",
49
50
  "@open-wc/eslint-config": "^9.2.1",
50
51
  "@open-wc/testing": "^3.1.6",
51
52
  "@rollup/plugin-alias": "^5.1.1",
@@ -111,6 +112,5 @@
111
112
  "eslint --fix",
112
113
  "prettier --write"
113
114
  ]
114
- },
115
- "gitHead": "0a87dc6e3da94a1375ec43a7ead2bfdec4913821"
115
+ }
116
116
  }
package/rollup.config.mjs CHANGED
@@ -3,20 +3,28 @@ import pkgMinifyHTML from 'rollup-plugin-minify-html-literals';
3
3
  const minifyHTML = pkgMinifyHTML.default;
4
4
  import summary from 'rollup-plugin-summary';
5
5
  import { uglify } from "rollup-plugin-uglify";
6
+ import nodeResolve from '@rollup/plugin-node-resolve';
7
+ import { rollUpExternals } from "@digital-realty/ix-app-logic/build_scripts/shared-deps.generator.js";
8
+
6
9
 
7
10
  const target = './dist/ix-grid';
8
11
 
9
12
  export default {
10
13
  input: `${target}.js`,
14
+ external: id => rollUpExternals(id),
11
15
  plugins: [
16
+ nodeResolve({
17
+ exportConditions: ['browser', 'development'],
18
+ browser: true,
19
+ }),
12
20
  // Minify HTML template literals
13
21
  minifyHTML(),
14
22
  // Minify JS
15
23
  uglify(),
16
24
  // Print bundle summary
17
- summary(),
25
+ summary(),
18
26
  ],
19
27
  output: {
20
28
  file: `${target}.min.js`,
21
29
  },
22
- };
30
+ };
package/src/IxGrid.ts CHANGED
@@ -10,7 +10,7 @@ import { html, LitElement, nothing, render } from 'lit';
10
10
  import { property, query, state } from 'lit/decorators.js';
11
11
  import { classMap } from 'lit/directives/class-map.js';
12
12
  import { ifDefined } from 'lit/directives/if-defined.js';
13
- import { formatDate } from 'date-fns/format.js';
13
+ import { formatDate } from 'date-fns';
14
14
  import './components/IxGridColumnFilter.js';
15
15
  import './components/IxGridDownloadMenu.js';
16
16
  import './components/IxGridRowFilter.js';
@@ -173,7 +173,7 @@ export class IxGrid extends LitElement {
173
173
  if (this.hashedTableState === '') {
174
174
  const columnsWithoutFunctions = this.columns.map(
175
175
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
176
- ({ bodyRenderer, ...rest }) => rest
176
+ ({ bodyRenderer, hidden, ...rest }) => rest
177
177
  );
178
178
  const serializedColumns = JSON.stringify(columnsWithoutFunctions);
179
179
 
@@ -3,7 +3,7 @@ import '@digital-realty/ix-date/ix-date.js';
3
3
  import '@digital-realty/ix-icon-button/ix-icon-button.js';
4
4
  import '@digital-realty/ix-icon/ix-icon.js';
5
5
  import '@digital-realty/ix-select/ix-select.js';
6
- import { formatDate } from 'date-fns/format.js';
6
+ import { formatDate } from 'date-fns';
7
7
  import { LitElement, html, nothing } from 'lit';
8
8
  import { customElement, property, state } from 'lit/decorators.js';
9
9
  import { repeat } from 'lit/directives/repeat.js';
@@ -64,8 +64,8 @@ export const IxGridColumnFilterStyles = css`
64
64
 
65
65
  .active {
66
66
  position: absolute;
67
- right: 0;
68
- top: 0;
67
+ right: 8px;
68
+ top: 8px;
69
69
  height: 8px;
70
70
  width: 8px;
71
71
  background-color: var(--clr-critical, #db0028);