mdui 2.1.3 → 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.
Files changed (89) hide show
  1. package/components/button-icon/style.js +1 -1
  2. package/components/collapse/collapse-item.js +1 -0
  3. package/components/icon/index.js +1 -1
  4. package/components/list/list-item.js +5 -4
  5. package/components/navigation-drawer/style.js +1 -1
  6. package/components/select/index.js +1 -1
  7. package/components/text-field/index.js +2 -6
  8. package/components/text-field/style.js +1 -1
  9. package/components/tooltip/index.d.ts +1 -1
  10. package/components/tooltip/index.js +5 -5
  11. package/components/top-app-bar/top-app-bar.d.ts +1 -0
  12. package/components/top-app-bar/top-app-bar.js +6 -0
  13. package/custom-elements.json +73 -67
  14. package/functions/alert.js +6 -1
  15. package/functions/confirm.js +6 -1
  16. package/functions/prompt.js +6 -1
  17. package/html-data.en.json +11 -11
  18. package/html-data.zh-cn.json +1 -1
  19. package/jsx.en.d.ts +2079 -2077
  20. package/jsx.zh-cn.d.ts +2062 -2060
  21. package/locales/ar-eg.js +0 -2
  22. package/locales/az-az.js +0 -2
  23. package/locales/be-by.js +0 -2
  24. package/locales/bg-bg.js +0 -2
  25. package/locales/bn-bd.js +0 -2
  26. package/locales/ca-es.js +0 -2
  27. package/locales/cs-cz.js +0 -2
  28. package/locales/da-dk.js +0 -2
  29. package/locales/de-de.js +0 -2
  30. package/locales/el-gr.js +0 -2
  31. package/locales/en-gb.js +0 -2
  32. package/locales/es-es.js +0 -2
  33. package/locales/et-ee.js +0 -2
  34. package/locales/fa-ir.js +0 -2
  35. package/locales/fi-fi.js +0 -2
  36. package/locales/fr-be.js +0 -2
  37. package/locales/fr-ca.js +0 -2
  38. package/locales/fr-fr.js +0 -2
  39. package/locales/ga-ie.js +0 -2
  40. package/locales/gl-es.js +0 -2
  41. package/locales/he-il.js +0 -2
  42. package/locales/hi-in.js +0 -2
  43. package/locales/hr-hr.js +0 -2
  44. package/locales/hu-hu.js +0 -2
  45. package/locales/hy-am.js +0 -2
  46. package/locales/id-id.js +0 -2
  47. package/locales/is-is.js +0 -2
  48. package/locales/it-it.js +0 -2
  49. package/locales/ja-jp.js +0 -2
  50. package/locales/ka-ge.js +0 -2
  51. package/locales/kk-kz.js +0 -2
  52. package/locales/km-kh.js +0 -2
  53. package/locales/kmr-iq.js +0 -2
  54. package/locales/kn-in.js +0 -2
  55. package/locales/ko-kr.js +0 -2
  56. package/locales/lt-lt.js +0 -2
  57. package/locales/lv-lv.js +0 -2
  58. package/locales/mk-mk.js +0 -2
  59. package/locales/ml-in.js +0 -2
  60. package/locales/mn-mn.js +0 -2
  61. package/locales/ms-my.js +0 -2
  62. package/locales/nb-no.js +0 -2
  63. package/locales/ne-np.js +0 -2
  64. package/locales/nl-be.js +0 -2
  65. package/locales/nl-nl.js +0 -2
  66. package/locales/pl-pl.js +0 -2
  67. package/locales/pt-br.js +0 -2
  68. package/locales/pt-pt.js +0 -2
  69. package/locales/ro-ro.js +0 -2
  70. package/locales/ru-ru.js +0 -2
  71. package/locales/sk-sk.js +0 -2
  72. package/locales/sl-si.js +0 -2
  73. package/locales/sr-rs.js +0 -2
  74. package/locales/sv-se.js +0 -2
  75. package/locales/ta-in.js +0 -2
  76. package/locales/th-th.js +0 -2
  77. package/locales/tr-tr.js +0 -2
  78. package/locales/uk-ua.js +0 -2
  79. package/locales/ur-pk.js +0 -2
  80. package/locales/vi-vn.js +0 -2
  81. package/locales/zh-cn.js +0 -2
  82. package/locales/zh-hk.js +0 -2
  83. package/locales/zh-tw.js +0 -2
  84. package/mdui.css +1 -1
  85. package/mdui.esm.js +9 -9
  86. package/mdui.global.js +9 -9
  87. package/package.json +9 -9
  88. package/web-types.en.json +13 -13
  89. package/web-types.zh-cn.json +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdui",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "实现 material you 设计规范的 Web Components 组件库",
