Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

copy-to-clipboard #1039

Merged
merged 9 commits into from
Jul 5, 2019
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 10 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"dependencies": {
"axios": "^0.17.1",
"cleave.js": "^1.5.0",
"clipboard": "^2.0.4",
"css-element-queries": "^0.4.0",
"enquire.js": "^2.1.6",
"es6-promise": "^4.1.1",
Expand Down
1 change: 1 addition & 0 deletions src/components/button/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:disabled="disabled || isWaiting"
:type="type"
@click="onClick"
@mousedown="onMousedown"
@focus="onFocus"
@blur="onBlur">
<m-icon aria-hidden="true"
Expand Down
3 changes: 3 additions & 0 deletions src/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export class MButton extends Vue {
(this.$el as HTMLElement).blur();
}

@Emit('mousedown')
onMousedown(event: Event): void { }
chuckmah marked this conversation as resolved.
Show resolved Hide resolved

@Emit('focus')
onFocus(event: Event): void { }

Expand Down
2 changes: 2 additions & 0 deletions src/components/component-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const CHECKBOX_NAME: string = 'm-checkbox';
export const CHIP_NAME: string = 'm-chip';
export const CHIP_ADD_NAME: string = 'm-chip-add';
export const CHIP_DELETE_NAME: string = 'm-chip-delete';
export const COPY_TO_CLIPBOARD_NAME: string = 'm-copy-to-clipboard';
export const COPY_TO_CLIPBOARD_FEEDBACK_NAME: string = 'm-copy-to-clipboard-feedback';
export const DATEFIELDS_NAME: string = 'm-datefields';
export const DATEPICKER_NAME: string = 'm-datepicker';
export const DATERANGEPICKER_NAME: string = 'm-daterangepicker';
Expand Down
Loading