litos-ui 0.15.6 → 0.15.8

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 (84) hide show
  1. package/lib/button/index.d.ts +4 -0
  2. package/lib/button/index.js +88 -61
  3. package/lib/check/check.js +6 -7
  4. package/lib/check/checkbox.js +1 -1
  5. package/lib/check/radio.js +10 -6
  6. package/lib/{check-BlDsQQo0.js → check-A86JxUfd.js} +1 -1
  7. package/lib/collapse/index.d.ts +19 -0
  8. package/lib/collapse/index.js +88 -0
  9. package/lib/collapse/item.d.ts +15 -0
  10. package/lib/collapse/item.js +115 -0
  11. package/lib/color_picker/index.js +1 -1
  12. package/lib/date_picker/index.js +1 -1
  13. package/lib/description_panel/index.d.ts +4 -4
  14. package/lib/description_panel/index.js +59 -11
  15. package/lib/dialog/dialog_container.js +1 -1
  16. package/lib/form/form_inner.d.ts +5 -1
  17. package/lib/form/form_inner.js +33 -27
  18. package/lib/form/form_item.js +9 -9
  19. package/lib/icon/d_arrow_left.d.ts +6 -0
  20. package/lib/icon/d_arrow_left.js +13 -0
  21. package/lib/icon/d_arrow_right.d.ts +6 -0
  22. package/lib/icon/d_arrow_right.js +13 -0
  23. package/lib/icon/more.d.ts +6 -0
  24. package/lib/icon/more.js +13 -0
  25. package/lib/icon/select.d.ts +6 -0
  26. package/lib/icon/select.js +13 -0
  27. package/lib/icon/zoom_in.d.ts +6 -0
  28. package/lib/icon/zoom_in.js +13 -0
  29. package/lib/icon/zoom_out.d.ts +6 -0
  30. package/lib/icon/zoom_out.js +13 -0
  31. package/lib/image/image_preview.d.ts +24 -0
  32. package/lib/image/image_preview.js +104 -0
  33. package/lib/image/index.d.ts +50 -0
  34. package/lib/image/index.js +176 -0
  35. package/lib/index-D4II9KsF.js +4 -0
  36. package/lib/index.d.ts +36 -4
  37. package/lib/index.js +157 -120
  38. package/lib/input/index.d.ts +5 -0
  39. package/lib/input/index.js +93 -71
  40. package/lib/litos-ui.css +1 -1
  41. package/lib/mask/index.d.ts +23 -0
  42. package/lib/mask/index.js +110 -0
  43. package/lib/md_input/index.js +11 -11
  44. package/lib/message/index.js +2 -2
  45. package/lib/modal/index.d.ts +1 -1
  46. package/lib/modal/index.js +7 -7
  47. package/lib/modal/modal_box.js +10 -10
  48. package/lib/page_header/index.d.ts +20 -0
  49. package/lib/page_header/index.js +109 -0
  50. package/lib/pagination/index.d.ts +27 -0
  51. package/lib/pagination/index.js +248 -0
  52. package/lib/qrcode/index.js +4 -4
  53. package/lib/select/index.d.ts +79 -0
  54. package/lib/select/index.js +406 -0
  55. package/lib/select_ori/index.js +1 -1
  56. package/lib/switch/index.js +4 -4
  57. package/lib/tabbar/index.d.ts +3 -1
  58. package/lib/tabbar/index.js +14 -8
  59. package/lib/tabbar/item.js +1 -1
  60. package/lib/table/index.d.ts +63 -0
  61. package/lib/table/index.js +260 -0
  62. package/lib/table/types.d.ts +36 -0
  63. package/lib/tabs/index.d.ts +7 -0
  64. package/lib/tabs/index.js +43 -0
  65. package/lib/tag/index.d.ts +16 -0
  66. package/lib/tag/index.js +80 -0
  67. package/lib/theme/index.js +6 -6
  68. package/lib/utils/index.d.ts +6 -28
  69. package/lib/utils/index.js +61 -86
  70. package/lib/utils/popover.d.ts +137 -0
  71. package/lib/utils/popover.js +354 -0
  72. package/lib/utils/transition.js +26 -50
  73. package/package.json +71 -71
  74. package/styles/popover.css +66 -0
  75. package/styles/reset.css +1 -1
  76. package/styles/select.css +37 -0
  77. package/styles/tabs.css +13 -0
  78. package/styles/vars.css +2 -1
  79. package/lib/index-dwS1N2uN.js +0 -4
  80. package/lib/popconfirm/index.d.ts +0 -7
  81. package/lib/popconfirm/index.js +0 -30
  82. package/lib/popover/index.d.ts +0 -34
  83. package/lib/popover/index.js +0 -150
  84. /package/lib/{menu/base.js → table/types.js} +0 -0
