litos-ui 0.17.5 → 0.18.1

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 (163) hide show
  1. package/lib/animation-CTt9qgA7.js +4 -0
  2. package/lib/base-Dm0WS1pK.js +62 -0
  3. package/lib/base.js +111 -147
  4. package/lib/button/index.d.ts +8 -3
  5. package/lib/button/index.js +2 -137
  6. package/lib/button-CC5PmAb1.js +146 -0
  7. package/lib/calendar/index.d.ts +10 -5
  8. package/lib/calendar/index.js +2 -123
  9. package/lib/calendar-GpYHNmXG.js +149 -0
  10. package/lib/carousel/index.js +2 -280
  11. package/lib/carousel/item.js +2 -15
  12. package/lib/carousel-dT3FJPQo.js +272 -0
  13. package/lib/check/checkbox.js +2 -18
  14. package/lib/check/checkbox_group.js +6 -6
  15. package/lib/check/radio.js +2 -15
  16. package/lib/check/radio_group.js +9 -9
  17. package/lib/check-B0XraJvb.js +73 -0
  18. package/lib/check-CvGaONEx.js +117 -0
  19. package/lib/checkbox-DbWsmAaL.js +16 -0
  20. package/lib/collapse/index.d.ts +18 -11
  21. package/lib/collapse/index.js +2 -88
  22. package/lib/collapse/item.d.ts +28 -9
  23. package/lib/collapse/item.js +2 -115
  24. package/lib/collapse/types.d.ts +7 -0
  25. package/lib/collapse-C3IRHLeg.js +104 -0
  26. package/lib/color_picker/index.js +2 -42
  27. package/lib/color_picker-D0brKFm-.js +41 -0
  28. package/lib/date_picker/index.d.ts +23 -0
  29. package/lib/date_picker/index.js +3 -0
  30. package/lib/date_picker-DQGoiN8v.js +103 -0
  31. package/lib/date_picker_ori/index.js +2 -129
  32. package/lib/date_picker_ori-aRuSSi9D.js +122 -0
  33. package/lib/description_panel/index.js +2 -66
  34. package/lib/description_panel-BY2yljeC.js +57 -0
  35. package/lib/dialog/dialog_container.js +2 -131
  36. package/lib/dialog/index.js +67 -85
  37. package/lib/dialog_container-DcN87wj0.js +126 -0
  38. package/lib/esm-sVEoAVPu.js +244 -0
  39. package/lib/form/form_item.d.ts +1 -0
  40. package/lib/form/form_item.js +2 -136
  41. package/lib/form/index.js +2 -147
  42. package/lib/form-DdU0yK0k.js +154 -0
  43. package/lib/form_inner-DR9tyB_r.js +117 -0
  44. package/lib/form_item-Bv-YafZK.js +137 -0
  45. package/lib/icon/arrow_down.js +12 -12
  46. package/lib/icon/arrow_left.js +9 -9
  47. package/lib/icon/arrow_right.js +9 -9
  48. package/lib/icon/arrow_up.js +12 -12
  49. package/lib/icon/base.d.ts +16 -2
  50. package/lib/icon/base.js +2 -38
  51. package/lib/icon/calendar.d.ts +5 -0
  52. package/lib/icon/calendar.js +10 -0
  53. package/lib/icon/caret_bottom.js +9 -9
  54. package/lib/icon/caret_top.js +9 -9
  55. package/lib/icon/close.js +9 -9
  56. package/lib/icon/close_filled.js +12 -12
  57. package/lib/icon/d_arrow_left.js +12 -12
  58. package/lib/icon/d_arrow_right.js +12 -12
  59. package/lib/icon/font_icon.d.ts +2 -3
  60. package/lib/icon/font_icon.js +35 -39
  61. package/lib/icon/info.js +12 -12
  62. package/lib/icon/loading.js +9 -9
  63. package/lib/icon/moon.js +12 -12
  64. package/lib/icon/more.js +12 -12
  65. package/lib/icon/reduction.js +12 -12
  66. package/lib/icon/refresh.d.ts +5 -0
  67. package/lib/icon/refresh.js +10 -0
  68. package/lib/icon/refresh_left.js +12 -12
  69. package/lib/icon/refresh_right.js +9 -9
  70. package/lib/icon/search.js +9 -9
  71. package/lib/icon/select.js +12 -12
  72. package/lib/icon/sort.js +9 -9
  73. package/lib/icon/success.js +12 -12
  74. package/lib/icon/sun.js +12 -12
  75. package/lib/icon/theme_default.js +12 -12
  76. package/lib/icon/warn.js +12 -12
  77. package/lib/icon/zoom_in.js +12 -12
  78. package/lib/icon/zoom_out.js +12 -12
  79. package/lib/image/image_preview.js +2 -104
  80. package/lib/image/index.js +2 -176
  81. package/lib/image-COPKk8Jm.js +162 -0
  82. package/lib/image_preview-CYEup07F.js +92 -0
  83. package/lib/index.d.ts +5 -81
  84. package/lib/index.js +78 -169
  85. package/lib/input/index.d.ts +6 -2
  86. package/lib/input/index.js +188 -203
  87. package/lib/input-DjKxcxry.js +4 -0
  88. package/lib/input_inner-BKJg9n9A.js +4 -0
  89. package/lib/item-B7Elh5xE.js +14 -0
  90. package/lib/item-CvoJt3wp.js +60 -0
  91. package/lib/item-DRsOV_Tc.js +119 -0
  92. package/lib/list/index.js +2 -58
  93. package/lib/list-CU7vHS6s.js +51 -0
  94. package/lib/loading/index.d.ts +3 -2
  95. package/lib/loading/index.js +109 -127
  96. package/lib/mask/index.js +2 -105
  97. package/lib/mask-CEznzwji.js +112 -0
  98. package/lib/md_input/index.js +2 -60
  99. package/lib/md_input-DSQx5TMW.js +58 -0
  100. package/lib/menu/index.d.ts +30 -13
  101. package/lib/menu/index.js +2 -105
  102. package/lib/menu/types.d.ts +6 -0
  103. package/lib/menu/types.js +0 -0
  104. package/lib/menu-CzV6lOlw.js +224 -0
  105. package/lib/message/index.js +67 -60
  106. package/lib/modal/index.js +2 -196
  107. package/lib/modal/modal_box.js +87 -86
  108. package/lib/modal-DWyWrN-D.js +192 -0
  109. package/lib/page_header/index.js +2 -109
  110. package/lib/page_header-BJkEstRw.js +101 -0
  111. package/lib/pagination/index.js +2 -248
  112. package/lib/pagination-5t7AOeFV.js +210 -0
  113. package/lib/polygon/index.js +2 -27
  114. package/lib/polygon-C4Ow2lxi.js +20 -0
  115. package/lib/qrcode/index.d.ts +13 -4
  116. package/lib/qrcode/index.js +2 -57
  117. package/lib/qrcode-BKG2MibP.js +64 -0
  118. package/lib/radio-2mNSYujz.js +13 -0
  119. package/lib/select/index.js +3 -401
  120. package/lib/select-CAgggYh7.js +326 -0
  121. package/lib/select_ori/index.js +47 -50
  122. package/lib/space/index.js +2 -35
  123. package/lib/space-Bv-p0DL8.js +38 -0
  124. package/lib/switch/index.js +2 -50
  125. package/lib/switch-BaVBi5Ip.js +48 -0
  126. package/lib/tabbar/index.js +2 -109
  127. package/lib/tabbar/item.js +2 -58
  128. package/lib/tabbar-CI1xSj1G.js +96 -0
  129. package/lib/table/index.js +2 -269
  130. package/lib/table-DfL2hFqA.js +234 -0
  131. package/lib/tabs/index.js +38 -42
  132. package/lib/tag/index.js +2 -72
  133. package/lib/tag-72DwCkvq.js +76 -0
  134. package/lib/theme/index.js +2 -89
  135. package/lib/theme/theme_color.js +22 -26
  136. package/lib/theme-BRTI2-Yk.js +83 -0
  137. package/lib/utils/clickoutside.js +18 -18
  138. package/lib/utils/context_provide.js +21 -21
  139. package/lib/utils/event.js +13 -18
  140. package/lib/utils/index.js +55 -58
  141. package/lib/utils/popover.d.ts +4 -1
  142. package/lib/utils/popover.js +276 -352
  143. package/lib/utils/transition.js +33 -31
  144. package/package.json +14 -14
  145. package/styles/container.css +4 -0
  146. package/styles/datepicker.css +55 -0
  147. package/styles/popover.css +14 -1
  148. package/lib/animation-DttknHkX.js +0 -4
  149. package/lib/calendar/langs.js +0 -8
  150. package/lib/carousel/timer.js +0 -19
  151. package/lib/check/check.js +0 -118
  152. package/lib/check/index.js +0 -68
  153. package/lib/check-CksURvTv.js +0 -4
  154. package/lib/form/form_inner.js +0 -125
  155. package/lib/form/types.js +0 -1
  156. package/lib/index-CrMiSe0x.js +0 -249
  157. package/lib/index-DY6m9Wbe.js +0 -4
  158. package/lib/litos-ui.css +0 -1
  159. package/lib/menu/menu_item.d.ts +0 -6
  160. package/lib/menu/menu_item.js +0 -21
  161. package/lib/menu/sub_menu.d.ts +0 -15
  162. package/lib/menu/sub_menu.js +0 -83
  163. package/lib/table/types.js +0 -1
