@threadlabs/looma 0.50.1 → 0.51.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/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 +68 -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 +14227 -6227
- package/docs/documentation.css +1 -1
- package/docs/framework-examples.mjs +30 -9
- 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 +38 -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
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, stateInitializers, buildTemplate, checkReference, NONCONFORMING, readDeclared, readIndex, readMember, recordValue, textCall, toAttribute, toText, truthy, writeAttribute, dispatchDeclared, detailCheck, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkObject, checkString, boundFailures, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
|
+
import * as controller from "../components/ui-date-picker/ui-date-picker.js";
|
|
4
|
+
import "../styles/ui-date-picker.css";
|
|
5
|
+
|
|
6
|
+
const T0 = ["",[],"\n ",["ui-input-group",[],["ui-date-field",["data-picker-field",""]],["ui-icon-button",["data-picker-trigger","","slot","action","variant","ghost","aria-haspopup","dialog"],["ui-icon",["name","calendar"]]]],"\n ",["ui-popover",["data-picker-popover","","size","sm","role","dialog"],["ui-stack",["gap","s"],["ui-calendar",["data-picker-calendar",""]],"\n ",["ui-cluster",["gap","s","align","center","justify","between","wrap","nowrap"],["ui-text",["as","label","variant","label"],0],"\n ",["ui-cluster",["fixed",""],["ui-time-picker",["data-picker-time","","size","sm"]]]],"\n ",["ui-text",["tone","danger","role","alert"],0]]],"\n "];
|
|
7
|
+
let P0;
|
|
8
|
+
const S = { n: ["current","draftDate","draftTime","enhanced","opened","fieldBlocked","anchorId","error"], t: ["s","s","s","b","b","b","s","s"], f: import.meta.url, g: "ui-date-picker", 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], "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: [null, "", "", false, false, false, "", ""] };
|
|
9
|
+
const D = { g: "ui-date-picker", 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" }, "model": { "required":false, c: checkObject([["date", checkString, false], ["time", checkString, false], ["minDate", checkString, false], ["maxDate", checkString, false], ["weekStartsOn", checkInteger, false], ["allowedDates", checkList(checkString), false], ["allowedRanges", checkList(checkObject([["start", checkString, false], ["end", checkString, false]], false)), false]], false), j: 1, m: ["o",["date","s","time","s","minDate","s","maxDate","s","weekStartsOn","i","allowedDates",["l","s"],"allowedRanges",["l",["o",["start","s","end","s"]]]]] }, "monthLabel": { "required":false,"default":"Choose month", c: checkString, t: "string", j: 0, m: "s" }, "name": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "nextLabel": { "required":false,"default":"Next", c: checkString, t: "string", j: 0, m: "s" }, "pickerLabel": { "required":false,"default":"Choose date", c: checkString, t: "string", j: 0, m: "s" }, "placeholder": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "previousLabel": { "required":false,"default":"Previous", 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)] }, "timeLabel": { "required":false,"default":"Time", c: checkString, t: "string", j: 0, m: "s" }, "timeZone": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "today": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "type": { "required":false,"values":["date","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)] }, "weekStartsOn": { "required":false,"min":1,"max":7, c: checkInteger, t: "integer", j: 0, m: "i", k: boundFailures }, "yearLabel": { "required":false,"default":"Choose year", c: checkString, t: "string", j: 0, m: "s" } } };
|
|
10
|
+
const C = (host) => activateModule(controller, host);
|
|
11
|
+
|
|
12
|
+
export function createUiDatePicker(options = {}, html) {
|
|
13
|
+
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
14
|
+
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
|
+
element.setAttribute("data-component", "ui-date-picker");
|
|
20
|
+
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
|
+
const v = [null, "", "", false, false, false, "", "", 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, null, null, null, null, null, null, null, null, null];
|
|
22
|
+
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
23
|
+
const CS = [];
|
|
24
|
+
const inputStatus = (j) => { if (j === 0) return E.status(j); if (j === 8) return awaitInput(B, "allowedDates", true); if (j === 9) return awaitInput(B, "allowedRanges", true); if (j === 10) return awaitInput(B, "disabled", true); if (j === 11) return awaitInput(B, "disabledDates", true); if (j === 12) return awaitInput(B, "disabledRanges", true); if (j === 13) return awaitInput(B, "disabledWeekdays", true); if (j === 14) return awaitInput(B, "disambiguation", true); if (j === 15) return awaitInput(B, "displayOptions", true); if (j === 16) return awaitInput(B, "form", true); if (j === 17) return awaitInput(B, "granularity", true); if (j === 18) return awaitInput(B, "hourCycle", true); if (j === 19) return awaitInput(B, "inputId", true); if (j === 20) return awaitInput(B, "invalid", true); if (j === 21) return awaitInput(B, "label", true); if (j === 22) return awaitInput(B, "locale", true); if (j === 23) return awaitInput(B, "max", true); if (j === 24) return awaitInput(B, "min", true); if (j === 25) return awaitInput(B, "model", true); if (j === 26) return awaitInput(B, "monthLabel", true); if (j === 27) return awaitInput(B, "name", true); if (j === 28) return awaitInput(B, "nextLabel", true); if (j === 29) return awaitInput(B, "pickerLabel", true); if (j === 30) return awaitInput(B, "placeholder", true); if (j === 31) return awaitInput(B, "previousLabel", true); if (j === 32) return awaitInput(B, "readonly", true); if (j === 33) return awaitInput(B, "required", true); if (j === 34) return awaitInput(B, "size", true); if (j === 35) return awaitInput(B, "timeLabel", true); if (j === 36) return awaitInput(B, "timeZone", true); if (j === 37) return awaitInput(B, "today", true); if (j === 38) return awaitInput(B, "type", true); if (j === 39) return awaitInput(B, "value", true); if (j === 40) return awaitInput(B, "valueFormat", true); if (j === 41) return awaitInput(B, "weekStartsOn", true); if (j === 42) return awaitInput(B, "yearLabel", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
|
|
25
|
+
const X = { e: 0, g: (j) => v[j], w: new Set(), a: CS, i: inputStatus };
|
|
26
|
+
const E = stateInitializers(S, v, X, { 0: () => inputRead(v[39], inputStatus(39)) });
|
|
27
|
+
const p0 = (r, c, d) => {
|
|
28
|
+
if (c & 1024) {
|
|
29
|
+
const x0 = v[10];
|
|
30
|
+
const s0 = toAttribute(x0, "disabled");
|
|
31
|
+
if (s0 !== r.v0) writeAttribute(r.a0, "disabled", r.v0 = s0);
|
|
32
|
+
}
|
|
33
|
+
if (c & 1) {
|
|
34
|
+
const x1 = (checkReference(S, v[0], "s", "expression:$current:current", "Reference `current` must satisfy string.") ? E.read(0) : NONCONFORMING);
|
|
35
|
+
if (x1 !== NONCONFORMING) {
|
|
36
|
+
const s1 = toAttribute(x1, "value");
|
|
37
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "value", r.v1 = s1);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (c & 1610612736) {
|
|
41
|
+
const x2 = v[38];
|
|
42
|
+
const s2 = toAttribute(x2, "type");
|
|
43
|
+
if (s2 !== r.v2) writeAttribute(r.a1, "type", r.v2 = s2);
|
|
44
|
+
const x3 = v[40];
|
|
45
|
+
const s3 = toAttribute(x3, "value-format");
|
|
46
|
+
if (s3 !== r.v3) writeAttribute(r.a1, "value-format", r.v3 = s3);
|
|
47
|
+
}
|
|
48
|
+
if (c & 4194304) {
|
|
49
|
+
const x4 = v[22];
|
|
50
|
+
const s4 = toAttribute(x4, "locale");
|
|
51
|
+
if (s4 !== r.v4) writeAttribute(r.a1, "locale", r.v4 = s4);
|
|
52
|
+
}
|
|
53
|
+
if (c & 536870912) {
|
|
54
|
+
const x5 = v[36];
|
|
55
|
+
const s5 = toAttribute(x5, "time-zone");
|
|
56
|
+
if (s5 !== r.v5) writeAttribute(r.a1, "time-zone", r.v5 = s5);
|
|
57
|
+
}
|
|
58
|
+
if (c & 1073758208) {
|
|
59
|
+
const x6 = v[14];
|
|
60
|
+
const s6 = toAttribute(x6, "disambiguation");
|
|
61
|
+
if (s6 !== r.v6) writeAttribute(r.a1, "disambiguation", r.v6 = s6);
|
|
62
|
+
}
|
|
63
|
+
if (c & 1074003968) {
|
|
64
|
+
const x7 = v[18];
|
|
65
|
+
const s7 = toAttribute(x7, "hour-cycle");
|
|
66
|
+
if (s7 !== r.v7) writeAttribute(r.a1, "hour-cycle", r.v7 = s7);
|
|
67
|
+
}
|
|
68
|
+
if (c & 1073872896) {
|
|
69
|
+
const x8 = v[17];
|
|
70
|
+
const s8 = toAttribute(x8, "granularity");
|
|
71
|
+
if (s8 !== r.v8) writeAttribute(r.a1, "granularity", r.v8 = s8);
|
|
72
|
+
}
|
|
73
|
+
if (c & 1073774592) {
|
|
74
|
+
const x9 = v[15];
|
|
75
|
+
const s9 = toAttribute(x9, "display-options");
|
|
76
|
+
if (s9 !== r.v9) writeAttribute(r.a1, "display-options", r.v9 = s9);
|
|
77
|
+
}
|
|
78
|
+
if (c & 16777216) {
|
|
79
|
+
const x10 = v[24];
|
|
80
|
+
const s10 = toAttribute(x10, "min");
|
|
81
|
+
if (s10 !== r.v10) writeAttribute(r.a1, "min", r.v10 = s10);
|
|
82
|
+
}
|
|
83
|
+
if (c & 8388608) {
|
|
84
|
+
const x11 = v[23];
|
|
85
|
+
const s11 = toAttribute(x11, "max");
|
|
86
|
+
if (s11 !== r.v11) writeAttribute(r.a1, "max", r.v11 = s11);
|
|
87
|
+
}
|
|
88
|
+
if (c & 1073742080) {
|
|
89
|
+
const x12 = v[8];
|
|
90
|
+
const s12 = toAttribute(x12, "allowed-dates");
|
|
91
|
+
if (s12 !== r.v12) writeAttribute(r.a1, "allowed-dates", r.v12 = s12);
|
|
92
|
+
}
|
|
93
|
+
if (c & 1073742336) {
|
|
94
|
+
const x13 = v[9];
|
|
95
|
+
const s13 = toAttribute(x13, "allowed-ranges");
|
|
96
|
+
if (s13 !== r.v13) writeAttribute(r.a1, "allowed-ranges", r.v13 = s13);
|
|
97
|
+
}
|
|
98
|
+
if (c & 1073743872) {
|
|
99
|
+
const x14 = v[11];
|
|
100
|
+
const s14 = toAttribute(x14, "disabled-dates");
|
|
101
|
+
if (s14 !== r.v14) writeAttribute(r.a1, "disabled-dates", r.v14 = s14);
|
|
102
|
+
}
|
|
103
|
+
if (c & 1073745920) {
|
|
104
|
+
const x15 = v[12];
|
|
105
|
+
const s15 = toAttribute(x15, "disabled-ranges");
|
|
106
|
+
if (s15 !== r.v15) writeAttribute(r.a1, "disabled-ranges", r.v15 = s15);
|
|
107
|
+
}
|
|
108
|
+
if (c & 1073750016) {
|
|
109
|
+
const x16 = v[13];
|
|
110
|
+
const s16 = toAttribute(x16, "disabled-weekdays");
|
|
111
|
+
if (s16 !== r.v16) writeAttribute(r.a1, "disabled-weekdays", r.v16 = s16);
|
|
112
|
+
}
|
|
113
|
+
if (c & 134217728) {
|
|
114
|
+
const x17 = v[27];
|
|
115
|
+
const s17 = toAttribute(x17, "name");
|
|
116
|
+
if (s17 !== r.v17) writeAttribute(r.a1, "name", r.v17 = s17);
|
|
117
|
+
}
|
|
118
|
+
if (c & 65536) {
|
|
119
|
+
const x18 = v[16];
|
|
120
|
+
const s18 = toAttribute(x18, "form");
|
|
121
|
+
if (s18 !== r.v18) writeAttribute(r.a1, "form", r.v18 = s18);
|
|
122
|
+
}
|
|
123
|
+
if (c & 524288) {
|
|
124
|
+
const x19 = v[19];
|
|
125
|
+
const s19 = toAttribute(x19, "input-id");
|
|
126
|
+
if (s19 !== r.v19) writeAttribute(r.a1, "input-id", r.v19 = s19);
|
|
127
|
+
}
|
|
128
|
+
if (c & 2097152) {
|
|
129
|
+
const x20 = v[21];
|
|
130
|
+
const s20 = toAttribute(x20, "label");
|
|
131
|
+
if (s20 !== r.v20) writeAttribute(r.a1, "label", r.v20 = s20);
|
|
132
|
+
}
|
|
133
|
+
if (c & 1610612736) {
|
|
134
|
+
const x21 = v[34];
|
|
135
|
+
const s21 = toAttribute(x21, "size");
|
|
136
|
+
if (s21 !== r.v21) writeAttribute(r.a1, "size", r.v21 = s21);
|
|
137
|
+
}
|
|
138
|
+
if (c & 536870912) {
|
|
139
|
+
const x22 = v[30];
|
|
140
|
+
const s22 = toAttribute(x22, "placeholder");
|
|
141
|
+
if (s22 !== r.v22) writeAttribute(r.a1, "placeholder", r.v22 = s22);
|
|
142
|
+
}
|
|
143
|
+
if (c & 1024) {
|
|
144
|
+
const x23 = v[10];
|
|
145
|
+
const s23 = toAttribute(x23, "disabled");
|
|
146
|
+
if (s23 !== r.v23) writeAttribute(r.a1, "disabled", r.v23 = s23);
|
|
147
|
+
}
|
|
148
|
+
if (c & 536870912) {
|
|
149
|
+
const x24 = v[32];
|
|
150
|
+
const s24 = toAttribute(x24, "readonly");
|
|
151
|
+
if (s24 !== r.v24) writeAttribute(r.a1, "readonly", r.v24 = s24);
|
|
152
|
+
const x25 = v[33];
|
|
153
|
+
const s25 = toAttribute(x25, "required");
|
|
154
|
+
if (s25 !== r.v25) writeAttribute(r.a1, "required", r.v25 = s25);
|
|
155
|
+
}
|
|
156
|
+
if (c & 1048576) {
|
|
157
|
+
const x26 = v[20];
|
|
158
|
+
const s26 = toAttribute(x26, "invalid");
|
|
159
|
+
if (s26 !== r.v26) writeAttribute(r.a1, "invalid", r.v26 = s26);
|
|
160
|
+
}
|
|
161
|
+
if (c & 64) {
|
|
162
|
+
const x27 = v[6];
|
|
163
|
+
const s27 = toAttribute(x27, "id");
|
|
164
|
+
if (s27 !== r.v27) writeAttribute(r.a2, "id", r.v27 = s27);
|
|
165
|
+
const s32 = toAttribute(x27, "for");
|
|
166
|
+
if (s32 !== r.v32) writeAttribute(r.a3, "for", r.v32 = s32);
|
|
167
|
+
}
|
|
168
|
+
if (c & 8) {
|
|
169
|
+
const x28 = !v[3];
|
|
170
|
+
const s28 = toAttribute(x28, "hidden");
|
|
171
|
+
if (s28 !== r.v28) writeAttribute(r.a2, "hidden", r.v28 = s28);
|
|
172
|
+
const x29 = hostState(["enhanced"], [v[3]]);
|
|
173
|
+
const s63 = x29;
|
|
174
|
+
if (s63 !== r.v63) writeAttribute(r.n, "data-ui-date-picker-state", (r.v63 = s63) === "" ? null : s63);
|
|
175
|
+
}
|
|
176
|
+
if (c & 1610612736) {
|
|
177
|
+
const x30 = v[34];
|
|
178
|
+
const s29 = toAttribute(x30, "size");
|
|
179
|
+
if (s29 !== r.v29) writeAttribute(r.a2, "size", r.v29 = s29);
|
|
180
|
+
}
|
|
181
|
+
if (c & 536870912) {
|
|
182
|
+
const x31 = v[29];
|
|
183
|
+
const s30 = toAttribute(x31, "label");
|
|
184
|
+
if (s30 !== r.v30) writeAttribute(r.a2, "label", r.v30 = s30);
|
|
185
|
+
}
|
|
186
|
+
if (c & 536871968) {
|
|
187
|
+
const x32 = ((truthy(v[10]) || truthy(v[32])) || v[5]);
|
|
188
|
+
const s31 = toAttribute(x32, "disabled");
|
|
189
|
+
if (s31 !== r.v31) writeAttribute(r.a2, "disabled", r.v31 = s31);
|
|
190
|
+
}
|
|
191
|
+
if (c & 16) {
|
|
192
|
+
const x33 = v[4];
|
|
193
|
+
const s33 = toAttribute(x33, "open");
|
|
194
|
+
if (s33 !== r.v33) writeAttribute(r.a3, "open", r.v33 = s33);
|
|
195
|
+
}
|
|
196
|
+
if (c & 536870912) {
|
|
197
|
+
const x34 = v[29];
|
|
198
|
+
const s34 = toAttribute(x34, "aria-label");
|
|
199
|
+
if (s34 !== r.v34) writeAttribute(r.a3, "aria-label", r.v34 = s34);
|
|
200
|
+
}
|
|
201
|
+
if (c & 1107296274) {
|
|
202
|
+
const x35 = (checkReference(S, readDeclared(v[25], ["date"]), "s", "expression:$opened ? $draftDate : $model.date:model.date", "Reference `model.date` must satisfy string.") ? (v[4] ? v[1] : readMember(v[25], "date")) : NONCONFORMING);
|
|
203
|
+
if (x35 !== NONCONFORMING) {
|
|
204
|
+
const s35 = toAttribute(x35, "value");
|
|
205
|
+
if (s35 !== r.v35) writeAttribute(r.a4, "value", r.v35 = s35);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (c & 1107296256) {
|
|
209
|
+
const x36 = (checkReference(S, readDeclared(v[25], ["minDate"]), "s", "expression:$model.minDate:model.minDate", "Reference `model.minDate` must satisfy string.") ? readMember(v[25], "minDate") : NONCONFORMING);
|
|
210
|
+
if (x36 !== NONCONFORMING) {
|
|
211
|
+
const s36 = toAttribute(x36, "min");
|
|
212
|
+
if (s36 !== r.v36) writeAttribute(r.a4, "min", r.v36 = s36);
|
|
213
|
+
}
|
|
214
|
+
const x37 = (checkReference(S, readDeclared(v[25], ["maxDate"]), "s", "expression:$model.maxDate:model.maxDate", "Reference `model.maxDate` must satisfy string.") ? readMember(v[25], "maxDate") : NONCONFORMING);
|
|
215
|
+
if (x37 !== NONCONFORMING) {
|
|
216
|
+
const s37 = toAttribute(x37, "max");
|
|
217
|
+
if (s37 !== r.v37) writeAttribute(r.a4, "max", r.v37 = s37);
|
|
218
|
+
}
|
|
219
|
+
const x38 = (checkReference(S, readDeclared(v[25], ["allowedDates"]), ["l","s"], "expression:$model.allowedDates:model.allowedDates", "Reference `model.allowedDates` must satisfy list(string).") ? readMember(v[25], "allowedDates") : NONCONFORMING);
|
|
220
|
+
if (x38 !== NONCONFORMING) {
|
|
221
|
+
const s38 = toAttribute(x38, "allowed-dates");
|
|
222
|
+
if (s38 !== r.v38) writeAttribute(r.a4, "allowed-dates", r.v38 = s38);
|
|
223
|
+
}
|
|
224
|
+
const x39 = (checkReference(S, readDeclared(v[25], ["allowedRanges"]), ["l",["o",["start","s","end","s"]]], "expression:$model.allowedRanges:model.allowedRanges", "Reference `model.allowedRanges` must satisfy list(object({ start: string, end: string })).") ? readMember(v[25], "allowedRanges") : NONCONFORMING);
|
|
225
|
+
if (x39 !== NONCONFORMING) {
|
|
226
|
+
const s39 = toAttribute(x39, "allowed-ranges");
|
|
227
|
+
if (s39 !== r.v39) writeAttribute(r.a4, "allowed-ranges", r.v39 = s39);
|
|
228
|
+
}
|
|
229
|
+
const x40 = (checkReference(S, readDeclared(v[25], ["weekStartsOn"]), "i", "expression:$model.weekStartsOn:model.weekStartsOn", "Reference `model.weekStartsOn` must satisfy integer.") ? readMember(v[25], "weekStartsOn") : NONCONFORMING);
|
|
230
|
+
if (x40 !== NONCONFORMING) {
|
|
231
|
+
const s40 = toAttribute(x40, "week-starts-on");
|
|
232
|
+
if (s40 !== r.v40) writeAttribute(r.a4, "week-starts-on", r.v40 = s40);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (c & 536870912) {
|
|
236
|
+
const x41 = v[29];
|
|
237
|
+
const s41 = toAttribute(x41, "label");
|
|
238
|
+
if (s41 !== r.v41) writeAttribute(r.a4, "label", r.v41 = s41);
|
|
239
|
+
}
|
|
240
|
+
if (c & 4194304) {
|
|
241
|
+
const x42 = v[22];
|
|
242
|
+
const s42 = toAttribute(x42, "locale");
|
|
243
|
+
if (s42 !== r.v42) writeAttribute(r.a4, "locale", r.v42 = s42);
|
|
244
|
+
}
|
|
245
|
+
if (c & 536870912) {
|
|
246
|
+
const x43 = v[37];
|
|
247
|
+
const s43 = toAttribute(x43, "today");
|
|
248
|
+
if (s43 !== r.v43) writeAttribute(r.a4, "today", r.v43 = s43);
|
|
249
|
+
}
|
|
250
|
+
if (c & 1073743872) {
|
|
251
|
+
const x44 = v[11];
|
|
252
|
+
const s44 = toAttribute(x44, "disabled-dates");
|
|
253
|
+
if (s44 !== r.v44) writeAttribute(r.a4, "disabled-dates", r.v44 = s44);
|
|
254
|
+
}
|
|
255
|
+
if (c & 1073745920) {
|
|
256
|
+
const x45 = v[12];
|
|
257
|
+
const s45 = toAttribute(x45, "disabled-ranges");
|
|
258
|
+
if (s45 !== r.v45) writeAttribute(r.a4, "disabled-ranges", r.v45 = s45);
|
|
259
|
+
}
|
|
260
|
+
if (c & 1073750016) {
|
|
261
|
+
const x46 = v[13];
|
|
262
|
+
const s46 = toAttribute(x46, "disabled-weekdays");
|
|
263
|
+
if (s46 !== r.v46) writeAttribute(r.a4, "disabled-weekdays", r.v46 = s46);
|
|
264
|
+
}
|
|
265
|
+
if (c & 67108864) {
|
|
266
|
+
const x47 = v[26];
|
|
267
|
+
const s47 = toAttribute(x47, "month-label");
|
|
268
|
+
if (s47 !== r.v47) writeAttribute(r.a4, "month-label", r.v47 = s47);
|
|
269
|
+
}
|
|
270
|
+
if (c & 536870912) {
|
|
271
|
+
const x48 = v[42];
|
|
272
|
+
const s48 = toAttribute(x48, "year-label");
|
|
273
|
+
if (s48 !== r.v48) writeAttribute(r.a4, "year-label", r.v48 = s48);
|
|
274
|
+
const x49 = v[31];
|
|
275
|
+
const s49 = toAttribute(x49, "previous-label");
|
|
276
|
+
if (s49 !== r.v49) writeAttribute(r.a4, "previous-label", r.v49 = s49);
|
|
277
|
+
const x50 = (v[38] === "date");
|
|
278
|
+
const s51 = toAttribute(x50, "hidden");
|
|
279
|
+
if (s51 !== r.v51) writeAttribute(r.a5, "hidden", r.v51 = s51);
|
|
280
|
+
const x51 = v[35];
|
|
281
|
+
const s53 = toText(x51);
|
|
282
|
+
if (s53 !== r.v53) r.a7.data = r.v53 = s53;
|
|
283
|
+
}
|
|
284
|
+
if (c & 268435456) {
|
|
285
|
+
const x52 = v[28];
|
|
286
|
+
const s50 = toAttribute(x52, "next-label");
|
|
287
|
+
if (s50 !== r.v50) writeAttribute(r.a4, "next-label", r.v50 = s50);
|
|
288
|
+
}
|
|
289
|
+
if (c & 1073741888) {
|
|
290
|
+
const x53 = readIndex(recordValue(["true","false"], [textCall("concat", [v[6], "-time"]), null]), textCall("concat", [(v[6] !== "")]));
|
|
291
|
+
if (x53 !== NONCONFORMING) {
|
|
292
|
+
const s52 = toAttribute(x53, "for");
|
|
293
|
+
if (s52 !== r.v52) writeAttribute(r.a6, "for", r.v52 = s52);
|
|
294
|
+
}
|
|
295
|
+
if (x53 !== NONCONFORMING) {
|
|
296
|
+
const s54 = toAttribute(x53, "input-id");
|
|
297
|
+
if (s54 !== r.v54) writeAttribute(r.a8, "input-id", r.v54 = s54);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
if (c & 536870912) {
|
|
301
|
+
const x54 = v[35];
|
|
302
|
+
const s55 = toAttribute(x54, "label");
|
|
303
|
+
if (s55 !== r.v55) writeAttribute(r.a8, "label", r.v55 = s55);
|
|
304
|
+
}
|
|
305
|
+
if (c & 1107296276) {
|
|
306
|
+
const x55 = (checkReference(S, readDeclared(v[25], ["time"]), "s", "expression:$opened ? $draftTime : $model.time:model.time", "Reference `model.time` must satisfy string.") ? (v[4] ? v[2] : readMember(v[25], "time")) : NONCONFORMING);
|
|
307
|
+
if (x55 !== NONCONFORMING) {
|
|
308
|
+
const s56 = toAttribute(x55, "value");
|
|
309
|
+
if (s56 !== r.v56) writeAttribute(r.a8, "value", r.v56 = s56);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if (c & 4194304) {
|
|
313
|
+
const x56 = v[22];
|
|
314
|
+
const s57 = toAttribute(x56, "locale");
|
|
315
|
+
if (s57 !== r.v57) writeAttribute(r.a8, "locale", r.v57 = s57);
|
|
316
|
+
}
|
|
317
|
+
if (c & 1074003968) {
|
|
318
|
+
const x57 = v[18];
|
|
319
|
+
const s58 = toAttribute(x57, "hour-cycle");
|
|
320
|
+
if (s58 !== r.v58) writeAttribute(r.a8, "hour-cycle", r.v58 = s58);
|
|
321
|
+
}
|
|
322
|
+
if (c & 1073872896) {
|
|
323
|
+
const x58 = v[17];
|
|
324
|
+
const s59 = toAttribute(x58, "granularity");
|
|
325
|
+
if (s59 !== r.v59) writeAttribute(r.a8, "granularity", r.v59 = s59);
|
|
326
|
+
}
|
|
327
|
+
if (c & 536870928) {
|
|
328
|
+
const x59 = (!v[4] || (v[38] === "date"));
|
|
329
|
+
const s60 = toAttribute(x59, "disabled");
|
|
330
|
+
if (s60 !== r.v60) writeAttribute(r.a8, "disabled", r.v60 = s60);
|
|
331
|
+
}
|
|
332
|
+
if (c & 128) {
|
|
333
|
+
const x60 = (v[7] === "");
|
|
334
|
+
const s61 = toAttribute(x60, "hidden");
|
|
335
|
+
if (s61 !== r.v61) writeAttribute(r.a9, "hidden", r.v61 = s61);
|
|
336
|
+
const x61 = v[7];
|
|
337
|
+
const s62 = toText(x61);
|
|
338
|
+
if (s62 !== r.v62) r.a10.data = r.v62 = s62;
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
const t0 = element.firstChild.nextSibling;
|
|
342
|
+
const t1 = t0.firstChild;
|
|
343
|
+
const t2 = t1.nextSibling;
|
|
344
|
+
const t3 = t0.nextSibling.nextSibling;
|
|
345
|
+
const t4 = t3.firstChild;
|
|
346
|
+
const t5 = t4.firstChild;
|
|
347
|
+
const t6 = t5.nextSibling.nextSibling;
|
|
348
|
+
const t7 = t6.firstChild;
|
|
349
|
+
const t8 = t7.firstChild;
|
|
350
|
+
const t9 = t7.nextSibling.nextSibling.firstChild;
|
|
351
|
+
const t10 = t6.nextSibling.nextSibling;
|
|
352
|
+
const t11 = t10.firstChild;
|
|
353
|
+
const R = { n: element, a0: t0, a1: t1, a2: t2, a3: t3, a4: t5, a5: t6, a6: t7, a7: t8, a8: t9, a9: t10, a10: t11, 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, v25: null, v26: null, v27: null, v28: null, v29: null, v30: null, v31: null, v32: null, v33: null, v34: null, v35: null, v36: null, v37: null, v38: null, v39: null, v40: null, v41: null, v42: null, v43: null, v44: null, v45: null, v46: null, v47: null, v48: null, v49: null, v50: null, v51: null, v52: null, v53: "", v54: null, v55: null, v56: null, v57: null, v58: null, v59: null, v60: null, v61: null, v62: "", v63: undefined };
|
|
354
|
+
const I = { B, U: E };
|
|
355
|
+
I.R = new Set();
|
|
356
|
+
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);
|
|
357
|
+
manageProps(I);
|
|
358
|
+
return element;
|
|
359
|
+
}
|
|
360
|
+
defineComponent("ui-date-picker", createUiDatePicker, ["allowedDates","allowedRanges","disabled","disabledDates","disabledRanges","disabledWeekdays","disambiguation","displayOptions","form","granularity","hourCycle","inputId","invalid","label","locale","max","min","model","monthLabel","name","nextLabel","pickerLabel","placeholder","previousLabel","readonly","required","size","timeLabel","timeZone","today","type","value","valueFormat","weekStartsOn","yearLabel"]);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.79 for Vanilla DOM. Do not edit.
|
|
2
|
+
export interface UiDateRangePickerEventMap {
|
|
3
|
+
input: CustomEvent<{ readonly value: { readonly start: string; readonly end: string }; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
|
+
change: CustomEvent<{ readonly value: { readonly start: string; readonly end: string }; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
5
|
+
"query-change": CustomEvent<{ readonly endpoint: "start" | "end"; readonly query: string }>;
|
|
6
|
+
"validation-change": CustomEvent<{ readonly invalid: boolean; readonly message: string; readonly endpoint?: "start" | "end" | null }>;
|
|
7
|
+
open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
8
|
+
close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
9
|
+
}
|
|
10
|
+
export interface UiDateRangePickerElement extends HTMLSpanElement {
|
|
11
|
+
addEventListener<K extends keyof UiDateRangePickerEventMap>(type: K, listener: (this: UiDateRangePickerElement, event: UiDateRangePickerEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
12
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiDateRangePickerElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
13
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
14
|
+
removeEventListener<K extends keyof UiDateRangePickerEventMap>(type: K, listener: (this: UiDateRangePickerElement, event: UiDateRangePickerEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
15
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiDateRangePickerElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
16
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
17
|
+
}
|
|
18
|
+
export interface UiDateRangePickerProps {
|
|
19
|
+
allowUnavailableWithinRange?: boolean | null;
|
|
20
|
+
allowedDates?: readonly (string)[] | null;
|
|
21
|
+
allowedRanges?: readonly ({ readonly start: string; readonly end: string })[] | null;
|
|
22
|
+
disabled?: boolean | null;
|
|
23
|
+
disabledDates?: readonly (string)[] | null;
|
|
24
|
+
disabledRanges?: readonly ({ readonly start: string; readonly end: string })[] | null;
|
|
25
|
+
disabledWeekdays?: readonly (number)[] | null;
|
|
26
|
+
displayOptions?: { readonly dateStyle?: "full" | "long" | "medium" | "short" | null; readonly weekday?: "long" | "short" | "narrow" | null; readonly year?: "numeric" | "2-digit" | null; readonly month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | null; readonly day?: "numeric" | "2-digit" | null; readonly era?: "long" | "short" | "narrow" | null; readonly numberingSystem?: string | null; readonly localeMatcher?: "lookup" | "best fit" | null; readonly formatMatcher?: "basic" | "best fit" | null } | null;
|
|
27
|
+
endInputId?: string | null;
|
|
28
|
+
endLabel?: string | null;
|
|
29
|
+
endName?: string | null;
|
|
30
|
+
form?: string | null;
|
|
31
|
+
invalid?: boolean | null;
|
|
32
|
+
label?: string | null;
|
|
33
|
+
locale?: string | null;
|
|
34
|
+
max?: string | null;
|
|
35
|
+
min?: string | null;
|
|
36
|
+
model?: { readonly startRanges: readonly ({ readonly start: string; readonly end: string })[]; readonly endRanges: readonly ({ readonly start: string; readonly end: string })[]; readonly calendarRanges: readonly ({ readonly start: string; readonly end: string })[]; readonly weekStartsOn: number } | null;
|
|
37
|
+
monthLabel?: string | null;
|
|
38
|
+
nextLabel?: string | null;
|
|
39
|
+
pickerLabel?: string | null;
|
|
40
|
+
previousLabel?: string | null;
|
|
41
|
+
readonly?: boolean | null;
|
|
42
|
+
required?: boolean | null;
|
|
43
|
+
size?: "sm" | "md" | "lg" | null;
|
|
44
|
+
startInputId?: string | null;
|
|
45
|
+
startLabel?: string | null;
|
|
46
|
+
startName?: string | null;
|
|
47
|
+
today?: string | null;
|
|
48
|
+
value?: { readonly start: string; readonly end: string } | null;
|
|
49
|
+
weekStartsOn?: number | null;
|
|
50
|
+
yearLabel?: string | null;
|
|
51
|
+
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
52
|
+
children?: readonly (string | Node)[];
|
|
53
|
+
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
|
54
|
+
}
|
|
55
|
+
export declare function createUiDateRangePicker(props?: UiDateRangePickerProps): UiDateRangePickerElement;
|
|
56
|
+
declare global {
|
|
57
|
+
interface ComponentTagMap {
|
|
58
|
+
"ui-date-range-picker": { element: UiDateRangePickerElement; props: Omit<UiDateRangePickerProps, "attributes" | "children" | "slots"> };
|
|
59
|
+
}
|
|
60
|
+
}
|