5
5
  "type": "module",
6
6
  "main": "mdui.js",
@@ -49,16 +49,16 @@
49
49
  },
50
50
  "homepage": "https://www.mdui.org",
51
51
  "dependencies": {
52
- "@lit/localize": "^0.12.1",
53
- "@lit/reactive-element": "^2.0.4",
52
+ "@lit/localize": "^0.12.2",
53
+ "@lit/reactive-element": "^2.1.0",
54
54
  "@material/material-color-utilities": "^0.3.0",
55
- "@floating-ui/utils": "^0.2.4",
55
+ "@floating-ui/utils": "^0.2.9",
56
56
  "classcat": "^5.0.5",
57
57
  "is-promise": "^4.0.0",
58
- "lit": "^3.1.4",
59
- "ssr-window": "^4.0.2",
60
- "tslib": "^2.6.3",
61
- "@mdui/shared": "^1.0.7",
62
- "@mdui/jq": "^3.0.2"
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"
63
63
  }
64
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.3",
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 provided, the component is rendered as an `<a>` element and can use link-related attributes.",
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 download the linked URL.\n\n**Note**: This is only available when `href` is specified.",
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 open 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.\n* `_self`: Opens in the current browsing context. (Default).\n* `_top`: Opens in the topmost browsing context or `_self` if no ancestors.\n\n**Note**: This is only available when `href` is specified.",
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`: The author of the current document or article.\n* `bookmark`: The permalink for the nearest ancestor section.\n* `external`: The referenced document is not part of the same site as the current document.\n* `help`: A 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.",
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": "Specifies that the element should be focused when the page loads.",
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": "Defines the order in which the element receives focus when navigating with the Tab key.",
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 provided, the component is rendered as an `<a>` element and can use link-related attributes.",
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 download the linked URL.\n\n**Note**: This is only available when `href` is specified.",
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 open 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.\n* `_self`: Opens in the current browsing context. (Default).\n* `_top`: Opens in the topmost browsing context or `_self` if no ancestors.\n\n**Note**: This is only available when `href` is specified.",
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`: The author of the current document or article.\n* `bookmark`: The permalink for the nearest ancestor section.\n* `external`: The referenced document is not part of the same site as the current document.\n* `help`: A 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.",
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": "Specifies that the element should be focused when the page loads.",
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": "Defines the order in which the element receives focus when navigating with the Tab key.",
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
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "mdui",
4
- "version": "2.1.3",
4
+ "version": "2.1.4",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "framework-config": {
@@ -10190,7 +10190,7 @@
10190
10190
  },
10191
10191
  {
10192
10192
  "name": "placement",
10193
- "description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"plan\"` 时,优先使用 `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`:位于右侧,底部对齐",
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`:位于右侧,底部对齐",
10194
10194
  "value": {
10195
10195
  "type": [
10196
10196
  "'auto'",
@@ -10316,7 +10316,7 @@
10316
10316
  },
10317
10317
  {
10318
10318
  "name": "placement",
10319
- "description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"plan\"` 时,优先使用 `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`:位于右侧,底部对齐",
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`:位于右侧,底部对齐",
10320
10320
  "value": {
10321
10321
  "type": [
10322
10322
  "'auto'",