@@ -1,249 +0,0 @@
1
- function P({ update: e, notify: s, unwatched: d }) {
2
- return {
3
- link: h,
4
- unlink: L,
5
- propagate: O,
6
- checkDirty: m,
7
- shallowPropagate: S
8
- };
9
- function h(n, i, u) {
10
- const f = i.depsTail;
11
- if (f !== void 0 && f.dep === n)
12
- return;
13
- const t = f !== void 0 ? f.nextDep : i.deps;
14
- if (t !== void 0 && t.dep === n) {
15
- t.version = u, i.depsTail = t;
16
- return;
17
- }
18
- const l = n.subsTail;
19
- if (l !== void 0 && l.version === u && l.sub === i)
20
- return;
21
- const a = i.depsTail = n.subsTail = {
22
- version: u,
23
- dep: n,
24
- sub: i,
25
- prevDep: f,
26
- nextDep: t,
27
- prevSub: l,
28
- nextSub: void 0
29
- };
30
- t !== void 0 && (t.prevDep = a), f !== void 0 ? f.nextDep = a : i.deps = a, l !== void 0 ? l.nextSub = a : n.subs = a;
31
- }
32
- function L(n, i = n.sub) {
33
- const u = n.dep, f = n.prevDep, t = n.nextDep, l = n.nextSub, a = n.prevSub;
34
- return t !== void 0 ? t.prevDep = f : i.depsTail = f, f !== void 0 ? f.nextDep = t : i.deps = t, l !== void 0 ? l.prevSub = a : u.subsTail = a, a !== void 0 ? a.nextSub = l : (u.subs = l) === void 0 && d(u), t;
35
- }
36
- function O(n) {
37
- let i = n.nextSub, u;
38
- e: do {
39
- const f = n.sub;
40
- let t = f.flags;
41
- if (t & 60 ? t & 12 ? t & 4 ? !(t & 48) && q(n, f) ? (f.flags = t | 40, t &= 1) : t = 0 : f.flags = t & -9 | 32 : t = 0 : f.flags = t | 32, t & 2 && s(f), t & 1) {
42
- const l = f.subs;
43
- if (l !== void 0) {
44
- const a = (n = l).nextSub;
45
- a !== void 0 && (u = { value: i, prev: u }, i = a);
46
- continue;
47
- }
48
- }
49
- if ((n = i) !== void 0) {
50
- i = n.nextSub;
51
- continue;
52
- }
53
- for (; u !== void 0; )
54
- if (n = u.value, u = u.prev, n !== void 0) {
55
- i = n.nextSub;
56
- continue e;
57
- }
58
- break;
59
- } while (!0);
60
- }
61
- function m(n, i) {
62
- let u, f = 0, t = !1;
63
- e: do {
64
- const l = n.dep, a = l.flags;
65
- if (i.flags & 16)
66
- t = !0;
67
- else if ((a & 17) === 17) {
68
- if (e(l)) {
69
- const r = l.subs;
70
- r.nextSub !== void 0 && S(r), t = !0;
71
- }
72
- } else if ((a & 33) === 33) {
73
- (n.nextSub !== void 0 || n.prevSub !== void 0) && (u = { value: n, prev: u }), n = l.deps, i = l, ++f;
74
- continue;
75
- }
76
- if (!t) {
77
- const r = n.nextDep;
78
- if (r !== void 0) {
79
- n = r;
80
- continue;
81
- }
82
- }
83
- for (; f--; ) {
84
- const r = i.subs, D = r.nextSub !== void 0;
85
- if (D ? (n = u.value, u = u.prev) : n = r, t) {
86
- if (e(i)) {
87
- D && S(r), i = n.sub;
88
- continue;
89
- }
90
- t = !1;
91
- } else
92
- i.flags &= -33;
93
- i = n.sub;
94
- const T = n.nextDep;
95
- if (T !== void 0) {
96
- n = T;
97
- continue e;
98
- }
99
- }
100
- return t;
101
- } while (!0);
102
- }
103
- function S(n) {
104
- do {
105
- const i = n.sub, u = i.flags;
106
- (u & 48) === 32 && (i.flags = u | 16, (u & 6) === 2 && s(i));
107
- } while ((n = n.nextSub) !== void 0);
108
- }
109
- function q(n, i) {
110
- let u = i.depsTail;
111
- for (; u !== void 0; ) {
112
- if (u === n)
113
- return !0;
114
- u = u.prevDep;
115
- }
116
- return !1;
117
- }
118
- }
119
- let x = 0, c = 0, b = 0, o;
120
- const p = [], { link: w, unlink: y, propagate: A, checkDirty: C, shallowPropagate: M } = P({
121
- update(e) {
122
- return e.depsTail !== void 0 ? R(e) : V(e);
123
- },
124
- notify(e) {
125
- let s = b, d = s;
126
- do
127
- if (p[s++] = e, e.flags &= -3, e = e.subs?.sub, e === void 0 || !(e.flags & 2))
128
- break;
129
- while (!0);
130
- for (b = s; d < --s; ) {
131
- const h = p[d];
132
- p[d++] = p[s], p[s] = h;
133
- }
134
- },
135
- unwatched(e) {
136
- e.flags & 1 ? e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, g(e)) : I.call(e);
137
- }
138
- });
139
- function v(e) {
140
- const s = o;
141
- return o = e, s;
142
- }
143
- function F(e) {
144
- return B.bind({
145
- currentValue: e,
146
- pendingValue: e,
147
- subs: void 0,
148
- subsTail: void 0,
149
- flags: 1
150
- });
151
- }
152
- function G(e) {
153
- const s = {
154
- fn: e,
155
- subs: void 0,
156
- subsTail: void 0,
157
- deps: void 0,
158
- depsTail: void 0,
159
- flags: 6
160
- }, d = v(s);
161
- d !== void 0 && w(s, d, 0);
162
- try {
163
- s.fn();
164
- } finally {
165
- o = d, s.flags &= -5;
166
- }
167
- return E.bind(s);
168
- }
169
- function R(e) {
170
- ++x, e.depsTail = void 0, e.flags = 5;
171
- const s = v(e);
172
- try {
173
- const d = e.value;
174
- return d !== (e.value = e.getter(d));
175
- } finally {
176
- o = s, e.flags &= -5, g(e);
177
- }
178
- }
179
- function V(e) {
180
- return e.flags = 1, e.currentValue !== (e.currentValue = e.pendingValue);
181
- }
182
- function j(e) {
183
- const s = e.flags;
184
- if (s & 16 || s & 32 && C(e.deps, e)) {
185
- ++x, e.depsTail = void 0, e.flags = 6;
186
- const d = v(e);
187
- try {
188
- e.fn();
189
- } finally {
190
- o = d, e.flags &= -5, g(e);
191
- }
192
- } else
193
- e.flags = 2;
194
- }
195
- function z() {
196
- try {
197
- for (; c < b; ) {
198
- const e = p[c];
199
- p[c++] = void 0, j(e);
200
- }
201
- } finally {
202
- for (; c < b; ) {
203
- const e = p[c];
204
- p[c++] = void 0, e.flags |= 10;
205
- }
206
- c = 0, b = 0;
207
- }
208
- }
209
- function B(...e) {
210
- if (e.length) {
211
- if (this.pendingValue !== (this.pendingValue = e[0])) {
212
- this.flags = 17;
213
- const s = this.subs;
214
- s !== void 0 && (A(s), z());
215
- }
216
- } else {
217
- if (this.flags & 16 && V(this)) {
218
- const d = this.subs;
219
- d !== void 0 && M(d);
220
- }
221
- let s = o;
222
- for (; s !== void 0; ) {
223
- if (s.flags & 3) {
224
- w(this, s, x);
225
- break;
226
- }
227
- s = s.subs?.sub;
228
- }
229
- return this.currentValue;
230
- }
231
- }
232
- function E() {
233
- I.call(this);
234
- }
235
- function I() {
236
- this.depsTail = void 0, this.flags = 0, g(this);
237
- const e = this.subs;
238
- e !== void 0 && y(e);
239
- }
240
- function g(e) {
241
- const s = e.depsTail;
242
- let d = s !== void 0 ? s.nextDep : e.deps;
243
- for (; d !== void 0; )
244
- d = y(d, e);
245
- }
246
- export {
247
- G as e,
248
- F as s
249
- };
@@ -1,4 +0,0 @@
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;background-color:transparent}:host(:focus){--l-input-border-color: var(--l-primary-color, #722ed1)}:host(.is-block){width:100%}: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;background-color:transparent}.l-input__inner:disabled{background-color:transparent}";
2
- export {
3
- r as i
4
- };
package/lib/litos-ui.css DELETED
@@ -1 +0,0 @@
1
- :host{display:inline-flex}.l-icon{width:1em;height:1em;fill:currentColor;vertical-align:middle;display:inline-block}:host{display:inline-flex;width:auto;box-sizing:border-box}
@@ -1,6 +0,0 @@
1
- import BaseComponent from "../base";
2
- export default class Menu extends BaseComponent {
3
- static baseName: string;
4
- connectedCallback(): void;
5
- render(): DocumentFragment;
6
- }
@@ -1,21 +0,0 @@
1
- import { $one as n, $$ as e } from "ph-utils/dom";
2
- import t from "../base.js";
3
- import { initAttr as i } from "../utils/index.js";
4
- const a = ":host{display:flex;align-items:center;padding:0 10px 0 calc(10px + var(--l-menu-level) * 15px);height:var(--l-menu-item-height);cursor:pointer;box-sizing:border-box;white-space:nowrap;position:relative;overflow:hidden;text-overflow:ellipsis;border-right:2px solid transparent;transition:color .3s,background-color .3s,border-color .3s}:host(:hover){background-color:var(--l-primary-color-light5)}:host([active]){background-color:var(--l-menu-active-background);color:var(--l-menu-active-color)}.l-menu-icon-wrap{display:inline-flex;font-size:14px;margin-right:5px}";
5
- class m extends t {
6
- static baseName = "menu-item";
7
- connectedCallback() {
8
- this.loadStyleText(a), i(this), super.connectedCallback();
9
- }
10
- render() {
11
- const o = document.createDocumentFragment();
12
- if (n('[slot="icon"]', this)) {
13
- const r = e("span", { class: "l-menu-icon-wrap" });
14
- r.appendChild(e("slot", { name: "icon" })), o.appendChild(r);
15
- }
16
- return o.appendChild(e("slot")), o;
17
- }
18
- }
19
- export {
20
- m as default
21
- };
@@ -1,15 +0,0 @@
1
- import BaseComponent from "../base";
2
- export default class SubMenu extends BaseComponent {
3
- #private;
4
- static baseName: string;
5
- /** 默认折叠子菜单 */
6
- expanded: boolean;
7
- /** 是否激活状态, 通常是下面的子菜单项被选中 */
8
- active: boolean;
9
- connectedCallback(): void;
10
- afterInit(): void;
11
- beforeDestroy(): void;
12
- static get observedAttributes(): string[];
13
- attributeChangedCallback(name: string, _oldValue: string, newValue: string): void;
14
- render(): DocumentFragment;
15
- }
@@ -1,83 +0,0 @@
1
- import { addClass as r, $one as l, on as h, off as p, removeClass as d, toggleClass as u, $$ as n } from "ph-utils/dom";
2
- import m from "../base.js";
3
- import { initAttr as g, parseAttrValue as c } from "../utils/index.js";
4
- const f = ":host{display:block;width:100%;overflow:hidden}.l-submenu-title{display:flex;align-items:center;padding:0 10px 0 calc(10px + var(--l-menu-level) * 15px);height:var(--l-menu-item-height);cursor:pointer;box-sizing:border-box;white-space:nowrap;position:relative;overflow:hidden;text-overflow:ellipsis;border-right:2px solid transparent;transition:color .3s,background-color .3s,border-color .3s}.l-submenu-title:hover{background-color:var(--l-primary-color-light5)}.l-menu{--l-menu-level: 1;display:block;width:var(--l-menu-width);height:var(--l-menu-height);font-size:14px;position:relative;color:var(--l-menu-color);background:var(--l-menu-background);box-sizing:border-box;transition:height .3s,width .3s;overflow:hidden;border-right:1px solid var(--l-border-color, #dedede)}.l-menu-icon-wrap{display:inline-flex;font-size:14px;margin-right:5px}.l-submenu-arrow-icon{position:absolute;top:50%;right:10px;transition:transform .3s;transform:translate3d(0,-50%,0) rotate(90deg);color:var(--l-info-color)}:host(.collapsed) .l-submenu-arrow-icon{transform:translate3d(0,-50%,0) rotate(0)}.l-menu--collapsed{display:none}.l-menu--hide{position:absolute;visibility:hidden}:host(.is-active) .l-submenu-title{color:var(--l-primary-color)}";
5
- class C extends m {
6
- static baseName = "sub-menu";
7
- /** 默认折叠子菜单 */
8
- expanded = !1;
9
- /** 是否激活状态, 通常是下面的子菜单项被选中 */
10
- active = !1;
11
- #e;
12
- connectedCallback() {
13
- this.loadStyleText(f), g(this), this.expanded || r(this, "collapsed"), this.active && r(this, "is-active"), super.connectedCallback();
14
- }
15
- afterInit() {
16
- const e = l(".l-menu", this.root);
17
- h(e, "transitionend", this.#t);
18
- }
19
- beforeDestroy() {
20
- const e = l(".l-menu", this.root);
21
- p(e, "transitionend", this.#t), this.#e && clearTimeout(this.#e);
22
- }
23
- static get observedAttributes() {
24
- return ["expanded", "active"];
25
- }
26
- attributeChangedCallback(e, i, a) {
27
- if (this.rendered) {
28
- if (e === "expanded") {
29
- const o = c(a, !1, "expanded");
30
- if (this.expanded !== o) {
31
- this.expanded = o;
32
- const t = l(".l-menu", this.root);
33
- if (this.expanded)
34
- d(this, "collapsed"), r(t, "l-menu--hide"), d(t, "l-menu--collapsed"), requestAnimationFrame(() => {
35
- const s = t.getBoundingClientRect();
36
- t.style.height = "0", d(t, "l-menu--hide"), requestAnimationFrame(() => {
37
- t.style.height = `${s.height}px`;
38
- });
39
- });
40
- else {
41
- const s = t.getBoundingClientRect();
42
- t.style.height = `${s.height}px`, r(this, "collapsed"), requestAnimationFrame(() => {
43
- t.style.height = "0";
44
- });
45
- }
46
- this.#e = setTimeout(() => {
47
- this.#t({
48
- target: t,
49
- propertyName: "height"
50
- });
51
- }, 350);
52
- }
53
- } else if (e === "active") {
54
- const o = c(a, !1, "active");
55
- o !== this.active && (this.active = o, u(this, "is-active"));
56
- }
57
- }
58
- }
59
- render() {
60
- const e = document.createDocumentFragment(), i = n("div", { class: "l-submenu-title" });
61
- if (l('[slot="icon"]', this)) {
62
- const s = n("span", { class: "l-menu-icon-wrap" });
63
- s.appendChild(n("slot", { name: "icon" })), i.appendChild(s);
64
- }
65
- i.appendChild(n("slot", { name: "title" }));
66
- const o = n("l-arrow-right-icon", { class: "l-submenu-arrow-icon" });
67
- i.appendChild(o), e.appendChild(i);
68
- const t = n("div", {
69
- class: ["l-menu", this.expanded ? void 0 : "l-menu--collapsed"]
70
- });
71
- return t.appendChild(n("slot")), e.appendChild(t), e;
72
- }
73
- #t = (e) => {
74
- if (!this.expanded && e.propertyName === "height") {
75
- this.#e && clearTimeout(this.#e);
76
- const i = e.target;
77
- i.style.removeProperty("height"), r(i, "l-menu--collapsed");
78
- }
79
- };
80
- }
81
- export {
82
- C as default
83
- };
@@ -1 +0,0 @@
1
-