@threadlabs/looma 0.50.2 → 0.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/shared/binding-inputs.js +5 -0
- package/components/shared/calendar-model.js +84 -0
- package/components/shared/date-input-segments.js +25 -0
- package/components/shared/date-navigation.js +35 -0
- package/components/shared/date-picker.js +38 -0
- package/components/shared/date-range.js +61 -0
- package/components/shared/date-time.js +273 -0
- package/components/shared/external-value.js +12 -0
- package/components/shared/form-reset.js +1 -1
- package/components/shared/icons.js +2 -0
- package/components/shared/initial-field-value.js +14 -0
- package/components/shared/input-segments.js +190 -0
- package/components/shared/prepared-module.js +19 -0
- package/components/ui-button/ui-button.html +31 -10
- package/components/ui-calendar/calendar-source.js +34 -0
- package/components/ui-calendar/ui-calendar.html +221 -0
- package/components/ui-calendar/ui-calendar.js +185 -0
- package/components/ui-cluster/ui-cluster.html +5 -2
- package/components/ui-date-field/ui-date-field.html +143 -0
- package/components/ui-date-field/ui-date-field.js +258 -0
- package/components/ui-date-picker/ui-date-picker.html +213 -0
- package/components/ui-date-picker/ui-date-picker.js +153 -0
- package/components/ui-date-range-picker/ui-date-range-picker.html +202 -0
- package/components/ui-date-range-picker/ui-date-range-picker.js +224 -0
- package/components/ui-file-input/files.js +15 -0
- package/components/ui-file-input/ui-file-input.html +79 -0
- package/components/ui-file-input/ui-file-input.js +108 -0
- package/components/ui-form-field/ui-form-field.js +2 -2
- package/components/ui-grid/ui-grid.html +74 -5
- package/components/ui-icon/ui-icon.html +8 -0
- package/components/ui-icon-button/ui-icon-button.html +22 -7
- package/components/ui-input/ui-input.html +10 -1
- package/components/ui-input/ui-input.js +11 -5
- package/components/ui-input-group/ui-input-group.html +2 -2
- package/components/ui-input-group/ui-input-group.js +6 -5
- package/components/ui-popover/ui-popover.html +2 -0
- package/components/ui-popover/ui-popover.js +5 -1
- package/components/ui-select/ui-select.html +8 -3
- package/components/ui-time-field/ui-time-field.html +62 -0
- package/components/ui-time-field/ui-time-field.js +21 -0
- package/components/ui-time-picker/time-options.js +25 -0
- package/components/ui-time-picker/ui-time-picker.html +160 -0
- package/components/ui-time-picker/ui-time-picker.js +132 -0
- package/dist/index.js +68 -61
- package/docs/README.md +2 -2
- package/docs/catalog.json +14346 -6343
- package/docs/documentation.css +1 -1
- package/docs/framework-examples.mjs +13 -2
- package/docs/site.mjs +1 -1
- package/editor/components.css +62 -29
- package/editor/icons.d.ts +2 -0
- package/editor/index.js +602 -141
- package/package.json +6 -4
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +19 -7
- package/styles/ui-calendar.css +1 -0
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card-group.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +4 -1
- package/styles/ui-color-picker.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-compact-content.css +1 -1
- package/styles/ui-compact-editor.css +1 -1
- package/styles/ui-compact-mark.css +1 -1
- package/styles/ui-compact-node.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-curve-editor.css +1 -1
- package/styles/ui-cycle-button.css +1 -1
- package/styles/ui-date-field.css +1 -0
- package/styles/ui-date-picker.css +1 -0
- package/styles/ui-date-range-picker.css +1 -0
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-footnote-editor.css +1 -1
- package/styles/ui-editor-formatting-tools.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-editor.css +1 -1
- package/styles/ui-file-input.css +1 -0
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +44 -1
- package/styles/ui-icon-button.css +19 -5
- package/styles/ui-icon.css +5 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +3 -3
- package/styles/ui-input.css +1 -1
- package/styles/ui-light-editor.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-number-input.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +9 -4
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-site-header.css +19 -19
- package/styles/ui-skeleton.css +1 -1
- package/styles/ui-slider.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-time-field.css +1 -0
- package/styles/ui-time-picker.css +1 -0
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/tokens.css +4 -0
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +2 -1
- package/vanilla/UiButton.js +128 -108
- package/vanilla/UiCalendar.d.ts +50 -0
- package/vanilla/UiCalendar.js +477 -0
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +2 -2
- package/vanilla/UiCluster.js +2 -2
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +1 -1
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +1 -1
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +1 -1
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +1 -1
- package/vanilla/UiCompactNode.d.ts +1 -1
- package/vanilla/UiCompactNode.js +1 -1
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +1 -1
- package/vanilla/UiCycleButton.d.ts +1 -1
- package/vanilla/UiCycleButton.js +1 -1
- package/vanilla/UiDateField.d.ts +52 -0
- package/vanilla/UiDateField.js +208 -0
- package/vanilla/UiDatePicker.d.ts +63 -0
- package/vanilla/UiDatePicker.js +360 -0
- package/vanilla/UiDateRangePicker.d.ts +60 -0
- package/vanilla/UiDateRangePicker.js +418 -0
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +1 -1
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +1 -1
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +1 -1
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +1 -1
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +1 -1
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +1 -1
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +1 -1
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +1 -1
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +1 -1
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFileInput.d.ts +36 -0
- package/vanilla/UiFileInput.js +209 -0
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +7 -2
- package/vanilla/UiGrid.js +85 -19
- package/vanilla/UiIcon.d.ts +2 -1
- package/vanilla/UiIcon.js +10 -10
- package/vanilla/UiIconButton.d.ts +2 -2
- package/vanilla/UiIconButton.js +2 -2
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +1 -1
- package/vanilla/UiInput.d.ts +2 -1
- package/vanilla/UiInput.js +11 -11
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +1 -1
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +1 -1
- package/vanilla/UiPopover.d.ts +2 -1
- package/vanilla/UiPopover.js +4 -4
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +1 -1
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +1 -1
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +1 -1
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +1 -1
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +1 -1
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiTimeField.d.ts +42 -0
- package/vanilla/UiTimeField.js +112 -0
- package/vanilla/UiTimePicker.d.ts +48 -0
- package/vanilla/UiTimePicker.js +372 -0
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +1 -1
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +1 -1
- package/vanilla/index.js +7 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorInsertTableGridEventMap {
|
|
3
3
|
insert: CustomEvent<{ readonly rows: number; readonly cols: number; readonly withHeaderRow: boolean }>;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, KeyedList, readMember, readsChanged, rec, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, checkBoolean, checkInteger, checkObject, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js";
|
|
4
4
|
import "../styles/ui-editor-insert-table-grid.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorLinkCardEventMap {
|
|
3
3
|
edit: CustomEvent<Readonly<Record<string, unknown>>>;
|
|
4
4
|
remove: CustomEvent<Readonly<Record<string, unknown>>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, toText, writeAttribute, writeUrlAttribute, computedCycle, dispatchDeclared, detailCheck, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkRecord, checkString, checkUnknown, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-link-card/ui-editor-link-card.js";
|
|
4
4
|
import "../styles/ui-editor-link-card.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorLinkFormEventMap {
|
|
3
3
|
destination: CustomEvent<{ readonly value: string }>;
|
|
4
4
|
text: CustomEvent<{ readonly text: string }>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkFormat, checkList, checkObject, checkRecord, checkString, checkUnknown, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-link-form/ui-editor-link-form.js";
|
|
4
4
|
import "../styles/ui-editor-link-form.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorMentionMenuEventMap {
|
|
3
3
|
highlight: CustomEvent<{ readonly index: number; readonly value: string }>;
|
|
4
4
|
select: CustomEvent<{ readonly index: number; readonly value: string }>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, IndexedList, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkInteger, checkList, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-mention-menu/ui-editor-mention-menu.js";
|
|
4
4
|
import "../styles/ui-editor-mention-menu.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorMentionMenuItemEventMap {
|
|
3
3
|
}
|
|
4
4
|
export interface UiEditorMentionMenuItemElement extends HTMLLIElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-editor-mention-menu-item.css";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorSlashMenuEventMap {
|
|
3
3
|
highlight: CustomEvent<{ readonly index: number; readonly value: string }>;
|
|
4
4
|
select: CustomEvent<{ readonly index: number; readonly value: string }>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, readMember, toAttribute, toText, trackContainer, writeAttribute, dispatchDeclared, detailCheck, dispose, IndexedList, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkInteger, checkList, checkNumber, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-slash-menu/ui-editor-slash-menu.js";
|
|
4
4
|
import "../styles/ui-editor-slash-menu.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorSlashMenuGroupEventMap {
|
|
3
3
|
}
|
|
4
4
|
export interface UiEditorSlashMenuGroupElement extends HTMLLIElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-editor-slash-menu-group.css";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, toAttribute, toText, truthy, writeAttribute, dispose, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-editor-slash-menu-item.css";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-editor-surface.css";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorTableContextMenuEventMap {
|
|
3
3
|
action: CustomEvent<{ readonly action: "align-left" | "align-center" | "align-right" | "background-none" | "background-gray" | "background-yellow" | "background-blue" | "background-green" | "background-red" | "add-row-before" | "add-row-after" | "add-column-before" | "add-column-after" | "toggle-header-row" | "toggle-header-column" | "move-row-up" | "move-row-down" | "move-column-left" | "move-column-right" | "clear-cells" | "merge-cells" | "split-cell" | "delete-row" | "delete-column" | "delete-table" }>;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, RangedKeyedList, checkBoolean, checkConstrained, checkFormat, checkList, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-table-context-menu/ui-editor-table-context-menu.js";
|
|
4
4
|
import "../styles/ui-editor-table-context-menu.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorTableOverlayEventMap {
|
|
3
3
|
"add-row-before": CustomEvent<{ readonly boundaryIndex: number }>;
|
|
4
4
|
"add-row-after": CustomEvent<{ readonly boundaryIndex: number }>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, checkReference, clearRegion, KeyedList, NONCONFORMING, readDeclared, readMember, toAttribute, toText, trackContainer, truthy, visitSelected, writeAttribute, dispatchDeclared, detailCheck, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkInteger, checkList, checkNumber, checkObject, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-table-overlay/ui-editor-table-overlay.js";
|
|
4
4
|
import "../styles/ui-editor-table-overlay.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiEditorTableToolbarEventMap {
|
|
3
3
|
action: CustomEvent<{ readonly action: "align-left" | "align-center" | "align-right" | "background-none" | "background-gray" | "background-yellow" | "background-blue" | "background-green" | "background-red" | "add-row-before" | "add-row-after" | "add-column-before" | "add-column-after" | "toggle-header-row" | "toggle-header-column" | "move-row-up" | "move-row-down" | "move-column-left" | "move-column-right" | "clear-cells" | "merge-cells" | "split-cell" | "delete-row" | "delete-column" | "delete-table" }>;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, clearRegion, KeyedList, NONCONFORMING, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, checkBoolean, checkConstrained, checkFormat, checkList, checkObject, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-table-toolbar/ui-editor-table-toolbar.js";
|
|
4
4
|
import "../styles/ui-editor-table-toolbar.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-editor-toolbar/ui-editor-toolbar.js";
|
|
4
4
|
import "../styles/ui-editor-toolbar.css";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
|
+
export interface UiFileInputEventMap {
|
|
3
|
+
change: CustomEvent<{ readonly files: readonly (unknown)[]; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
|
+
reject: CustomEvent<{ readonly files: readonly (unknown)[]; readonly message: string }>;
|
|
5
|
+
}
|
|
6
|
+
export interface UiFileInputElement extends HTMLElement {
|
|
7
|
+
addEventListener<K extends keyof UiFileInputEventMap>(type: K, listener: (this: UiFileInputElement, event: UiFileInputEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
8
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiFileInputElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
9
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10
|
+
removeEventListener<K extends keyof UiFileInputEventMap>(type: K, listener: (this: UiFileInputElement, event: UiFileInputEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
11
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiFileInputElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
12
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
13
|
+
}
|
|
14
|
+
export interface UiFileInputProps {
|
|
15
|
+
accept?: string | null;
|
|
16
|
+
disabled?: boolean | null;
|
|
17
|
+
form?: string | null;
|
|
18
|
+
inputId?: string | null;
|
|
19
|
+
invalid?: boolean | null;
|
|
20
|
+
label?: string | null;
|
|
21
|
+
locale?: string | null;
|
|
22
|
+
maxFileSize?: number | null;
|
|
23
|
+
multiple?: boolean | null;
|
|
24
|
+
name?: string | null;
|
|
25
|
+
removeLabel?: string | null;
|
|
26
|
+
required?: boolean | null;
|
|
27
|
+
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
28
|
+
children?: readonly (string | Node)[];
|
|
29
|
+
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
|
30
|
+
}
|
|
31
|
+
export declare function createUiFileInput(props?: UiFileInputProps): UiFileInputElement;
|
|
32
|
+
declare global {
|
|
33
|
+
interface ComponentTagMap {
|
|
34
|
+
"ui-file-input": { element: UiFileInputElement; props: Omit<UiFileInputProps, "attributes" | "children" | "slots"> };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, buildTemplate, checkReference, formatCall, NONCONFORMING, readDeclared, readIndex, readMember, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, dispatchDeclared, detailCheck, dispose, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, RangedKeyedList, checkBoolean, checkConstrained, checkFormat, checkList, checkNumber, checkObject, checkString, checkUnknown, boundFailures, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
|
+
import * as controller from "../components/ui-file-input/ui-file-input.js";
|
|
4
|
+
import "../styles/ui-file-input.css";
|
|
5
|
+
|
|
6
|
+
const T0 = ["",[],["ui-text",["weight","semibold"],0],"\n ",["ui-text",["tone","secondary"],4],"\n ",["ui-input",["data-file-control","","data-ui-field-control","","type","file"]],"\n ",["ui-list",["density","compact"],2],"\n ",["ui-text",["tone","danger","role","alert"],0],"\n ",4];
|
|
7
|
+
const T1 = ["",[],"Drop files here, or choose files below."];
|
|
8
|
+
const T2 = ["",[],"\n ",["ui-list-item",["wrap","","align","title"],0,["span",["slot","description"],0],["ui-icon-button",["slot","trailing","data-file-remove","","size","sm","variant","ghost","tone","neutral"],["ui-icon",["name","x"]]]],"\n "];
|
|
9
|
+
const T3 = ["",[]];
|
|
10
|
+
let P0, P1, P2, P3;
|
|
11
|
+
const E = new Map();
|
|
12
|
+
const S = { n: ["enhanced","dragging","invalidSelection","error","files"], t: ["b","b","b","s",["l",["o",["id","s","name","s","size","n"]]]], f: import.meta.url, g: "ui-file-input", d: { "change": [detailCheck(checkObject([["files", checkList(checkUnknown), false], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "reject": [detailCheck(checkObject([["files", checkList(checkUnknown), false], ["message", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, a: (host, I) => C(host, I), b: generatedInputs, i: [false, false, false, "", []] };
|
|
13
|
+
const D = { g: "ui-file-input", props: { "accept": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "form": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "inputId": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "invalid": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "label": { "required":false,"default":"Files", c: checkString, t: "string", j: 0, m: "s" }, "locale": { "required":false,"default":"en-US", c: checkString, t: "string", j: 0, m: "s" }, "maxFileSize": { "required":false,"min":0, c: checkNumber, t: "number", j: 0, m: "n", k: boundFailures }, "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" }, "removeLabel": { "required":false,"default":"Remove", c: checkString, t: "string", j: 0, m: "s" }, "required": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" } } };
|
|
14
|
+
const C = (host) => activateModule(controller, host);
|
|
15
|
+
|
|
16
|
+
export function createUiFileInput(options = {}, html) {
|
|
17
|
+
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
18
|
+
const element = document.createElement("ui-card");
|
|
19
|
+
for (const [name, value] of Object.entries(attributes)) {
|
|
20
|
+
if (value === null || value === undefined || value === false) continue;
|
|
21
|
+
element.setAttribute(name, value === true ? "" : String(value));
|
|
22
|
+
}
|
|
23
|
+
if (!element.hasAttribute("padding")) element.setAttribute("padding", "sm");
|
|
24
|
+
if (!element.hasAttribute("role")) element.setAttribute("role", "group");
|
|
25
|
+
element.setAttribute("data-component", "ui-file-input");
|
|
26
|
+
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
27
|
+
const v = [false, false, false, "", [], null, null, null, null, null, null, null, null, null, null, null, null];
|
|
28
|
+
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
29
|
+
const m1 = (d) => {
|
|
30
|
+
const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
|
|
31
|
+
const r = { n };
|
|
32
|
+
p1(r, -1, d);
|
|
33
|
+
return r;
|
|
34
|
+
};
|
|
35
|
+
const p1 = (r, c, d) => {
|
|
36
|
+
};
|
|
37
|
+
const m2 = (o, j, l) => {
|
|
38
|
+
const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
|
|
39
|
+
const t0 = n.firstChild.nextSibling;
|
|
40
|
+
const t1 = t0.firstChild;
|
|
41
|
+
const t2 = t1.nextSibling;
|
|
42
|
+
const t3 = t2.firstChild;
|
|
43
|
+
const t4 = t2.nextSibling;
|
|
44
|
+
const s = document.createComment("html-next:item-start"), t = document.createComment("html-next:item-end");
|
|
45
|
+
n.prepend(s);
|
|
46
|
+
n.append(t);
|
|
47
|
+
const r = { k: undefined, i: o, n: s, t, x: 0, y: 0, a0: t1, a1: t3, a2: t4, w: 0, v0: "", v1: "", v2: null, v3: null, v4: null };
|
|
48
|
+
p2(r, -1, E);
|
|
49
|
+
return r;
|
|
50
|
+
};
|
|
51
|
+
const p2 = (r, c, d) => {
|
|
52
|
+
const o = r.i;
|
|
53
|
+
if (c & 1073741824) {
|
|
54
|
+
r.w = 0;
|
|
55
|
+
const x0 = trackContainer(r, readMember(o, "name"));
|
|
56
|
+
const s0 = "\n " + toText(x0) + "\n ";
|
|
57
|
+
if (s0 !== r.v0) r.a0.data = r.v0 = s0;
|
|
58
|
+
const x1 = trackContainer(r, readMember(o, "id"));
|
|
59
|
+
const s2 = toAttribute(x1, "data-file-id");
|
|
60
|
+
if (s2 !== r.v2) writeAttribute(r.a2, "data-file-id", r.v2 = s2);
|
|
61
|
+
}
|
|
62
|
+
if (c & 1073743872) {
|
|
63
|
+
const x2 = formatCall("format", [trackContainer(r, readMember(o, "size")), "unit", { "unit": "byte", "unitDisplay": "short", "maximumFractionDigits": 0 }, v[11]], "number");
|
|
64
|
+
if (x2 !== NONCONFORMING) {
|
|
65
|
+
const s1 = toText(x2);
|
|
66
|
+
if (s1 !== r.v1) r.a1.data = r.v1 = s1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (c & 1073774592) {
|
|
70
|
+
const x3 = textCall("concat", [v[15], " ", trackContainer(r, readMember(o, "name"))]);
|
|
71
|
+
if (x3 !== NONCONFORMING) {
|
|
72
|
+
const s3 = toAttribute(x3, "label");
|
|
73
|
+
if (s3 !== r.v3) writeAttribute(r.a2, "label", r.v3 = s3);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (c & 64) {
|
|
77
|
+
const x4 = v[6];
|
|
78
|
+
const s4 = toAttribute(x4, "disabled");
|
|
79
|
+
if (s4 !== r.v4) writeAttribute(r.a2, "disabled", r.v4 = s4);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const m3 = (d) => {
|
|
83
|
+
const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
|
|
84
|
+
const r = { n };
|
|
85
|
+
p3(r, -1, d);
|
|
86
|
+
return r;
|
|
87
|
+
};
|
|
88
|
+
const p3 = (r, c, d) => {
|
|
89
|
+
};
|
|
90
|
+
const p0 = (r, c, d) => {
|
|
91
|
+
if (c & 1024) {
|
|
92
|
+
const x0 = v[10];
|
|
93
|
+
const s0 = toAttribute(x0, "aria-label");
|
|
94
|
+
if (s0 !== r.v0) writeAttribute(r.n, "aria-label", r.v0 = s0);
|
|
95
|
+
const s2 = toText(x0);
|
|
96
|
+
if (s2 !== r.v2) r.a1.data = r.v2 = s2;
|
|
97
|
+
}
|
|
98
|
+
if (c & 1073741826) {
|
|
99
|
+
const x1 = readIndex({ "true": "accent", "false": "neutral" }, textCall("concat", [v[1]]));
|
|
100
|
+
if (x1 !== NONCONFORMING) {
|
|
101
|
+
const s1 = toAttribute(x1, "tone");
|
|
102
|
+
if (s1 !== r.v1) writeAttribute(r.n, "tone", r.v1 = s1);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (c & 1) {
|
|
106
|
+
const x2 = !v[0];
|
|
107
|
+
const s3 = toAttribute(x2, "hidden");
|
|
108
|
+
if (s3 !== r.v3) writeAttribute(r.a2, "hidden", r.v3 = s3);
|
|
109
|
+
const x3 = hostState(["enhanced"], [v[0]]);
|
|
110
|
+
const s17 = x3;
|
|
111
|
+
if (s17 !== r.v17) writeAttribute(r.n, "data-ui-file-input-state", (r.v17 = s17) === "" ? null : s17);
|
|
112
|
+
}
|
|
113
|
+
if (c & 1073742080) {
|
|
114
|
+
const x4 = readIndex({ "true": v[8], "false": null }, textCall("concat", [(v[8] !== "")]));
|
|
115
|
+
if (x4 !== NONCONFORMING) {
|
|
116
|
+
const s4 = toAttribute(x4, "id");
|
|
117
|
+
if (s4 !== r.v4) writeAttribute(r.a4, "id", r.v4 = s4);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (c & 16384) {
|
|
121
|
+
const x5 = v[14];
|
|
122
|
+
const s5 = toAttribute(x5, "name");
|
|
123
|
+
if (s5 !== r.v5) writeAttribute(r.a4, "name", r.v5 = s5);
|
|
124
|
+
}
|
|
125
|
+
if (c & 1073741952) {
|
|
126
|
+
const x6 = readIndex({ "true": v[7], "false": null }, textCall("concat", [(v[7] !== "")]));
|
|
127
|
+
if (x6 !== NONCONFORMING) {
|
|
128
|
+
const s6 = toAttribute(x6, "form");
|
|
129
|
+
if (s6 !== r.v6) writeAttribute(r.a4, "form", r.v6 = s6);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (c & 32) {
|
|
133
|
+
const x7 = v[5];
|
|
134
|
+
const s7 = toAttribute(x7, "accept");
|
|
135
|
+
if (s7 !== r.v7) writeAttribute(r.a4, "accept", r.v7 = s7);
|
|
136
|
+
}
|
|
137
|
+
if (c & 8192) {
|
|
138
|
+
const x8 = v[13];
|
|
139
|
+
const s8 = toAttribute(x8, "multiple");
|
|
140
|
+
if (s8 !== r.v8) writeAttribute(r.a4, "multiple", r.v8 = s8);
|
|
141
|
+
}
|
|
142
|
+
if (c & 64) {
|
|
143
|
+
const x9 = v[6];
|
|
144
|
+
const s9 = toAttribute(x9, "disabled");
|
|
145
|
+
if (s9 !== r.v9) writeAttribute(r.a4, "disabled", r.v9 = s9);
|
|
146
|
+
}
|
|
147
|
+
if (c & 65536) {
|
|
148
|
+
const x10 = v[16];
|
|
149
|
+
const s10 = toAttribute(x10, "required");
|
|
150
|
+
if (s10 !== r.v10) writeAttribute(r.a4, "required", r.v10 = s10);
|
|
151
|
+
}
|
|
152
|
+
if (c & 516) {
|
|
153
|
+
const x11 = (truthy(v[9]) || v[2]);
|
|
154
|
+
const s11 = toAttribute(x11, "invalid");
|
|
155
|
+
if (s11 !== r.v11) writeAttribute(r.a4, "invalid", r.v11 = s11);
|
|
156
|
+
}
|
|
157
|
+
if (c & 1024) {
|
|
158
|
+
const x12 = v[10];
|
|
159
|
+
const s12 = toAttribute(x12, "aria-label");
|
|
160
|
+
if (s12 !== r.v12) writeAttribute(r.a4, "aria-label", r.v12 = s12);
|
|
161
|
+
}
|
|
162
|
+
if (c & 1073741840) {
|
|
163
|
+
const x13 = (checkReference(S, readDeclared(v[4], ["0"]), ["o",["id","s","name","s","size","n"]], "expression:not $files.0:files.0", "Reference `files.0` must satisfy object({ id: string, name: string, size: number }).") ? !truthy(readIndex(v[4], 0)) : NONCONFORMING);
|
|
164
|
+
if (x13 !== NONCONFORMING) {
|
|
165
|
+
const s13 = toAttribute(x13, "hidden");
|
|
166
|
+
if (s13 !== r.v13) writeAttribute(r.a5, "hidden", r.v13 = s13);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (c & 1024) {
|
|
170
|
+
const x14 = v[10];
|
|
171
|
+
const s14 = toAttribute(x14, "aria-label");
|
|
172
|
+
if (s14 !== r.v14) writeAttribute(r.a5, "aria-label", r.v14 = s14);
|
|
173
|
+
}
|
|
174
|
+
if (c & 8) {
|
|
175
|
+
const x15 = (v[3] === "");
|
|
176
|
+
const s15 = toAttribute(x15, "hidden");
|
|
177
|
+
if (s15 !== r.v15) writeAttribute(r.a7, "hidden", r.v15 = s15);
|
|
178
|
+
const x16 = v[3];
|
|
179
|
+
const s16 = toText(x16);
|
|
180
|
+
if (s16 !== r.v16) r.a8.data = r.v16 = s16;
|
|
181
|
+
}
|
|
182
|
+
if (c & 1073741840) r.L1.update(v[4], d, c);
|
|
183
|
+
if (c !== -1 && c & 1073776704) r.L1.each(c, d);
|
|
184
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a3, r.e0, "", J, true, undefined, d);
|
|
185
|
+
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); } }
|
|
186
|
+
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
187
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a9, r.e2, "footer", J, false, undefined, d);
|
|
188
|
+
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); } }
|
|
189
|
+
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
190
|
+
};
|
|
191
|
+
const t0 = element.firstChild;
|
|
192
|
+
const t1 = t0.firstChild;
|
|
193
|
+
const t2 = t0.nextSibling.nextSibling;
|
|
194
|
+
const t3 = t2.firstChild;
|
|
195
|
+
const t4 = t2.nextSibling.nextSibling;
|
|
196
|
+
const t5 = t4.nextSibling.nextSibling;
|
|
197
|
+
const t6 = t5.firstChild;
|
|
198
|
+
const t7 = t5.nextSibling.nextSibling;
|
|
199
|
+
const t8 = t7.firstChild;
|
|
200
|
+
const t9 = t7.nextSibling.nextSibling;
|
|
201
|
+
const R = { n: element, a1: t1, a2: t2, a4: t4, a5: t5, a7: t7, a8: t8, v0: undefined, v1: undefined, v2: "", 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: "", v17: undefined, a3: t3, e0: t3.nextSibling, b0: undefined, f0: undefined, L1: new RangedKeyedList(t6, t6.nextSibling, m2, p2, (o) => readMember(o, "id"), "file"), a9: t9, e2: t9.nextSibling, b2: undefined, f2: undefined };
|
|
202
|
+
const I = { B };
|
|
203
|
+
const J = project(I, children, slots);
|
|
204
|
+
I.R = new Set();
|
|
205
|
+
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);
|
|
206
|
+
manageProps(I);
|
|
207
|
+
return element;
|
|
208
|
+
}
|
|
209
|
+
defineComponent("ui-file-input", createUiFileInput, ["accept","disabled","form","inputId","invalid","label","locale","maxFileSize","multiple","name","removeLabel","required"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiFloatingActionButtonEventMap {
|
|
3
3
|
}
|
|
4
4
|
export interface UiFloatingActionButtonElement extends HTMLButtonElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispose, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkString, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import "../styles/ui-floating-action-button.css";
|
|
4
4
|
|
package/vanilla/UiFormField.d.ts
CHANGED
package/vanilla/UiFormField.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
import { attachGeneratedController, buildTemplate, writeAttribute, dispose, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-form-field/ui-form-field.js";
|
|
4
4
|
import "../styles/ui-form-field.css";
|
package/vanilla/UiGrid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiGridEventMap {
|
|
3
3
|
}
|
|
4
4
|
export interface UiGridElement extends HTMLDivElement {
|
|
@@ -11,8 +11,13 @@ export interface UiGridElement extends HTMLDivElement {
|
|
|
11
11
|
}
|
|
12
12
|
export interface UiGridProps {
|
|
13
13
|
columns?: number | null;
|
|
14
|
-
|
|
14
|
+
fixed?: boolean | null;
|
|
15
|
+
gap?: "none" | "xs" | "s" | "m" | "l" | "xl" | null;
|
|
15
16
|
min?: "sm" | "md" | "lg" | null;
|
|
17
|
+
selectionEnd?: number | null;
|
|
18
|
+
selectionStart?: number | null;
|
|
19
|
+
shadeTone?: "neutral" | "accent" | null;
|
|
20
|
+
shadedColumns?: readonly (number)[] | null;
|
|
16
21
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
17
22
|
children?: readonly (string | Node)[];
|
|
18
23
|
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|