@umbraco-ui/uui-card-user 0.0.1 → 0.0.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.
- package/custom-elements.json +13 -2
- package/lib/index.js +3 -6
- package/lib/uui-card-user.element.js +3 -6
- package/package.json +5 -7
package/custom-elements.json
CHANGED
|
@@ -23,9 +23,14 @@
|
|
|
23
23
|
"type": "boolean",
|
|
24
24
|
"default": "\"false\""
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
"name": "select-only",
|
|
28
|
+
"description": "Enforce selection interaction and prevent all other interactions, set this when the UI is turned into Selection-Mode.",
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
26
31
|
{
|
|
27
32
|
"name": "selectable",
|
|
28
|
-
"description": "
|
|
33
|
+
"description": "Enable the ability to select this element.",
|
|
29
34
|
"type": "boolean"
|
|
30
35
|
},
|
|
31
36
|
{
|
|
@@ -62,10 +67,16 @@
|
|
|
62
67
|
"type": "boolean",
|
|
63
68
|
"default": "\"false\""
|
|
64
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"name": "selectOnly",
|
|
72
|
+
"attribute": "select-only",
|
|
73
|
+
"description": "Enforce selection interaction and prevent all other interactions, set this when the UI is turned into Selection-Mode.",
|
|
74
|
+
"type": "boolean"
|
|
75
|
+
},
|
|
65
76
|
{
|
|
66
77
|
"name": "selectable",
|
|
67
78
|
"attribute": "selectable",
|
|
68
|
-
"description": "
|
|
79
|
+
"description": "Enable the ability to select this element.",
|
|
69
80
|
"type": "boolean"
|
|
70
81
|
},
|
|
71
82
|
{
|
package/lib/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { css, html } from 'lit';
|
|
1
|
+
import { css, html, nothing } from 'lit';
|
|
2
2
|
import { property } from 'lit/decorators.js';
|
|
3
3
|
import { UUICardElement } from '@umbraco-ui/uui-card/lib/uui-card.element';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
typeof require !== "undefined" ? require : (x) => {
|
|
8
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
9
|
-
};
|
|
10
7
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
8
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
9
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -25,10 +22,10 @@ class UUICardUserElement extends UUICardElement {
|
|
|
25
22
|
return html`
|
|
26
23
|
<slot name="tag"></slot>
|
|
27
24
|
<slot name="actions"></slot>
|
|
28
|
-
<uui-avatar id="avatar"
|
|
25
|
+
<uui-avatar id="avatar" name=${this.name} size="m"></uui-avatar>
|
|
29
26
|
<div
|
|
30
27
|
id="open-part"
|
|
31
|
-
tabindex=${this.disabled ?
|
|
28
|
+
tabindex=${this.disabled ? nothing : "0"}
|
|
32
29
|
@click=${this.handleOpenClick}
|
|
33
30
|
@keydown=${this.handleOpenKeydown}>
|
|
34
31
|
<span> ${this.name} </span>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { css, html } from 'lit';
|
|
1
|
+
import { css, html, nothing } from 'lit';
|
|
2
2
|
import { property } from 'lit/decorators.js';
|
|
3
3
|
import { UUICardElement } from '@umbraco-ui/uui-card/lib/uui-card.element';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
typeof require !== "undefined" ? require : (x) => {
|
|
8
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
9
|
-
};
|
|
10
7
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
8
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
9
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -25,10 +22,10 @@ class UUICardUserElement extends UUICardElement {
|
|
|
25
22
|
return html`
|
|
26
23
|
<slot name="tag"></slot>
|
|
27
24
|
<slot name="actions"></slot>
|
|
28
|
-
<uui-avatar id="avatar"
|
|
25
|
+
<uui-avatar id="avatar" name=${this.name} size="m"></uui-avatar>
|
|
29
26
|
<div
|
|
30
27
|
id="open-part"
|
|
31
|
-
tabindex=${this.disabled ?
|
|
28
|
+
tabindex=${this.disabled ? nothing : "0"}
|
|
32
29
|
@click=${this.handleOpenClick}
|
|
33
30
|
@keydown=${this.handleOpenKeydown}>
|
|
34
31
|
<span> ${this.name} </span>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-card-user",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,11 +30,9 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@umbraco-ui/uui-avatar": "~0.0.15",
|
|
37
|
-
"@umbraco-ui/uui-card": "~0.0.0"
|
|
33
|
+
"@umbraco-ui/uui-avatar": "^0.0.15",
|
|
34
|
+
"@umbraco-ui/uui-base": "0.0.15",
|
|
35
|
+
"@umbraco-ui/uui-card": "0.0.2"
|
|
38
36
|
},
|
|
39
37
|
"scripts": {
|
|
40
38
|
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
|
|
@@ -45,5 +43,5 @@
|
|
|
45
43
|
"access": "public"
|
|
46
44
|
},
|
|
47
45
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-card-user",
|
|
48
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "2a640ce4460de94e9c92a97310e27b84bbd6edda"
|
|
49
47
|
}
|