litos-ui 0.18.3 → 0.18.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 (117) 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-CvGaONEx.js → check-BQWzxdO2.js} +2 -2
  11. package/lib/{check-B0XraJvb.js → check-CuKgzwRS.js} +2 -2
  12. package/lib/{checkbox-DbWsmAaL.js → checkbox-CNluBmyo.js} +1 -1
  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-fDdSa0hC.js} +2 -2
  18. package/lib/date_picker/index.js +1 -1
  19. package/lib/{date_picker-DQGoiN8v.js → date_picker-DHCCvMnX.js} +2 -2
  20. package/lib/date_picker_ori/index.js +1 -1
  21. package/lib/{date_picker_ori-aRuSSi9D.js → date_picker_ori-JXqzXaYz.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_item.js +1 -1
  26. package/lib/form/index.d.ts +4 -1
  27. package/lib/form/index.js +1 -1
  28. package/lib/{form-CNWykMNM.js → form-uOybauzi.js} +7 -1
  29. package/lib/{form_inner-DR9tyB_r.js → form_inner-B7IMSpMf.js} +1 -1
  30. package/lib/{form_item-Clu9QKRa.js → form_item-DtqChzc3.js} +1 -1
  31. package/lib/icon/arrow_down.js +1 -1
  32. package/lib/icon/arrow_left.js +1 -1
  33. package/lib/icon/arrow_right.js +1 -1
  34. package/lib/icon/arrow_up.js +1 -1
  35. package/lib/icon/base.js +1 -1
  36. package/lib/icon/calendar.js +1 -1
  37. package/lib/icon/caret_bottom.js +1 -1
  38. package/lib/icon/caret_top.js +1 -1
  39. package/lib/icon/close.js +1 -1
  40. package/lib/icon/close_filled.js +1 -1
  41. package/lib/icon/d_arrow_left.js +1 -1
  42. package/lib/icon/d_arrow_right.js +1 -1
  43. package/lib/icon/font_icon.js +1 -1
  44. package/lib/icon/info.js +1 -1
  45. package/lib/icon/loading.js +1 -1
  46. package/lib/icon/moon.js +1 -1
  47. package/lib/icon/more.js +1 -1
  48. package/lib/icon/reduction.js +1 -1
  49. package/lib/icon/refresh.js +1 -1
  50. package/lib/icon/refresh_left.js +1 -1
  51. package/lib/icon/refresh_right.js +1 -1
  52. package/lib/icon/search.js +1 -1
  53. package/lib/icon/select.js +1 -1
  54. package/lib/icon/sort.js +1 -1
  55. package/lib/icon/success.js +1 -1
  56. package/lib/icon/sun.js +1 -1
  57. package/lib/icon/theme_default.js +1 -1
  58. package/lib/icon/warn.js +1 -1
  59. package/lib/icon/zoom_in.js +1 -1
  60. package/lib/icon/zoom_out.js +1 -1
  61. package/lib/image/image_preview.js +1 -1
  62. package/lib/image/index.js +1 -1
  63. package/lib/{image_preview-CYEup07F.js → image_preview-BeJzfEoF.js} +1 -1
  64. package/lib/index.js +35 -35
  65. package/lib/input/index.js +3 -3
  66. package/lib/{item-DRsOV_Tc.js → item-Dq6M7lxw.js} +1 -1
  67. package/lib/list/index.js +1 -1
  68. package/lib/{list-CU7vHS6s.js → list-Dz1Ya118.js} +1 -1
  69. package/lib/loading/index.js +4 -4
  70. package/lib/mask/index.js +1 -1
  71. package/lib/md_input/index.js +1 -1
  72. package/lib/{md_input-DSQx5TMW.js → md_input-DHz8GRs3.js} +1 -1
  73. package/lib/menu/index.js +1 -1
  74. package/lib/modal/index.js +1 -1
  75. package/lib/modal/modal_box.js +3 -3
  76. package/lib/page_header/index.js +1 -1
  77. package/lib/pagination/index.js +1 -1
  78. package/lib/polygon/index.js +1 -1
  79. package/lib/qrcode/index.js +1 -1
  80. package/lib/{radio-2mNSYujz.js → radio-C8FTHdm3.js} +1 -1
  81. package/lib/select/index.js +1 -1
  82. package/lib/{select-CAgggYh7.js → select-CnwPEFQ3.js} +1 -1
  83. package/lib/select_ori/index.js +2 -2
  84. package/lib/space/index.js +1 -1
  85. package/lib/switch/index.js +1 -1
  86. package/lib/{switch-BaVBi5Ip.js → switch-DDNxkTiM.js} +1 -1
  87. package/lib/tabbar/index.js +1 -1
  88. package/lib/tabbar/item.js +1 -1
  89. package/lib/table/index.js +1 -1
  90. package/lib/tag/index.js +1 -1
  91. package/lib/theme/index.js +1 -1
  92. package/lib/utils/event.js +1 -1
  93. package/package.json +65 -65
  94. package/lib/esm-sVEoAVPu.js +0 -244
  95. /package/lib/{animation-CTt9qgA7.js → animation-DStAHzod.js} +0 -0
  96. /package/lib/{base-Dm0WS1pK.js → base-LvfO4mmL.js} +0 -0
  97. /package/lib/{calendar-GpYHNmXG.js → calendar-Clbg3qot.js} +0 -0
  98. /package/lib/{carousel-dT3FJPQo.js → carousel-Dgirxwzb.js} +0 -0
  99. /package/lib/{description_panel-BY2yljeC.js → description_panel-DaqVcA6-.js} +0 -0
  100. /package/lib/{dialog_container-DcN87wj0.js → dialog_container-CcTyfoaD.js} +0 -0
  101. /package/lib/{image-COPKk8Jm.js → image-BCUhVAFo.js} +0 -0
  102. /package/lib/{input-UfukfZIy.js → input-DUBlLEXS.js} +0 -0
  103. /package/lib/{input_inner-BKJg9n9A.js → input_inner-x4GfLGjj.js} +0 -0
  104. /package/lib/{item-B7Elh5xE.js → item-42bYhAkZ.js} +0 -0
  105. /package/lib/{item-CvoJt3wp.js → item-CX8C9X57.js} +0 -0
  106. /package/lib/{mask-CEznzwji.js → mask-BlDl9u8F.js} +0 -0
  107. /package/lib/{menu-CzV6lOlw.js → menu-BOmVa4xN.js} +0 -0
  108. /package/lib/{modal-DWyWrN-D.js → modal-cjj3Nw1B.js} +0 -0
  109. /package/lib/{page_header-BJkEstRw.js → page_header-BfuWJIdd.js} +0 -0
  110. /package/lib/{pagination-5t7AOeFV.js → pagination-DpOSOFwl.js} +0 -0
  111. /package/lib/{polygon-C4Ow2lxi.js → polygon-BY1FAACc.js} +0 -0
  112. /package/lib/{qrcode-BKG2MibP.js → qrcode-Bgr8gJzA.js} +0 -0
  113. /package/lib/{space-Bv-p0DL8.js → space-BT_dVhhv.js} +0 -0
  114. /package/lib/{tabbar-CI1xSj1G.js → tabbar-DO0kB58Y.js} +0 -0
  115. /package/lib/{table-DfL2hFqA.js → table-saZMryiV.js} +0 -0
  116. /package/lib/{tag-72DwCkvq.js → tag-BtDcKdxo.js} +0 -0
  117. /package/lib/{theme-BRTI2-Yk.js → theme-DBghUmYD.js} +0 -0
@@ -1,2 +1,2 @@
1
- import { t as e } from "../button-DEm6CutF.js";
1
+ import { t as e } from "../button-CC5NBWtI.js";
2
2
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import e from "./base.js";
2
2
  import { kebabToCamel as t, parseAttrValue as n, unitNumberStr as r } from "./utils/index.js";
3
- import { t as i } from "./animation-CTt9qgA7.js";
3
+ import { t as i } from "./animation-DStAHzod.js";
4
4
  import { $one as a, addClass as o, formatClass as s, formatStyle as c, off as l, on as u, removeClass as d } from "ph-utils/dom";
5
5
  import { adjust as f } from "ph-utils/color";
6
6
  //#region src/components/button/index.less?inline
@@ -1,2 +1,2 @@
1
- import { t as e } from "../calendar-GpYHNmXG.js";
1
+ import { t as e } from "../calendar-Clbg3qot.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../carousel-dT3FJPQo.js";
1
+ import { t as e } from "../carousel-Dgirxwzb.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../item-B7Elh5xE.js";
1
+ import { t as e } from "../item-42bYhAkZ.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../checkbox-DbWsmAaL.js";
1
+ import { t as e } from "../checkbox-CNluBmyo.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../check-B0XraJvb.js";
1
+ import { t as e } from "../check-CuKgzwRS.js";
2
2
  //#region src/components/check/checkbox_group.ts
3
3
  var t = class extends e {
4
4
  static baseName = "checkbox-group";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../radio-2mNSYujz.js";
1
+ import { t as e } from "../radio-C8FTHdm3.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../check-B0XraJvb.js";
1
+ import { t as e } from "../check-CuKgzwRS.js";
2
2
  //#region src/components/check/radio_group.ts
3
3
  var t = class extends e {
4
4
  static baseName = "radio-group";
@@ -1,6 +1,6 @@
1
1
  import { parseAttrValue as e, stopSignal as t } from "./utils/index.js";
2
- import { t as n } from "./esm-sVEoAVPu.js";
3
- import { t as r } from "./form_inner-DR9tyB_r.js";
2
+ import { t as n } from "./esm-Cir9D6cn.js";
3
+ import { t as r } from "./form_inner-B7IMSpMf.js";
4
4
  import { $$ as i, addClass as a, off as o, on as s, removeClass as c, toggleClass as l } from "ph-utils/dom";
5
5
  //#region src/components/check/check.ts
6
6
  var u = class extends r {
@@ -1,6 +1,6 @@
1
1
  import { unitNumberStr as e } from "./utils/index.js";
2
- import { n as t } from "./esm-sVEoAVPu.js";
3
- import { t as n } from "./form_inner-DR9tyB_r.js";
2
+ import { n as t } from "./esm-Cir9D6cn.js";
3
+ import { t as n } from "./form_inner-B7IMSpMf.js";
4
4
  import { $$ as r, off as i, on as a } from "ph-utils/dom";
5
5
  //#region src/components/check/index.less?inline
6
6
  var o = ":host{align-items:center;gap:var(--l-check-gap,0px);display:flex}", s = class extends n {
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./check-CvGaONEx.js";
1
+ import { n as e, t } from "./check-BQWzxdO2.js";
2
2
  //#region src/components/check/checkbox.less?inline
3
3
  var n = ":host(.is-indeterminate) .l-check__inner{background-color:var(--l-primary-color,#722ed1)}:host(.is-indeterminate) .l-check__inner:after{content:\"\";width:calc(var(--l-check-size) * .4);border:none;border-bottom:1px solid #fff;height:1px;margin-top:0;display:block;transform:rotate(0)}.l-check__inner:after,:host(.is-checked) .l-check__inner:after{content:\"\";width:calc(var(--l-check-size) * .6);height:calc(var(--l-check-size) * .3);border-top:none;border-bottom:1px solid #0000;border-left:1px solid #0000;border-right:none;margin-top:-3px;transition:border-color .2s ease-in-out;display:block;transform:rotate(-45deg)}:host(.is-checked) .l-check__inner{background-color:var(--l-primary-color,#722ed1)}:host(.is-checked) .l-check__inner:after{border-color:#fff}:host(.is-disabled) .l-check__inner{background-color:var(--l-disabled-color,#e6e6e6);border-color:var(--l-disabled-color,#e6e6e6)}", r = class extends e {
4
4
  static baseName = "checkbox";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../collapse-C3IRHLeg.js";
1
+ import { t as e } from "../collapse-BRxYoeJx.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../item-DRsOV_Tc.js";
1
+ import { t as e } from "../item-Dq6M7lxw.js";
2
2
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import e from "./base.js";
2
2
  import { kebabToCamel as t, parseAttrValue as n, unitNumberStr as r } from "./utils/index.js";
3
- import { n as i } from "./esm-sVEoAVPu.js";
3
+ import { n as i } from "./esm-Cir9D6cn.js";
4
4
  import { $$ as a, off as o, on as s } from "ph-utils/dom";
5
5
  //#region src/components/collapse/index.less?inline
6
6
  var c = ":host{--l-collapse-border-color:var(--l-border-color,#dedede);--l-collapse-border-radius:0px;gap:var(--l-collapse-gap,0px);box-sizing:border-box;grid-template-columns:1fr;display:grid}:host(.l-collapse-grid){grid-template-columns:repeat(auto-fill,minmax(200px,1fr));align-items:start}", l = class extends e {
@@ -1,2 +1,2 @@
1
- import { t as e } from "../color_picker-DYN8DCng.js";
1
+ import { t as e } from "../color_picker-fDdSa0hC.js";
2
2
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import { initAttr as e, setAttrs 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";
2
+ import { t as n } from "./form_inner-B7IMSpMf.js";
3
+ import { t as r } from "./input-DUBlLEXS.js";
4
4
  import { $one as i, off as a, on as o } from "ph-utils/dom";
5
5
  //#region src/components/color_picker/index.less?inline
6
6
  var s = ":host{--l-input-width:60px}", c = class extends n {
@@ -1,3 +1,3 @@
1
1
  import "../utils/popover.js";
2
- import { t as e } from "../date_picker-DQGoiN8v.js";
2
+ import { t as e } from "../date_picker-DHCCvMnX.js";
3
3
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import { unitNumberStr as e } from "./utils/index.js";
2
- import { t } from "./form_inner-DR9tyB_r.js";
3
- import { t as n } from "./input_inner-BKJg9n9A.js";
2
+ import { t } from "./form_inner-B7IMSpMf.js";
3
+ import { t as n } from "./input_inner-x4GfLGjj.js";
4
4
  import { Popover as r } from "./utils/popover.js";
5
5
  import { $$ as i, on as a } from "ph-utils/dom";
6
6
  //#region src/components/date_picker/index.less?inline
@@ -1,2 +1,2 @@
1
- import { t as e } from "../date_picker_ori-aRuSSi9D.js";
1
+ import { t as e } from "../date_picker_ori-JXqzXaYz.js";
2
2
  export { e as default };
@@ -1,5 +1,5 @@
1
1
  import { kebabToCamel as e, parseAttrValue as t, unitNumberStr as n } from "./utils/index.js";
2
- import { t as r } from "./form_inner-DR9tyB_r.js";
2
+ import { t as r } from "./form_inner-B7IMSpMf.js";
3
3
  import { $ as i, $$ as a, iterate as o, off as s, on as c } from "ph-utils/dom";
4
4
  import { parse as l } from "ph-utils/date";
5
5
  //#region src/components/date_picker_ori/index.less?inline
@@ -1,2 +1,2 @@
1
- import { t as e } from "../description_panel-BY2yljeC.js";
1
+ import { t as e } from "../description_panel-DaqVcA6-.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../dialog_container-DcN87wj0.js";
1
+ import { t as e } from "../dialog_container-CcTyfoaD.js";
2
2
  export { e as default };
@@ -0,0 +1,270 @@
1
+ //#region node_modules/.pnpm/alien-signals@3.2.1/node_modules/alien-signals/esm/system.mjs
2
+ function e({ update: e, notify: t, unwatched: n }) {
3
+ return {
4
+ link: r,
5
+ unlink: i,
6
+ propagate: a,
7
+ checkDirty: o,
8
+ shallowPropagate: s
9
+ };
10
+ function r(e, t, n) {
11
+ let r = t.depsTail;
12
+ if (r !== void 0 && r.dep === e) return;
13
+ let i = r === void 0 ? t.deps : r.nextDep;
14
+ if (i !== void 0 && i.dep === e) {
15
+ i.version = n, t.depsTail = i;
16
+ return;
17
+ }
18
+ let a = e.subsTail;
19
+ if (a !== void 0 && a.version === n && a.sub === t) return;
20
+ let o = t.depsTail = e.subsTail = {
21
+ version: n,
22
+ dep: e,
23
+ sub: t,
24
+ prevDep: r,
25
+ nextDep: i,
26
+ prevSub: a,
27
+ nextSub: void 0
28
+ };
29
+ i !== void 0 && (i.prevDep = o), r === void 0 ? t.deps = o : r.nextDep = o, a === void 0 ? e.subs = o : a.nextSub = o;
30
+ }
31
+ function i(e, t = e.sub) {
32
+ let { dep: r, prevDep: i, nextDep: a, nextSub: o, prevSub: s } = e;
33
+ return a === void 0 ? t.depsTail = i : a.prevDep = i, i === void 0 ? t.deps = a : i.nextDep = a, o === void 0 ? r.subsTail = s : o.prevSub = s, s === void 0 ? (r.subs = o) === void 0 && n(r) : s.nextSub = o, a;
34
+ }
35
+ function a(e, n) {
36
+ let r = e.nextSub, i;
37
+ top: do {
38
+ let a = e.sub, o = a.flags;
39
+ if (o & 60 ? o & 12 ? o & 4 ? !(o & 48) && c(e, a) ? (a.flags = o | 40, o &= 1) : o = 0 : a.flags = o & -9 | 32 : o = 0 : (a.flags = o | 32, n && (a.flags |= 8)), o & 2 && t(a), o & 1) {
40
+ let t = a.subs;
41
+ if (t !== void 0) {
42
+ let n = (e = t).nextSub;
43
+ n !== void 0 && (i = {
44
+ value: r,
45
+ prev: i
46
+ }, r = n);
47
+ continue;
48
+ }
49
+ }
50
+ if ((e = r) !== void 0) {
51
+ r = e.nextSub;
52
+ continue;
53
+ }
54
+ for (; i !== void 0;) if (e = i.value, i = i.prev, e !== void 0) {
55
+ r = e.nextSub;
56
+ continue top;
57
+ }
58
+ break;
59
+ } while (!0);
60
+ }
61
+ function o(t, n) {
62
+ let r, i = 0, a = !1;
63
+ top: do {
64
+ let o = t.dep, c = o.flags;
65
+ if (n.flags & 16) a = !0;
66
+ else if ((c & 17) == 17) {
67
+ let t = o.subs;
68
+ e(o) && (t.nextSub !== void 0 && s(t), a = !0);
69
+ } else if ((c & 33) == 33) {
70
+ r = {
71
+ value: t,
72
+ prev: r
73
+ }, t = o.deps, n = o, ++i;
74
+ continue;
75
+ }
76
+ if (!a) {
77
+ let e = t.nextDep;
78
+ if (e !== void 0) {
79
+ t = e;
80
+ continue;
81
+ }
82
+ }
83
+ for (; i--;) {
84
+ if (t = r.value, r = r.prev, a) {
85
+ let r = n.subs;
86
+ if (e(n)) {
87
+ r.nextSub !== void 0 && s(r), n = t.sub;
88
+ continue;
89
+ }
90
+ a = !1;
91
+ } else n.flags &= -33;
92
+ n = t.sub;
93
+ let i = t.nextDep;
94
+ if (i !== void 0) {
95
+ t = i;
96
+ continue top;
97
+ }
98
+ }
99
+ return a && !!n.flags;
100
+ } while (!0);
101
+ }
102
+ function s(e) {
103
+ do {
104
+ let n = e.sub, r = n.flags;
105
+ (r & 48) == 32 && (n.flags = r | 16, (r & 6) == 2 && t(n));
106
+ } while ((e = e.nextSub) !== void 0);
107
+ }
108
+ function c(e, t) {
109
+ let n = t.depsTail;
110
+ for (; n !== void 0;) {
111
+ if (n === e) return !0;
112
+ n = n.prevDep;
113
+ }
114
+ return !1;
115
+ }
116
+ }
117
+ //#endregion
118
+ //#region node_modules/.pnpm/alien-signals@3.2.1/node_modules/alien-signals/esm/index.mjs
119
+ var t = 64, n = 0, r = 0, i = 0, a = 0, o, s = [], { link: c, unlink: l, propagate: u, checkDirty: d, shallowPropagate: f } = e({
120
+ update(e) {
121
+ return "getter" in e ? g(e) : "currentValue" in e ? _(e) : (e.flags = 1, !0);
122
+ },
123
+ notify(e) {
124
+ let t = a, n = t;
125
+ do
126
+ if (s[t++] = e, e.flags &= -3, e = e.subs?.sub, e === void 0 || !(e.flags & 2)) break;
127
+ while (!0);
128
+ for (a = t; n < --t;) {
129
+ let e = s[n];
130
+ s[n++] = s[t], s[t] = e;
131
+ }
132
+ },
133
+ unwatched(e) {
134
+ "getter" in e ? e.depsTail !== void 0 && (e.flags = 17, w(e)) : "currentValue" in e || ("fn" in e ? S.call(e) : C.call(e));
135
+ }
136
+ });
137
+ function p(e) {
138
+ let t = o;
139
+ return o = e, t;
140
+ }
141
+ function m(e) {
142
+ return b.bind({
143
+ currentValue: e,
144
+ pendingValue: e,
145
+ subs: void 0,
146
+ subsTail: void 0,
147
+ flags: 1
148
+ });
149
+ }
150
+ function h(e) {
151
+ let n = {
152
+ fn: e,
153
+ cleanup: void 0,
154
+ subs: void 0,
155
+ subsTail: void 0,
156
+ deps: void 0,
157
+ depsTail: void 0,
158
+ flags: 6
159
+ }, i = p(n);
160
+ i !== void 0 && (c(n, i, 0), i.flags |= t);
161
+ try {
162
+ ++r, n.cleanup = n.fn();
163
+ } finally {
164
+ --r, o = i, n.flags &= -5;
165
+ }
166
+ return S.bind(n);
167
+ }
168
+ function g(e) {
169
+ if (e.flags & t) {
170
+ let t = e.depsTail;
171
+ for (; t !== void 0;) {
172
+ let n = t.prevDep, r = t.dep;
173
+ !("getter" in r) && !("currentValue" in r) && l(t, e), t = n;
174
+ }
175
+ }
176
+ e.depsTail = void 0, e.flags = 5;
177
+ let r = p(e);
178
+ try {
179
+ ++n;
180
+ let t = e.value;
181
+ return t !== (e.value = e.getter(t));
182
+ } finally {
183
+ o = r, e.flags &= -5, T(e);
184
+ }
185
+ }
186
+ function _(e) {
187
+ return e.flags = 1, e.currentValue !== (e.currentValue = e.pendingValue);
188
+ }
189
+ function v(e) {
190
+ let i = e.flags;
191
+ if (i & 16 || i & 32 && d(e.deps, e)) {
192
+ if (i & t) {
193
+ let t = e.depsTail;
194
+ for (; t !== void 0;) {
195
+ let n = t.prevDep, r = t.dep;
196
+ !("getter" in r) && !("currentValue" in r) && l(t, e), t = n;
197
+ }
198
+ }
199
+ if (e.cleanup && (x(e), !e.flags)) return;
200
+ e.depsTail = void 0, e.flags = 6;
201
+ let a = p(e);
202
+ try {
203
+ ++n, ++r, e.cleanup = e.fn();
204
+ } finally {
205
+ --r, o = a, e.flags &= -5, T(e);
206
+ }
207
+ } else e.deps !== void 0 && (e.flags = 2 | i & t);
208
+ }
209
+ function y() {
210
+ try {
211
+ for (; i < a;) {
212
+ let e = s[i];
213
+ s[i++] = void 0, v(e);
214
+ }
215
+ } finally {
216
+ for (; i < a;) {
217
+ let e = s[i];
218
+ s[i++] = void 0, e.flags |= 10;
219
+ }
220
+ i = 0, a = 0;
221
+ }
222
+ }
223
+ function b(...e) {
224
+ if (e.length) {
225
+ if (this.pendingValue !== (this.pendingValue = e[0])) {
226
+ this.flags = 17;
227
+ let e = this.subs;
228
+ e !== void 0 && (u(e, !!r), y());
229
+ }
230
+ } else {
231
+ if (this.flags & 16 && _(this)) {
232
+ let e = this.subs;
233
+ e !== void 0 && f(e);
234
+ }
235
+ let e = o;
236
+ return e !== void 0 && c(this, e, n), this.currentValue;
237
+ }
238
+ }
239
+ function x(e) {
240
+ let t = e.cleanup;
241
+ e.cleanup = void 0;
242
+ let n = o;
243
+ o = void 0;
244
+ try {
245
+ t();
246
+ } finally {
247
+ o = n;
248
+ }
249
+ }
250
+ function S() {
251
+ C.call(this), this.cleanup && x(this);
252
+ }
253
+ function C() {
254
+ this.flags = 0, w(this);
255
+ let e = this.subs;
256
+ e !== void 0 && l(e);
257
+ }
258
+ function w(e) {
259
+ let t = e.depsTail;
260
+ for (; t !== void 0;) {
261
+ let n = t.prevDep;
262
+ l(t, e), t = n;
263
+ }
264
+ }
265
+ function T(e) {
266
+ let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
267
+ for (; n !== void 0;) n = l(n, e);
268
+ }
269
+ //#endregion
270
+ export { m as n, h as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../form_item-Clu9QKRa.js";
1
+ import { t as e } from "../form_item-DtqChzc3.js";
2
2
  export { e as default };
@@ -1,4 +1,5 @@
1
1
  import Validator from "ph-utils/validator";
2
+ import type { SchemaType } from "ph-utils/validator";
2
3
  import type { FormSignal } from "./types";
3
4
  import BaseComponent from "../base";
4
5
  interface FormState {
@@ -22,12 +23,14 @@ export default class Form extends BaseComponent<FormState> {
22
23
  connectedCallback(): void;
23
24
  afterInit(): void;
24
25
  disconnectedCallback(): void;
25
- protected render_v2(): {
26
+ render_v2(): {
26
27
  style: string[];
27
28
  template: string;
28
29
  };
29
30
  render(): string;
30
31
  ruleChange: (e: CustomEvent) => void;
32
+ addSchemas(schemas: SchemaType[]): void;
33
+ addSchema(schema: SchemaType): void;
31
34
  private _provide;
32
35
  _formAction: (e: CustomEvent) => void;
33
36
  _valueChange: (e: CustomEvent) => void;
package/lib/form/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../form-CNWykMNM.js";
1
+ import { t as e } from "../form-uOybauzi.js";
2
2
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import e from "./base.js";
2
2
  import { kebabToCamel as t, parseAttrValue as n, unitNumberStr as r } from "./utils/index.js";
3
- import { n as i } from "./esm-sVEoAVPu.js";
3
+ import { n as i } from "./esm-Cir9D6cn.js";
4
4
  import { $one as a, formatClass as o, off as s, on as c } from "ph-utils/dom";
5
5
  import l from "ph-utils/validator";
6
6
  //#region src/components/form/index.less?inline
@@ -85,6 +85,12 @@ var u = ":host{display:block}.l-form{gap:var(--l-form-gap,20px);flex-flow:column
85
85
  ruleChange = (e) => {
86
86
  e.stopPropagation(), this.validator.addSchema(e.detail);
87
87
  };
88
+ addSchemas(e) {
89
+ this.validator.addSchemas(e);
90
+ }
91
+ addSchema(e) {
92
+ this.validator.addSchema(e);
93
+ }
88
94
  _provide(e) {
89
95
  let { context: t, callback: n } = e.detail;
90
96
  t === "form-context-request" && n(this.context, this.errors, this.resetCtx);
@@ -1,6 +1,6 @@
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 {
@@ -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";