File tree Expand file tree Collapse file tree 5 files changed +13
-19
lines changed
uui-card-content-node/lib Expand file tree Collapse file tree 5 files changed +13
-19
lines changed Original file line number Diff line number Diff line change 1
1
import { LitElement } from 'lit' ;
2
2
import { property } from 'lit/decorators.js' ;
3
+
3
4
import { UUISelectableEvent } from '../events/UUISelectableEvent' ;
4
5
5
6
type Constructor < T = { } > = new ( ...args : any [ ] ) => T ;
@@ -19,6 +20,10 @@ export declare class SelectableMixinInterface extends LitElement {
19
20
export const SelectableMixin = < T extends Constructor < LitElement > > (
20
21
superClass : T
21
22
) => {
23
+ /**
24
+ * @fires {UUISelectableEvent } selected - fires when the media card is selected
25
+ * @fires {UUISelectableEvent } unselected - fires when the media card is unselected
26
+ */
22
27
class SelectableMixinClass extends superClass {
23
28
private _selectable = false ;
24
29
/**
Original file line number Diff line number Diff line change 1
- import { UUICardElement } from '@umbraco-ui/uui-card/lib' ;
2
1
import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
2
+ import { UUICardElement } from '@umbraco-ui/uui-card/lib' ;
3
3
import { css , html , nothing } from 'lit' ;
4
4
import { property , state } from 'lit/decorators.js' ;
5
5
6
6
/**
7
7
* @element uui-card-content-node
8
- * @fires {UUICardEvent } open - fires when the card title is clicked
9
- * @fires {UUICardEvent } selected - fires when the card is selected
10
8
* @description - Card component for displaying a content-node.
11
9
*/
12
-
13
10
@defineElement ( 'uui-card-content-node' )
14
11
export class UUICardContentNodeElement extends UUICardElement {
15
12
static styles = [
Original file line number Diff line number Diff line change 1
- import { UUICardElement } from '@umbraco-ui/uui-card/lib' ;
2
1
import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
2
+ import { UUICardElement } from '@umbraco-ui/uui-card/lib' ;
3
3
import { css , html , nothing } from 'lit' ;
4
4
import { property , state } from 'lit/decorators.js' ;
5
5
6
6
/**
7
7
* @element uui-card-media
8
- * @fires {UUICardEvent } open - fires when the media card title is clicked
9
- * @fires {UUICardEvent } selected - fires when the card is selected
10
8
* @description - Card component for displaying a media item.
11
9
*/
12
-
13
10
@defineElement ( 'uui-card-media' )
14
11
export class UUICardMediaElement extends UUICardElement {
15
12
static styles = [
Original file line number Diff line number Diff line change 1
- import { UUICardElement } from '@umbraco-ui/uui-card/lib' ;
2
1
import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
2
+ import { UUICardElement } from '@umbraco-ui/uui-card/lib' ;
3
3
import { css , html , nothing } from 'lit' ;
4
4
import { property } from 'lit/decorators.js' ;
5
5
6
6
/**
7
7
* @element uui-card-user
8
- * @fires {UUICardEvent } open - fires when the user card title is clicked
9
- * @fires {UUICardEvent } selected - fires when the card is selected
10
8
* @description - Card component for displaying a user node.
11
9
*/
12
-
13
10
@defineElement ( 'uui-card-user' )
14
11
export class UUICardUserElement extends UUICardElement {
15
12
static styles = [
Original file line number Diff line number Diff line change 1
- import { LitElement , css } from 'lit' ;
2
- import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
3
- import { property } from 'lit/decorators.js' ;
4
1
import {
5
2
SelectableMixin ,
6
3
SelectOnlyMixin ,
7
4
} from '@umbraco-ui/uui-base/lib/mixins' ;
5
+ import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
6
+ import { css , LitElement } from 'lit' ;
7
+ import { property } from 'lit/decorators.js' ;
8
+
8
9
import { UUICardEvent } from './UUICardEvent' ;
9
10
10
11
/**
11
12
* @element uui-card
12
- * @fires {UUICardEvent } open - fires when the media card title is clicked
13
- * @fires {UUISelectableEvent } select - fires when the media card is selected
14
- * @fires {UUISelectableEvent } unselect - fires when the media card is unselected
13
+ * @fires {UUICardEvent } open - fires when the card title is clicked
15
14
* @description - Base card component to be extended by specific cards.
16
15
*/
17
-
18
16
@defineElement ( 'uui-card' )
19
17
export class UUICardElement extends SelectOnlyMixin (
20
18
SelectableMixin ( LitElement )
You can’t perform that action at this time.
0 commit comments