@@ -0,0 +1,176 @@
1
+ import o from "../base.js";
2
+ import { kebabToCamel as n, parseAttrValue as d } from "../utils/index.js";
3
+ import { $$ as l, formatClass as c, $one as h, on as s, off as r, addClass as g, removeClass as p, shouldEventNext as m } from "ph-utils/dom";
4
+ const f = ":host{vertical-align:middle;display:inline-flex;box-sizing:border-box;width:auto;height:auto}.l-image-inner{vertical-align:middle;width:100%;height:100%;object-fit:var(--l-image-fit, fill)}.l-image-inner--preview{cursor:pointer}.l-image-hide{display:none}.l-image-fallback{width:100%;height:100%;display:inline-flex;justify-content:center;align-items:center;background-color:#0000001a}";
5
+ class b extends o {
6
+ static baseName = "image";
7
+ alt;
8
+ _src = "";
9
+ /** eager - 立即加载图像, lazy - 懒加载 */
10
+ _loading = "eager";
11
+ fit;
12
+ width;
13
+ height;
14
+ fallback;
15
+ customFallback = !1;
16
+ /** 是否加载错误 */
17
+ isError = !1;
18
+ /** 是否禁用图片预览 */
19
+ previewDisabled = !1;
20
+ _previewEl;
21
+ _previewImageList;
22
+ _previewIndex = 0;
23
+ _placeholder;
24
+ _imageInner;
25
+ get src() {
26
+ return this._src;
27
+ }
28
+ set src(e) {
29
+ this._src = e, this._loadActualImage();
30
+ }
31
+ get loading() {
32
+ return this._loading;
33
+ }
34
+ set loading(e) {
35
+ this._loading = e;
36
+ }
37
+ get placeholder() {
38
+ return this._placeholder;
39
+ }
40
+ set placeholder(e) {
41
+ this._placeholder = e;
42
+ }
43
+ get previewImageList() {
44
+ return this._previewImageList;
45
+ }
46
+ set previewImageList(e) {
47
+ this.setPreviewImageList(e);
48
+ }
49
+ get previewIndex() {
50
+ return this._previewIndex;
51
+ }
52
+ set previewIndex(e) {
53
+ this.setPreviewIndex(e);
54
+ }
55
+ setPreviewImageList(e) {
56
+ this._previewImageList = e;
57
+ }
58
+ setPreviewIndex(e) {
59
+ this._previewIndex = e;
60
+ }
61
+ connectedCallback() {
62
+ this.loadStyleText(f), super.connectedCallback();
63
+ }
64
+ static get observedAttributes() {
65
+ return [
66
+ "src",
67
+ "loading",
68
+ "fit",
69
+ "width",
70
+ "height",
71
+ "placeholder",
72
+ "preview-disabled",
73
+ "preview-image-list",
74
+ "preview-index",
75
+ "fallback",
76
+ "custom-fallback"
77
+ ];
78
+ }
79
+ attributeChangedCallback(e, i, a) {
80
+ e = n(e);
81
+ const t = d(
82
+ a,
83
+ this[e],
84
+ e
85
+ );
86
+ switch (t !== this[e] && (e === "previewImageList" ? this.setPreviewImageList(
87
+ t ? t.split(",") : void 0
88
+ ) : this[e] = t), e) {
89
+ case "width":
90
+ case "height":
91
+ this.rendered && this._updateSize();
92
+ break;
93
+ }
94
+ }
95
+ render() {
96
+ const e = this.alt || this.getAttribute("alt"), i = this.placeholder || this.src;
97
+ return l("img", {
98
+ class: c([
99
+ "l-image-inner",
100
+ this.previewDisabled ? void 0 : "l-image-inner--preview"
101
+ ]),
102
+ alt: e,
103
+ loading: this.loading,
104
+ src: i,
105
+ part: "inner",
106
+ "l-action": "inner"
107
+ });
108
+ }
109
+ _updateSize() {
110
+ this.width ? this.style.setProperty("width", this.width) : this.style.removeProperty("width"), this.height ? this.style.setProperty("height", this.height) : this.style.removeProperty("height");
111
+ }
112
+ afterInit() {
113
+ this.fit && this.fit !== "fill" && this.style.setProperty("--l-image-fit", this.fit), this._updateSize(), this._imageInner = h(".l-image-inner", this.root), s(this._imageInner, "click", this._onTap), s(this._imageInner, "error", this._onError), s(this._imageInner, "load", this._onLoad), this._loadActualImage();
114
+ }
115
+ beforeDestroy() {
116
+ this._imageInner && (r(this._imageInner, "click", this._onTap), r(this._imageInner, "error", this._onError), r(this._imageInner, "load", this._onLoad));
117
+ }
118
+ setIsError(e = !1) {
119
+ if (this.isError !== e)
120
+ if (this.isError = e, e) {
121
+ if (!this.customFallback) {
122
+ this.fallback && this._imageInner && (this._imageInner.src = this.fallback);
123
+ return;
124
+ }
125
+ this._imageInner && g(this._imageInner, "l-image-hide");
126
+ let i = h(".l-image-fallback", this.root);
127
+ this.fallback || (i = l("div", {
128
+ class: "l-image-fallback",
129
+ part: "fallback",
130
+ innerHTML: "<slot name='fallback'></slot>"
131
+ }), this.root.appendChild(i));
132
+ } else {
133
+ this._imageInner && p(this._imageInner, "l-image-hide");
134
+ const i = h(".l-image-fallback", this.root);
135
+ i && i.remove();
136
+ }
137
+ }
138
+ openPreview() {
139
+ if (!this._previewEl) {
140
+ const e = l("l-image-preview");
141
+ e.setImages(this.previewImageList || [this.src]), e.setCurrentIndex(this.previewIndex || 0), e.setAttribute("open", "on"), this._previewEl = e, document.body.appendChild(e), s(this._previewEl, "closed", this._onPreviewClosed);
142
+ }
143
+ }
144
+ closePreview() {
145
+ this._previewEl && (r(this._previewEl, "closed", this._onPreviewClosed), this._previewEl.remove(), this._previewEl = void 0);
146
+ }
147
+ _onError = () => {
148
+ this.setIsError(!0);
149
+ };
150
+ _onLoad = () => {
151
+ this.setIsError(!1);
152
+ };
153
+ _onPreviewClosed = () => {
154
+ this.closePreview();
155
+ };
156
+ _onTap = (e) => {
157
+ const [i, a] = m(e, "l-action", this.root);
158
+ i && a === "inner" && !this.previewDisabled && !this.isError && this.openPreview();
159
+ };
160
+ _clearTmpImg(e) {
161
+ e && (e.onload = null, e.onerror = null, e = void 0);
162
+ }
163
+ _loadActualImage() {
164
+ if (this.placeholder && this.rendered) {
165
+ let e = new Image();
166
+ e.src = this.src, e.onload = () => {
167
+ this._imageInner && (this._imageInner.src = this.src), this._clearTmpImg(e);
168
+ }, e.onerror = () => {
169
+ this.setIsError(!0), this._clearTmpImg(e);
170
+ };
171
+ }
172
+ }
173
+ }
174
+ export {
175
+ b as default
176
+ };
@@ -0,0 +1,4 @@
1
+ const r = ":host{--l-input-border-color: var(--l-border-color, #dedede);display:inline-flex;width:var(--l-input-width, 170px);height:var(--l-form-control-height, 32px);align-items:center;padding:0 7px;border:1px solid var(--l-input-border-color, #dedede);transition:border-color .3s;border-radius:var(--l-border-radius, 3px);vertical-align:middle;box-sizing:border-box}:host(:focus){--l-input-border-color: var(--l-primary-color, #722ed1)}:host(.is-disabled){background-color:var(--l-disabled-color, #f5f7fa)}:host(.is-error){--l-input-border-color: #ed3f13}.l-input__prefix,.l-input__suffix{color:#a8abb2;font-size:14px;display:inline-flex;flex-shrink:0}.l-input__prefix{margin-right:5px}.l-input__suffix{margin-left:5px}.l-clearable{cursor:pointer}.l-clearable:hover{color:#999}.l-input__inner{outline:none;border:none;box-sizing:border-box;width:100%;max-width:100%;height:100%;flex-grow:1;text-align:inherit;font-size:inherit}.l-input__inner:disabled{background-color:transparent}";
2
+ export {
3
+ r as i
4
+ };
package/lib/index.d.ts CHANGED
@@ -2,11 +2,10 @@ export * from "./utils";
2
2
  export { set as addClickOutside, remove as removeClickOutside, } from "./utils/clickoutside";
