@threadlabs/looma 0.30.8 → 0.31.0
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-affordance-scope/ui-affordance-scope.html +1 -1
- package/components/ui-affordance-scope/ui-affordance-scope.js +1 -6
- package/components/ui-avatar/ui-avatar.html +1 -1
- package/components/ui-avatar/ui-avatar.js +1 -6
- package/components/ui-avatar-group/ui-avatar-group.html +1 -1
- package/components/ui-avatar-group/ui-avatar-group.js +1 -6
- package/components/ui-button/ui-button.html +1 -1
- package/components/ui-button/ui-button.js +1 -6
- package/components/ui-checkbox/ui-checkbox.html +1 -1
- package/components/ui-checkbox/ui-checkbox.js +1 -6
- package/components/ui-combobox/ui-combobox.html +1 -1
- package/components/ui-combobox/ui-combobox.js +1 -6
- package/components/ui-context-menu/ui-context-menu.html +1 -1
- package/components/ui-context-menu/ui-context-menu.js +1 -6
- package/components/ui-dialog/ui-dialog.html +6 -1
- package/components/ui-dialog/ui-dialog.js +1 -6
- package/components/ui-disclosure/ui-disclosure.html +1 -1
- package/components/ui-disclosure/ui-disclosure.js +1 -6
- package/components/ui-editable/ui-editable.html +1 -1
- package/components/ui-editable/ui-editable.js +1 -6
- package/components/ui-editor-block-actions/ui-editor-block-actions.html +1 -1
- package/components/ui-editor-block-actions/ui-editor-block-actions.js +1 -6
- package/components/ui-editor-chip-editor/ui-editor-chip-editor.html +1 -1
- package/components/ui-editor-chip-editor/ui-editor-chip-editor.js +1 -6
- package/components/ui-editor-code-language/ui-editor-code-language.html +1 -1
- package/components/ui-editor-code-language/ui-editor-code-language.js +1 -6
- package/components/ui-editor-image-toolbar/ui-editor-image-toolbar.html +1 -1
- package/components/ui-editor-image-toolbar/ui-editor-image-toolbar.js +1 -6
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +1 -1
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js +1 -6
- package/components/ui-editor-link-card/ui-editor-link-card.html +1 -1
- package/components/ui-editor-link-card/ui-editor-link-card.js +1 -6
- package/components/ui-editor-link-form/ui-editor-link-form.html +1 -1
- package/components/ui-editor-link-form/ui-editor-link-form.js +1 -6
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +1 -1
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +1 -6
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +1 -1
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +1 -6
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.js +1 -6
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +1 -1
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +1 -6
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +1 -1
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +1 -6
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +1 -1
- package/components/ui-editor-toolbar/ui-editor-toolbar.js +1 -6
- package/components/ui-form-field/ui-form-field.html +1 -1
- package/components/ui-form-field/ui-form-field.js +1 -6
- package/components/ui-icon-button/ui-icon-button.html +1 -1
- package/components/ui-icon-button/ui-icon-button.js +1 -6
- package/components/ui-image/ui-image.html +1 -1
- package/components/ui-image/ui-image.js +1 -6
- package/components/ui-input/ui-input.html +1 -1
- package/components/ui-input/ui-input.js +1 -6
- package/components/ui-input-group/ui-input-group.html +1 -1
- package/components/ui-input-group/ui-input-group.js +1 -6
- package/components/ui-listbox/ui-listbox.html +1 -1
- package/components/ui-listbox/ui-listbox.js +1 -6
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-menu/ui-menu.js +1 -6
- package/components/ui-menu-item/ui-menu-item.html +1 -1
- package/components/ui-menu-item/ui-menu-item.js +1 -6
- package/components/ui-popover/ui-popover.html +1 -1
- package/components/ui-popover/ui-popover.js +1 -6
- package/components/ui-radio/ui-radio.html +1 -1
- package/components/ui-radio/ui-radio.js +1 -6
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-radio-group/ui-radio-group.js +1 -6
- package/components/ui-scroll-area/ui-scroll-area.html +1 -1
- package/components/ui-scroll-area/ui-scroll-area.js +1 -6
- package/components/ui-search-shell/ui-search-shell.html +1 -1
- package/components/ui-search-shell/ui-search-shell.js +1 -6
- package/components/ui-select/ui-select.html +1 -1
- package/components/ui-select/ui-select.js +1 -6
- package/components/ui-sidebar/ui-sidebar.html +1 -1
- package/components/ui-sidebar/ui-sidebar.js +1 -6
- package/components/ui-switch/ui-switch.html +1 -1
- package/components/ui-switch/ui-switch.js +1 -6
- package/components/ui-switcher/ui-switcher.html +1 -1
- package/components/ui-switcher/ui-switcher.js +1 -6
- package/components/ui-table/ui-table.html +1 -1
- package/components/ui-table/ui-table.js +1 -6
- package/components/ui-tabs/ui-tabs.html +1 -1
- package/components/ui-tabs/ui-tabs.js +1 -6
- package/components/ui-textarea/ui-textarea.html +1 -1
- package/components/ui-textarea/ui-textarea.js +1 -6
- package/components/ui-toast/ui-toast.html +1 -1
- package/components/ui-toast/ui-toast.js +1 -6
- package/components/ui-toast-region/ui-toast-region.html +1 -1
- package/components/ui-toast-region/ui-toast-region.js +1 -6
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tooltip/ui-tooltip.js +1 -6
- package/components/ui-tree/ui-tree.html +1 -1
- package/components/ui-tree/ui-tree.js +1 -6
- package/components/ui-tree-item/ui-tree-item.html +1 -1
- package/components/ui-tree-item/ui-tree-item.js +1 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-dialog.css +7 -0
- package/vanilla/UiAffordanceScope.js +4 -4
- package/vanilla/UiAvatar.js +4 -4
- package/vanilla/UiAvatarGroup.js +4 -4
- package/vanilla/UiButton.js +4 -4
- package/vanilla/UiCheckbox.js +4 -4
- package/vanilla/UiCombobox.js +4 -4
- package/vanilla/UiContextMenu.js +4 -4
- package/vanilla/UiDialog.js +4 -4
- package/vanilla/UiDisclosure.js +4 -4
- package/vanilla/UiEditable.js +4 -4
- package/vanilla/UiEditorBlockActions.js +4 -4
- package/vanilla/UiEditorChipEditor.js +4 -4
- package/vanilla/UiEditorCodeLanguage.js +4 -4
- package/vanilla/UiEditorImageToolbar.js +4 -4
- package/vanilla/UiEditorInsertTableGrid.js +4 -4
- package/vanilla/UiEditorLinkCard.js +4 -4
- package/vanilla/UiEditorLinkForm.js +4 -4
- package/vanilla/UiEditorMentionMenu.js +4 -4
- package/vanilla/UiEditorSlashMenu.js +4 -4
- package/vanilla/UiEditorTableContextMenu.js +4 -4
- package/vanilla/UiEditorTableOverlay.js +4 -4
- package/vanilla/UiEditorTableToolbar.js +4 -4
- package/vanilla/UiEditorToolbar.js +4 -4
- package/vanilla/UiFormField.js +4 -4
- package/vanilla/UiIconButton.js +4 -4
- package/vanilla/UiImage.js +4 -4
- package/vanilla/UiInput.js +4 -4
- package/vanilla/UiInputGroup.js +4 -4
- package/vanilla/UiListbox.js +4 -4
- package/vanilla/UiMenu.js +4 -4
- package/vanilla/UiMenuItem.js +4 -4
- package/vanilla/UiPopover.js +4 -4
- package/vanilla/UiRadio.js +4 -4
- package/vanilla/UiRadioGroup.js +4 -4
- package/vanilla/UiScrollArea.js +4 -4
- package/vanilla/UiSearchShell.js +4 -4
- package/vanilla/UiSelect.js +4 -4
- package/vanilla/UiSidebar.js +4 -4
- package/vanilla/UiSwitch.js +4 -4
- package/vanilla/UiSwitcher.js +4 -4
- package/vanilla/UiTable.js +4 -4
- package/vanilla/UiTabs.js +4 -4
- package/vanilla/UiTextarea.js +4 -4
- package/vanilla/UiToast.js +4 -4
- package/vanilla/UiToastRegion.js +4 -4
- package/vanilla/UiTooltip.js +4 -4
- package/vanilla/UiTree.js +4 -4
- package/vanilla/UiTreeItem.js +4 -4
- package/vue/UiAffordanceScope.vue +1 -0
- package/vue/UiAvatar.vue +1 -0
- package/vue/UiAvatarGroup.vue +1 -0
- package/vue/UiButton.vue +1 -0
- package/vue/UiCheckbox.vue +1 -0
- package/vue/UiCombobox.vue +1 -0
- package/vue/UiContextMenu.vue +1 -0
- package/vue/UiDialog.vue +6 -0
- package/vue/UiDisclosure.vue +1 -0
- package/vue/UiEditable.vue +1 -0
- package/vue/UiEditorBlockActions.vue +1 -0
- package/vue/UiEditorChipEditor.vue +1 -0
- package/vue/UiEditorCodeLanguage.vue +1 -0
- package/vue/UiEditorImageToolbar.vue +1 -0
- package/vue/UiEditorInsertTableGrid.vue +1 -0
- package/vue/UiEditorLinkCard.vue +1 -0
- package/vue/UiEditorLinkForm.vue +1 -0
- package/vue/UiEditorMentionMenu.vue +1 -0
- package/vue/UiEditorSlashMenu.vue +1 -0
- package/vue/UiEditorTableContextMenu.vue +1 -0
- package/vue/UiEditorTableOverlay.vue +1 -0
- package/vue/UiEditorTableToolbar.vue +1 -0
- package/vue/UiEditorToolbar.vue +1 -0
- package/vue/UiFormField.vue +1 -0
- package/vue/UiIconButton.vue +1 -0
- package/vue/UiImage.vue +1 -0
- package/vue/UiInput.vue +1 -0
- package/vue/UiInputGroup.vue +1 -0
- package/vue/UiListbox.vue +1 -0
- package/vue/UiMenu.vue +1 -0
- package/vue/UiMenuItem.vue +1 -0
- package/vue/UiPopover.vue +1 -0
- package/vue/UiRadio.vue +1 -0
- package/vue/UiRadioGroup.vue +1 -0
- package/vue/UiScrollArea.vue +1 -0
- package/vue/UiSearchShell.vue +1 -0
- package/vue/UiSelect.vue +1 -0
- package/vue/UiSidebar.vue +1 -0
- package/vue/UiSwitch.vue +1 -0
- package/vue/UiSwitcher.vue +1 -0
- package/vue/UiTable.vue +1 -0
- package/vue/UiTabs.vue +1 -0
- package/vue/UiTextarea.vue +1 -0
- package/vue/UiToast.vue +1 -0
- package/vue/UiToastRegion.vue +1 -0
- package/vue/UiTooltip.vue +1 -0
- package/vue/UiTree.vue +1 -0
- package/vue/UiTreeItem.vue +1 -0
- package/vue/chunks/UiAffordanceScope.js +2 -1
- package/vue/chunks/UiAvatar.js +2 -1
- package/vue/chunks/UiAvatarGroup.js +2 -1
- package/vue/chunks/UiButton.js +2 -1
- package/vue/chunks/UiCheckbox.js +2 -1
- package/vue/chunks/UiCombobox.js +2 -1
- package/vue/chunks/UiContextMenu.js +2 -1
- package/vue/chunks/UiDialog.js +2 -1
- package/vue/chunks/UiDisclosure.js +2 -1
- package/vue/chunks/UiEditable.js +2 -1
- package/vue/chunks/UiEditorBlockActions.js +1 -0
- package/vue/chunks/UiEditorChipEditor.js +1 -0
- package/vue/chunks/UiEditorCodeLanguage.js +1 -0
- package/vue/chunks/UiEditorImageToolbar.js +1 -0
- package/vue/chunks/UiEditorInsertTableGrid.js +2 -1
- package/vue/chunks/UiEditorLinkCard.js +1 -0
- package/vue/chunks/UiEditorLinkForm.js +1 -0
- package/vue/chunks/UiEditorMentionMenu.js +2 -1
- package/vue/chunks/UiEditorSlashMenu.js +2 -1
- package/vue/chunks/UiEditorTableContextMenu.js +2 -1
- package/vue/chunks/UiEditorTableOverlay.js +2 -1
- package/vue/chunks/UiEditorTableToolbar.js +2 -1
- package/vue/chunks/UiEditorToolbar.js +2 -1
- package/vue/chunks/UiFormField.js +2 -1
- package/vue/chunks/UiIconButton.js +2 -1
- package/vue/chunks/UiImage.js +2 -1
- package/vue/chunks/UiInput.js +2 -1
- package/vue/chunks/UiInputGroup.js +2 -1
- package/vue/chunks/UiListbox.js +2 -1
- package/vue/chunks/UiMenu.js +2 -1
- package/vue/chunks/UiMenuItem.js +2 -1
- package/vue/chunks/UiPopover.js +2 -1
- package/vue/chunks/UiRadio.js +2 -1
- package/vue/chunks/UiRadioGroup.js +2 -1
- package/vue/chunks/UiScrollArea.js +2 -1
- package/vue/chunks/UiSearchShell.js +2 -1
- package/vue/chunks/UiSelect.js +2 -1
- package/vue/chunks/UiSidebar.js +2 -1
- package/vue/chunks/UiSwitch.js +2 -1
- package/vue/chunks/UiSwitcher.js +2 -1
- package/vue/chunks/UiTable.js +2 -1
- package/vue/chunks/UiTabs.js +2 -1
- package/vue/chunks/UiTextarea.js +2 -1
- package/vue/chunks/UiToast.js +2 -1
- package/vue/chunks/UiToastRegion.js +2 -1
- package/vue/chunks/UiTooltip.js +2 -1
- package/vue/chunks/UiTree.js +2 -1
- package/vue/chunks/UiTreeItem.js +2 -1
- package/vue/components.css +21 -16
- package/vue/editor/index.js +61 -73
package/package.json
CHANGED
package/styles/ui-dialog.css
CHANGED
|
@@ -111,6 +111,11 @@
|
|
|
111
111
|
padding: calc(var(--ui-space-3) + var(--ui-space-1) / 2) var(--ui-space-3) var(--ui-space-3) var(--ui-space-5);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
/* Alerts have no close target to add height above the title. */
|
|
115
|
+
:scope:where([data-component~="ui-dialog"])[data-ui-dialog-state~="alert"] header {
|
|
116
|
+
padding: var(--ui-space-5) var(--ui-space-5) var(--ui-space-3);
|
|
117
|
+
}
|
|
118
|
+
|
|
114
119
|
/* :host-qualified so page heading rules that reach in cannot outrank the dialog chrome. */
|
|
115
120
|
:scope:where([data-component~="ui-dialog"]) .title {
|
|
116
121
|
flex: 1;
|
|
@@ -238,6 +243,8 @@
|
|
|
238
243
|
|
|
239
244
|
/* Own the layout wrapper; nested component roots are outside these scoped rules. */
|
|
240
245
|
|
|
246
|
+
/* Alerts have no close target to add height above the title. */
|
|
247
|
+
|
|
241
248
|
/* :host-qualified so page heading rules that reach in cannot outrank the dialog chrome. */
|
|
242
249
|
|
|
243
250
|
/* A CSS-drawn X. */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, checkNumber, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, checkNumber, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-affordance-scope/ui-affordance-scope.js";
|
|
4
4
|
import "../styles/ui-affordance-scope.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],4];
|
|
7
7
|
const T1 = ["",[]];
|
|
8
8
|
let P0, P1;
|
|
9
|
-
const S = { n: ["engaged"], t: ["b"], f: import.meta.url, g: "ui-affordance-scope", b: generatedInputs, i: [false] };
|
|
9
|
+
const S = { n: ["engaged"], t: ["b"], f: import.meta.url, g: "ui-affordance-scope", a: (host, I) => C(host, I), b: generatedInputs, i: [false] };
|
|
10
10
|
const D = { g: "ui-affordance-scope", props: { "guide": { "required":false,"values":["dot","none"],"default":"dot", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "nearRadius": { "required":false,"default":16, c: checkNumber, t: "number", j: 0, m: "n" } } };
|
|
11
|
-
const C = (host) => controller
|
|
11
|
+
const C = (host) => activateModule(controller, host);
|
|
12
12
|
|
|
13
13
|
export function createUiAffordanceScope(options = {}, html) {
|
|
14
14
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -44,7 +44,7 @@ export function createUiAffordanceScope(options = {}, html) {
|
|
|
44
44
|
const I = { B };
|
|
45
45
|
const J = project(I, children, slots);
|
|
46
46
|
I.R = new Set();
|
|
47
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
47
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
48
48
|
manageProps(I);
|
|
49
49
|
return element;
|
|
50
50
|
}
|
package/vanilla/UiAvatar.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, writeUrlAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, writeUrlAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-avatar/ui-avatar.js";
|
|
4
4
|
import "../styles/ui-avatar.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",4,"\n ",["img",["class","image","alt","","aria-hidden","true"]],"\n ",["span",["class","fallback"],"\n ",["span",[],0],"\n ",["span",[],["ui-icon",["name","user-round"]]],"\n "],"\n "];
|
|
7
7
|
const T1 = ["",[]];
|
|
8
8
|
let P0, P1;
|
|
9
|
-
const S = { n: ["hasImage","hasAuthoredImage","initials","showGlyph"], t: ["b","b","s","b"], f: import.meta.url, g: "ui-avatar", b: generatedInputs, i: [false, false, "?", false] };
|
|
9
|
+
const S = { n: ["hasImage","hasAuthoredImage","initials","showGlyph"], t: ["b","b","s","b"], f: import.meta.url, g: "ui-avatar", a: (host, I) => C(host, I), b: generatedInputs, i: [false, false, "?", false] };
|
|
10
10
|
const D = { g: "ui-avatar", props: { "active": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "alt": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "decorative": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "fallback": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["circle","square"],"default":"circle", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "src": { "required":false, c: checkString, t: "string", j: 0, m: "s" } } };
|
|
11
|
-
const C = (host) => controller
|
|
11
|
+
const C = (host) => activateModule(controller, host);
|
|
12
12
|
|
|
13
13
|
export function createUiAvatar(options = {}, html) {
|
|
14
14
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -79,7 +79,7 @@ export function createUiAvatar(options = {}, html) {
|
|
|
79
79
|
const I = { B };
|
|
80
80
|
const J = project(I, children, slots);
|
|
81
81
|
I.R = new Set();
|
|
82
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
82
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
83
83
|
manageProps(I);
|
|
84
84
|
I.r["image"] = t1;
|
|
85
85
|
return element;
|
package/vanilla/UiAvatarGroup.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, toText, truthy, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, checkInteger, checkNumber, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, toText, truthy, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, checkInteger, checkNumber, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-avatar-group/ui-avatar-group.js";
|
|
4
4
|
import "../styles/ui-avatar-group.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",4,"\n ",["span",["class","overflow","role","img"],0],"\n "];
|
|
7
7
|
const T1 = ["",[]];
|
|
8
8
|
let P0, P1;
|
|
9
|
-
const S = { n: ["overflowCount","overflowAnnouncement"], t: ["i","s"], f: import.meta.url, g: "ui-avatar-group", b: generatedInputs, i: [0, ""] };
|
|
9
|
+
const S = { n: ["overflowCount","overflowAnnouncement"], t: ["i","s"], f: import.meta.url, g: "ui-avatar-group", a: (host, I) => C(host, I), b: generatedInputs, i: [0, ""] };
|
|
10
10
|
const D = { g: "ui-avatar-group", props: { "label": { "required":false,"default":"People", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":5, c: checkNumber, t: "number", j: 0, m: "n" }, "overflowLabel": { "required":false,"default":"{count} more", c: checkString, t: "string", j: 0, m: "s" }, "size": { "required":false,"values":["xs","sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "total": { "required":false, c: checkInteger, t: "integer", j: 0, m: "i" } } };
|
|
11
|
-
const C = (host) => controller
|
|
11
|
+
const C = (host) => activateModule(controller, host);
|
|
12
12
|
|
|
13
13
|
export function createUiAvatarGroup(options = {}, html) {
|
|
14
14
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -65,7 +65,7 @@ export function createUiAvatarGroup(options = {}, html) {
|
|
|
65
65
|
const I = { B };
|
|
66
66
|
const J = project(I, children, slots);
|
|
67
67
|
I.R = new Set();
|
|
68
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
68
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
69
69
|
manageProps(I);
|
|
70
70
|
I.r["overflow"] = t1;
|
|
71
71
|
return element;
|
package/vanilla/UiButton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, truthy, writeAttribute, writeUrlAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, armElement, replaceRoot, checkBoolean, checkFormat, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, truthy, writeAttribute, writeUrlAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, armElement, replaceRoot, checkBoolean, checkFormat, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-button/ui-button.js";
|
|
4
4
|
import "../styles/ui-button.css";
|
|
5
5
|
|
|
@@ -24,11 +24,11 @@ const T17 = ["span",["class","spinner-wrap"],["ui-spinner",["size","sm"]]];
|
|
|
24
24
|
const T18 = ["",[]];
|
|
25
25
|
const T19 = ["",[]];
|
|
26
26
|
let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19;
|
|
27
|
-
const S = { n: [], t: [], f: import.meta.url, g: "ui-button", b: generatedInputs };
|
|
27
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-button", a: (host, I) => C(host, I), b: generatedInputs };
|
|
28
28
|
const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","type","disabled","aria-disabled","aria-busy"]]];
|
|
29
29
|
const Q = [[],[],[],[]];
|
|
30
30
|
const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["button","a"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","neutral","danger","success","warning","info"],"default":"accent", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
31
|
-
const C = (host) => controller
|
|
31
|
+
const C = (host) => activateModule(controller, host);
|
|
32
32
|
|
|
33
33
|
export function createUiButton(options = {}, html) {
|
|
34
34
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -461,7 +461,7 @@ export function createUiButton(options = {}, html) {
|
|
|
461
461
|
};
|
|
462
462
|
const I = { B };
|
|
463
463
|
const J = project(I, children, slots);
|
|
464
|
-
attachGeneratedController(element, S, v, p,
|
|
464
|
+
attachGeneratedController(element, S, v, p, undefined, undefined, I);
|
|
465
465
|
manageProps(I);
|
|
466
466
|
return element;
|
|
467
467
|
}
|
package/vanilla/UiCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, readsChanged, rec, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, readsChanged, rec, toAttribute, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-checkbox/ui-checkbox.js";
|
|
4
4
|
import "../styles/ui-checkbox.css";
|
|
5
5
|
|
|
@@ -7,9 +7,9 @@ const T0 = ["",[],"\n ",["input",["type","checkbox"]],"\n ",["span",["clas
|
|
|
7
7
|
const T1 = ["",[]];
|
|
8
8
|
const T2 = ["",[]];
|
|
9
9
|
let P0, P1, P2;
|
|
10
|
-
const S = { n: ["internalChecked"], t: ["b"], f: import.meta.url, g: "ui-checkbox", d: { "change": [detailCheck(checkObject([["checked", checkBoolean, false], ["value", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, b: generatedInputs, i: [false] };
|
|
10
|
+
const S = { n: ["internalChecked"], t: ["b"], f: import.meta.url, g: "ui-checkbox", d: { "change": [detailCheck(checkObject([["checked", checkBoolean, false], ["value", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [false] };
|
|
11
11
|
const D = { g: "ui-checkbox", props: { "checked": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "indeterminate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "invalid": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "required": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false,"default":"on", c: checkString, t: "string", j: 0, m: "s" } } };
|
|
12
|
-
const C = (host) => controller
|
|
12
|
+
const C = (host) => activateModule(controller, host);
|
|
13
13
|
|
|
14
14
|
export function createUiCheckbox(options = {}, html) {
|
|
15
15
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -107,7 +107,7 @@ export function createUiCheckbox(options = {}, html) {
|
|
|
107
107
|
const I = { B };
|
|
108
108
|
const J = project(I, children, slots);
|
|
109
109
|
I.R = new Set();
|
|
110
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
110
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
111
111
|
manageProps(I);
|
|
112
112
|
I.r["input"] = t0;
|
|
113
113
|
I.r["description"] = t4;
|
package/vanilla/UiCombobox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, checkReference, clearRegion, KeyedList, negate, NONCONFORMING, readDeclared, readIndex, readMember, readsChanged, rec, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeText, dispatchDeclared, detailCheck, plainObject, dispose, IndexedList, PositionalList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, ABSENT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, warnOnce, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, checkReference, clearRegion, KeyedList, negate, NONCONFORMING, readDeclared, readIndex, readMember, readsChanged, rec, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeText, dispatchDeclared, detailCheck, plainObject, dispose, IndexedList, PositionalList, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, ABSENT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, checkUnknown, warnOnce, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-combobox/ui-combobox.js";
|
|
4
4
|
import "../styles/ui-combobox.css";
|
|
5
5
|
|
|
@@ -35,9 +35,9 @@ const K0 = (v0) => (plainObject(v0) && "id" in v0 && typeof v0["id"] == "string"
|
|
|
35
35
|
const K1 = (v0) => (plainObject(v0) && "id" in v0 && typeof v0["id"] == "string" && "value" in v0 && typeof v0["value"] == "string" && "label" in v0 && typeof v0["label"] == "string" && (v0["group"] == null || typeof v0["group"] == "string") && (v0["disabled"] == null || typeof v0["disabled"] == "boolean") && (v0["description"] == null || typeof v0["description"] == "string") && (v0["tag"] == null || (plainObject(v0["tag"]) && "label" in v0["tag"] && typeof v0["tag"]["label"] == "string" && (v0["tag"]["tone"] == null || ((typeof v0["tag"]["tone"] == "string" && keywordFormat(v0["tag"]["tone"])) && ["neutral","accent","info","success","warning","danger"].includes(v0["tag"]["tone"]))) && (v0["tag"]["color"] == null || typeof v0["tag"]["color"] == "string") && Object.keys(v0["tag"]).every((v1) => ["label","tone","color"].includes(v1)))) && (v0["selected"] == null || typeof v0["selected"] == "boolean") && Object.keys(v0).every((v1) => ["id","value","label","group","disabled","description","tag","selected"].includes(v1)));
|
|
36
36
|
let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, P23, P24, P25, P26, P27;
|
|
37
37
|
const E = new Map();
|
|
38
|
-
const S = { n: ["internalItems","raw","display","selected","expanded","rows","active","helpOpen","lookupError","validation","uid","submitted","groups","creatable","createIndex","message","statusText","validationStatus"], t: [["l",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]],"s","s","s","b",["l",["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]],"i","b","s",["o",["status",["p",formatOf(keywordFormat)],"touched","b","dirty","b","issues",["l",["o",["message","s"]]]],1],"s","s",["l",["o",["name","s","role",["p",formatOf(keywordFormat)],"label","s","rows",["l",["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]],"index","i","labelledBy","s","detail","s","option",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]],"selected","b"]]]]]]]],"b","i","s","s","s"], f: import.meta.url, g: "ui-combobox", d: { "query-change": [detailCheck(checkObject([["query", checkString, false], ["display", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "value-change": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "items-change": [detailCheck(checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false))), true, true, false], "free-entry": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "create-entry": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "validation-change": [detailCheck(checkObject([["status", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["pristine","pending","valid","warning","error"]}), false], ["touched", checkBoolean, false], ["dirty", checkBoolean, false], ["issues", checkList(checkObject([["message", checkString, false], ["path", checkList(checkUnknown), true], ["severity", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["error","warning"]}), true]], false)), false], ["output", checkUnknown, true]], false)), true, true, false], "options-change": [detailCheck(checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false))), true, true, false], "add-item": [detailCheck(checkObject([["item", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), false], ["index", checkInteger, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "remove-item": [detailCheck(checkObject([["item", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), false], ["index", checkInteger, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "create-item": [detailCheck(checkObject([["query", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "selected-values-change": [detailCheck(checkObject([["selectedValues", checkList(checkString), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, b: generatedInputs, i: [[], "", "", null, false, [], null, false, "", { "status": "pristine", "touched": false, "dirty": false, "issues": [] }, "", "", [], false, 0, "", "", "pristine"] };
|
|
38
|
+
const S = { n: ["internalItems","raw","display","selected","expanded","rows","active","helpOpen","lookupError","validation","uid","submitted","groups","creatable","createIndex","message","statusText","validationStatus"], t: [["l",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]],"s","s","s","b",["l",["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]],"i","b","s",["o",["status",["p",formatOf(keywordFormat)],"touched","b","dirty","b","issues",["l",["o",["message","s"]]]],1],"s","s",["l",["o",["name","s","role",["p",formatOf(keywordFormat)],"label","s","rows",["l",["o",["id","s","value","s","label","s","group","s","disabled","b","selected","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]],"index","i","labelledBy","s","detail","s","option",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]],"selected","b"]]]]]]]],"b","i","s","s","s"], f: import.meta.url, g: "ui-combobox", d: { "query-change": [detailCheck(checkObject([["query", checkString, false], ["display", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "value-change": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "items-change": [detailCheck(checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false))), true, true, false], "free-entry": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "create-entry": [detailCheck(checkObject([["value", checkString, true], ["query", checkString, false], ["option", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), true], ["kind", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["selection","clear","free-entry","create"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "validation-change": [detailCheck(checkObject([["status", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["pristine","pending","valid","warning","error"]}), false], ["touched", checkBoolean, false], ["dirty", checkBoolean, false], ["issues", checkList(checkObject([["message", checkString, false], ["path", checkList(checkUnknown), true], ["severity", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["error","warning"]}), true]], false)), false], ["output", checkUnknown, true]], false)), true, true, false], "options-change": [detailCheck(checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false))), true, true, false], "add-item": [detailCheck(checkObject([["item", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), false], ["index", checkInteger, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "remove-item": [detailCheck(checkObject([["item", checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false), false], ["index", checkInteger, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "create-item": [detailCheck(checkObject([["query", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "selected-values-change": [detailCheck(checkObject([["selectedValues", checkList(checkString), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [[], "", "", null, false, [], null, false, "", { "status": "pristine", "touched": false, "dirty": false, "issues": [] }, "", "", [], false, 0, "", "", "pristine"] };
|
|
39
39
|
const D = { g: "ui-combobox", props: { "allowCreate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "allowFreeText": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "autoHighlight": { "required":false,"values":["none","single"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "clearQueryOnBlur": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "clearable": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disclosure": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "filter": { "required":false,"values":["label","none"],"default":"label", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "help": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "invalid": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "items": { "required":false, c: checkList(checkObject([["id", checkString, false], ["value", checkString, false], ["label", checkString, false], ["group", checkString, true], ["disabled", checkBoolean, true], ["description", checkString, true], ["tag", checkObject([["label", checkString, false], ["tone", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","accent","info","success","warning","danger"]}), true], ["color", checkString, true]], false), true]], false)), j: 1, m: ["l",["o",["id","s","value","s","label","s","group","s","disabled","b","description","s","tag",["o",["label","s","tone",["p",formatOf(keywordFormat)],"color","s"]]]]] }, "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "labelVisibility": { "required":false,"values":["visible","sr-only"],"default":"visible", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "multiple": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "openOnFocus": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "placeholder": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "query": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "readonly": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "required": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "selectOnTab": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "selectedValues": { "required":false, c: checkList(checkString), j: 1, m: ["l","s"] }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tokenSeparators": { "required":false, c: checkList(checkString), j: 1, m: ["l","s"] }, "value": { "required":false, c: checkString, t: "string", j: 0, m: "s" } } };
|
|
40
|
-
const C = (host) => controller
|
|
40
|
+
const C = (host) => activateModule(controller, host);
|
|
41
41
|
|
|
42
42
|
export function createUiCombobox(options = {}, html) {
|
|
43
43
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -797,7 +797,7 @@ export function createUiCombobox(options = {}, html) {
|
|
|
797
797
|
const I = { B };
|
|
798
798
|
const J = project(I, children, slots);
|
|
799
799
|
I.R = new Set();
|
|
800
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
800
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
801
801
|
manageProps(I);
|
|
802
802
|
I.r["field"] = t4;
|
|
803
803
|
I.r["input"] = t8;
|
package/vanilla/UiContextMenu.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, dispatchDeclared, detailCheck, dispose, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, dispatchDeclared, detailCheck, dispose, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-context-menu/ui-context-menu.js";
|
|
4
4
|
import "../styles/ui-context-menu.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],["div",["class","menu","role","menu","aria-orientation","vertical"],4]];
|
|
7
7
|
const T1 = ["",[]];
|
|
8
8
|
let P0, P1;
|
|
9
|
-
const S = { n: ["internalOpen"], t: ["b"], f: import.meta.url, g: "ui-context-menu", d: { "open": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "select": [detailCheck(checkObject([["value", checkString, false], ["checked", checkBoolean, true], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, b: generatedInputs, i: [false] };
|
|
9
|
+
const S = { n: ["internalOpen"], t: ["b"], f: import.meta.url, g: "ui-context-menu", d: { "open": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "select": [detailCheck(checkObject([["value", checkString, false], ["checked", checkBoolean, true], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [false] };
|
|
10
10
|
const D = { g: "ui-context-menu", props: { "for": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "open": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
|
|
11
|
-
const C = (host) => controller
|
|
11
|
+
const C = (host) => activateModule(controller, host);
|
|
12
12
|
|
|
13
13
|
export function createUiContextMenu(options = {}, html) {
|
|
14
14
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -40,7 +40,7 @@ export function createUiContextMenu(options = {}, html) {
|
|
|
40
40
|
const I = { B };
|
|
41
41
|
const J = project(I, children, slots);
|
|
42
42
|
I.R = new Set();
|
|
43
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
43
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
44
44
|
manageProps(I);
|
|
45
45
|
I.r["menu"] = t0;
|
|
46
46
|
return element;
|
package/vanilla/UiDialog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-dialog/ui-dialog.js";
|
|
4
4
|
import "../styles/ui-dialog.css";
|
|
5
5
|
|
|
@@ -8,9 +8,9 @@ const T1 = ["h2",["class","title"],0];
|
|
|
8
8
|
const T2 = ["",[]];
|
|
9
9
|
const T3 = ["",[]];
|
|
10
10
|
let P0, P1, P2, P3;
|
|
11
|
-
const S = { n: ["internalOpen","accessibleLabel"], t: ["b","s"], f: import.meta.url, g: "ui-dialog", d: { "open": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, b: generatedInputs, i: [false, "Dialog"] };
|
|
11
|
+
const S = { n: ["internalOpen","accessibleLabel"], t: ["b","s"], f: import.meta.url, g: "ui-dialog", d: { "open": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [false, "Dialog"] };
|
|
12
12
|
const D = { g: "ui-dialog", props: { "alert": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "closedby": { "required":false,"values":["any","closerequest","none"], c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "for": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "label": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "modal": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "modeless": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "open": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg","fullscreen"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
13
|
-
const C = (host) => controller
|
|
13
|
+
const C = (host) => activateModule(controller, host);
|
|
14
14
|
|
|
15
15
|
export function createUiDialog(options = {}, html) {
|
|
16
16
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -92,7 +92,7 @@ export function createUiDialog(options = {}, html) {
|
|
|
92
92
|
const I = { B };
|
|
93
93
|
const J = project(I, children, slots);
|
|
94
94
|
I.R = new Set();
|
|
95
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
95
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
96
96
|
manageProps(I);
|
|
97
97
|
I.r["header"] = t0;
|
|
98
98
|
I.r["close"] = t2;
|
package/vanilla/UiDisclosure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkInteger, checkObject, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkConstrained, checkFormat, checkInteger, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-disclosure/ui-disclosure.js";
|
|
4
4
|
import "../styles/ui-disclosure.css";
|
|
5
5
|
|
|
@@ -9,9 +9,9 @@ const T2 = ["",[],0];
|
|
|
9
9
|
const T3 = ["",[],["span",["class","chevron"]]];
|
|
10
10
|
const T4 = ["",[]];
|
|
11
11
|
let P0, P1, P2, P3, P4;
|
|
12
|
-
const S = { n: ["internalOpen","contentId","headingRole","headingAriaLevel"], t: ["b","s",["p",formatOf(keywordFormat)],"i"], f: import.meta.url, g: "ui-disclosure", d: { "open": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, b: generatedInputs, i: [false, "", null, null] };
|
|
12
|
+
const S = { n: ["internalOpen","contentId","headingRole","headingAriaLevel"], t: ["b","s",["p",formatOf(keywordFormat)],"i"], f: import.meta.url, g: "ui-disclosure", d: { "open": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "close": [detailCheck(checkObject([["open", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["action","programmatic","light-dismiss","escape"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [false, "", null, null] };
|
|
13
13
|
const D = { g: "ui-disclosure", props: { "density": { "required":false,"values":["comfortable","compact"],"default":"comfortable", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "fill": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "headingLevel": { "required":false,"default":0, c: checkInteger, t: "integer", j: 0, m: "i" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "open": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "requiredOpen": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "summary": { "required":false,"default":"Details", c: checkString, t: "string", j: 0, m: "s" }, "variant": { "required":false,"values":["plain","navigation"],"default":"plain", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
14
|
-
const C = (host) => controller
|
|
14
|
+
const C = (host) => activateModule(controller, host);
|
|
15
15
|
|
|
16
16
|
export function createUiDisclosure(options = {}, html) {
|
|
17
17
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -121,7 +121,7 @@ export function createUiDisclosure(options = {}, html) {
|
|
|
121
121
|
const I = { B };
|
|
122
122
|
const J = project(I, children, slots);
|
|
123
123
|
I.R = new Set();
|
|
124
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
124
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
125
125
|
manageProps(I);
|
|
126
126
|
I.r["heading"] = t0;
|
|
127
127
|
I.r["trigger"] = t1;
|
package/vanilla/UiEditable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, clearRegion, readsChanged, rec, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, clearRegion, readsChanged, rec, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editable/ui-editable.js";
|
|
4
4
|
import "../styles/ui-editable.css";
|
|
5
5
|
|
|
@@ -7,9 +7,9 @@ const T0 = ["",[],"\n ",["div",["class","field"],"\n ",["button",["class
|
|
|
7
7
|
const T1 = ["span",["class","hint","aria-hidden","true"],0];
|
|
8
8
|
const T2 = ["div",["class","actions"],"\n ",["button",["class","save","type","button"],0],"\n ",["button",["class","cancel","type","button"],0],"\n "];
|
|
9
9
|
let P0, P1, P2;
|
|
10
|
-
const S = { n: ["internalEdit","internalValue","draft"], t: ["b","s","s"], f: import.meta.url, g: "ui-editable", d: { "input": [detailCheck(checkObject([["value", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkString, false], ["previousValue", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "edit-change": [detailCheck(checkObject([["edit", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["activate","commit","cancel","light-dismiss","escape","programmatic"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, b: generatedInputs, i: [false, "", ""] };
|
|
10
|
+
const S = { n: ["internalEdit","internalValue","draft"], t: ["b","s","s"], f: import.meta.url, g: "ui-editable", d: { "input": [detailCheck(checkObject([["value", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "change": [detailCheck(checkObject([["value", checkString, false], ["previousValue", checkString, false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "edit-change": [detailCheck(checkObject([["edit", checkBoolean, false], ["reason", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["activate","commit","cancel","light-dismiss","escape","programmatic"]}), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [false, "", ""] };
|
|
11
11
|
const D = { g: "ui-editable", props: { "actions": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "cancelLabel": { "required":false,"default":"Cancel", c: checkString, t: "string", j: 0, m: "s" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "edit": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "hint": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "label": { "required":false,"default":"Edit value", c: checkString, t: "string", j: 0, m: "s" }, "maxLength": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "placeholder": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "required": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "saveLabel": { "required":false,"default":"Save", c: checkString, t: "string", j: 0, m: "s" }, "value": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
|
|
12
|
-
const C = (host) => controller
|
|
12
|
+
const C = (host) => activateModule(controller, host);
|
|
13
13
|
|
|
14
14
|
export function createUiEditable(options = {}, html) {
|
|
15
15
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -118,7 +118,7 @@ export function createUiEditable(options = {}, html) {
|
|
|
118
118
|
const R = { n: element, a0: t1, a1: t3, a3: t5, v0: null, v1: "", v2: undefined, v3: null, v4: null, v5: null, v6: null, v7: undefined, a2: t4, e0: t4.nextSibling, b0: undefined, a4: t6, e1: t6.nextSibling, b1: undefined };
|
|
119
119
|
const I = { B };
|
|
120
120
|
I.R = new Set();
|
|
121
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
121
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
122
122
|
manageProps(I);
|
|
123
123
|
I.r["preview"] = t1;
|
|
124
124
|
I.r["input"] = t5;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-block-actions/ui-editor-block-actions.js";
|
|
4
4
|
import "../styles/ui-editor-block-actions.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",["ui-menu",["aria-label","Block actions"],["ui-menu-item",["value","insert-below"],"Insert paragraph below"],"\n ",["ui-menu-item",["value","duplicate"],"Duplicate block"],"\n ",["ui-menu-item",["value","delete"],"Delete block"]],"\n "];
|
|
7
7
|
let P0;
|
|
8
|
-
const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-block-actions", d: { "action": [detailCheck(checkObject([["action", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["insert-below","duplicate","delete"]}), false]], false)), true, true, false] }, x: dispatchDeclared, b: generatedInputs };
|
|
8
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-block-actions", d: { "action": [detailCheck(checkObject([["action", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["insert-below","duplicate","delete"]}), false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
|
|
9
9
|
const D = { g: "ui-editor-block-actions", props: { "for": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "placement": { "required":false,"values":["bottom-start","top-start"],"default":"bottom-start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
10
|
-
const C = (host) => controller
|
|
10
|
+
const C = (host) => activateModule(controller, host);
|
|
11
11
|
|
|
12
12
|
export function createUiEditorBlockActions(options = {}, html) {
|
|
13
13
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -35,7 +35,7 @@ export function createUiEditorBlockActions(options = {}, html) {
|
|
|
35
35
|
const t0 = element.firstChild.nextSibling;
|
|
36
36
|
const R = { a0: t0, v0: null, v1: null };
|
|
37
37
|
const I = { B };
|
|
38
|
-
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)),
|
|
38
|
+
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
39
39
|
manageProps(I);
|
|
40
40
|
return element;
|
|
41
41
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-chip-editor/ui-editor-chip-editor.js";
|
|
4
4
|
import "../styles/ui-editor-chip-editor.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",["ui-stack",["gap","s"],["ui-input",["data-chip-label","","size","sm","placeholder","Set a label","aria-label","Chip text"]],"\n ",["ui-radio-group",["label","Chip color","label-visibility","sr-only"],["ui-swatch",["tone","neutral"]],"\n ",["ui-swatch",["tone","blue"]],"\n ",["ui-swatch",["tone","green"]],"\n ",["ui-swatch",["tone","yellow"]],"\n ",["ui-swatch",["tone","red"]],"\n ",["ui-swatch",["tone","purple"]]]],"\n "];
|
|
7
7
|
let P0;
|
|
8
|
-
const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-chip-editor", d: { "label": [detailCheck(checkObject([["label", checkString, false]], false)), true, true, false], "color": [detailCheck(checkObject([["color", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","blue","green","yellow","red","purple"]}), false]], false)), true, true, false], "done": [detailCheck(checkRecord(checkUnknown)), true, true, false] }, x: dispatchDeclared, b: generatedInputs };
|
|
8
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-chip-editor", d: { "label": [detailCheck(checkObject([["label", checkString, false]], false)), true, true, false], "color": [detailCheck(checkObject([["color", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["neutral","blue","green","yellow","red","purple"]}), false]], false)), true, true, false], "done": [detailCheck(checkRecord(checkUnknown)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
|
|
9
9
|
const D = { g: "ui-editor-chip-editor", props: { "color": { "required":false,"values":["neutral","blue","green","yellow","red","purple"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
|
|
10
|
-
const C = (host) => controller
|
|
10
|
+
const C = (host) => activateModule(controller, host);
|
|
11
11
|
|
|
12
12
|
export function createUiEditorChipEditor(options = {}, html) {
|
|
13
13
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -39,7 +39,7 @@ export function createUiEditorChipEditor(options = {}, html) {
|
|
|
39
39
|
const t2 = t1.nextSibling.nextSibling;
|
|
40
40
|
const R = { a0: t1, a1: t2, v0: null, v1: null };
|
|
41
41
|
const I = { B };
|
|
42
|
-
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)),
|
|
42
|
+
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
43
43
|
manageProps(I);
|
|
44
44
|
return element;
|
|
45
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, KeyedList, readMember, toAttribute, toText, trackContainer, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkList, checkObject, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, KeyedList, readMember, toAttribute, toText, trackContainer, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkList, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-code-language/ui-editor-code-language.js";
|
|
4
4
|
import "../styles/ui-editor-code-language.css";
|
|
5
5
|
|
|
@@ -7,9 +7,9 @@ const T0 = ["",[],"\n ",["ui-combobox",["label","Code language","label-visibi
|
|
|
7
7
|
const T1 = ["option",[],0];
|
|
8
8
|
let P0, P1;
|
|
9
9
|
const E = new Map();
|
|
10
|
-
const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-code-language", d: { "language": [detailCheck(checkObject([["value", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, b: generatedInputs };
|
|
10
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-editor-code-language", d: { "language": [detailCheck(checkObject([["value", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs };
|
|
11
11
|
const D = { g: "ui-editor-code-language", props: { "languages": { "required":false, c: checkList(checkObject([["value", checkString, false], ["label", checkString, false]], false)), j: 1, m: ["l",["o",["value","s","label","s"]]] }, "value": { "required":false,"default":"auto", c: checkString, t: "string", j: 0, m: "s" } } };
|
|
12
|
-
const C = (host) => controller
|
|
12
|
+
const C = (host) => activateModule(controller, host);
|
|
13
13
|
|
|
14
14
|
export function createUiEditorCodeLanguage(options = {}, html) {
|
|
15
15
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -53,7 +53,7 @@ export function createUiEditorCodeLanguage(options = {}, html) {
|
|
|
53
53
|
const t1 = t0.firstChild;
|
|
54
54
|
const R = { a0: t0, v0: null, L0: new KeyedList(t1, t1.nextSibling, m1, p1, (o) => readMember(o, "value"), "language") };
|
|
55
55
|
const I = { B };
|
|
56
|
-
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)),
|
|
56
|
+
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
57
57
|
manageProps(I);
|
|
58
58
|
return element;
|
|
59
59
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.67 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
2
|
+
import { attachGeneratedController, buildTemplate, NONCONFORMING, readIndex, textCall, toAttribute, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkConstrained, checkFormat, checkObject, checkRecord, checkString, checkUnknown, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-image-toolbar/ui-editor-image-toolbar.js";
|
|
4
4
|
import "../styles/ui-editor-image-toolbar.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",["ui-text",["as","div","font","sans"],["ui-editor-toolbar",["floating","","aria-label","Image actions"],["ui-icon-button",["label","Image in line","size","sm","data-placement","block"],["ui-icon",["name","panel-top"]]],"\n ",["ui-icon-button",["label","Center image","size","sm","data-placement","center"],["ui-icon",["name","align-center"]]],"\n ",["ui-icon-button",["label","Wrap text to the right","size","sm","data-placement","wrap-left"],["ui-icon",["name","panel-left"]]],"\n ",["ui-icon-button",["label","Wrap text to the left","size","sm","data-placement","wrap-right"],["ui-icon",["name","panel-right"]]],"\n ",["ui-icon-button",["label","Image description","size","sm","variant","ghost"],["ui-icon",["name","file-text"]]],"\n ",["ui-icon-button",["label","Delete image","size","sm","variant","ghost","data-action","delete"],["ui-icon",["name","trash"]]]],"\n ",["ui-tooltip",[],"Image in line"],"\n ",["ui-tooltip",[],"Center image"],"\n ",["ui-tooltip",[],"Wrap text to the right"],"\n ",["ui-tooltip",[],"Wrap text to the left"],"\n ",["ui-tooltip",[],"Image description"],"\n ",["ui-tooltip",[],"Delete image"],"\n ",["ui-popover",["size","sm","aria-label","Image description"],["form",["aria-label","Image description"],"\n ",["ui-stack",["gap","s"],["ui-form-field",[],["label",["slot","label"],"Alt text"],["ui-input",["size","sm"]]],"\n ",["ui-text",["size","xs","tone","secondary"],"Describe the image for people using a screen reader."],"\n ",["ui-cluster",["justify","end","gap","xs"],["ui-button",["type","button","variant","ghost","tone","neutral","size","sm","data-action","cancel"],"Cancel"],"\n ",["ui-button",["type","submit","variant","solid","size","sm"],"Save"]]],"\n "]]],"\n "];
|
|
7
7
|
let P0;
|
|
8
|
-
const S = { n: ["base","describing","draft"], t: ["s","b","s"], f: import.meta.url, g: "ui-editor-image-toolbar", d: { "placement": [detailCheck(checkObject([["placement", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["block","center","wrap-left","wrap-right"]}), false]], false)), true, true, false], "describe": [detailCheck(checkObject([["alt", checkString, false]], false)), true, true, false], "delete": [detailCheck(checkRecord(checkUnknown)), true, true, false] }, x: dispatchDeclared, b: generatedInputs, i: ["ui-editor-image-toolbar", false, ""] };
|
|
8
|
+
const S = { n: ["base","describing","draft"], t: ["s","b","s"], f: import.meta.url, g: "ui-editor-image-toolbar", d: { "placement": [detailCheck(checkObject([["placement", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["block","center","wrap-left","wrap-right"]}), false]], false)), true, true, false], "describe": [detailCheck(checkObject([["alt", checkString, false]], false)), true, true, false], "delete": [detailCheck(checkRecord(checkUnknown)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: ["ui-editor-image-toolbar", false, ""] };
|
|
9
9
|
const D = { g: "ui-editor-image-toolbar", props: { "alt": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "placement": { "required":false,"values":["block","center","wrap-left","wrap-right"],"default":"block", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "target": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" } } };
|
|
10
|
-
const C = (host) => controller
|
|
10
|
+
const C = (host) => activateModule(controller, host);
|
|
11
11
|
|
|
12
12
|
export function createUiEditorImageToolbar(options = {}, html) {
|
|
13
13
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
@@ -160,7 +160,7 @@ export function createUiEditorImageToolbar(options = {}, html) {
|
|
|
160
160
|
const R = { a0: t2, a1: t3, a2: t4, a3: t5, a4: t6, a5: t7, a6: t8, a7: t9, a8: t10, a9: t11, a10: t12, a11: t13, a12: t14, a13: t16, a14: t17, v0: null, v1: null, v2: null, v3: null, v4: null, v5: null, v6: null, v7: null, v8: null, v9: null, v10: null, v11: null, v12: null, v13: null, v14: null, v15: null, v16: null, v17: null, v18: null, v19: null, v20: null, v21: null, v22: null, v23: null, v24: null };
|
|
161
161
|
const I = { B };
|
|
162
162
|
I.R = new Set();
|
|
163
|
-
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); },
|
|
163
|
+
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
164
164
|
manageProps(I);
|
|
165
165
|
I.r["description"] = t14;
|
|
166
166
|
I.r["alt"] = t17;
|