@m3e/core 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/dist/custom-elements.json +3989 -4009
- package/dist/html-custom-data.json +0 -5
- package/dist/index.js +3 -13
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/src/shared/primitives/RippleElement.d.ts +1 -8
- package/dist/src/shared/primitives/RippleElement.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -118,11 +118,6 @@
|
|
|
118
118
|
"description": "Whether the ripple always originates from the center of the element's bounds, rather\r\nthan originating from the location of the click event.",
|
|
119
119
|
"values": []
|
|
120
120
|
},
|
|
121
|
-
{
|
|
122
|
-
"name": "disable-enter",
|
|
123
|
-
"description": "Whether the ripple is disabled when the enter key is pressed.",
|
|
124
|
-
"values": []
|
|
125
|
-
},
|
|
126
121
|
{
|
|
127
122
|
"name": "disabled",
|
|
128
123
|
"description": "Whether click events will not trigger the ripple.\r\nRipples can be still controlled manually by using the `show` and 'hide' methods.",
|
package/dist/index.js
CHANGED
|
@@ -3785,8 +3785,7 @@ var _M3eRippleElement_instances, _M3eRippleElement_ripple, _M3eRippleElement_pre
|
|
|
3785
3785
|
* The component can be attached to an interactive element using the `for` attribute or programmatically using the `attach` method.
|
|
3786
3786
|
* The ripple is displayed when the interactive element is pressed and hidden when released. This can be disabled using the `disabled` attribute.
|
|
3787
3787
|
*
|
|
3788
|
-
* The pressed state actives either using both pointer and keyboard events. For keyboard events, `SPACE`
|
|
3789
|
-
* You can disabled whether the `ENTER` key actives a ripple using the `disable-enter` attribute.
|
|
3788
|
+
* The pressed state actives either using both pointer and keyboard events. For keyboard events, `SPACE` activate a ripple.
|
|
3790
3789
|
*
|
|
3791
3790
|
* Alternately, you can use the `show` and `hide` methods to programmatically control the ripple.
|
|
3792
3791
|
*
|
|
@@ -3804,7 +3803,6 @@ var _M3eRippleElement_instances, _M3eRippleElement_ripple, _M3eRippleElement_pre
|
|
|
3804
3803
|
* @tag m3e-ripple
|
|
3805
3804
|
*
|
|
3806
3805
|
* @attr centered - Whether the ripple always originates from the center of the element's bounds, rather than originating from the location of the click event.
|
|
3807
|
-
* @attr disable-enter - Whether the ripple is disabled when the enter key is pressed.
|
|
3808
3806
|
* @attr disabled - Whether click events will not trigger the ripple. Ripples can be still controlled manually by using the `show` and 'hide' methods.
|
|
3809
3807
|
* @attr for - The identifier of the interactive control to which this element is attached.
|
|
3810
3808
|
* @attr radius - The radius, in pixels, of the ripple.
|
|
@@ -3825,7 +3823,7 @@ let M3eRippleElement = class M3eRippleElement extends HtmlFor(Role(LitElement, "
|
|
|
3825
3823
|
/** @private */ _M3eRippleElement_pressedController.set(this, new PressedController(this, {
|
|
3826
3824
|
target: null,
|
|
3827
3825
|
minPressedDuration: 150,
|
|
3828
|
-
isPressedKey: (key) => key === " "
|
|
3826
|
+
isPressedKey: (key) => key === " ",
|
|
3829
3827
|
callback: (pressed, { x, y }) => __classPrivateFieldGet(this, _M3eRippleElement_instances, "m", _M3eRippleElement_handlePressedChange).call(this, pressed, x, y),
|
|
3830
3828
|
}));
|
|
3831
3829
|
/**
|
|
@@ -3834,11 +3832,6 @@ let M3eRippleElement = class M3eRippleElement extends HtmlFor(Role(LitElement, "
|
|
|
3834
3832
|
* @default false
|
|
3835
3833
|
*/
|
|
3836
3834
|
this.disabled = false;
|
|
3837
|
-
/**
|
|
3838
|
-
* Whether the ripple is disabled when the enter key is pressed.
|
|
3839
|
-
* @default false
|
|
3840
|
-
*/
|
|
3841
|
-
this.disableEnter = false;
|
|
3842
3835
|
/**
|
|
3843
3836
|
* Whether the ripple always originates from the center of the element's bounds, rather
|
|
3844
3837
|
* than originating from the location of the click event.
|
|
@@ -4030,9 +4023,6 @@ M3eRippleElement.styles = css `
|
|
|
4030
4023
|
__decorate([
|
|
4031
4024
|
n$1({ type: Boolean, reflect: true })
|
|
4032
4025
|
], M3eRippleElement.prototype, "disabled", void 0);
|
|
4033
|
-
__decorate([
|
|
4034
|
-
n$1({ attribute: "disable-enter", type: Boolean, reflect: true })
|
|
4035
|
-
], M3eRippleElement.prototype, "disableEnter", void 0);
|
|
4036
4026
|
__decorate([
|
|
4037
4027
|
n$1({ type: Boolean, reflect: true })
|
|
4038
4028
|
], M3eRippleElement.prototype, "centered", void 0);
|
|
@@ -4367,7 +4357,7 @@ let M3eStateLayerElement = class M3eStateLayerElement extends HtmlFor(Role(LitEl
|
|
|
4367
4357
|
/** @private */
|
|
4368
4358
|
_M3eStateLayerElement_focusController.set(this, new FocusController(this, {
|
|
4369
4359
|
target: null,
|
|
4370
|
-
callback: (focused) => __classPrivateFieldGet(this, _M3eStateLayerElement_instances, "m", _M3eStateLayerElement_handleFocusChange).call(this, focused),
|
|
4360
|
+
callback: (focused, focusVisible) => __classPrivateFieldGet(this, _M3eStateLayerElement_instances, "m", _M3eStateLayerElement_handleFocusChange).call(this, focused && focusVisible),
|
|
4371
4361
|
}));
|
|
4372
4362
|
/**
|
|
4373
4363
|
* Whether hover and focus event will not trigger the state layer. State layers can still
|