@umbraco-ui/uui-table 1.12.1 → 1.13.0-rc.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/lib/index.js CHANGED
@@ -96,7 +96,7 @@ UUITableCellElement.styles = [
96
96
  height: var(--uui-table-cell-height, var(--uui-size-12,36px));
97
97
  padding: var(
98
98
  --uui-table-cell-padding,
99
- var(--uui-size-4,12px) var(--uui-size-5,15px)
99
+ var(--uui-size-3,9px) var(--uui-size-5,15px)
100
100
  );
101
101
  border-top: 1px solid var(--uui-color-border,#d8d7d9);
102
102
  vertical-align: middle;
@@ -259,20 +259,19 @@ let UUITableRowElement = class extends SelectOnlyMixin(
259
259
  this.setAttribute("role", "row");
260
260
  }
261
261
  updated(changedProperties) {
262
- if (changedProperties.has("selectOnly")) this.updateChildSelectOnly();
262
+ if (changedProperties.has("selectOnly")) {
263
+ this.updateChildSelectOnly();
264
+ }
263
265
  }
264
266
  updateChildSelectOnly() {
265
267
  if (this.slotCellNodes) {
266
268
  this.slotCellNodes.forEach((el) => {
267
- if (this.elementIsTableCell(el)) {
269
+ if (el.disableChildInteraction !== void 0) {
268
270
  el.disableChildInteraction = this.selectOnly;
269
271
  }
270
272
  });
271
273
  }
272
274
  }
273
- elementIsTableCell(element) {
274
- return element instanceof UUITableCellElement;
275
- }
276
275
  render() {
277
276
  return html` <slot @slotchanged=${this.updateChildSelectOnly}></slot> `;
278
277
  }
@@ -2,13 +2,15 @@ import '.';
2
2
  import '@umbraco-ui/uui-avatar/lib';
3
3
  import '@umbraco-ui/uui-box/lib';
4
4
  import '@umbraco-ui/uui-button/lib';
5
+ import '@umbraco-ui/uui-checkbox/lib';
5
6
  import '@umbraco-ui/uui-icon/lib';
6
7
  import '@umbraco-ui/uui-progress-bar/lib';
7
8
  import '@umbraco-ui/uui-tag/lib';
9
+ import '@umbraco-ui/uui-symbol-sort/lib';
8
10
  import { LitElement } from 'lit';
9
11
  interface TableColumn {
10
12
  name: string;
11
- sort: Function;
13
+ sort: (items: Array<TableItem>, desc: boolean) => Array<TableItem>;
12
14
  }
13
15
  interface TableItem {
14
16
  key: string;
@@ -12,7 +12,6 @@ export declare class UUITableRowElement extends UUITableRowElement_base {
12
12
  private slotCellNodes?;
13
13
  protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
14
14
  private updateChildSelectOnly;
15
- private elementIsTableCell;
16
15
  render(): import("lit-html").TemplateResult<1>;
17
16
  static styles: import("lit").CSSResult[];
18
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-table",
3
- "version": "1.12.1",
3
+ "version": "1.13.0-rc.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,7 +30,7 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.12.1"
33
+ "@umbraco-ui/uui-base": "1.13.0-rc.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
@@ -41,5 +41,5 @@
41
41
  "access": "public"
42
42
  },
43
43
  "homepage": "https://uui.umbraco.com/?path=/story/uui-table",
44
- "gitHead": "a7d67a9f6b60b8c0b351b21d5dac49cdfc764f44"
44
+ "gitHead": "864afa6c182c2a73c479237732dadc1abc69a4a0"
45
45
  }