@digital-realty/ix-button 3.4.5 → 3.4.6
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/IxButton.d.ts +2 -2
- package/dist/IxButton.js +4 -11
- package/dist/IxButton.js.map +1 -1
- package/dist/ix-button.min.js +6 -6
- package/package.json +3 -2
package/dist/IxButton.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import '@material/web/icon/icon.js';
|
|
|
8
8
|
import '@digital-realty/ix-progress/ix-progress.js';
|
|
9
9
|
import { FormSubmitter, FormSubmitterType } from '@material/web/internal/controller/form-submitter.js';
|
|
10
10
|
import { internals } from '@material/web/labs/behaviors/element-internals.js';
|
|
11
|
-
declare const
|
|
12
|
-
export declare class IxButton extends
|
|
11
|
+
declare const IxButton_base: typeof LitElement & import("@digital-realty/ix-shared-fns/aria-forward-mixin.js").Constructor<import("@digital-realty/ix-shared-fns/aria-forward-mixin.js").AriaForwardMixinInterface>;
|
|
12
|
+
export declare class IxButton extends IxButton_base implements FormSubmitter {
|
|
13
13
|
/** @nocollapse */
|
|
14
14
|
static readonly formAssociated = true;
|
|
15
15
|
/** @nocollapse */
|
package/dist/IxButton.js
CHANGED
|
@@ -14,10 +14,9 @@ import '@material/web/button/filled-tonal-button.js';
|
|
|
14
14
|
import '@material/web/icon/icon.js';
|
|
15
15
|
import '@digital-realty/ix-progress/ix-progress.js';
|
|
16
16
|
import { setupFormSubmitter, } from '@material/web/internal/controller/form-submitter.js';
|
|
17
|
-
import { mixinDelegatesAria } from '@material/web/internal/aria/delegate.js';
|
|
18
17
|
import { internals } from '@material/web/labs/behaviors/element-internals.js';
|
|
19
|
-
|
|
20
|
-
export class IxButton extends
|
|
18
|
+
import { AriaForwardMixin } from '@digital-realty/ix-shared-fns/aria-forward-mixin.js';
|
|
19
|
+
export class IxButton extends AriaForwardMixin(LitElement) {
|
|
21
20
|
/**
|
|
22
21
|
* The associated form element with which this element's value will submit.
|
|
23
22
|
*/
|
|
@@ -100,17 +99,11 @@ export class IxButton extends ixButtonBaseClass {
|
|
|
100
99
|
}
|
|
101
100
|
render() {
|
|
102
101
|
var _b;
|
|
103
|
-
const ariaAttributes = {};
|
|
104
|
-
Array.from(this.attributes).forEach(attr => {
|
|
105
|
-
if (attr.name.startsWith('aria-')) {
|
|
106
|
-
ariaAttributes[attr.name] = attr.value;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
102
|
if (this.appearance === 'anchor') {
|
|
110
103
|
return html `<a
|
|
111
104
|
target=${ifDefined(this.target)}
|
|
112
105
|
href=${ifDefined(this.href)}
|
|
113
|
-
${spread(ariaAttributes)}
|
|
106
|
+
${spread(this.ariaAttributes)}
|
|
114
107
|
>${this.value ? this.value : nothing}<slot></slot
|
|
115
108
|
></a>`;
|
|
116
109
|
}
|
|
@@ -125,7 +118,7 @@ export class IxButton extends ixButtonBaseClass {
|
|
|
125
118
|
value="${this.value}"
|
|
126
119
|
type=${this.type}
|
|
127
120
|
class="md-button"
|
|
128
|
-
${spread(ariaAttributes)}
|
|
121
|
+
${spread(this.ariaAttributes)}
|
|
129
122
|
>
|
|
130
123
|
<div class="slot-wrap">
|
|
131
124
|
${this.submitting
|
package/dist/IxButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IxButton.js","sourceRoot":"","sources":["../src/IxButton.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAE,IAAI,IAAI,UAAU,EAAe,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EACL,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,M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AAM,CAAC,IAAI,CAAC,cAAc,CAAC;;;UAIzB,IAAI,CAAC,UAAU;YACb,CAAC,CAAC,IAAI,CAAA;iCACe,IAAI;0BACX,KAAK;8BACD;YAClB,CAAC,CAAC,IAAI,CAAA,eACV;;QAEA,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA,uCAAuC,CAAC,CAAC,CAAC,OAAO;QACpE,GAAG,GAAG,CAAC;IACb,CAAC;;KAjHA,SAAS;AAzCV;IACE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC,GAAA,CAAA;AAED,kBAAkB;AACF,uBAAc,GAAG,IAAI,AAAP,CAAQ;AAEtC,kBAAkB;AACF,0BAAiB,GAAmB;IAClD,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,IAAI;CACrB,AAHgC,CAG/B;AA2BU;IAAX,QAAQ,EAAE;uCAAY;AAcX;IAAX,QAAQ,EAAE;sCAAoC;AAKH;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAAkB;AAKjB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAAoB;AAKnD;IAAX,QAAQ,EAAE;sCAAsC;AAMrC;IAAX,QAAQ,EAAE;wCAA2D;AAQb;IAAxD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;8CAAsB;AAK1B;IAAnD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;yCAAiB;AAGpE;IADC,QAAQ,EAAE;4CAOa","sourcesContent":["import { html, LitElement, isServer, nothing } from 'lit';\nimport { html as staticHtml, StaticValue, literal } from 'lit/static-html.js';\nimport { property } from 'lit/decorators.js';\nimport { spread } from '@open-wc/lit-helpers';\n\nimport {\n dispatchActivationClick,\n isActivationClick,\n} from '@material/web/internal/events/form-label-activation.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport '@material/web/button/text-button.js';\nimport '@material/web/button/elevated-button.js';\nimport '@material/web/button/filled-button.js';\nimport '@material/web/button/outlined-button.js';\nimport '@material/web/button/filled-tonal-button.js';\nimport '@material/web/icon/icon.js';\nimport '@digital-realty/ix-progress/ix-progress.js';\nimport {\n FormSubmitter,\n FormSubmitterType,\n setupFormSubmitter,\n} from '@material/web/internal/controller/form-submitter.js';\nimport { internals } from '@material/web/labs/behaviors/element-internals.js';\nimport { AriaForwardMixin } from '@digital-realty/ix-shared-fns/aria-forward-mixin.js';\n\nexport class IxButton\n extends AriaForwardMixin(LitElement)\n implements FormSubmitter\n{\n static {\n setupFormSubmitter(IxButton);\n }\n\n /** @nocollapse */\n static readonly formAssociated = true;\n\n /** @nocollapse */\n static override shadowRootOptions: ShadowRootInit = {\n mode: 'open',\n delegatesFocus: true,\n };\n\n /**\n * The associated form element with which this element's value will submit.\n */\n get form() {\n return this[internals].form;\n }\n\n set form(form: HTMLFormElement | null) {\n this.setAttribute('form', form as unknown as string);\n }\n\n get buttonElement(): HTMLElement {\n return this.shadowRoot\n ?.querySelector('.md-button')\n ?.shadowRoot?.querySelector('.button')!;\n }\n\n get name() {\n return this.getAttribute('name') ?? '';\n }\n\n set name(name: string) {\n this.setAttribute('name', name);\n }\n\n @property() value = '';\n\n /** @private */\n [internals] = (this as HTMLElement) /* needed for closure */\n .attachInternals();\n\n override focus() {\n this.buttonElement.focus();\n }\n\n override blur() {\n this.buttonElement.blur();\n }\n\n @property() type: FormSubmitterType = 'submit';\n\n /**\n * Whether or not the button is disabled.\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * Whether or not the button is submitting.\n */\n @property({ type: Boolean, reflect: true }) submitting = false;\n\n /**\n * The URL that the link button points to.\n */\n @property() href: string | undefined = undefined;\n\n /**\n * Where to display the linked `href` URL for a link button. Common options\n * include `_blank` to open in a new tab.\n */\n @property() target: '_blank' | '_parent' | '_self' | '_top' | '' = '';\n\n /**\n * Whether to render the icon at the inline end of the label rather than the\n * inline start.\n *\n * _Note:_ Link buttons cannot have trailing icons.\n */\n @property({ type: Boolean, attribute: 'trailing-icon' }) trailingIcon = false;\n\n /**\n * Whether to display the icon or not.\n */\n @property({ type: Boolean, attribute: 'has-icon' }) hasIcon = false;\n\n @property()\n appearance:\n | 'elevated'\n | 'filled'\n | 'filled-tonal'\n | 'outlined'\n | 'text'\n | 'anchor' = 'filled';\n\n constructor() {\n super();\n if (!isServer) {\n this.addEventListener('click', this.handleActivationClick);\n }\n }\n\n private readonly handleActivationClick = (event: MouseEvent) => {\n if (!isActivationClick(event) || !this.buttonElement) {\n return;\n }\n this.focus();\n dispatchActivationClick(this.buttonElement);\n };\n\n private readonly tags = {\n elevated: literal`md-elevated-button`,\n filled: literal`md-filled-button`,\n 'filled-tonal': literal`md-filled-tonal-button`,\n outlined: literal`md-outlined-button`,\n text: literal`md-text-button`,\n };\n\n protected override render() {\n if (this.appearance === 'anchor') {\n return html`<a\n target=${ifDefined(this.target)}\n href=${ifDefined(this.href)}\n ${spread(this.ariaAttributes)}\n >${this.value ? this.value : nothing}<slot></slot\n ></a>`;\n }\n const tag: StaticValue = this.tags?.[this.appearance] || this.tags.outlined;\n return staticHtml`\n <${tag}\n ?disabled=${this.disabled || this.submitting}\n target=${ifDefined(this.target)}\n href=${ifDefined(this.href)}\n ?trailing-icon=${this.trailingIcon}\n ?has-icon=${this.hasIcon}\n value=\"${this.value}\"\n type=${this.type}\n class=\"md-button\"\n ${spread(this.ariaAttributes)}\n >\n <div class=\"slot-wrap\">\n ${\n this.submitting\n ? html`<ix-progress\n .indeterminate=${true}\n .linear=${false}\n ></ix-progress>`\n : html`<slot></slot>`\n }\n </div>\n ${this.hasIcon ? html`<slot slot=\"icon\" name=\"icon\"></slot>` : nothing}\n </${tag}>`;\n }\n}\n"]}
|
package/dist/ix-button.min.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{LitElement,isServer,nothing,html,css}from"lit";import{__decorate}from"tslib";import{literal,html as html$1}from"lit/static-html.js";import{property}from"lit/decorators.js";import{spread}from"@open-wc/lit-helpers";import{isActivationClick,dispatchActivationClick}from"@material/web/internal/events/form-label-activation.js";import{ifDefined}from"lit/directives/if-defined.js";import"@material/web/button/text-button.js";import"@material/web/button/elevated-button.js";import"@material/web/button/filled-button.js";import"@material/web/button/outlined-button.js";import"@material/web/button/filled-tonal-button.js";import"@material/web/icon/icon.js";import"@digital-realty/ix-progress/ix-progress.js";import{setupFormSubmitter}from"@material/web/internal/controller/form-submitter.js";import{
|
|
1
|
+
import{LitElement,isServer,nothing,html,css}from"lit";import{__decorate}from"tslib";import{literal,html as html$1}from"lit/static-html.js";import{property}from"lit/decorators.js";import{spread}from"@open-wc/lit-helpers";import{isActivationClick,dispatchActivationClick}from"@material/web/internal/events/form-label-activation.js";import{ifDefined}from"lit/directives/if-defined.js";import"@material/web/button/text-button.js";import"@material/web/button/elevated-button.js";import"@material/web/button/filled-button.js";import"@material/web/button/outlined-button.js";import"@material/web/button/filled-tonal-button.js";import"@material/web/icon/icon.js";import"@digital-realty/ix-progress/ix-progress.js";import{setupFormSubmitter}from"@material/web/internal/controller/form-submitter.js";import{internals}from"@material/web/labs/behaviors/element-internals.js";import{AriaForwardMixin}from"@digital-realty/ix-shared-fns/aria-forward-mixin.js";var _a;class IxButton extends AriaForwardMixin(LitElement){get form(){return this[internals].form}set form(t){this.setAttribute("form",t)}get buttonElement(){var t;return null==(t=null==(t=null==(t=this.shadowRoot)?void 0:t.querySelector(".md-button"))?void 0:t.shadowRoot)?void 0:t.querySelector(".button")}get name(){var t;return null!=(t=this.getAttribute("name"))?t:""}set name(t){this.setAttribute("name",t)}focus(){this.buttonElement.focus()}blur(){this.buttonElement.blur()}constructor(){super(),this.value="",this[_a]=this.attachInternals(),this.type="submit",this.disabled=!1,this.submitting=!1,this.href=void 0,this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.appearance="filled",this.handleActivationClick=t=>{isActivationClick(t)&&this.buttonElement&&(this.focus(),dispatchActivationClick(this.buttonElement))},this.tags={elevated:literal`md-elevated-button`,filled:literal`md-filled-button`,"filled-tonal":literal`md-filled-tonal-button`,outlined:literal`md-outlined-button`,text:literal`md-text-button`},isServer||this.addEventListener("click",this.handleActivationClick)}render(){var t;return"anchor"===this.appearance?html`<a
|
|
2
2
|
target=${ifDefined(this.target)}
|
|
3
3
|
href=${ifDefined(this.href)}
|
|
4
|
-
${spread(
|
|
4
|
+
${spread(this.ariaAttributes)}
|
|
5
5
|
>${this.value||nothing}<slot></slot
|
|
6
|
-
></a>`:(
|
|
7
|
-
<${
|
|
6
|
+
></a>`:(t=(null==(t=this.tags)?void 0:t[this.appearance])||this.tags.outlined,html$1`
|
|
7
|
+
<${t}
|
|
8
8
|
?disabled=${this.disabled||this.submitting}
|
|
9
9
|
target=${ifDefined(this.target)}
|
|
10
10
|
href=${ifDefined(this.href)}
|
|
@@ -13,7 +13,7 @@ import{LitElement,isServer,nothing,html,css}from"lit";import{__decorate}from"tsl
|
|
|
13
13
|
value="${this.value}"
|
|
14
14
|
type=${this.type}
|
|
15
15
|
class="md-button"
|
|
16
|
-
${spread(
|
|
16
|
+
${spread(this.ariaAttributes)}
|
|
17
17
|
>
|
|
18
18
|
<div class="slot-wrap">
|
|
19
19
|
${this.submitting?html`<ix-progress
|
|
@@ -22,7 +22,7 @@ import{LitElement,isServer,nothing,html,css}from"lit";import{__decorate}from"tsl
|
|
|
22
22
|
></ix-progress>`:html`<slot></slot>`}
|
|
23
23
|
</div>
|
|
24
24
|
${this.hasIcon?html`<slot slot="icon" name="icon"></slot>`:nothing}
|
|
25
|
-
</${
|
|
25
|
+
</${t}>`)}}_a=internals,setupFormSubmitter(IxButton),IxButton.formAssociated=!0,IxButton.shadowRootOptions={mode:"open",delegatesFocus:!0},__decorate([property()],IxButton.prototype,"value",void 0),__decorate([property()],IxButton.prototype,"type",void 0),__decorate([property({type:Boolean,reflect:!0})],IxButton.prototype,"disabled",void 0),__decorate([property({type:Boolean,reflect:!0})],IxButton.prototype,"submitting",void 0),__decorate([property()],IxButton.prototype,"href",void 0),__decorate([property()],IxButton.prototype,"target",void 0),__decorate([property({type:Boolean,attribute:"trailing-icon"})],IxButton.prototype,"trailingIcon",void 0),__decorate([property({type:Boolean,attribute:"has-icon"})],IxButton.prototype,"hasIcon",void 0),__decorate([property()],IxButton.prototype,"appearance",void 0);class IxButtonStyled extends IxButton{}IxButtonStyled.styles=css`.md-button{display:flex;--md-circular-progress-size:24px}.slot-wrap{font-family:var(
|
|
26
26
|
--ix-button-font-family,
|
|
27
27
|
var(--root-secondary-font, 'sans-serif')
|
|
28
28
|
);font-weight:var(--ix-button-font-weight,bold);text-transform:var(--ix-button-text-transform,uppercase);position:relative;letter-spacing:var(--ix-button-letter-spacing,1.25px)}:host{overflow:hidden}:host(.login){--md-filled-button-pressed-state-layer-color:var(
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ix-button following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Digital Realty",
|
|
6
|
-
"version": "3.4.
|
|
6
|
+
"version": "3.4.6",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@digital-realty/ix-progress": "^1.3.4",
|
|
31
|
+
"@digital-realty/ix-shared-fns": "1.0.1",
|
|
31
32
|
"@lit/react": "^1.0.2",
|
|
32
33
|
"@material/web": "2.4.0",
|
|
33
34
|
"@open-wc/lit-helpers": "^0.7.0",
|
|
@@ -109,5 +110,5 @@
|
|
|
109
110
|
"README.md",
|
|
110
111
|
"LICENSE"
|
|
111
112
|
],
|
|
112
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "ab315b433acc9b12065e1a2038a2bc3a7c07487f"
|
|
113
114
|
}
|