3
3
  export { default as BaseComponent } from "./base";
4
4
  export { default as Message } from "./message";
5
- export { default as Popover } from "./popover";
6
- export { default as Popconfirm } from "./popconfirm";
7
5
  export { default as Dialog } from "./dialog";
8
6
  export { default as DialogContainer } from "./dialog/dialog_container";
9
7
  export { default as Loading } from "./loading";
8
+ export { default as Tabs } from "./tabs";
10
9
  export { default as Modal } from "./modal";
11
10
  export { default as BaseIcon } from "./icon/base";
12
11
  export { default as ArrowDownIcon } from "./icon/arrow_down";
@@ -30,6 +29,12 @@ export { default as InfoIcon } from "./icon/info";
30
29
  export { default as SuccessIcon } from "./icon/success";
31
30
  export { default as WarnIcon } from "./icon/warn";
32
31
  export { default as CloseFilledIcon } from "./icon/close_filled";
32
+ export { default as MoreIcon } from "./icon/more";
33
+ export { default as DArrowLeftIcon } from "./icon/d_arrow_left";
34
+ export { default as DArrowRightIcon } from "./icon/d_arrow_right";
35
+ export { default as ZoomInIcon } from "./icon/zoom_in";
36
+ export { default as ZoomOutIcon } from "./icon/zoom_out";
37
+ export { default as SelectIcon } from "./icon/select";
33
38
  export { default as Form } from "./form";
