@umbraco-ui/uui-card 1.8.0-rc.0 → 1.9.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.
@@ -29,6 +29,12 @@
29
29
  "type": "string",
30
30
  "default": "\"undefined\""
31
31
  },
32
+ {
33
+ "name": "rel",
34
+ "description": "Set the rel attribute for an anchor tag, only used when using href.",
35
+ "type": "string",
36
+ "default": "\"undefined\""
37
+ },
32
38
  {
33
39
  "name": "select-only",
34
40
  "description": "Enforce selection interaction and prevent all other interactions, set this when the UI is turned into Selection-Mode.",
@@ -75,6 +81,13 @@
75
81
  "type": "string",
76
82
  "default": "\"undefined\""
77
83
  },
84
+ {
85
+ "name": "rel",
86
+ "attribute": "rel",
87
+ "description": "Set the rel attribute for an anchor tag, only used when using href.",
88
+ "type": "string",
89
+ "default": "\"undefined\""
90
+ },
78
91
  {
79
92
  "name": "styles",
80
93
  "type": "CSSResult[]",
package/lib/index.js CHANGED
@@ -15,8 +15,7 @@ var __decorateClass = (decorators, target, key, kind) => {
15
15
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
16
16
  if (decorator = decorators[i])
17
17
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
18
- if (kind && result)
19
- __defProp(target, key, result);
18
+ if (kind && result) __defProp(target, key, result);
20
19
  return result;
21
20
  };
22
21
  let UUICardElement = class extends SelectOnlyMixin(
@@ -29,17 +28,14 @@ let UUICardElement = class extends SelectOnlyMixin(
29
28
  }
30
29
  // This is deprecated - use href instead
31
30
  handleOpenClick(e) {
32
- if (this.disabled)
33
- return;
31
+ if (this.disabled) return;
34
32
  e.stopPropagation();
35
33
  this.dispatchEvent(new UUICardEvent(UUICardEvent.OPEN));
36
34
  }
37
35
  // This is deprecated - use href instead
38
36
  handleOpenKeydown(e) {
39
- if (this.disabled)
40
- return;
41
- if (e.key !== "Enter")
42
- return;
37
+ if (this.disabled) return;
38
+ if (e.key !== "Enter") return;
43
39
  e.preventDefault();
44
40
  e.stopPropagation();
45
41
  this.dispatchEvent(new UUICardEvent(UUICardEvent.OPEN));
@@ -152,6 +148,9 @@ __decorateClass([
152
148
  __decorateClass([
153
149
  property({ type: String })
154
150
  ], UUICardElement.prototype, "target", 2);
151
+ __decorateClass([
152
+ property({ type: String })
153
+ ], UUICardElement.prototype, "rel", 2);
155
154
  UUICardElement = __decorateClass([
156
155
  defineElement("uui-card")
157
156
  ], UUICardElement);
@@ -36,6 +36,13 @@ export declare class UUICardElement extends UUICardElement_base {
36
36
  * @default undefined
37
37
  */
38
38
  target?: '_blank' | '_parent' | '_self' | '_top';
39
+ /**
40
+ * Set the rel attribute for an anchor tag, only used when using href.
41
+ * @type {string}
42
+ * @attr
43
+ * @default undefined
44
+ */
45
+ rel?: string;
39
46
  protected handleOpenClick(e: Event): void;
40
47
  protected handleOpenKeydown(e: KeyboardEvent): void;
41
48
  protected render(): import("lit-html").TemplateResult<1>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-card",
3
- "version": "1.8.0-rc.0",
3
+ "version": "1.9.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.8.0-rc.0"
33
+ "@umbraco-ui/uui-base": "1.9.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-card",
44
- "gitHead": "46d444c66217c9a3c74518d8ce4badc7f121bfdf"
44
+ "gitHead": "e3e398e07b6ff9874aa0656cb7767df42f58a4ce"
45
45
  }