@duyluonganduin/acl-web-components 0.0.45 → 0.0.48
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/dist/acl-web-components.cjs +1 -1
- package/dist/acl-web-components.d.ts +356 -0
- package/dist/acl-web-components.iife.js +490 -174
- package/dist/acl-web-components.js +140 -122
- package/dist/{anduin-sidebar-bObs5k3h.cjs → anduin-date-picker-BHLmPYcA.cjs} +491 -175
- package/dist/{anduin-sidebar-BLBUZYp_.js → anduin-date-picker-oFZyH03y.js} +2910 -1761
- package/dist/jsx.d.ts +81 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +351 -1
- package/dist/react.js +218 -181
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./anduin-sidebar-bObs5k3h.cjs"),o=':root{--color-gray-0: oklch(1 0 0);--color-gray-1: oklch(.9846 .0017 247.84);--color-gray-2: oklch(.9515 .0046 258.32);--color-gray-3: oklch(.9336 .0058 264.53);--color-gray-4: oklch(.8618 .0141 258.35);--color-gray-5: oklch(.7073 .0268 263.28);--color-gray-6: oklch(.6528 .0316 266.24);--color-gray-7: oklch(.5371 .0337 264.24);--color-gray-8: oklch(.3544 .0326 260.94);--color-gray-9: oklch(.2776 .0341 255.81);--color-danger-1: oklch(.9437 .0174 17.47);--color-danger-2: oklch(.8643 .0573 18.32);--color-danger-3: oklch(.712 .1517 21.64);--color-danger-4: oklch(.5948 .2165 26.91);--color-danger-5: oklch(.531 .2147 28.91);--color-primary-1: oklch(.9474 .0256 221.57);--color-primary-2: oklch(.8652 .066 236.86);--color-primary-3: oklch(.7219 .1335 240.15);--color-primary-4: oklch(.5679 .1784 254.76);--color-primary-5: oklch(.4682 .1548 255.23);--color-success-1: oklch(.9276 .0541 150.91);--color-success-2: oklch(.8592 .1078 149.75);--color-success-3: oklch(.6953 .1711 149.14);--color-success-4: oklch(.6149 .1634 148.21);--color-success-5: oklch(.5075 .136 146.46);--color-warning-1: oklch(.9549 .0496 88.08);--color-warning-2: oklch(.912 .0811 83.56);--color-warning-3: oklch(.8282 .1628 78.73);--color-warning-4: oklch(.7325 .1512 75.97);--color-warning-5: oklch(.5329 .1098 82);--color-semantic-gray-0: oklch(1 0 0);--color-semantic-gray-1: oklch(.9846 .0017 247.84);--color-semantic-gray-2: oklch(.9515 .0046 258.32);--color-semantic-gray-3: oklch(.9336 .0058 264.53);--color-semantic-gray-4: oklch(.8618 .0141 258.35);--color-semantic-gray-5: oklch(.7073 .0268 263.28);--color-semantic-gray-6: oklch(.6528 .0316 266.24);--color-semantic-gray-7: oklch(.5371 .0337 264.24);--color-semantic-gray-8: oklch(.3544 .0326 260.94);--color-semantic-gray-9: oklch(.2776 .0341 255.81);--color-semantic-danger-1: oklch(.9437 .0174 17.47);--color-semantic-danger-2: oklch(.8643 .0573 18.32);--color-semantic-danger-3: oklch(.712 .1517 21.64);--color-semantic-danger-4: oklch(.5948 .2165 26.91);--color-semantic-danger-5: oklch(.531 .2147 28.91);--color-semantic-primary-1: oklch(.9474 .0256 221.57);--color-semantic-primary-2: oklch(.8652 .066 236.86);--color-semantic-primary-3: oklch(.7219 .1335 240.15);--color-semantic-primary-4: oklch(.5679 .1784 254.76);--color-semantic-primary-5: oklch(.4682 .1548 255.23);--color-semantic-success-1: oklch(.9276 .0541 150.91);--color-semantic-success-2: oklch(.8592 .1078 149.75);--color-semantic-success-3: oklch(.6953 .1711 149.14);--color-semantic-success-4: oklch(.6149 .1634 148.21);--color-semantic-success-5: oklch(.5075 .136 146.46);--color-semantic-warning-1: oklch(.9549 .0496 88.08);--color-semantic-warning-2: oklch(.912 .0811 83.56);--color-semantic-warning-3: oklch(.8282 .1628 78.73);--color-semantic-warning-4: oklch(.7325 .1512 75.97);--color-semantic-warning-5: oklch(.5329 .1098 82);--color-purple-50: oklch(.9676 .016 286.1);--color-purple-100: oklch(.9434 .0255 288.32);--color-purple-200: oklch(.8927 .0519 287.71);--color-purple-300: oklch(.81 .0925 287.61);--color-purple-400: oklch(.7048 .1478 287.77);--color-purple-500: oklch(.5961 .2043 286.53);--color-purple-600: oklch(.5316 .2303 286.64);--color-purple-700: oklch(.471 .2307 285.3);--color-purple-800: oklch(.4148 .2014 285.43);--color-purple-900: oklch(.3654 .17 286.37);--color-purple-950: oklch(.2734 .1288 284.42);--color-white: var(--color-gray-0);--font-sans: system-ui, -apple-system, Roboto, Oxygen, Cantarell, Ubuntu, "Segoe UI", sans-serif;--font-mono: monospace;--text-9: 9px;--text-10: 10px;--text-11: 11px;--text-12: 12px;--text-13: 13px;--text-15: 15px;--text-17: 17px;--text-20: 20px;--text-23: 23px;--text-26: 26px;--text-30: 30px;--text-35: 35px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--leading-16: 16px;--leading-20: 20px;--leading-24: 24px;--leading-28: 28px;--leading-32: 32px;--leading-40: 40px;--leading-44: 44px;--leading-r1p5: 1.5;--radius-0: 0;--radius-2: 2px;--radius-3: 3px;--radius-4: 4px;--radius-6: 6px;--radius-8: 8px;--radius-12: 12px;--radius-16: 16px;--radius-20: 20px;--radius-24: 24px;--radius-full: 9999px;--shadow-1: 0px 1px 2px rgba(29, 41, 57, .07);--shadow-2: 0px 1px 2px rgba(29, 41, 57, .04), 0px 2px 8px rgba(29, 41, 57, .08);--shadow-3: 0px 2px 8px rgba(29, 41, 57, .08), 0px 8px 24px rgba(29, 41, 57, .12);--shadow-4: 0px 4px 8px rgba(29, 41, 57, .08), 0px 16px 48px rgba(29, 41, 57, .16);--spacing-px: 1px;--spacing-0: 0;--spacing-2: 2px;--spacing-4: 4px;--spacing-6: 6px;--spacing-8: 8px;--spacing-12: 12px;--spacing-16: 16px;--spacing-20: 20px;--spacing-24: 24px;--spacing-28: 28px;--spacing-32: 32px;--spacing-40: 40px;--spacing-48: 48px;--spacing-56: 56px;--spacing-64: 64px;--spacing-128: 128px;--spacing-256: 256px;--z-0: 0;--z-1: 1;--z-2: 2;--z-3: 3;--z-4: 4;--z-5: 5;--z-999: 999;--z-9999: 9999}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-13)}';if(typeof document<"u"&&!document.getElementById("acl-tokens")){const i=document.createElement("style");i.id="acl-tokens",i.textContent=o,document.head.appendChild(i)}exports.AnduinAvatar=n.AnduinAvatar;exports.AnduinBadge=n.AnduinBadge;exports.AnduinBadgeCount=n.AnduinBadgeCount;exports.AnduinButton=n.AnduinButton;exports.AnduinCallout=n.AnduinCallout;exports.AnduinCheckbox=n.AnduinCheckbox;exports.AnduinDivider=n.AnduinDivider;exports.AnduinDot=n.AnduinDot;exports.AnduinDrawer=n.AnduinDrawer;exports.AnduinDrawerClose=n.AnduinDrawerClose;exports.AnduinDropdown=n.AnduinDropdown;exports.AnduinField=n.AnduinField;exports.AnduinFieldDescription=n.AnduinFieldDescription;exports.AnduinFieldError=n.AnduinFieldError;exports.AnduinFieldGroup=n.AnduinFieldGroup;exports.AnduinFieldLabel=n.AnduinFieldLabel;exports.AnduinFileIcon=n.AnduinFileIcon;exports.AnduinIcon=n.AnduinIcon;exports.AnduinInput=n.AnduinInput;exports.AnduinLoadingState=n.AnduinLoadingState;exports.AnduinMenu=n.AnduinMenu;exports.AnduinMenuItem=n.AnduinMenuItem;exports.AnduinModal=n.AnduinModal;exports.AnduinModalClose=n.AnduinModalClose;exports.AnduinNavigation=n.AnduinNavigation;exports.AnduinNavigationItem=n.AnduinNavigationItem;exports.AnduinPagination=n.AnduinPagination;exports.AnduinPaginationFirstPage=n.AnduinPaginationFirstPage;exports.AnduinPaginationLastPage=n.AnduinPaginationLastPage;exports.AnduinPopover=n.AnduinPopover;exports.AnduinPopoverClose=n.AnduinPopoverClose;exports.AnduinProgress=n.AnduinProgress;exports.AnduinRadio=n.AnduinRadio;exports.AnduinRadioGroup=n.AnduinRadioGroup;exports.AnduinResizableHandle=n.AnduinResizableHandle;exports.AnduinResizablePanel=n.AnduinResizablePanel;exports.AnduinResizablePanelGroup=n.AnduinResizablePanelGroup;exports.AnduinSidebar=n.AnduinSidebar;exports.AnduinSidebarAction=n.AnduinSidebarAction;exports.AnduinSidebarBadge=n.AnduinSidebarBadge;exports.AnduinSidebarContent=n.AnduinSidebarContent;exports.AnduinSidebarFooter=n.AnduinSidebarFooter;exports.AnduinSidebarGroup=n.AnduinSidebarGroup;exports.AnduinSidebarGroupLabel=n.AnduinSidebarGroupLabel;exports.AnduinSidebarHeader=n.AnduinSidebarHeader;exports.AnduinSidebarMenu=n.AnduinSidebarMenu;exports.AnduinSidebarMenuItem=n.AnduinSidebarMenuItem;exports.AnduinSidebarSeparator=n.AnduinSidebarSeparator;exports.AnduinSkeleton=n.AnduinSkeleton;exports.AnduinSparkleSpinner=n.AnduinSparkleSpinner;exports.AnduinSpinner=n.AnduinSpinner;exports.AnduinSuggestion=n.AnduinSuggestion;exports.AnduinSwitcher=n.AnduinSwitcher;exports.AnduinTabContent=n.AnduinTabContent;exports.AnduinTabTrigger=n.AnduinTabTrigger;exports.AnduinTabs=n.AnduinTabs;exports.AnduinTabsList=n.AnduinTabsList;exports.AnduinTag=n.AnduinTag;exports.AnduinTagClose=n.AnduinTagClose;exports.AnduinTextarea=n.AnduinTextarea;exports.AnduinTimeline=n.AnduinTimeline;exports.AnduinTimelineDate=n.AnduinTimelineDate;exports.AnduinTimelineGroup=n.AnduinTimelineGroup;exports.AnduinTimelineItem=n.AnduinTimelineItem;exports.AnduinTimelineLabel=n.AnduinTimelineLabel;exports.AnduinTimelineTitle=n.AnduinTimelineTitle;exports.AnduinToast=n.AnduinToast;exports.AnduinToaster=n.AnduinToaster;exports.AnduinToggleGroup=n.AnduinToggleGroup;exports.AnduinToggleGroupItem=n.AnduinToggleGroupItem;exports.AnduinTooltip=n.AnduinTooltip;exports.AnduinTooltipContent=n.AnduinTooltipContent;exports.AnduinTooltipTrigger=n.AnduinTooltipTrigger;exports.AnduinWell=n.AnduinWell;exports.AnduinWellClose=n.AnduinWellClose;exports.BADGE_STYLES=n.BADGE_STYLES;exports.CHECKBOX_CHANGE=n.CHECKBOX_CHANGE;exports.DRAWER_AFTER_CLOSE_EVENT=n.DRAWER_AFTER_CLOSE_EVENT;exports.DRAWER_CLOSE_EVENT=n.DRAWER_CLOSE_EVENT;exports.DROPDOWN_CHANGE=n.DROPDOWN_CHANGE;exports.FIELD_LABEL_CLICK=n.FIELD_LABEL_CLICK;exports.FIELD_LABEL_CLICK_COORDINATED=n.FIELD_LABEL_CLICK_COORDINATED;exports.FILE_ICONS=n.FILE_ICONS;exports.INPUT_CHANGE=n.INPUT_CHANGE;exports.INPUT_CLEAR=n.INPUT_CLEAR;exports.MENU_ITEM_CLICK=n.MENU_ITEM_CLICK;exports.MODAL_AFTER_CLOSE_EVENT=n.MODAL_AFTER_CLOSE_EVENT;exports.MODAL_CLOSE_EVENT=n.MODAL_CLOSE_EVENT;exports.NAVIGATION_CHANGE=n.NAVIGATION_CHANGE;exports.NAVIGATION_ITEM_CLICK=n.NAVIGATION_ITEM_CLICK;exports.PAGINATION_CHANGE=n.PAGINATION_CHANGE;exports.PAGINATION_JUMP=n.PAGINATION_JUMP;exports.POPOVER_CLOSE=n.POPOVER_CLOSE;exports.RADIO_CHANGE=n.RADIO_CHANGE;exports.RADIO_GROUP_CHANGE=n.RADIO_GROUP_CHANGE;exports.RESIZE_EVENT=n.RESIZE_EVENT;exports.SIDEBAR_SELECT=n.SIDEBAR_SELECT;exports.SUGGESTION_CHANGE=n.SUGGESTION_CHANGE;exports.SUGGESTION_CLEAR=n.SUGGESTION_CLEAR;exports.SUGGESTION_SELECT=n.SUGGESTION_SELECT;exports.SWITCHER_CHANGE=n.SWITCHER_CHANGE;exports.TAB_CHANGE=n.TAB_CHANGE;exports.TAB_TRIGGER_CLICK=n.TAB_TRIGGER_CLICK;exports.TAB_VALUE_CHANGED=n.TAB_VALUE_CHANGED;exports.TAG_CLOSE_CLICK=n.TAG_CLOSE_CLICK;exports.TEXTAREA_CHANGE=n.TEXTAREA_CHANGE;exports.TOGGLE_GROUP_CHANGE=n.TOGGLE_GROUP_CHANGE;exports.TOGGLE_GROUP_ITEM_CHANGE=n.TOGGLE_GROUP_ITEM_CHANGE;exports.TOGGLE_GROUP_ITEM_CLICK=n.TOGGLE_GROUP_ITEM_CLICK;exports.TOGGLE_GROUP_ITEM_DESELECT=n.TOGGLE_GROUP_ITEM_DESELECT;exports.TOGGLE_GROUP_ITEM_SELECT=n.TOGGLE_GROUP_ITEM_SELECT;exports.TOOLTIP_CONTENT_POPUP_MOUNTED=n.TOOLTIP_CONTENT_POPUP_MOUNTED;exports.TOOLTIP_CONTENT_POPUP_UNMOUNTED=n.TOOLTIP_CONTENT_POPUP_UNMOUNTED;exports.TOOLTIP_HIDE=n.TOOLTIP_HIDE;exports.TOOLTIP_SHOW=n.TOOLTIP_SHOW;exports.TOOLTIP_TRIGGER_MOUNTED=n.TOOLTIP_TRIGGER_MOUNTED;exports.TOOLTIP_VISIBILITY_CHANGED=n.TOOLTIP_VISIBILITY_CHANGED;exports.WELL_CLOSE_CLICK=n.WELL_CLOSE_CLICK;exports.getBadgeVariantClass=n.getBadgeVariantClass;exports.resolveFileIcon=n.resolveFileIcon;exports.toast=n.toast;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./anduin-date-picker-BHLmPYcA.cjs"),o=':root{--color-gray-0: oklch(1 0 0);--color-gray-1: oklch(.9846 .0017 247.84);--color-gray-2: oklch(.9515 .0046 258.32);--color-gray-3: oklch(.9336 .0058 264.53);--color-gray-4: oklch(.8618 .0141 258.35);--color-gray-5: oklch(.7073 .0268 263.28);--color-gray-6: oklch(.6528 .0316 266.24);--color-gray-7: oklch(.5371 .0337 264.24);--color-gray-8: oklch(.3544 .0326 260.94);--color-gray-9: oklch(.2776 .0341 255.81);--color-danger-1: oklch(.9437 .0174 17.47);--color-danger-2: oklch(.8643 .0573 18.32);--color-danger-3: oklch(.712 .1517 21.64);--color-danger-4: oklch(.5948 .2165 26.91);--color-danger-5: oklch(.531 .2147 28.91);--color-primary-1: oklch(.9474 .0256 221.57);--color-primary-2: oklch(.8652 .066 236.86);--color-primary-3: oklch(.7219 .1335 240.15);--color-primary-4: oklch(.5679 .1784 254.76);--color-primary-5: oklch(.4682 .1548 255.23);--color-success-1: oklch(.9276 .0541 150.91);--color-success-2: oklch(.8592 .1078 149.75);--color-success-3: oklch(.6953 .1711 149.14);--color-success-4: oklch(.6149 .1634 148.21);--color-success-5: oklch(.5075 .136 146.46);--color-warning-1: oklch(.9549 .0496 88.08);--color-warning-2: oklch(.912 .0811 83.56);--color-warning-3: oklch(.8282 .1628 78.73);--color-warning-4: oklch(.7325 .1512 75.97);--color-warning-5: oklch(.5329 .1098 82);--color-semantic-gray-0: oklch(1 0 0);--color-semantic-gray-1: oklch(.9846 .0017 247.84);--color-semantic-gray-2: oklch(.9515 .0046 258.32);--color-semantic-gray-3: oklch(.9336 .0058 264.53);--color-semantic-gray-4: oklch(.8618 .0141 258.35);--color-semantic-gray-5: oklch(.7073 .0268 263.28);--color-semantic-gray-6: oklch(.6528 .0316 266.24);--color-semantic-gray-7: oklch(.5371 .0337 264.24);--color-semantic-gray-8: oklch(.3544 .0326 260.94);--color-semantic-gray-9: oklch(.2776 .0341 255.81);--color-semantic-danger-1: oklch(.9437 .0174 17.47);--color-semantic-danger-2: oklch(.8643 .0573 18.32);--color-semantic-danger-3: oklch(.712 .1517 21.64);--color-semantic-danger-4: oklch(.5948 .2165 26.91);--color-semantic-danger-5: oklch(.531 .2147 28.91);--color-semantic-primary-1: oklch(.9474 .0256 221.57);--color-semantic-primary-2: oklch(.8652 .066 236.86);--color-semantic-primary-3: oklch(.7219 .1335 240.15);--color-semantic-primary-4: oklch(.5679 .1784 254.76);--color-semantic-primary-5: oklch(.4682 .1548 255.23);--color-semantic-success-1: oklch(.9276 .0541 150.91);--color-semantic-success-2: oklch(.8592 .1078 149.75);--color-semantic-success-3: oklch(.6953 .1711 149.14);--color-semantic-success-4: oklch(.6149 .1634 148.21);--color-semantic-success-5: oklch(.5075 .136 146.46);--color-semantic-warning-1: oklch(.9549 .0496 88.08);--color-semantic-warning-2: oklch(.912 .0811 83.56);--color-semantic-warning-3: oklch(.8282 .1628 78.73);--color-semantic-warning-4: oklch(.7325 .1512 75.97);--color-semantic-warning-5: oklch(.5329 .1098 82);--color-purple-50: oklch(.9676 .016 286.1);--color-purple-100: oklch(.9434 .0255 288.32);--color-purple-200: oklch(.8927 .0519 287.71);--color-purple-300: oklch(.81 .0925 287.61);--color-purple-400: oklch(.7048 .1478 287.77);--color-purple-500: oklch(.5961 .2043 286.53);--color-purple-600: oklch(.5316 .2303 286.64);--color-purple-700: oklch(.471 .2307 285.3);--color-purple-800: oklch(.4148 .2014 285.43);--color-purple-900: oklch(.3654 .17 286.37);--color-purple-950: oklch(.2734 .1288 284.42);--color-white: var(--color-gray-0);--font-sans: system-ui, -apple-system, Roboto, Oxygen, Cantarell, Ubuntu, "Segoe UI", sans-serif;--font-mono: monospace;--text-9: 9px;--text-10: 10px;--text-11: 11px;--text-12: 12px;--text-13: 13px;--text-15: 15px;--text-17: 17px;--text-20: 20px;--text-23: 23px;--text-26: 26px;--text-30: 30px;--text-35: 35px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--leading-16: 16px;--leading-20: 20px;--leading-24: 24px;--leading-28: 28px;--leading-32: 32px;--leading-40: 40px;--leading-44: 44px;--leading-r1p5: 1.5;--radius-0: 0;--radius-2: 2px;--radius-3: 3px;--radius-4: 4px;--radius-6: 6px;--radius-8: 8px;--radius-12: 12px;--radius-16: 16px;--radius-20: 20px;--radius-24: 24px;--radius-full: 9999px;--shadow-1: 0px 1px 2px rgba(29, 41, 57, .07);--shadow-2: 0px 1px 2px rgba(29, 41, 57, .04), 0px 2px 8px rgba(29, 41, 57, .08);--shadow-3: 0px 2px 8px rgba(29, 41, 57, .08), 0px 8px 24px rgba(29, 41, 57, .12);--shadow-4: 0px 4px 8px rgba(29, 41, 57, .08), 0px 16px 48px rgba(29, 41, 57, .16);--spacing-px: 1px;--spacing-0: 0;--spacing-2: 2px;--spacing-4: 4px;--spacing-6: 6px;--spacing-8: 8px;--spacing-12: 12px;--spacing-16: 16px;--spacing-20: 20px;--spacing-24: 24px;--spacing-28: 28px;--spacing-32: 32px;--spacing-40: 40px;--spacing-48: 48px;--spacing-56: 56px;--spacing-64: 64px;--spacing-128: 128px;--spacing-256: 256px;--z-0: 0;--z-1: 1;--z-2: 2;--z-3: 3;--z-4: 4;--z-5: 5;--z-999: 999;--z-9999: 9999}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-13)}';if(typeof document<"u"&&!document.getElementById("acl-tokens")){const i=document.createElement("style");i.id="acl-tokens",i.textContent=o,document.head.appendChild(i)}exports.AnduinAvatar=n.AnduinAvatar;exports.AnduinBadge=n.AnduinBadge;exports.AnduinBadgeCount=n.AnduinBadgeCount;exports.AnduinButton=n.AnduinButton;exports.AnduinCalendar=n.AnduinCalendar;exports.AnduinCallout=n.AnduinCallout;exports.AnduinCheckbox=n.AnduinCheckbox;exports.AnduinDateInput=n.AnduinDateInput;exports.AnduinDatePicker=n.AnduinDatePicker;exports.AnduinDateRange=n.AnduinDateRange;exports.AnduinDateRangeDefault=n.AnduinDateRangeDefault;exports.AnduinDateRangeEnd=n.AnduinDateRangeEnd;exports.AnduinDateRangePanel=n.AnduinDateRangePanel;exports.AnduinDateRangeStart=n.AnduinDateRangeStart;exports.AnduinDivider=n.AnduinDivider;exports.AnduinDot=n.AnduinDot;exports.AnduinDrawer=n.AnduinDrawer;exports.AnduinDrawerClose=n.AnduinDrawerClose;exports.AnduinDropdown=n.AnduinDropdown;exports.AnduinField=n.AnduinField;exports.AnduinFieldDescription=n.AnduinFieldDescription;exports.AnduinFieldError=n.AnduinFieldError;exports.AnduinFieldGroup=n.AnduinFieldGroup;exports.AnduinFieldLabel=n.AnduinFieldLabel;exports.AnduinFileIcon=n.AnduinFileIcon;exports.AnduinIcon=n.AnduinIcon;exports.AnduinInput=n.AnduinInput;exports.AnduinLoadingState=n.AnduinLoadingState;exports.AnduinMenu=n.AnduinMenu;exports.AnduinMenuItem=n.AnduinMenuItem;exports.AnduinModal=n.AnduinModal;exports.AnduinModalClose=n.AnduinModalClose;exports.AnduinNavigation=n.AnduinNavigation;exports.AnduinNavigationItem=n.AnduinNavigationItem;exports.AnduinPagination=n.AnduinPagination;exports.AnduinPaginationFirstPage=n.AnduinPaginationFirstPage;exports.AnduinPaginationLastPage=n.AnduinPaginationLastPage;exports.AnduinPopover=n.AnduinPopover;exports.AnduinPopoverClose=n.AnduinPopoverClose;exports.AnduinProgress=n.AnduinProgress;exports.AnduinRadio=n.AnduinRadio;exports.AnduinRadioGroup=n.AnduinRadioGroup;exports.AnduinResizableHandle=n.AnduinResizableHandle;exports.AnduinResizablePanel=n.AnduinResizablePanel;exports.AnduinResizablePanelGroup=n.AnduinResizablePanelGroup;exports.AnduinSidebar=n.AnduinSidebar;exports.AnduinSidebarAction=n.AnduinSidebarAction;exports.AnduinSidebarBadge=n.AnduinSidebarBadge;exports.AnduinSidebarContent=n.AnduinSidebarContent;exports.AnduinSidebarFooter=n.AnduinSidebarFooter;exports.AnduinSidebarGroup=n.AnduinSidebarGroup;exports.AnduinSidebarGroupLabel=n.AnduinSidebarGroupLabel;exports.AnduinSidebarHeader=n.AnduinSidebarHeader;exports.AnduinSidebarMenu=n.AnduinSidebarMenu;exports.AnduinSidebarMenuItem=n.AnduinSidebarMenuItem;exports.AnduinSidebarSeparator=n.AnduinSidebarSeparator;exports.AnduinSkeleton=n.AnduinSkeleton;exports.AnduinSparkleSpinner=n.AnduinSparkleSpinner;exports.AnduinSpinner=n.AnduinSpinner;exports.AnduinSuggestion=n.AnduinSuggestion;exports.AnduinSwitcher=n.AnduinSwitcher;exports.AnduinTabContent=n.AnduinTabContent;exports.AnduinTabTrigger=n.AnduinTabTrigger;exports.AnduinTabs=n.AnduinTabs;exports.AnduinTabsList=n.AnduinTabsList;exports.AnduinTag=n.AnduinTag;exports.AnduinTagClose=n.AnduinTagClose;exports.AnduinTextarea=n.AnduinTextarea;exports.AnduinTimeline=n.AnduinTimeline;exports.AnduinTimelineDate=n.AnduinTimelineDate;exports.AnduinTimelineGroup=n.AnduinTimelineGroup;exports.AnduinTimelineItem=n.AnduinTimelineItem;exports.AnduinTimelineLabel=n.AnduinTimelineLabel;exports.AnduinTimelineTitle=n.AnduinTimelineTitle;exports.AnduinToast=n.AnduinToast;exports.AnduinToaster=n.AnduinToaster;exports.AnduinToggleGroup=n.AnduinToggleGroup;exports.AnduinToggleGroupItem=n.AnduinToggleGroupItem;exports.AnduinTooltip=n.AnduinTooltip;exports.AnduinTooltipContent=n.AnduinTooltipContent;exports.AnduinTooltipTrigger=n.AnduinTooltipTrigger;exports.AnduinWell=n.AnduinWell;exports.AnduinWellClose=n.AnduinWellClose;exports.BADGE_STYLES=n.BADGE_STYLES;exports.CALENDAR_CHANGE=n.CALENDAR_CHANGE;exports.CALENDAR_DAY_HOVER=n.CALENDAR_DAY_HOVER;exports.CHECKBOX_CHANGE=n.CHECKBOX_CHANGE;exports.DATE_INPUT_CHANGE=n.DATE_INPUT_CHANGE;exports.DATE_PICKER_CHANGE=n.DATE_PICKER_CHANGE;exports.DATE_RANGE_CHANGE=n.DATE_RANGE_CHANGE;exports.DRAWER_AFTER_CLOSE_EVENT=n.DRAWER_AFTER_CLOSE_EVENT;exports.DRAWER_CLOSE_EVENT=n.DRAWER_CLOSE_EVENT;exports.DROPDOWN_CHANGE=n.DROPDOWN_CHANGE;exports.FIELD_LABEL_CLICK=n.FIELD_LABEL_CLICK;exports.FIELD_LABEL_CLICK_COORDINATED=n.FIELD_LABEL_CLICK_COORDINATED;exports.FILE_ICONS=n.FILE_ICONS;exports.INPUT_CHANGE=n.INPUT_CHANGE;exports.INPUT_CLEAR=n.INPUT_CLEAR;exports.MENU_ITEM_CLICK=n.MENU_ITEM_CLICK;exports.MODAL_AFTER_CLOSE_EVENT=n.MODAL_AFTER_CLOSE_EVENT;exports.MODAL_CLOSE_EVENT=n.MODAL_CLOSE_EVENT;exports.NAVIGATION_CHANGE=n.NAVIGATION_CHANGE;exports.NAVIGATION_ITEM_CLICK=n.NAVIGATION_ITEM_CLICK;exports.PAGINATION_CHANGE=n.PAGINATION_CHANGE;exports.PAGINATION_JUMP=n.PAGINATION_JUMP;exports.POPOVER_CLOSE=n.POPOVER_CLOSE;exports.POPOVER_OPEN_CHANGE=n.POPOVER_OPEN_CHANGE;exports.RADIO_CHANGE=n.RADIO_CHANGE;exports.RADIO_GROUP_CHANGE=n.RADIO_GROUP_CHANGE;exports.RESIZE_EVENT=n.RESIZE_EVENT;exports.SIDEBAR_SELECT=n.SIDEBAR_SELECT;exports.SUGGESTION_CHANGE=n.SUGGESTION_CHANGE;exports.SUGGESTION_CLEAR=n.SUGGESTION_CLEAR;exports.SUGGESTION_SELECT=n.SUGGESTION_SELECT;exports.SWITCHER_CHANGE=n.SWITCHER_CHANGE;exports.TAB_CHANGE=n.TAB_CHANGE;exports.TAB_TRIGGER_CLICK=n.TAB_TRIGGER_CLICK;exports.TAB_VALUE_CHANGED=n.TAB_VALUE_CHANGED;exports.TAG_CLOSE_CLICK=n.TAG_CLOSE_CLICK;exports.TEXTAREA_CHANGE=n.TEXTAREA_CHANGE;exports.TOGGLE_GROUP_CHANGE=n.TOGGLE_GROUP_CHANGE;exports.TOGGLE_GROUP_ITEM_CHANGE=n.TOGGLE_GROUP_ITEM_CHANGE;exports.TOGGLE_GROUP_ITEM_CLICK=n.TOGGLE_GROUP_ITEM_CLICK;exports.TOGGLE_GROUP_ITEM_DESELECT=n.TOGGLE_GROUP_ITEM_DESELECT;exports.TOGGLE_GROUP_ITEM_SELECT=n.TOGGLE_GROUP_ITEM_SELECT;exports.TOOLTIP_CONTENT_POPUP_MOUNTED=n.TOOLTIP_CONTENT_POPUP_MOUNTED;exports.TOOLTIP_CONTENT_POPUP_UNMOUNTED=n.TOOLTIP_CONTENT_POPUP_UNMOUNTED;exports.TOOLTIP_HIDE=n.TOOLTIP_HIDE;exports.TOOLTIP_SHOW=n.TOOLTIP_SHOW;exports.TOOLTIP_TRIGGER_MOUNTED=n.TOOLTIP_TRIGGER_MOUNTED;exports.TOOLTIP_VISIBILITY_CHANGED=n.TOOLTIP_VISIBILITY_CHANGED;exports.WELL_CLOSE_CLICK=n.WELL_CLOSE_CLICK;exports.addMonths=n.addMonths;exports.formatISODate=n.formatISODate;exports.getBadgeVariantClass=n.getBadgeVariantClass;exports.parseISODate=n.parseISODate;exports.resolveFileIcon=n.resolveFileIcon;exports.startOfToday=n.startOfToday;exports.toast=n.toast;
|
|
@@ -3,6 +3,9 @@ import { LitElement } from 'lit';
|
|
|
3
3
|
import { nothing } from 'lit';
|
|
4
4
|
import { TemplateResult } from 'lit-html';
|
|
5
5
|
|
|
6
|
+
/** Add `count` months, clamping the day to the target month's length. */
|
|
7
|
+
export declare function addMonths(date: Date, count: number): Date;
|
|
8
|
+
|
|
6
9
|
export declare class AnduinAvatar extends LitElement {
|
|
7
10
|
static styles: CSSResult;
|
|
8
11
|
src: string;
|
|
@@ -56,6 +59,76 @@ export declare class AnduinButton extends LitElement {
|
|
|
56
59
|
render(): TemplateResult<1>;
|
|
57
60
|
}
|
|
58
61
|
|
|
62
|
+
/**
|
|
63
|
+
* A single-month calendar grid with month/year pickers and full keyboard
|
|
64
|
+
* navigation.
|
|
65
|
+
*
|
|
66
|
+
* Used on its own for day selection, and composed by `anduin-date-range` — the
|
|
67
|
+
* range picker drives `range-start` / `range-end` to paint the range across two
|
|
68
|
+
* calendars.
|
|
69
|
+
*
|
|
70
|
+
* All date attributes take an ISO date string (`YYYY-MM-DD`). `value` doubles as
|
|
71
|
+
* the selected day and the month the calendar opens on.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* <anduin-calendar value="2026-07-15" min-date="2026-01-01"></anduin-calendar>
|
|
75
|
+
*/
|
|
76
|
+
export declare class AnduinCalendar extends LitElement {
|
|
77
|
+
static styles: CSSResult;
|
|
78
|
+
/** Selected day, ISO `YYYY-MM-DD`. Also the month the calendar opens on. */
|
|
79
|
+
value: string;
|
|
80
|
+
/** Earliest selectable day, ISO `YYYY-MM-DD`. */
|
|
81
|
+
minDate: string;
|
|
82
|
+
/** Latest selectable day, ISO `YYYY-MM-DD`. */
|
|
83
|
+
maxDate: string;
|
|
84
|
+
/** First day of a painted range, ISO `YYYY-MM-DD`. Set by `anduin-date-range`. */
|
|
85
|
+
rangeStart: string;
|
|
86
|
+
/** Last day of a painted range, ISO `YYYY-MM-DD`. Set by `anduin-date-range`. */
|
|
87
|
+
rangeEnd: string;
|
|
88
|
+
/**
|
|
89
|
+
* Suppress the single-day selected marker so only the range markers express
|
|
90
|
+
* selection. Set by `anduin-date-range` on its panels, where `value` is just
|
|
91
|
+
* the month anchor and highlighting it would read as a stray selected day.
|
|
92
|
+
*/
|
|
93
|
+
rangeMode: boolean;
|
|
94
|
+
/** Displayed month, 0-based. Tracks `value` until the user navigates. */
|
|
95
|
+
private _viewMonth;
|
|
96
|
+
private _viewYear;
|
|
97
|
+
/** Roving-tabindex target for keyboard navigation, ISO `YYYY-MM-DD`. */
|
|
98
|
+
private _focus;
|
|
99
|
+
private _openSelect;
|
|
100
|
+
/** Set once `value` has seeded the view, so later edits don't yank the month
|
|
101
|
+
* back while the user is browsing. */
|
|
102
|
+
private _viewSeeded;
|
|
103
|
+
/** Set when a keyboard action moved focus, so we refocus after re-render. */
|
|
104
|
+
private _pendingFocus;
|
|
105
|
+
connectedCallback(): void;
|
|
106
|
+
disconnectedCallback(): void;
|
|
107
|
+
willUpdate(changed: Map<PropertyKey, unknown>): void;
|
|
108
|
+
updated(): void;
|
|
109
|
+
private _onOutsideClick;
|
|
110
|
+
private get _min();
|
|
111
|
+
private get _max();
|
|
112
|
+
private _isDisabled;
|
|
113
|
+
/** Clamp into [min, max] so keyboard navigation can't escape the range. */
|
|
114
|
+
private _clamp;
|
|
115
|
+
private _shiftMonth;
|
|
116
|
+
/** Move the roving focus, pulling the displayed month along with it. */
|
|
117
|
+
private _moveFocus;
|
|
118
|
+
private _onGridKeyDown;
|
|
119
|
+
private _pick;
|
|
120
|
+
private _emitHover;
|
|
121
|
+
/** The day that owns `tabindex="0"` when nothing has been focused yet. */
|
|
122
|
+
private _defaultFocusDate;
|
|
123
|
+
/** Years offered in the year picker — bounded by min/max when set, otherwise
|
|
124
|
+
* a ±10-year window around the displayed year. */
|
|
125
|
+
private get _yearOptions();
|
|
126
|
+
private _selectMonth;
|
|
127
|
+
private _selectYear;
|
|
128
|
+
private _renderSelect;
|
|
129
|
+
render(): TemplateResult<1>;
|
|
130
|
+
}
|
|
131
|
+
|
|
59
132
|
export declare class AnduinCallout extends LitElement {
|
|
60
133
|
static styles: CSSResult;
|
|
61
134
|
variant: string;
|
|
@@ -75,6 +148,238 @@ export declare class AnduinCheckbox extends LitElement {
|
|
|
75
148
|
render(): TemplateResult<1>;
|
|
76
149
|
}
|
|
77
150
|
|
|
151
|
+
/**
|
|
152
|
+
* A formatted date input. Displays a pattern such as `MM/dd/yyyy` and lets users
|
|
153
|
+
* type digits into each segment; clicking a segment highlights it, and focus
|
|
154
|
+
* auto-advances once a segment is filled.
|
|
155
|
+
*
|
|
156
|
+
* Typing is committed per segment: when no valid completion remains (typing `5`
|
|
157
|
+
* into a month, since `50`–`59` all exceed `12`) the digit is zero-padded and
|
|
158
|
+
* focus moves on. Arrow keys step a segment's value, wrapping at its bounds.
|
|
159
|
+
*
|
|
160
|
+
* `anduin-date-input:change` fires once every segment is filled; `event.detail`
|
|
161
|
+
* is the formatted string.
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* <anduin-date-input format="MM/dd/yyyy" value="03/15/2026"></anduin-date-input>
|
|
165
|
+
*/
|
|
166
|
+
export declare class AnduinDateInput extends LitElement {
|
|
167
|
+
static shadowRootOptions: ShadowRootInit;
|
|
168
|
+
static styles: CSSResult;
|
|
169
|
+
/** Pattern to display and type into, e.g. `MM/dd/yyyy`, `yyyy-MM-dd`, `dd.MM.yyyy`. */
|
|
170
|
+
format: string;
|
|
171
|
+
/** Current value, formatted to match `format`. Empty until every segment is filled. */
|
|
172
|
+
value: string;
|
|
173
|
+
size: DateInputSize;
|
|
174
|
+
disabled: boolean;
|
|
175
|
+
readonly: boolean;
|
|
176
|
+
/** `valid` | `invalid` | `warning` | `loading`. */
|
|
177
|
+
status: string;
|
|
178
|
+
startIcon: string;
|
|
179
|
+
/** Earliest allowed date, ISO `YYYY-MM-DD`. Completed dates below it are clamped up. */
|
|
180
|
+
minDate: string;
|
|
181
|
+
/** Latest allowed date, ISO `YYYY-MM-DD`. Completed dates above it are clamped down. */
|
|
182
|
+
maxDate: string;
|
|
183
|
+
/** Matches `anduin-field-label`'s `for` so clicking the label focuses this input. */
|
|
184
|
+
inputid: string;
|
|
185
|
+
/** Committed digits per segment, index-aligned with `_segments`. */
|
|
186
|
+
private _digits;
|
|
187
|
+
/** Index of the segment being typed into. */
|
|
188
|
+
private _active;
|
|
189
|
+
/** Digits typed into the active segment but not yet committed. */
|
|
190
|
+
private _buffer;
|
|
191
|
+
private _inputEl;
|
|
192
|
+
/** Selection we want after the next render, so re-renders don't drop the highlight. */
|
|
193
|
+
private _pendingSelection;
|
|
194
|
+
private _tokens;
|
|
195
|
+
private _segments;
|
|
196
|
+
connectedCallback(): void;
|
|
197
|
+
disconnectedCallback(): void;
|
|
198
|
+
private _onFieldLabelClick;
|
|
199
|
+
willUpdate(changed: Map<PropertyKey, unknown>): void;
|
|
200
|
+
updated(): void;
|
|
201
|
+
/** Parse an incoming formatted string by reading each segment's slice. */
|
|
202
|
+
private _adoptValue;
|
|
203
|
+
/** The rendered string: committed digits, the in-progress buffer, or placeholders. */
|
|
204
|
+
private _display;
|
|
205
|
+
/** The formatted value, or `''` while any segment is still empty. */
|
|
206
|
+
private _composeValue;
|
|
207
|
+
private _setDigits;
|
|
208
|
+
private _indexOfType;
|
|
209
|
+
/**
|
|
210
|
+
* Clamp a completed date into [minDate, maxDate]. Only applies when the format
|
|
211
|
+
* carries a full date — a partial format like `MM/dd` has no year to compare.
|
|
212
|
+
*/
|
|
213
|
+
private _clampToBounds;
|
|
214
|
+
private _focusSegment;
|
|
215
|
+
/** Which segment contains (or is nearest to) a caret offset. */
|
|
216
|
+
private _segmentAt;
|
|
217
|
+
/**
|
|
218
|
+
* Snap the caret to whole-segment selection. Handled synchronously: by `mouseup`
|
|
219
|
+
* the browser has already placed the caret, and deferring (rAF/timeout) would
|
|
220
|
+
* leave a bare caret visible for a frame — or never run at all in a background
|
|
221
|
+
* tab, where rAF is throttled.
|
|
222
|
+
*/
|
|
223
|
+
private _onSelectionIntent;
|
|
224
|
+
/** Write digits into a segment, clamped to its valid range and zero-padded. */
|
|
225
|
+
private _writeSegment;
|
|
226
|
+
/** Commit any half-typed digits so they aren't stranded on blur or navigation. */
|
|
227
|
+
private _flushBuffer;
|
|
228
|
+
private _commitBuffer;
|
|
229
|
+
private _typeDigit;
|
|
230
|
+
private _step;
|
|
231
|
+
private _clearSegment;
|
|
232
|
+
private _onKeyDown;
|
|
233
|
+
render(): TemplateResult<1>;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* A formatted date input paired with a calendar popover.
|
|
238
|
+
*
|
|
239
|
+
* Clicking the input opens the calendar; typing a date into the input moves the
|
|
240
|
+
* calendar to match; picking a day closes the popover and fills the input.
|
|
241
|
+
* `disabled` and `readonly` both prevent the popover from opening.
|
|
242
|
+
*
|
|
243
|
+
* Slot content into `actions` to add buttons below the calendar — the consumer
|
|
244
|
+
* owns that container's layout entirely.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* <anduin-date-picker format="MM/dd/yyyy" value="03/15/2026"></anduin-date-picker>
|
|
248
|
+
*/
|
|
249
|
+
export declare class AnduinDatePicker extends LitElement {
|
|
250
|
+
static styles: CSSResult;
|
|
251
|
+
/** Pattern for the input, e.g. `MM/dd/yyyy`. `value` must match it. */
|
|
252
|
+
format: string;
|
|
253
|
+
/** Current value, formatted to match `format`. */
|
|
254
|
+
value: string;
|
|
255
|
+
size: DateInputSize;
|
|
256
|
+
disabled: boolean;
|
|
257
|
+
readonly: boolean;
|
|
258
|
+
/** `valid` | `invalid` | `warning` | `loading`. */
|
|
259
|
+
status: string;
|
|
260
|
+
startIcon: string;
|
|
261
|
+
/** Earliest selectable date, ISO `YYYY-MM-DD`. */
|
|
262
|
+
minDate: string;
|
|
263
|
+
/** Latest selectable date, ISO `YYYY-MM-DD`. */
|
|
264
|
+
maxDate: string;
|
|
265
|
+
/** Where the calendar opens relative to the input. */
|
|
266
|
+
placement: DatePickerPlacement;
|
|
267
|
+
/** Matches `anduin-field-label`'s `for` so clicking the label focuses the input. */
|
|
268
|
+
inputid: string;
|
|
269
|
+
/** Mirrors the popover's own state — the popover owns opening and closing. */
|
|
270
|
+
private _open;
|
|
271
|
+
private _inputEl;
|
|
272
|
+
private _popoverEl;
|
|
273
|
+
connectedCallback(): void;
|
|
274
|
+
disconnectedCallback(): void;
|
|
275
|
+
private _onPopoverOpenChange;
|
|
276
|
+
private _closePopover;
|
|
277
|
+
/** The current value as a `Date`, or `null` while it is incomplete. */
|
|
278
|
+
private get _date();
|
|
279
|
+
/** ISO form of the value, for driving the calendar. */
|
|
280
|
+
private get _isoValue();
|
|
281
|
+
private _emit;
|
|
282
|
+
/** Typing a complete date in the input moves the calendar to match. */
|
|
283
|
+
private _onInputChange;
|
|
284
|
+
/** Picking a day fills the input and dismisses the popover. */
|
|
285
|
+
private _onCalendarChange;
|
|
286
|
+
private _onKeyDown;
|
|
287
|
+
/**
|
|
288
|
+
* Swallow the trigger click when the field is locked, so it never reaches the
|
|
289
|
+
* popover's own toggle handler.
|
|
290
|
+
*/
|
|
291
|
+
private _onTriggerClick;
|
|
292
|
+
render(): TemplateResult<1>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Two side-by-side calendars for picking a date range.
|
|
297
|
+
*
|
|
298
|
+
* Selection is a two-click flow: the first click sets the start and clears any
|
|
299
|
+
* previous end, the second sets the end (swapping if it falls before the start).
|
|
300
|
+
* A third click begins a new selection. `anduin-date-range:change` fires only
|
|
301
|
+
* once a range is complete, and `start-date` / `end-date` reflect the last
|
|
302
|
+
* complete range.
|
|
303
|
+
*
|
|
304
|
+
* Use `anduin-date-range-default` for the standard side-by-side layout, or place
|
|
305
|
+
* `anduin-date-range-start` and `anduin-date-range-end` yourself for full
|
|
306
|
+
* control over what sits between them.
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* <anduin-date-range start-date="2026-07-10" end-date="2026-07-20">
|
|
310
|
+
* <anduin-date-range-default></anduin-date-range-default>
|
|
311
|
+
* </anduin-date-range>
|
|
312
|
+
*/
|
|
313
|
+
export declare class AnduinDateRange extends LitElement {
|
|
314
|
+
static styles: CSSResult;
|
|
315
|
+
/** First day of the selected range, ISO `YYYY-MM-DD`. */
|
|
316
|
+
startDate: string;
|
|
317
|
+
/** Last day of the selected range, ISO `YYYY-MM-DD`. */
|
|
318
|
+
endDate: string;
|
|
319
|
+
/** Earliest selectable day, ISO `YYYY-MM-DD`. Forwarded to both calendars. */
|
|
320
|
+
minDate: string;
|
|
321
|
+
/** Latest selectable day, ISO `YYYY-MM-DD`. Forwarded to both calendars. */
|
|
322
|
+
maxDate: string;
|
|
323
|
+
/** First click of an in-progress selection, ISO `YYYY-MM-DD`. */
|
|
324
|
+
private _anchor;
|
|
325
|
+
/** Hovered day while a selection is in progress, for the range preview. */
|
|
326
|
+
private _hover;
|
|
327
|
+
private _panels;
|
|
328
|
+
/** Last `value` we pushed per panel. Mirrors Lit's "only write on change" so a
|
|
329
|
+
* calendar the user has navigated isn't yanked back to our derived month. */
|
|
330
|
+
private _pushedValue;
|
|
331
|
+
connectedCallback(): void;
|
|
332
|
+
disconnectedCallback(): void;
|
|
333
|
+
updated(): void;
|
|
334
|
+
/** Called by each panel once it has rendered its calendar. */
|
|
335
|
+
registerPanel(role: DateRangePanelRole, panel: AnduinDateRangePanel): void;
|
|
336
|
+
unregisterPanel(panel: AnduinDateRangePanel): void;
|
|
337
|
+
/** Push the derived range state down onto each registered panel's calendar. */
|
|
338
|
+
private _sync;
|
|
339
|
+
/** Which month each panel opens on: the start date on the left, the month
|
|
340
|
+
* after it on the right. Falls back to today when there's no range yet. */
|
|
341
|
+
private _panelValue;
|
|
342
|
+
/** The range the calendars should paint — the live preview while selecting,
|
|
343
|
+
* otherwise the committed range. */
|
|
344
|
+
private _displayedRange;
|
|
345
|
+
private _sorted;
|
|
346
|
+
private _onCalendarChange;
|
|
347
|
+
private _onCalendarHover;
|
|
348
|
+
render(): TemplateResult<1>;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/** The standard side-by-side layout: start calendar, 16px gap, end calendar. */
|
|
352
|
+
export declare class AnduinDateRangeDefault extends LitElement {
|
|
353
|
+
static styles: CSSResult;
|
|
354
|
+
render(): TemplateResult<1>;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/** The right-hand calendar of a date range. */
|
|
358
|
+
export declare class AnduinDateRangeEnd extends AnduinDateRangePanel {
|
|
359
|
+
protected readonly panelRole: "end";
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Base class for the two calendar panels. Renders one `anduin-calendar` and
|
|
364
|
+
* registers with the enclosing `anduin-date-range`, which then drives it.
|
|
365
|
+
*/
|
|
366
|
+
export declare abstract class AnduinDateRangePanel extends LitElement {
|
|
367
|
+
static styles: CSSResult;
|
|
368
|
+
protected abstract readonly panelRole: DateRangePanelRole;
|
|
369
|
+
private _host;
|
|
370
|
+
/** The calendar this panel owns. Read by `anduin-date-range`. */
|
|
371
|
+
get calendar(): AnduinCalendar | null;
|
|
372
|
+
firstUpdated(): void;
|
|
373
|
+
disconnectedCallback(): void;
|
|
374
|
+
private _findRangeHost;
|
|
375
|
+
render(): TemplateResult<1>;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/** The left-hand calendar of a date range. */
|
|
379
|
+
export declare class AnduinDateRangeStart extends AnduinDateRangePanel {
|
|
380
|
+
protected readonly panelRole: "start";
|
|
381
|
+
}
|
|
382
|
+
|
|
78
383
|
export declare class AnduinDivider extends LitElement {
|
|
79
384
|
static styles: CSSResult;
|
|
80
385
|
direction: string;
|
|
@@ -981,8 +1286,37 @@ export declare type ButtonSize = 'tiny' | 'extraSmall' | 'small' | 'medium' | 'l
|
|
|
981
1286
|
|
|
982
1287
|
export declare type ButtonVariant = 'gray0' | 'gray9' | 'primary' | 'danger' | 'success' | 'warning' | 'purple';
|
|
983
1288
|
|
|
1289
|
+
/** Fired when a day is picked. `event.detail` is the ISO date string (`YYYY-MM-DD`). */
|
|
1290
|
+
export declare const CALENDAR_CHANGE = "anduin-calendar:change";
|
|
1291
|
+
|
|
1292
|
+
/** Internal: day hover → parent range picker. Not part of the consumer API. */
|
|
1293
|
+
export declare const CALENDAR_DAY_HOVER = "anduin-calendar:day-hover";
|
|
1294
|
+
|
|
984
1295
|
export declare const CHECKBOX_CHANGE = "anduin-checkbox:change";
|
|
985
1296
|
|
|
1297
|
+
/** Fired when every segment is filled. `event.detail` is the formatted date string. */
|
|
1298
|
+
export declare const DATE_INPUT_CHANGE = "anduin-date-input:change";
|
|
1299
|
+
|
|
1300
|
+
/** Fired when a date is completed by typing or picked from the calendar. `event.detail` is the formatted string. */
|
|
1301
|
+
export declare const DATE_PICKER_CHANGE = "anduin-date-picker:change";
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Fired when the user completes a range selection (both ends picked).
|
|
1305
|
+
* `event.detail` is `{ startDate, endDate }`, both ISO `YYYY-MM-DD`.
|
|
1306
|
+
*/
|
|
1307
|
+
export declare const DATE_RANGE_CHANGE = "anduin-date-range:change";
|
|
1308
|
+
|
|
1309
|
+
export declare type DateInputSize = 'small' | 'default' | 'large';
|
|
1310
|
+
|
|
1311
|
+
export declare type DatePickerPlacement = 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
|
|
1312
|
+
|
|
1313
|
+
export declare interface DateRangeChangeDetail {
|
|
1314
|
+
startDate: string;
|
|
1315
|
+
endDate: string;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export declare type DateRangePanelRole = 'start' | 'end';
|
|
1319
|
+
|
|
986
1320
|
export declare const DRAWER_AFTER_CLOSE_EVENT = "anduin-after-close";
|
|
987
1321
|
|
|
988
1322
|
export declare const DRAWER_CLOSE_EVENT = "anduin-close";
|
|
@@ -1014,6 +1348,9 @@ export declare interface FileIconDef {
|
|
|
1014
1348
|
|
|
1015
1349
|
export declare type FileIconSize = 16 | 24 | 32;
|
|
1016
1350
|
|
|
1351
|
+
/** Format a `Date` as a zero-padded ISO date string (`YYYY-MM-DD`). */
|
|
1352
|
+
export declare function formatISODate(date: Date): string;
|
|
1353
|
+
|
|
1017
1354
|
export declare function getBadgeVariantClass(variant: string): string;
|
|
1018
1355
|
|
|
1019
1356
|
export declare const INPUT_CHANGE = "anduin-input:change";
|
|
@@ -1052,8 +1389,24 @@ export declare const PAGINATION_CHANGE = "anduin-pagination:change";
|
|
|
1052
1389
|
/** Internal: first/last-page buttons → parent bar. Not part of the consumer API. */
|
|
1053
1390
|
export declare const PAGINATION_JUMP = "anduin-pagination:jump";
|
|
1054
1391
|
|
|
1392
|
+
/**
|
|
1393
|
+
* Shared date helpers for the calendar / date-input component families.
|
|
1394
|
+
*
|
|
1395
|
+
* All date-valued attributes across the library take an ISO date string
|
|
1396
|
+
* (`YYYY-MM-DD`) so they round-trip cleanly through HTML attributes.
|
|
1397
|
+
*/
|
|
1398
|
+
/**
|
|
1399
|
+
* Parse a date string into a local-midnight `Date`. Accepts both zero-padded
|
|
1400
|
+
* (`2026-07-01`) and bare (`2026-7-1`) forms; returns `null` for anything that
|
|
1401
|
+
* isn't a real calendar date.
|
|
1402
|
+
*/
|
|
1403
|
+
export declare function parseISODate(value: string | null | undefined): Date | null;
|
|
1404
|
+
|
|
1055
1405
|
export declare const POPOVER_CLOSE = "anduin-popover:close";
|
|
1056
1406
|
|
|
1407
|
+
/** Fired whenever `open` changes, including self-initiated toggles and outside clicks. `event.detail` is the new state. */
|
|
1408
|
+
export declare const POPOVER_OPEN_CHANGE = "anduin-popover:open-change";
|
|
1409
|
+
|
|
1057
1410
|
export declare const RADIO_CHANGE = "anduin-radio:change";
|
|
1058
1411
|
|
|
1059
1412
|
export declare const RADIO_GROUP_CHANGE = "anduin-radio-group:change";
|
|
@@ -1079,6 +1432,9 @@ export declare function resolveFileIcon(type: string, size: 16 | 24 | 32): FileI
|
|
|
1079
1432
|
*/
|
|
1080
1433
|
export declare const SIDEBAR_SELECT = "anduin-sidebar:select";
|
|
1081
1434
|
|
|
1435
|
+
/** Today at local midnight. */
|
|
1436
|
+
export declare function startOfToday(): Date;
|
|
1437
|
+
|
|
1082
1438
|
export declare const SUGGESTION_CHANGE = "anduin-suggestion:change";
|
|
1083
1439
|
|
|
1084
1440
|
export declare const SUGGESTION_CLEAR = "anduin-suggestion:clear";
|