@exmg/exm-snackbar 1.0.0 → 1.0.1
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/README.md +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/src/exm-snackbar.d.ts +2 -2
- package/src/exm-snackbar.js +8 -8
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ npm install @exmg/exm-snackbar
|
|
|
16
16
|
|
|
17
17
|
```html
|
|
18
18
|
<exm-button unelevated @click=${() =>
|
|
19
|
-
this.shadowRoot?.querySelector<
|
|
19
|
+
this.shadowRoot?.querySelector<ExmSnackbar>('#default-snackbar')?.show()}>
|
|
20
20
|
Open default
|
|
21
21
|
</exm-button>
|
|
22
22
|
<exm-snackbar id="default-snackbar" labelText="Default auto close"></exm-snackbar>
|
|
@@ -70,6 +70,6 @@ npm install @exmg/exm-snackbar
|
|
|
70
70
|
|
|
71
71
|
## Additional references
|
|
72
72
|
|
|
73
|
-
- [Additional Documentation](https://exmg.github.io/exmachina-web-components/
|
|
73
|
+
- [Additional Documentation](https://exmg.github.io/exmachina-web-components/ExmSnackbar.html)
|
|
74
74
|
|
|
75
75
|
- [Demo](https://exmg.github.io/exmachina-web-components/demo/?el=exm-snackbar)
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-snackbar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8e971cbad07fa6fab5a95aefd915937b752d2204"
|
|
43
43
|
}
|
package/src/exm-snackbar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SnackbarBase } from '@material/mwc-snackbar/mwc-snackbar-base.js';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class ExmSnackbar extends SnackbarBase {
|
|
3
3
|
/**
|
|
4
4
|
* Sets the Snackbar variant, options from MWC
|
|
5
5
|
* @type {String}
|
|
@@ -12,6 +12,6 @@ export declare class ExmgSnackbar extends SnackbarBase {
|
|
|
12
12
|
}
|
|
13
13
|
declare global {
|
|
14
14
|
interface HTMLElementTagNameMap {
|
|
15
|
-
'exm-snackbar':
|
|
15
|
+
'exm-snackbar': ExmSnackbar;
|
|
16
16
|
}
|
|
17
17
|
}
|
package/src/exm-snackbar.js
CHANGED
|
@@ -6,7 +6,7 @@ import { SnackbarBase } from '@material/mwc-snackbar/mwc-snackbar-base.js';
|
|
|
6
6
|
import { accessibleSnackbarLabel } from '@material/mwc-snackbar/accessible-snackbar-label-directive.js';
|
|
7
7
|
import { style as newStyles } from './styles/exm-snackbar-styles-css.js';
|
|
8
8
|
import { styles } from '@material/mwc-snackbar/mwc-snackbar.css.js';
|
|
9
|
-
let
|
|
9
|
+
let ExmSnackbar = class ExmSnackbar extends SnackbarBase {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
/**
|
|
@@ -41,18 +41,18 @@ let ExmgSnackbar = class ExmgSnackbar extends SnackbarBase {
|
|
|
41
41
|
</div>`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
ExmSnackbar.styles = [styles, newStyles];
|
|
45
45
|
__decorate([
|
|
46
46
|
property({ type: String })
|
|
47
|
-
],
|
|
47
|
+
], ExmSnackbar.prototype, "variant", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
property({ type: Number })
|
|
50
|
-
],
|
|
50
|
+
], ExmSnackbar.prototype, "xOffset", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
property({ type: Number })
|
|
53
|
-
],
|
|
54
|
-
|
|
53
|
+
], ExmSnackbar.prototype, "yOffset", void 0);
|
|
54
|
+
ExmSnackbar = __decorate([
|
|
55
55
|
customElement('exm-snackbar')
|
|
56
|
-
],
|
|
57
|
-
export {
|
|
56
|
+
], ExmSnackbar);
|
|
57
|
+
export { ExmSnackbar };
|
|
58
58
|
//# sourceMappingURL=exm-snackbar.js.map
|