@universal-material/web 3.0.66 → 3.0.68
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/button/button-base.d.ts +0 -4
- package/button/button-base.d.ts.map +1 -1
- package/button/button-base.js +0 -7
- package/button/button-base.js.map +1 -1
- package/custom-elements.json +353 -397
- package/field/field-base.d.ts +5 -4
- package/field/field-base.d.ts.map +1 -1
- package/field/field-base.js.map +1 -1
- package/menu/menu-item.d.ts.map +1 -1
- package/menu/menu-item.js +3 -1
- package/menu/menu-item.js.map +1 -1
- package/package.json +1 -1
- package/select/option.d.ts +2 -5
- package/select/option.d.ts.map +1 -1
- package/select/option.js +59 -52
- package/select/option.js.map +1 -1
- package/select/select.d.ts +5 -5
- package/select/select.d.ts.map +1 -1
- package/select/select.js +28 -18
- package/select/select.js.map +1 -1
package/button/button-base.d.ts
CHANGED
|
@@ -4,10 +4,6 @@ export declare abstract class UmButtonBase extends UmButtonWrapper {
|
|
|
4
4
|
static readonly formAssociated = true;
|
|
5
5
|
type: string;
|
|
6
6
|
value: string;
|
|
7
|
-
/**
|
|
8
|
-
* The `<form>` element to associate the button with (its form owner). The value of this attribute must be the id of a `<form>` in the same document. (If this attribute is not set, the button is associated with its ancestor `<form>` element, if any.)
|
|
9
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#form
|
|
10
|
-
*/
|
|
11
7
|
get form(): HTMLFormElement | null;
|
|
12
8
|
constructor();
|
|
13
9
|
protected handleClick(_: UIEvent): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-base.d.ts","sourceRoot":"","sources":["../../src/button/button-base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,8BAAsB,YAAa,SAAQ,eAAe;;IAExD,MAAM,CAAC,QAAQ,CAAC,cAAc,QAAQ;IAE1B,IAAI,EAAE,MAAM,CAAY;IAET,KAAK,EAAE,MAAM,CAAM;IAE9C
|
|
1
|
+
{"version":3,"file":"button-base.d.ts","sourceRoot":"","sources":["../../src/button/button-base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,8BAAsB,YAAa,SAAQ,eAAe;;IAExD,MAAM,CAAC,QAAQ,CAAC,cAAc,QAAQ;IAE1B,IAAI,EAAE,MAAM,CAAY;IAET,KAAK,EAAE,MAAM,CAAM;IAE9C,IAAI,IAAI,IAAI,eAAe,GAAG,IAAI,CAEjC;;cASkB,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI;CA8BjD"}
|
package/button/button-base.js
CHANGED
|
@@ -19,10 +19,6 @@ var _UmButtonBase_elementInternals;
|
|
|
19
19
|
import { property } from 'lit/decorators.js';
|
|
20
20
|
import { UmButtonWrapper } from '../shared/button-wrapper.js';
|
|
21
21
|
export class UmButtonBase extends UmButtonWrapper {
|
|
22
|
-
/**
|
|
23
|
-
* The `<form>` element to associate the button with (its form owner). The value of this attribute must be the id of a `<form>` in the same document. (If this attribute is not set, the button is associated with its ancestor `<form>` element, if any.)
|
|
24
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#form
|
|
25
|
-
*/
|
|
26
22
|
get form() {
|
|
27
23
|
return __classPrivateFieldGet(this, _UmButtonBase_elementInternals, "f").form;
|
|
28
24
|
}
|
|
@@ -63,7 +59,4 @@ __decorate([
|
|
|
63
59
|
__decorate([
|
|
64
60
|
property({ reflect: true })
|
|
65
61
|
], UmButtonBase.prototype, "value", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
property()
|
|
68
|
-
], UmButtonBase.prototype, "form", null);
|
|
69
62
|
//# sourceMappingURL=button-base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-base.js","sourceRoot":"","sources":["../../src/button/button-base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,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EAAE,GAAG,EAAE,CAAC,IAAI;aAChB,CAAC,CAAC;QACL,CAAC,EACD,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAC5B,CAAC;QACF,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;IAC5B,CAAC;;;AA9Ce,2BAAc,GAAG,IAAI,AAAP,CAAQ;AAE1B;IAAX,QAAQ,EAAE;0CAAyB;AAET;IAA1B,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;2CAAoB","sourcesContent":["import { property } from 'lit/decorators.js';\n\nimport { UmButtonWrapper } from '../shared/button-wrapper.js';\n\nexport abstract class UmButtonBase extends UmButtonWrapper {\n\n static readonly formAssociated = true;\n\n @property() type: string = 'submit';\n\n @property({reflect: true}) value: string = '';\n\n get form(): HTMLFormElement | null {\n return this.#elementInternals.form;\n }\n\n readonly #elementInternals: ElementInternals;\n\n constructor() {\n super();\n this.#elementInternals = this.attachInternals();\n }\n\n protected override handleClick(_: UIEvent): void {\n\n if (this.type === 'button' || !!this.href) {\n return;\n }\n\n if (!this.form) {\n return;\n }\n\n this.#elementInternals.setFormValue(this.value);\n\n if (this.type === 'reset') {\n this.form.reset();\n return;\n }\n \n this.form.addEventListener(\n 'submit',\n (submitEvent) => {\n Object.defineProperty(submitEvent, 'submitter', {\n configurable: true,\n enumerable: true,\n get: () => this,\n });\n },\n {capture: true, once: true},\n );\n this.form.requestSubmit();\n }\n}\n"]}
|