34
39
  export { default as FormItem } from "./form/form_item";
35
40
  export { default as RadioGroup } from "./check/radio_group";
@@ -41,6 +46,7 @@ export { default as Input } from "./input";
41
46
  export { default as SelectOri } from "./select_ori";
42
47
  export { default as Switch } from "./switch";
43
48
  export { default as MdInput } from "./md_input";
49
+ export { default as Select } from "./select";
44
50
  export { default as List } from "./list";
45
51
  export { default as Polygon } from "./polygon";
46
52
  export { default as ColorPicker } from "./color_picker";
@@ -56,15 +62,25 @@ export { default as Carousel } from "./carousel";
56
62
  export { default as CarouselItem } from "./carousel/item";
57
63
  export { default as Qrcode } from "./qrcode";
58
64
  export { default as DescriptionPanel } from "./description_panel";
65
+ export { default as Pagination } from "./pagination";
66
+ export { default as Mask } from "./mask";
67
+ export { default as PageHeader } from "./page_header";
68
+ export { default as Tag } from "./tag";
69
+ export { default as Collapse } from "./collapse";
70
+ export { default as CollapseItem } from "./collapse/item";
71
+ export { default as Image } from "./image";
72
+ export { default as ImagePreview } from "./image/image_preview";
73
+ export * from "./utils/popover";
74
+ export { default as Table } from "./table";
75
+ export type { Column } from "./table/types";
59
76
 
