litos-ui 0.18.3 → 0.18.5

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 (126) hide show
  1. package/lib/button/index.js +1 -1
  2. package/lib/{button-DEm6CutF.js → button-CC5NBWtI.js} +1 -1
  3. package/lib/calendar/index.js +1 -1
  4. package/lib/carousel/index.js +1 -1
  5. package/lib/carousel/item.js +1 -1
  6. package/lib/check/checkbox.js +1 -1
  7. package/lib/check/checkbox_group.js +1 -1
  8. package/lib/check/radio.js +1 -1
  9. package/lib/check/radio_group.js +1 -1
  10. package/lib/{check-B0XraJvb.js → check-BDOpD_0-.js} +2 -2
  11. package/lib/{check-CvGaONEx.js → check-CrlZ7zVL.js} +3 -3
  12. package/lib/checkbox-D_bZGoUD.js +16 -0
  13. package/lib/collapse/index.js +1 -1
  14. package/lib/collapse/item.js +1 -1
  15. package/lib/{collapse-C3IRHLeg.js → collapse-BRxYoeJx.js} +1 -1
  16. package/lib/color_picker/index.js +1 -1
  17. package/lib/{color_picker-DYN8DCng.js → color_picker-AaFcIczZ.js} +2 -2
  18. package/lib/date_picker/index.js +1 -1
  19. package/lib/{date_picker-DQGoiN8v.js → date_picker-HjkRma9j.js} +2 -2
  20. package/lib/date_picker_ori/index.js +1 -1
  21. package/lib/{date_picker_ori-aRuSSi9D.js → date_picker_ori-1IOHZsan.js} +1 -1
  22. package/lib/description_panel/index.js +1 -1
  23. package/lib/dialog/dialog_container.js +1 -1
  24. package/lib/esm-Cir9D6cn.js +270 -0
  25. package/lib/form/form_inner.d.ts +4 -1
  26. package/lib/form/form_item.js +1 -1
  27. package/lib/form/index.d.ts +13 -2
  28. package/lib/form/index.js +1 -1
  29. package/lib/{form-CNWykMNM.js → form-BvZHaqAt.js} +49 -19
  30. package/lib/{form_inner-DR9tyB_r.js → form_inner-52DR1IPu.js} +13 -4
  31. package/lib/{form_item-Clu9QKRa.js → form_item-DtqChzc3.js} +1 -1
  32. package/lib/icon/arrow_down.js +1 -1
  33. package/lib/icon/arrow_left.js +1 -1
  34. package/lib/icon/arrow_right.js +1 -1
  35. package/lib/icon/arrow_up.js +1 -1
  36. package/lib/icon/base.js +1 -1
  37. package/lib/icon/calendar.js +1 -1
  38. package/lib/icon/caret_bottom.js +1 -1
  39. package/lib/icon/caret_top.js +1 -1
  40. package/lib/icon/close.js +1 -1
  41. package/lib/icon/close_filled.js +1 -1
  42. package/lib/icon/d_arrow_left.js +1 -1
  43. package/lib/icon/d_arrow_right.js +1 -1
  44. package/lib/icon/font_icon.js +1 -1
  45. package/lib/icon/info.js +1 -1
  46. package/lib/icon/loading.js +1 -1
  47. package/lib/icon/moon.js +1 -1
  48. package/lib/icon/more.js +1 -1
  49. package/lib/icon/reduction.js +1 -1
  50. package/lib/icon/refresh.js +1 -1
  51. package/lib/icon/refresh_left.js +1 -1
  52. package/lib/icon/refresh_right.js +1 -1
  53. package/lib/icon/search.js +1 -1
  54. package/lib/icon/select.js +1 -1
  55. package/lib/icon/sort.js +1 -1
  56. package/lib/icon/success.js +1 -1
  57. package/lib/icon/sun.js +1 -1
  58. package/lib/icon/theme_default.js +1 -1
  59. package/lib/icon/warn.js +1 -1
  60. package/lib/icon/zoom_in.js +1 -1
  61. package/lib/icon/zoom_out.js +1 -1
  62. package/lib/image/image_preview.js +1 -1
  63. package/lib/image/index.js +1 -1
  64. package/lib/{image_preview-CYEup07F.js → image_preview-BeJzfEoF.js} +1 -1
  65. package/lib/index.js +36 -36
  66. package/lib/input/index.js +3 -3
  67. package/lib/{item-DRsOV_Tc.js → item-Dq6M7lxw.js} +1 -1
  68. package/lib/list/index.js +1 -1
  69. package/lib/{list-CU7vHS6s.js → list-Dz1Ya118.js} +1 -1
  70. package/lib/loading/index.js +7 -6
  71. package/lib/mask/index.js +1 -1
  72. package/lib/md_input/index.js +1 -1
  73. package/lib/{md_input-DSQx5TMW.js → md_input-DN3ceqsw.js} +1 -1
  74. package/lib/menu/index.js +1 -1
  75. package/lib/modal/index.js +1 -1
  76. package/lib/modal/modal_box.js +3 -3
  77. package/lib/page_header/index.js +1 -1
  78. package/lib/pagination/index.js +1 -1
  79. package/lib/polygon/index.js +1 -1
  80. package/lib/qrcode/index.js +1 -1
  81. package/lib/{radio-2mNSYujz.js → radio-C7dkhgwc.js} +1 -1
  82. package/lib/select/index.d.ts +24 -15
  83. package/lib/select/index.js +1 -1
  84. package/lib/select-Cis6kRjQ.js +351 -0
  85. package/lib/select_ori/index.d.ts +5 -0
  86. package/lib/select_ori/index.js +2 -48
  87. package/lib/select_ori-DcJbNYYr.js +57 -0
  88. package/lib/space/index.js +1 -1
  89. package/lib/switch/index.js +1 -1
  90. package/lib/{switch-BaVBi5Ip.js → switch-UyhlgW7F.js} +1 -1
  91. package/lib/tabbar/index.js +1 -1
  92. package/lib/tabbar/item.js +1 -1
  93. package/lib/table/index.js +1 -1
  94. package/lib/tag/index.js +1 -1
  95. package/lib/theme/index.js +1 -1
  96. package/lib/{theme-BRTI2-Yk.js → theme-Barcq234.js} +5 -2
  97. package/lib/utils/event.js +1 -1
  98. package/lib/utils/popover.js +11 -14
  99. package/package.json +13 -10
  100. package/styles/vars.css +1 -2
  101. package/types/preact.d.ts +128 -0
  102. package/lib/checkbox-DbWsmAaL.js +0 -16
  103. package/lib/esm-sVEoAVPu.js +0 -244
  104. package/lib/select-CAgggYh7.js +0 -326
  105. /package/lib/{animation-CTt9qgA7.js → animation-DStAHzod.js} +0 -0
  106. /package/lib/{base-Dm0WS1pK.js → base-LvfO4mmL.js} +0 -0
  107. /package/lib/{calendar-GpYHNmXG.js → calendar-Clbg3qot.js} +0 -0
  108. /package/lib/{carousel-dT3FJPQo.js → carousel-Dgirxwzb.js} +0 -0
  109. /package/lib/{description_panel-BY2yljeC.js → description_panel-DaqVcA6-.js} +0 -0
  110. /package/lib/{dialog_container-DcN87wj0.js → dialog_container-CcTyfoaD.js} +0 -0
  111. /package/lib/{image-COPKk8Jm.js → image-BCUhVAFo.js} +0 -0
  112. /package/lib/{input-UfukfZIy.js → input-DUBlLEXS.js} +0 -0
  113. /package/lib/{input_inner-BKJg9n9A.js → input_inner-x4GfLGjj.js} +0 -0
  114. /package/lib/{item-B7Elh5xE.js → item-42bYhAkZ.js} +0 -0
  115. /package/lib/{item-CvoJt3wp.js → item-CX8C9X57.js} +0 -0
  116. /package/lib/{mask-CEznzwji.js → mask-BlDl9u8F.js} +0 -0
  117. /package/lib/{menu-CzV6lOlw.js → menu-BOmVa4xN.js} +0 -0
  118. /package/lib/{modal-DWyWrN-D.js → modal-cjj3Nw1B.js} +0 -0
  119. /package/lib/{page_header-BJkEstRw.js → page_header-BfuWJIdd.js} +0 -0
  120. /package/lib/{pagination-5t7AOeFV.js → pagination-DpOSOFwl.js} +0 -0
  121. /package/lib/{polygon-C4Ow2lxi.js → polygon-BY1FAACc.js} +0 -0
  122. /package/lib/{qrcode-BKG2MibP.js → qrcode-Bgr8gJzA.js} +0 -0
  123. /package/lib/{space-Bv-p0DL8.js → space-BT_dVhhv.js} +0 -0
  124. /package/lib/{tabbar-CI1xSj1G.js → tabbar-DO0kB58Y.js} +0 -0
  125. /package/lib/{table-DfL2hFqA.js → table-saZMryiV.js} +0 -0
  126. /package/lib/{tag-72DwCkvq.js → tag-BtDcKdxo.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  import e from "./base.js";
2
2
  import { parseAttrValue as t, stopSignal as n } from "./utils/index.js";
3
- import { t as r } from "./esm-sVEoAVPu.js";
3
+ import { t as r } from "./esm-Cir9D6cn.js";
4
4
  import { getAttr as i } from "ph-utils/dom";
5
5
  //#region src/components/form/form_inner.ts
6
6
  var a = class extends e {
7
- disabled = !1;
7
+ _disabled = !1;
8
8
  _value = void 0;
9
9
  _resetValue;
10
10
  _firstPushValue = !0;
@@ -53,7 +53,7 @@ var a = class extends e {
53
53
  this[e] = r;
54
54
  break;
55
55
  case "disabled":
56
- this.disabled = t(r, !1, e);
56
+ this.setDisabled(t(r, !1, e));
57
57
  break;
58
58
  case "inner-block":
59
59
  let i = t(r, !1, e);
@@ -84,7 +84,16 @@ var a = class extends e {
84
84
  super.disconnectedCallback(), this._signalStop = n(this._signalStop), this._errorSignalStop = n(this._errorSignalStop), this._resetSignalStop = n(this._resetSignalStop);
85
85
  }
86
86
  isDisabled() {
87
- return this.disabled;
87
+ return this._disabled;
88
+ }
89
+ get disabled() {
90
+ return this._disabled;
91
+ }
92
+ set disabled(e) {
93
+ this.setDisabled(e);
94
+ }
95
+ setDisabled(e) {
96
+ this._disabled = e, this.disabledChange();
88
97
  }
89
98
  getName() {
90
99
  return this.name;
@@ -1,5 +1,5 @@
1
1
  import { kebabToCamel as e, parseAttrValue as t, stopSignal as n, unitNumberStr as r } from "./utils/index.js";
2
- import { n as i, t as a } from "./esm-sVEoAVPu.js";
2
+ import { n as i, t as a } from "./esm-Cir9D6cn.js";
3
3
  import o from "./utils/context_provide.js";
4
4
  import { $$ as s, $one as c, addClass as l, removeClass as u } from "ph-utils/dom";
5
5
  //#region src/components/form/form_item.less?inline
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/arrow_down.ts
3
3
  var t = class extends e {
4
4
  static baseName = "arrow-down-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/arrow_left.ts
3
3
  var t = class extends e {
4
4
  static baseName = "arrow-left-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/arrow_right.ts
3
3
  var t = class extends e {
4
4
  static baseName = "arrow-right-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/arrow_up.ts
3
3
  var t = class extends e {
4
4
  static baseName = "arrow-up-icon";
package/lib/icon/base.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/calendar.ts
3
3
  var t = class extends e {
4
4
  static baseName = "calendar-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/caret_bottom.ts
3
3
  var t = class extends e {
4
4
  static baseName = "caret-bottom-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/caret_top.ts
3
3
  var t = class extends e {
4
4
  static baseName = "caret-top-icon";
package/lib/icon/close.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/close.ts
3
3
  var t = class extends e {
4
4
  static baseName = "close-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/close_filled.ts
3
3
  var t = class extends e {
4
4
  static baseName = "close-filled-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/d_arrow_left.ts
3
3
  var t = class extends e {
4
4
  static baseName = "d-arrow-left-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/d_arrow_right.ts
3
3
  var t = class extends e {
4
4
  static baseName = "d-arrow-right-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/font_icon.ts
3
3
  var t = class extends e {
4
4
  static baseName = "font-icon";
package/lib/icon/info.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/info.ts
3
3
  var t = class extends e {
4
4
  static baseName = "info-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/loading.ts
3
3
  var t = class extends e {
4
4
  static baseName = "loading-icon";
package/lib/icon/moon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/moon.ts
3
3
  var t = class extends e {
4
4
  static baseName = "moon-icon";
package/lib/icon/more.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/more.ts
3
3
  var t = class extends e {
4
4
  static baseName = "more-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/reduction.ts
3
3
  var t = class extends e {
4
4
  static baseName = "reduction-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/refresh.ts
3
3
  var t = class extends e {
4
4
  static baseName = "refresh-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/refresh_left.ts
3
3
  var t = class extends e {
4
4
  static baseName = "refresh-left-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/refresh_right.ts
3
3
  var t = class extends e {
4
4
  static baseName = "refresh-right-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/search.ts
3
3
  var t = class extends e {
4
4
  static baseName = "search-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/select.ts
3
3
  var t = class extends e {
4
4
  static baseName = "select-icon";
package/lib/icon/sort.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/sort.ts
3
3
  var t = class extends e {
4
4
  static baseName = "sort-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/success.ts
3
3
  var t = class extends e {
4
4
  static baseName = "success-icon";
package/lib/icon/sun.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/sun.ts
3
3
  var t = class extends e {
4
4
  static baseName = "sun-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/theme_default.ts
3
3
  var t = class extends e {
4
4
  static baseName = "theme-default-icon";
package/lib/icon/warn.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/warn.ts
3
3
  var t = class extends e {
4
4
  static baseName = "warn-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/zoom_in.ts
3
3
  var t = class extends e {
4
4
  static baseName = "zoom-in-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dm0WS1pK.js";
1
+ import { t as e } from "../base-LvfO4mmL.js";
2
2
  //#region src/components/icon/zoom_out.ts
3
3
  var t = class extends e {
4
4
  static baseName = "zoom-out-icon";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../image_preview-CYEup07F.js";
1
+ import { t as e } from "../image_preview-BeJzfEoF.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../image-COPKk8Jm.js";
1
+ import { t as e } from "../image-BCUhVAFo.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./mask-CEznzwji.js";
1
+ import { t as e } from "./mask-BlDl9u8F.js";
2
2
  import { $$ as t, $one as n, off as r, on as i } from "ph-utils/dom";
3
3
  //#region src/components/image/image_preview.less?inline
4
4
  var a = ".l-image-preview--container{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.l-image-preview__btn,.l-image-preview-operations{background-color:#606666;justify-content:center;align-items:center;display:flex}.l-image-preview__btn{z-index:1;opacity:.8;cursor:pointer;color:#fff;background-color:#606666;border:none;border-radius:50%;outline:none;justify-content:center;align-items:center;width:40px;height:40px;font-size:20px;transition:color .3s ease-in-out;display:flex;position:absolute}.l-image-preview__btn:hover{color:var(--l-primary-color,#4998f6)}.l-image-preview__close{top:30px;right:30px}.l-image-preview__prev,.l-image-preview__next{top:50%;transform:translateY(-50%)}.l-image-preview__prev{left:30px}.l-image-preview__next{right:30px}.l-image-preview-footer{z-index:1;flex-direction:column;align-items:center;display:flex;position:absolute;bottom:30px;left:50%;transform:translate(-50%)}.l-image-preview-progress{color:#fff;margin-bottom:10px}.l-image-preview-operations{cursor:default;border-radius:20px;padding:0 25px}.l-image-preview-operations .l-image-preview__btn{width:40px;position:static}.l-image-preview-img{vertical-align:middle;transform-origin:50%;user-select:none;z-index:0;max-width:calc(100vw - 40px);max-height:calc(100vh - 200px);transition:transform .25s}", o = class extends e {
package/lib/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import e from "./base.js";
2
2
  import { initAttr as t, kebabToCamel as n, parseAttrValue as r, regist as i, setAttrs as a, stopSignal as o, tagAttr as s, tagAttrs as c, unitNumberStr as l, useId as u } from "./utils/index.js";
3
3
  import { remove as d, set as f } from "./utils/clickoutside.js";
4
- import { t as p } from "./base-Dm0WS1pK.js";
4
+ import { t as p } from "./base-LvfO4mmL.js";
5
5
  import m from "./icon/close_filled.js";
6
6
  import h from "./icon/success.js";
7
7
  import g from "./icon/warn.js";
8
8
  import _ from "./icon/info.js";
9
9
  import v from "./message/index.js";
10
10
  import y from "./dialog/index.js";
11
- import { t as b } from "./dialog_container-DcN87wj0.js";
11
+ import { t as b } from "./dialog_container-CcTyfoaD.js";
12
12
  import x from "./loading/index.js";
13
13
  import S from "./tabs/index.js";
14
- import { t as C } from "./modal-DWyWrN-D.js";
14
+ import { t as C } from "./modal-cjj3Nw1B.js";
15
15
  import w from "./icon/arrow_down.js";
16
16
  import T from "./icon/arrow_left.js";
17
17
  import E from "./icon/arrow_right.js";
@@ -37,42 +37,42 @@ import G from "./icon/zoom_out.js";
37
37
  import K from "./icon/select.js";
38
38
  import q from "./icon/calendar.js";
39
39
  import J from "./icon/refresh.js";
40
- import { t as Y } from "./form-CNWykMNM.js";
41
- import { t as X } from "./form_item-Clu9QKRa.js";
40
+ import { t as Y } from "./form-BvZHaqAt.js";
41
+ import { t as X } from "./form_item-DtqChzc3.js";
42
42
  import Z from "./check/radio_group.js";
43
- import { t as Q } from "./radio-2mNSYujz.js";
44
- import { t as $ } from "./checkbox-DbWsmAaL.js";
43
+ import { t as Q } from "./radio-C7dkhgwc.js";
44
+ import { t as $ } from "./checkbox-D_bZGoUD.js";
45
45
  import ee from "./check/checkbox_group.js";
46
- import { t as te } from "./button-DEm6CutF.js";
46
+ import { t as te } from "./button-CC5NBWtI.js";
47
47
  import ne from "./input/index.js";
48
- import re from "./select_ori/index.js";
49
- import { t as ie } from "./switch-BaVBi5Ip.js";
50
- import { t as ae } from "./md_input-DSQx5TMW.js";
51
- import { t as oe } from "./select-CAgggYh7.js";
48
+ import { t as re } from "./select_ori-DcJbNYYr.js";
49
+ import { t as ie } from "./switch-UyhlgW7F.js";
50
+ import { t as ae } from "./md_input-DN3ceqsw.js";
51
+ import { t as oe } from "./select-Cis6kRjQ.js";
52
52
  import { Popover as se, autoUpdate as ce, createPopoverObserver as le, getOverflowAncestors as ue, popconfirmProps as de, updatePosition as fe } from "./utils/popover.js";
53
- import { t as pe } from "./date_picker-DQGoiN8v.js";
54
- import { t as me } from "./date_picker_ori-aRuSSi9D.js";
55
- import { t as he } from "./color_picker-DYN8DCng.js";
56
- import { t as ge } from "./list-CU7vHS6s.js";
57
- import { t as _e } from "./polygon-C4Ow2lxi.js";
58
- import { t as ve } from "./tabbar-CI1xSj1G.js";
59
- import { t as ye } from "./item-CvoJt3wp.js";
60
- import { t as be } from "./theme-BRTI2-Yk.js";
53
+ import { t as pe } from "./date_picker-HjkRma9j.js";
54
+ import { t as me } from "./date_picker_ori-1IOHZsan.js";
55
+ import { t as he } from "./color_picker-AaFcIczZ.js";
56
+ import { t as ge } from "./list-Dz1Ya118.js";
57
+ import { t as _e } from "./polygon-BY1FAACc.js";
58
+ import { t as ve } from "./tabbar-DO0kB58Y.js";
59
+ import { t as ye } from "./item-CX8C9X57.js";
60
+ import { t as be } from "./theme-Barcq234.js";
61
61
  import xe from "./theme/theme_color.js";
62
- import { t as Se } from "./menu-CzV6lOlw.js";
63
- import { t as Ce } from "./carousel-dT3FJPQo.js";
64
- import { t as we } from "./item-B7Elh5xE.js";
65
- import { t as Te } from "./qrcode-BKG2MibP.js";
66
- import { t as Ee } from "./description_panel-BY2yljeC.js";
67
- import { t as De } from "./pagination-5t7AOeFV.js";
68
- import { t as Oe } from "./mask-CEznzwji.js";
69
- import { t as ke } from "./page_header-BJkEstRw.js";
70
- import { t as Ae } from "./tag-72DwCkvq.js";
71
- import { t as je } from "./collapse-C3IRHLeg.js";
72
- import { t as Me } from "./item-DRsOV_Tc.js";
73
- import { t as Ne } from "./image-COPKk8Jm.js";
74
- import { t as Pe } from "./image_preview-CYEup07F.js";
75
- import { t as Fe } from "./table-DfL2hFqA.js";
76
- import { t as Ie } from "./space-Bv-p0DL8.js";
77
- import { t as Le } from "./calendar-GpYHNmXG.js";
62
+ import { t as Se } from "./menu-BOmVa4xN.js";
63
+ import { t as Ce } from "./carousel-Dgirxwzb.js";
64
+ import { t as we } from "./item-42bYhAkZ.js";
65
+ import { t as Te } from "./qrcode-Bgr8gJzA.js";
66
+ import { t as Ee } from "./description_panel-DaqVcA6-.js";
67
+ import { t as De } from "./pagination-DpOSOFwl.js";
68
+ import { t as Oe } from "./mask-BlDl9u8F.js";
69
+ import { t as ke } from "./page_header-BfuWJIdd.js";
70
+ import { t as Ae } from "./tag-BtDcKdxo.js";
71
+ import { t as je } from "./collapse-BRxYoeJx.js";
72
+ import { t as Me } from "./item-Dq6M7lxw.js";
73
+ import { t as Ne } from "./image-BCUhVAFo.js";
74
+ import { t as Pe } from "./image_preview-BeJzfEoF.js";
75
+ import { t as Fe } from "./table-saZMryiV.js";
76
+ import { t as Ie } from "./space-BT_dVhhv.js";
77
+ import { t as Le } from "./calendar-Clbg3qot.js";
78
78
  export { w as ArrowDownIcon, T as ArrowLeftIcon, E as ArrowRightIcon, D as ArrowUpIcon, e as BaseComponent, p as BaseIcon, te as Button, Le as Calendar, q as CalendarIcon, k as CaretBottomIcon, O as CaretTopIcon, Ce as Carousel, we as CarouselItem, $ as Checkbox, ee as CheckboxGroup, m as CloseFilledIcon, B as CloseIcon, je as Collapse, Me as CollapseItem, he as ColorPicker, H as DArrowLeftIcon, U as DArrowRightIcon, pe as DatePicker, me as DatePickerOri, Ee as DescriptionPanel, y as Dialog, b as DialogContainer, A as FontIcon, Y as Form, X as FormItem, Ne as Image, Pe as ImagePreview, _ as InfoIcon, ne as Input, ge as List, x as Loading, j as LoadingIcon, Oe as Mask, ae as MdInput, Se as Menu, v as Message, C as Modal, P as MoonIcon, V as MoreIcon, ke as PageHeader, De as Pagination, _e as Polygon, se as Popover, Te as Qrcode, Q as Radio, Z as RadioGroup, F as ReductionIcon, J as RefreshIcon, I as RefreshLeftIcon, L as RefreshRightIcon, M as SearchIcon, oe as Select, K as SelectIcon, re as SelectOri, R as SortIcon, Ie as Space, h as SuccessIcon, N as SunIcon, ie as Switch, ve as Tabbar, ye as TabbarItem, Fe as Table, S as Tabs, Ae as Tag, be as Theme, xe as ThemeColor, z as ThemeDefaultIcon, g as WarnIcon, W as ZoomInIcon, G as ZoomOutIcon, f as addClickOutside, ce as autoUpdate, le as createPopoverObserver, ue as getOverflowAncestors, t as initAttr, n as kebabToCamel, r as parseAttrValue, de as popconfirmProps, i as regist, d as removeClickOutside, a as setAttrs, o as stopSignal, s as tagAttr, c as tagAttrs, l as unitNumberStr, fe as updatePosition, u as useId };
@@ -1,7 +1,7 @@
1
1
  import { parseAttrValue as e, unitNumberStr as t } from "../utils/index.js";
2
- import { t as n } from "../form_inner-DR9tyB_r.js";
3
- import { t as r } from "../input-UfukfZIy.js";
4
- import { t as i } from "../input_inner-BKJg9n9A.js";
2
+ import { t as n } from "../form_inner-52DR1IPu.js";
3
+ import { t as r } from "../input-DUBlLEXS.js";
4
+ import { t as i } from "../input_inner-x4GfLGjj.js";
5
5
  import { $ as a, $$ as o, $one as s, addClass as c, formatStyle as l, off as u, on as d, removeClass as f } from "ph-utils/dom";
6
6
  //#region src/components/input/index.ts
7
7
  var p = class extends n {
@@ -1,6 +1,6 @@
1
1
  import e from "./base.js";
2
2
  import { kebabToCamel as t, parseAttrValue as n, stopSignal as r } from "./utils/index.js";
3
- import { t as i } from "./esm-sVEoAVPu.js";
3
+ import { t as i } from "./esm-Cir9D6cn.js";
4
4
  import { $$ as a, $one as o, off as s, on as c, queryHideNodeSize as l } from "ph-utils/dom";
5
5
  //#region src/components/collapse/item.less?inline
6
6
  var u = ":host{box-sizing:border-box;border-bottom:1px solid var(--l-collapse-border-color);color:#333;font-size:14px;display:block}.l-collapse-item__header{cursor:pointer;justify-content:flex-start;align-items:center;gap:5px;padding:10px 0;display:flex}.l-collapse-item__header.arrow-right{flex-direction:row-reverse;justify-content:flex-end}.l-collapse-item__header.space-between{justify-content:space-between}.l-collapse-arrow-icon{transition:transform .3s;transform:rotate(0)}.l-collapse-content{box-sizing:border-box;transition:height .3s;overflow-y:hidden}.l-collapse-content-box{padding-bottom:15px}:host(.l-collapse-expand) .l-collapse-arrow-icon{transform:rotate(90deg)}:host(.background){border-left:1px solid var(--l-collapse-border-color);border-right:1px solid var(--l-collapse-border-color);background-color:#00000005}:host(.background:first-child),:host(.background.space){border-top:1px solid var(--l-collapse-border-color)}:host(.background) .l-collapse-item__header{padding:10px 15px}:host(.background) .l-collapse-content{border-top:1px solid var(--l-collapse-border-color);background:#fff}:host(.background) .l-collapse-content-box{padding:15px}:host(:first-child){border-top-left-radius:var(--l-collapse-border-radius,0px);border-top-right-radius:var(--l-collapse-border-radius,0px)}:host(:last-child){border-bottom-left-radius:var(--l-collapse-border-radius,0px);border-bottom-right-radius:var(--l-collapse-border-radius,0px)}:host(.space){border-radius:var(--l-collapse-border-radius,0px)}", d = class extends e {
package/lib/list/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../list-CU7vHS6s.js";
1
+ import { t as e } from "../list-Dz1Ya118.js";
2
2
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import e from "./base.js";
2
2
  import { parseAttrValue as t } from "./utils/index.js";
3
- import { t as n } from "./animation-CTt9qgA7.js";
3
+ import { t as n } from "./animation-DStAHzod.js";
4
4
  import { $one as r } from "ph-utils/dom";
5
5
  //#region src/components/list/index.less?inline
6
6
  var i = ":host{-webkit-overflow-scrolling:touch;height:100%;display:block;position:relative;overflow:auto}.l-list-loadmore{color:#999;justify-content:center;align-items:center;padding:10px;display:flex}.l-list-icon{margin-right:10px;font-size:24px;transform:rotate(80deg)}", a = class extends e {
@@ -38,13 +38,14 @@ function o(e, a) {
38
38
  function s(e, t) {
39
39
  let i = e.tagName === "BODY" ? "body" : ".l-loading", a = n(`${i} > .l-loading-mask`, e), o = n(`${i} > .l-loading-spinner`, e);
40
40
  if (!o) return;
41
- function s() {
42
- a && a.remove(), o.remove();
43
- let t = ["l-loading"];
44
- e.tagName === "BODY" && t.push("l-loading-fullscreen", "l-loading-lock"), e.classList.remove(...t);
41
+ let s = -1;
42
+ function c() {
43
+ a &&= (a.remove(), null), o &&= (o.remove(), null), e.classList.remove("l-loading", "l-loading-fullscreen", "l-loading-lock"), clearTimeout(s);
45
44
  }
46
- o.addEventListener("transitionend", s, { once: !0 }), requestAnimationFrame(() => {
47
- a && (a.style.opacity = "0"), r(o, "l-loading-bar--finish"), o.style.opacity = "0";
45
+ o.addEventListener("transitionend", c, { once: !0 }), requestAnimationFrame(() => {
46
+ a && (a.style.opacity = "0"), r(o, "l-loading-bar--finish"), o.style.opacity = "0", s = setTimeout(() => {
47
+ c();
48
+ }, 3e3);
48
49
  });
49
50
  }
50
51
  var c = class {
package/lib/mask/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../mask-CEznzwji.js";
1
+ import { t as e } from "../mask-BlDl9u8F.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../md_input-DSQx5TMW.js";
1
+ import { t as e } from "../md_input-DN3ceqsw.js";
2
2
  export { e as default };
@@ -1,5 +1,5 @@
1
1
  import { initAttr as e } from "./utils/index.js";
2
- import { t } from "./form_inner-DR9tyB_r.js";
2
+ import { t } from "./form_inner-52DR1IPu.js";
3
3
  import { $$ as n, $one as r, addClass as i, off as a, on as o, removeClass as s } from "ph-utils/dom";
4
4
  import { isBlank as c, random as l } from "ph-utils";
5
5
  //#region src/components/md_input/index.less?inline
package/lib/menu/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../menu-CzV6lOlw.js";
1
+ import { t as e } from "../menu-BOmVa4xN.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../modal-DWyWrN-D.js";
1
+ import { t as e } from "../modal-cjj3Nw1B.js";
2
2
  export { e as default };
@@ -1,9 +1,9 @@
1
1
  import { regist as e } from "../utils/index.js";
2
2
  import t from "../icon/info.js";
3
- import { t as n } from "../modal-DWyWrN-D.js";
3
+ import { t as n } from "../modal-cjj3Nw1B.js";
4
4
  import r from "../icon/close.js";
5
- import { t as i } from "../form_item-Clu9QKRa.js";
6
- import { t as a } from "../button-DEm6CutF.js";
5
+ import { t as i } from "../form_item-DtqChzc3.js";
6
+ import { t as a } from "../button-CC5NBWtI.js";
7
7
  import o from "../input/index.js";
8
8
  import { $$ as s, $one as c, on as l } from "ph-utils/dom";
9
9
  //#region src/components/modal/modal_box.ts
@@ -1,2 +1,2 @@
1
- import { t as e } from "../page_header-BJkEstRw.js";
1
+ import { t as e } from "../page_header-BfuWJIdd.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../pagination-5t7AOeFV.js";
1
+ import { t as e } from "../pagination-DpOSOFwl.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../polygon-C4Ow2lxi.js";
1
+ import { t as e } from "../polygon-BY1FAACc.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../qrcode-BKG2MibP.js";
1
+ import { t as e } from "../qrcode-Bgr8gJzA.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./check-CvGaONEx.js";
1
+ import { n as e, t } from "./check-CrlZ7zVL.js";
2
2
  //#region src/components/check/radio.less?inline
3
3
  var n = ".l-check__inner{border-radius:50%}.l-check__inner:after{content:\"\";background-color:#0000;border-radius:50%;width:60%;height:60%;transition:background-color .3s ease-in-out;display:block}:host(.is-checked) .l-check__inner:after{background-color:var(--l-primary-color,#722ed1)}:host(.is-disabled) .l-check__inner{border-color:var(--l-disabled-color,#e6e6e6)}:host(.is-disabled) .l-check__inner:after{background-color:var(--l-disabled-color,#e6e6e6)}", r = class extends e {
4
4
  static baseName = "radio";
@@ -1,18 +1,15 @@
1
1
  import FormInner from "../form/form_inner";
2
- type SelectOption = {
2
+ export type SelectOption = {
3
3
  class?: string;
4
4
  render?: (option: SelectOption, isSelect: boolean, selectedValues?: any | any[]) => HTMLElement | DocumentFragment;
5
5
  label?: string;
6
6
  value?: any;
7
7
  [index: string]: any;
8
8
  };
9
- export default class Select extends FormInner {
10
- static baseName: string;
11
- /** 选中的标签 */
12
- selectedLabels: string[];
9
+ type SelectState = {
13
10
  /** 是否启用过滤 */
14
11
  filterable?: boolean;
15
- placeholder?: string;
12
+ placeholder: string;
16
13
  /** 选项 label 的字段名 */
17
14
  labelField: string;
18
15
  /** 选项 value 的字段名 */
@@ -21,36 +18,44 @@ export default class Select extends FormInner {
21
18
  multiple?: boolean;
22
19
  /** 多选时是否折叠标签 */
23
20
  collapseTags?: boolean;
24
- /** 是否加载中, 远程搜索时使用 */
25
- _loading?: boolean;
26
21
  /** 宽度 */
27
22
  width?: string;
28
23
  /** 是否可清除 */
29
24
  clearable?: boolean;
30
- /** 是否展开下拉选择 */
31
- _expanded: boolean;
25
+ /** 是否远程搜索 */
32
26
  remote: boolean;
27
+ /** 是否加载中, 远程搜索时使用 */
28
+ loading?: boolean;
29
+ /** 是否展开下拉选择 */
30
+ expanded?: boolean;
31
+ };
32
+ export default class Select extends FormInner<SelectState> {
33
+ static baseName: string;
34
+ /** 选中的标签 */
35
+ selectedLabels: string[];
33
36
  filter?: (match: string, option: SelectOption) => boolean;
34
- options?: SelectOption[];
37
+ _options?: SelectOption[];
38
+ /** 备份数据, 搜索过滤时有用 */
35
39
  private _backOptions?;
36
40
  inputHandler?: (match: string) => void;
41
+ /** 下拉弹窗主体 */
37
42
  private _popover?;
38
43
  private _searchEl?;
39
44
  constructor();
40
- connectedCallback(): void;
41
45
  setInputHandler(handler: (match: string) => void): void;
42
46
  setFilter(filter: (match: string, option: SelectOption) => boolean): void;
43
47
  get loading(): boolean | undefined;
44
48
  set loading(loading: boolean | undefined);
45
49
  setLoading(loading: boolean): void;
46
- private get expanded();
47
- private set expanded(value);
48
50
  setExpanded(value: boolean): void;
49
51
  setValue(value: string | string[] | number): void;
50
52
  private _updateSelectedLabels;
51
53
  static get observedAttributes(): string[];
52
54
  protected attributeChange(name: string, _oldValue: string, newValue: string): void;
53
- setOptions(options: any[]): void;
55
+ protected updateDOM(changedProps: Set<string>): void;
56
+ get options(): SelectOption[] | undefined;
57
+ set options(opts: SelectOption[] | undefined);
58
+ setOptions(options: SelectOption[] | undefined): void;
54
59
  private _isOptionSelect;
55
60
  private _updateOptionSelect;
56
61
  private _renderOption;
@@ -69,6 +74,10 @@ export default class Select extends FormInner {
69
74
  private _filteOption;
70
75
  afterInit(): void;
71
76
  beforeDestroy(): void;
77
+ render_v2(): {
78
+ template?: string | HTMLElement | DocumentFragment;
79
+ style?: string | string[];
80
+ };
72
81
  render(): DocumentFragment;
73
82
  protected disabledChange(): void;
74
83
  private _renderTag;
@@ -1,3 +1,3 @@
1
- import { t as e } from "../select-CAgggYh7.js";
1
+ import { t as e } from "../select-Cis6kRjQ.js";
2
2
  import "../utils/popover.js";
3
3
  export { e as default };