@m3e/dialog 1.0.0-rc.2 → 1.0.0-rc.4
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 +1 -1
- package/dist/custom-elements.json +24 -50
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/src/DialogActionElement.d.ts +31 -0
- package/dist/src/DialogActionElement.d.ts.map +1 -0
- package/dist/src/DialogElement.d.ts +141 -0
- package/dist/src/DialogElement.d.ts.map +1 -0
- package/dist/src/DialogTriggerElement.d.ts +24 -0
- package/dist/src/DialogTriggerElement.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Alternately, you can explicitly reference the `html-custom-data.json` and `css-c
|
|
|
27
27
|
}
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
## 🚀
|
|
30
|
+
## 🚀 Native Module Support
|
|
31
31
|
|
|
32
32
|
This package uses [JavaScript Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#module_specifiers). To use it directly in a browser without a bundler, use a module script similar to the following.
|
|
33
33
|
|
|
@@ -446,27 +446,6 @@
|
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
]
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"kind": "method",
|
|
452
|
-
"name": "dispatchEvent",
|
|
453
|
-
"return": {
|
|
454
|
-
"type": {
|
|
455
|
-
"text": "boolean"
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
"parameters": [
|
|
459
|
-
{
|
|
460
|
-
"name": "event",
|
|
461
|
-
"type": {
|
|
462
|
-
"text": "Event"
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
],
|
|
466
|
-
"inheritedFrom": {
|
|
467
|
-
"name": "EventAttribute",
|
|
468
|
-
"module": "../core/src/shared/mixins/EventAttribute.ts"
|
|
469
|
-
}
|
|
470
449
|
}
|
|
471
450
|
],
|
|
472
451
|
"events": [
|
|
@@ -1655,25 +1634,6 @@
|
|
|
1655
1634
|
"kind": "mixin",
|
|
1656
1635
|
"description": "Mixin that adds support for custom event attributes.",
|
|
1657
1636
|
"name": "EventAttribute",
|
|
1658
|
-
"members": [
|
|
1659
|
-
{
|
|
1660
|
-
"kind": "method",
|
|
1661
|
-
"name": "dispatchEvent",
|
|
1662
|
-
"return": {
|
|
1663
|
-
"type": {
|
|
1664
|
-
"text": "boolean"
|
|
1665
|
-
}
|
|
1666
|
-
},
|
|
1667
|
-
"parameters": [
|
|
1668
|
-
{
|
|
1669
|
-
"name": "event",
|
|
1670
|
-
"type": {
|
|
1671
|
-
"text": "Event"
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
]
|
|
1675
|
-
}
|
|
1676
|
-
],
|
|
1677
1637
|
"parameters": [
|
|
1678
1638
|
{
|
|
1679
1639
|
"name": "base",
|
|
@@ -1971,6 +1931,17 @@
|
|
|
1971
1931
|
"description": "Mixin to augment an element with behavior used to submit a form.",
|
|
1972
1932
|
"name": "FormSubmitter",
|
|
1973
1933
|
"members": [
|
|
1934
|
+
{
|
|
1935
|
+
"kind": "field",
|
|
1936
|
+
"name": "formAssociated",
|
|
1937
|
+
"type": {
|
|
1938
|
+
"text": "boolean"
|
|
1939
|
+
},
|
|
1940
|
+
"static": true,
|
|
1941
|
+
"readonly": true,
|
|
1942
|
+
"default": "true",
|
|
1943
|
+
"description": "Indicates that this custom element participates in form submission, validation, and form state restoration."
|
|
1944
|
+
},
|
|
1974
1945
|
{
|
|
1975
1946
|
"kind": "field",
|
|
1976
1947
|
"name": "name",
|
|
@@ -2507,6 +2478,11 @@
|
|
|
2507
2478
|
"kind": "javascript-module",
|
|
2508
2479
|
"path": "../core/src/shared/mixins/Labelled.ts",
|
|
2509
2480
|
"declarations": [
|
|
2481
|
+
{
|
|
2482
|
+
"kind": "variable",
|
|
2483
|
+
"name": "updateLabels",
|
|
2484
|
+
"description": "A symbol through which to update labels to reflect a control's current state."
|
|
2485
|
+
},
|
|
2510
2486
|
{
|
|
2511
2487
|
"kind": "function",
|
|
2512
2488
|
"name": "isLabelledMixin",
|
|
@@ -2556,16 +2532,6 @@
|
|
|
2556
2532
|
},
|
|
2557
2533
|
"description": "The label elements that the element is associated with.",
|
|
2558
2534
|
"readonly": true
|
|
2559
|
-
},
|
|
2560
|
-
{
|
|
2561
|
-
"kind": "method",
|
|
2562
|
-
"name": "[_updateLabels]",
|
|
2563
|
-
"privacy": "private",
|
|
2564
|
-
"return": {
|
|
2565
|
-
"type": {
|
|
2566
|
-
"text": "void"
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
2535
|
}
|
|
2570
2536
|
],
|
|
2571
2537
|
"parameters": [
|
|
@@ -2580,6 +2546,14 @@
|
|
|
2580
2546
|
}
|
|
2581
2547
|
],
|
|
2582
2548
|
"exports": [
|
|
2549
|
+
{
|
|
2550
|
+
"kind": "js",
|
|
2551
|
+
"name": "updateLabels",
|
|
2552
|
+
"declaration": {
|
|
2553
|
+
"name": "updateLabels",
|
|
2554
|
+
"module": "../core/src/shared/mixins/Labelled.ts"
|
|
2555
|
+
}
|
|
2556
|
+
},
|
|
2583
2557
|
{
|
|
2584
2558
|
"kind": "js",
|
|
2585
2559
|
"name": "isLabelledMixin",
|
package/dist/index.js
CHANGED
|
@@ -592,12 +592,18 @@ let M3eDialogTriggerElement = class M3eDialogTriggerElement extends HtmlFor(Atta
|
|
|
592
592
|
/** @inheritdoc */
|
|
593
593
|
connectedCallback() {
|
|
594
594
|
super.connectedCallback();
|
|
595
|
-
this.parentElement
|
|
595
|
+
if (this.parentElement) {
|
|
596
|
+
this.parentElement.addEventListener("click", __classPrivateFieldGet(this, _M3eDialogTriggerElement_clickHandler, "f"));
|
|
597
|
+
this.parentElement.ariaHasPopup = "dialog";
|
|
598
|
+
}
|
|
596
599
|
}
|
|
597
600
|
/** @inheritdoc */
|
|
598
601
|
disconnectedCallback() {
|
|
599
602
|
super.disconnectedCallback();
|
|
600
|
-
this.parentElement
|
|
603
|
+
if (this.parentElement) {
|
|
604
|
+
this.parentElement.removeEventListener("click", __classPrivateFieldGet(this, _M3eDialogTriggerElement_clickHandler, "f"));
|
|
605
|
+
this.parentElement.ariaHasPopup = null;
|
|
606
|
+
}
|
|
601
607
|
}
|
|
602
608
|
/** @inheritdoc */
|
|
603
609
|
render() {
|