@threadlabs/looma 0.47.1 → 0.47.3
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.
- package/components/ui-card/ui-card.html +39 -5
- package/components/ui-card-group/ui-card-group.html +29 -0
- package/components/ui-combobox/ui-combobox.html +24 -4
- package/components/ui-combobox/ui-combobox.js +6 -0
- package/components/ui-site-header/ui-site-header.html +7 -5
- package/components/ui-top-bar/ui-top-bar.html +32 -2
- package/components/ui-top-bar/ui-top-bar.js +60 -0
- package/dist/index.js +4 -3
- package/docs/catalog.json +190 -4
- package/package.json +1 -1
- package/styles/ui-card-group.css +41 -0
- package/styles/ui-card.css +19 -1
- package/styles/ui-combobox.css +42 -6
- package/styles/ui-site-header.css +14 -10
- package/styles/ui-top-bar.css +24 -1
- package/vanilla/UiCard.js +148 -36
- package/vanilla/UiCardGroup.d.ts +25 -0
- package/vanilla/UiCardGroup.js +59 -0
- package/vanilla/UiCombobox.d.ts +1 -0
- package/vanilla/UiCombobox.js +88 -82
- package/vanilla/UiTopBar.d.ts +1 -0
- package/vanilla/UiTopBar.js +50 -13
- package/vanilla/index.js +1 -0
- package/vue/UiCard.d.ts +20 -4
- package/vue/UiCard.vue +31 -5
- package/vue/UiCardGroup.d.ts +41 -0
- package/vue/UiCardGroup.js +2 -0
- package/vue/UiCardGroup.vue +168 -0
- package/vue/UiCombobox.d.ts +6 -0
- package/vue/UiCombobox.vue +78 -9
- package/vue/UiSiteHeader.vue +12 -8
- package/vue/UiTopBar.d.ts +17 -1
- package/vue/UiTopBar.vue +171 -3
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiBreadcrumbItem.js +1 -1
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +74 -10
- package/vue/chunks/UiCardGroup.js +153 -0
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiColorPicker.js +1 -1
- package/vue/chunks/UiCombobox.js +74 -53
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiCurveEditor.js +1 -1
- package/vue/chunks/UiCycleButton.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorBlockActions.js +1 -1
- package/vue/chunks/UiEditorChipEditor.js +1 -1
- package/vue/chunks/UiEditorCodeLanguage.js +1 -1
- package/vue/chunks/UiEditorFootnoteEditor.js +1 -1
- package/vue/chunks/UiEditorImageToolbar.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorLinkCard.js +1 -1
- package/vue/chunks/UiEditorLinkForm.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorSurface.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiImage.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiLightEditor.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +1 -1
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiNumberInput.js +1 -1
- package/vue/chunks/UiPageHeader.js +1 -1
- package/vue/chunks/UiPagination.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSiteHeader.js +2 -2
- package/vue/chunks/UiSkeleton.js +1 -1
- package/vue/chunks/UiSlider.js +1 -1
- package/vue/chunks/UiSpinner.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwatch.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +1 -1
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +105 -17
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/chunks/props.js +1 -1
- package/vue/components.css +185 -77
- package/vue/index.d.ts +1 -0
- package/vue/index.js +3 -2
package/vanilla/UiCard.js
CHANGED
|
@@ -2,15 +2,23 @@
|
|
|
2
2
|
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, armElement, replaceRoot, checkFormat, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-card.css";
|
|
4
4
|
|
|
5
|
-
const T0 = ["",[],4];
|
|
5
|
+
const T0 = ["",[],"\n ",["div",["class","header"],4],"\n ",["div",["class","content"],4],"\n ",["div",["class","actions"],4],"\n "];
|
|
6
6
|
const T1 = ["",[]];
|
|
7
|
-
const T2 = ["",[]
|
|
7
|
+
const T2 = ["",[]];
|
|
8
8
|
const T3 = ["",[]];
|
|
9
|
-
const T4 = ["",[],4];
|
|
9
|
+
const T4 = ["",[],"\n ",["div",["class","header"],4],"\n ",["div",["class","content"],4],"\n ",["div",["class","actions"],4],"\n "];
|
|
10
10
|
const T5 = ["",[]];
|
|
11
|
-
const T6 = ["",[]
|
|
11
|
+
const T6 = ["",[]];
|
|
12
12
|
const T7 = ["",[]];
|
|
13
|
-
|
|
13
|
+
const T8 = ["",[],"\n ",["div",["class","header"],4],"\n ",["div",["class","content"],4],"\n ",["div",["class","actions"],4],"\n "];
|
|
14
|
+
const T9 = ["",[]];
|
|
15
|
+
const T10 = ["",[]];
|
|
16
|
+
const T11 = ["",[]];
|
|
17
|
+
const T12 = ["",[],"\n ",["div",["class","header"],4],"\n ",["div",["class","content"],4],"\n ",["div",["class","actions"],4],"\n "];
|
|
18
|
+
const T13 = ["",[]];
|
|
19
|
+
const T14 = ["",[]];
|
|
20
|
+
const T15 = ["",[]];
|
|
21
|
+
let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15;
|
|
14
22
|
const S = { n: [], t: [], f: import.meta.url, g: "ui-card", b: generatedInputs };
|
|
15
23
|
const A = [["section",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["article",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["aside",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["div",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]]];
|
|
16
24
|
const Q = [[],[],[],[]];
|
|
@@ -60,6 +68,14 @@ export function createUiCard(options = {}, html) {
|
|
|
60
68
|
};
|
|
61
69
|
const p1 = (r, c, d) => {
|
|
62
70
|
};
|
|
71
|
+
const m2 = (d) => {
|
|
72
|
+
const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
|
|
73
|
+
const r = { n };
|
|
74
|
+
p2(r, -1, d);
|
|
75
|
+
return r;
|
|
76
|
+
};
|
|
77
|
+
const p2 = (r, c, d) => {
|
|
78
|
+
};
|
|
63
79
|
const m3 = (d) => {
|
|
64
80
|
const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
|
|
65
81
|
const r = { n };
|
|
@@ -76,6 +92,14 @@ export function createUiCard(options = {}, html) {
|
|
|
76
92
|
};
|
|
77
93
|
const p5 = (r, c, d) => {
|
|
78
94
|
};
|
|
95
|
+
const m6 = (d) => {
|
|
96
|
+
const n = (P6 ??= buildTemplate(T6)).cloneNode(true);
|
|
97
|
+
const r = { n };
|
|
98
|
+
p6(r, -1, d);
|
|
99
|
+
return r;
|
|
100
|
+
};
|
|
101
|
+
const p6 = (r, c, d) => {
|
|
102
|
+
};
|
|
79
103
|
const m7 = (d) => {
|
|
80
104
|
const n = (P7 ??= buildTemplate(T7)).cloneNode(true);
|
|
81
105
|
const r = { n };
|
|
@@ -84,10 +108,62 @@ export function createUiCard(options = {}, html) {
|
|
|
84
108
|
};
|
|
85
109
|
const p7 = (r, c, d) => {
|
|
86
110
|
};
|
|
111
|
+
const m9 = (d) => {
|
|
112
|
+
const n = (P9 ??= buildTemplate(T9)).cloneNode(true);
|
|
113
|
+
const r = { n };
|
|
114
|
+
p9(r, -1, d);
|
|
115
|
+
return r;
|
|
116
|
+
};
|
|
117
|
+
const p9 = (r, c, d) => {
|
|
118
|
+
};
|
|
119
|
+
const m10 = (d) => {
|
|
120
|
+
const n = (P10 ??= buildTemplate(T10)).cloneNode(true);
|
|
121
|
+
const r = { n };
|
|
122
|
+
p10(r, -1, d);
|
|
123
|
+
return r;
|
|
124
|
+
};
|
|
125
|
+
const p10 = (r, c, d) => {
|
|
126
|
+
};
|
|
127
|
+
const m11 = (d) => {
|
|
128
|
+
const n = (P11 ??= buildTemplate(T11)).cloneNode(true);
|
|
129
|
+
const r = { n };
|
|
130
|
+
p11(r, -1, d);
|
|
131
|
+
return r;
|
|
132
|
+
};
|
|
133
|
+
const p11 = (r, c, d) => {
|
|
134
|
+
};
|
|
135
|
+
const m13 = (d) => {
|
|
136
|
+
const n = (P13 ??= buildTemplate(T13)).cloneNode(true);
|
|
137
|
+
const r = { n };
|
|
138
|
+
p13(r, -1, d);
|
|
139
|
+
return r;
|
|
140
|
+
};
|
|
141
|
+
const p13 = (r, c, d) => {
|
|
142
|
+
};
|
|
143
|
+
const m14 = (d) => {
|
|
144
|
+
const n = (P14 ??= buildTemplate(T14)).cloneNode(true);
|
|
145
|
+
const r = { n };
|
|
146
|
+
p14(r, -1, d);
|
|
147
|
+
return r;
|
|
148
|
+
};
|
|
149
|
+
const p14 = (r, c, d) => {
|
|
150
|
+
};
|
|
151
|
+
const m15 = (d) => {
|
|
152
|
+
const n = (P15 ??= buildTemplate(T15)).cloneNode(true);
|
|
153
|
+
const r = { n };
|
|
154
|
+
p15(r, -1, d);
|
|
155
|
+
return r;
|
|
156
|
+
};
|
|
157
|
+
const p15 = (r, c, d) => {
|
|
158
|
+
};
|
|
87
159
|
const m0 = (n, d) => {
|
|
88
160
|
n.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
89
|
-
const t0 = n.firstChild;
|
|
90
|
-
const
|
|
161
|
+
const t0 = n.firstChild.nextSibling;
|
|
162
|
+
const t1 = t0.firstChild;
|
|
163
|
+
const t2 = t0.nextSibling.nextSibling;
|
|
164
|
+
const t3 = t2.firstChild;
|
|
165
|
+
const t4 = t2.nextSibling.nextSibling.firstChild;
|
|
166
|
+
const r = { n, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a2: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
|
|
91
167
|
p0(r, -1, d);
|
|
92
168
|
return r;
|
|
93
169
|
};
|
|
@@ -97,62 +173,98 @@ export function createUiCard(options = {}, html) {
|
|
|
97
173
|
const s0 = x0;
|
|
98
174
|
if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
|
|
99
175
|
}
|
|
100
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
|
|
176
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "header", J, false, undefined, d);
|
|
101
177
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
102
178
|
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
179
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
|
|
180
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
|
|
181
|
+
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
182
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "actions", J, false, undefined, d);
|
|
183
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
|
|
184
|
+
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
103
185
|
};
|
|
104
|
-
const
|
|
105
|
-
n.append((
|
|
106
|
-
const t0 = n.firstChild;
|
|
107
|
-
const
|
|
108
|
-
|
|
186
|
+
const m4 = (n, d) => {
|
|
187
|
+
n.append((P4 ??= buildTemplate(T4)).cloneNode(true));
|
|
188
|
+
const t0 = n.firstChild.nextSibling;
|
|
189
|
+
const t1 = t0.firstChild;
|
|
190
|
+
const t2 = t0.nextSibling.nextSibling;
|
|
191
|
+
const t3 = t2.firstChild;
|
|
192
|
+
const t4 = t2.nextSibling.nextSibling.firstChild;
|
|
193
|
+
const r = { n, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a2: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
|
|
194
|
+
p4(r, -1, d);
|
|
109
195
|
return r;
|
|
110
196
|
};
|
|
111
|
-
const
|
|
197
|
+
const p4 = (r, c, d) => {
|
|
112
198
|
if (c & 62) {
|
|
113
199
|
const x0 = hostState(["padding","variant","treatment","tone","size"], [v[1], v[5], v[4], v[3], v[2]]);
|
|
114
200
|
const s0 = x0;
|
|
115
201
|
if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
|
|
116
202
|
}
|
|
117
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
|
|
118
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 =
|
|
119
|
-
else if (r.b0 !== undefined)
|
|
203
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "header", J, false, undefined, d);
|
|
204
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m5(d); at.before(r.b0.n); } }
|
|
205
|
+
else if (r.b0 !== undefined) p5(r.b0, c, d);
|
|
206
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
|
|
207
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m6(d); at.before(r.b1.n); } }
|
|
208
|
+
else if (r.b1 !== undefined) p6(r.b1, c, d);
|
|
209
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "actions", J, false, undefined, d);
|
|
210
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m7(d); at.before(r.b2.n); } }
|
|
211
|
+
else if (r.b2 !== undefined) p7(r.b2, c, d);
|
|
120
212
|
};
|
|
121
|
-
const
|
|
122
|
-
n.append((
|
|
123
|
-
const t0 = n.firstChild;
|
|
124
|
-
const
|
|
125
|
-
|
|
213
|
+
const m8 = (n, d) => {
|
|
214
|
+
n.append((P8 ??= buildTemplate(T8)).cloneNode(true));
|
|
215
|
+
const t0 = n.firstChild.nextSibling;
|
|
216
|
+
const t1 = t0.firstChild;
|
|
217
|
+
const t2 = t0.nextSibling.nextSibling;
|
|
218
|
+
const t3 = t2.firstChild;
|
|
219
|
+
const t4 = t2.nextSibling.nextSibling.firstChild;
|
|
220
|
+
const r = { n, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a2: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
|
|
221
|
+
p8(r, -1, d);
|
|
126
222
|
return r;
|
|
127
223
|
};
|
|
128
|
-
const
|
|
224
|
+
const p8 = (r, c, d) => {
|
|
129
225
|
if (c & 62) {
|
|
130
226
|
const x0 = hostState(["padding","variant","treatment","tone","size"], [v[1], v[5], v[4], v[3], v[2]]);
|
|
131
227
|
const s0 = x0;
|
|
132
228
|
if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
|
|
133
229
|
}
|
|
134
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
|
|
135
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 =
|
|
136
|
-
else if (r.b0 !== undefined)
|
|
230
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "header", J, false, undefined, d);
|
|
231
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m9(d); at.before(r.b0.n); } }
|
|
232
|
+
else if (r.b0 !== undefined) p9(r.b0, c, d);
|
|
233
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
|
|
234
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m10(d); at.before(r.b1.n); } }
|
|
235
|
+
else if (r.b1 !== undefined) p10(r.b1, c, d);
|
|
236
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "actions", J, false, undefined, d);
|
|
237
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m11(d); at.before(r.b2.n); } }
|
|
238
|
+
else if (r.b2 !== undefined) p11(r.b2, c, d);
|
|
137
239
|
};
|
|
138
|
-
const
|
|
139
|
-
n.append((
|
|
140
|
-
const t0 = n.firstChild;
|
|
141
|
-
const
|
|
142
|
-
|
|
240
|
+
const m12 = (n, d) => {
|
|
241
|
+
n.append((P12 ??= buildTemplate(T12)).cloneNode(true));
|
|
242
|
+
const t0 = n.firstChild.nextSibling;
|
|
243
|
+
const t1 = t0.firstChild;
|
|
244
|
+
const t2 = t0.nextSibling.nextSibling;
|
|
245
|
+
const t3 = t2.firstChild;
|
|
246
|
+
const t4 = t2.nextSibling.nextSibling.firstChild;
|
|
247
|
+
const r = { n, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, f0: undefined, a1: t3, e1: t3.nextSibling, b1: undefined, f1: undefined, a2: t4, e2: t4.nextSibling, b2: undefined, f2: undefined };
|
|
248
|
+
p12(r, -1, d);
|
|
143
249
|
return r;
|
|
144
250
|
};
|
|
145
|
-
const
|
|
251
|
+
const p12 = (r, c, d) => {
|
|
146
252
|
if (c & 62) {
|
|
147
253
|
const x0 = hostState(["padding","variant","treatment","tone","size"], [v[1], v[5], v[4], v[3], v[2]]);
|
|
148
254
|
const s0 = x0;
|
|
149
255
|
if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
|
|
150
256
|
}
|
|
151
|
-
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
|
|
152
|
-
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 =
|
|
153
|
-
else if (r.b0 !== undefined)
|
|
257
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "header", J, false, undefined, d);
|
|
258
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m13(d); at.before(r.b0.n); } }
|
|
259
|
+
else if (r.b0 !== undefined) p13(r.b0, c, d);
|
|
260
|
+
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "", J, false, undefined, d);
|
|
261
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m14(d); at.before(r.b1.n); } }
|
|
262
|
+
else if (r.b1 !== undefined) p14(r.b1, c, d);
|
|
263
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a2, r.e2, "actions", J, false, undefined, d);
|
|
264
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m15(d); at.before(r.b2.n); } }
|
|
265
|
+
else if (r.b2 !== undefined) p15(r.b2, c, d);
|
|
154
266
|
};
|
|
155
|
-
const M = [m0,
|
|
267
|
+
const M = [m0, m4, m8, m12], N = [p0, p4, p8, p12];
|
|
156
268
|
let R;
|
|
157
269
|
const p = (c, d) => {
|
|
158
270
|
if (R === null) return;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
|
|
2
|
+
export interface UiCardGroupEventMap {
|
|
3
|
+
}
|
|
4
|
+
export interface UiCardGroupElement extends HTMLDivElement {
|
|
5
|
+
addEventListener<K extends keyof UiCardGroupEventMap>(type: K, listener: (this: UiCardGroupElement, event: UiCardGroupEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
6
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCardGroupElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
7
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
8
|
+
removeEventListener<K extends keyof UiCardGroupEventMap>(type: K, listener: (this: UiCardGroupElement, event: UiCardGroupEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
9
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCardGroupElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
10
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
11
|
+
}
|
|
12
|
+
export interface UiCardGroupProps {
|
|
13
|
+
columns?: number | null;
|
|
14
|
+
gap?: "xs" | "s" | "m" | "l" | "xl" | null;
|
|
15
|
+
min?: "sm" | "md" | "lg" | null;
|
|
16
|
+
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
17
|
+
children?: readonly (string | Node)[];
|
|
18
|
+
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createUiCardGroup(props?: UiCardGroupProps): UiCardGroupElement;
|
|
21
|
+
declare global {
|
|
22
|
+
interface ComponentTagMap {
|
|
23
|
+
"ui-card-group": { element: UiCardGroupElement; props: Omit<UiCardGroupProps, "attributes" | "children" | "slots"> };
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, checkInteger, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
|
+
import "../styles/ui-card-group.css";
|
|
4
|
+
|
|
5
|
+
const T0 = ["",[],"\n ",["ui-grid",[],4],"\n "];
|
|
6
|
+
const T1 = ["",[]];
|
|
7
|
+
let P0, P1;
|
|
8
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-card-group", b: generatedInputs };
|
|
9
|
+
const D = { g: "ui-card-group", props: { "columns": { "required":false, c: checkInteger, t: "integer", j: 0, m: "i" }, "gap": { "required":false,"values":["xs","s","m","l","xl"],"default":"l", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "min": { "required":false,"values":["sm","md","lg"],"default":"lg", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
10
|
+
|
|
11
|
+
export function createUiCardGroup(options = {}, html) {
|
|
12
|
+
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
13
|
+
const element = document.createElement("div");
|
|
14
|
+
for (const [name, value] of Object.entries(attributes)) {
|
|
15
|
+
if (value === null || value === undefined || value === false) continue;
|
|
16
|
+
element.setAttribute(name, value === true ? "" : String(value));
|
|
17
|
+
}
|
|
18
|
+
element.setAttribute("data-component", "ui-card-group");
|
|
19
|
+
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
20
|
+
const v = [null, null, null];
|
|
21
|
+
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
22
|
+
const m1 = (d) => {
|
|
23
|
+
const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
|
|
24
|
+
const r = { n };
|
|
25
|
+
p1(r, -1, d);
|
|
26
|
+
return r;
|
|
27
|
+
};
|
|
28
|
+
const p1 = (r, c, d) => {
|
|
29
|
+
};
|
|
30
|
+
const p0 = (r, c, d) => {
|
|
31
|
+
if (c & 1073741826) {
|
|
32
|
+
const x0 = v[1];
|
|
33
|
+
const s0 = toAttribute(x0, "gap");
|
|
34
|
+
if (s0 !== r.v0) writeAttribute(r.a0, "gap", r.v0 = s0);
|
|
35
|
+
}
|
|
36
|
+
if (c & 1073741828) {
|
|
37
|
+
const x1 = v[2];
|
|
38
|
+
const s1 = toAttribute(x1, "min");
|
|
39
|
+
if (s1 !== r.v1) writeAttribute(r.a0, "min", r.v1 = s1);
|
|
40
|
+
}
|
|
41
|
+
if (c & 1) {
|
|
42
|
+
const x2 = v[0];
|
|
43
|
+
const s2 = toAttribute(x2, "columns");
|
|
44
|
+
if (s2 !== r.v2) writeAttribute(r.a0, "columns", r.v2 = s2);
|
|
45
|
+
}
|
|
46
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
|
|
47
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
48
|
+
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
49
|
+
};
|
|
50
|
+
const t0 = element.firstChild.nextSibling;
|
|
51
|
+
const t1 = t0.firstChild;
|
|
52
|
+
const R = { a0: t0, v0: null, v1: null, v2: null, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined };
|
|
53
|
+
const I = { B };
|
|
54
|
+
const J = project(I, children, slots);
|
|
55
|
+
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
56
|
+
manageProps(I);
|
|
57
|
+
return element;
|
|
58
|
+
}
|
|
59
|
+
defineComponent("ui-card-group", createUiCardGroup, ["columns","gap","min"]);
|
package/vanilla/UiCombobox.d.ts
CHANGED