60
77
  declare global {
61
78
  interface HTMLElementTagNameMap {
62
79
  "l-base-component": import("./base").default
63
- "l-popover": import("./popover").default
64
- "l-popconfirm": import("./popconfirm").default
65
80
  "l-dialog": import("./dialog").default
66
81
  "l-dialog-container": import("./dialog/dialog_container").default
67
82
  "l-loading": import("./loading").default
83
+ "l-tabs": import("./tabs").default
68
84
  "l-modal": import("./modal").default
69
85
  "l-base-icon": import("./icon/base").default
70
86
  "l-arrow-down-icon": import("./icon/arrow_down").default
@@ -88,6 +104,12 @@ declare global {
88
104
  "l-success-icon": import("./icon/success").default
89
105
  "l-warn-icon": import("./icon/warn").default
90
106
  "l-close-filled-icon": import("./icon/close_filled").default
107
+ "l-more-icon": import("./icon/more").default
108
+ "l-d-arrow-left-icon": import("./icon/d_arrow_left").default
109
+ "l-d-arrow-right-icon": import("./icon/d_arrow_right").default
110
+ "l-zoom-in-icon": import("./icon/zoom_in").default
111
+ "l-zoom-out-icon": import("./icon/zoom_out").default
112
+ "l-select-icon": import("./icon/select").default
91
113
  "l-form": import("./form").default
92
114
  "l-form-item": import("./form/form_item").default
93
115
  "l-radio-group": import("./check/radio_group").default
@@ -99,6 +121,7 @@ declare global {
99
121
  "l-select-ori": import("./select_ori").default
100
122
  "l-switch": import("./switch").default
101
123
  "l-md-input": import("./md_input").default
124
+ "l-select": import("./select").default
102
125
  "l-list": import("./list").default
103
126
  "l-polygon": import("./polygon").default
104
127
  "l-color-picker": import("./color_picker").default
@@ -114,5 +137,14 @@ declare global {
114
137
  "l-carousel-item": import("./carousel/item").default
115
138
  "l-qrcode": import("./qrcode").default
116
139
  "l-description-panel": import("./description_panel").default
140
+ "l-pagination": import("./pagination").default
141
+ "l-mask": import("./mask").default
142
+ "l-page-header": import("./page_header").default
143
+ "l-tag": import("./tag").default
144
+ "l-collapse": import("./collapse").default
145
+ "l-collapse-item": import("./collapse/item").default
146
+ "l-image": import("./image").default
147
+ "l-image-preview": import("./image/image_preview").default
148
+ "l-table": import("./table").default
117
149
  }
118
150
  }
package/lib/index.js CHANGED
@@ -1,129 +1,166 @@
1
- import { createTransition as t, getPopoverOffsetX as r, getPopoverOffsetY as a, impactDetect as f, initAttr as s, parseAttrValue as u, regist as l, setAttrs as m, tagAttr as p, tagAttrs as d, useId as x } from "./utils/index.js";
1
+ import { getPopoverOffsetX as t, getPopoverOffsetY as r, impactDetect as a, initAttr as f, kebabToCamel as s, parseAttrValue as l, regist as m, setAttrs as p, tagAttr as u, tagAttrs as d, useId as x } from "./utils/index.js";
2
2
  import { set as c, remove as I } from "./utils/clickoutside.js";
3
- import { default as C } from "./base.js";
4
- import { default as h } from "./message/index.js";
5
- import { default as P } from "./popover/index.js";
6
- import { default as D } from "./popconfirm/index.js";
7
- import { default as R } from "./dialog/index.js";
8
- import { default as T } from "./dialog/dialog_container.js";
9
- import { default as w } from "./loading/index.js";
10
- import { default as L } from "./modal/index.js";
11
- import { default as B } from "./icon/base.js";
12
- import { default as G } from "./icon/arrow_down.js";
13
- import { default as Q } from "./icon/arrow_left.js";
14
- import { default as V } from "./icon/arrow_right.js";
15
- import { default as X } from "./icon/arrow_up.js";
16
- import { default as j } from "./icon/caret_top.js";
17
- import { default as z } from "./icon/caret_bottom.js";
18
- import { default as H } from "./icon/font_icon.js";
19
- import { default as K } from "./icon/loading.js";
20
- import { default as Z } from "./icon/search.js";
21
- import { default as $ } from "./icon/sun.js";
22
- import { default as eo } from "./icon/moon.js";
23
- import { default as ro } from "./icon/reduction.js";
24
- import { default as fo } from "./icon/refresh_left.js";
25
- import { default as uo } from "./icon/refresh_right.js";
26
- import { default as mo } from "./icon/sort.js";
27
- import { default as xo } from "./icon/theme_default.js";
28
- import { default as co } from "./icon/close.js";
29
- import { default as io } from "./icon/info.js";
30
- import { default as go } from "./icon/success.js";
31
- import { default as Ao } from "./icon/warn.js";
3
+ import { default as g } from "./base.js";
4
+ import { default as P } from "./message/index.js";
5
+ import { default as h } from "./dialog/index.js";
6
+ import { default as w } from "./dialog/dialog_container.js";
7
+ import { default as v } from "./loading/index.js";
8
+ import { default as M } from "./tabs/index.js";
9
+ import { default as k } from "./modal/index.js";
10
+ import { default as R } from "./icon/base.js";
11
+ import { default as B } from "./icon/arrow_down.js";
12
+ import { default as G } from "./icon/arrow_left.js";
13
+ import { default as Z } from "./icon/arrow_right.js";
14
+ import { default as H } from "./icon/arrow_up.js";
15
+ import { default as V } from "./icon/caret_top.js";
16
+ import { default as X } from "./icon/caret_bottom.js";
17
+ import { default as j } from "./icon/font_icon.js";
18
+ import { default as z } from "./icon/loading.js";
19
+ import { default as J } from "./icon/search.js";
20
+ import { default as N } from "./icon/sun.js";
21
+ import { default as $ } from "./icon/moon.js";
22
+ import { default as eo } from "./icon/reduction.js";
23
+ import { default as ro } from "./icon/refresh_left.js";
24
+ import { default as fo } from "./icon/refresh_right.js";
25
+ import { default as lo } from "./icon/sort.js";
26
+ import { default as po } from "./icon/theme_default.js";
27
+ import { default as xo } from "./icon/close.js";
28
+ import { default as co } from "./icon/info.js";
29
+ import { default as io } from "./icon/success.js";
30
+ import { default as Co } from "./icon/warn.js";
32
31
  import { default as bo } from "./icon/close_filled.js";
33
- import { default as Mo } from "./form/index.js";
34
- import { default as So } from "./form/form_item.js";
35
- import { default as ko } from "./check/radio_group.js";
36
- import { default as vo } from "./check/radio.js";
37
- import { default as Oo } from "./check/checkbox.js";
38
- import { default as Fo } from "./check/checkbox_group.js";
39
- import { default as yo } from "./button/index.js";
40
- import { default as Uo } from "./input/index.js";
41
- import { default as Wo } from "./select_ori/index.js";
42
- import { default as Yo } from "./switch/index.js";
43
- import { default as qo } from "./md_input/index.js";
44
- import { default as Eo } from "./list/index.js";
45
- import { default as Jo } from "./polygon/index.js";
46
- import { default as No } from "./color_picker/index.js";
47
- import { default as _o } from "./tabbar/index.js";
48
- import { default as oe } from "./tabbar/item.js";
49
- import { default as te } from "./theme/index.js";
50
- import { default as ae } from "./theme/theme_color.js";
51
- import { default as se } from "./date_picker/index.js";
52
- import { default as le } from "./menu/index.js";
53
- import { default as pe } from "./menu/menu_item.js";
54
- import { default as xe } from "./menu/sub_menu.js";
55
- import { default as ce } from "./carousel/index.js";
56
- import { default as ie } from "./carousel/item.js";
57
- import { default as ge } from "./qrcode/index.js";
58
- import { default as Ae } from "./description_panel/index.js";
32
+ import { default as Ao } from "./icon/more.js";
33
+ import { default as To } from "./icon/d_arrow_left.js";
34
+ import { default as Do } from "./icon/d_arrow_right.js";
35
+ import { default as So } from "./icon/zoom_in.js";
36
+ import { default as Oo } from "./icon/zoom_out.js";
37
+ import { default as Lo } from "./icon/select.js";
38
+ import { default as Fo } from "./form/index.js";
39
+ import { default as Uo } from "./form/form_item.js";
40
+ import { default as yo } from "./check/radio_group.js";
41
+ import { default as Qo } from "./check/radio.js";
42
+ import { default as Wo } from "./check/checkbox.js";
43
+ import { default as Yo } from "./check/checkbox_group.js";
44
+ import { default as qo } from "./button/index.js";
45
+ import { default as Eo } from "./input/index.js";
46
+ import { default as Ko } from "./select_ori/index.js";
47
+ import { default as _o } from "./switch/index.js";
48
+ import { default as oe } from "./md_input/index.js";
49
+ import { default as te } from "./select/index.js";
50
+ import { default as ae } from "./list/index.js";
51
+ import { default as se } from "./polygon/index.js";
52
+ import { default as me } from "./color_picker/index.js";
53
+ import { default as ue } from "./tabbar/index.js";
54
+ import { default as xe } from "./tabbar/item.js";
55
+ import { default as ce } from "./theme/index.js";
56
+ import { default as ie } from "./theme/theme_color.js";
57
+ import { default as Ce } from "./date_picker/index.js";
58
+ import { default as be } from "./menu/index.js";
59
+ import { default as Ae } from "./menu/menu_item.js";
60
+ import { default as Te } from "./menu/sub_menu.js";
61
+ import { default as De } from "./carousel/index.js";
62
+ import { default as Se } from "./carousel/item.js";
63
+ import { default as Oe } from "./qrcode/index.js";
64
+ import { default as Le } from "./description_panel/index.js";
65
+ import { default as Fe } from "./pagination/index.js";
66
+ import { default as Ue } from "./mask/index.js";
67
+ import { default as ye } from "./page_header/index.js";
68
+ import { default as Qe } from "./tag/index.js";
69
+ import { default as We } from "./collapse/index.js";
70
+ import { default as Ye } from "./collapse/item.js";
71
+ import { default as qe } from "./image/index.js";
72
+ import { default as Ee } from "./image/image_preview.js";
73
+ import { Popover as Ke, autoUpdate as Ne, createPopoverObserver as _e, getOverflowAncestors as $e, popconfirmProps as ot, updatePosition as et } from "./utils/popover.js";
74
+ import { default as rt } from "./table/index.js";
59
75
  export {
60
- G as ArrowDownIcon,
61
- Q as ArrowLeftIcon,
62
- V as ArrowRightIcon,
63
- X as ArrowUpIcon,
64
- C as BaseComponent,
65
- B as BaseIcon,
66
- yo as Button,
67
- z as CaretBottomIcon,
68
- j as CaretTopIcon,
69
- ce as Carousel,
70
- ie as CarouselItem,
71
- Oo as Checkbox,
72
- Fo as CheckboxGroup,
76
+ B as ArrowDownIcon,
77
+ G as ArrowLeftIcon,
78
+ Z as ArrowRightIcon,
79
+ H as ArrowUpIcon,
80
+ g as BaseComponent,
81
+ R as BaseIcon,
82
+ qo as Button,
83
+ X as CaretBottomIcon,
84
+ V as CaretTopIcon,
85
+ De as Carousel,
86
+ Se as CarouselItem,
87
+ Wo as Checkbox,
88
+ Yo as CheckboxGroup,
73
89
  bo as CloseFilledIcon,
74
- co as CloseIcon,
75
- No as ColorPicker,
76
- se as DatePicker,
77
- Ae as DescriptionPanel,
78
- R as Dialog,
79
- T as DialogContainer,
80
- H as FontIcon,
81
- Mo as Form,
82
- So as FormItem,
83
- io as InfoIcon,
84
- Uo as Input,
85
- Eo as List,
86
- w as Loading,
87
- K as LoadingIcon,
88
- qo as MdInput,
89
- le as Menu,
90
- pe as MenuItem,
91
- h as Message,
92
- L as Modal,
93
- eo as MoonIcon,
94
- Jo as Polygon,
95
- D as Popconfirm,
96
- P as Popover,
97
- ge as Qrcode,
98
- vo as Radio,
99
- ko as RadioGroup,
100
- ro as ReductionIcon,
101
- fo as RefreshLeftIcon,
102
- uo as RefreshRightIcon,
103
- Z as SearchIcon,
104
- Wo as SelectOri,
105
- mo as SortIcon,
106
- xe as SubMenu,
107
- go as SuccessIcon,
108
- $ as SunIcon,
109
- Yo as Switch,
110
- _o as Tabbar,
111
- oe as TabbarItem,
112
- te as Theme,
113
- ae as ThemeColor,
114
- xo as ThemeDefaultIcon,
115
- Ao as WarnIcon,
90
+ xo as CloseIcon,
91
+ We as Collapse,
92
+ Ye as CollapseItem,
93
+ me as ColorPicker,
94
+ To as DArrowLeftIcon,
95
+ Do as DArrowRightIcon,
96
+ Ce as DatePicker,
97
+ Le as DescriptionPanel,
98
+ h as Dialog,
99
+ w as DialogContainer,
100
+ j as FontIcon,
101
+ Fo as Form,
102
+ Uo as FormItem,
103
+ qe as Image,
104
+ Ee as ImagePreview,
105
+ co as InfoIcon,
106
+ Eo as Input,
107
+ ae as List,
108
+ v as Loading,
109
+ z as LoadingIcon,
110
+ Ue as Mask,
111
+ oe as MdInput,
112
+ be as Menu,
113
+ Ae as MenuItem,
114
+ P as Message,
115
+ k as Modal,
116
+ $ as MoonIcon,
117
+ Ao as MoreIcon,
118
+ ye as PageHeader,
119
+ Fe as Pagination,
120
+ se as Polygon,
121
+ Ke as Popover,
122
+ Oe as Qrcode,
123
+ Qo as Radio,
124
+ yo as RadioGroup,
125
+ eo as ReductionIcon,
126
+ ro as RefreshLeftIcon,
127
+ fo as RefreshRightIcon,
128
+ J as SearchIcon,
129
+ te as Select,
130
+ Lo as SelectIcon,
131
+ Ko as SelectOri,
132
+ lo as SortIcon,
133
+ Te as SubMenu,
134
+ io as SuccessIcon,
135
+ N as SunIcon,
136
+ _o as Switch,
137
+ ue as Tabbar,
138
+ xe as TabbarItem,
139
+ rt as Table,
140
+ M as Tabs,
141
+ Qe as Tag,
142
+ ce as Theme,
143
+ ie as ThemeColor,
144
+ po as ThemeDefaultIcon,
145
+ Co as WarnIcon,
146
+ So as ZoomInIcon,
147
+ Oo as ZoomOutIcon,
116
148
  c as addClickOutside,
117
- t as createTransition,
118
- r as getPopoverOffsetX,
119
- a as getPopoverOffsetY,
120
- f as impactDetect,
121
- s as initAttr,
122
- u as parseAttrValue,
123
- l as regist,
149
+ Ne as autoUpdate,
150
+ _e as createPopoverObserver,
151
+ $e as getOverflowAncestors,
152
+ t as getPopoverOffsetX,
153
+ r as getPopoverOffsetY,
154
+ a as impactDetect,
155
+ f as initAttr,
156
+ s as kebabToCamel,
157
+ l as parseAttrValue,
158
+ ot as popconfirmProps,
159
+ m as regist,
124
160
  I as removeClickOutside,
125
- m as setAttrs,
126
- p as tagAttr,
161
+ p as setAttrs,
162
+ u as tagAttr,
127
163
  d as tagAttrs,
164
+ et as updatePosition,
128
165
  x as useId
129
166
  };
@@ -1,4 +1,5 @@
1
1
  import FormInner from "../form/form_inner";
2
+ type InputMode = "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | "none";
2
3
  /**
3
4
  * 输入组件,提供基本的输入功能,并支持自定义输入解析器和表单联动。
4
5
  *
@@ -28,6 +29,9 @@ export default class Input extends FormInner {
28
29
  /** 宽度铺满 */
29
30
  block: boolean;
30
31
  error: boolean;
32
+ maxlength?: string;
33
+ minlength?: string;
34
+ inputmode: InputMode;
31
35
  $inner?: HTMLInputElement;
32
36
  set value(value: any);
33
37
  get value(): any;
@@ -51,3 +55,4 @@ export default class Input extends FormInner {
51
55
  private _updateError;
52
56
  private _validateChange;
53
57
  }
58
+ export {};