mdui 2.1.2 → 2.1.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/components/bottom-app-bar/style.js +1 -1
- package/components/button/style.js +2 -2
- package/components/button-icon/style.js +2 -2
- package/components/card/style.js +1 -1
- package/components/checkbox/style.js +1 -1
- package/components/chip/style.js +2 -2
- package/components/collapse/collapse-item.js +1 -0
- package/components/dialog/style.js +1 -1
- package/components/divider/style.js +1 -1
- package/components/dropdown/index.js +9 -4
- package/components/fab/style.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/layout/layout-style.js +1 -1
- package/components/list/list-item-style.js +2 -2
- package/components/list/list-item.js +5 -4
- package/components/menu/menu-item-style.js +1 -1
- package/components/navigation-bar/navigation-bar-style.js +1 -1
- package/components/navigation-drawer/index.d.ts +1 -0
- package/components/navigation-drawer/index.js +17 -11
- package/components/navigation-drawer/style.js +1 -1
- package/components/navigation-rail/navigation-rail-style.js +1 -1
- package/components/radio/radio-style.js +1 -1
- package/components/segmented-button/segmented-button-group-style.js +1 -1
- package/components/segmented-button/segmented-button-style.js +1 -1
- package/components/select/index.d.ts +0 -2
- package/components/select/index.js +4 -5
- package/components/slider/slider-base-style.js +1 -1
- package/components/snackbar/index.d.ts +12 -0
- package/components/snackbar/index.js +105 -46
- package/components/snackbar/style.js +1 -1
- package/components/switch/style.js +1 -1
- package/components/tabs/tab-style.js +1 -1
- package/components/tabs/tabs-style.js +1 -1
- package/components/tabs/tabs.d.ts +2 -2
- package/components/tabs/tabs.js +6 -4
- package/components/text-field/index.d.ts +5 -7
- package/components/text-field/index.js +32 -36
- package/components/text-field/style.js +1 -1
- package/components/tooltip/index.d.ts +1 -1
- package/components/tooltip/index.js +10 -8
- package/components/top-app-bar/top-app-bar-style.js +1 -1
- package/components/top-app-bar/top-app-bar.d.ts +1 -0
- package/components/top-app-bar/top-app-bar.js +7 -1
- package/custom-elements.json +246 -153
- package/functions/alert.js +10 -3
- package/functions/confirm.js +10 -3
- package/functions/dialog.js +8 -3
- package/functions/prompt.js +10 -3
- package/functions/snackbar.js +8 -2
- package/html-data.en.json +12 -22
- package/html-data.zh-cn.json +2 -12
- package/jsx.en.d.ts +2079 -2080
- package/jsx.zh-cn.d.ts +2062 -2063
- package/locales/ar-eg.js +0 -2
- package/locales/az-az.js +0 -2
- package/locales/be-by.js +0 -2
- package/locales/bg-bg.js +0 -2
- package/locales/bn-bd.js +0 -2
- package/locales/ca-es.js +0 -2
- package/locales/cs-cz.js +0 -2
- package/locales/da-dk.js +0 -2
- package/locales/de-de.js +0 -2
- package/locales/el-gr.js +0 -2
- package/locales/en-gb.js +0 -2
- package/locales/es-es.js +0 -2
- package/locales/et-ee.js +0 -2
- package/locales/fa-ir.js +0 -2
- package/locales/fi-fi.js +0 -2
- package/locales/fr-be.js +0 -2
- package/locales/fr-ca.js +0 -2
- package/locales/fr-fr.js +0 -2
- package/locales/ga-ie.js +0 -2
- package/locales/gl-es.js +0 -2
- package/locales/he-il.js +0 -2
- package/locales/hi-in.js +0 -2
- package/locales/hr-hr.js +0 -2
- package/locales/hu-hu.js +0 -2
- package/locales/hy-am.js +0 -2
- package/locales/id-id.js +0 -2
- package/locales/is-is.js +0 -2
- package/locales/it-it.js +0 -2
- package/locales/ja-jp.js +0 -2
- package/locales/ka-ge.js +0 -2
- package/locales/kk-kz.js +0 -2
- package/locales/km-kh.js +0 -2
- package/locales/kmr-iq.js +0 -2
- package/locales/kn-in.js +0 -2
- package/locales/ko-kr.js +0 -2
- package/locales/lt-lt.js +0 -2
- package/locales/lv-lv.js +0 -2
- package/locales/mk-mk.js +0 -2
- package/locales/ml-in.js +0 -2
- package/locales/mn-mn.js +0 -2
- package/locales/ms-my.js +0 -2
- package/locales/nb-no.js +0 -2
- package/locales/ne-np.js +0 -2
- package/locales/nl-be.js +0 -2
- package/locales/nl-nl.js +0 -2
- package/locales/pl-pl.js +0 -2
- package/locales/pt-br.js +0 -2
- package/locales/pt-pt.js +0 -2
- package/locales/ro-ro.js +0 -2
- package/locales/ru-ru.js +0 -2
- package/locales/sk-sk.js +0 -2
- package/locales/sl-si.js +0 -2
- package/locales/sr-rs.js +0 -2
- package/locales/sv-se.js +0 -2
- package/locales/ta-in.js +0 -2
- package/locales/th-th.js +0 -2
- package/locales/tr-tr.js +0 -2
- package/locales/uk-ua.js +0 -2
- package/locales/ur-pk.js +0 -2
- package/locales/vi-vn.js +0 -2
- package/locales/zh-cn.js +0 -2
- package/locales/zh-hk.js +0 -2
- package/locales/zh-tw.js +0 -2
- package/mdui.css +1 -1
- package/mdui.esm.js +9 -9
- package/mdui.global.js +9 -9
- package/package.json +9 -10
- package/web-types.en.json +17 -23
- package/web-types.zh-cn.json +7 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "实现 material you 设计规范的 Web Components 组件库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "mdui.js",
|
|
@@ -49,17 +49,16 @@
|
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://www.mdui.org",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@lit
|
|
53
|
-
"@lit/
|
|
54
|
-
"@lit/reactive-element": "^2.0.4",
|
|
52
|
+
"@lit/localize": "^0.12.2",
|
|
53
|
+
"@lit/reactive-element": "^2.1.0",
|
|
55
54
|
"@material/material-color-utilities": "^0.3.0",
|
|
56
|
-
"@floating-ui/utils": "^0.2.
|
|
55
|
+
"@floating-ui/utils": "^0.2.9",
|
|
57
56
|
"classcat": "^5.0.5",
|
|
58
57
|
"is-promise": "^4.0.0",
|
|
59
|
-
"lit": "^3.
|
|
60
|
-
"ssr-window": "^
|
|
61
|
-
"tslib": "^2.
|
|
62
|
-
"@mdui/shared": "^1.0.
|
|
63
|
-
"@mdui/jq": "^3.0.
|
|
58
|
+
"lit": "^3.3.0",
|
|
59
|
+
"ssr-window": "^5.0.0",
|
|
60
|
+
"tslib": "^2.8.1",
|
|
61
|
+
"@mdui/shared": "^1.0.8",
|
|
62
|
+
"@mdui/jq": "^3.0.3"
|
|
64
63
|
}
|
|
65
64
|
}
|
package/web-types.en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"name": "mdui",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"js-types-syntax": "typescript",
|
|
6
6
|
"description-markup": "markdown",
|
|
7
7
|
"framework-config": {
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
400
|
"name": "href",
|
|
401
|
-
"description": "The URL for the hyperlink. If
|
|
401
|
+
"description": "The URL for the hyperlink. If specified, the component renders as an `<a>` element and can use link-related attributes.",
|
|
402
402
|
"value": {
|
|
403
403
|
"type": "string"
|
|
404
404
|
},
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
"name": "download",
|
|
409
|
-
"description": "Instructs the browser to
|
|
409
|
+
"description": "Instructs the browser to treat the linked URL as a download.\n\n**Note**: This is only available when `href` is specified.",
|
|
410
410
|
"value": {
|
|
411
411
|
"type": "string"
|
|
412
412
|
},
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
"name": "target",
|
|
417
|
-
"description": "Defines where to
|
|
417
|
+
"description": "Defines where to display the linked URL. Possible values:\n\n* `_blank`: Opens in a new tab or window.\n* `_parent`: Opens in the parent browsing context or `_self` if no parent exists.\n* `_self`: Opens in the current browsing context. (Default).\n* `_top`: Opens in the topmost browsing context or `_self` if no ancestors exist.\n\n**Note**: This is only available when `href` is specified.",
|
|
418
418
|
"value": {
|
|
419
419
|
"type": [
|
|
420
420
|
"'_blank'",
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
"name": "rel",
|
|
430
|
-
"description": "Specifies the relationship of the linked URL as space-separated link types. Possible values:\n\n* `alternate`: Alternate versions of the current document.\n* `author`:
|
|
430
|
+
"description": "Specifies the relationship of the linked URL as space-separated link types. Possible values:\n\n* `alternate`: Alternate versions of the current document.\n* `author`: Author of the current document or article.\n* `bookmark`: Permanent link for the nearest ancestor section.\n* `external`: The referenced document is not part of the same site as the current document.\n* `help`: Link to context-sensitive help.\n* `license`: Indicates that the main content of the current document is covered by the copyright license described by the referenced document.\n* `me`: Indicates that the current document represents the person who owns the linked content.\n* `next`: Indicates that the current document is part of a series and the next document in the series is the referenced document.\n* `nofollow`: Indicates that the current document's original author or publisher does not endorse the referenced document.\n* `noreferrer`: No `Referer` header will be included. Also has the same effect as `noopener`.\n* `opener`: Creates an auxiliary browsing context if the hyperlink would otherwise create a top-level browsing context that is not an auxiliary browsing context (i.e., has \"`_blank`\" as `target` attribute value).\n* `prev`: Indicates that the current document is part of a series and the previous document in the series is the referenced document.\n* `search`: Links to a resource that can be used to search through the current document and its related pages.\n* `tag`: Gives a tag (identified by the given address) that applies to the current document.\n\n**Note**: This is only available when `href` is specified.",
|
|
431
431
|
"value": {
|
|
432
432
|
"type": [
|
|
433
433
|
"'alternate'",
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
452
|
"name": "autofocus",
|
|
453
|
-
"description": "
|
|
453
|
+
"description": "Determines if the element should be focused when the page loads.",
|
|
454
454
|
"value": {
|
|
455
455
|
"type": "boolean"
|
|
456
456
|
},
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
"name": "tabindex",
|
|
461
|
-
"description": "
|
|
461
|
+
"description": "Specifies the order in which the element receives focus when navigating with the Tab key.",
|
|
462
462
|
"value": {
|
|
463
463
|
"type": "number"
|
|
464
464
|
},
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
},
|
|
633
633
|
{
|
|
634
634
|
"name": "href",
|
|
635
|
-
"description": "The URL for the hyperlink. If
|
|
635
|
+
"description": "The URL for the hyperlink. If specified, the component renders as an `<a>` element and can use link-related attributes.",
|
|
636
636
|
"value": {
|
|
637
637
|
"type": "string"
|
|
638
638
|
},
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
},
|
|
641
641
|
{
|
|
642
642
|
"name": "download",
|
|
643
|
-
"description": "Instructs the browser to
|
|
643
|
+
"description": "Instructs the browser to treat the linked URL as a download.\n\n**Note**: This is only available when `href` is specified.",
|
|
644
644
|
"value": {
|
|
645
645
|
"type": "string"
|
|
646
646
|
},
|
|
@@ -648,7 +648,7 @@
|
|
|
648
648
|
},
|
|
649
649
|
{
|
|
650
650
|
"name": "target",
|
|
651
|
-
"description": "Defines where to
|
|
651
|
+
"description": "Defines where to display the linked URL. Possible values:\n\n* `_blank`: Opens in a new tab or window.\n* `_parent`: Opens in the parent browsing context or `_self` if no parent exists.\n* `_self`: Opens in the current browsing context. (Default).\n* `_top`: Opens in the topmost browsing context or `_self` if no ancestors exist.\n\n**Note**: This is only available when `href` is specified.",
|
|
652
652
|
"value": {
|
|
653
653
|
"type": [
|
|
654
654
|
"'_blank'",
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
},
|
|
662
662
|
{
|
|
663
663
|
"name": "rel",
|
|
664
|
-
"description": "Specifies the relationship of the linked URL as space-separated link types. Possible values:\n\n* `alternate`: Alternate versions of the current document.\n* `author`:
|
|
664
|
+
"description": "Specifies the relationship of the linked URL as space-separated link types. Possible values:\n\n* `alternate`: Alternate versions of the current document.\n* `author`: Author of the current document or article.\n* `bookmark`: Permanent link for the nearest ancestor section.\n* `external`: The referenced document is not part of the same site as the current document.\n* `help`: Link to context-sensitive help.\n* `license`: Indicates that the main content of the current document is covered by the copyright license described by the referenced document.\n* `me`: Indicates that the current document represents the person who owns the linked content.\n* `next`: Indicates that the current document is part of a series and the next document in the series is the referenced document.\n* `nofollow`: Indicates that the current document's original author or publisher does not endorse the referenced document.\n* `noreferrer`: No `Referer` header will be included. Also has the same effect as `noopener`.\n* `opener`: Creates an auxiliary browsing context if the hyperlink would otherwise create a top-level browsing context that is not an auxiliary browsing context (i.e., has \"`_blank`\" as `target` attribute value).\n* `prev`: Indicates that the current document is part of a series and the previous document in the series is the referenced document.\n* `search`: Links to a resource that can be used to search through the current document and its related pages.\n* `tag`: Gives a tag (identified by the given address) that applies to the current document.\n\n**Note**: This is only available when `href` is specified.",
|
|
665
665
|
"value": {
|
|
666
666
|
"type": [
|
|
667
667
|
"'alternate'",
|
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
},
|
|
685
685
|
{
|
|
686
686
|
"name": "autofocus",
|
|
687
|
-
"description": "
|
|
687
|
+
"description": "Determines if the element should be focused when the page loads.",
|
|
688
688
|
"value": {
|
|
689
689
|
"type": "boolean"
|
|
690
690
|
},
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
},
|
|
693
693
|
{
|
|
694
694
|
"name": "tabIndex",
|
|
695
|
-
"description": "
|
|
695
|
+
"description": "Specifies the order in which the element receives focus when navigating with the Tab key.",
|
|
696
696
|
"value": {
|
|
697
697
|
"type": "number"
|
|
698
698
|
},
|
|
@@ -9517,12 +9517,9 @@
|
|
|
9517
9517
|
},
|
|
9518
9518
|
{
|
|
9519
9519
|
"name": "autocomplete",
|
|
9520
|
-
"description": "
|
|
9520
|
+
"description": "The `autocomplete` attribute of the `input` element.",
|
|
9521
9521
|
"value": {
|
|
9522
|
-
"type":
|
|
9523
|
-
"'off'",
|
|
9524
|
-
"'on'"
|
|
9525
|
-
]
|
|
9522
|
+
"type": "string"
|
|
9526
9523
|
},
|
|
9527
9524
|
"doc-url": "https://www.mdui.org/en/docs/2/components/text-field#attributes-autocomplete"
|
|
9528
9525
|
},
|
|
@@ -9965,12 +9962,9 @@
|
|
|
9965
9962
|
},
|
|
9966
9963
|
{
|
|
9967
9964
|
"name": "autocomplete",
|
|
9968
|
-
"description": "
|
|
9965
|
+
"description": "The `autocomplete` attribute of the `input` element.",
|
|
9969
9966
|
"value": {
|
|
9970
|
-
"type":
|
|
9971
|
-
"'off'",
|
|
9972
|
-
"'on'"
|
|
9973
|
-
]
|
|
9967
|
+
"type": "string"
|
|
9974
9968
|
},
|
|
9975
9969
|
"doc-url": "https://www.mdui.org/en/docs/2/components/text-field#attributes-autocomplete"
|
|
9976
9970
|
},
|
package/web-types.zh-cn.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"name": "mdui",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"js-types-syntax": "typescript",
|
|
6
6
|
"description-markup": "markdown",
|
|
7
7
|
"framework-config": {
|
|
@@ -9517,12 +9517,9 @@
|
|
|
9517
9517
|
},
|
|
9518
9518
|
{
|
|
9519
9519
|
"name": "autocomplete",
|
|
9520
|
-
"description": "
|
|
9520
|
+
"description": "`input` 元素的 `autocomplete` 属性",
|
|
9521
9521
|
"value": {
|
|
9522
|
-
"type":
|
|
9523
|
-
"'off'",
|
|
9524
|
-
"'on'"
|
|
9525
|
-
]
|
|
9522
|
+
"type": "string"
|
|
9526
9523
|
},
|
|
9527
9524
|
"doc-url": "https://www.mdui.org/zh-cn/docs/2/components/text-field#attributes-autocomplete"
|
|
9528
9525
|
},
|
|
@@ -9965,12 +9962,9 @@
|
|
|
9965
9962
|
},
|
|
9966
9963
|
{
|
|
9967
9964
|
"name": "autocomplete",
|
|
9968
|
-
"description": "
|
|
9965
|
+
"description": "`input` 元素的 `autocomplete` 属性",
|
|
9969
9966
|
"value": {
|
|
9970
|
-
"type":
|
|
9971
|
-
"'off'",
|
|
9972
|
-
"'on'"
|
|
9973
|
-
]
|
|
9967
|
+
"type": "string"
|
|
9974
9968
|
},
|
|
9975
9969
|
"doc-url": "https://www.mdui.org/zh-cn/docs/2/components/text-field#attributes-autocomplete"
|
|
9976
9970
|
},
|
|
@@ -10196,7 +10190,7 @@
|
|
|
10196
10190
|
},
|
|
10197
10191
|
{
|
|
10198
10192
|
"name": "placement",
|
|
10199
|
-
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"
|
|
10193
|
+
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"plain\"` 时,优先使用 `top`;`variant=\"rich\"` 时,优先使用 `bottom-right`\n* `top-left`:位于左上方\n* `top-start`:位于上方,左对齐\n* `top`:位于上方,居中对齐\n* `top-end`:位于上方,右对齐\n* `top-right`:位于右上方\n* `bottom-left`:位于左下方\n* `bottom-start`:位于下方,左对齐\n* `bottom`:位于下方,居中对齐\n* `bottom-end`:位于下方,右对齐\n* `bottom-right`:位于右下方\n* `left-start`:位于左侧,顶部对齐\n* `left`:位于左侧,居中对齐\n* `left-end`:位于左侧,底部对齐\n* `right-start`:位于右侧,顶部对齐\n* `right`:位于右侧,居中对齐\n* `right-end`:位于右侧,底部对齐",
|
|
10200
10194
|
"value": {
|
|
10201
10195
|
"type": [
|
|
10202
10196
|
"'auto'",
|
|
@@ -10322,7 +10316,7 @@
|
|
|
10322
10316
|
},
|
|
10323
10317
|
{
|
|
10324
10318
|
"name": "placement",
|
|
10325
|
-
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"
|
|
10319
|
+
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"plain\"` 时,优先使用 `top`;`variant=\"rich\"` 时,优先使用 `bottom-right`\n* `top-left`:位于左上方\n* `top-start`:位于上方,左对齐\n* `top`:位于上方,居中对齐\n* `top-end`:位于上方,右对齐\n* `top-right`:位于右上方\n* `bottom-left`:位于左下方\n* `bottom-start`:位于下方,左对齐\n* `bottom`:位于下方,居中对齐\n* `bottom-end`:位于下方,右对齐\n* `bottom-right`:位于右下方\n* `left-start`:位于左侧,顶部对齐\n* `left`:位于左侧,居中对齐\n* `left-end`:位于左侧,底部对齐\n* `right-start`:位于右侧,顶部对齐\n* `right`:位于右侧,居中对齐\n* `right-end`:位于右侧,底部对齐",
|
|
10326
10320
|
"value": {
|
|
10327
10321
|
"type": [
|
|
10328
10322
|
"'auto'",
|