@threadlabs/looma 0.52.12 → 0.53.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/overlay.js +7 -0
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
- package/components/ui-meter/ui-meter.html +1 -1
- package/dist/index.js +1 -1
- package/docs/catalog.json +1 -1
- package/editor/chunks/extensions.js +2 -2
- package/editor/components.css +19 -19
- package/editor/index.js +1125 -853
- package/package.json +3 -3
- 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 +1 -1
- package/styles/ui-calendar.css +1 -1
- 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 +1 -1
- package/styles/ui-color-picker.css +1 -1
- package/styles/ui-column.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-data-table.css +1 -1
- package/styles/ui-date-field.css +1 -1
- package/styles/ui-date-picker.css +1 -1
- package/styles/ui-date-range-picker.css +1 -1
- 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 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- 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-notice-stripe.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-segmented-control.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-site-header.css +1 -1
- 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 -1
- package/styles/ui-time-picker.css +1 -1
- 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/styles/ui-wizard.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +14 -12
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +13 -11
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +27 -25
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +26 -23
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +14 -12
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +14 -13
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +10 -10
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +187 -244
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +272 -193
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +32 -27
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +72 -69
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +17 -15
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +32 -30
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +20 -18
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +22 -20
- package/vanilla/UiColumn.d.ts +2 -2
- package/vanilla/UiColumn.js +18 -15
- package/vanilla/UiCombobox.d.ts +3 -3
- package/vanilla/UiCombobox.js +237 -174
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +13 -8
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +17 -12
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +47 -45
- package/vanilla/UiCompactNode.d.ts +2 -2
- package/vanilla/UiCompactNode.js +37 -33
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +13 -11
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +11 -9
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +13 -11
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +40 -38
- package/vanilla/UiCycleButton.d.ts +2 -2
- package/vanilla/UiCycleButton.js +31 -26
- package/vanilla/UiDataTable.d.ts +1 -1
- package/vanilla/UiDataTable.js +26 -20
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +78 -75
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +155 -149
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +136 -128
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +13 -11
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +13 -11
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +14 -14
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +28 -26
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +29 -27
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +62 -58
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +14 -12
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +22 -14
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +23 -16
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +17 -9
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +108 -71
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +68 -66
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +50 -35
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +27 -25
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +79 -57
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +63 -44
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +22 -16
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +52 -33
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +19 -14
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +27 -25
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +13 -11
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +81 -52
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +107 -68
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +121 -70
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +20 -12
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +94 -80
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +21 -20
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +21 -19
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +26 -23
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +20 -15
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +35 -43
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +16 -14
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +29 -35
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +16 -14
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +29 -27
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +33 -27
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +12 -12
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +90 -80
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +20 -12
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +14 -11
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +74 -75
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +67 -62
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +63 -65
- package/vanilla/UiNoticeStripe.d.ts +1 -1
- package/vanilla/UiNoticeStripe.js +16 -16
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +41 -38
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +17 -15
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +53 -44
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +13 -11
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +25 -23
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +33 -36
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +20 -12
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +13 -11
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +21 -20
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +16 -14
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +48 -45
- package/vanilla/UiSegmentedControl.d.ts +2 -2
- package/vanilla/UiSegmentedControl.js +52 -47
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +17 -21
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +12 -12
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +17 -15
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +25 -23
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +21 -20
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +50 -47
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +34 -27
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +12 -12
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +22 -21
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +20 -17
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +25 -23
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +13 -11
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +13 -11
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +39 -28
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +128 -125
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +27 -39
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +42 -40
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +105 -102
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +14 -14
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +61 -31
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +17 -14
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +24 -22
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +17 -12
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +73 -79
- package/vanilla/UiWizard.d.ts +1 -1
- package/vanilla/UiWizard.js +61 -40
package/vanilla/UiDateField.js
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController, stateInitializers, binaryValue, buildTemplate,
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, equalValue, stateInitializers, binaryValue, buildTemplate, NONCONFORMING, readIndex, readMember, recordValue, textCall, toAttribute, truthy, writeAttribute, computedCycle, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, readonlyView, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-date-field/ui-date-field.js";
|
|
4
4
|
import "../styles/ui-date-field.css";
|
|
5
5
|
|
|
6
6
|
const T0 = ["",[],"\n ",["ui-input",["data-date-fallback","","step","any"]],"\n \n ",["ui-input",["data-date-editor","","data-ui-field-control","","spellcheck","false","autocomplete","off"]],"\n ",["input",["data-date-value","","data-ui-field-value","","type","hidden"]],"\n "];
|
|
7
|
+
const RC0 = ["s", "string"];
|
|
7
8
|
let P0;
|
|
8
9
|
const S = { n: ["enhanced","current","editingPlaceholder","segments","localInvalid","nativeType"], t: ["b","s","s",["l",["o",["placeholder","s","pattern","s","literal","s"]]],"b","?"], f: import.meta.url, g: "ui-date-field", k: 5, 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], ["trigger", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["keyboard","pointer","programmatic"]}), false]], false)), true, true, false], "query-change": [detailCheck(checkObject([["query", checkString, false]], false)), true, true, false], "validation-change": [detailCheck(checkObject([["invalid", checkBoolean, false], ["message", checkString, false]], false)), true, true, false] }, x: dispatchDeclared, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs, i: [false, null, "", [], false] };
|
|
9
10
|
const D = { g: "ui-date-field", props: { "allowedDates": { "required":false, c: checkList(checkString), j: 1, m: ["l","s"] }, "allowedRanges": { "required":false, c: checkList(checkObject([["start", checkString, false], ["end", checkString, false]], false)), j: 1, m: ["l",["o",["start","s","end","s"]]] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabledDates": { "required":false,"default":[], c: checkList(checkString), j: 1, m: ["l","s"] }, "disabledRanges": { "required":false,"default":[], c: checkList(checkObject([["start", checkString, false], ["end", checkString, false]], false)), j: 1, m: ["l",["o",["start","s","end","s"]]] }, "disabledWeekdays": { "required":false,"default":[], c: checkList(checkInteger), j: 1, m: ["l","i"] }, "disambiguation": { "required":false,"values":["reject","earlier","later","compatible"],"default":"reject", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "displayOptions": { "required":false, c: checkObject([["dateStyle", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["full","long","medium","short"]}), true], ["timeStyle", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["full","long","medium","short"]}), true], ["weekday", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["long","short","narrow"]}), true], ["era", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["long","short","narrow"]}), true], ["year", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["month", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit","long","short","narrow"]}), true], ["day", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["hour", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["minute", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["second", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["numeric","2-digit"]}), true], ["timeZoneName", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["long","short","shortOffset","longOffset","shortGeneric","longGeneric"]}), true], ["dayPeriod", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["long","short","narrow"]}), true], ["hourCycle", checkConstrained(checkFormat("keyword", keywordFormat), "keyword", {"values":["h11","h12","h23","h24"]}), true], ["localeMatcher", checkConstrained(checkString, "string", {"values":["lookup","best fit"]}), true], ["formatMatcher", checkConstrained(checkString, "string", {"values":["basic","best fit"]}), true], ["fractionalSecondDigits", checkConstrained(checkInteger, "integer", {"min":1,"max":3}), true], ["hour12", checkBoolean, true], ["numberingSystem", checkString, true]], false), j: 1, m: ["o",["dateStyle",["p",formatOf(keywordFormat)],"timeStyle",["p",formatOf(keywordFormat)],"weekday",["p",formatOf(keywordFormat)],"era",["p",formatOf(keywordFormat)],"year",["p",formatOf(keywordFormat)],"month",["p",formatOf(keywordFormat)],"day",["p",formatOf(keywordFormat)],"hour",["p",formatOf(keywordFormat)],"minute",["p",formatOf(keywordFormat)],"second",["p",formatOf(keywordFormat)],"timeZoneName",["p",formatOf(keywordFormat)],"dayPeriod",["p",formatOf(keywordFormat)],"hourCycle",["p",formatOf(keywordFormat)],"localeMatcher","s","formatMatcher","s","fractionalSecondDigits","i","hour12","b","numberingSystem","s"]] }, "form": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "granularity": { "required":false,"values":["minute","second"],"default":"minute", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "hourCycle": { "required":false,"values":["h11","h12","h23","h24"], c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "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":"", c: checkString, t: "string", j: 0, m: "s" }, "locale": { "required":false,"default":"en-US", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "min": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "placeholder": { "required":false,"default":"", 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" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "timeZone": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "type": { "required":false,"values":["date","time","datetime-local","instant","zoned"],"default":"date", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "valueFormat": { "required":false,"values":["iso","space"],"default":"iso", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
10
11
|
const C = (host) => activateModule(controller, host);
|
|
11
12
|
|
|
12
13
|
export function createUiDateField(options = {}, html) {
|
|
13
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
14
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
15
|
+
const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["allowed-dates","allowed-ranges","disabled","disabled-dates","disabled-ranges","disabled-weekdays","disambiguation","display-options","form","granularity","hour-cycle","input-id","invalid","label","locale","max","min","name","placeholder","readonly","required","size","time-zone","type","value","value-format"].includes(name)));
|
|
14
16
|
const element = document.createElement("span");
|
|
15
|
-
for (const [name, value] of Object.entries(attributes)) {
|
|
16
|
-
if (value === null || value === undefined || value === false) continue;
|
|
17
|
-
element.setAttribute(name, value === true ? "" : String(value));
|
|
18
|
-
}
|
|
19
17
|
element.setAttribute("component", "ui-date-field");
|
|
20
18
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
19
|
const v = [false, null, "", [], false, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
|
|
@@ -24,7 +22,7 @@ export function createUiDateField(options = {}, html) {
|
|
|
24
22
|
const inputStatus = (j) => { if (j === 1) return E.status(j); if (j >= 5 && j < 6) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 6) return awaitInput(B, "allowedDates", true); if (j === 7) return awaitInput(B, "allowedRanges", true); if (j === 8) return awaitInput(B, "disabled", true); if (j === 9) return awaitInput(B, "disabledDates", true); if (j === 10) return awaitInput(B, "disabledRanges", true); if (j === 11) return awaitInput(B, "disabledWeekdays", true); if (j === 12) return awaitInput(B, "disambiguation", true); if (j === 13) return awaitInput(B, "displayOptions", true); if (j === 14) return awaitInput(B, "form", true); if (j === 15) return awaitInput(B, "granularity", true); if (j === 16) return awaitInput(B, "hourCycle", true); if (j === 17) return awaitInput(B, "inputId", true); if (j === 18) return awaitInput(B, "invalid", true); if (j === 19) return awaitInput(B, "label", true); if (j === 20) return awaitInput(B, "locale", true); if (j === 21) return awaitInput(B, "max", true); if (j === 22) return awaitInput(B, "min", true); if (j === 23) return awaitInput(B, "name", true); if (j === 24) return awaitInput(B, "placeholder", true); if (j === 25) return awaitInput(B, "readonly", true); if (j === 26) return awaitInput(B, "required", true); if (j === 27) return awaitInput(B, "size", true); if (j === 28) return awaitInput(B, "timeZone", true); if (j === 29) return awaitInput(B, "type", true); if (j === 30) return awaitInput(B, "value", true); if (j === 31) return awaitInput(B, "valueFormat", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
|
|
25
23
|
const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
|
|
26
24
|
const ke = [];
|
|
27
|
-
const K = [() => readIndex(recordValue(["date","time","datetime-local","instant","zoned"], ["date", readIndex({ "true": "text", "false": "time" }, textCall("concat", [binaryValue(">", readMember(inputRead(E.read(1), inputStatus(1)), "length"), 12)])), readIndex({ "true": "text", "false": "datetime-local" }, textCall("concat", [((inputRead(v[31], inputStatus(31))
|
|
25
|
+
const K = [() => readIndex(recordValue(["date","time","datetime-local","instant","zoned"], ["date", readIndex({ "true": "text", "false": "time" }, textCall("concat", [binaryValue(">", readMember(inputRead(E.read(1), inputStatus(1)), "length"), 12)])), readIndex({ "true": "text", "false": "datetime-local" }, textCall("concat", [(truthy(equalValue(inputRead(v[31], inputStatus(31)), "space")) || truthy(binaryValue(">", readMember(inputRead(E.read(1), inputStatus(1)), "length"), 23)))])), "text", "text"]), inputRead(v[29], inputStatus(29)))];
|
|
28
26
|
const g = (j) => {
|
|
29
27
|
const i = j - 5;
|
|
30
28
|
if (ke[i] === X.e) return v[j];
|
|
@@ -37,170 +35,175 @@ export function createUiDateField(options = {}, html) {
|
|
|
37
35
|
if (!Object.is(previous, next)) { v[j] = next; X.n?.(j, previous, next); }
|
|
38
36
|
return next;
|
|
39
37
|
};
|
|
40
|
-
const E = stateInitializers(S, v, X, { 1: () => inputRead(v[30], inputStatus(30)) });
|
|
38
|
+
const E = stateInitializers(S, v, X, { 1: () => (inputRead(v[30], inputStatus(30))) });
|
|
41
39
|
const p0 = (r, c, d) => {
|
|
40
|
+
if (c === -1) {
|
|
41
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
42
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
43
|
+
}
|
|
42
44
|
if (c & 1073872897) {
|
|
43
|
-
const x0 = readIndex({ "true": v[17], "false": null }, textCall("concat", [(!v[0] && (v[17]
|
|
45
|
+
const x0 = readIndex({ "true": v[17], "false": null }, textCall("concat", [(!v[0] && truthy(equalValue(v[17], "", true)))]));
|
|
44
46
|
if (x0 !== NONCONFORMING) {
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
+
const s1 = toAttribute(x0, "id");
|
|
48
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "id", r.v1 = s1);
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
if (c & 1610612738) {
|
|
50
52
|
const x1 = g(5);
|
|
51
53
|
if (x1 !== NONCONFORMING) {
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
+
const s2 = toAttribute(x1, "type");
|
|
55
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "type", r.v2 = s2);
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
if (c & 2) {
|
|
57
|
-
const x2 = (
|
|
59
|
+
const x2 = checkedReferenceValue(S, E.read(1), RC0, "expression:$current:current", "current");
|
|
58
60
|
if (x2 !== NONCONFORMING) {
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
+
const s3 = toAttribute(x2, "value");
|
|
62
|
+
if (s3 !== r.v3) writeAttribute(r.a1, "value", r.v3 = s3);
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
if (c & 8388608) {
|
|
64
66
|
const x3 = v[23];
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
67
|
+
const s4 = toAttribute(x3, "name");
|
|
68
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "name", r.v4 = s4);
|
|
69
|
+
const s25 = toAttribute(x3, "name");
|
|
70
|
+
if (s25 !== r.v25) writeAttribute(r.a3, "name", r.v25 = s25);
|
|
69
71
|
}
|
|
70
72
|
if (c & 1073758208) {
|
|
71
|
-
const x4 = readIndex({ "true": v[14], "false": null }, textCall("concat", [(v[14]
|
|
73
|
+
const x4 = readIndex({ "true": v[14], "false": null }, textCall("concat", [equalValue(v[14], "", true)]));
|
|
72
74
|
if (x4 !== NONCONFORMING) {
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
+
const s5 = toAttribute(x4, "form");
|
|
76
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "form", r.v5 = s5);
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
if (c & 524288) {
|
|
78
80
|
const x5 = v[19];
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
81
|
+
const s6 = toAttribute(x5, "aria-label");
|
|
82
|
+
if (s6 !== r.v6) writeAttribute(r.a1, "aria-label", r.v6 = s6);
|
|
81
83
|
}
|
|
82
84
|
if (c & 1207959552) {
|
|
83
85
|
const x6 = v[27];
|
|
84
|
-
const
|
|
85
|
-
if (
|
|
86
|
+
const s7 = toAttribute(x6, "size");
|
|
87
|
+
if (s7 !== r.v7) writeAttribute(r.a1, "size", r.v7 = s7);
|
|
86
88
|
}
|
|
87
89
|
if (c & 1) {
|
|
88
90
|
const x7 = v[0];
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
+
const s8 = toAttribute(x7, "hidden");
|
|
92
|
+
if (s8 !== r.v8) writeAttribute(r.a1, "hidden", r.v8 = s8);
|
|
91
93
|
}
|
|
92
94
|
if (c & 257) {
|
|
93
95
|
const x8 = (truthy(v[8]) || v[0]);
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
96
|
+
const s9 = toAttribute(x8, "disabled");
|
|
97
|
+
if (s9 !== r.v9) writeAttribute(r.a1, "disabled", r.v9 = s9);
|
|
96
98
|
}
|
|
97
99
|
if (c & 33554432) {
|
|
98
100
|
const x9 = v[25];
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
+
const s10 = toAttribute(x9, "readonly");
|
|
102
|
+
if (s10 !== r.v10) writeAttribute(r.a1, "readonly", r.v10 = s10);
|
|
101
103
|
}
|
|
102
104
|
if (c & 67108864) {
|
|
103
105
|
const x10 = v[26];
|
|
104
|
-
const
|
|
105
|
-
if (
|
|
106
|
+
const s11 = toAttribute(x10, "required");
|
|
107
|
+
if (s11 !== r.v11) writeAttribute(r.a1, "required", r.v11 = s11);
|
|
106
108
|
}
|
|
107
109
|
if (c & 4194304) {
|
|
108
110
|
const x11 = v[22];
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
111
|
+
const s12 = toAttribute(x11, "min");
|
|
112
|
+
if (s12 !== r.v12) writeAttribute(r.a1, "min", r.v12 = s12);
|
|
111
113
|
}
|
|
112
114
|
if (c & 2097152) {
|
|
113
115
|
const x12 = v[21];
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
+
const s13 = toAttribute(x12, "max");
|
|
117
|
+
if (s13 !== r.v13) writeAttribute(r.a1, "max", r.v13 = s13);
|
|
116
118
|
}
|
|
117
119
|
if (c & 1073741832) {
|
|
118
120
|
const x13 = v[3];
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
+
const s14 = toAttribute(x13, "segments");
|
|
122
|
+
if (s14 !== r.v14) writeAttribute(r.a2, "segments", r.v14 = s14);
|
|
121
123
|
}
|
|
122
124
|
if (c & 1073758208) {
|
|
123
|
-
const x14 = readIndex({ "true": v[14], "false": null }, textCall("concat", [(v[14]
|
|
125
|
+
const x14 = readIndex({ "true": v[14], "false": null }, textCall("concat", [equalValue(v[14], "", true)]));
|
|
124
126
|
if (x14 !== NONCONFORMING) {
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
+
const s15 = toAttribute(x14, "form");
|
|
128
|
+
if (s15 !== r.v15) writeAttribute(r.a2, "form", r.v15 = s15);
|
|
127
129
|
}
|
|
128
130
|
if (x14 !== NONCONFORMING) {
|
|
129
|
-
const
|
|
130
|
-
if (
|
|
131
|
+
const s26 = toAttribute(x14, "form");
|
|
132
|
+
if (s26 !== r.v26) writeAttribute(r.a3, "form", r.v26 = s26);
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
if (c & 1073872897) {
|
|
134
|
-
const x15 = readIndex({ "true": v[17], "false": null }, textCall("concat", [(v[0] && (v[17]
|
|
136
|
+
const x15 = readIndex({ "true": v[17], "false": null }, textCall("concat", [(v[0] && truthy(equalValue(v[17], "", true)))]));
|
|
135
137
|
if (x15 !== NONCONFORMING) {
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
138
|
+
const s16 = toAttribute(x15, "id");
|
|
139
|
+
if (s16 !== r.v16) writeAttribute(r.a2, "id", r.v16 = s16);
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
142
|
if (c & 524288) {
|
|
141
143
|
const x16 = v[19];
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
+
const s17 = toAttribute(x16, "aria-label");
|
|
145
|
+
if (s17 !== r.v17) writeAttribute(r.a2, "aria-label", r.v17 = s17);
|
|
144
146
|
}
|
|
145
147
|
if (c & 1207959552) {
|
|
146
148
|
const x17 = v[27];
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
+
const s18 = toAttribute(x17, "size");
|
|
150
|
+
if (s18 !== r.v18) writeAttribute(r.a2, "size", r.v18 = s18);
|
|
149
151
|
}
|
|
150
152
|
if (c & 1090519044) {
|
|
151
|
-
const x18 = readIndex({ "true": v[24], "false": v[2] }, textCall("concat", [(v[24]
|
|
153
|
+
const x18 = readIndex({ "true": v[24], "false": v[2] }, textCall("concat", [equalValue(v[24], "", true)]));
|
|
152
154
|
if (x18 !== NONCONFORMING) {
|
|
153
|
-
const
|
|
154
|
-
if (
|
|
155
|
+
const s19 = toAttribute(x18, "placeholder");
|
|
156
|
+
if (s19 !== r.v19) writeAttribute(r.a2, "placeholder", r.v19 = s19);
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
159
|
if (c & 1) {
|
|
158
160
|
const x19 = !v[0];
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
161
|
+
const s20 = toAttribute(x19, "hidden");
|
|
162
|
+
if (s20 !== r.v20) writeAttribute(r.a2, "hidden", r.v20 = s20);
|
|
161
163
|
const x20 = hostState(["enhanced"], [v[0]]);
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
+
const s29 = x20;
|
|
165
|
+
if (s29 !== r.v29) writeAttribute(r.n, "data-ui-date-field-state", (r.v29 = s29) === "" ? null : s29);
|
|
164
166
|
}
|
|
165
167
|
if (c & 257) {
|
|
166
168
|
const x21 = (truthy(v[8]) || !v[0]);
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
+
const s21 = toAttribute(x21, "disabled");
|
|
170
|
+
if (s21 !== r.v21) writeAttribute(r.a2, "disabled", r.v21 = s21);
|
|
169
171
|
}
|
|
170
172
|
if (c & 33554432) {
|
|
171
173
|
const x22 = v[25];
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
174
|
+
const s22 = toAttribute(x22, "readonly");
|
|
175
|
+
if (s22 !== r.v22) writeAttribute(r.a2, "readonly", r.v22 = s22);
|
|
174
176
|
}
|
|
175
177
|
if (c & 67108864) {
|
|
176
178
|
const x23 = v[26];
|
|
177
|
-
const
|
|
178
|
-
if (
|
|
179
|
+
const s23 = toAttribute(x23, "required");
|
|
180
|
+
if (s23 !== r.v23) writeAttribute(r.a2, "required", r.v23 = s23);
|
|
179
181
|
}
|
|
180
182
|
if (c & 262160) {
|
|
181
183
|
const x24 = (truthy(v[18]) || v[4]);
|
|
182
|
-
const
|
|
183
|
-
if (
|
|
184
|
+
const s24 = toAttribute(x24, "invalid");
|
|
185
|
+
if (s24 !== r.v24) writeAttribute(r.a2, "invalid", r.v24 = s24);
|
|
184
186
|
}
|
|
185
187
|
if (c & 2) {
|
|
186
|
-
const x25 = (
|
|
188
|
+
const x25 = checkedReferenceValue(S, E.read(1), RC0, "expression:$current:current", "current");
|
|
187
189
|
if (x25 !== NONCONFORMING) {
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
+
const s27 = toAttribute(x25, "value");
|
|
191
|
+
if (s27 !== r.v27) writeAttribute(r.a3, "value", r.v27 = s27);
|
|
190
192
|
}
|
|
191
193
|
}
|
|
192
194
|
if (c & 257) {
|
|
193
195
|
const x26 = (truthy(v[8]) || !v[0]);
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
196
|
+
const s28 = toAttribute(x26, "disabled");
|
|
197
|
+
if (s28 !== r.v28) writeAttribute(r.a3, "disabled", r.v28 = s28);
|
|
196
198
|
}
|
|
197
199
|
};
|
|
198
200
|
const t0 = element.firstChild.nextSibling;
|
|
199
201
|
const t1 = t0.nextSibling.nextSibling;
|
|
200
202
|
const t2 = t1.nextSibling.nextSibling;
|
|
201
|
-
const R = { n: element,
|
|
203
|
+
const R = { n: element, a1: t0, a2: t1, a3: t2, v0: undefined, 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, v25: null, v26: null, v27: null, v28: null, v29: undefined };
|
|
202
204
|
const I = { B, U: E };
|
|
203
205
|
I.R = new Set();
|
|
206
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
204
207
|
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, X, I);
|
|
205
208
|
manageProps(I);
|
|
206
209
|
return element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
2
|
export interface UiDatePickerEventMap {
|
|
3
3
|
input: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
change: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|