@duyluonganduin/acl-web-components 0.0.56 → 0.0.57
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 +9 -0
- package/dist/acl-web-components.iife.js +29 -27
- package/dist/acl-web-components.js +1 -1
- package/dist/{anduin-table-BCgVIfkl.cjs → anduin-table-CgbMyPrV.cjs} +14 -12
- package/dist/{anduin-table-BQzxNe9V.js → anduin-table-DGYmi5iv.js} +52 -47
- package/dist/jsx.d.ts +2 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +9 -0
- package/dist/react.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./anduin-table-BCgVIfkl.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.AnduinAiSpinner=n.AnduinAiSpinner;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.AnduinTable=n.AnduinTable;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.TABLE_CELL_CONTEXT_MENU=n.TABLE_CELL_CONTEXT_MENU;exports.TABLE_COLUMN_CLICK=n.TABLE_COLUMN_CLICK;exports.TABLE_COLUMN_RESIZE=n.TABLE_COLUMN_RESIZE;exports.TABLE_GROUP_TOGGLE=n.TABLE_GROUP_TOGGLE;exports.TABLE_ROW_CLICK=n.TABLE_ROW_CLICK;exports.TABLE_ROW_COLLAPSE=n.TABLE_ROW_COLLAPSE;exports.TABLE_ROW_EXPAND=n.TABLE_ROW_EXPAND;exports.TABLE_SELECTION_CHANGE=n.TABLE_SELECTION_CHANGE;exports.TABLE_SORT=n.TABLE_SORT;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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./anduin-table-CgbMyPrV.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.AnduinAiSpinner=n.AnduinAiSpinner;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.AnduinTable=n.AnduinTable;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.TABLE_CELL_CONTEXT_MENU=n.TABLE_CELL_CONTEXT_MENU;exports.TABLE_COLUMN_CLICK=n.TABLE_COLUMN_CLICK;exports.TABLE_COLUMN_RESIZE=n.TABLE_COLUMN_RESIZE;exports.TABLE_GROUP_TOGGLE=n.TABLE_GROUP_TOGGLE;exports.TABLE_ROW_CLICK=n.TABLE_ROW_CLICK;exports.TABLE_ROW_COLLAPSE=n.TABLE_ROW_COLLAPSE;exports.TABLE_ROW_EXPAND=n.TABLE_ROW_EXPAND;exports.TABLE_SELECTION_CHANGE=n.TABLE_SELECTION_CHANGE;exports.TABLE_SORT=n.TABLE_SORT;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;
|
|
@@ -521,6 +521,15 @@ export declare class AnduinDropdown extends LitElement {
|
|
|
521
521
|
variant: DropdownVariant;
|
|
522
522
|
size: 'small' | 'default';
|
|
523
523
|
fullWidth: boolean;
|
|
524
|
+
/**
|
|
525
|
+
* Offer a × on the trigger that clears the value (dispatching
|
|
526
|
+
* `anduin-dropdown:change` with `detail: ''`). On by default, as it always was.
|
|
527
|
+
* Turn it off for a dropdown whose value is mandatory — a sort order — with
|
|
528
|
+
* `clearable="false"` or the `clearable = false` property. A plain Lit boolean
|
|
529
|
+
* could not be turned off from HTML (any present attribute reads true), so this
|
|
530
|
+
* follows `anduin-table`'s `resizable-columns`: only the string "false" is false.
|
|
531
|
+
*/
|
|
532
|
+
clearable: boolean;
|
|
524
533
|
private _open;
|
|
525
534
|
private _query;
|
|
526
535
|
private _triggerEl;
|
|
@@ -930,7 +930,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
930
930
|
.toggle-item:hover .toggle-item__icon { color: var(--color-gray-7); }
|
|
931
931
|
.toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
|
|
932
932
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
|
|
933
|
-
`;let Y=A4;O([a({reflect:!0})],Y.prototype,"value"),O([a({attribute:"start-icon"})],Y.prototype,"startIcon"),O([a({type:Boolean})],Y.prototype,"disabled"),O([a({attribute:!1})],Y.prototype,"selected"),O([a({attribute:!1})],Y.prototype,"groupSize"),O([a({attribute:!1})],Y.prototype,"groupVariant"),O([a({attribute:!1})],Y.prototype,"groupMode");function K5(r){return r.split(" ").map(e=>e.trim()).filter(Boolean)}customElements.get("anduin-toggle-group")||customElements.define("anduin-toggle-group",W),customElements.get("anduin-toggle-group-item")||customElements.define("anduin-toggle-group-item",Y);var p0=Object.defineProperty,ge=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&p0(e,t,i),i};const W5="anduin-tooltip:show",q2="anduin-tooltip:hide",Y5="anduin-tooltip:trigger-mounted",q5="anduin-tooltip:content-popup-mounted",X5="anduin-tooltip:content-popup-unmounted",J5="anduin-tooltip:visibility-changed",u0=["top-start","top-center","top-end","right-start","right-center","right-end","bottom-start","bottom-center","bottom-end","left-start","left-center","left-end"];function fe(r,e,t,o,i){switch(o){case"top-start":return{left:r.left,top:r.top-t-i};case"top-center":return{left:r.left+r.width/2-e/2,top:r.top-t-i};case"top-end":return{left:r.left+r.width-e,top:r.top-t-i};case"right-start":return{left:r.right+i,top:r.top};case"right-center":return{left:r.right+i,top:r.top+r.height/2-t/2};case"right-end":return{left:r.right+i,top:r.top+r.height-t};case"bottom-start":return{left:r.left,top:r.bottom+i};case"bottom-center":return{left:r.left+r.width/2-e/2,top:r.bottom+i};case"bottom-end":return{left:r.left+r.width-e,top:r.bottom+i};case"left-start":return{left:r.left-e-i,top:r.top};case"left-center":return{left:r.left-e-i,top:r.top+r.height/2-t/2};case"left-end":return{left:r.left-e-i,top:r.top+r.height-t};default:return{left:0,top:0}}}function ve(r,e){return e.right>=r.left&&e.left<=r.right&&e.top<=r.bottom&&e.bottom>=r.top}function me(r,e){const t=Math.max(r.left,e.left),o=Math.max(r.top,e.top),i=Math.min(r.right,e.right),n=Math.min(r.bottom,e.bottom);return i<t||n<o?0:(i-t)*(n-o)}function h0(r,e,t,o=8){const i=window.innerWidth,n=window.innerHeight,l={left:0,top:0,right:i,bottom:n},d=e.width,C=e.height;if(!ve({left:r.left,top:r.top,right:r.right,bottom:r.bottom},l))return null;const p=fe(r,d,C,t,o),u=u0.map(b=>({p:b,off:fe(r,d,C,b,o)})).filter(({off:b})=>ve({left:b.left,top:b.top,right:b.left+d,bottom:b.top+C},l));if(u.length===0)return{placement:t,left:Math.round(Math.min(Math.max(p.left,0),i-d)),top:Math.round(Math.min(Math.max(p.top,0),n-C))};u.sort((b,x)=>{const L={left:b.off.left,top:b.off.top,right:b.off.left+d,bottom:b.off.top+C},m={left:x.off.left,top:x.off.top,right:x.off.left+d,bottom:x.off.top+C},
|
|
933
|
+
`;let Y=A4;O([a({reflect:!0})],Y.prototype,"value"),O([a({attribute:"start-icon"})],Y.prototype,"startIcon"),O([a({type:Boolean})],Y.prototype,"disabled"),O([a({attribute:!1})],Y.prototype,"selected"),O([a({attribute:!1})],Y.prototype,"groupSize"),O([a({attribute:!1})],Y.prototype,"groupVariant"),O([a({attribute:!1})],Y.prototype,"groupMode");function K5(r){return r.split(" ").map(e=>e.trim()).filter(Boolean)}customElements.get("anduin-toggle-group")||customElements.define("anduin-toggle-group",W),customElements.get("anduin-toggle-group-item")||customElements.define("anduin-toggle-group-item",Y);var p0=Object.defineProperty,ge=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&p0(e,t,i),i};const W5="anduin-tooltip:show",q2="anduin-tooltip:hide",Y5="anduin-tooltip:trigger-mounted",q5="anduin-tooltip:content-popup-mounted",X5="anduin-tooltip:content-popup-unmounted",J5="anduin-tooltip:visibility-changed",u0=["top-start","top-center","top-end","right-start","right-center","right-end","bottom-start","bottom-center","bottom-end","left-start","left-center","left-end"];function fe(r,e,t,o,i){switch(o){case"top-start":return{left:r.left,top:r.top-t-i};case"top-center":return{left:r.left+r.width/2-e/2,top:r.top-t-i};case"top-end":return{left:r.left+r.width-e,top:r.top-t-i};case"right-start":return{left:r.right+i,top:r.top};case"right-center":return{left:r.right+i,top:r.top+r.height/2-t/2};case"right-end":return{left:r.right+i,top:r.top+r.height-t};case"bottom-start":return{left:r.left,top:r.bottom+i};case"bottom-center":return{left:r.left+r.width/2-e/2,top:r.bottom+i};case"bottom-end":return{left:r.left+r.width-e,top:r.bottom+i};case"left-start":return{left:r.left-e-i,top:r.top};case"left-center":return{left:r.left-e-i,top:r.top+r.height/2-t/2};case"left-end":return{left:r.left-e-i,top:r.top+r.height-t};default:return{left:0,top:0}}}function ve(r,e){return e.right>=r.left&&e.left<=r.right&&e.top<=r.bottom&&e.bottom>=r.top}function me(r,e){const t=Math.max(r.left,e.left),o=Math.max(r.top,e.top),i=Math.min(r.right,e.right),n=Math.min(r.bottom,e.bottom);return i<t||n<o?0:(i-t)*(n-o)}function h0(r,e,t,o=8){const i=window.innerWidth,n=window.innerHeight,l={left:0,top:0,right:i,bottom:n},d=e.width,C=e.height;if(!ve({left:r.left,top:r.top,right:r.right,bottom:r.bottom},l))return null;const p=fe(r,d,C,t,o),u=u0.map(b=>({p:b,off:fe(r,d,C,b,o)})).filter(({off:b})=>ve({left:b.left,top:b.top,right:b.left+d,bottom:b.top+C},l));if(u.length===0)return{placement:t,left:Math.round(Math.min(Math.max(p.left,0),i-d)),top:Math.round(Math.min(Math.max(p.top,0),n-C))};u.sort((b,x)=>{const L={left:b.off.left,top:b.off.top,right:b.off.left+d,bottom:b.off.top+C},m={left:x.off.left,top:x.off.top,right:x.off.left+d,bottom:x.off.top+C},Z=me(L,l),k=me(m,l);if(k!==Z)return k-Z;const P=Math.abs(b.off.left-p.left)+Math.abs(b.off.top-p.top),e1=Math.abs(x.off.left-p.left)+Math.abs(x.off.top-p.top);return P-e1});const{p:v,off:y}=u[0];return{placement:v,left:Math.round(Math.min(Math.max(y.left,0),i-d)),top:Math.round(Math.min(Math.max(y.top,0),n-C))}}function Q5(r){return r.split("-")[0]||"top"}function g0(r,e,t){let o=!1,i=t.length-1;for(let n=0;n<t.length;n++){const l=t[n][0],d=t[n][1],C=t[i][0],p=t[i][1];d>e!=p>e&&r<(C-l)*(e-d)/(p-d)+l&&(o=!o),i=n}return o}const z4=class z4 extends h{constructor(){super(...arguments),this.disabled=!1,this.placement="top-center",this.triggerElement=null,this.contentPopupElement=null,this.containingBlockLeft=0,this.containingBlockTop=0,this.rafId=0,this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN,this.isVisible=!1}connectedCallback(){super.connectedCallback(),this.addEventListener(Y5,e=>{e.stopPropagation(),this.triggerElement=e.detail,this.maybeStartPositionLoop()}),this.addEventListener(q5,e=>{e.stopPropagation(),this.contentPopupElement=e.detail,this.computeContainingBlockOffset(this.contentPopupElement),this.maybeStartPositionLoop()}),this.addEventListener(X5,e=>{e.stopPropagation(),this.stopPositionLoop(),this.contentPopupElement=null}),this.addEventListener(W5,e=>{e.stopPropagation(),!this.disabled&&(this.isVisible=!0,this.broadcastVisibilityChanged(`show:${this.placement}`))}),this.addEventListener(q2,e=>{e.stopPropagation(),this.isVisible=!1,this.stopPositionLoop(),this.broadcastVisibilityChanged("hide")})}updated(e){e.has("disabled")&&this.disabled&&this.isVisible&&(this.isVisible=!1,this.stopPositionLoop(),this.broadcastVisibilityChanged("hide"))}disconnectedCallback(){super.disconnectedCallback(),this.stopPositionLoop(),this.triggerElement=null,this.contentPopupElement=null}maybeStartPositionLoop(){this.isVisible&&this.triggerElement&&this.contentPopupElement&&this.startPositionLoop()}startPositionLoop(){this.stopPositionLoop(),this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN;const e=this.triggerElement,t=this.contentPopupElement,o=this.placement,i=()=>{const n=e.getBoundingClientRect();(n.top!==this.prevTriggerTop||n.left!==this.prevTriggerLeft)&&(this.prevTriggerTop=n.top,this.prevTriggerLeft=n.left,this.positionPopup(t,e,o)),this.rafId=requestAnimationFrame(i)};this.rafId=requestAnimationFrame(i)}stopPositionLoop(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=0),this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN}computeContainingBlockOffset(e){const t=e,o=t.style.transform;t.style.transform="none";const i=e.getBoundingClientRect();this.containingBlockLeft=i.left,this.containingBlockTop=i.top,t.style.transform=o}positionPopup(e,t,o){const i=t.getBoundingClientRect(),n=e.getBoundingClientRect(),l=h0(i,n,o,8);if(l){const d=e;d.style.transform=`translate(${l.left-this.containingBlockLeft}px, ${l.top-this.containingBlockTop}px)`;const C=Q5(l.placement),p=Q5(o);if(C!==p){const u=e.querySelector(".tooltip-arrow");u&&(u.classList.remove(`tooltip-arrow--${p}`),u.classList.add(`tooltip-arrow--${C}`))}}}broadcastVisibilityChanged(e){this.dispatchEvent(new CustomEvent(J5,{detail:e,bubbles:!1,composed:!1}))}render(){return s`<div class="tooltip-root" part="tooltip"><slot></slot></div>`}};z4.styles=f`
|
|
934
934
|
/* inline-flex, not inline-block: the wrapper is purely structural (it exists
|
|
935
935
|
to position the popup), so it must not add height of its own. As an
|
|
936
936
|
inline-block it establishes a line box, and an inline-level trigger sits
|
|
@@ -1084,7 +1084,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
1084
1084
|
.well-close__button:active {
|
|
1085
1085
|
background-color: var(--color-gray-3);
|
|
1086
1086
|
}
|
|
1087
|
-
`;let Q2=T4;customElements.get("anduin-well")||customElements.define("anduin-well",E2),customElements.get("anduin-well-close")||customElements.define("anduin-well-close",Q2);var m0=Object.defineProperty,A1=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&m0(e,t,i),i};const e5="anduin-popover:close",t5="anduin-popover:open-change",O4=class O4 extends h{constructor(){super(...arguments),this.open=!1,this.placement="bottom-start",this.fullWidth=!1,this._visible=!1,this._closing=!1,this._closeTransitionEndHandler=null,this._onOutsideClick=e=>{e.composedPath().includes(this)||(this.open=!1)},this._onScrollOrResize=()=>{this.open&&this._updatePosition()},this._onPopoverClose=()=>{this.open=!1}}_onTriggerClick(){this.open=!this.open}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize),this.addEventListener(e5,this._onPopoverClose)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize),this.removeEventListener(e5,this._onPopoverClose)}updated(e){e.has("open")&&(this.dispatchEvent(new CustomEvent(t5,{detail:this.open,bubbles:!0,composed:!0})),this.open?(this._cancelCloseAnimation(),this._closing=!1,this._visible=!0,requestAnimationFrame(()=>this._updatePosition())):this._startCloseAnimation())}_cancelCloseAnimation(){this._closeTransitionEndHandler&&this._panelEl&&(this._panelEl.removeEventListener("transitionend",this._closeTransitionEndHandler),this._closeTransitionEndHandler=null),this._closing=!1}_startCloseAnimation(){if(!this._visible)return;this._closing=!0;const e=t=>{var o;t.propertyName==="opacity"&&((o=this._panelEl)==null||o.removeEventListener("transitionend",e),this._closeTransitionEndHandler=null,this._closing=!1,this._visible=!1)};this._closeTransitionEndHandler=e,requestAnimationFrame(()=>{var t;return(t=this._panelEl)==null?void 0:t.addEventListener("transitionend",e)})}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const o=e.getBoundingClientRect(),i=t.style.transform;t.style.transform="none";const n=t.getBoundingClientRect();t.style.transform=i;const l=t.getBoundingClientRect(),d=4,C=window.innerWidth,p=window.innerHeight,u=8;let v=0,y=0,b="bottom";const x=!this.placement.startsWith("top"),L=p-o.bottom-d,m=o.top-d,
|
|
1087
|
+
`;let Q2=T4;customElements.get("anduin-well")||customElements.define("anduin-well",E2),customElements.get("anduin-well-close")||customElements.define("anduin-well-close",Q2);var m0=Object.defineProperty,A1=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&m0(e,t,i),i};const e5="anduin-popover:close",t5="anduin-popover:open-change",O4=class O4 extends h{constructor(){super(...arguments),this.open=!1,this.placement="bottom-start",this.fullWidth=!1,this._visible=!1,this._closing=!1,this._closeTransitionEndHandler=null,this._onOutsideClick=e=>{e.composedPath().includes(this)||(this.open=!1)},this._onScrollOrResize=()=>{this.open&&this._updatePosition()},this._onPopoverClose=()=>{this.open=!1}}_onTriggerClick(){this.open=!this.open}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize),this.addEventListener(e5,this._onPopoverClose)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize),this.removeEventListener(e5,this._onPopoverClose)}updated(e){e.has("open")&&(this.dispatchEvent(new CustomEvent(t5,{detail:this.open,bubbles:!0,composed:!0})),this.open?(this._cancelCloseAnimation(),this._closing=!1,this._visible=!0,requestAnimationFrame(()=>this._updatePosition())):this._startCloseAnimation())}_cancelCloseAnimation(){this._closeTransitionEndHandler&&this._panelEl&&(this._panelEl.removeEventListener("transitionend",this._closeTransitionEndHandler),this._closeTransitionEndHandler=null),this._closing=!1}_startCloseAnimation(){if(!this._visible)return;this._closing=!0;const e=t=>{var o;t.propertyName==="opacity"&&((o=this._panelEl)==null||o.removeEventListener("transitionend",e),this._closeTransitionEndHandler=null,this._closing=!1,this._visible=!1)};this._closeTransitionEndHandler=e,requestAnimationFrame(()=>{var t;return(t=this._panelEl)==null?void 0:t.addEventListener("transitionend",e)})}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const o=e.getBoundingClientRect(),i=t.style.transform;t.style.transform="none";const n=t.getBoundingClientRect();t.style.transform=i;const l=t.getBoundingClientRect(),d=4,C=window.innerWidth,p=window.innerHeight,u=8;let v=0,y=0,b="bottom";const x=!this.placement.startsWith("top"),L=p-o.bottom-d,m=o.top-d,Z=L>=l.height,k=m>=l.height,P=x?Z||L>=m:!k&&Z;b=P?"bottom":"top",y=P?o.bottom+d:o.top-l.height-d;const e1=this.placement.endsWith("end")?"end":this.placement.endsWith("start")?"start":"center";e1==="start"?v=o.left:e1==="end"?v=o.right-l.width:v=o.left+o.width/2-l.width/2,v=Math.max(u,Math.min(v,C-l.width-u)),y=Math.max(u,Math.min(y,p-l.height-u)),t.style.transform=`translate(${Math.round(v-n.left)}px, ${Math.round(y-n.top)}px)`,t.dataset.side=b}render(){return s`
|
|
1088
1088
|
<div class="popover__trigger" @click=${this._onTriggerClick} part="trigger">
|
|
1089
1089
|
<slot name="trigger"></slot>
|
|
1090
1090
|
</div>
|
|
@@ -2068,7 +2068,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
2068
2068
|
color: var(--color-gray-8, #101828);
|
|
2069
2069
|
line-height: 20px;
|
|
2070
2070
|
}
|
|
2071
|
-
`;let s2=q4;Ee([a({type:Boolean})],s2.prototype,"checked"),Ee([a({type:Boolean})],s2.prototype,"disabled"),customElements.get("anduin-switcher")||customElements.define("anduin-switcher",s2);var P0=Object.defineProperty,
|
|
2071
|
+
`;let s2=q4;Ee([a({type:Boolean})],s2.prototype,"checked"),Ee([a({type:Boolean})],s2.prototype,"disabled"),customElements.get("anduin-switcher")||customElements.define("anduin-switcher",s2);var P0=Object.defineProperty,z=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&P0(e,t,i),i};const r4="anduin-dropdown:change",X4=class X4 extends h{constructor(){super(...arguments),this.value="",this.placeholder="Select...",this.options=[],this.icon="",this.searchable=!0,this.disabled=!1,this.placement="bottom-start",this.appearance="filled",this.variant="gray0",this.size="default",this.fullWidth=!1,this.clearable=!0,this._open=!1,this._query="",this._onOutsideClick=e=>{var t;!this.contains(e.target)&&!((t=this.shadowRoot)!=null&&t.contains(e.target))&&(this._open=!1,this._query="")},this._onScrollOrResize=()=>{this._open&&this._updatePosition()}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize)}updated(e){e.has("_open")&&this._open&&requestAnimationFrame(()=>{var t,o;if(this._updatePosition(),this.searchable){const i=(o=(t=this._searchEl)==null?void 0:t.shadowRoot)==null?void 0:o.querySelector("input");i==null||i.focus()}})}_onTriggerClick(){this.disabled||(this._open=!this._open,this._open||(this._query=""))}_onKeyDown(e){var t;e.key==="Escape"&&(this._open=!1,this._query="",(t=this._triggerEl)==null||t.focus())}_onClear(e){e.stopPropagation(),this.clearable&&(this.value="",this.dispatchEvent(new CustomEvent(r4,{detail:"",bubbles:!0,composed:!0})))}_selectOption(e){this.value=e.value,this._open=!1,this._query="",this.dispatchEvent(new CustomEvent(r4,{detail:e.value,bubbles:!0,composed:!0}))}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const o=e.getBoundingClientRect(),i=t.style.transform;t.style.transform="none";const n=t.getBoundingClientRect();t.style.transform=i;const l=t.querySelector(".panel__inner");l&&(l.style.minWidth=`${o.width}px`);const d=t.getBoundingClientRect(),C=4,p=window.innerWidth,u=window.innerHeight,v=8,y=u-o.bottom-C,b=o.top-C,L=d.height<=y||y>=b?o.bottom+C:o.top-d.height-C;let m=o.left;this.placement==="bottom-end"?m=o.right-d.width:this.placement==="bottom"&&(m=o.left+o.width/2-d.width/2),m=Math.max(v,Math.min(m,p-d.width-v));const Z=Math.max(v,Math.min(L,u-d.height-v));t.style.transform=`translate(${Math.round(m-n.left)}px, ${Math.round(Z-n.top)}px)`}get _filteredOptions(){if(!this._query)return this.options;const e=this._query.toLowerCase();return this.options.filter(t=>t.label.toLowerCase().includes(e))}render(){const e=this.options.find(n=>n.value===this.value),t=(e==null?void 0:e.label)??"",o=e?e.icon??"":this.icon,i=this._filteredOptions;return s`
|
|
2072
2072
|
<button
|
|
2073
2073
|
class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size==="small"?" trigger--small":""}${this.value?" has-value":""}"
|
|
2074
2074
|
part="trigger"
|
|
@@ -2080,11 +2080,11 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
2080
2080
|
>
|
|
2081
2081
|
${o&&t?s`<anduin-icon name="${o}" size="16"></anduin-icon>`:g}
|
|
2082
2082
|
<span class="trigger__label${t?"":" trigger__label--placeholder"}">${t||this.placeholder}</span>
|
|
2083
|
-
<span class="trigger__caret">
|
|
2083
|
+
<span class="trigger__caret${this.clearable?" trigger__caret--clearable":""}">
|
|
2084
2084
|
<span class="trigger__chevron">
|
|
2085
2085
|
<anduin-icon name="caretDown" size="16"></anduin-icon>
|
|
2086
2086
|
</span>
|
|
2087
|
-
${this.value&&!this.disabled?s`
|
|
2087
|
+
${this.clearable&&this.value&&!this.disabled?s`
|
|
2088
2088
|
<span class="trigger__clear" @click=${this._onClear}>
|
|
2089
2089
|
<anduin-icon name="crossSmall" size="16"></anduin-icon>
|
|
2090
2090
|
</span>
|
|
@@ -2234,7 +2234,9 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
2234
2234
|
}
|
|
2235
2235
|
.trigger__clear:hover { color: var(--color-gray-9, #101828); background-color: var(--color-gray-3); }
|
|
2236
2236
|
.trigger__clear:active { background-color: var(--color-gray-4); }
|
|
2237
|
-
|
|
2237
|
+
/* Scoped to --clearable so a dropdown with clearable=false keeps its chevron
|
|
2238
|
+
on hover: unscoped, the chevron fades out to reveal a × that is not there. */
|
|
2239
|
+
.trigger__caret--clearable:hover .trigger__chevron { opacity: 0; }
|
|
2238
2240
|
.trigger__caret:hover .trigger__clear { opacity: 1; }
|
|
2239
2241
|
|
|
2240
2242
|
/* ── Panel ─────────────────────────────────────────────────── */
|
|
@@ -2300,7 +2302,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
2300
2302
|
color: var(--color-gray-5, #98a1b2);
|
|
2301
2303
|
text-align: center;
|
|
2302
2304
|
}
|
|
2303
|
-
`;let
|
|
2305
|
+
`;let w=X4;z([a()],w.prototype,"value"),z([a()],w.prototype,"placeholder"),z([a({attribute:!1})],w.prototype,"options"),z([a()],w.prototype,"icon"),z([a({type:Boolean})],w.prototype,"searchable"),z([a({type:Boolean})],w.prototype,"disabled"),z([a()],w.prototype,"placement"),z([a()],w.prototype,"appearance"),z([a()],w.prototype,"variant"),z([a()],w.prototype,"size"),z([a({type:Boolean,attribute:"full-width",reflect:!0})],w.prototype,"fullWidth"),z([a({converter:r=>r!=="false"})],w.prototype,"clearable"),z([H()],w.prototype,"_open"),z([H()],w.prototype,"_query"),z([E(".trigger")],w.prototype,"_triggerEl"),z([E(".panel")],w.prototype,"_panelEl"),z([E("anduin-input")],w.prototype,"_searchEl"),customElements.get("anduin-dropdown")||customElements.define("anduin-dropdown",w);var B0=Object.defineProperty,c1=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&B0(e,t,i),i};const d2="anduin-close",l5="anduin-after-close",T0=300,Se=250,O0=new Map([["320",320],["360",360],["400",400],["640",640]]),J4=class J4 extends h{constructor(){super(...arguments),this.open=!1,this.heading="",this.hideHeader=!1,this.hideFooter=!1,this.defaultWidth="320",this.placement="right",this.allowInteractOutside=!1,this._leaving=!1,this._width=320,this._resizing=!1,this._startX=0,this._startWidth=0,this._stopAtSelf=e=>{e.stopPropagation()},this._onResizeStart=e=>{this._resizing=!0,this._startX=e.clientX,this._startWidth=this._width,e.currentTarget.setPointerCapture(e.pointerId),e.preventDefault()},this._onResizeMove=e=>{var n;if(!this._resizing)return;const t=this.placement==="left"?e.clientX-this._startX:this._startX-e.clientX,o=Math.max(200,Math.min(window.innerWidth*.9,this._startWidth+t));this._width=Math.round(o);const i=(n=this.shadowRoot)==null?void 0:n.querySelector(".drawer");i&&(i.style.width=`${this._width}px`)},this._onResizeEnd=()=>{this._resizing=!1}}willUpdate(e){e.has("defaultWidth")&&(this._width=O0.get(this.defaultWidth)??(parseInt(this.defaultWidth)||320))}updated(e){e.has("open")&&(this.open?(this._leaving=!1,this.classList.add("is-shown")):this.classList.contains("is-shown")&&(this._leaving=!0,setTimeout(()=>{this._leaving=!1,this.classList.remove("is-shown"),this.dispatchEvent(new CustomEvent(l5,{bubbles:!0,composed:!0}))},Se)))}_dispatch(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.addEventListener(d2,this._stopAtSelf),this.addEventListener(l5,this._stopAtSelf)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(d2,this._stopAtSelf),this.removeEventListener(l5,this._stopAtSelf)}_onClose(){this._dispatch(d2)}_onBackdropClick(){this._dispatch(d2)}render(){const e=this._leaving;return s`
|
|
2304
2306
|
${this.allowInteractOutside?g:s`<div class="backdrop" @click=${this._onBackdropClick}></div>`}
|
|
2305
2307
|
<div
|
|
2306
2308
|
class=${`drawer${e?" is-leaving":""}`}
|
|
@@ -2497,7 +2499,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
2497
2499
|
padding: 16px 20px;
|
|
2498
2500
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
2499
2501
|
}
|
|
2500
|
-
`;let U=J4;c1([a({type:Boolean,reflect:!0})],U.prototype,"open"),c1([a()],U.prototype,"heading"),c1([a({type:Boolean,attribute:"hide-header"})],U.prototype,"hideHeader"),c1([a({type:Boolean,attribute:"hide-footer"})],U.prototype,"hideFooter"),c1([a({attribute:"default-width"})],U.prototype,"defaultWidth"),c1([a({reflect:!0})],U.prototype,"placement"),c1([a({type:Boolean,attribute:"allow-interact-outside"})],U.prototype,"allowInteractOutside"),c1([H()],U.prototype,"_leaving"),c1([H()],U.prototype,"_width"),customElements.get("anduin-drawer")||customElements.define("anduin-drawer",U);class Ae extends HTMLElement{constructor(){super(...arguments),this._onClick=()=>{this.dispatchEvent(new CustomEvent(d2,{bubbles:!0,composed:!0}))}}connectedCallback(){this.style.display="contents",this.addEventListener("click",this._onClick)}disconnectedCallback(){this.removeEventListener("click",this._onClick)}}customElements.get("anduin-drawer-close")||customElements.define("anduin-drawer-close",Ae);var I0=Object.defineProperty,$=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&I0(e,t,i),i};const a5="anduin-suggestion:change",ze="anduin-suggestion:select",De="anduin-suggestion:clear",Q4=class Q4 extends h{constructor(){super(...arguments),this.value="",this.size="default",this.disabled=!1,this.readonly=!1,this.placeholder="",this.inputid="",this.status="",this.startIcon="",this.endIcon="",this.clearable=!1,this.suggestions=[],this.filter=!1,this.hideWhenEmpty=!1,this.emptyText="No suggestions",this._open=!1,this._activeIndex=-1,this._onDocumentMouseDown=e=>{var t;!this.contains(e.target)&&!((t=this.shadowRoot)!=null&&t.contains(e.target))&&(this._open=!1)},this._onScrollOrResize=()=>{this._open&&this._updatePosition()}}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this._onDocumentMouseDown),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize);const e=this.closest("anduin-field");e&&e.addEventListener(l1,t=>{var i;const o=t;this.inputid&&this.inputid===o.detail&&((i=this._inputEl)==null||i.focus())})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentMouseDown),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize)}updated(e){this._inputEl&&this._inputEl.value!==this.value&&(this._inputEl.value=this.value),this._open&&(e.has("_open")||e.has("value"))&&requestAnimationFrame(()=>this._updatePosition())}_normalized(){return this.suggestions.map(e=>typeof e=="string"?{value:e,label:e}:{label:e.value,...e})}get _filteredSuggestions(){const e=this._normalized();if(!this.filter||!this.value)return e;const t=this.value.toLowerCase();return e.filter(o=>(o.label??o.value).toLowerCase().includes(t))}_openPanel(){this.disabled||this.readonly||(this._open=!0,this._activeIndex=-1)}_onFocus(){this._openPanel()}_onInput(){this.value=this._inputEl.value,this._open||this._openPanel(),this._activeIndex=-1,this.dispatchEvent(new CustomEvent(a5,{detail:this.value,bubbles:!0,composed:!0}))}_onKeyDown(e){const t=this._filteredSuggestions;if(e.key==="ArrowDown"){if(e.preventDefault(),!this._open){this._openPanel();return}if(t.length===0)return;this._activeIndex=(this._activeIndex+1)%t.length,this._scrollActiveIntoView()}else if(e.key==="ArrowUp"){if(e.preventDefault(),!this._open){this._openPanel();return}if(t.length===0)return;this._activeIndex=this._activeIndex<=0?t.length-1:this._activeIndex-1,this._scrollActiveIntoView()}else e.key==="Enter"?this._open&&this._activeIndex>=0&&this._activeIndex<t.length&&(e.preventDefault(),this._selectSuggestion(t[this._activeIndex])):e.key==="Escape"&&this._open&&(e.preventDefault(),this._open=!1)}_scrollActiveIntoView(){requestAnimationFrame(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".option--active");e==null||e.scrollIntoView({block:"nearest"})})}_selectSuggestion(e){var t;this.value=e.value,this._inputEl&&(this._inputEl.value=e.value),this._open=!1,this.dispatchEvent(new CustomEvent(a5,{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(ze,{detail:e,bubbles:!0,composed:!0})),(t=this._inputEl)==null||t.focus()}_onClear(){var e;this.value="",this._inputEl&&(this._inputEl.value=""),this._activeIndex=-1,this.dispatchEvent(new CustomEvent(a5,{detail:"",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(De,{bubbles:!0,composed:!0})),(e=this._inputEl)==null||e.focus()}_updatePosition(){var
|
|
2502
|
+
`;let U=J4;c1([a({type:Boolean,reflect:!0})],U.prototype,"open"),c1([a()],U.prototype,"heading"),c1([a({type:Boolean,attribute:"hide-header"})],U.prototype,"hideHeader"),c1([a({type:Boolean,attribute:"hide-footer"})],U.prototype,"hideFooter"),c1([a({attribute:"default-width"})],U.prototype,"defaultWidth"),c1([a({reflect:!0})],U.prototype,"placement"),c1([a({type:Boolean,attribute:"allow-interact-outside"})],U.prototype,"allowInteractOutside"),c1([H()],U.prototype,"_leaving"),c1([H()],U.prototype,"_width"),customElements.get("anduin-drawer")||customElements.define("anduin-drawer",U);class Ae extends HTMLElement{constructor(){super(...arguments),this._onClick=()=>{this.dispatchEvent(new CustomEvent(d2,{bubbles:!0,composed:!0}))}}connectedCallback(){this.style.display="contents",this.addEventListener("click",this._onClick)}disconnectedCallback(){this.removeEventListener("click",this._onClick)}}customElements.get("anduin-drawer-close")||customElements.define("anduin-drawer-close",Ae);var I0=Object.defineProperty,$=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&I0(e,t,i),i};const a5="anduin-suggestion:change",ze="anduin-suggestion:select",De="anduin-suggestion:clear",Q4=class Q4 extends h{constructor(){super(...arguments),this.value="",this.size="default",this.disabled=!1,this.readonly=!1,this.placeholder="",this.inputid="",this.status="",this.startIcon="",this.endIcon="",this.clearable=!1,this.suggestions=[],this.filter=!1,this.hideWhenEmpty=!1,this.emptyText="No suggestions",this._open=!1,this._activeIndex=-1,this._onDocumentMouseDown=e=>{var t;!this.contains(e.target)&&!((t=this.shadowRoot)!=null&&t.contains(e.target))&&(this._open=!1)},this._onScrollOrResize=()=>{this._open&&this._updatePosition()}}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this._onDocumentMouseDown),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize);const e=this.closest("anduin-field");e&&e.addEventListener(l1,t=>{var i;const o=t;this.inputid&&this.inputid===o.detail&&((i=this._inputEl)==null||i.focus())})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentMouseDown),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize)}updated(e){this._inputEl&&this._inputEl.value!==this.value&&(this._inputEl.value=this.value),this._open&&(e.has("_open")||e.has("value"))&&requestAnimationFrame(()=>this._updatePosition())}_normalized(){return this.suggestions.map(e=>typeof e=="string"?{value:e,label:e}:{label:e.value,...e})}get _filteredSuggestions(){const e=this._normalized();if(!this.filter||!this.value)return e;const t=this.value.toLowerCase();return e.filter(o=>(o.label??o.value).toLowerCase().includes(t))}_openPanel(){this.disabled||this.readonly||(this._open=!0,this._activeIndex=-1)}_onFocus(){this._openPanel()}_onInput(){this.value=this._inputEl.value,this._open||this._openPanel(),this._activeIndex=-1,this.dispatchEvent(new CustomEvent(a5,{detail:this.value,bubbles:!0,composed:!0}))}_onKeyDown(e){const t=this._filteredSuggestions;if(e.key==="ArrowDown"){if(e.preventDefault(),!this._open){this._openPanel();return}if(t.length===0)return;this._activeIndex=(this._activeIndex+1)%t.length,this._scrollActiveIntoView()}else if(e.key==="ArrowUp"){if(e.preventDefault(),!this._open){this._openPanel();return}if(t.length===0)return;this._activeIndex=this._activeIndex<=0?t.length-1:this._activeIndex-1,this._scrollActiveIntoView()}else e.key==="Enter"?this._open&&this._activeIndex>=0&&this._activeIndex<t.length&&(e.preventDefault(),this._selectSuggestion(t[this._activeIndex])):e.key==="Escape"&&this._open&&(e.preventDefault(),this._open=!1)}_scrollActiveIntoView(){requestAnimationFrame(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".option--active");e==null||e.scrollIntoView({block:"nearest"})})}_selectSuggestion(e){var t;this.value=e.value,this._inputEl&&(this._inputEl.value=e.value),this._open=!1,this.dispatchEvent(new CustomEvent(a5,{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(ze,{detail:e,bubbles:!0,composed:!0})),(t=this._inputEl)==null||t.focus()}_onClear(){var e;this.value="",this._inputEl&&(this._inputEl.value=""),this._activeIndex=-1,this.dispatchEvent(new CustomEvent(a5,{detail:"",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(De,{bubbles:!0,composed:!0})),(e=this._inputEl)==null||e.focus()}_updatePosition(){var k;const e=(k=this.shadowRoot)==null?void 0:k.querySelector(".input-wrapper"),t=this._panelEl;if(!e||!t)return;const o=e.getBoundingClientRect(),i=t.style.transform;t.style.transform="none";const n=t.getBoundingClientRect();t.style.transform=i;const l=t.querySelector(".panel__inner");l&&(l.style.minWidth=`${o.width}px`);const d=t.getBoundingClientRect(),C=4,p=window.innerWidth,u=window.innerHeight,v=8,y=u-o.bottom-C,b=o.top-C,L=d.height<=y||y>=b?o.bottom+C:o.top-d.height-C;let m=o.left;m=Math.max(v,Math.min(m,p-d.width-v));const Z=Math.max(v,Math.min(L,u-d.height-v));t.style.transform=`translate(${Math.round(m-n.left)}px, ${Math.round(Z-n.top)}px)`}render(){const e=this.size==="small"?"input--small":this.size==="large"?"input--large":"input--default",t=this.status?`input--${this.status}`:"",o=!!this.startIcon,i=!!this.endIcon||this.clearable&&!!this.value,n=this.clearable&&!!this.value&&!this.disabled&&!this.readonly,l=this.size==="small"?"12":this.size==="large"?"20":"16",d=this.size==="small"?"10":this.size==="large"?"16":"14",C=this._filteredSuggestions,p=this._open&&(!this.hideWhenEmpty||C.length>0);return s`
|
|
2501
2503
|
<div class="input-wrapper">
|
|
2502
2504
|
${o?s`
|
|
2503
2505
|
<span class="input__start">
|
|
@@ -3375,7 +3377,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3375
3377
|
height: 1px;
|
|
3376
3378
|
background-color: var(--color-gray-3);
|
|
3377
3379
|
}
|
|
3378
|
-
`;let L5=L3;customElements.get("anduin-sidebar")||customElements.define("anduin-sidebar",f5),customElements.get("anduin-sidebar-content")||customElements.define("anduin-sidebar-content",v5),customElements.get("anduin-sidebar-header")||customElements.define("anduin-sidebar-header",D2),customElements.get("anduin-sidebar-footer")||customElements.define("anduin-sidebar-footer",P2),customElements.get("anduin-sidebar-group")||customElements.define("anduin-sidebar-group",m5),customElements.get("anduin-sidebar-group-label")||customElements.define("anduin-sidebar-group-label",b5),customElements.get("anduin-sidebar-menu")||customElements.define("anduin-sidebar-menu",y5),customElements.get("anduin-sidebar-menu-item")||customElements.define("anduin-sidebar-menu-item",u1),customElements.get("anduin-sidebar-action")||customElements.define("anduin-sidebar-action",H5),customElements.get("anduin-sidebar-badge")||customElements.define("anduin-sidebar-badge",_5),customElements.get("anduin-sidebar-separator")||customElements.define("anduin-sidebar-separator",L5);function
|
|
3380
|
+
`;let L5=L3;customElements.get("anduin-sidebar")||customElements.define("anduin-sidebar",f5),customElements.get("anduin-sidebar-content")||customElements.define("anduin-sidebar-content",v5),customElements.get("anduin-sidebar-header")||customElements.define("anduin-sidebar-header",D2),customElements.get("anduin-sidebar-footer")||customElements.define("anduin-sidebar-footer",P2),customElements.get("anduin-sidebar-group")||customElements.define("anduin-sidebar-group",m5),customElements.get("anduin-sidebar-group-label")||customElements.define("anduin-sidebar-group-label",b5),customElements.get("anduin-sidebar-menu")||customElements.define("anduin-sidebar-menu",y5),customElements.get("anduin-sidebar-menu-item")||customElements.define("anduin-sidebar-menu-item",u1),customElements.get("anduin-sidebar-action")||customElements.define("anduin-sidebar-action",H5),customElements.get("anduin-sidebar-badge")||customElements.define("anduin-sidebar-badge",_5),customElements.get("anduin-sidebar-separator")||customElements.define("anduin-sidebar-separator",L5);function D(r){if(!r)return null;const e=/^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());if(!e)return null;const[t,o,i]=[Number(e[1]),Number(e[2]),Number(e[3])],n=new Date(t,o-1,i);return n.getFullYear()!==t||n.getMonth()!==o-1||n.getDate()!==i?null:n}function _1(r){const e=t=>String(t).padStart(2,"0");return`${r.getFullYear()}-${e(r.getMonth()+1)}-${e(r.getDate())}`}function U1(){const r=new Date;return new Date(r.getFullYear(),r.getMonth(),r.getDate())}function h1(r,e){const t=r.getFullYear(),o=r.getMonth()+e,i=new Date(t,o+1,0).getDate();return new Date(t,o,Math.min(r.getDate(),i))}function j0(r,e){return new Date(r,e+1,0).getDate()}var K0=Object.defineProperty,r1=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&K0(e,t,i),i};const C2="anduin-calendar:change",V5="anduin-calendar:day-hover",je=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ke=["January","February","March","April","May","June","July","August","September","October","November","December"],W0=["Su","Mo","Tu","We","Th","Fr","Sa"],We=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function p2(r,e){return new Date(r.getFullYear(),r.getMonth(),r.getDate()+e)}function Y0(r){const e=["th","st","nd","rd"],t=r%100;return`${r}${e[(t-20)%10]??e[t]??e[0]}`}const V3=class V3 extends h{constructor(){super(...arguments),this.value="",this.minDate="",this.maxDate="",this.rangeStart="",this.rangeEnd="",this.rangeMode=!1,this._viewMonth=U1().getMonth(),this._viewYear=U1().getFullYear(),this._focus="",this._openSelect=null,this._viewSeeded=!1,this._pendingFocus=!1,this._onOutsideClick=e=>{this._openSelect&&!e.composedPath().includes(this)&&(this._openSelect=null)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick)}willUpdate(e){if(e.has("value")){const t=D(this.value);if(t)this._viewYear=t.getFullYear(),this._viewMonth=t.getMonth(),this._viewSeeded=!0;else if(!this._viewSeeded){const o=U1();this._viewYear=o.getFullYear(),this._viewMonth=o.getMonth()}}}updated(){var t;if(!this._pendingFocus)return;this._pendingFocus=!1;const e=(t=this.shadowRoot)==null?void 0:t.querySelector('.calendar__day-button[tabindex="0"]');e==null||e.focus()}get _min(){return D(this.minDate)}get _max(){return D(this.maxDate)}_isDisabled(e){const t=this._min,o=this._max;return!!(t&&e.getTime()<t.getTime()||o&&e.getTime()>o.getTime())}_clamp(e){const t=this._min,o=this._max;return t&&e.getTime()<t.getTime()?t:o&&e.getTime()>o.getTime()?o:e}_shiftMonth(e){const t=h1(new Date(this._viewYear,this._viewMonth,1),e);this._viewYear=t.getFullYear(),this._viewMonth=t.getMonth(),this._viewSeeded=!0}_moveFocus(e,t){const o=this._clamp(t);this._isDisabled(o)||(this._focus=_1(o),(o.getMonth()!==e.getMonth()||o.getFullYear()!==e.getFullYear())&&(this._viewYear=o.getFullYear(),this._viewMonth=o.getMonth(),this._viewSeeded=!0),this._pendingFocus=!0)}_onGridKeyDown(e){const t=D(this._focus)??this._defaultFocusDate();switch(e.key){case"ArrowLeft":this._moveFocus(t,e.shiftKey?h1(t,-1):p2(t,-1));break;case"ArrowRight":this._moveFocus(t,e.shiftKey?h1(t,1):p2(t,1));break;case"ArrowUp":this._moveFocus(t,e.shiftKey?h1(t,-12):p2(t,-7));break;case"ArrowDown":this._moveFocus(t,e.shiftKey?h1(t,12):p2(t,7));break;case"Home":this._moveFocus(t,p2(t,-t.getDay()));break;case"End":this._moveFocus(t,p2(t,6-t.getDay()));break;case"PageUp":this._moveFocus(t,h1(t,e.shiftKey?-12:-1));break;case"PageDown":this._moveFocus(t,h1(t,e.shiftKey?12:1));break;case"Enter":case" ":this._isDisabled(t)||this._pick(t);break;default:return}e.preventDefault()}_pick(e){const t=_1(e);this.value=t,this._focus=t,this.dispatchEvent(new CustomEvent(C2,{detail:t,bubbles:!0,composed:!0}))}_emitHover(e){this.dispatchEvent(new CustomEvent(V5,{detail:e,bubbles:!0,composed:!0}))}_defaultFocusDate(){const e=D(this._focus);if(e&&e.getMonth()===this._viewMonth&&e.getFullYear()===this._viewYear)return e;const t=D(this.value);if(t&&t.getMonth()===this._viewMonth&&t.getFullYear()===this._viewYear)return t;const o=U1();return o.getMonth()===this._viewMonth&&o.getFullYear()===this._viewYear?o:this._clamp(new Date(this._viewYear,this._viewMonth,1))}get _yearOptions(){const e=this._min,t=this._max,o=e?e.getFullYear():this._viewYear-10,i=t?t.getFullYear():this._viewYear+10,n=Math.min(o,this._viewYear),l=Math.max(i,this._viewYear);return Array.from({length:l-n+1},(d,C)=>n+C)}_selectMonth(e){this._viewMonth=e,this._viewSeeded=!0,this._openSelect=null}_selectYear(e){this._viewYear=e,this._viewSeeded=!0,this._openSelect=null}_renderSelect(e,t,o,i,n){const l=this._openSelect===e;return s`
|
|
3379
3381
|
<div class="calendar__select">
|
|
3380
3382
|
<anduin-button
|
|
3381
3383
|
appearance="text"
|
|
@@ -3400,7 +3402,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3400
3402
|
</div>
|
|
3401
3403
|
`:g}
|
|
3402
3404
|
</div>
|
|
3403
|
-
`}render(){const e=_1(U1()),t=
|
|
3405
|
+
`}render(){const e=_1(U1()),t=D(this.value),o=D(this.rangeStart),i=D(this.rangeEnd),n=this.rangeMode||!!(o||i),l=_1(this._defaultFocusDate()),d=new Date(this._viewYear,this._viewMonth,1),C=new Date(this._viewYear,this._viewMonth+1,0).getDate(),p=d.getDay(),u=[...Array.from({length:p},()=>null),...Array.from({length:C},(L,m)=>m+1)];for(;u.length%7!==0;)u.push(null);const v=Array.from({length:u.length/7},(L,m)=>u.slice(m*7,m*7+7)),y=`${Ke[this._viewMonth]} ${this._viewYear}`,b=(()=>{const L=this._min;return L?new Date(this._viewYear,this._viewMonth,0).getTime()<L.getTime():!1})(),x=(()=>{const L=this._max;return L?new Date(this._viewYear,this._viewMonth+1,1).getTime()>L.getTime():!1})();return s`
|
|
3404
3406
|
<div class="calendar" part="calendar">
|
|
3405
3407
|
<div class="calendar__header" part="header">
|
|
3406
3408
|
<anduin-button
|
|
@@ -3444,21 +3446,21 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3444
3446
|
<tbody>
|
|
3445
3447
|
${v.map(L=>s`
|
|
3446
3448
|
<tr>
|
|
3447
|
-
${L.map(m=>{if(m===null)return s`<td class="calendar__day-cell"></td>`;const
|
|
3449
|
+
${L.map(m=>{if(m===null)return s`<td class="calendar__day-cell"></td>`;const Z=new Date(this._viewYear,this._viewMonth,m),k=_1(Z),P=Z.getTime(),e1=this._isDisabled(Z),O2=!!o&&P===o.getTime(),f1=!!i&&P===i.getTime(),C7=!!o&&!!i&&P>o.getTime()&&P<i.getTime(),p7=!n&&!!t&&P===t.getTime(),nt=["calendar__day-cell",C7?"calendar__day-cell--in-range":"",O2&&i?"calendar__day-cell--range-start":"",f1&&o?"calendar__day-cell--range-end":""].filter(Boolean).join(" "),rt=["calendar__day-button",k===e?"calendar__day-button--today":"",p7?"calendar__day-button--selected":"",O2?"calendar__day-button--range-start":"",f1?"calendar__day-button--range-end":"",C7?"calendar__day-button--in-range":"",e1?"calendar__day-button--disabled":""].filter(Boolean).join(" ");return s`
|
|
3448
3450
|
<td
|
|
3449
|
-
class="${
|
|
3451
|
+
class="${nt}"
|
|
3450
3452
|
role="gridcell"
|
|
3451
3453
|
aria-selected="${p7||O2||f1}"
|
|
3452
3454
|
>
|
|
3453
3455
|
<button
|
|
3454
3456
|
type="button"
|
|
3455
|
-
class="${
|
|
3457
|
+
class="${rt}"
|
|
3456
3458
|
part="day"
|
|
3457
3459
|
aria-disabled="${e1}"
|
|
3458
|
-
aria-label="${We[
|
|
3459
|
-
tabindex="${
|
|
3460
|
-
@click=${()=>{e1||this._pick(
|
|
3461
|
-
@mouseenter=${()=>{e1||this._emitHover(
|
|
3460
|
+
aria-label="${We[Z.getDay()]}, ${Ke[Z.getMonth()]} ${Y0(m)}, ${Z.getFullYear()}"
|
|
3461
|
+
tabindex="${k===l?0:-1}"
|
|
3462
|
+
@click=${()=>{e1||this._pick(Z)}}
|
|
3463
|
+
@mouseenter=${()=>{e1||this._emitHover(k)}}
|
|
3462
3464
|
>${m}</button>
|
|
3463
3465
|
</td>
|
|
3464
3466
|
`})}
|
|
@@ -3561,7 +3563,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3561
3563
|
.calendar__day-button--range-end:hover { background-color: var(--color-primary-5); }
|
|
3562
3564
|
.calendar__day-button--in-range { color: var(--color-primary-7, var(--color-primary-5)); }
|
|
3563
3565
|
.calendar__day-button--in-range:hover { background-color: var(--color-primary-2); }
|
|
3564
|
-
`;let I=V3;r1([a({reflect:!0})],I.prototype,"value"),r1([a({attribute:"min-date"})],I.prototype,"minDate"),r1([a({attribute:"max-date"})],I.prototype,"maxDate"),r1([a({attribute:"range-start"})],I.prototype,"rangeStart"),r1([a({attribute:"range-end"})],I.prototype,"rangeEnd"),r1([a({type:Boolean,attribute:"range-mode"})],I.prototype,"rangeMode"),r1([H()],I.prototype,"_viewMonth"),r1([H()],I.prototype,"_viewYear"),r1([H()],I.prototype,"_focus"),r1([H()],I.prototype,"_openSelect"),customElements.get("anduin-calendar")||customElements.define("anduin-calendar",I);var q0=Object.defineProperty,u2=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&q0(e,t,i),i};const Ye="anduin-date-range:change",x3=class x3 extends h{constructor(){super(...arguments),this.startDate="",this.endDate="",this.minDate="",this.maxDate="",this._anchor=null,this._hover=null,this._panels=new Map,this._pushedValue=new Map,this._onCalendarChange=e=>{e.stopPropagation();const t=e.detail;if(!
|
|
3566
|
+
`;let I=V3;r1([a({reflect:!0})],I.prototype,"value"),r1([a({attribute:"min-date"})],I.prototype,"minDate"),r1([a({attribute:"max-date"})],I.prototype,"maxDate"),r1([a({attribute:"range-start"})],I.prototype,"rangeStart"),r1([a({attribute:"range-end"})],I.prototype,"rangeEnd"),r1([a({type:Boolean,attribute:"range-mode"})],I.prototype,"rangeMode"),r1([H()],I.prototype,"_viewMonth"),r1([H()],I.prototype,"_viewYear"),r1([H()],I.prototype,"_focus"),r1([H()],I.prototype,"_openSelect"),customElements.get("anduin-calendar")||customElements.define("anduin-calendar",I);var q0=Object.defineProperty,u2=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&q0(e,t,i),i};const Ye="anduin-date-range:change",x3=class x3 extends h{constructor(){super(...arguments),this.startDate="",this.endDate="",this.minDate="",this.maxDate="",this._anchor=null,this._hover=null,this._panels=new Map,this._pushedValue=new Map,this._onCalendarChange=e=>{e.stopPropagation();const t=e.detail;if(!D(t))return;if(this._anchor===null){this._anchor=t,this._hover=null;return}const[o,i]=this._sorted(this._anchor,t);this._anchor=null,this._hover=null,this.startDate=o,this.endDate=i,this.dispatchEvent(new CustomEvent(Ye,{detail:{startDate:o,endDate:i},bubbles:!0,composed:!0}))},this._onCalendarHover=e=>{e.stopPropagation(),this._anchor!==null&&(this._hover=e.detail)}}connectedCallback(){super.connectedCallback(),this.addEventListener(C2,this._onCalendarChange),this.addEventListener(V5,this._onCalendarHover)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(C2,this._onCalendarChange),this.removeEventListener(V5,this._onCalendarHover)}updated(){this._sync()}registerPanel(e,t){this._panels.set(e,t),this._pushedValue.delete(e),this._sync()}unregisterPanel(e){for(const[t,o]of this._panels)o===e&&(this._panels.delete(t),this._pushedValue.delete(t))}_sync(){const[e,t]=this._displayedRange();for(const[o,i]of this._panels){const n=i.calendar;if(!n)continue;n.minDate=this.minDate,n.maxDate=this.maxDate,n.rangeStart=e,n.rangeEnd=t;const l=this._panelValue(o);this._pushedValue.get(o)!==l&&(this._pushedValue.set(o,l),n.value=l)}}_panelValue(e){const t=D(this.startDate)??U1();return _1(e==="start"?t:h1(t,1))}_displayedRange(){if(this._anchor===null)return[this.startDate,this.endDate];if(this._hover===null)return[this._anchor,""];const[e,t]=this._sorted(this._anchor,this._hover);return[e,t]}_sorted(e,t){const o=D(e),i=D(t);return!o||!i?[e,t]:o.getTime()<=i.getTime()?[e,t]:[t,e]}render(){return s`<div class="date-range" part="date-range"><slot></slot></div>`}};x3.styles=f`
|
|
3565
3567
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3566
3568
|
`;let Q=x3;u2([a({attribute:"start-date",reflect:!0})],Q.prototype,"startDate"),u2([a({attribute:"end-date",reflect:!0})],Q.prototype,"endDate"),u2([a({attribute:"min-date"})],Q.prototype,"minDate"),u2([a({attribute:"max-date"})],Q.prototype,"maxDate"),u2([H()],Q.prototype,"_anchor"),u2([H()],Q.prototype,"_hover");const M3=class M3 extends h{constructor(){super(...arguments),this._host=null}get calendar(){var e;return((e=this.shadowRoot)==null?void 0:e.querySelector("anduin-calendar"))??null}firstUpdated(){var e;this._host=this._findRangeHost(),(e=this._host)==null||e.registerPanel(this.panelRole,this)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._host)==null||e.unregisterPanel(this),this._host=null}_findRangeHost(){let e=this;for(;e;){if(e instanceof Q)return e;e=e instanceof ShadowRoot?e.host:e.parentNode}return null}render(){return s`<anduin-calendar part="calendar" range-mode></anduin-calendar>`}};M3.styles=f`
|
|
3567
3569
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
@@ -3574,7 +3576,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3574
3576
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
3575
3577
|
|
|
3576
3578
|
.date-range-default { display: flex; flex-direction: row; gap: 16px; }
|
|
3577
|
-
`;let x5=w3;customElements.get("anduin-date-range")||customElements.define("anduin-date-range",Q),customElements.get("anduin-date-range-default")||customElements.define("anduin-date-range-default",x5),customElements.get("anduin-date-range-start")||customElements.define("anduin-date-range-start",qe),customElements.get("anduin-date-range-end")||customElements.define("anduin-date-range-end",Xe);var X0=Object.defineProperty,F=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&X0(e,t,i),i};const M5="anduin-date-input:change",Je={M:"month",d:"day",y:"year"};function J0(r){const e=[];let t=0,o=0;for(;o<r.length;){const i=r[o],n=Je[i];if(!n){let d="";for(;o<r.length&&!Je[r[o]];)d+=r[o++];e.push({literal:d}),t+=d.length;continue}let l="";for(;o<r.length&&r[o]===i;)l+=r[o++];e.push({segment:{type:n,placeholder:l,length:l.length,start:t}}),t+=l.length}return e}function l4(r){return r.type==="year"?10**r.length-1:r.length===1?9:r.type==="month"?12:31}const T2=1,k5=class k5 extends h{constructor(){super(...arguments),this.format="MM/dd/yyyy",this.value="",this.size="default",this.disabled=!1,this.readonly=!1,this.status="",this.startIcon="",this.minDate="",this.maxDate="",this.inputid="",this._digits=[],this._active=0,this._buffer="",this._pendingSelection=null,this._tokens=[],this._segments=[],this._onFieldLabelClick=e=>{const t=e.detail;this.inputid&&this.inputid===t&&this._focusSegment(0)}}connectedCallback(){super.connectedCallback();const e=this.closest("anduin-field");e==null||e.addEventListener(l1,this._onFieldLabelClick)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.closest("anduin-field"))==null||e.removeEventListener(l1,this._onFieldLabelClick)}willUpdate(e){e.has("format")?(this._tokens=J0(this.format),this._segments=this._tokens.flatMap(t=>"segment"in t?[t.segment]:[]),this._digits=this._segments.map(()=>null),this._active=0,this._buffer="",this.value&&this._adoptValue(this.value)):e.has("value")&&this.value!==this._composeValue()&&this._adoptValue(this.value)}updated(){const e=this._display();if(this._inputEl&&this._inputEl.value!==e&&(this._inputEl.value=e),this._pendingSelection&&this._inputEl){const[t,o]=this._pendingSelection;this._pendingSelection=null,this._inputEl.setSelectionRange(t,o)}}_adoptValue(e){const t=this._segments.map(o=>{const i=e.slice(o.start,o.start+o.length);return/^\d+$/.test(i)?i:null});this._digits=t,this._buffer=""}_display(){return this._tokens.map(e=>{if("literal"in e)return e.literal;const t=e.segment,o=this._segments.indexOf(t);return o===this._active&&this._buffer?this._buffer.padStart(t.length,"0"):this._digits[o]??t.placeholder}).join("")}_composeValue(){return!this._segments.length||this._digits.some(e=>e===null)?"":this._tokens.map(e=>"literal"in e?e.literal:this._digits[this._segments.indexOf(e.segment)]).join("")}_setDigits(e){if(this._digits=e,!this._composeValue()){this.value="";return}const o=this._clampToBounds(e);this._digits=o,this.value=this._composeValue(),this.dispatchEvent(new CustomEvent(M5,{detail:this.value,bubbles:!0,composed:!0}))}_indexOfType(e){return this._segments.findIndex(t=>t.type===e)}_clampToBounds(e){const t=
|
|
3579
|
+
`;let x5=w3;customElements.get("anduin-date-range")||customElements.define("anduin-date-range",Q),customElements.get("anduin-date-range-default")||customElements.define("anduin-date-range-default",x5),customElements.get("anduin-date-range-start")||customElements.define("anduin-date-range-start",qe),customElements.get("anduin-date-range-end")||customElements.define("anduin-date-range-end",Xe);var X0=Object.defineProperty,F=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&X0(e,t,i),i};const M5="anduin-date-input:change",Je={M:"month",d:"day",y:"year"};function J0(r){const e=[];let t=0,o=0;for(;o<r.length;){const i=r[o],n=Je[i];if(!n){let d="";for(;o<r.length&&!Je[r[o]];)d+=r[o++];e.push({literal:d}),t+=d.length;continue}let l="";for(;o<r.length&&r[o]===i;)l+=r[o++];e.push({segment:{type:n,placeholder:l,length:l.length,start:t}}),t+=l.length}return e}function l4(r){return r.type==="year"?10**r.length-1:r.length===1?9:r.type==="month"?12:31}const T2=1,k5=class k5 extends h{constructor(){super(...arguments),this.format="MM/dd/yyyy",this.value="",this.size="default",this.disabled=!1,this.readonly=!1,this.status="",this.startIcon="",this.minDate="",this.maxDate="",this.inputid="",this._digits=[],this._active=0,this._buffer="",this._pendingSelection=null,this._tokens=[],this._segments=[],this._onFieldLabelClick=e=>{const t=e.detail;this.inputid&&this.inputid===t&&this._focusSegment(0)}}connectedCallback(){super.connectedCallback();const e=this.closest("anduin-field");e==null||e.addEventListener(l1,this._onFieldLabelClick)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.closest("anduin-field"))==null||e.removeEventListener(l1,this._onFieldLabelClick)}willUpdate(e){e.has("format")?(this._tokens=J0(this.format),this._segments=this._tokens.flatMap(t=>"segment"in t?[t.segment]:[]),this._digits=this._segments.map(()=>null),this._active=0,this._buffer="",this.value&&this._adoptValue(this.value)):e.has("value")&&this.value!==this._composeValue()&&this._adoptValue(this.value)}updated(){const e=this._display();if(this._inputEl&&this._inputEl.value!==e&&(this._inputEl.value=e),this._pendingSelection&&this._inputEl){const[t,o]=this._pendingSelection;this._pendingSelection=null,this._inputEl.setSelectionRange(t,o)}}_adoptValue(e){const t=this._segments.map(o=>{const i=e.slice(o.start,o.start+o.length);return/^\d+$/.test(i)?i:null});this._digits=t,this._buffer=""}_display(){return this._tokens.map(e=>{if("literal"in e)return e.literal;const t=e.segment,o=this._segments.indexOf(t);return o===this._active&&this._buffer?this._buffer.padStart(t.length,"0"):this._digits[o]??t.placeholder}).join("")}_composeValue(){return!this._segments.length||this._digits.some(e=>e===null)?"":this._tokens.map(e=>"literal"in e?e.literal:this._digits[this._segments.indexOf(e.segment)]).join("")}_setDigits(e){if(this._digits=e,!this._composeValue()){this.value="";return}const o=this._clampToBounds(e);this._digits=o,this.value=this._composeValue(),this.dispatchEvent(new CustomEvent(M5,{detail:this.value,bubbles:!0,composed:!0}))}_indexOfType(e){return this._segments.findIndex(t=>t.type===e)}_clampToBounds(e){const t=D(this.minDate),o=D(this.maxDate);if(!t&&!o)return e;const i=this._indexOfType("month"),n=this._indexOfType("day"),l=this._indexOfType("year");if(i<0||n<0||l<0)return e;const d=Number(e[l]),C=Number(e[i]),p=Number(e[n]),u=Math.min(p,j0(d,C-1)),v=new Date(d,C-1,u),y=t&&v.getTime()<t.getTime()?t:o&&v.getTime()>o.getTime()?o:null;if(!y){if(u===p)return e;const x=[...e];return x[n]=String(u).padStart(this._segments[n].length,"0"),x}const b=[...e];return b[l]=String(y.getFullYear()).padStart(this._segments[l].length,"0").slice(-this._segments[l].length),b[i]=String(y.getMonth()+1).padStart(this._segments[i].length,"0"),b[n]=String(y.getDate()).padStart(this._segments[n].length,"0"),b}_focusSegment(e){var o,i;const t=this._segments[e];t&&(this._flushBuffer(),this._active=e,this._buffer="",this._pendingSelection=[t.start,t.start+t.length],(o=this._inputEl)==null||o.focus(),(i=this._inputEl)==null||i.setSelectionRange(t.start,t.start+t.length))}_segmentAt(e){for(let t=0;t<this._segments.length;t++){const o=this._segments[t];if(e>=o.start&&e<=o.start+o.length)return t}return this._segments.length-1}_onSelectionIntent(){if(this.disabled||this.readonly||!this._inputEl)return;const e=this._inputEl.selectionStart??0;this._focusSegment(this._segmentAt(e))}_writeSegment(e,t){const o=this._segments[e];if(!o)return;const i=Math.min(Math.max(Number(t),T2),l4(o)),n=[...this._digits];n[e]=String(i).padStart(o.length,"0"),this._buffer="",this._setDigits(n)}_flushBuffer(){this._buffer&&this._writeSegment(this._active,this._buffer)}_commitBuffer(e,t,o){this._writeSegment(e,t),o&&e<this._segments.length-1?this._focusSegment(e+1):this._focusSegment(e)}_typeDigit(e){const t=this._active,o=this._segments[t];if(!o)return;const i=this._buffer+e;if(o.length-i.length<=0){this._commitBuffer(t,i,!0);return}const l=Number(i.padEnd(o.length,"0")),d=Number(i.padEnd(o.length,"9"));if(l>l4(o)||d<T2){this._commitBuffer(t,i,!0);return}this._buffer=i,this._pendingSelection=[o.start,o.start+o.length]}_step(e){const t=this._active,o=this._segments[t];if(!o)return;const i=l4(o),n=this._digits[t];let l;n===null?l=e>0?T2:i:(l=Number(n)+e,l>i&&(l=T2),l<T2&&(l=i));const d=[...this._digits];d[t]=String(l).padStart(o.length,"0"),this._buffer="",this._setDigits(d),this._pendingSelection=[o.start,o.start+o.length]}_clearSegment(){const e=this._active,t=this._segments[e];if(!t)return;const o=[...this._digits];o[e]=null,this._buffer="",this._setDigits(o),this._pendingSelection=[t.start,t.start+t.length]}_onKeyDown(e){if(this.disabled||this.readonly)return;const t=this._segments.length-1;if(/^\d$/.test(e.key)&&!e.metaKey&&!e.ctrlKey&&!e.altKey){e.preventDefault(),this._typeDigit(e.key);return}switch(e.key){case"ArrowRight":this._active<t&&(e.preventDefault(),this._focusSegment(this._active+1));return;case"ArrowLeft":this._active>0&&(e.preventDefault(),this._focusSegment(this._active-1));return;case"ArrowUp":e.preventDefault(),this._step(1);return;case"ArrowDown":e.preventDefault(),this._step(-1);return;case"Backspace":case"Delete":e.preventDefault(),this._clearSegment();return;case"Tab":e.shiftKey&&this._active>0?(e.preventDefault(),this._focusSegment(this._active-1)):!e.shiftKey&&this._active<t&&(e.preventDefault(),this._focusSegment(this._active+1));return}}render(){const e=!!this.startIcon,t=["date-input-container",e?"date-input-container--has-icon":""].filter(Boolean).join(" "),o=["date-input",`date-input--${this.size}`,this.disabled?"date-input--disabled":"",this.readonly?"date-input--readonly":"",this.status?`date-input--${this.status}`:""].filter(Boolean).join(" "),i=this.size==="small"?"12":"16";return s`
|
|
3578
3580
|
<div class="${t}" part="container">
|
|
3579
3581
|
${e?s`<span class="date-input__icon" part="icon">
|
|
3580
3582
|
<anduin-icon name="${this.startIcon}" size="${i}"></anduin-icon>
|
|
@@ -3650,7 +3652,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3650
3652
|
.date-input--invalid { border-color: var(--color-danger-4); }
|
|
3651
3653
|
.date-input--warning { border-color: var(--color-warning-4); }
|
|
3652
3654
|
.date-input--loading { border-color: var(--color-gray-4); }
|
|
3653
|
-
`;let S=k5;F([a()],S.prototype,"format"),F([a()],S.prototype,"value"),F([a()],S.prototype,"size"),F([a({type:Boolean})],S.prototype,"disabled"),F([a({type:Boolean})],S.prototype,"readonly"),F([a()],S.prototype,"status"),F([a({attribute:"start-icon"})],S.prototype,"startIcon"),F([a({attribute:"min-date"})],S.prototype,"minDate"),F([a({attribute:"max-date"})],S.prototype,"maxDate"),F([a()],S.prototype,"inputid"),F([H()],S.prototype,"_digits"),F([H()],S.prototype,"_active"),F([H()],S.prototype,"_buffer"),F([E("input")],S.prototype,"_inputEl"),customElements.get("anduin-date-input")||customElements.define("anduin-date-input",S);var Q0=Object.defineProperty,N=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&Q0(e,t,i),i};const Qe="anduin-date-picker:change",e7={M:"month",d:"day",y:"year"};function
|
|
3655
|
+
`;let S=k5;F([a()],S.prototype,"format"),F([a()],S.prototype,"value"),F([a()],S.prototype,"size"),F([a({type:Boolean})],S.prototype,"disabled"),F([a({type:Boolean})],S.prototype,"readonly"),F([a()],S.prototype,"status"),F([a({attribute:"start-icon"})],S.prototype,"startIcon"),F([a({attribute:"min-date"})],S.prototype,"minDate"),F([a({attribute:"max-date"})],S.prototype,"maxDate"),F([a()],S.prototype,"inputid"),F([H()],S.prototype,"_digits"),F([H()],S.prototype,"_active"),F([H()],S.prototype,"_buffer"),F([E("input")],S.prototype,"_inputEl"),customElements.get("anduin-date-input")||customElements.define("anduin-date-input",S);var Q0=Object.defineProperty,N=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&Q0(e,t,i),i};const Qe="anduin-date-picker:change",e7={M:"month",d:"day",y:"year"};function et(r,e){if(!r)return null;const t={};let o=0,i=0;for(;i<e.length;){const d=e[i],C=e7[d];if(!C){i++,o++;continue}let p=0;for(;i<e.length&&e[i]===d;)i++,p++;const u=r.slice(o,o+p);if(!/^\d+$/.test(u))return null;t[C]=u,o+=p}if(!t.month||!t.day||!t.year)return null;const n=Number(t.year),l=new Date(n,Number(t.month)-1,Number(t.day));return l.getMonth()!==Number(t.month)-1||l.getDate()!==Number(t.day)?null:l}function tt(r,e){const t={month:r.getMonth()+1,day:r.getDate(),year:r.getFullYear()};let o="",i=0;for(;i<e.length;){const n=e[i],l=e7[n];if(!l){o+=n,i++;continue}let d=0;for(;i<e.length&&e[i]===n;)i++,d++;o+=String(t[l]).padStart(d,"0").slice(-d)}return o}const Z3=class Z3 extends h{constructor(){super(...arguments),this.format="MM/dd/yyyy",this.value="",this.size="default",this.disabled=!1,this.readonly=!1,this.status="",this.startIcon="",this.minDate="",this.maxDate="",this.placement="bottom-start",this.inputid="",this._open=!1,this._onPopoverOpenChange=e=>{e.stopPropagation(),this._open=e.detail},this._onInputChange=e=>{e.stopPropagation(),this._emit(e.detail)},this._onCalendarChange=e=>{e.stopPropagation();const t=D(e.detail);t&&(this._emit(tt(t,this.format)),this._closePopover())},this._onKeyDown=e=>{var t;e.key==="Escape"&&this._open&&(e.stopPropagation(),this._closePopover(),(t=this._inputEl)==null||t.focus())},this._onTriggerClick=e=>{(this.disabled||this.readonly)&&e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener(M5,this._onInputChange),this.addEventListener(C2,this._onCalendarChange),this.addEventListener(t5,this._onPopoverOpenChange),this.addEventListener("keydown",this._onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(M5,this._onInputChange),this.removeEventListener(C2,this._onCalendarChange),this.removeEventListener(t5,this._onPopoverOpenChange),this.removeEventListener("keydown",this._onKeyDown)}_closePopover(){this._popoverEl&&(this._popoverEl.open=!1),this._open=!1}get _date(){return et(this.value,this.format)}get _isoValue(){const e=this._date;return e?_1(e):""}_emit(e){this.value=e,this.dispatchEvent(new CustomEvent(Qe,{detail:e,bubbles:!0,composed:!0}))}render(){return s`
|
|
3654
3656
|
<div class="datepicker" part="datepicker">
|
|
3655
3657
|
<anduin-popover full-width placement=${this.placement}>
|
|
3656
3658
|
<anduin-date-input
|
|
@@ -3689,7 +3691,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3689
3691
|
|
|
3690
3692
|
/* The popover contributes 8px; the calendar reads better with 16px total. */
|
|
3691
3693
|
.datepicker__panel { padding: 8px; display: flex; flex-direction: column; }
|
|
3692
|
-
`;let A=Z3;N([a()],A.prototype,"format"),N([a()],A.prototype,"value"),N([a()],A.prototype,"size"),N([a({type:Boolean})],A.prototype,"disabled"),N([a({type:Boolean})],A.prototype,"readonly"),N([a()],A.prototype,"status"),N([a({attribute:"start-icon"})],A.prototype,"startIcon"),N([a({attribute:"min-date"})],A.prototype,"minDate"),N([a({attribute:"max-date"})],A.prototype,"maxDate"),N([a()],A.prototype,"placement"),N([a()],A.prototype,"inputid"),N([H()],A.prototype,"_open"),N([E("anduin-date-input")],A.prototype,"_inputEl"),N([E("anduin-popover")],A.prototype,"_popoverEl"),customElements.get("anduin-date-picker")||customElements.define("anduin-date-picker",A);var i9=Object.defineProperty,V=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&i9(e,t,i),i};const t7="anduin-table:sort",i7="anduin-table:column-click",o7="anduin-table:row-click",n7="anduin-table:selection-change",r7="anduin-table:cell-context-menu",l7="anduin-table:row-expand",a7="anduin-table:row-collapse",s7="anduin-table:group-toggle",a4="anduin-table:column-resize",d7=40,g1=r=>r.type==="selection",L1=(r,e)=>{if(!e)return;let t=r;for(const o of e.split(".")){if(t===null||typeof t!="object")return;t=t[o]}return t},o9=(r,e)=>r===e?0:r==null?1:e==null?-1:typeof r=="number"&&typeof e=="number"?r-e:typeof r=="boolean"&&typeof e=="boolean"?Number(r)-Number(e):r instanceof Date&&e instanceof Date?r.getTime()-e.getTime():String(r).localeCompare(String(e),void 0,{numeric:!0,sensitivity:"base"}),k3=class k3 extends h{constructor(){super(...arguments),this.columns=[],this.data=[],this.layout="fit-data",this.renderMode="basic",this.rowHeight=40,this.height="",this.maxHeight="",this.minHeight="",this.resizableColumns=!0,this.hideHeader=!1,this.loading=!1,this.selectable="clickable",this.indexColumn="id",this.columnAlign="left",this.columnVerticalAlign="middle",this.sortField="",this.sortDirection="asc",this.dataTree=!1,this.treeChildrenField="children",this.treeChildIndent=20,this.groupBy="",this.selectedRows=[],this.expandedKeys=new Set,this.collapsedGroups=new Set,this.virtualScrollTop=0,this.viewportHeight=0,this.scrolledX=!1,this.scrollableXEnd=!1,this.resizedWidths={},this.resizingKey="",this.rangeAnchorKey=null,this.isDraggingRange=!1,this.dragBaseKeys=[],this.dragSelects=!0,this.autoExpandedKeys=new Set,this.resizeDrag=null,this.resizeFrame=0,this.renderSelectedKeys=new Set,this.renderSelectableRows=[],this.cachedRenderRows=[],this.rowsDirty=!0,this.onWindowMouseUp=()=>{this.isDraggingRange=!1},this.onScroll=e=>{const t=e.currentTarget;this.renderMode==="virtual"&&(this.virtualScrollTop=t.scrollTop),this.syncHorizontalScrollState()},this.onResizeMove=e=>{const t=this.resizeDrag;if(!t)return;const o=48;t.width=Math.max(o,t.startWidth+(e.clientX-t.startX)),!this.resizeFrame&&(this.resizeFrame=requestAnimationFrame(()=>{this.resizeFrame=0,this.resizeDrag&&(this.resizedWidths={...this.resizedWidths,[t.key]:t.width})}))},this.onResizeEnd=e=>{const t=this.resizeDrag;t&&(this.resizeFrame&&(cancelAnimationFrame(this.resizeFrame),this.resizeFrame=0),this.resizedWidths={...this.resizedWidths,[t.key]:t.width},this.resizeDrag=null,this.resizingKey="",this.dispatchEvent(new CustomEvent(a4,{detail:{column:e,field:t.key,width:t.width},bubbles:!0,composed:!0})))}}connectedCallback(){super.connectedCallback(),window.addEventListener("mouseup",this.onWindowMouseUp)}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("mouseup",this.onWindowMouseUp),(e=this.resizeObserver)==null||e.disconnect(),this.resizeObserver=void 0}firstUpdated(){const e=this.scrollEl;e&&(this.resizeObserver=new ResizeObserver(()=>{this.viewportHeight=e.clientHeight,this.syncHorizontalScrollState()}),this.resizeObserver.observe(e),this.viewportHeight=e.clientHeight)}willUpdate(e){["data","columns","sortField","sortDirection","groupBy","dataTree","treeChildrenField","indexColumn","onStartExpanded","isRowDisabled","selectedRows","expandedKeys","collapsedGroups"].some(o=>e.has(o))&&(this.rowsDirty=!0),this.rowsDirty&&(this.cachedRenderRows=this.buildRenderRows(),this.renderSelectedKeys=this.selectedKeySet,this.renderSelectableRows=this.cachedRenderRows.filter(o=>o.kind==="row"&&!this.rowIsDisabled(o.data)),this.rowsDirty=!1)}updated(e){this.applyFrozenOffsets(),(e.has("data")||e.has("columns"))&&this.syncHorizontalScrollState()}get scrollEl(){return this.renderRoot.querySelector(".table__scroll")}keyFor(e,t){const o=L1(e,this.indexColumn);return o==null?`__index:${t}`:String(o)}get selectedKeySet(){const e=new Set;return this.selectedRows.forEach((t,o)=>e.add(this.keyFor(t,o))),e}rowIsDisabled(e){return this.isRowDisabled?this.isRowDisabled(e):!1}get frozenSides(){const e=this.columns,t=e.map(()=>null);for(let o=0;o<e.length;o++){const i=e[o].isFrozen;if(!i)break;t[o]=i==="right"?"right":"left"}for(let o=e.length-1;o>=0;o--){const i=e[o].isFrozen;if(!i)break;t[o]===null&&(t[o]=i==="left"?"left":"right")}for(let o=0;o<e.length;o++){const i=e[o].isFrozen;(i==="left"||i==="right")&&(t[o]=i)}return t}applyFrozenOffsets(){const e=this.frozenSides;if(!e.some(Boolean))return;const t=Array.from(this.renderRoot.querySelectorAll("thead th[data-col]"));if(t.length===0)return;const o=t.map(C=>C.getBoundingClientRect().width),i=e.map(()=>null);let n=0;for(let C=0;C<e.length;C++)e[C]==="left"&&(i[C]=n,n+=o[C]??0);let l=0;for(let C=e.length-1;C>=0;C--)e[C]==="right"&&(i[C]=l,l+=o[C]??0);this.renderRoot.querySelectorAll("[data-col]").forEach(C=>{const p=Number(C.dataset.col),u=e[p],v=i[p];!u||v===null||(C.style[u]=`${v}px`)})}get sortedColumn(){if(this.sortField)return this.columns.find(e=>!g1(e)&&e.field===this.sortField)}sortRows(e){const t=this.sortedColumn;if(!t)return e;const o=this.sortDirection==="desc"?-1:1,i=t.sortWith?(n,l)=>t.sortWith({a:n,b:l}):(n,l)=>o9(L1(n,t.field),L1(l,t.field));return[...e].sort((n,l)=>i(n,l)*o)}onHeaderClick(e){if(this.dispatchEvent(new CustomEvent(i7,{detail:{column:e},bubbles:!0,composed:!0})),!e.isSortable)return;let t=e.field,o="asc";this.sortField===e.field&&(this.sortDirection==="asc"?o="desc":(t="",o=null)),this.sortField=t,o&&(this.sortDirection=o),this.dispatchEvent(new CustomEvent(t7,{detail:{field:t,direction:o,column:e},bubbles:!0,composed:!0}))}buildRenderRows(){return this.groupBy?this.buildGroupedRows():this.buildFlatRows(this.sortRows(this.data),0)}buildFlatRows(e,t){const o=[];return e.forEach((i,n)=>{const l=this.keyFor(i,n),d=this.dataTree?L1(i,this.treeChildrenField):void 0,C=Array.isArray(d)&&d.length>0,p=C&&this.isExpanded(l,i);o.push({kind:"row",data:i,key:l,depth:t,hasChildren:C,expanded:p}),p&&o.push(...this.buildFlatRows(this.sortRows(d),t+1))}),o}buildGroupedRows(){const e=new Map;this.data.forEach(o=>{const i=L1(o,this.groupBy),n=String(i),l=e.get(n);l?l.rows.push(o):e.set(n,{value:i,rows:[o]})});const t=[];return e.forEach(({value:o,rows:i},n)=>{const l=!this.collapsedGroups.has(n);t.push({kind:"group",key:n,value:o,rows:i,expanded:l}),l&&t.push(...this.buildFlatRows(this.sortRows(i),0))}),t}isExpanded(e,t){return this.expandedKeys.has(e)?!0:this.onStartExpanded&&!this.autoExpandedKeys.has(e)&&(this.autoExpandedKeys.add(e),this.onStartExpanded(t))?(this.expandedKeys.add(e),!0):!1}toggleTreeRow(e){const t=!e.expanded,o=new Set(this.expandedKeys);t?o.add(e.key):o.delete(e.key),this.expandedKeys=o,this.dispatchEvent(new CustomEvent(t?l7:a7,{detail:{data:e.data,key:e.key,expanded:t},bubbles:!0,composed:!0}))}toggleGroup(e){const t=!e.expanded,o=new Set(this.collapsedGroups);t?o.delete(e.key):o.add(e.key),this.collapsedGroups=o,this.dispatchEvent(new CustomEvent(s7,{detail:{value:e.value,rows:e.rows,expanded:t},bubbles:!0,composed:!0}))}expandAll(){const e=new Set,t=o=>{o.forEach((i,n)=>{const l=L1(i,this.treeChildrenField);Array.isArray(l)&&l.length>0&&(e.add(this.keyFor(i,n)),t(l))})};t(this.data),this.expandedKeys=e}collapseAll(){this.expandedKeys=new Set}get selectableRows(){return this.buildRenderRows().filter(e=>e.kind==="row"&&!this.rowIsDisabled(e.data))}commitSelection(e){const t=new Map,o=n=>{n.forEach((l,d)=>{t.set(this.keyFor(l,d),l);const C=this.dataTree?L1(l,this.treeChildrenField):void 0;Array.isArray(C)&&o(C)})};o(this.data);const i=[...e].filter(n=>t.has(n));this.selectedRows=i.map(n=>t.get(n)),this.dispatchEvent(new CustomEvent(n7,{detail:{selectedRows:this.selectedRows,selectedKeys:i},bubbles:!0,composed:!0}))}setRowSelected(e,t){if(this.rowIsDisabled(e.data))return;const o=this.selectedKeySet;t?o.add(e.key):o.delete(e.key),this.rangeAnchorKey=e.key,this.commitSelection(o)}toggleAllRows(e){const t=this.selectedKeySet;this.selectableRows.forEach(o=>{e?t.add(o.key):t.delete(o.key)}),this.commitSelection(t)}selectRange(e,t,o){const i=this.selectableRows,n=i.findIndex(v=>v.key===e.key);if(n<0)return;const l=this.rangeAnchorKey?i.findIndex(v=>v.key===this.rangeAnchorKey):-1,d=l<0?n:l,[C,p]=d<=n?[d,n]:[n,d],u=new Set(o);for(let v=C;v<=p;v++)t?u.add(i[v].key):u.delete(i[v].key);this.commitSelection(u)}onRowMouseDown(e,t){this.selectable!=="selectable-by-dragging"||!e.shiftKey||this.rowIsDisabled(t.data)||(e.preventDefault(),this.isDraggingRange=!0,this.dragBaseKeys=[...this.selectedKeySet],this.dragSelects=!this.selectedKeySet.has(t.key),this.rangeAnchorKey=t.key,this.selectRange(t,this.dragSelects,this.dragBaseKeys))}onRowMouseEnter(e){this.isDraggingRange&&this.selectRange(e,this.dragSelects,this.dragBaseKeys)}onRowClick(e,t,o){this.dispatchEvent(new CustomEvent(o7,{detail:{data:t.data,key:t.key,index:o,originalEvent:e},bubbles:!0,composed:!0}));const i=this.selectable;if(i==="unselectable"||i==="clickable"||this.rowIsDisabled(t.data))return;const n=this.selectedKeySet.has(t.key);if(i==="selectable-by-clicking"&&e.shiftKey){this.selectRange(t,!0,e.metaKey||e.ctrlKey?[...this.selectedKeySet]:[]);return}if(i==="selectable-by-clicking"&&!(e.metaKey||e.ctrlKey)){this.rangeAnchorKey=t.key,this.commitSelection(new Set(n&&this.selectedRows.length===1?[]:[t.key]));return}this.setRowSelected(t,!n)}onCellContextMenu(e,t,o,i){this.dispatchEvent(new CustomEvent(r7,{detail:{data:t.data,key:t.key,index:o,column:i,x:e.clientX,y:e.clientY,originalEvent:e},bubbles:!0,composed:!0,cancelable:!0}))}syncHorizontalScrollState(){const e=this.scrollEl;e&&(this.scrolledX=e.scrollLeft>0,this.scrollableXEnd=Math.ceil(e.scrollLeft+e.clientWidth)<e.scrollWidth)}columnKey(e,t){return g1(e)?`__selection:${t}`:e.field||`__col:${t}`}widthFor(e,t){return this.resizedWidths[this.columnKey(e,t)]??e.width}isStretchColumn(e,t){return this.layout!=="fit-data-stretch"||t!==this.columns.length-1?!1:this.resizedWidths[this.columnKey(e,t)]===void 0}sizingClass(e,t){return this.isStretchColumn(e,t)?"table__cell--stretch":this.widthFor(e,t)?"table__cell--sized":""}cellStyle(e,t){if(this.isStretchColumn(e,t))return"width:100%";const o=this.widthFor(e,t),i=[];return o&&(i.push(`width:${o}px`),this.layout!=="fit-columns"&&i.push(`max-width:${o}px`)),e.minWidth?i.push(`min-width:${e.minWidth}px`):o&&i.push(`min-width:${o}px`),i.join(";")}fitColumnsMinWidth(){return this.layout!=="fit-columns"||!this.columns.some(e=>e.minWidth)?0:this.columns.reduce((e,t,o)=>{const i=g1(t)&&!t.width&&!t.minWidth?d7:Math.max(this.widthFor(t,o)??0,t.minWidth??0);return e+i},0)}isColumnResizable(e){return e.isResizable??this.resizableColumns}onResizeStart(e,t,o){e.preventDefault(),e.stopPropagation();const i=e.currentTarget,n=i.closest("th");if(!n)return;const l=n.getBoundingClientRect().width;this.resizeDrag={key:this.columnKey(t,o),startX:e.clientX,startWidth:l,width:l},this.resizingKey=this.resizeDrag.key,i.setPointerCapture(e.pointerId)}onResizeReset(e,t,o){e.preventDefault(),e.stopPropagation();const i=this.columnKey(t,o);if(this.resizedWidths[i]===void 0)return;const n={...this.resizedWidths};delete n[i],this.resizedWidths=n,this.dispatchEvent(new CustomEvent(a4,{detail:{column:t,field:i,width:null},bubbles:!0,composed:!0}))}resetColumnWidths(){this.resizedWidths={}}alignClass(e){const t=e.align??this.columnAlign,o=e.verticalAlign??this.columnVerticalAlign;return[t!=="left"?`table__cell--${t}`:"",o!=="middle"?`table__cell--${o}`:""].filter(Boolean).join(" ")}renderHeaderCell(e,t){const o=this.frozenSides,i=o[t],n=i==="left"?o[t+1]!=="left":i==="right"?o[t-1]!=="right":!1,l=["table__header-cell",i?"table__header-cell--frozen":"",i&&n?`table__header-cell--frozen-${i}-edge`:"",!g1(e)&&e.isSortable?"table__header-cell--sortable":"",g1(e)?"table__cell--selection":"",this.sizingClass(e,t)].filter(Boolean).join(" "),d=this.cellStyle(e,t),C=e.headerAlign??e.align??this.columnAlign,p=["table__header-inner",C!=="left"?`table__header-inner--${C}`:""].filter(Boolean).join(" "),u=this.columnKey(e,t),v=this.isColumnResizable(e)?s`
|
|
3694
|
+
`;let A=Z3;N([a()],A.prototype,"format"),N([a()],A.prototype,"value"),N([a()],A.prototype,"size"),N([a({type:Boolean})],A.prototype,"disabled"),N([a({type:Boolean})],A.prototype,"readonly"),N([a()],A.prototype,"status"),N([a({attribute:"start-icon"})],A.prototype,"startIcon"),N([a({attribute:"min-date"})],A.prototype,"minDate"),N([a({attribute:"max-date"})],A.prototype,"maxDate"),N([a()],A.prototype,"placement"),N([a()],A.prototype,"inputid"),N([H()],A.prototype,"_open"),N([E("anduin-date-input")],A.prototype,"_inputEl"),N([E("anduin-popover")],A.prototype,"_popoverEl"),customElements.get("anduin-date-picker")||customElements.define("anduin-date-picker",A);var it=Object.defineProperty,V=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&it(e,t,i),i};const t7="anduin-table:sort",i7="anduin-table:column-click",o7="anduin-table:row-click",n7="anduin-table:selection-change",r7="anduin-table:cell-context-menu",l7="anduin-table:row-expand",a7="anduin-table:row-collapse",s7="anduin-table:group-toggle",a4="anduin-table:column-resize",d7=40,g1=r=>r.type==="selection",L1=(r,e)=>{if(!e)return;let t=r;for(const o of e.split(".")){if(t===null||typeof t!="object")return;t=t[o]}return t},ot=(r,e)=>r===e?0:r==null?1:e==null?-1:typeof r=="number"&&typeof e=="number"?r-e:typeof r=="boolean"&&typeof e=="boolean"?Number(r)-Number(e):r instanceof Date&&e instanceof Date?r.getTime()-e.getTime():String(r).localeCompare(String(e),void 0,{numeric:!0,sensitivity:"base"}),k3=class k3 extends h{constructor(){super(...arguments),this.columns=[],this.data=[],this.layout="fit-data",this.renderMode="basic",this.rowHeight=40,this.height="",this.maxHeight="",this.minHeight="",this.resizableColumns=!0,this.hideHeader=!1,this.loading=!1,this.selectable="clickable",this.indexColumn="id",this.columnAlign="left",this.columnVerticalAlign="middle",this.sortField="",this.sortDirection="asc",this.dataTree=!1,this.treeChildrenField="children",this.treeChildIndent=20,this.groupBy="",this.selectedRows=[],this.expandedKeys=new Set,this.collapsedGroups=new Set,this.virtualScrollTop=0,this.viewportHeight=0,this.scrolledX=!1,this.scrollableXEnd=!1,this.resizedWidths={},this.resizingKey="",this.rangeAnchorKey=null,this.isDraggingRange=!1,this.dragBaseKeys=[],this.dragSelects=!0,this.autoExpandedKeys=new Set,this.resizeDrag=null,this.resizeFrame=0,this.renderSelectedKeys=new Set,this.renderSelectableRows=[],this.cachedRenderRows=[],this.rowsDirty=!0,this.onWindowMouseUp=()=>{this.isDraggingRange=!1},this.onScroll=e=>{const t=e.currentTarget;this.renderMode==="virtual"&&(this.virtualScrollTop=t.scrollTop),this.syncHorizontalScrollState()},this.onResizeMove=e=>{const t=this.resizeDrag;if(!t)return;const o=48;t.width=Math.max(o,t.startWidth+(e.clientX-t.startX)),!this.resizeFrame&&(this.resizeFrame=requestAnimationFrame(()=>{this.resizeFrame=0,this.resizeDrag&&(this.resizedWidths={...this.resizedWidths,[t.key]:t.width})}))},this.onResizeEnd=e=>{const t=this.resizeDrag;t&&(this.resizeFrame&&(cancelAnimationFrame(this.resizeFrame),this.resizeFrame=0),this.resizedWidths={...this.resizedWidths,[t.key]:t.width},this.resizeDrag=null,this.resizingKey="",this.dispatchEvent(new CustomEvent(a4,{detail:{column:e,field:t.key,width:t.width},bubbles:!0,composed:!0})))}}connectedCallback(){super.connectedCallback(),window.addEventListener("mouseup",this.onWindowMouseUp)}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("mouseup",this.onWindowMouseUp),(e=this.resizeObserver)==null||e.disconnect(),this.resizeObserver=void 0}firstUpdated(){const e=this.scrollEl;e&&(this.resizeObserver=new ResizeObserver(()=>{this.viewportHeight=e.clientHeight,this.syncHorizontalScrollState()}),this.resizeObserver.observe(e),this.viewportHeight=e.clientHeight)}willUpdate(e){["data","columns","sortField","sortDirection","groupBy","dataTree","treeChildrenField","indexColumn","onStartExpanded","isRowDisabled","selectedRows","expandedKeys","collapsedGroups"].some(o=>e.has(o))&&(this.rowsDirty=!0),this.rowsDirty&&(this.cachedRenderRows=this.buildRenderRows(),this.renderSelectedKeys=this.selectedKeySet,this.renderSelectableRows=this.cachedRenderRows.filter(o=>o.kind==="row"&&!this.rowIsDisabled(o.data)),this.rowsDirty=!1)}updated(e){this.applyFrozenOffsets(),(e.has("data")||e.has("columns"))&&this.syncHorizontalScrollState()}get scrollEl(){return this.renderRoot.querySelector(".table__scroll")}keyFor(e,t){const o=L1(e,this.indexColumn);return o==null?`__index:${t}`:String(o)}get selectedKeySet(){const e=new Set;return this.selectedRows.forEach((t,o)=>e.add(this.keyFor(t,o))),e}rowIsDisabled(e){return this.isRowDisabled?this.isRowDisabled(e):!1}get frozenSides(){const e=this.columns,t=e.map(()=>null);for(let o=0;o<e.length;o++){const i=e[o].isFrozen;if(!i)break;t[o]=i==="right"?"right":"left"}for(let o=e.length-1;o>=0;o--){const i=e[o].isFrozen;if(!i)break;t[o]===null&&(t[o]=i==="left"?"left":"right")}for(let o=0;o<e.length;o++){const i=e[o].isFrozen;(i==="left"||i==="right")&&(t[o]=i)}return t}applyFrozenOffsets(){const e=this.frozenSides;if(!e.some(Boolean))return;const t=Array.from(this.renderRoot.querySelectorAll("thead th[data-col]"));if(t.length===0)return;const o=t.map(C=>C.getBoundingClientRect().width),i=e.map(()=>null);let n=0;for(let C=0;C<e.length;C++)e[C]==="left"&&(i[C]=n,n+=o[C]??0);let l=0;for(let C=e.length-1;C>=0;C--)e[C]==="right"&&(i[C]=l,l+=o[C]??0);this.renderRoot.querySelectorAll("[data-col]").forEach(C=>{const p=Number(C.dataset.col),u=e[p],v=i[p];!u||v===null||(C.style[u]=`${v}px`)})}get sortedColumn(){if(this.sortField)return this.columns.find(e=>!g1(e)&&e.field===this.sortField)}sortRows(e){const t=this.sortedColumn;if(!t)return e;const o=this.sortDirection==="desc"?-1:1,i=t.sortWith?(n,l)=>t.sortWith({a:n,b:l}):(n,l)=>ot(L1(n,t.field),L1(l,t.field));return[...e].sort((n,l)=>i(n,l)*o)}onHeaderClick(e){if(this.dispatchEvent(new CustomEvent(i7,{detail:{column:e},bubbles:!0,composed:!0})),!e.isSortable)return;let t=e.field,o="asc";this.sortField===e.field&&(this.sortDirection==="asc"?o="desc":(t="",o=null)),this.sortField=t,o&&(this.sortDirection=o),this.dispatchEvent(new CustomEvent(t7,{detail:{field:t,direction:o,column:e},bubbles:!0,composed:!0}))}buildRenderRows(){return this.groupBy?this.buildGroupedRows():this.buildFlatRows(this.sortRows(this.data),0)}buildFlatRows(e,t){const o=[];return e.forEach((i,n)=>{const l=this.keyFor(i,n),d=this.dataTree?L1(i,this.treeChildrenField):void 0,C=Array.isArray(d)&&d.length>0,p=C&&this.isExpanded(l,i);o.push({kind:"row",data:i,key:l,depth:t,hasChildren:C,expanded:p}),p&&o.push(...this.buildFlatRows(this.sortRows(d),t+1))}),o}buildGroupedRows(){const e=new Map;this.data.forEach(o=>{const i=L1(o,this.groupBy),n=String(i),l=e.get(n);l?l.rows.push(o):e.set(n,{value:i,rows:[o]})});const t=[];return e.forEach(({value:o,rows:i},n)=>{const l=!this.collapsedGroups.has(n);t.push({kind:"group",key:n,value:o,rows:i,expanded:l}),l&&t.push(...this.buildFlatRows(this.sortRows(i),0))}),t}isExpanded(e,t){return this.expandedKeys.has(e)?!0:this.onStartExpanded&&!this.autoExpandedKeys.has(e)&&(this.autoExpandedKeys.add(e),this.onStartExpanded(t))?(this.expandedKeys.add(e),!0):!1}toggleTreeRow(e){const t=!e.expanded,o=new Set(this.expandedKeys);t?o.add(e.key):o.delete(e.key),this.expandedKeys=o,this.dispatchEvent(new CustomEvent(t?l7:a7,{detail:{data:e.data,key:e.key,expanded:t},bubbles:!0,composed:!0}))}toggleGroup(e){const t=!e.expanded,o=new Set(this.collapsedGroups);t?o.delete(e.key):o.add(e.key),this.collapsedGroups=o,this.dispatchEvent(new CustomEvent(s7,{detail:{value:e.value,rows:e.rows,expanded:t},bubbles:!0,composed:!0}))}expandAll(){const e=new Set,t=o=>{o.forEach((i,n)=>{const l=L1(i,this.treeChildrenField);Array.isArray(l)&&l.length>0&&(e.add(this.keyFor(i,n)),t(l))})};t(this.data),this.expandedKeys=e}collapseAll(){this.expandedKeys=new Set}get selectableRows(){return this.buildRenderRows().filter(e=>e.kind==="row"&&!this.rowIsDisabled(e.data))}commitSelection(e){const t=new Map,o=n=>{n.forEach((l,d)=>{t.set(this.keyFor(l,d),l);const C=this.dataTree?L1(l,this.treeChildrenField):void 0;Array.isArray(C)&&o(C)})};o(this.data);const i=[...e].filter(n=>t.has(n));this.selectedRows=i.map(n=>t.get(n)),this.dispatchEvent(new CustomEvent(n7,{detail:{selectedRows:this.selectedRows,selectedKeys:i},bubbles:!0,composed:!0}))}setRowSelected(e,t){if(this.rowIsDisabled(e.data))return;const o=this.selectedKeySet;t?o.add(e.key):o.delete(e.key),this.rangeAnchorKey=e.key,this.commitSelection(o)}toggleAllRows(e){const t=this.selectedKeySet;this.selectableRows.forEach(o=>{e?t.add(o.key):t.delete(o.key)}),this.commitSelection(t)}selectRange(e,t,o){const i=this.selectableRows,n=i.findIndex(v=>v.key===e.key);if(n<0)return;const l=this.rangeAnchorKey?i.findIndex(v=>v.key===this.rangeAnchorKey):-1,d=l<0?n:l,[C,p]=d<=n?[d,n]:[n,d],u=new Set(o);for(let v=C;v<=p;v++)t?u.add(i[v].key):u.delete(i[v].key);this.commitSelection(u)}onRowMouseDown(e,t){this.selectable!=="selectable-by-dragging"||!e.shiftKey||this.rowIsDisabled(t.data)||(e.preventDefault(),this.isDraggingRange=!0,this.dragBaseKeys=[...this.selectedKeySet],this.dragSelects=!this.selectedKeySet.has(t.key),this.rangeAnchorKey=t.key,this.selectRange(t,this.dragSelects,this.dragBaseKeys))}onRowMouseEnter(e){this.isDraggingRange&&this.selectRange(e,this.dragSelects,this.dragBaseKeys)}onRowClick(e,t,o){this.dispatchEvent(new CustomEvent(o7,{detail:{data:t.data,key:t.key,index:o,originalEvent:e},bubbles:!0,composed:!0}));const i=this.selectable;if(i==="unselectable"||i==="clickable"||this.rowIsDisabled(t.data))return;const n=this.selectedKeySet.has(t.key);if(i==="selectable-by-clicking"&&e.shiftKey){this.selectRange(t,!0,e.metaKey||e.ctrlKey?[...this.selectedKeySet]:[]);return}if(i==="selectable-by-clicking"&&!(e.metaKey||e.ctrlKey)){this.rangeAnchorKey=t.key,this.commitSelection(new Set(n&&this.selectedRows.length===1?[]:[t.key]));return}this.setRowSelected(t,!n)}onCellContextMenu(e,t,o,i){this.dispatchEvent(new CustomEvent(r7,{detail:{data:t.data,key:t.key,index:o,column:i,x:e.clientX,y:e.clientY,originalEvent:e},bubbles:!0,composed:!0,cancelable:!0}))}syncHorizontalScrollState(){const e=this.scrollEl;e&&(this.scrolledX=e.scrollLeft>0,this.scrollableXEnd=Math.ceil(e.scrollLeft+e.clientWidth)<e.scrollWidth)}columnKey(e,t){return g1(e)?`__selection:${t}`:e.field||`__col:${t}`}widthFor(e,t){return this.resizedWidths[this.columnKey(e,t)]??e.width}isStretchColumn(e,t){return this.layout!=="fit-data-stretch"||t!==this.columns.length-1?!1:this.resizedWidths[this.columnKey(e,t)]===void 0}sizingClass(e,t){return this.isStretchColumn(e,t)?"table__cell--stretch":this.widthFor(e,t)?"table__cell--sized":""}cellStyle(e,t){if(this.isStretchColumn(e,t))return"width:100%";const o=this.widthFor(e,t),i=[];return o&&(i.push(`width:${o}px`),this.layout!=="fit-columns"&&i.push(`max-width:${o}px`)),e.minWidth?i.push(`min-width:${e.minWidth}px`):o&&i.push(`min-width:${o}px`),i.join(";")}fitColumnsMinWidth(){return this.layout!=="fit-columns"||!this.columns.some(e=>e.minWidth)?0:this.columns.reduce((e,t,o)=>{const i=g1(t)&&!t.width&&!t.minWidth?d7:Math.max(this.widthFor(t,o)??0,t.minWidth??0);return e+i},0)}isColumnResizable(e){return e.isResizable??this.resizableColumns}onResizeStart(e,t,o){e.preventDefault(),e.stopPropagation();const i=e.currentTarget,n=i.closest("th");if(!n)return;const l=n.getBoundingClientRect().width;this.resizeDrag={key:this.columnKey(t,o),startX:e.clientX,startWidth:l,width:l},this.resizingKey=this.resizeDrag.key,i.setPointerCapture(e.pointerId)}onResizeReset(e,t,o){e.preventDefault(),e.stopPropagation();const i=this.columnKey(t,o);if(this.resizedWidths[i]===void 0)return;const n={...this.resizedWidths};delete n[i],this.resizedWidths=n,this.dispatchEvent(new CustomEvent(a4,{detail:{column:t,field:i,width:null},bubbles:!0,composed:!0}))}resetColumnWidths(){this.resizedWidths={}}alignClass(e){const t=e.align??this.columnAlign,o=e.verticalAlign??this.columnVerticalAlign;return[t!=="left"?`table__cell--${t}`:"",o!=="middle"?`table__cell--${o}`:""].filter(Boolean).join(" ")}renderHeaderCell(e,t){const o=this.frozenSides,i=o[t],n=i==="left"?o[t+1]!=="left":i==="right"?o[t-1]!=="right":!1,l=["table__header-cell",i?"table__header-cell--frozen":"",i&&n?`table__header-cell--frozen-${i}-edge`:"",!g1(e)&&e.isSortable?"table__header-cell--sortable":"",g1(e)?"table__cell--selection":"",this.sizingClass(e,t)].filter(Boolean).join(" "),d=this.cellStyle(e,t),C=e.headerAlign??e.align??this.columnAlign,p=["table__header-inner",C!=="left"?`table__header-inner--${C}`:""].filter(Boolean).join(" "),u=this.columnKey(e,t),v=this.isColumnResizable(e)?s`
|
|
3693
3695
|
<span
|
|
3694
3696
|
class="table__resize-handle ${this.resizingKey===u?"table__resize-handle--active":""}"
|
|
3695
3697
|
part="resize-handle"
|
|
@@ -3703,7 +3705,7 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3703
3705
|
@dblclick=${m=>this.onResizeReset(m,e,t)}
|
|
3704
3706
|
@click=${m=>m.stopPropagation()}
|
|
3705
3707
|
></span>
|
|
3706
|
-
`:g;if(g1(e)){const m=this.renderSelectableRows,
|
|
3708
|
+
`:g;if(g1(e)){const m=this.renderSelectableRows,Z=this.renderSelectedKeys,k=m.filter(f1=>Z.has(f1.key)).length,P=m.length>0&&k===m.length,e1=k>0&&!P,O2=e.renderHeader?e.renderHeader({areAllRowsSelected:P,hasSelectedRow:k>0,onChange:f1=>this.toggleAllRows(f1)}):s`
|
|
3707
3709
|
<anduin-checkbox
|
|
3708
3710
|
.checked=${P}
|
|
3709
3711
|
.indeterminate=${e1}
|
|
@@ -3736,12 +3738,12 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3736
3738
|
@click=${()=>this.onHeaderClick(e)}
|
|
3737
3739
|
@keydown=${m=>{e.isSortable&&(m.key!=="Enter"&&m.key!==" "||(m.preventDefault(),this.onHeaderClick(e)))}}
|
|
3738
3740
|
><div class="${p}">${x}${L}</div>${v}</th>
|
|
3739
|
-
`}renderCell(e,t,o,i){const n=this.frozenSides,l=n[i],d=l==="left"?n[i+1]!=="left":l==="right"?n[i-1]!=="right":!1,C=["table__cell",this.alignClass(o),l?"table__cell--frozen":"",l&&d?`table__cell--frozen-${l}-edge`:"",g1(o)?"table__cell--selection":"",o.showOnRowHover?"table__cell--hover-only":"",this.sizingClass(o,i)].filter(Boolean).join(" "),p=this.cellStyle(o,i);if(g1(o)){const x=this.renderSelectedKeys.has(e.key),L=this.rowIsDisabled(e.data),m=
|
|
3741
|
+
`}renderCell(e,t,o,i){const n=this.frozenSides,l=n[i],d=l==="left"?n[i+1]!=="left":l==="right"?n[i-1]!=="right":!1,C=["table__cell",this.alignClass(o),l?"table__cell--frozen":"",l&&d?`table__cell--frozen-${l}-edge`:"",g1(o)?"table__cell--selection":"",o.showOnRowHover?"table__cell--hover-only":"",this.sizingClass(o,i)].filter(Boolean).join(" "),p=this.cellStyle(o,i);if(g1(o)){const x=this.renderSelectedKeys.has(e.key),L=this.rowIsDisabled(e.data),m=k=>this.setRowSelected(e,k),Z=o.renderCell?o.renderCell({data:e.data,isChecked:x,isDisabled:L,onChange:m}):s`
|
|
3740
3742
|
<anduin-checkbox
|
|
3741
3743
|
.checked=${x}
|
|
3742
3744
|
.disabled=${L}
|
|
3743
3745
|
aria-label="${x?"Deselect row":"Select row"}"
|
|
3744
|
-
@anduin-checkbox:change=${
|
|
3746
|
+
@anduin-checkbox:change=${k=>{k.stopPropagation(),m(!x)}}
|
|
3745
3747
|
></anduin-checkbox>
|
|
3746
3748
|
`;return s`
|
|
3747
3749
|
<td
|
|
@@ -3749,8 +3751,8 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
3749
3751
|
part="cell"
|
|
3750
3752
|
data-col="${i}"
|
|
3751
3753
|
style="${p}"
|
|
3752
|
-
@click=${
|
|
3753
|
-
>${
|
|
3754
|
+
@click=${k=>k.stopPropagation()}
|
|
3755
|
+
>${Z}</td>
|
|
3754
3756
|
`}const u=L1(e.data,o.field),v=o.renderCell?o.renderCell({data:e.data,value:u,rowIndex:t,column:o}):u==null?g:String(u),b=this.dataTree&&i===this.firstDataColumnIndex?s`
|
|
3755
3757
|
<div class="table__tree-cell" style="padding-left:${e.depth*this.treeChildIndent}px">
|
|
3756
3758
|
${e.hasChildren?s`
|
|
@@ -4210,4 +4212,4 @@ var AclWebComponents=(function(c){"use strict";var c7,V1;const u7=':root{--color
|
|
|
4210
4212
|
background-color: oklch(from var(--color-gray-0) l c h / 0.6);
|
|
4211
4213
|
cursor: progress;
|
|
4212
4214
|
}
|
|
4213
|
-
`;let _=k3;if(V([a({attribute:!1})],_.prototype,"columns"),V([a({attribute:!1})],_.prototype,"data"),V([a({reflect:!0})],_.prototype,"layout"),V([a({attribute:"render-mode",reflect:!0})],_.prototype,"renderMode"),V([a({type:Number,attribute:"row-height"})],_.prototype,"rowHeight"),V([a()],_.prototype,"height"),V([a({attribute:"max-height"})],_.prototype,"maxHeight"),V([a({attribute:"min-height"})],_.prototype,"minHeight"),V([a({attribute:"resizable-columns",converter:r=>r!=="false"})],_.prototype,"resizableColumns"),V([a({type:Boolean,attribute:"hide-header",reflect:!0})],_.prototype,"hideHeader"),V([a({type:Boolean,reflect:!0})],_.prototype,"loading"),V([a({reflect:!0})],_.prototype,"selectable"),V([a({attribute:"index-column"})],_.prototype,"indexColumn"),V([a({attribute:"column-align"})],_.prototype,"columnAlign"),V([a({attribute:"column-vertical-align"})],_.prototype,"columnVerticalAlign"),V([a({attribute:"sort-field"})],_.prototype,"sortField"),V([a({attribute:"sort-direction"})],_.prototype,"sortDirection"),V([a({type:Boolean,attribute:"data-tree",reflect:!0})],_.prototype,"dataTree"),V([a({attribute:"tree-children-field"})],_.prototype,"treeChildrenField"),V([a({type:Number,attribute:"tree-child-indent"})],_.prototype,"treeChildIndent"),V([a({attribute:"group-by"})],_.prototype,"groupBy"),V([a({attribute:!1})],_.prototype,"selectedRows"),V([a({attribute:!1})],_.prototype,"isRowDisabled"),V([a({attribute:!1})],_.prototype,"onStartExpanded"),V([a({attribute:!1})],_.prototype,"rowClass"),V([a({attribute:!1})],_.prototype,"renderGroupHeader"),V([H()],_.prototype,"expandedKeys"),V([H()],_.prototype,"collapsedGroups"),V([H()],_.prototype,"virtualScrollTop"),V([H()],_.prototype,"viewportHeight"),V([H()],_.prototype,"scrolledX"),V([H()],_.prototype,"scrollableXEnd"),V([H()],_.prototype,"resizedWidths"),V([H()],_.prototype,"resizingKey"),customElements.get("anduin-table")||customElements.define("anduin-table",_),typeof document<"u"&&!document.getElementById("acl-tokens")){const r=document.createElement("style");r.id="acl-tokens",r.textContent=u7,document.head.appendChild(r)}return c.AnduinAiSpinner=E1,c.AnduinAvatar=X,c.AnduinBadge=V2,c.AnduinBadgeCount=X1,c.AnduinButton=R,c.AnduinCalendar=I,c.AnduinCallout=x2,c.AnduinCheckbox=a1,c.AnduinDateInput=S,c.AnduinDatePicker=A,c.AnduinDateRange=Q,c.AnduinDateRangeDefault=x5,c.AnduinDateRangeEnd=Xe,c.AnduinDateRangePanel=B2,c.AnduinDateRangeStart=qe,c.AnduinDivider=J1,c.AnduinDot=M2,c.AnduinDrawer=U,c.AnduinDrawerClose=Ae,c.AnduinDropdown=
|
|
4215
|
+
`;let _=k3;if(V([a({attribute:!1})],_.prototype,"columns"),V([a({attribute:!1})],_.prototype,"data"),V([a({reflect:!0})],_.prototype,"layout"),V([a({attribute:"render-mode",reflect:!0})],_.prototype,"renderMode"),V([a({type:Number,attribute:"row-height"})],_.prototype,"rowHeight"),V([a()],_.prototype,"height"),V([a({attribute:"max-height"})],_.prototype,"maxHeight"),V([a({attribute:"min-height"})],_.prototype,"minHeight"),V([a({attribute:"resizable-columns",converter:r=>r!=="false"})],_.prototype,"resizableColumns"),V([a({type:Boolean,attribute:"hide-header",reflect:!0})],_.prototype,"hideHeader"),V([a({type:Boolean,reflect:!0})],_.prototype,"loading"),V([a({reflect:!0})],_.prototype,"selectable"),V([a({attribute:"index-column"})],_.prototype,"indexColumn"),V([a({attribute:"column-align"})],_.prototype,"columnAlign"),V([a({attribute:"column-vertical-align"})],_.prototype,"columnVerticalAlign"),V([a({attribute:"sort-field"})],_.prototype,"sortField"),V([a({attribute:"sort-direction"})],_.prototype,"sortDirection"),V([a({type:Boolean,attribute:"data-tree",reflect:!0})],_.prototype,"dataTree"),V([a({attribute:"tree-children-field"})],_.prototype,"treeChildrenField"),V([a({type:Number,attribute:"tree-child-indent"})],_.prototype,"treeChildIndent"),V([a({attribute:"group-by"})],_.prototype,"groupBy"),V([a({attribute:!1})],_.prototype,"selectedRows"),V([a({attribute:!1})],_.prototype,"isRowDisabled"),V([a({attribute:!1})],_.prototype,"onStartExpanded"),V([a({attribute:!1})],_.prototype,"rowClass"),V([a({attribute:!1})],_.prototype,"renderGroupHeader"),V([H()],_.prototype,"expandedKeys"),V([H()],_.prototype,"collapsedGroups"),V([H()],_.prototype,"virtualScrollTop"),V([H()],_.prototype,"viewportHeight"),V([H()],_.prototype,"scrolledX"),V([H()],_.prototype,"scrollableXEnd"),V([H()],_.prototype,"resizedWidths"),V([H()],_.prototype,"resizingKey"),customElements.get("anduin-table")||customElements.define("anduin-table",_),typeof document<"u"&&!document.getElementById("acl-tokens")){const r=document.createElement("style");r.id="acl-tokens",r.textContent=u7,document.head.appendChild(r)}return c.AnduinAiSpinner=E1,c.AnduinAvatar=X,c.AnduinBadge=V2,c.AnduinBadgeCount=X1,c.AnduinButton=R,c.AnduinCalendar=I,c.AnduinCallout=x2,c.AnduinCheckbox=a1,c.AnduinDateInput=S,c.AnduinDatePicker=A,c.AnduinDateRange=Q,c.AnduinDateRangeDefault=x5,c.AnduinDateRangeEnd=Xe,c.AnduinDateRangePanel=B2,c.AnduinDateRangeStart=qe,c.AnduinDivider=J1,c.AnduinDot=M2,c.AnduinDrawer=U,c.AnduinDrawerClose=Ae,c.AnduinDropdown=w,c.AnduinField=Z2,c.AnduinFieldDescription=U2,c.AnduinFieldError=j2,c.AnduinFieldGroup=K2,c.AnduinFieldLabel=t2,c.AnduinFileIcon=l2,c.AnduinIcon=q1,c.AnduinInput=T,c.AnduinLoadingState=w2,c.AnduinMenu=y1,c.AnduinMenuItem=D1,c.AnduinModal=Le,c.AnduinModalClose=Ve,c.AnduinNavigation=C1,c.AnduinNavigationItem=n1,c.AnduinPagination=p1,c.AnduinPaginationFirstPage=Ne,c.AnduinPaginationLastPage=Ge,c.AnduinPopover=q,c.AnduinPopoverClose=i5,c.AnduinProgress=Q1,c.AnduinRadio=o1,c.AnduinRadioGroup=B1,c.AnduinResizableHandle=N1,c.AnduinResizablePanel=F1,c.AnduinResizablePanelGroup=S2,c.AnduinSidebar=f5,c.AnduinSidebarAction=H5,c.AnduinSidebarBadge=_5,c.AnduinSidebarContent=v5,c.AnduinSidebarFooter=P2,c.AnduinSidebarGroup=m5,c.AnduinSidebarGroupLabel=b5,c.AnduinSidebarHeader=D2,c.AnduinSidebarMenu=y5,c.AnduinSidebarMenuItem=u1,c.AnduinSidebarSeparator=L5,c.AnduinSkeleton=t1,c.AnduinSparkleSpinner=Y1,c.AnduinSpinner=W1,c.AnduinSuggestion=M,c.AnduinSwitcher=s2,c.AnduinTabContent=o2,c.AnduinTabTrigger=i1,c.AnduinTable=_,c.AnduinTabs=$1,c.AnduinTabsList=i2,c.AnduinTag=S1,c.AnduinTagClose=W2,c.AnduinTextarea=j,c.AnduinTimeline=c5,c.AnduinTimelineDate=p5,c.AnduinTimelineGroup=h5,c.AnduinTimelineItem=C5,c.AnduinTimelineLabel=g5,c.AnduinTimelineTitle=u5,c.AnduinToast=d1,c.AnduinToaster=a2,c.AnduinToggleGroup=W,c.AnduinToggleGroupItem=Y,c.AnduinTooltip=n2,c.AnduinTooltipContent=J2,c.AnduinTooltipTrigger=X2,c.AnduinWell=E2,c.AnduinWellClose=Q2,c.BADGE_STYLES=O5,c.CALENDAR_CHANGE=C2,c.CALENDAR_DAY_HOVER=V5,c.CHECKBOX_CHANGE=le,c.DATE_INPUT_CHANGE=M5,c.DATE_PICKER_CHANGE=Qe,c.DATE_RANGE_CHANGE=Ye,c.DRAWER_AFTER_CLOSE_EVENT=l5,c.DRAWER_CLOSE_EVENT=d2,c.DROPDOWN_CHANGE=r4,c.FIELD_LABEL_CLICK=N5,c.FIELD_LABEL_CLICK_COORDINATED=l1,c.FILE_ICONS=we,c.INPUT_CHANGE=G5,c.INPUT_CLEAR=ae,c.MENU_ITEM_CLICK=o5,c.MODAL_AFTER_CLOSE_EVENT=n5,c.MODAL_CLOSE_EVENT=r2,c.NAVIGATION_CHANGE=Pe,c.NAVIGATION_ITEM_CLICK=s5,c.PAGINATION_CHANGE=Fe,c.PAGINATION_JUMP=d5,c.POPOVER_CLOSE=e5,c.POPOVER_OPEN_CHANGE=t5,c.RADIO_CHANGE=r5,c.RADIO_GROUP_CHANGE=xe,c.RESIZE_EVENT=Be,c.SIDEBAR_SELECT=Ue,c.SUGGESTION_CHANGE=a5,c.SUGGESTION_CLEAR=De,c.SUGGESTION_SELECT=ze,c.SWITCHER_CHANGE=$e,c.TABLE_CELL_CONTEXT_MENU=r7,c.TABLE_COLUMN_CLICK=i7,c.TABLE_COLUMN_RESIZE=a4,c.TABLE_GROUP_TOGGLE=s7,c.TABLE_ROW_CLICK=o7,c.TABLE_ROW_COLLAPSE=a7,c.TABLE_ROW_EXPAND=l7,c.TABLE_SELECTION_CHANGE=n7,c.TABLE_SORT=t7,c.TAB_CHANGE=de,c.TAB_TRIGGER_CLICK=U5,c.TAB_VALUE_CHANGED=R2,c.TAG_CLOSE_CLICK=ce,c.TEXTAREA_CHANGE=se,c.TOGGLE_GROUP_CHANGE=Ce,c.TOGGLE_GROUP_ITEM_CHANGE=pe,c.TOGGLE_GROUP_ITEM_CLICK=Y2,c.TOGGLE_GROUP_ITEM_DESELECT=he,c.TOGGLE_GROUP_ITEM_SELECT=ue,c.TOOLTIP_CONTENT_POPUP_MOUNTED=q5,c.TOOLTIP_CONTENT_POPUP_UNMOUNTED=X5,c.TOOLTIP_HIDE=q2,c.TOOLTIP_SHOW=W5,c.TOOLTIP_TRIGGER_MOUNTED=Y5,c.TOOLTIP_VISIBILITY_CHANGED=J5,c.WELL_CLOSE_CLICK=be,c.addMonths=h1,c.formatISODate=_1,c.getBadgeVariantClass=I5,c.parseISODate=D,c.resolveFileIcon=Ze,c.startOfToday=U1,c.toast=A0,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),c})({});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as i, a as e, b as r, c, d as l, e as d, f as t, g as A, h as p, i as u, j as E, k as g, l as T, m as _, n as h, o as x, p as C, q as k, r as O, s as L, t as m, u as I, v as b, w as G, x as N, y as S, z as R, B as P, C as D, D as y, E as H, F as U, G as w, H as B, I as M, J as f, K as F, L as z, M as V, N as K, O as v, P as W, Q as X, R as Y, S as Z, T as j, U as q, V as J, W as Q, X as $, Y as aa, Z as na, _ as oa, $ as sa, a0 as ia, a1 as ea, a2 as ra, a3 as ca, a4 as la, a5 as da, a6 as ta, a7 as Aa, a8 as pa, a9 as ua, aa as Ea, ab as ga, ac as Ta, ad as _a, ae as ha, af as xa, ag as Ca, ah as ka, ai as Oa, aj as La, ak as ma, al as Ia, am as ba, an as Ga, ao as Na, ap as Sa, aq as Ra, ar as Pa, as as Da, at as ya, au as Ha, av as Ua, aw as wa, ax as Ba, ay as Ma, az as fa, aA as Fa, aB as za, aC as Va, aD as Ka, aE as va, aF as Wa, aG as Xa, aH as Ya, aI as Za, aJ as ja, aK as qa, aL as Ja, aM as Qa, aN as $a, aO as an, aP as nn, aQ as on, aR as sn, aS as en, aT as rn, aU as cn, aV as ln, aW as dn, aX as tn, aY as An, aZ as pn, a_ as un, a$ as En, b0 as gn, b1 as Tn, b2 as _n, b3 as hn, b4 as xn, b5 as Cn, b6 as kn, b7 as On, b8 as Ln, b9 as mn, ba as In, bb as bn, bc as Gn, bd as Nn, be as Sn, bf as Rn, bg as Pn, bh as Dn, bi as yn, bj as Hn, bk as Un, bl as wn, bm as Bn, bn as Mn, bo as fn, bp as Fn, bq as zn, br as Vn, bs as Kn, bt as vn, bu as Wn, bv as Xn } from "./anduin-table-
|
|
1
|
+
import { A as i, a as e, b as r, c, d as l, e as d, f as t, g as A, h as p, i as u, j as E, k as g, l as T, m as _, n as h, o as x, p as C, q as k, r as O, s as L, t as m, u as I, v as b, w as G, x as N, y as S, z as R, B as P, C as D, D as y, E as H, F as U, G as w, H as B, I as M, J as f, K as F, L as z, M as V, N as K, O as v, P as W, Q as X, R as Y, S as Z, T as j, U as q, V as J, W as Q, X as $, Y as aa, Z as na, _ as oa, $ as sa, a0 as ia, a1 as ea, a2 as ra, a3 as ca, a4 as la, a5 as da, a6 as ta, a7 as Aa, a8 as pa, a9 as ua, aa as Ea, ab as ga, ac as Ta, ad as _a, ae as ha, af as xa, ag as Ca, ah as ka, ai as Oa, aj as La, ak as ma, al as Ia, am as ba, an as Ga, ao as Na, ap as Sa, aq as Ra, ar as Pa, as as Da, at as ya, au as Ha, av as Ua, aw as wa, ax as Ba, ay as Ma, az as fa, aA as Fa, aB as za, aC as Va, aD as Ka, aE as va, aF as Wa, aG as Xa, aH as Ya, aI as Za, aJ as ja, aK as qa, aL as Ja, aM as Qa, aN as $a, aO as an, aP as nn, aQ as on, aR as sn, aS as en, aT as rn, aU as cn, aV as ln, aW as dn, aX as tn, aY as An, aZ as pn, a_ as un, a$ as En, b0 as gn, b1 as Tn, b2 as _n, b3 as hn, b4 as xn, b5 as Cn, b6 as kn, b7 as On, b8 as Ln, b9 as mn, ba as In, bb as bn, bc as Gn, bd as Nn, be as Sn, bf as Rn, bg as Pn, bh as Dn, bi as yn, bj as Hn, bk as Un, bl as wn, bm as Bn, bn as Mn, bo as fn, bp as Fn, bq as zn, br as Vn, bs as Kn, bt as vn, bu as Wn, bv as Xn } from "./anduin-table-DGYmi5iv.js";
|
|
2
2
|
const n = ':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)}';
|
|
3
3
|
if (typeof document < "u" && !document.getElementById("acl-tokens")) {
|
|
4
4
|
const a = document.createElement("style");
|
|
@@ -930,7 +930,7 @@
|
|
|
930
930
|
.toggle-item:hover .toggle-item__icon { color: var(--color-gray-7); }
|
|
931
931
|
.toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
|
|
932
932
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
|
|
933
|
-
`;let W=A4;O([s({reflect:!0})],W.prototype,"value");O([s({attribute:"start-icon"})],W.prototype,"startIcon");O([s({type:Boolean})],W.prototype,"disabled");O([s({attribute:!1})],W.prototype,"selected");O([s({attribute:!1})],W.prototype,"groupSize");O([s({attribute:!1})],W.prototype,"groupVariant");O([s({attribute:!1})],W.prototype,"groupMode");function S5(r){return r.split(" ").map(e=>e.trim()).filter(Boolean)}customElements.get("anduin-toggle-group")||customElements.define("anduin-toggle-group",K);customElements.get("anduin-toggle-group-item")||customElements.define("anduin-toggle-group-item",W);var p0=Object.defineProperty,$3=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&p0(e,t,i),i};const i4="anduin-tooltip:show",Z5="anduin-tooltip:hide",o4="anduin-tooltip:trigger-mounted",n4="anduin-tooltip:content-popup-mounted",r4="anduin-tooltip:content-popup-unmounted",l4="anduin-tooltip:visibility-changed",u0=["top-start","top-center","top-end","right-start","right-center","right-end","bottom-start","bottom-center","bottom-end","left-start","left-center","left-end"];function Ke(r,e,t,o,i){switch(o){case"top-start":return{left:r.left,top:r.top-t-i};case"top-center":return{left:r.left+r.width/2-e/2,top:r.top-t-i};case"top-end":return{left:r.left+r.width-e,top:r.top-t-i};case"right-start":return{left:r.right+i,top:r.top};case"right-center":return{left:r.right+i,top:r.top+r.height/2-t/2};case"right-end":return{left:r.right+i,top:r.top+r.height-t};case"bottom-start":return{left:r.left,top:r.bottom+i};case"bottom-center":return{left:r.left+r.width/2-e/2,top:r.bottom+i};case"bottom-end":return{left:r.left+r.width-e,top:r.bottom+i};case"left-start":return{left:r.left-e-i,top:r.top};case"left-center":return{left:r.left-e-i,top:r.top+r.height/2-t/2};case"left-end":return{left:r.left-e-i,top:r.top+r.height-t};default:return{left:0,top:0}}}function We(r,e){return e.right>=r.left&&e.left<=r.right&&e.top<=r.bottom&&e.bottom>=r.top}function Ye(r,e){const t=Math.max(r.left,e.left),o=Math.max(r.top,e.top),i=Math.min(r.right,e.right),n=Math.min(r.bottom,e.bottom);return i<t||n<o?0:(i-t)*(n-o)}function h0(r,e,t,o=8){const i=window.innerWidth,n=window.innerHeight,l={left:0,top:0,right:i,bottom:n},d=e.width,c=e.height;if(!We({left:r.left,top:r.top,right:r.right,bottom:r.bottom},l))return null;const C=Ke(r,d,c,t,o),p=u0.map(m=>({p:m,off:Ke(r,d,c,m,o)})).filter(({off:m})=>We({left:m.left,top:m.top,right:m.left+d,bottom:m.top+c},l));if(p.length===0)return{placement:t,left:Math.round(Math.min(Math.max(C.left,0),i-d)),top:Math.round(Math.min(Math.max(C.top,0),n-c))};p.sort((m,V)=>{const _={left:m.off.left,top:m.off.top,right:m.off.left+d,bottom:m.off.top+c},v={left:V.off.left,top:V.off.top,right:V.off.left+d,bottom:V.off.top+c},M=Ye(_,l),w=Ye(v,l);if(w!==M)return w-M;const
|
|
933
|
+
`;let W=A4;O([s({reflect:!0})],W.prototype,"value");O([s({attribute:"start-icon"})],W.prototype,"startIcon");O([s({type:Boolean})],W.prototype,"disabled");O([s({attribute:!1})],W.prototype,"selected");O([s({attribute:!1})],W.prototype,"groupSize");O([s({attribute:!1})],W.prototype,"groupVariant");O([s({attribute:!1})],W.prototype,"groupMode");function S5(r){return r.split(" ").map(e=>e.trim()).filter(Boolean)}customElements.get("anduin-toggle-group")||customElements.define("anduin-toggle-group",K);customElements.get("anduin-toggle-group-item")||customElements.define("anduin-toggle-group-item",W);var p0=Object.defineProperty,$3=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&p0(e,t,i),i};const i4="anduin-tooltip:show",Z5="anduin-tooltip:hide",o4="anduin-tooltip:trigger-mounted",n4="anduin-tooltip:content-popup-mounted",r4="anduin-tooltip:content-popup-unmounted",l4="anduin-tooltip:visibility-changed",u0=["top-start","top-center","top-end","right-start","right-center","right-end","bottom-start","bottom-center","bottom-end","left-start","left-center","left-end"];function Ke(r,e,t,o,i){switch(o){case"top-start":return{left:r.left,top:r.top-t-i};case"top-center":return{left:r.left+r.width/2-e/2,top:r.top-t-i};case"top-end":return{left:r.left+r.width-e,top:r.top-t-i};case"right-start":return{left:r.right+i,top:r.top};case"right-center":return{left:r.right+i,top:r.top+r.height/2-t/2};case"right-end":return{left:r.right+i,top:r.top+r.height-t};case"bottom-start":return{left:r.left,top:r.bottom+i};case"bottom-center":return{left:r.left+r.width/2-e/2,top:r.bottom+i};case"bottom-end":return{left:r.left+r.width-e,top:r.bottom+i};case"left-start":return{left:r.left-e-i,top:r.top};case"left-center":return{left:r.left-e-i,top:r.top+r.height/2-t/2};case"left-end":return{left:r.left-e-i,top:r.top+r.height-t};default:return{left:0,top:0}}}function We(r,e){return e.right>=r.left&&e.left<=r.right&&e.top<=r.bottom&&e.bottom>=r.top}function Ye(r,e){const t=Math.max(r.left,e.left),o=Math.max(r.top,e.top),i=Math.min(r.right,e.right),n=Math.min(r.bottom,e.bottom);return i<t||n<o?0:(i-t)*(n-o)}function h0(r,e,t,o=8){const i=window.innerWidth,n=window.innerHeight,l={left:0,top:0,right:i,bottom:n},d=e.width,c=e.height;if(!We({left:r.left,top:r.top,right:r.right,bottom:r.bottom},l))return null;const C=Ke(r,d,c,t,o),p=u0.map(m=>({p:m,off:Ke(r,d,c,m,o)})).filter(({off:m})=>We({left:m.left,top:m.top,right:m.left+d,bottom:m.top+c},l));if(p.length===0)return{placement:t,left:Math.round(Math.min(Math.max(C.left,0),i-d)),top:Math.round(Math.min(Math.max(C.top,0),n-c))};p.sort((m,V)=>{const _={left:m.off.left,top:m.off.top,right:m.off.left+d,bottom:m.off.top+c},v={left:V.off.left,top:V.off.top,right:V.off.left+d,bottom:V.off.top+c},M=Ye(_,l),w=Ye(v,l);if(w!==M)return w-M;const D=Math.abs(m.off.left-C.left)+Math.abs(m.off.top-C.top),j=Math.abs(V.off.left-C.left)+Math.abs(V.off.top-C.top);return D-j});const{p:f,off:b}=p[0];return{placement:f,left:Math.round(Math.min(Math.max(b.left,0),i-d)),top:Math.round(Math.min(Math.max(b.top,0),n-c))}}function O5(r){return r.split("-")[0]||"top"}function g0(r,e,t){let o=!1,i=t.length-1;for(let n=0;n<t.length;n++){const l=t[n][0],d=t[n][1],c=t[i][0],C=t[i][1];d>e!=C>e&&r<(c-l)*(e-d)/(C-d)+l&&(o=!o),i=n}return o}const S4=class S4 extends u{constructor(){super(...arguments),this.disabled=!1,this.placement="top-center",this.triggerElement=null,this.contentPopupElement=null,this.containingBlockLeft=0,this.containingBlockTop=0,this.rafId=0,this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN,this.isVisible=!1}connectedCallback(){super.connectedCallback(),this.addEventListener(o4,e=>{e.stopPropagation(),this.triggerElement=e.detail,this.maybeStartPositionLoop()}),this.addEventListener(n4,e=>{e.stopPropagation(),this.contentPopupElement=e.detail,this.computeContainingBlockOffset(this.contentPopupElement),this.maybeStartPositionLoop()}),this.addEventListener(r4,e=>{e.stopPropagation(),this.stopPositionLoop(),this.contentPopupElement=null}),this.addEventListener(i4,e=>{e.stopPropagation(),!this.disabled&&(this.isVisible=!0,this.broadcastVisibilityChanged(`show:${this.placement}`))}),this.addEventListener(Z5,e=>{e.stopPropagation(),this.isVisible=!1,this.stopPositionLoop(),this.broadcastVisibilityChanged("hide")})}updated(e){e.has("disabled")&&this.disabled&&this.isVisible&&(this.isVisible=!1,this.stopPositionLoop(),this.broadcastVisibilityChanged("hide"))}disconnectedCallback(){super.disconnectedCallback(),this.stopPositionLoop(),this.triggerElement=null,this.contentPopupElement=null}maybeStartPositionLoop(){this.isVisible&&this.triggerElement&&this.contentPopupElement&&this.startPositionLoop()}startPositionLoop(){this.stopPositionLoop(),this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN;const e=this.triggerElement,t=this.contentPopupElement,o=this.placement,i=()=>{const n=e.getBoundingClientRect();(n.top!==this.prevTriggerTop||n.left!==this.prevTriggerLeft)&&(this.prevTriggerTop=n.top,this.prevTriggerLeft=n.left,this.positionPopup(t,e,o)),this.rafId=requestAnimationFrame(i)};this.rafId=requestAnimationFrame(i)}stopPositionLoop(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=0),this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN}computeContainingBlockOffset(e){const t=e,o=t.style.transform;t.style.transform="none";const i=e.getBoundingClientRect();this.containingBlockLeft=i.left,this.containingBlockTop=i.top,t.style.transform=o}positionPopup(e,t,o){const i=t.getBoundingClientRect(),n=e.getBoundingClientRect(),l=h0(i,n,o,8);if(l){const d=e;d.style.transform=`translate(${l.left-this.containingBlockLeft}px, ${l.top-this.containingBlockTop}px)`;const c=O5(l.placement),C=O5(o);if(c!==C){const p=e.querySelector(".tooltip-arrow");p&&(p.classList.remove(`tooltip-arrow--${C}`),p.classList.add(`tooltip-arrow--${c}`))}}}broadcastVisibilityChanged(e){this.dispatchEvent(new CustomEvent(l4,{detail:e,bubbles:!1,composed:!1}))}render(){return a`<div class="tooltip-root" part="tooltip"><slot></slot></div>`}};S4.styles=g`
|
|
934
934
|
/* inline-flex, not inline-block: the wrapper is purely structural (it exists
|
|
935
935
|
to position the popup), so it must not add height of its own. As an
|
|
936
936
|
inline-block it establishes a line box, and an inline-level trigger sits
|
|
@@ -1084,7 +1084,7 @@
|
|
|
1084
1084
|
.well-close__button:active {
|
|
1085
1085
|
background-color: var(--color-gray-3);
|
|
1086
1086
|
}
|
|
1087
|
-
`;let Q2=B4;customElements.get("anduin-well")||customElements.define("anduin-well",E2);customElements.get("anduin-well-close")||customElements.define("anduin-well-close",Q2);var m0=Object.defineProperty,B1=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&m0(e,t,i),i};const e5="anduin-popover:close",t5="anduin-popover:open-change",T4=class T4 extends u{constructor(){super(...arguments),this.open=!1,this.placement="bottom-start",this.fullWidth=!1,this._visible=!1,this._closing=!1,this._closeTransitionEndHandler=null,this._onOutsideClick=e=>{e.composedPath().includes(this)||(this.open=!1)},this._onScrollOrResize=()=>{this.open&&this._updatePosition()},this._onPopoverClose=()=>{this.open=!1}}_onTriggerClick(){this.open=!this.open}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize),this.addEventListener(e5,this._onPopoverClose)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize),this.removeEventListener(e5,this._onPopoverClose)}updated(e){e.has("open")&&(this.dispatchEvent(new CustomEvent(t5,{detail:this.open,bubbles:!0,composed:!0})),this.open?(this._cancelCloseAnimation(),this._closing=!1,this._visible=!0,requestAnimationFrame(()=>this._updatePosition())):this._startCloseAnimation())}_cancelCloseAnimation(){this._closeTransitionEndHandler&&this._panelEl&&(this._panelEl.removeEventListener("transitionend",this._closeTransitionEndHandler),this._closeTransitionEndHandler=null),this._closing=!1}_startCloseAnimation(){if(!this._visible)return;this._closing=!0;const e=t=>{var o;t.propertyName==="opacity"&&((o=this._panelEl)==null||o.removeEventListener("transitionend",e),this._closeTransitionEndHandler=null,this._closing=!1,this._visible=!1)};this._closeTransitionEndHandler=e,requestAnimationFrame(()=>{var t;return(t=this._panelEl)==null?void 0:t.addEventListener("transitionend",e)})}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const o=e.getBoundingClientRect(),i=t.style.transform;t.style.transform="none";const n=t.getBoundingClientRect();t.style.transform=i;const l=t.getBoundingClientRect(),d=4,c=window.innerWidth,C=window.innerHeight,p=8;let f=0,b=0,m="bottom";const V=!this.placement.startsWith("top"),_=C-o.bottom-d,v=o.top-d,M=_>=l.height,w=v>=l.height,
|
|
1087
|
+
`;let Q2=B4;customElements.get("anduin-well")||customElements.define("anduin-well",E2);customElements.get("anduin-well-close")||customElements.define("anduin-well-close",Q2);var m0=Object.defineProperty,B1=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&m0(e,t,i),i};const e5="anduin-popover:close",t5="anduin-popover:open-change",T4=class T4 extends u{constructor(){super(...arguments),this.open=!1,this.placement="bottom-start",this.fullWidth=!1,this._visible=!1,this._closing=!1,this._closeTransitionEndHandler=null,this._onOutsideClick=e=>{e.composedPath().includes(this)||(this.open=!1)},this._onScrollOrResize=()=>{this.open&&this._updatePosition()},this._onPopoverClose=()=>{this.open=!1}}_onTriggerClick(){this.open=!this.open}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize),this.addEventListener(e5,this._onPopoverClose)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize),this.removeEventListener(e5,this._onPopoverClose)}updated(e){e.has("open")&&(this.dispatchEvent(new CustomEvent(t5,{detail:this.open,bubbles:!0,composed:!0})),this.open?(this._cancelCloseAnimation(),this._closing=!1,this._visible=!0,requestAnimationFrame(()=>this._updatePosition())):this._startCloseAnimation())}_cancelCloseAnimation(){this._closeTransitionEndHandler&&this._panelEl&&(this._panelEl.removeEventListener("transitionend",this._closeTransitionEndHandler),this._closeTransitionEndHandler=null),this._closing=!1}_startCloseAnimation(){if(!this._visible)return;this._closing=!0;const e=t=>{var o;t.propertyName==="opacity"&&((o=this._panelEl)==null||o.removeEventListener("transitionend",e),this._closeTransitionEndHandler=null,this._closing=!1,this._visible=!1)};this._closeTransitionEndHandler=e,requestAnimationFrame(()=>{var t;return(t=this._panelEl)==null?void 0:t.addEventListener("transitionend",e)})}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const o=e.getBoundingClientRect(),i=t.style.transform;t.style.transform="none";const n=t.getBoundingClientRect();t.style.transform=i;const l=t.getBoundingClientRect(),d=4,c=window.innerWidth,C=window.innerHeight,p=8;let f=0,b=0,m="bottom";const V=!this.placement.startsWith("top"),_=C-o.bottom-d,v=o.top-d,M=_>=l.height,w=v>=l.height,D=V?M||_>=v:!w&&M;m=D?"bottom":"top",b=D?o.bottom+d:o.top-l.height-d;const j=this.placement.endsWith("end")?"end":this.placement.endsWith("start")?"start":"center";j==="start"?f=o.left:j==="end"?f=o.right-l.width:f=o.left+o.width/2-l.width/2,f=Math.max(p,Math.min(f,c-l.width-p)),b=Math.max(p,Math.min(b,C-l.height-p)),t.style.transform=`translate(${Math.round(f-n.left)}px, ${Math.round(b-n.top)}px)`,t.dataset.side=m}render(){return a`
|
|
1088
1088
|
<div class="popover__trigger" @click=${this._onTriggerClick} part="trigger">
|
|
1089
1089
|
<slot name="trigger"></slot>
|
|
1090
1090
|
</div>
|
|
@@ -2068,7 +2068,7 @@
|
|
|
2068
2068
|
color: var(--color-gray-8, #101828);
|
|
2069
2069
|
line-height: 20px;
|
|
2070
2070
|
}
|
|
2071
|
-
`;let a2=Y4;I3([s({type:Boolean})],a2.prototype,"checked");I3([s({type:Boolean})],a2.prototype,"disabled");customElements.get("anduin-switcher")||customElements.define("anduin-switcher",a2);var P0=Object.defineProperty,
|
|
2071
|
+
`;let a2=Y4;I3([s({type:Boolean})],a2.prototype,"checked");I3([s({type:Boolean})],a2.prototype,"disabled");customElements.get("anduin-switcher")||customElements.define("anduin-switcher",a2);var P0=Object.defineProperty,z=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&P0(e,t,i),i};const N5="anduin-dropdown:change",q4=class q4 extends u{constructor(){super(...arguments),this.value="",this.placeholder="Select...",this.options=[],this.icon="",this.searchable=!0,this.disabled=!1,this.placement="bottom-start",this.appearance="filled",this.variant="gray0",this.size="default",this.fullWidth=!1,this.clearable=!0,this._open=!1,this._query="",this._onOutsideClick=e=>{var t;!this.contains(e.target)&&!((t=this.shadowRoot)!=null&&t.contains(e.target))&&(this._open=!1,this._query="")},this._onScrollOrResize=()=>{this._open&&this._updatePosition()}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize)}updated(e){e.has("_open")&&this._open&&requestAnimationFrame(()=>{var t,o;if(this._updatePosition(),this.searchable){const i=(o=(t=this._searchEl)==null?void 0:t.shadowRoot)==null?void 0:o.querySelector("input");i==null||i.focus()}})}_onTriggerClick(){this.disabled||(this._open=!this._open,this._open||(this._query=""))}_onKeyDown(e){var t;e.key==="Escape"&&(this._open=!1,this._query="",(t=this._triggerEl)==null||t.focus())}_onClear(e){e.stopPropagation(),this.clearable&&(this.value="",this.dispatchEvent(new CustomEvent(N5,{detail:"",bubbles:!0,composed:!0})))}_selectOption(e){this.value=e.value,this._open=!1,this._query="",this.dispatchEvent(new CustomEvent(N5,{detail:e.value,bubbles:!0,composed:!0}))}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const o=e.getBoundingClientRect(),i=t.style.transform;t.style.transform="none";const n=t.getBoundingClientRect();t.style.transform=i;const l=t.querySelector(".panel__inner");l&&(l.style.minWidth=`${o.width}px`);const d=t.getBoundingClientRect(),c=4,C=window.innerWidth,p=window.innerHeight,f=8,b=p-o.bottom-c,m=o.top-c,_=d.height<=b||b>=m?o.bottom+c:o.top-d.height-c;let v=o.left;this.placement==="bottom-end"?v=o.right-d.width:this.placement==="bottom"&&(v=o.left+o.width/2-d.width/2),v=Math.max(f,Math.min(v,C-d.width-f));const M=Math.max(f,Math.min(_,p-d.height-f));t.style.transform=`translate(${Math.round(v-n.left)}px, ${Math.round(M-n.top)}px)`}get _filteredOptions(){if(!this._query)return this.options;const e=this._query.toLowerCase();return this.options.filter(t=>t.label.toLowerCase().includes(e))}render(){const e=this.options.find(n=>n.value===this.value),t=(e==null?void 0:e.label)??"",o=e?e.icon??"":this.icon,i=this._filteredOptions;return a`
|
|
2072
2072
|
<button
|
|
2073
2073
|
class="trigger trigger--${this.appearance} trigger--${this.variant}${this.size==="small"?" trigger--small":""}${this.value?" has-value":""}"
|
|
2074
2074
|
part="trigger"
|
|
@@ -2080,11 +2080,11 @@
|
|
|
2080
2080
|
>
|
|
2081
2081
|
${o&&t?a`<anduin-icon name="${o}" size="16"></anduin-icon>`:h}
|
|
2082
2082
|
<span class="trigger__label${t?"":" trigger__label--placeholder"}">${t||this.placeholder}</span>
|
|
2083
|
-
<span class="trigger__caret">
|
|
2083
|
+
<span class="trigger__caret${this.clearable?" trigger__caret--clearable":""}">
|
|
2084
2084
|
<span class="trigger__chevron">
|
|
2085
2085
|
<anduin-icon name="caretDown" size="16"></anduin-icon>
|
|
2086
2086
|
</span>
|
|
2087
|
-
${this.value&&!this.disabled?a`
|
|
2087
|
+
${this.clearable&&this.value&&!this.disabled?a`
|
|
2088
2088
|
<span class="trigger__clear" @click=${this._onClear}>
|
|
2089
2089
|
<anduin-icon name="crossSmall" size="16"></anduin-icon>
|
|
2090
2090
|
</span>
|
|
@@ -2234,7 +2234,9 @@
|
|
|
2234
2234
|
}
|
|
2235
2235
|
.trigger__clear:hover { color: var(--color-gray-9, #101828); background-color: var(--color-gray-3); }
|
|
2236
2236
|
.trigger__clear:active { background-color: var(--color-gray-4); }
|
|
2237
|
-
|
|
2237
|
+
/* Scoped to --clearable so a dropdown with clearable=false keeps its chevron
|
|
2238
|
+
on hover: unscoped, the chevron fades out to reveal a × that is not there. */
|
|
2239
|
+
.trigger__caret--clearable:hover .trigger__chevron { opacity: 0; }
|
|
2238
2240
|
.trigger__caret:hover .trigger__clear { opacity: 1; }
|
|
2239
2241
|
|
|
2240
2242
|
/* ── Panel ─────────────────────────────────────────────────── */
|
|
@@ -2300,7 +2302,7 @@
|
|
|
2300
2302
|
color: var(--color-gray-5, #98a1b2);
|
|
2301
2303
|
text-align: center;
|
|
2302
2304
|
}
|
|
2303
|
-
`;let Z=q4;
|
|
2305
|
+
`;let Z=q4;z([s()],Z.prototype,"value");z([s()],Z.prototype,"placeholder");z([s({attribute:!1})],Z.prototype,"options");z([s()],Z.prototype,"icon");z([s({type:Boolean})],Z.prototype,"searchable");z([s({type:Boolean})],Z.prototype,"disabled");z([s()],Z.prototype,"placement");z([s()],Z.prototype,"appearance");z([s()],Z.prototype,"variant");z([s()],Z.prototype,"size");z([s({type:Boolean,attribute:"full-width",reflect:!0})],Z.prototype,"fullWidth");z([s({converter:r=>r!=="false"})],Z.prototype,"clearable");z([H()],Z.prototype,"_open");z([H()],Z.prototype,"_query");z([$(".trigger")],Z.prototype,"_triggerEl");z([$(".panel")],Z.prototype,"_panelEl");z([$("anduin-input")],Z.prototype,"_searchEl");customElements.get("anduin-dropdown")||customElements.define("anduin-dropdown",Z);var B0=Object.defineProperty,g1=(r,e,t,o)=>{for(var i=void 0,n=r.length-1,l;n>=0;n--)(l=r[n])&&(i=l(e,t,i)||i);return i&&B0(e,t,i),i};const W1="anduin-close",F2="anduin-after-close",T0=300,e3=250,O0=new Map([["320",320],["360",360],["400",400],["640",640]]),X4=class X4 extends u{constructor(){super(...arguments),this.open=!1,this.heading="",this.hideHeader=!1,this.hideFooter=!1,this.defaultWidth="320",this.placement="right",this.allowInteractOutside=!1,this._leaving=!1,this._width=320,this._resizing=!1,this._startX=0,this._startWidth=0,this._stopAtSelf=e=>{e.stopPropagation()},this._onResizeStart=e=>{this._resizing=!0,this._startX=e.clientX,this._startWidth=this._width,e.currentTarget.setPointerCapture(e.pointerId),e.preventDefault()},this._onResizeMove=e=>{var n;if(!this._resizing)return;const t=this.placement==="left"?e.clientX-this._startX:this._startX-e.clientX,o=Math.max(200,Math.min(window.innerWidth*.9,this._startWidth+t));this._width=Math.round(o);const i=(n=this.shadowRoot)==null?void 0:n.querySelector(".drawer");i&&(i.style.width=`${this._width}px`)},this._onResizeEnd=()=>{this._resizing=!1}}willUpdate(e){e.has("defaultWidth")&&(this._width=O0.get(this.defaultWidth)??(parseInt(this.defaultWidth)||320))}updated(e){e.has("open")&&(this.open?(this._leaving=!1,this.classList.add("is-shown")):this.classList.contains("is-shown")&&(this._leaving=!0,setTimeout(()=>{this._leaving=!1,this.classList.remove("is-shown"),this.dispatchEvent(new CustomEvent(F2,{bubbles:!0,composed:!0}))},e3)))}_dispatch(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.addEventListener(W1,this._stopAtSelf),this.addEventListener(F2,this._stopAtSelf)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(W1,this._stopAtSelf),this.removeEventListener(F2,this._stopAtSelf)}_onClose(){this._dispatch(W1)}_onBackdropClick(){this._dispatch(W1)}render(){const e=this._leaving;return a`
|
|
2304
2306
|
${this.allowInteractOutside?h:a`<div class="backdrop" @click=${this._onBackdropClick}></div>`}
|
|
2305
2307
|
<div
|
|
2306
2308
|
class=${`drawer${e?" is-leaving":""}`}
|
|
@@ -3444,7 +3446,7 @@
|
|
|
3444
3446
|
<tbody>
|
|
3445
3447
|
${f.map(_=>a`
|
|
3446
3448
|
<tr>
|
|
3447
|
-
${_.map(v=>{if(v===null)return a`<td class="calendar__day-cell"></td>`;const M=new Date(this._viewYear,this._viewMonth,v),w=m1(M),
|
|
3449
|
+
${_.map(v=>{if(v===null)return a`<td class="calendar__day-cell"></td>`;const M=new Date(this._viewYear,this._viewMonth,v),w=m1(M),D=M.getTime(),j=this._isDisabled(M),u2=!!o&&D===o.getTime(),r1=!!i&&D===i.getTime(),ke=!!o&&!!i&&D>o.getTime()&&D<i.getTime(),Re=!n&&!!t&&D===t.getTime(),p7=["calendar__day-cell",ke?"calendar__day-cell--in-range":"",u2&&i?"calendar__day-cell--range-start":"",r1&&o?"calendar__day-cell--range-end":""].filter(Boolean).join(" "),u7=["calendar__day-button",w===e?"calendar__day-button--today":"",Re?"calendar__day-button--selected":"",u2?"calendar__day-button--range-start":"",r1?"calendar__day-button--range-end":"",ke?"calendar__day-button--in-range":"",j?"calendar__day-button--disabled":""].filter(Boolean).join(" ");return a`
|
|
3448
3450
|
<td
|
|
3449
3451
|
class="${p7}"
|
|
3450
3452
|
role="gridcell"
|
|
@@ -3703,12 +3705,12 @@
|
|
|
3703
3705
|
@dblclick=${v=>this.onResizeReset(v,e,t)}
|
|
3704
3706
|
@click=${v=>v.stopPropagation()}
|
|
3705
3707
|
></span>
|
|
3706
|
-
`:h;if(l1(e)){const v=this.renderSelectableRows,M=this.renderSelectedKeys,w=v.filter(r1=>M.has(r1.key)).length,
|
|
3708
|
+
`:h;if(l1(e)){const v=this.renderSelectableRows,M=this.renderSelectedKeys,w=v.filter(r1=>M.has(r1.key)).length,D=v.length>0&&w===v.length,j=w>0&&!D,u2=e.renderHeader?e.renderHeader({areAllRowsSelected:D,hasSelectedRow:w>0,onChange:r1=>this.toggleAllRows(r1)}):a`
|
|
3707
3709
|
<anduin-checkbox
|
|
3708
|
-
.checked=${
|
|
3710
|
+
.checked=${D}
|
|
3709
3711
|
.indeterminate=${j}
|
|
3710
|
-
aria-label="${
|
|
3711
|
-
@anduin-checkbox:change=${r1=>{r1.stopPropagation(),this.toggleAllRows(!
|
|
3712
|
+
aria-label="${D?"Deselect all rows":"Select all rows"}"
|
|
3713
|
+
@anduin-checkbox:change=${r1=>{r1.stopPropagation(),this.toggleAllRows(!D)}}
|
|
3712
3714
|
></anduin-checkbox>
|
|
3713
3715
|
`;return a`
|
|
3714
3716
|
<th
|
|
@@ -3199,8 +3199,8 @@ function O7(r, e, t, o = 8) {
|
|
|
3199
3199
|
p.sort((m, V) => {
|
|
3200
3200
|
const _ = { left: m.off.left, top: m.off.top, right: m.off.left + d, bottom: m.off.top + c }, v = { left: V.off.left, top: V.off.top, right: V.off.left + d, bottom: V.off.top + c }, x = B3(_, l), M = B3(v, l);
|
|
3201
3201
|
if (M !== x) return M - x;
|
|
3202
|
-
const
|
|
3203
|
-
return
|
|
3202
|
+
const A = Math.abs(m.off.left - C.left) + Math.abs(m.off.top - C.top), U = Math.abs(V.off.left - C.left) + Math.abs(V.off.top - C.top);
|
|
3203
|
+
return A - U;
|
|
3204
3204
|
});
|
|
3205
3205
|
const { p: f, off: b } = p[0];
|
|
3206
3206
|
return {
|
|
@@ -3616,8 +3616,8 @@ const g5 = "anduin-popover:close", f5 = "anduin-popover:open-change", w4 = class
|
|
|
3616
3616
|
t.style.transform = i;
|
|
3617
3617
|
const l = t.getBoundingClientRect(), d = 4, c = window.innerWidth, C = window.innerHeight, p = 8;
|
|
3618
3618
|
let f = 0, b = 0, m = "bottom";
|
|
3619
|
-
const V = !this.placement.startsWith("top"), _ = C - o.bottom - d, v = o.top - d, x = _ >= l.height, M = v >= l.height,
|
|
3620
|
-
m =
|
|
3619
|
+
const V = !this.placement.startsWith("top"), _ = C - o.bottom - d, v = o.top - d, x = _ >= l.height, M = v >= l.height, A = V ? x || _ >= v : !M && x;
|
|
3620
|
+
m = A ? "bottom" : "top", b = A ? o.bottom + d : o.top - l.height - d;
|
|
3621
3621
|
const U = this.placement.endsWith("end") ? "end" : this.placement.endsWith("start") ? "start" : "center";
|
|
3622
3622
|
U === "start" ? f = o.left : U === "end" ? f = o.right - l.width : f = o.left + o.width / 2 - l.width / 2, f = Math.max(p, Math.min(f, c - l.width - p)), b = Math.max(p, Math.min(b, C - l.height - p)), t.style.transform = `translate(${Math.round(f - n.left)}px, ${Math.round(b - n.top)}px)`, t.dataset.side = m;
|
|
3623
3623
|
}
|
|
@@ -5316,14 +5316,14 @@ Me([
|
|
|
5316
5316
|
s({ type: Boolean })
|
|
5317
5317
|
], V2.prototype, "disabled");
|
|
5318
5318
|
customElements.get("anduin-switcher") || customElements.define("anduin-switcher", V2);
|
|
5319
|
-
var g0 = Object.defineProperty,
|
|
5319
|
+
var g0 = Object.defineProperty, S = (r, e, t, o) => {
|
|
5320
5320
|
for (var i = void 0, n = r.length - 1, l; n >= 0; n--)
|
|
5321
5321
|
(l = r[n]) && (i = l(e, t, i) || i);
|
|
5322
5322
|
return i && g0(e, t, i), i;
|
|
5323
5323
|
};
|
|
5324
5324
|
const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
5325
5325
|
constructor() {
|
|
5326
|
-
super(...arguments), this.value = "", this.placeholder = "Select...", this.options = [], this.icon = "", this.searchable = !0, this.disabled = !1, this.placement = "bottom-start", this.appearance = "filled", this.variant = "gray0", this.size = "default", this.fullWidth = !1, this._open = !1, this._query = "", this._onOutsideClick = (e) => {
|
|
5326
|
+
super(...arguments), this.value = "", this.placeholder = "Select...", this.options = [], this.icon = "", this.searchable = !0, this.disabled = !1, this.placement = "bottom-start", this.appearance = "filled", this.variant = "gray0", this.size = "default", this.fullWidth = !1, this.clearable = !0, this._open = !1, this._query = "", this._onOutsideClick = (e) => {
|
|
5327
5327
|
var t;
|
|
5328
5328
|
!this.contains(e.target) && !((t = this.shadowRoot) != null && t.contains(e.target)) && (this._open = !1, this._query = "");
|
|
5329
5329
|
}, this._onScrollOrResize = () => {
|
|
@@ -5353,11 +5353,11 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5353
5353
|
e.key === "Escape" && (this._open = !1, this._query = "", (t = this._triggerEl) == null || t.focus());
|
|
5354
5354
|
}
|
|
5355
5355
|
_onClear(e) {
|
|
5356
|
-
e.stopPropagation(), this.value = "", this.dispatchEvent(new CustomEvent(N3, {
|
|
5356
|
+
e.stopPropagation(), this.clearable && (this.value = "", this.dispatchEvent(new CustomEvent(N3, {
|
|
5357
5357
|
detail: "",
|
|
5358
5358
|
bubbles: !0,
|
|
5359
5359
|
composed: !0
|
|
5360
|
-
}));
|
|
5360
|
+
})));
|
|
5361
5361
|
}
|
|
5362
5362
|
_selectOption(e) {
|
|
5363
5363
|
this.value = e.value, this._open = !1, this._query = "", this.dispatchEvent(new CustomEvent(N3, {
|
|
@@ -5400,11 +5400,11 @@ const N3 = "anduin-dropdown:change", B4 = class B4 extends h {
|
|
|
5400
5400
|
>
|
|
5401
5401
|
${o && t ? a`<anduin-icon name="${o}" size="16"></anduin-icon>` : u}
|
|
5402
5402
|
<span class="trigger__label${t ? "" : " trigger__label--placeholder"}">${t || this.placeholder}</span>
|
|
5403
|
-
<span class="trigger__caret">
|
|
5403
|
+
<span class="trigger__caret${this.clearable ? " trigger__caret--clearable" : ""}">
|
|
5404
5404
|
<span class="trigger__chevron">
|
|
5405
5405
|
<anduin-icon name="caretDown" size="16"></anduin-icon>
|
|
5406
5406
|
</span>
|
|
5407
|
-
${this.value && !this.disabled ? a`
|
|
5407
|
+
${this.clearable && this.value && !this.disabled ? a`
|
|
5408
5408
|
<span class="trigger__clear" @click=${this._onClear}>
|
|
5409
5409
|
<anduin-icon name="crossSmall" size="16"></anduin-icon>
|
|
5410
5410
|
</span>
|
|
@@ -5559,7 +5559,9 @@ B4.styles = g`
|
|
|
5559
5559
|
}
|
|
5560
5560
|
.trigger__clear:hover { color: var(--color-gray-9, #101828); background-color: var(--color-gray-3); }
|
|
5561
5561
|
.trigger__clear:active { background-color: var(--color-gray-4); }
|
|
5562
|
-
|
|
5562
|
+
/* Scoped to --clearable so a dropdown with clearable=false keeps its chevron
|
|
5563
|
+
on hover: unscoped, the chevron fades out to reveal a × that is not there. */
|
|
5564
|
+
.trigger__caret--clearable:hover .trigger__chevron { opacity: 0; }
|
|
5563
5565
|
.trigger__caret:hover .trigger__clear { opacity: 1; }
|
|
5564
5566
|
|
|
5565
5567
|
/* ── Panel ─────────────────────────────────────────────────── */
|
|
@@ -5627,52 +5629,55 @@ B4.styles = g`
|
|
|
5627
5629
|
}
|
|
5628
5630
|
`;
|
|
5629
5631
|
let Z = B4;
|
|
5630
|
-
|
|
5632
|
+
S([
|
|
5631
5633
|
s()
|
|
5632
5634
|
], Z.prototype, "value");
|
|
5633
|
-
|
|
5635
|
+
S([
|
|
5634
5636
|
s()
|
|
5635
5637
|
], Z.prototype, "placeholder");
|
|
5636
|
-
|
|
5638
|
+
S([
|
|
5637
5639
|
s({ attribute: !1 })
|
|
5638
5640
|
], Z.prototype, "options");
|
|
5639
|
-
|
|
5641
|
+
S([
|
|
5640
5642
|
s()
|
|
5641
5643
|
], Z.prototype, "icon");
|
|
5642
|
-
|
|
5644
|
+
S([
|
|
5643
5645
|
s({ type: Boolean })
|
|
5644
5646
|
], Z.prototype, "searchable");
|
|
5645
|
-
|
|
5647
|
+
S([
|
|
5646
5648
|
s({ type: Boolean })
|
|
5647
5649
|
], Z.prototype, "disabled");
|
|
5648
|
-
|
|
5650
|
+
S([
|
|
5649
5651
|
s()
|
|
5650
5652
|
], Z.prototype, "placement");
|
|
5651
|
-
|
|
5653
|
+
S([
|
|
5652
5654
|
s()
|
|
5653
5655
|
], Z.prototype, "appearance");
|
|
5654
|
-
|
|
5656
|
+
S([
|
|
5655
5657
|
s()
|
|
5656
5658
|
], Z.prototype, "variant");
|
|
5657
|
-
|
|
5659
|
+
S([
|
|
5658
5660
|
s()
|
|
5659
5661
|
], Z.prototype, "size");
|
|
5660
|
-
|
|
5662
|
+
S([
|
|
5661
5663
|
s({ type: Boolean, attribute: "full-width", reflect: !0 })
|
|
5662
5664
|
], Z.prototype, "fullWidth");
|
|
5663
|
-
|
|
5665
|
+
S([
|
|
5666
|
+
s({ converter: (r) => r !== "false" })
|
|
5667
|
+
], Z.prototype, "clearable");
|
|
5668
|
+
S([
|
|
5664
5669
|
H()
|
|
5665
5670
|
], Z.prototype, "_open");
|
|
5666
|
-
|
|
5671
|
+
S([
|
|
5667
5672
|
H()
|
|
5668
5673
|
], Z.prototype, "_query");
|
|
5669
|
-
|
|
5674
|
+
S([
|
|
5670
5675
|
R(".trigger")
|
|
5671
5676
|
], Z.prototype, "_triggerEl");
|
|
5672
|
-
|
|
5677
|
+
S([
|
|
5673
5678
|
R(".panel")
|
|
5674
5679
|
], Z.prototype, "_panelEl");
|
|
5675
|
-
|
|
5680
|
+
S([
|
|
5676
5681
|
R("anduin-input")
|
|
5677
5682
|
], Z.prototype, "_searchEl");
|
|
5678
5683
|
customElements.get("anduin-dropdown") || customElements.define("anduin-dropdown", Z);
|
|
@@ -7697,7 +7702,7 @@ customElements.get("anduin-sidebar-menu-item") || customElements.define("anduin-
|
|
|
7697
7702
|
customElements.get("anduin-sidebar-action") || customElements.define("anduin-sidebar-action", A5);
|
|
7698
7703
|
customElements.get("anduin-sidebar-badge") || customElements.define("anduin-sidebar-badge", D5);
|
|
7699
7704
|
customElements.get("anduin-sidebar-separator") || customElements.define("anduin-sidebar-separator", P5);
|
|
7700
|
-
function
|
|
7705
|
+
function D(r) {
|
|
7701
7706
|
if (!r) return null;
|
|
7702
7707
|
const e = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r.trim());
|
|
7703
7708
|
if (!e) return null;
|
|
@@ -7759,7 +7764,7 @@ const C3 = class C3 extends h {
|
|
|
7759
7764
|
}
|
|
7760
7765
|
willUpdate(e) {
|
|
7761
7766
|
if (e.has("value")) {
|
|
7762
|
-
const t =
|
|
7767
|
+
const t = D(this.value);
|
|
7763
7768
|
if (t)
|
|
7764
7769
|
this._viewYear = t.getFullYear(), this._viewMonth = t.getMonth(), this._viewSeeded = !0;
|
|
7765
7770
|
else if (!this._viewSeeded) {
|
|
@@ -7777,10 +7782,10 @@ const C3 = class C3 extends h {
|
|
|
7777
7782
|
}
|
|
7778
7783
|
// ── Constraints ─────────────────────────────────────────────────
|
|
7779
7784
|
get _min() {
|
|
7780
|
-
return
|
|
7785
|
+
return D(this.minDate);
|
|
7781
7786
|
}
|
|
7782
7787
|
get _max() {
|
|
7783
|
-
return
|
|
7788
|
+
return D(this.maxDate);
|
|
7784
7789
|
}
|
|
7785
7790
|
_isDisabled(e) {
|
|
7786
7791
|
const t = this._min, o = this._max;
|
|
@@ -7802,7 +7807,7 @@ const C3 = class C3 extends h {
|
|
|
7802
7807
|
this._isDisabled(o) || (this._focus = L1(o), (o.getMonth() !== e.getMonth() || o.getFullYear() !== e.getFullYear()) && (this._viewYear = o.getFullYear(), this._viewMonth = o.getMonth(), this._viewSeeded = !0), this._pendingFocus = !0);
|
|
7803
7808
|
}
|
|
7804
7809
|
_onGridKeyDown(e) {
|
|
7805
|
-
const t =
|
|
7810
|
+
const t = D(this._focus) ?? this._defaultFocusDate();
|
|
7806
7811
|
switch (e.key) {
|
|
7807
7812
|
// Shift turns the horizontal arrows into month steps and the vertical
|
|
7808
7813
|
// ones into year steps.
|
|
@@ -7849,10 +7854,10 @@ const C3 = class C3 extends h {
|
|
|
7849
7854
|
}
|
|
7850
7855
|
/** The day that owns `tabindex="0"` when nothing has been focused yet. */
|
|
7851
7856
|
_defaultFocusDate() {
|
|
7852
|
-
const e =
|
|
7857
|
+
const e = D(this._focus);
|
|
7853
7858
|
if (e && e.getMonth() === this._viewMonth && e.getFullYear() === this._viewYear)
|
|
7854
7859
|
return e;
|
|
7855
|
-
const t =
|
|
7860
|
+
const t = D(this.value);
|
|
7856
7861
|
if (t && t.getMonth() === this._viewMonth && t.getFullYear() === this._viewYear)
|
|
7857
7862
|
return t;
|
|
7858
7863
|
const o = F1();
|
|
@@ -7904,7 +7909,7 @@ const C3 = class C3 extends h {
|
|
|
7904
7909
|
}
|
|
7905
7910
|
// ── Render ──────────────────────────────────────────────────────
|
|
7906
7911
|
render() {
|
|
7907
|
-
const e = L1(F1()), t =
|
|
7912
|
+
const e = L1(F1()), t = D(this.value), o = D(this.rangeStart), i = D(this.rangeEnd), n = this.rangeMode || !!(o || i), l = L1(this._defaultFocusDate()), d = new Date(this._viewYear, this._viewMonth, 1), c = new Date(this._viewYear, this._viewMonth + 1, 0).getDate(), C = d.getDay(), p = [
|
|
7908
7913
|
...Array.from({ length: C }, () => null),
|
|
7909
7914
|
...Array.from({ length: c }, (_, v) => v + 1)
|
|
7910
7915
|
];
|
|
@@ -7974,7 +7979,7 @@ const C3 = class C3 extends h {
|
|
|
7974
7979
|
<tr>
|
|
7975
7980
|
${_.map((v) => {
|
|
7976
7981
|
if (v === null) return a`<td class="calendar__day-cell"></td>`;
|
|
7977
|
-
const x = new Date(this._viewYear, this._viewMonth, v), M = L1(x),
|
|
7982
|
+
const x = new Date(this._viewYear, this._viewMonth, v), M = L1(x), A = x.getTime(), U = this._isDisabled(x), X1 = !!o && A === o.getTime(), t1 = !!i && A === i.getTime(), v3 = !!o && !!i && A > o.getTime() && A < i.getTime(), m3 = !n && !!t && A === t.getTime(), ke = [
|
|
7978
7983
|
"calendar__day-cell",
|
|
7979
7984
|
v3 ? "calendar__day-cell--in-range" : "",
|
|
7980
7985
|
// Only tint the edge cell when it actually opens a span —
|
|
@@ -8158,7 +8163,7 @@ const B0 = "anduin-date-range:change", p3 = class p3 extends h {
|
|
|
8158
8163
|
super(...arguments), this.startDate = "", this.endDate = "", this.minDate = "", this.maxDate = "", this._anchor = null, this._hover = null, this._panels = /* @__PURE__ */ new Map(), this._pushedValue = /* @__PURE__ */ new Map(), this._onCalendarChange = (e) => {
|
|
8159
8164
|
e.stopPropagation();
|
|
8160
8165
|
const t = e.detail;
|
|
8161
|
-
if (!
|
|
8166
|
+
if (!D(t)) return;
|
|
8162
8167
|
if (this._anchor === null) {
|
|
8163
8168
|
this._anchor = t, this._hover = null;
|
|
8164
8169
|
return;
|
|
@@ -8205,7 +8210,7 @@ const B0 = "anduin-date-range:change", p3 = class p3 extends h {
|
|
|
8205
8210
|
/** Which month each panel opens on: the start date on the left, the month
|
|
8206
8211
|
* after it on the right. Falls back to today when there's no range yet. */
|
|
8207
8212
|
_panelValue(e) {
|
|
8208
|
-
const t =
|
|
8213
|
+
const t = D(this.startDate) ?? F1();
|
|
8209
8214
|
return L1(e === "start" ? t : c1(t, 1));
|
|
8210
8215
|
}
|
|
8211
8216
|
/** The range the calendars should paint — the live preview while selecting,
|
|
@@ -8217,7 +8222,7 @@ const B0 = "anduin-date-range:change", p3 = class p3 extends h {
|
|
|
8217
8222
|
return [e, t];
|
|
8218
8223
|
}
|
|
8219
8224
|
_sorted(e, t) {
|
|
8220
|
-
const o =
|
|
8225
|
+
const o = D(e), i = D(t);
|
|
8221
8226
|
return !o || !i ? [e, t] : o.getTime() <= i.getTime() ? [e, t] : [t, e];
|
|
8222
8227
|
}
|
|
8223
8228
|
render() {
|
|
@@ -8402,7 +8407,7 @@ const e2 = 1, j2 = class j2 extends h {
|
|
|
8402
8407
|
* carries a full date — a partial format like `MM/dd` has no year to compare.
|
|
8403
8408
|
*/
|
|
8404
8409
|
_clampToBounds(e) {
|
|
8405
|
-
const t =
|
|
8410
|
+
const t = D(this.minDate), o = D(this.maxDate);
|
|
8406
8411
|
if (!t && !o) return e;
|
|
8407
8412
|
const i = this._indexOfType("month"), n = this._indexOfType("day"), l = this._indexOfType("year");
|
|
8408
8413
|
if (i < 0 || n < 0 || l < 0) return e;
|
|
@@ -8701,7 +8706,7 @@ const g3 = class g3 extends h {
|
|
|
8701
8706
|
e.stopPropagation(), this._emit(e.detail);
|
|
8702
8707
|
}, this._onCalendarChange = (e) => {
|
|
8703
8708
|
e.stopPropagation();
|
|
8704
|
-
const t =
|
|
8709
|
+
const t = D(e.detail);
|
|
8705
8710
|
t && (this._emit(G0(t, this.format)), this._closePopover());
|
|
8706
8711
|
}, this._onKeyDown = (e) => {
|
|
8707
8712
|
var t;
|
|
@@ -9254,17 +9259,17 @@ const W0 = "anduin-table:sort", Y0 = "anduin-table:column-click", q0 = "anduin-t
|
|
|
9254
9259
|
></span>
|
|
9255
9260
|
` : u;
|
|
9256
9261
|
if (i1(e)) {
|
|
9257
|
-
const v = this.renderSelectableRows, x = this.renderSelectedKeys, M = v.filter((t1) => x.has(t1.key)).length,
|
|
9258
|
-
areAllRowsSelected:
|
|
9262
|
+
const v = this.renderSelectableRows, x = this.renderSelectedKeys, M = v.filter((t1) => x.has(t1.key)).length, A = v.length > 0 && M === v.length, U = M > 0 && !A, X1 = e.renderHeader ? e.renderHeader({
|
|
9263
|
+
areAllRowsSelected: A,
|
|
9259
9264
|
hasSelectedRow: M > 0,
|
|
9260
9265
|
onChange: (t1) => this.toggleAllRows(t1)
|
|
9261
9266
|
}) : a`
|
|
9262
9267
|
<anduin-checkbox
|
|
9263
|
-
.checked=${
|
|
9268
|
+
.checked=${A}
|
|
9264
9269
|
.indeterminate=${U}
|
|
9265
|
-
aria-label="${
|
|
9270
|
+
aria-label="${A ? "Deselect all rows" : "Select all rows"}"
|
|
9266
9271
|
@anduin-checkbox:change=${(t1) => {
|
|
9267
|
-
t1.stopPropagation(), this.toggleAllRows(!
|
|
9272
|
+
t1.stopPropagation(), this.toggleAllRows(!A);
|
|
9268
9273
|
}}
|
|
9269
9274
|
></anduin-checkbox>
|
|
9270
9275
|
`;
|
|
@@ -10070,7 +10075,7 @@ export {
|
|
|
10070
10075
|
c1 as bp,
|
|
10071
10076
|
L1 as bq,
|
|
10072
10077
|
pe as br,
|
|
10073
|
-
|
|
10078
|
+
D as bs,
|
|
10074
10079
|
a0 as bt,
|
|
10075
10080
|
F1 as bu,
|
|
10076
10081
|
lt as bv,
|
package/dist/jsx.d.ts
CHANGED
|
@@ -421,6 +421,8 @@ declare module 'react' {
|
|
|
421
421
|
variant?: 'gray0' | 'gray9' | 'primary' | 'danger' | 'success' | 'warning'
|
|
422
422
|
/** Stretch trigger to full container width */
|
|
423
423
|
'full-width'?: boolean
|
|
424
|
+
/** Show the × that clears a set value (default: true). Pass "false" to hide it. */
|
|
425
|
+
clearable?: boolean | 'true' | 'false'
|
|
424
426
|
/** Fired when selection changes — detail: string (selected value) */
|
|
425
427
|
onChange?: (e: CustomEvent<string>) => void
|
|
426
428
|
}
|
package/dist/react.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),a=require("@lit/react"),e=require("./anduin-table-BCgVIfkl.cjs"),t=a.createComponent({react:n,tagName:"anduin-spinner",elementClass:e.AnduinSpinner}),o=a.createComponent({react:n,tagName:"anduin-sparkle-spinner",elementClass:e.AnduinSparkleSpinner}),i=a.createComponent({react:n,tagName:"anduin-ai-spinner",elementClass:e.AnduinAiSpinner}),r=a.createComponent({react:n,tagName:"anduin-icon",elementClass:e.AnduinIcon}),C=a.createComponent({react:n,tagName:"anduin-badge",elementClass:e.AnduinBadge}),s=a.createComponent({react:n,tagName:"anduin-badge-count",elementClass:e.AnduinBadgeCount}),l=a.createComponent({react:n,tagName:"anduin-button",elementClass:e.AnduinButton}),c=a.createComponent({react:n,tagName:"anduin-callout",elementClass:e.AnduinCallout}),d=a.createComponent({react:n,tagName:"anduin-divider",elementClass:e.AnduinDivider}),m=a.createComponent({react:n,tagName:"anduin-dot",elementClass:e.AnduinDot}),E=a.createComponent({react:n,tagName:"anduin-progress",elementClass:e.AnduinProgress}),A=a.createComponent({react:n,tagName:"anduin-skeleton",elementClass:e.AnduinSkeleton}),u=a.createComponent({react:n,tagName:"anduin-loading-state",elementClass:e.AnduinLoadingState}),g=a.createComponent({react:n,tagName:"anduin-field",elementClass:e.AnduinField}),N=a.createComponent({react:n,tagName:"anduin-field-label",elementClass:e.AnduinFieldLabel}),T=a.createComponent({react:n,tagName:"anduin-field-description",elementClass:e.AnduinFieldDescription}),_=a.createComponent({react:n,tagName:"anduin-field-error",elementClass:e.AnduinFieldError}),p=a.createComponent({react:n,tagName:"anduin-field-group",elementClass:e.AnduinFieldGroup}),G=a.createComponent({react:n,tagName:"anduin-radio",elementClass:e.AnduinRadio,events:{onChange:e.RADIO_CHANGE}}),L=a.createComponent({react:n,tagName:"anduin-radio-group",elementClass:e.AnduinRadioGroup,events:{onChange:e.RADIO_GROUP_CHANGE}}),S=a.createComponent({react:n,tagName:"anduin-checkbox",elementClass:e.AnduinCheckbox,events:{onChange:e.CHECKBOX_CHANGE}}),O=a.createComponent({react:n,tagName:"anduin-input",elementClass:e.AnduinInput,events:{onChange:e.INPUT_CHANGE,onClear:e.INPUT_CLEAR}}),R=a.createComponent({react:n,tagName:"anduin-textarea",elementClass:e.AnduinTextarea,events:{onChange:e.TEXTAREA_CHANGE}}),I=a.createComponent({react:n,tagName:"anduin-popover",elementClass:e.AnduinPopover,events:{onOpenChange:e.POPOVER_OPEN_CHANGE}}),b=a.createComponent({react:n,tagName:"anduin-popover-close",elementClass:e.AnduinPopoverClose}),D=a.createComponent({react:n,tagName:"anduin-menu",elementClass:e.AnduinMenu}),P=a.createComponent({react:n,tagName:"anduin-menu-item",elementClass:e.AnduinMenuItem}),H=a.createComponent({react:n,tagName:"anduin-modal",elementClass:e.AnduinModal,events:{onClose:e.MODAL_CLOSE_EVENT,onAfterClose:e.MODAL_AFTER_CLOSE_EVENT}}),v=a.createComponent({react:n,tagName:"anduin-modal-close",elementClass:e.AnduinModalClose}),B=a.createComponent({react:n,tagName:"anduin-tabs",elementClass:e.AnduinTabs,events:{onChange:e.TAB_CHANGE}}),M=a.createComponent({react:n,tagName:"anduin-tabs-list",elementClass:e.AnduinTabsList}),U=a.createComponent({react:n,tagName:"anduin-tab-trigger",elementClass:e.AnduinTabTrigger}),F=a.createComponent({react:n,tagName:"anduin-tab-content",elementClass:e.AnduinTabContent}),W=a.createComponent({react:n,tagName:"anduin-tag",elementClass:e.AnduinTag}),h=a.createComponent({react:n,tagName:"anduin-tag-close",elementClass:e.AnduinTagClose,events:{onClick:e.TAG_CLOSE_CLICK}}),V=a.createComponent({react:n,tagName:"anduin-toggle-group",elementClass:e.AnduinToggleGroup,events:{onChange:e.TOGGLE_GROUP_CHANGE}}),w=a.createComponent({react:n,tagName:"anduin-toggle-group-item",elementClass:e.AnduinToggleGroupItem,events:{onChange:e.TOGGLE_GROUP_ITEM_CHANGE,onSelect:e.TOGGLE_GROUP_ITEM_SELECT,onDeselect:e.TOGGLE_GROUP_ITEM_DESELECT}}),k=a.createComponent({react:n,tagName:"anduin-tooltip",elementClass:e.AnduinTooltip}),K=a.createComponent({react:n,tagName:"anduin-tooltip-trigger",elementClass:e.AnduinTooltipTrigger}),f=a.createComponent({react:n,tagName:"anduin-tooltip-content",elementClass:e.AnduinTooltipContent}),z=a.createComponent({react:n,tagName:"anduin-well",elementClass:e.AnduinWell}),X=a.createComponent({react:n,tagName:"anduin-well-close",elementClass:e.AnduinWellClose,events:{onClick:e.WELL_CLOSE_CLICK}}),x=a.createComponent({react:n,tagName:"anduin-avatar",elementClass:e.AnduinAvatar}),Z=a.createComponent({react:n,tagName:"anduin-file-icon",elementClass:e.AnduinFileIcon}),q=a.createComponent({react:n,tagName:"anduin-toast",elementClass:e.AnduinToast}),y=a.createComponent({react:n,tagName:"anduin-toaster",elementClass:e.AnduinToaster}),j=a.createComponent({react:n,tagName:"anduin-dropdown",elementClass:e.AnduinDropdown,events:{onChange:e.DROPDOWN_CHANGE}}),J=a.createComponent({react:n,tagName:"anduin-drawer",elementClass:e.AnduinDrawer,events:{onClose:e.DRAWER_CLOSE_EVENT,onAfterClose:e.DRAWER_AFTER_CLOSE_EVENT}}),Q=a.createComponent({react:n,tagName:"anduin-drawer-close",elementClass:e.AnduinDrawerClose}),Y=a.createComponent({react:n,tagName:"anduin-switcher",elementClass:e.AnduinSwitcher,events:{onChange:e.SWITCHER_CHANGE}}),$=a.createComponent({react:n,tagName:"anduin-suggestion",elementClass:e.AnduinSuggestion,events:{onChange:e.SUGGESTION_CHANGE,onSelect:e.SUGGESTION_SELECT,onClear:e.SUGGESTION_CLEAR}}),ee=a.createComponent({react:n,tagName:"anduin-navigation",elementClass:e.AnduinNavigation,events:{onChange:e.NAVIGATION_CHANGE}}),ne=a.createComponent({react:n,tagName:"anduin-navigation-item",elementClass:e.AnduinNavigationItem}),ae=a.createComponent({react:n,tagName:"anduin-resizable-panel-group",elementClass:e.AnduinResizablePanelGroup}),te=a.createComponent({react:n,tagName:"anduin-resizable-panel",elementClass:e.AnduinResizablePanel}),oe=a.createComponent({react:n,tagName:"anduin-resizable-handle",elementClass:e.AnduinResizableHandle,events:{onResize:e.RESIZE_EVENT}}),ie=a.createComponent({react:n,tagName:"anduin-pagination",elementClass:e.AnduinPagination,events:{onValueChange:e.PAGINATION_CHANGE}}),re=a.createComponent({react:n,tagName:"anduin-pagination-first-page",elementClass:e.AnduinPaginationFirstPage}),Ce=a.createComponent({react:n,tagName:"anduin-pagination-last-page",elementClass:e.AnduinPaginationLastPage}),se=a.createComponent({react:n,tagName:"anduin-sidebar",elementClass:e.AnduinSidebar}),le=a.createComponent({react:n,tagName:"anduin-sidebar-content",elementClass:e.AnduinSidebarContent}),ce=a.createComponent({react:n,tagName:"anduin-sidebar-header",elementClass:e.AnduinSidebarHeader}),de=a.createComponent({react:n,tagName:"anduin-sidebar-footer",elementClass:e.AnduinSidebarFooter}),me=a.createComponent({react:n,tagName:"anduin-sidebar-group",elementClass:e.AnduinSidebarGroup}),Ee=a.createComponent({react:n,tagName:"anduin-sidebar-group-label",elementClass:e.AnduinSidebarGroupLabel}),Ae=a.createComponent({react:n,tagName:"anduin-sidebar-menu",elementClass:e.AnduinSidebarMenu}),ue=a.createComponent({react:n,tagName:"anduin-sidebar-menu-item",elementClass:e.AnduinSidebarMenuItem,events:{onSelect:e.SIDEBAR_SELECT}}),ge=a.createComponent({react:n,tagName:"anduin-sidebar-action",elementClass:e.AnduinSidebarAction}),Ne=a.createComponent({react:n,tagName:"anduin-sidebar-badge",elementClass:e.AnduinSidebarBadge}),Te=a.createComponent({react:n,tagName:"anduin-sidebar-separator",elementClass:e.AnduinSidebarSeparator}),_e=a.createComponent({react:n,tagName:"anduin-timeline",elementClass:e.AnduinTimeline}),pe=a.createComponent({react:n,tagName:"anduin-timeline-item",elementClass:e.AnduinTimelineItem}),Ge=a.createComponent({react:n,tagName:"anduin-timeline-date",elementClass:e.AnduinTimelineDate}),Le=a.createComponent({react:n,tagName:"anduin-timeline-title",elementClass:e.AnduinTimelineTitle}),Se=a.createComponent({react:n,tagName:"anduin-timeline-group",elementClass:e.AnduinTimelineGroup}),Oe=a.createComponent({react:n,tagName:"anduin-timeline-label",elementClass:e.AnduinTimelineLabel}),Re=a.createComponent({react:n,tagName:"anduin-calendar",elementClass:e.AnduinCalendar,events:{onValueChange:e.CALENDAR_CHANGE}}),Ie=a.createComponent({react:n,tagName:"anduin-date-range",elementClass:e.AnduinDateRange,events:{onChange:e.DATE_RANGE_CHANGE}}),be=a.createComponent({react:n,tagName:"anduin-date-range-default",elementClass:e.AnduinDateRangeDefault}),De=a.createComponent({react:n,tagName:"anduin-date-range-start",elementClass:e.AnduinDateRangeStart}),Pe=a.createComponent({react:n,tagName:"anduin-date-range-end",elementClass:e.AnduinDateRangeEnd}),He=a.createComponent({react:n,tagName:"anduin-date-input",elementClass:e.AnduinDateInput,events:{onValueChange:e.DATE_INPUT_CHANGE}}),ve=a.createComponent({react:n,tagName:"anduin-date-picker",elementClass:e.AnduinDatePicker,events:{onValueChange:e.DATE_PICKER_CHANGE}}),Be=a.createComponent({react:n,tagName:"anduin-table",elementClass:e.AnduinTable,events:{onSort:e.TABLE_SORT,onColumnClick:e.TABLE_COLUMN_CLICK,onRowClick:e.TABLE_ROW_CLICK,onSelectionChange:e.TABLE_SELECTION_CHANGE,onCellContextMenu:e.TABLE_CELL_CONTEXT_MENU,onRowExpand:e.TABLE_ROW_EXPAND,onRowCollapse:e.TABLE_ROW_COLLAPSE,onGroupToggle:e.TABLE_GROUP_TOGGLE,onColumnResize:e.TABLE_COLUMN_RESIZE}});exports.CALENDAR_CHANGE=e.CALENDAR_CHANGE;exports.CHECKBOX_CHANGE=e.CHECKBOX_CHANGE;exports.DATE_INPUT_CHANGE=e.DATE_INPUT_CHANGE;exports.DATE_PICKER_CHANGE=e.DATE_PICKER_CHANGE;exports.DATE_RANGE_CHANGE=e.DATE_RANGE_CHANGE;exports.DRAWER_AFTER_CLOSE_EVENT=e.DRAWER_AFTER_CLOSE_EVENT;exports.DRAWER_CLOSE_EVENT=e.DRAWER_CLOSE_EVENT;exports.DROPDOWN_CHANGE=e.DROPDOWN_CHANGE;exports.INPUT_CHANGE=e.INPUT_CHANGE;exports.INPUT_CLEAR=e.INPUT_CLEAR;exports.MENU_ITEM_CLICK=e.MENU_ITEM_CLICK;exports.MODAL_AFTER_CLOSE_EVENT=e.MODAL_AFTER_CLOSE_EVENT;exports.MODAL_CLOSE_EVENT=e.MODAL_CLOSE_EVENT;exports.NAVIGATION_CHANGE=e.NAVIGATION_CHANGE;exports.PAGINATION_CHANGE=e.PAGINATION_CHANGE;exports.POPOVER_OPEN_CHANGE=e.POPOVER_OPEN_CHANGE;exports.RADIO_CHANGE=e.RADIO_CHANGE;exports.RADIO_GROUP_CHANGE=e.RADIO_GROUP_CHANGE;exports.RESIZE_EVENT=e.RESIZE_EVENT;exports.SIDEBAR_SELECT=e.SIDEBAR_SELECT;exports.SUGGESTION_CHANGE=e.SUGGESTION_CHANGE;exports.SUGGESTION_CLEAR=e.SUGGESTION_CLEAR;exports.SUGGESTION_SELECT=e.SUGGESTION_SELECT;exports.SWITCHER_CHANGE=e.SWITCHER_CHANGE;exports.TABLE_CELL_CONTEXT_MENU=e.TABLE_CELL_CONTEXT_MENU;exports.TABLE_COLUMN_CLICK=e.TABLE_COLUMN_CLICK;exports.TABLE_COLUMN_RESIZE=e.TABLE_COLUMN_RESIZE;exports.TABLE_GROUP_TOGGLE=e.TABLE_GROUP_TOGGLE;exports.TABLE_ROW_CLICK=e.TABLE_ROW_CLICK;exports.TABLE_ROW_COLLAPSE=e.TABLE_ROW_COLLAPSE;exports.TABLE_ROW_EXPAND=e.TABLE_ROW_EXPAND;exports.TABLE_SELECTION_CHANGE=e.TABLE_SELECTION_CHANGE;exports.TABLE_SORT=e.TABLE_SORT;exports.TAB_CHANGE=e.TAB_CHANGE;exports.TAG_CLOSE_CLICK=e.TAG_CLOSE_CLICK;exports.TEXTAREA_CHANGE=e.TEXTAREA_CHANGE;exports.TOGGLE_GROUP_CHANGE=e.TOGGLE_GROUP_CHANGE;exports.TOGGLE_GROUP_ITEM_CHANGE=e.TOGGLE_GROUP_ITEM_CHANGE;exports.TOGGLE_GROUP_ITEM_DESELECT=e.TOGGLE_GROUP_ITEM_DESELECT;exports.TOGGLE_GROUP_ITEM_SELECT=e.TOGGLE_GROUP_ITEM_SELECT;exports.WELL_CLOSE_CLICK=e.WELL_CLOSE_CLICK;exports.AiSpinner=i;exports.Avatar=x;exports.Badge=C;exports.BadgeCount=s;exports.Button=l;exports.Calendar=Re;exports.Callout=c;exports.Checkbox=S;exports.DateInput=He;exports.DatePicker=ve;exports.DateRange=Ie;exports.DateRangeDefault=be;exports.DateRangeEnd=Pe;exports.DateRangeStart=De;exports.Divider=d;exports.Dot=m;exports.Drawer=J;exports.DrawerClose=Q;exports.Dropdown=j;exports.Field=g;exports.FieldDescription=T;exports.FieldError=_;exports.FieldGroup=p;exports.FieldLabel=N;exports.FileIcon=Z;exports.Icon=r;exports.Input=O;exports.LoadingState=u;exports.Menu=D;exports.MenuItem=P;exports.Modal=H;exports.ModalClose=v;exports.Navigation=ee;exports.NavigationItem=ne;exports.Pagination=ie;exports.PaginationFirstPage=re;exports.PaginationLastPage=Ce;exports.Popover=I;exports.PopoverClose=b;exports.Progress=E;exports.Radio=G;exports.RadioGroup=L;exports.ResizableHandle=oe;exports.ResizablePanel=te;exports.ResizablePanelGroup=ae;exports.Sidebar=se;exports.SidebarAction=ge;exports.SidebarBadge=Ne;exports.SidebarContent=le;exports.SidebarFooter=de;exports.SidebarGroup=me;exports.SidebarGroupLabel=Ee;exports.SidebarHeader=ce;exports.SidebarMenu=Ae;exports.SidebarMenuItem=ue;exports.SidebarSeparator=Te;exports.Skeleton=A;exports.SparkleSpinner=o;exports.Spinner=t;exports.Suggestion=$;exports.Switcher=Y;exports.TabContent=F;exports.TabTrigger=U;exports.Table=Be;exports.Tabs=B;exports.TabsList=M;exports.Tag=W;exports.TagClose=h;exports.Textarea=R;exports.Timeline=_e;exports.TimelineDate=Ge;exports.TimelineGroup=Se;exports.TimelineItem=pe;exports.TimelineLabel=Oe;exports.TimelineTitle=Le;exports.Toast=q;exports.Toaster=y;exports.ToggleGroup=V;exports.ToggleGroupItem=w;exports.Tooltip=k;exports.TooltipContent=f;exports.TooltipTrigger=K;exports.Well=z;exports.WellClose=X;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),a=require("@lit/react"),e=require("./anduin-table-CgbMyPrV.cjs"),t=a.createComponent({react:n,tagName:"anduin-spinner",elementClass:e.AnduinSpinner}),o=a.createComponent({react:n,tagName:"anduin-sparkle-spinner",elementClass:e.AnduinSparkleSpinner}),i=a.createComponent({react:n,tagName:"anduin-ai-spinner",elementClass:e.AnduinAiSpinner}),r=a.createComponent({react:n,tagName:"anduin-icon",elementClass:e.AnduinIcon}),C=a.createComponent({react:n,tagName:"anduin-badge",elementClass:e.AnduinBadge}),s=a.createComponent({react:n,tagName:"anduin-badge-count",elementClass:e.AnduinBadgeCount}),l=a.createComponent({react:n,tagName:"anduin-button",elementClass:e.AnduinButton}),c=a.createComponent({react:n,tagName:"anduin-callout",elementClass:e.AnduinCallout}),d=a.createComponent({react:n,tagName:"anduin-divider",elementClass:e.AnduinDivider}),m=a.createComponent({react:n,tagName:"anduin-dot",elementClass:e.AnduinDot}),E=a.createComponent({react:n,tagName:"anduin-progress",elementClass:e.AnduinProgress}),A=a.createComponent({react:n,tagName:"anduin-skeleton",elementClass:e.AnduinSkeleton}),u=a.createComponent({react:n,tagName:"anduin-loading-state",elementClass:e.AnduinLoadingState}),g=a.createComponent({react:n,tagName:"anduin-field",elementClass:e.AnduinField}),N=a.createComponent({react:n,tagName:"anduin-field-label",elementClass:e.AnduinFieldLabel}),T=a.createComponent({react:n,tagName:"anduin-field-description",elementClass:e.AnduinFieldDescription}),_=a.createComponent({react:n,tagName:"anduin-field-error",elementClass:e.AnduinFieldError}),p=a.createComponent({react:n,tagName:"anduin-field-group",elementClass:e.AnduinFieldGroup}),G=a.createComponent({react:n,tagName:"anduin-radio",elementClass:e.AnduinRadio,events:{onChange:e.RADIO_CHANGE}}),L=a.createComponent({react:n,tagName:"anduin-radio-group",elementClass:e.AnduinRadioGroup,events:{onChange:e.RADIO_GROUP_CHANGE}}),S=a.createComponent({react:n,tagName:"anduin-checkbox",elementClass:e.AnduinCheckbox,events:{onChange:e.CHECKBOX_CHANGE}}),O=a.createComponent({react:n,tagName:"anduin-input",elementClass:e.AnduinInput,events:{onChange:e.INPUT_CHANGE,onClear:e.INPUT_CLEAR}}),R=a.createComponent({react:n,tagName:"anduin-textarea",elementClass:e.AnduinTextarea,events:{onChange:e.TEXTAREA_CHANGE}}),I=a.createComponent({react:n,tagName:"anduin-popover",elementClass:e.AnduinPopover,events:{onOpenChange:e.POPOVER_OPEN_CHANGE}}),b=a.createComponent({react:n,tagName:"anduin-popover-close",elementClass:e.AnduinPopoverClose}),D=a.createComponent({react:n,tagName:"anduin-menu",elementClass:e.AnduinMenu}),P=a.createComponent({react:n,tagName:"anduin-menu-item",elementClass:e.AnduinMenuItem}),H=a.createComponent({react:n,tagName:"anduin-modal",elementClass:e.AnduinModal,events:{onClose:e.MODAL_CLOSE_EVENT,onAfterClose:e.MODAL_AFTER_CLOSE_EVENT}}),v=a.createComponent({react:n,tagName:"anduin-modal-close",elementClass:e.AnduinModalClose}),B=a.createComponent({react:n,tagName:"anduin-tabs",elementClass:e.AnduinTabs,events:{onChange:e.TAB_CHANGE}}),M=a.createComponent({react:n,tagName:"anduin-tabs-list",elementClass:e.AnduinTabsList}),U=a.createComponent({react:n,tagName:"anduin-tab-trigger",elementClass:e.AnduinTabTrigger}),F=a.createComponent({react:n,tagName:"anduin-tab-content",elementClass:e.AnduinTabContent}),W=a.createComponent({react:n,tagName:"anduin-tag",elementClass:e.AnduinTag}),h=a.createComponent({react:n,tagName:"anduin-tag-close",elementClass:e.AnduinTagClose,events:{onClick:e.TAG_CLOSE_CLICK}}),V=a.createComponent({react:n,tagName:"anduin-toggle-group",elementClass:e.AnduinToggleGroup,events:{onChange:e.TOGGLE_GROUP_CHANGE}}),w=a.createComponent({react:n,tagName:"anduin-toggle-group-item",elementClass:e.AnduinToggleGroupItem,events:{onChange:e.TOGGLE_GROUP_ITEM_CHANGE,onSelect:e.TOGGLE_GROUP_ITEM_SELECT,onDeselect:e.TOGGLE_GROUP_ITEM_DESELECT}}),k=a.createComponent({react:n,tagName:"anduin-tooltip",elementClass:e.AnduinTooltip}),K=a.createComponent({react:n,tagName:"anduin-tooltip-trigger",elementClass:e.AnduinTooltipTrigger}),f=a.createComponent({react:n,tagName:"anduin-tooltip-content",elementClass:e.AnduinTooltipContent}),z=a.createComponent({react:n,tagName:"anduin-well",elementClass:e.AnduinWell}),X=a.createComponent({react:n,tagName:"anduin-well-close",elementClass:e.AnduinWellClose,events:{onClick:e.WELL_CLOSE_CLICK}}),x=a.createComponent({react:n,tagName:"anduin-avatar",elementClass:e.AnduinAvatar}),Z=a.createComponent({react:n,tagName:"anduin-file-icon",elementClass:e.AnduinFileIcon}),q=a.createComponent({react:n,tagName:"anduin-toast",elementClass:e.AnduinToast}),y=a.createComponent({react:n,tagName:"anduin-toaster",elementClass:e.AnduinToaster}),j=a.createComponent({react:n,tagName:"anduin-dropdown",elementClass:e.AnduinDropdown,events:{onChange:e.DROPDOWN_CHANGE}}),J=a.createComponent({react:n,tagName:"anduin-drawer",elementClass:e.AnduinDrawer,events:{onClose:e.DRAWER_CLOSE_EVENT,onAfterClose:e.DRAWER_AFTER_CLOSE_EVENT}}),Q=a.createComponent({react:n,tagName:"anduin-drawer-close",elementClass:e.AnduinDrawerClose}),Y=a.createComponent({react:n,tagName:"anduin-switcher",elementClass:e.AnduinSwitcher,events:{onChange:e.SWITCHER_CHANGE}}),$=a.createComponent({react:n,tagName:"anduin-suggestion",elementClass:e.AnduinSuggestion,events:{onChange:e.SUGGESTION_CHANGE,onSelect:e.SUGGESTION_SELECT,onClear:e.SUGGESTION_CLEAR}}),ee=a.createComponent({react:n,tagName:"anduin-navigation",elementClass:e.AnduinNavigation,events:{onChange:e.NAVIGATION_CHANGE}}),ne=a.createComponent({react:n,tagName:"anduin-navigation-item",elementClass:e.AnduinNavigationItem}),ae=a.createComponent({react:n,tagName:"anduin-resizable-panel-group",elementClass:e.AnduinResizablePanelGroup}),te=a.createComponent({react:n,tagName:"anduin-resizable-panel",elementClass:e.AnduinResizablePanel}),oe=a.createComponent({react:n,tagName:"anduin-resizable-handle",elementClass:e.AnduinResizableHandle,events:{onResize:e.RESIZE_EVENT}}),ie=a.createComponent({react:n,tagName:"anduin-pagination",elementClass:e.AnduinPagination,events:{onValueChange:e.PAGINATION_CHANGE}}),re=a.createComponent({react:n,tagName:"anduin-pagination-first-page",elementClass:e.AnduinPaginationFirstPage}),Ce=a.createComponent({react:n,tagName:"anduin-pagination-last-page",elementClass:e.AnduinPaginationLastPage}),se=a.createComponent({react:n,tagName:"anduin-sidebar",elementClass:e.AnduinSidebar}),le=a.createComponent({react:n,tagName:"anduin-sidebar-content",elementClass:e.AnduinSidebarContent}),ce=a.createComponent({react:n,tagName:"anduin-sidebar-header",elementClass:e.AnduinSidebarHeader}),de=a.createComponent({react:n,tagName:"anduin-sidebar-footer",elementClass:e.AnduinSidebarFooter}),me=a.createComponent({react:n,tagName:"anduin-sidebar-group",elementClass:e.AnduinSidebarGroup}),Ee=a.createComponent({react:n,tagName:"anduin-sidebar-group-label",elementClass:e.AnduinSidebarGroupLabel}),Ae=a.createComponent({react:n,tagName:"anduin-sidebar-menu",elementClass:e.AnduinSidebarMenu}),ue=a.createComponent({react:n,tagName:"anduin-sidebar-menu-item",elementClass:e.AnduinSidebarMenuItem,events:{onSelect:e.SIDEBAR_SELECT}}),ge=a.createComponent({react:n,tagName:"anduin-sidebar-action",elementClass:e.AnduinSidebarAction}),Ne=a.createComponent({react:n,tagName:"anduin-sidebar-badge",elementClass:e.AnduinSidebarBadge}),Te=a.createComponent({react:n,tagName:"anduin-sidebar-separator",elementClass:e.AnduinSidebarSeparator}),_e=a.createComponent({react:n,tagName:"anduin-timeline",elementClass:e.AnduinTimeline}),pe=a.createComponent({react:n,tagName:"anduin-timeline-item",elementClass:e.AnduinTimelineItem}),Ge=a.createComponent({react:n,tagName:"anduin-timeline-date",elementClass:e.AnduinTimelineDate}),Le=a.createComponent({react:n,tagName:"anduin-timeline-title",elementClass:e.AnduinTimelineTitle}),Se=a.createComponent({react:n,tagName:"anduin-timeline-group",elementClass:e.AnduinTimelineGroup}),Oe=a.createComponent({react:n,tagName:"anduin-timeline-label",elementClass:e.AnduinTimelineLabel}),Re=a.createComponent({react:n,tagName:"anduin-calendar",elementClass:e.AnduinCalendar,events:{onValueChange:e.CALENDAR_CHANGE}}),Ie=a.createComponent({react:n,tagName:"anduin-date-range",elementClass:e.AnduinDateRange,events:{onChange:e.DATE_RANGE_CHANGE}}),be=a.createComponent({react:n,tagName:"anduin-date-range-default",elementClass:e.AnduinDateRangeDefault}),De=a.createComponent({react:n,tagName:"anduin-date-range-start",elementClass:e.AnduinDateRangeStart}),Pe=a.createComponent({react:n,tagName:"anduin-date-range-end",elementClass:e.AnduinDateRangeEnd}),He=a.createComponent({react:n,tagName:"anduin-date-input",elementClass:e.AnduinDateInput,events:{onValueChange:e.DATE_INPUT_CHANGE}}),ve=a.createComponent({react:n,tagName:"anduin-date-picker",elementClass:e.AnduinDatePicker,events:{onValueChange:e.DATE_PICKER_CHANGE}}),Be=a.createComponent({react:n,tagName:"anduin-table",elementClass:e.AnduinTable,events:{onSort:e.TABLE_SORT,onColumnClick:e.TABLE_COLUMN_CLICK,onRowClick:e.TABLE_ROW_CLICK,onSelectionChange:e.TABLE_SELECTION_CHANGE,onCellContextMenu:e.TABLE_CELL_CONTEXT_MENU,onRowExpand:e.TABLE_ROW_EXPAND,onRowCollapse:e.TABLE_ROW_COLLAPSE,onGroupToggle:e.TABLE_GROUP_TOGGLE,onColumnResize:e.TABLE_COLUMN_RESIZE}});exports.CALENDAR_CHANGE=e.CALENDAR_CHANGE;exports.CHECKBOX_CHANGE=e.CHECKBOX_CHANGE;exports.DATE_INPUT_CHANGE=e.DATE_INPUT_CHANGE;exports.DATE_PICKER_CHANGE=e.DATE_PICKER_CHANGE;exports.DATE_RANGE_CHANGE=e.DATE_RANGE_CHANGE;exports.DRAWER_AFTER_CLOSE_EVENT=e.DRAWER_AFTER_CLOSE_EVENT;exports.DRAWER_CLOSE_EVENT=e.DRAWER_CLOSE_EVENT;exports.DROPDOWN_CHANGE=e.DROPDOWN_CHANGE;exports.INPUT_CHANGE=e.INPUT_CHANGE;exports.INPUT_CLEAR=e.INPUT_CLEAR;exports.MENU_ITEM_CLICK=e.MENU_ITEM_CLICK;exports.MODAL_AFTER_CLOSE_EVENT=e.MODAL_AFTER_CLOSE_EVENT;exports.MODAL_CLOSE_EVENT=e.MODAL_CLOSE_EVENT;exports.NAVIGATION_CHANGE=e.NAVIGATION_CHANGE;exports.PAGINATION_CHANGE=e.PAGINATION_CHANGE;exports.POPOVER_OPEN_CHANGE=e.POPOVER_OPEN_CHANGE;exports.RADIO_CHANGE=e.RADIO_CHANGE;exports.RADIO_GROUP_CHANGE=e.RADIO_GROUP_CHANGE;exports.RESIZE_EVENT=e.RESIZE_EVENT;exports.SIDEBAR_SELECT=e.SIDEBAR_SELECT;exports.SUGGESTION_CHANGE=e.SUGGESTION_CHANGE;exports.SUGGESTION_CLEAR=e.SUGGESTION_CLEAR;exports.SUGGESTION_SELECT=e.SUGGESTION_SELECT;exports.SWITCHER_CHANGE=e.SWITCHER_CHANGE;exports.TABLE_CELL_CONTEXT_MENU=e.TABLE_CELL_CONTEXT_MENU;exports.TABLE_COLUMN_CLICK=e.TABLE_COLUMN_CLICK;exports.TABLE_COLUMN_RESIZE=e.TABLE_COLUMN_RESIZE;exports.TABLE_GROUP_TOGGLE=e.TABLE_GROUP_TOGGLE;exports.TABLE_ROW_CLICK=e.TABLE_ROW_CLICK;exports.TABLE_ROW_COLLAPSE=e.TABLE_ROW_COLLAPSE;exports.TABLE_ROW_EXPAND=e.TABLE_ROW_EXPAND;exports.TABLE_SELECTION_CHANGE=e.TABLE_SELECTION_CHANGE;exports.TABLE_SORT=e.TABLE_SORT;exports.TAB_CHANGE=e.TAB_CHANGE;exports.TAG_CLOSE_CLICK=e.TAG_CLOSE_CLICK;exports.TEXTAREA_CHANGE=e.TEXTAREA_CHANGE;exports.TOGGLE_GROUP_CHANGE=e.TOGGLE_GROUP_CHANGE;exports.TOGGLE_GROUP_ITEM_CHANGE=e.TOGGLE_GROUP_ITEM_CHANGE;exports.TOGGLE_GROUP_ITEM_DESELECT=e.TOGGLE_GROUP_ITEM_DESELECT;exports.TOGGLE_GROUP_ITEM_SELECT=e.TOGGLE_GROUP_ITEM_SELECT;exports.WELL_CLOSE_CLICK=e.WELL_CLOSE_CLICK;exports.AiSpinner=i;exports.Avatar=x;exports.Badge=C;exports.BadgeCount=s;exports.Button=l;exports.Calendar=Re;exports.Callout=c;exports.Checkbox=S;exports.DateInput=He;exports.DatePicker=ve;exports.DateRange=Ie;exports.DateRangeDefault=be;exports.DateRangeEnd=Pe;exports.DateRangeStart=De;exports.Divider=d;exports.Dot=m;exports.Drawer=J;exports.DrawerClose=Q;exports.Dropdown=j;exports.Field=g;exports.FieldDescription=T;exports.FieldError=_;exports.FieldGroup=p;exports.FieldLabel=N;exports.FileIcon=Z;exports.Icon=r;exports.Input=O;exports.LoadingState=u;exports.Menu=D;exports.MenuItem=P;exports.Modal=H;exports.ModalClose=v;exports.Navigation=ee;exports.NavigationItem=ne;exports.Pagination=ie;exports.PaginationFirstPage=re;exports.PaginationLastPage=Ce;exports.Popover=I;exports.PopoverClose=b;exports.Progress=E;exports.Radio=G;exports.RadioGroup=L;exports.ResizableHandle=oe;exports.ResizablePanel=te;exports.ResizablePanelGroup=ae;exports.Sidebar=se;exports.SidebarAction=ge;exports.SidebarBadge=Ne;exports.SidebarContent=le;exports.SidebarFooter=de;exports.SidebarGroup=me;exports.SidebarGroupLabel=Ee;exports.SidebarHeader=ce;exports.SidebarMenu=Ae;exports.SidebarMenuItem=ue;exports.SidebarSeparator=Te;exports.Skeleton=A;exports.SparkleSpinner=o;exports.Spinner=t;exports.Suggestion=$;exports.Switcher=Y;exports.TabContent=F;exports.TabTrigger=U;exports.Table=Be;exports.Tabs=B;exports.TabsList=M;exports.Tag=W;exports.TagClose=h;exports.Textarea=R;exports.Timeline=_e;exports.TimelineDate=Ge;exports.TimelineGroup=Se;exports.TimelineItem=pe;exports.TimelineLabel=Oe;exports.TimelineTitle=Le;exports.Toast=q;exports.Toaster=y;exports.ToggleGroup=V;exports.ToggleGroupItem=w;exports.Tooltip=k;exports.TooltipContent=f;exports.TooltipTrigger=K;exports.Well=z;exports.WellClose=X;
|
package/dist/react.d.ts
CHANGED
|
@@ -521,6 +521,15 @@ declare class AnduinDropdown extends LitElement {
|
|
|
521
521
|
variant: DropdownVariant;
|
|
522
522
|
size: 'small' | 'default';
|
|
523
523
|
fullWidth: boolean;
|
|
524
|
+
/**
|
|
525
|
+
* Offer a × on the trigger that clears the value (dispatching
|
|
526
|
+
* `anduin-dropdown:change` with `detail: ''`). On by default, as it always was.
|
|
527
|
+
* Turn it off for a dropdown whose value is mandatory — a sort order — with
|
|
528
|
+
* `clearable="false"` or the `clearable = false` property. A plain Lit boolean
|
|
529
|
+
* could not be turned off from HTML (any present attribute reads true), so this
|
|
530
|
+
* follows `anduin-table`'s `resizable-columns`: only the string "false" is false.
|
|
531
|
+
*/
|
|
532
|
+
clearable: boolean;
|
|
524
533
|
private _open;
|
|
525
534
|
private _query;
|
|
526
535
|
private _triggerEl;
|
package/dist/react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "react";
|
|
2
2
|
import { createComponent as e } from "@lit/react";
|
|
3
|
-
import { a5 as n, a4 as t, A as s, z as i, b as l, c as o, d, f as r, o as u, p as m, O as c, a3 as g, C, t as A, x as N, u as E, v as T, w as b, aT as p, P as _, aU as S, Q as G, ay as L, g as R, aJ as I, aI as D, B as v, bc as O, af as P, aS as h, M as H, N as M, D as B, E as f, aL as w, aM as F, F as k, G as U, b8 as W, ab as z, ac as V, a9 as x, a8 as K, ad as X, bb as Z, ae as j, bd as q, ao as y, bg as J, bh as Y, be as $, ap as Q, aq as aa, as as ea, ar as na, at as ta, bo as sa, au as ia, a as la, y as oa, am as da, an as ra, aE as ua, s as ma, aC as ca, aD as ga, q as Ca, r as Aa, a_ as Na, a7 as Ea, aY as Ta, aZ as ba, aX as pa, a6 as _a, aN as Sa, H as Ga, I as La, T as Ra, S as Ia, aV as Da, R as va, aP as Oa, J as Pa, K as ha, L as Ha, U as Ma, X as Ba, $ as fa, Y as wa, Z as Fa, _ as ka, a0 as Ua, aW as Wa, a1 as za, V as Va, W as xa, a2 as Ka, ag as Xa, aj as Za, ah as ja, al as qa, ai as ya, ak as Ja, aw as Ya, e as $a, aB as Qa, j as ae, k as ee, n as ne, l as te, az as se, h as ie, aA as le, i as oe, b1 as de, b2 as re, b4 as ue, b5 as me, a$ as ce, b6 as ge, b3 as Ce, b0 as Ae, b7 as Ne, aa as Ee } from "./anduin-table-
|
|
4
|
-
import { aK as at } from "./anduin-table-
|
|
3
|
+
import { a5 as n, a4 as t, A as s, z as i, b as l, c as o, d, f as r, o as u, p as m, O as c, a3 as g, C, t as A, x as N, u as E, v as T, w as b, aT as p, P as _, aU as S, Q as G, ay as L, g as R, aJ as I, aI as D, B as v, bc as O, af as P, aS as h, M as H, N as M, D as B, E as f, aL as w, aM as F, F as k, G as U, b8 as W, ab as z, ac as V, a9 as x, a8 as K, ad as X, bb as Z, ae as j, bd as q, ao as y, bg as J, bh as Y, be as $, ap as Q, aq as aa, as as ea, ar as na, at as ta, bo as sa, au as ia, a as la, y as oa, am as da, an as ra, aE as ua, s as ma, aC as ca, aD as ga, q as Ca, r as Aa, a_ as Na, a7 as Ea, aY as Ta, aZ as ba, aX as pa, a6 as _a, aN as Sa, H as Ga, I as La, T as Ra, S as Ia, aV as Da, R as va, aP as Oa, J as Pa, K as ha, L as Ha, U as Ma, X as Ba, $ as fa, Y as wa, Z as Fa, _ as ka, a0 as Ua, aW as Wa, a1 as za, V as Va, W as xa, a2 as Ka, ag as Xa, aj as Za, ah as ja, al as qa, ai as ya, ak as Ja, aw as Ya, e as $a, aB as Qa, j as ae, k as ee, n as ne, l as te, az as se, h as ie, aA as le, i as oe, b1 as de, b2 as re, b4 as ue, b5 as me, a$ as ce, b6 as ge, b3 as Ce, b0 as Ae, b7 as Ne, aa as Ee } from "./anduin-table-DGYmi5iv.js";
|
|
4
|
+
import { aK as at } from "./anduin-table-DGYmi5iv.js";
|
|
5
5
|
const _e = e({ react: a, tagName: "anduin-spinner", elementClass: n }), Se = e({ react: a, tagName: "anduin-sparkle-spinner", elementClass: t }), Ge = e({ react: a, tagName: "anduin-ai-spinner", elementClass: s }), Le = e({ react: a, tagName: "anduin-icon", elementClass: i }), Re = e({ react: a, tagName: "anduin-badge", elementClass: l }), Ie = e({ react: a, tagName: "anduin-badge-count", elementClass: o }), De = e({ react: a, tagName: "anduin-button", elementClass: d }), ve = e({ react: a, tagName: "anduin-callout", elementClass: r }), Oe = e({ react: a, tagName: "anduin-divider", elementClass: u }), Pe = e({ react: a, tagName: "anduin-dot", elementClass: m }), he = e({ react: a, tagName: "anduin-progress", elementClass: c }), He = e({ react: a, tagName: "anduin-skeleton", elementClass: g }), Me = e({ react: a, tagName: "anduin-loading-state", elementClass: C }), Be = e({ react: a, tagName: "anduin-field", elementClass: A }), fe = e({ react: a, tagName: "anduin-field-label", elementClass: N }), we = e({ react: a, tagName: "anduin-field-description", elementClass: E }), Fe = e({ react: a, tagName: "anduin-field-error", elementClass: T }), ke = e({ react: a, tagName: "anduin-field-group", elementClass: b }), Ue = e({
|
|
6
6
|
react: a,
|
|
7
7
|
tagName: "anduin-radio",
|