@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/UiDatePicker.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
import { attachGeneratedController,
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, checkedReferenceValue, equalValue, stateInitializers, buildTemplate, NONCONFORMING, 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, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-date-picker/ui-date-picker.js";
|
|
4
4
|
import "../styles/ui-date-picker.css";
|
|
5
5
|
|
|
6
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
|
+
const RC0 = ["s", "string"];
|
|
8
|
+
const RC1 = [["l"], "list(string)"];
|
|
9
|
+
const RC2 = [["l"], "list(object({ start: string, end: string }))"];
|
|
10
|
+
const RC3 = ["i", "integer"];
|
|
7
11
|
let P0;
|
|
8
12
|
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
13
|
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
14
|
const C = (host) => activateModule(controller, host);
|
|
11
15
|
|
|
12
16
|
export function createUiDatePicker(options = {}, html) {
|
|
13
|
-
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
17
|
+
const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
18
|
+
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","model","month-label","name","next-label","picker-label","placeholder","previous-label","readonly","required","size","time-label","time-zone","today","type","value","value-format","week-starts-on","year-label"].includes(name)));
|
|
14
19
|
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
20
|
element.setAttribute("component", "ui-date-picker");
|
|
20
21
|
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
21
22
|
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];
|
|
@@ -23,319 +24,323 @@ export function createUiDatePicker(options = {}, html) {
|
|
|
23
24
|
const CS = [];
|
|
24
25
|
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
26
|
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 E = stateInitializers(S, v, X, { 0: () => (inputRead(v[39], inputStatus(39))) });
|
|
27
28
|
const p0 = (r, c, d) => {
|
|
29
|
+
if (c === -1) {
|
|
30
|
+
resetForwardedAttributes(r.n, attributes, r.v0);
|
|
31
|
+
r.v0 = forwardAttributes(r.n, attributes);
|
|
32
|
+
}
|
|
28
33
|
if (c & 1024) {
|
|
29
34
|
const x0 = v[10];
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
35
|
+
const s1 = toAttribute(x0, "disabled");
|
|
36
|
+
if (s1 !== r.v1) writeAttribute(r.a1, "disabled", r.v1 = s1);
|
|
32
37
|
}
|
|
33
38
|
if (c & 1) {
|
|
34
|
-
const x1 = (
|
|
39
|
+
const x1 = checkedReferenceValue(S, E.read(0), RC0, "expression:$current:current", "current");
|
|
35
40
|
if (x1 !== NONCONFORMING) {
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
41
|
+
const s2 = toAttribute(x1, "value");
|
|
42
|
+
if (s2 !== r.v2) writeAttribute(r.a2, "value", r.v2 = s2);
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
if (c & 1610612736) {
|
|
41
46
|
const x2 = v[38];
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
47
|
+
const s3 = toAttribute(x2, "type");
|
|
48
|
+
if (s3 !== r.v3) writeAttribute(r.a2, "type", r.v3 = s3);
|
|
44
49
|
const x3 = v[40];
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
50
|
+
const s4 = toAttribute(x3, "value-format");
|
|
51
|
+
if (s4 !== r.v4) writeAttribute(r.a2, "value-format", r.v4 = s4);
|
|
47
52
|
}
|
|
48
53
|
if (c & 4194304) {
|
|
49
54
|
const x4 = v[22];
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
55
|
+
const s5 = toAttribute(x4, "locale");
|
|
56
|
+
if (s5 !== r.v5) writeAttribute(r.a2, "locale", r.v5 = s5);
|
|
52
57
|
}
|
|
53
58
|
if (c & 536870912) {
|
|
54
59
|
const x5 = v[36];
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
60
|
+
const s6 = toAttribute(x5, "time-zone");
|
|
61
|
+
if (s6 !== r.v6) writeAttribute(r.a2, "time-zone", r.v6 = s6);
|
|
57
62
|
}
|
|
58
63
|
if (c & 1073758208) {
|
|
59
64
|
const x6 = v[14];
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
65
|
+
const s7 = toAttribute(x6, "disambiguation");
|
|
66
|
+
if (s7 !== r.v7) writeAttribute(r.a2, "disambiguation", r.v7 = s7);
|
|
62
67
|
}
|
|
63
68
|
if (c & 1074003968) {
|
|
64
69
|
const x7 = v[18];
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
70
|
+
const s8 = toAttribute(x7, "hour-cycle");
|
|
71
|
+
if (s8 !== r.v8) writeAttribute(r.a2, "hour-cycle", r.v8 = s8);
|
|
67
72
|
}
|
|
68
73
|
if (c & 1073872896) {
|
|
69
74
|
const x8 = v[17];
|
|
70
|
-
const
|
|
71
|
-
if (
|
|
75
|
+
const s9 = toAttribute(x8, "granularity");
|
|
76
|
+
if (s9 !== r.v9) writeAttribute(r.a2, "granularity", r.v9 = s9);
|
|
72
77
|
}
|
|
73
78
|
if (c & 1073774592) {
|
|
74
79
|
const x9 = v[15];
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
80
|
+
const s10 = toAttribute(x9, "display-options");
|
|
81
|
+
if (s10 !== r.v10) writeAttribute(r.a2, "display-options", r.v10 = s10);
|
|
77
82
|
}
|
|
78
83
|
if (c & 16777216) {
|
|
79
84
|
const x10 = v[24];
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
85
|
+
const s11 = toAttribute(x10, "min");
|
|
86
|
+
if (s11 !== r.v11) writeAttribute(r.a2, "min", r.v11 = s11);
|
|
82
87
|
}
|
|
83
88
|
if (c & 8388608) {
|
|
84
89
|
const x11 = v[23];
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
90
|
+
const s12 = toAttribute(x11, "max");
|
|
91
|
+
if (s12 !== r.v12) writeAttribute(r.a2, "max", r.v12 = s12);
|
|
87
92
|
}
|
|
88
93
|
if (c & 1073742080) {
|
|
89
94
|
const x12 = v[8];
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
95
|
+
const s13 = toAttribute(x12, "allowed-dates");
|
|
96
|
+
if (s13 !== r.v13) writeAttribute(r.a2, "allowed-dates", r.v13 = s13);
|
|
92
97
|
}
|
|
93
98
|
if (c & 1073742336) {
|
|
94
99
|
const x13 = v[9];
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
100
|
+
const s14 = toAttribute(x13, "allowed-ranges");
|
|
101
|
+
if (s14 !== r.v14) writeAttribute(r.a2, "allowed-ranges", r.v14 = s14);
|
|
97
102
|
}
|
|
98
103
|
if (c & 1073743872) {
|
|
99
104
|
const x14 = v[11];
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
105
|
+
const s15 = toAttribute(x14, "disabled-dates");
|
|
106
|
+
if (s15 !== r.v15) writeAttribute(r.a2, "disabled-dates", r.v15 = s15);
|
|
102
107
|
}
|
|
103
108
|
if (c & 1073745920) {
|
|
104
109
|
const x15 = v[12];
|
|
105
|
-
const
|
|
106
|
-
if (
|
|
110
|
+
const s16 = toAttribute(x15, "disabled-ranges");
|
|
111
|
+
if (s16 !== r.v16) writeAttribute(r.a2, "disabled-ranges", r.v16 = s16);
|
|
107
112
|
}
|
|
108
113
|
if (c & 1073750016) {
|
|
109
114
|
const x16 = v[13];
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
115
|
+
const s17 = toAttribute(x16, "disabled-weekdays");
|
|
116
|
+
if (s17 !== r.v17) writeAttribute(r.a2, "disabled-weekdays", r.v17 = s17);
|
|
112
117
|
}
|
|
113
118
|
if (c & 134217728) {
|
|
114
119
|
const x17 = v[27];
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
120
|
+
const s18 = toAttribute(x17, "name");
|
|
121
|
+
if (s18 !== r.v18) writeAttribute(r.a2, "name", r.v18 = s18);
|
|
117
122
|
}
|
|
118
123
|
if (c & 65536) {
|
|
119
124
|
const x18 = v[16];
|
|
120
|
-
const
|
|
121
|
-
if (
|
|
125
|
+
const s19 = toAttribute(x18, "form");
|
|
126
|
+
if (s19 !== r.v19) writeAttribute(r.a2, "form", r.v19 = s19);
|
|
122
127
|
}
|
|
123
128
|
if (c & 524288) {
|
|
124
129
|
const x19 = v[19];
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
130
|
+
const s20 = toAttribute(x19, "input-id");
|
|
131
|
+
if (s20 !== r.v20) writeAttribute(r.a2, "input-id", r.v20 = s20);
|
|
127
132
|
}
|
|
128
133
|
if (c & 2097152) {
|
|
129
134
|
const x20 = v[21];
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
135
|
+
const s21 = toAttribute(x20, "label");
|
|
136
|
+
if (s21 !== r.v21) writeAttribute(r.a2, "label", r.v21 = s21);
|
|
132
137
|
}
|
|
133
138
|
if (c & 1610612736) {
|
|
134
139
|
const x21 = v[34];
|
|
135
|
-
const
|
|
136
|
-
if (
|
|
140
|
+
const s22 = toAttribute(x21, "size");
|
|
141
|
+
if (s22 !== r.v22) writeAttribute(r.a2, "size", r.v22 = s22);
|
|
137
142
|
}
|
|
138
143
|
if (c & 536870912) {
|
|
139
144
|
const x22 = v[30];
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
145
|
+
const s23 = toAttribute(x22, "placeholder");
|
|
146
|
+
if (s23 !== r.v23) writeAttribute(r.a2, "placeholder", r.v23 = s23);
|
|
142
147
|
}
|
|
143
148
|
if (c & 1024) {
|
|
144
149
|
const x23 = v[10];
|
|
145
|
-
const
|
|
146
|
-
if (
|
|
150
|
+
const s24 = toAttribute(x23, "disabled");
|
|
151
|
+
if (s24 !== r.v24) writeAttribute(r.a2, "disabled", r.v24 = s24);
|
|
147
152
|
}
|
|
148
153
|
if (c & 536870912) {
|
|
149
154
|
const x24 = v[32];
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
155
|
+
const s25 = toAttribute(x24, "readonly");
|
|
156
|
+
if (s25 !== r.v25) writeAttribute(r.a2, "readonly", r.v25 = s25);
|
|
152
157
|
const x25 = v[33];
|
|
153
|
-
const
|
|
154
|
-
if (
|
|
158
|
+
const s26 = toAttribute(x25, "required");
|
|
159
|
+
if (s26 !== r.v26) writeAttribute(r.a2, "required", r.v26 = s26);
|
|
155
160
|
}
|
|
156
161
|
if (c & 1048576) {
|
|
157
162
|
const x26 = v[20];
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
163
|
+
const s27 = toAttribute(x26, "invalid");
|
|
164
|
+
if (s27 !== r.v27) writeAttribute(r.a2, "invalid", r.v27 = s27);
|
|
160
165
|
}
|
|
161
166
|
if (c & 64) {
|
|
162
167
|
const x27 = v[6];
|
|
163
|
-
const
|
|
164
|
-
if (
|
|
165
|
-
const
|
|
166
|
-
if (
|
|
168
|
+
const s28 = toAttribute(x27, "id");
|
|
169
|
+
if (s28 !== r.v28) writeAttribute(r.a3, "id", r.v28 = s28);
|
|
170
|
+
const s33 = toAttribute(x27, "for");
|
|
171
|
+
if (s33 !== r.v33) writeAttribute(r.a4, "for", r.v33 = s33);
|
|
167
172
|
}
|
|
168
173
|
if (c & 8) {
|
|
169
174
|
const x28 = !v[3];
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
175
|
+
const s29 = toAttribute(x28, "hidden");
|
|
176
|
+
if (s29 !== r.v29) writeAttribute(r.a3, "hidden", r.v29 = s29);
|
|
172
177
|
const x29 = hostState(["enhanced"], [v[3]]);
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
178
|
+
const s64 = x29;
|
|
179
|
+
if (s64 !== r.v64) writeAttribute(r.n, "data-ui-date-picker-state", (r.v64 = s64) === "" ? null : s64);
|
|
175
180
|
}
|
|
176
181
|
if (c & 1610612736) {
|
|
177
182
|
const x30 = v[34];
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
183
|
+
const s30 = toAttribute(x30, "size");
|
|
184
|
+
if (s30 !== r.v30) writeAttribute(r.a3, "size", r.v30 = s30);
|
|
180
185
|
}
|
|
181
186
|
if (c & 536870912) {
|
|
182
187
|
const x31 = v[29];
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
188
|
+
const s31 = toAttribute(x31, "label");
|
|
189
|
+
if (s31 !== r.v31) writeAttribute(r.a3, "label", r.v31 = s31);
|
|
185
190
|
}
|
|
186
191
|
if (c & 536871968) {
|
|
187
192
|
const x32 = ((truthy(v[10]) || truthy(v[32])) || v[5]);
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
193
|
+
const s32 = toAttribute(x32, "disabled");
|
|
194
|
+
if (s32 !== r.v32) writeAttribute(r.a3, "disabled", r.v32 = s32);
|
|
190
195
|
}
|
|
191
196
|
if (c & 16) {
|
|
192
197
|
const x33 = v[4];
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
198
|
+
const s34 = toAttribute(x33, "open");
|
|
199
|
+
if (s34 !== r.v34) writeAttribute(r.a4, "open", r.v34 = s34);
|
|
195
200
|
}
|
|
196
201
|
if (c & 536870912) {
|
|
197
202
|
const x34 = v[29];
|
|
198
|
-
const
|
|
199
|
-
if (
|
|
203
|
+
const s35 = toAttribute(x34, "aria-label");
|
|
204
|
+
if (s35 !== r.v35) writeAttribute(r.a4, "aria-label", r.v35 = s35);
|
|
200
205
|
}
|
|
201
206
|
if (c & 1107296274) {
|
|
202
|
-
const x35 = (
|
|
207
|
+
const x35 = (v[4] ? v[1] : checkedReferenceValue(S, readMember(v[25], "date"), RC0, "expression:$opened ? $draftDate : $model.date:model.date", "model.date"));
|
|
203
208
|
if (x35 !== NONCONFORMING) {
|
|
204
|
-
const
|
|
205
|
-
if (
|
|
209
|
+
const s36 = toAttribute(x35, "value");
|
|
210
|
+
if (s36 !== r.v36) writeAttribute(r.a5, "value", r.v36 = s36);
|
|
206
211
|
}
|
|
207
212
|
}
|
|
208
213
|
if (c & 1107296256) {
|
|
209
|
-
const x36 = (
|
|
214
|
+
const x36 = checkedReferenceValue(S, readMember(v[25], "minDate"), RC0, "expression:$model.minDate:model.minDate", "model.minDate");
|
|
210
215
|
if (x36 !== NONCONFORMING) {
|
|
211
|
-
const
|
|
212
|
-
if (
|
|
216
|
+
const s37 = toAttribute(x36, "min");
|
|
217
|
+
if (s37 !== r.v37) writeAttribute(r.a5, "min", r.v37 = s37);
|
|
213
218
|
}
|
|
214
|
-
const x37 = (
|
|
219
|
+
const x37 = checkedReferenceValue(S, readMember(v[25], "maxDate"), RC0, "expression:$model.maxDate:model.maxDate", "model.maxDate");
|
|
215
220
|
if (x37 !== NONCONFORMING) {
|
|
216
|
-
const
|
|
217
|
-
if (
|
|
221
|
+
const s38 = toAttribute(x37, "max");
|
|
222
|
+
if (s38 !== r.v38) writeAttribute(r.a5, "max", r.v38 = s38);
|
|
218
223
|
}
|
|
219
|
-
const x38 = (
|
|
224
|
+
const x38 = checkedReferenceValue(S, readMember(v[25], "allowedDates"), RC1, "expression:$model.allowedDates:model.allowedDates", "model.allowedDates");
|
|
220
225
|
if (x38 !== NONCONFORMING) {
|
|
221
|
-
const
|
|
222
|
-
if (
|
|
226
|
+
const s39 = toAttribute(x38, "allowed-dates");
|
|
227
|
+
if (s39 !== r.v39) writeAttribute(r.a5, "allowed-dates", r.v39 = s39);
|
|
223
228
|
}
|
|
224
|
-
const x39 = (
|
|
229
|
+
const x39 = checkedReferenceValue(S, readMember(v[25], "allowedRanges"), RC2, "expression:$model.allowedRanges:model.allowedRanges", "model.allowedRanges");
|
|
225
230
|
if (x39 !== NONCONFORMING) {
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
231
|
+
const s40 = toAttribute(x39, "allowed-ranges");
|
|
232
|
+
if (s40 !== r.v40) writeAttribute(r.a5, "allowed-ranges", r.v40 = s40);
|
|
228
233
|
}
|
|
229
|
-
const x40 = (
|
|
234
|
+
const x40 = checkedReferenceValue(S, readMember(v[25], "weekStartsOn"), RC3, "expression:$model.weekStartsOn:model.weekStartsOn", "model.weekStartsOn");
|
|
230
235
|
if (x40 !== NONCONFORMING) {
|
|
231
|
-
const
|
|
232
|
-
if (
|
|
236
|
+
const s41 = toAttribute(x40, "week-starts-on");
|
|
237
|
+
if (s41 !== r.v41) writeAttribute(r.a5, "week-starts-on", r.v41 = s41);
|
|
233
238
|
}
|
|
234
239
|
}
|
|
235
240
|
if (c & 536870912) {
|
|
236
241
|
const x41 = v[29];
|
|
237
|
-
const
|
|
238
|
-
if (
|
|
242
|
+
const s42 = toAttribute(x41, "label");
|
|
243
|
+
if (s42 !== r.v42) writeAttribute(r.a5, "label", r.v42 = s42);
|
|
239
244
|
}
|
|
240
245
|
if (c & 4194304) {
|
|
241
246
|
const x42 = v[22];
|
|
242
|
-
const
|
|
243
|
-
if (
|
|
247
|
+
const s43 = toAttribute(x42, "locale");
|
|
248
|
+
if (s43 !== r.v43) writeAttribute(r.a5, "locale", r.v43 = s43);
|
|
244
249
|
}
|
|
245
250
|
if (c & 536870912) {
|
|
246
251
|
const x43 = v[37];
|
|
247
|
-
const
|
|
248
|
-
if (
|
|
252
|
+
const s44 = toAttribute(x43, "today");
|
|
253
|
+
if (s44 !== r.v44) writeAttribute(r.a5, "today", r.v44 = s44);
|
|
249
254
|
}
|
|
250
255
|
if (c & 1073743872) {
|
|
251
256
|
const x44 = v[11];
|
|
252
|
-
const
|
|
253
|
-
if (
|
|
257
|
+
const s45 = toAttribute(x44, "disabled-dates");
|
|
258
|
+
if (s45 !== r.v45) writeAttribute(r.a5, "disabled-dates", r.v45 = s45);
|
|
254
259
|
}
|
|
255
260
|
if (c & 1073745920) {
|
|
256
261
|
const x45 = v[12];
|
|
257
|
-
const
|
|
258
|
-
if (
|
|
262
|
+
const s46 = toAttribute(x45, "disabled-ranges");
|
|
263
|
+
if (s46 !== r.v46) writeAttribute(r.a5, "disabled-ranges", r.v46 = s46);
|
|
259
264
|
}
|
|
260
265
|
if (c & 1073750016) {
|
|
261
266
|
const x46 = v[13];
|
|
262
|
-
const
|
|
263
|
-
if (
|
|
267
|
+
const s47 = toAttribute(x46, "disabled-weekdays");
|
|
268
|
+
if (s47 !== r.v47) writeAttribute(r.a5, "disabled-weekdays", r.v47 = s47);
|
|
264
269
|
}
|
|
265
270
|
if (c & 67108864) {
|
|
266
271
|
const x47 = v[26];
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
272
|
+
const s48 = toAttribute(x47, "month-label");
|
|
273
|
+
if (s48 !== r.v48) writeAttribute(r.a5, "month-label", r.v48 = s48);
|
|
269
274
|
}
|
|
270
275
|
if (c & 536870912) {
|
|
271
276
|
const x48 = v[42];
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
277
|
+
const s49 = toAttribute(x48, "year-label");
|
|
278
|
+
if (s49 !== r.v49) writeAttribute(r.a5, "year-label", r.v49 = s49);
|
|
274
279
|
const x49 = v[31];
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
const x50 = (v[38]
|
|
278
|
-
const
|
|
279
|
-
if (
|
|
280
|
+
const s50 = toAttribute(x49, "previous-label");
|
|
281
|
+
if (s50 !== r.v50) writeAttribute(r.a5, "previous-label", r.v50 = s50);
|
|
282
|
+
const x50 = equalValue(v[38], "date");
|
|
283
|
+
const s52 = toAttribute(x50, "hidden");
|
|
284
|
+
if (s52 !== r.v52) writeAttribute(r.a6, "hidden", r.v52 = s52);
|
|
280
285
|
const x51 = v[35];
|
|
281
|
-
const
|
|
282
|
-
if (
|
|
286
|
+
const s54 = toText(x51);
|
|
287
|
+
if (s54 !== r.v54) r.a8.data = r.v54 = s54;
|
|
283
288
|
}
|
|
284
289
|
if (c & 268435456) {
|
|
285
290
|
const x52 = v[28];
|
|
286
|
-
const
|
|
287
|
-
if (
|
|
291
|
+
const s51 = toAttribute(x52, "next-label");
|
|
292
|
+
if (s51 !== r.v51) writeAttribute(r.a5, "next-label", r.v51 = s51);
|
|
288
293
|
}
|
|
289
294
|
if (c & 1073741888) {
|
|
290
|
-
const x53 = readIndex(recordValue(["true","false"], [textCall("concat", [v[6], "-time"]), null]), textCall("concat", [(v[6]
|
|
295
|
+
const x53 = readIndex(recordValue(["true","false"], [textCall("concat", [v[6], "-time"]), null]), textCall("concat", [equalValue(v[6], "", true)]));
|
|
291
296
|
if (x53 !== NONCONFORMING) {
|
|
292
|
-
const
|
|
293
|
-
if (
|
|
297
|
+
const s53 = toAttribute(x53, "for");
|
|
298
|
+
if (s53 !== r.v53) writeAttribute(r.a7, "for", r.v53 = s53);
|
|
294
299
|
}
|
|
295
300
|
if (x53 !== NONCONFORMING) {
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
301
|
+
const s55 = toAttribute(x53, "input-id");
|
|
302
|
+
if (s55 !== r.v55) writeAttribute(r.a9, "input-id", r.v55 = s55);
|
|
298
303
|
}
|
|
299
304
|
}
|
|
300
305
|
if (c & 536870912) {
|
|
301
306
|
const x54 = v[35];
|
|
302
|
-
const
|
|
303
|
-
if (
|
|
307
|
+
const s56 = toAttribute(x54, "label");
|
|
308
|
+
if (s56 !== r.v56) writeAttribute(r.a9, "label", r.v56 = s56);
|
|
304
309
|
}
|
|
305
310
|
if (c & 1107296276) {
|
|
306
|
-
const x55 = (
|
|
311
|
+
const x55 = (v[4] ? v[2] : checkedReferenceValue(S, readMember(v[25], "time"), RC0, "expression:$opened ? $draftTime : $model.time:model.time", "model.time"));
|
|
307
312
|
if (x55 !== NONCONFORMING) {
|
|
308
|
-
const
|
|
309
|
-
if (
|
|
313
|
+
const s57 = toAttribute(x55, "value");
|
|
314
|
+
if (s57 !== r.v57) writeAttribute(r.a9, "value", r.v57 = s57);
|
|
310
315
|
}
|
|
311
316
|
}
|
|
312
317
|
if (c & 4194304) {
|
|
313
318
|
const x56 = v[22];
|
|
314
|
-
const
|
|
315
|
-
if (
|
|
319
|
+
const s58 = toAttribute(x56, "locale");
|
|
320
|
+
if (s58 !== r.v58) writeAttribute(r.a9, "locale", r.v58 = s58);
|
|
316
321
|
}
|
|
317
322
|
if (c & 1074003968) {
|
|
318
323
|
const x57 = v[18];
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
324
|
+
const s59 = toAttribute(x57, "hour-cycle");
|
|
325
|
+
if (s59 !== r.v59) writeAttribute(r.a9, "hour-cycle", r.v59 = s59);
|
|
321
326
|
}
|
|
322
327
|
if (c & 1073872896) {
|
|
323
328
|
const x58 = v[17];
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
329
|
+
const s60 = toAttribute(x58, "granularity");
|
|
330
|
+
if (s60 !== r.v60) writeAttribute(r.a9, "granularity", r.v60 = s60);
|
|
326
331
|
}
|
|
327
332
|
if (c & 536870928) {
|
|
328
|
-
const x59 = (!v[4] || (v[38]
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
333
|
+
const x59 = (!v[4] || truthy(equalValue(v[38], "date")));
|
|
334
|
+
const s61 = toAttribute(x59, "disabled");
|
|
335
|
+
if (s61 !== r.v61) writeAttribute(r.a9, "disabled", r.v61 = s61);
|
|
331
336
|
}
|
|
332
337
|
if (c & 128) {
|
|
333
|
-
const x60 = (v[7]
|
|
334
|
-
const
|
|
335
|
-
if (
|
|
338
|
+
const x60 = equalValue(v[7], "");
|
|
339
|
+
const s62 = toAttribute(x60, "hidden");
|
|
340
|
+
if (s62 !== r.v62) writeAttribute(r.a10, "hidden", r.v62 = s62);
|
|
336
341
|
const x61 = v[7];
|
|
337
|
-
const
|
|
338
|
-
if (
|
|
342
|
+
const s63 = toText(x61);
|
|
343
|
+
if (s63 !== r.v63) r.a11.data = r.v63 = s63;
|
|
339
344
|
}
|
|
340
345
|
};
|
|
341
346
|
const t0 = element.firstChild.nextSibling;
|
|
@@ -350,9 +355,10 @@ export function createUiDatePicker(options = {}, html) {
|
|
|
350
355
|
const t9 = t7.nextSibling.nextSibling.firstChild;
|
|
351
356
|
const t10 = t6.nextSibling.nextSibling;
|
|
352
357
|
const t11 = t10.firstChild;
|
|
353
|
-
const R = { n: element,
|
|
358
|
+
const R = { n: element, a1: t0, a2: t1, a3: t2, a4: t3, a5: t5, a6: t6, a7: t7, a8: t8, a9: t9, a10: t10, a11: t11, 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: 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: null, v54: "", v55: null, v56: null, v57: null, v58: null, v59: null, v60: null, v61: null, v62: null, v63: "", v64: undefined };
|
|
354
359
|
const I = { B, U: E };
|
|
355
360
|
I.R = new Set();
|
|
361
|
+
I.F = { values: attributes, draw: () => ((c, d) => p0(R, c, d))(-1) };
|
|
356
362
|
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
363
|
manageProps(I);
|
|
358
364
|
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 UiDateRangePickerEventMap {
|
|
3
3
|
input: CustomEvent<{ readonly value: { readonly start: string; readonly end: string }; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|
|
4
4
|
change: CustomEvent<{ readonly value: { readonly start: string; readonly end: string }; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
|