@duyluonganduin/acl-web-components 0.0.67 → 0.0.69
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 +243 -4
- package/dist/acl-web-components.iife.js +487 -290
- package/dist/acl-web-components.js +111 -104
- package/dist/{anduin-table-CYE2vNGN.cjs → anduin-table-CNwdR3yo.cjs} +416 -219
- package/dist/{anduin-table-Cqv_JQvT.js → anduin-table-CbHX7iBE.js} +2910 -2232
- package/dist/jsx.d.ts +23 -0
- package/dist/react.cjs +1 -1
- package/dist/react.d.ts +255 -4
- package/dist/react.js +222 -204
- package/package.json +1 -1
package/dist/jsx.d.ts
CHANGED
|
@@ -319,6 +319,29 @@ declare module 'react' {
|
|
|
319
319
|
// ── anduin-tag-close ──────────────────────────────────────────────────
|
|
320
320
|
'anduin-tag-close': Base
|
|
321
321
|
|
|
322
|
+
// ── anduin-tags-input ─────────────────────────────────────────────────
|
|
323
|
+
'anduin-tags-input': Base & {
|
|
324
|
+
/** Controlled list as a JSON array attribute; prefer the `value` property / TagsInput wrapper */
|
|
325
|
+
value?: string
|
|
326
|
+
/** Uncontrolled starting list as a JSON array attribute */
|
|
327
|
+
'default-value'?: string
|
|
328
|
+
/** Every character is a delimiter, e.g. "," or ",;" (default: none; Enter always commits) */
|
|
329
|
+
delimiters?: string
|
|
330
|
+
/** Commit pending text when focus leaves the control */
|
|
331
|
+
'add-on-blur'?: boolean
|
|
332
|
+
/** Tab with pending text commits instead of moving focus */
|
|
333
|
+
'add-on-tab'?: boolean
|
|
334
|
+
/** JSON map from tag text to { variant?, tooltip?, label?, disabled? } */
|
|
335
|
+
'tag-meta'?: string
|
|
336
|
+
disabled?: boolean
|
|
337
|
+
readonly?: boolean
|
|
338
|
+
}
|
|
339
|
+
'anduin-tags-input-list': Base
|
|
340
|
+
'anduin-tags-input-input': Base & {
|
|
341
|
+
placeholder?: string
|
|
342
|
+
}
|
|
343
|
+
'anduin-tags-input-clear': Base
|
|
344
|
+
|
|
322
345
|
// ── anduin-toggle-group ───────────────────────────────────────────────
|
|
323
346
|
'anduin-toggle-group': Base & {
|
|
324
347
|
/** 'single' | 'multiple' (default: 'single') */
|
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-CYE2vNGN.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}),l=a.createComponent({react:n,tagName:"anduin-badge-count",elementClass:e.AnduinBadgeCount}),s=a.createComponent({react:n,tagName:"anduin-button",elementClass:e.AnduinButton}),d=a.createComponent({react:n,tagName:"anduin-callout",elementClass:e.AnduinCallout}),c=a.createComponent({react:n,tagName:"anduin-divider",elementClass:e.AnduinDivider}),E=a.createComponent({react:n,tagName:"anduin-dot",elementClass:e.AnduinDot}),m=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}),N=a.createComponent({react:n,tagName:"anduin-field",elementClass:e.AnduinField}),g=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-inline-edit",elementClass:e.AnduinInlineEdit,events:{onSave:e.INLINE_EDIT_SAVE,onCancel:e.INLINE_EDIT_CANCEL,onEdit:e.INLINE_EDIT_EDIT}}),b=a.createComponent({react:n,tagName:"anduin-popover",elementClass:e.AnduinPopover,events:{onOpenChange:e.POPOVER_OPEN_CHANGE}}),D=a.createComponent({react:n,tagName:"anduin-popover-close",elementClass:e.AnduinPopoverClose}),P=a.createComponent({react:n,tagName:"anduin-menu",elementClass:e.AnduinMenu}),H=a.createComponent({react:n,tagName:"anduin-menu-item",elementClass:e.AnduinMenuItem}),v=a.createComponent({react:n,tagName:"anduin-modal",elementClass:e.AnduinModal,events:{onClose:e.MODAL_CLOSE_EVENT,onAfterClose:e.MODAL_AFTER_CLOSE_EVENT}}),B=a.createComponent({react:n,tagName:"anduin-modal-close",elementClass:e.AnduinModalClose}),M=a.createComponent({react:n,tagName:"anduin-tabs",elementClass:e.AnduinTabs,events:{onChange:e.TAB_CHANGE}}),U=a.createComponent({react:n,tagName:"anduin-tabs-list",elementClass:e.AnduinTabsList}),F=a.createComponent({react:n,tagName:"anduin-tab-trigger",elementClass:e.AnduinTabTrigger}),W=a.createComponent({react:n,tagName:"anduin-tab-content",elementClass:e.AnduinTabContent}),h=a.createComponent({react:n,tagName:"anduin-tag",elementClass:e.AnduinTag}),V=a.createComponent({react:n,tagName:"anduin-tag-close",elementClass:e.AnduinTagClose,events:{onClick:e.TAG_CLOSE_CLICK}}),w=a.createComponent({react:n,tagName:"anduin-toggle-group",elementClass:e.AnduinToggleGroup,events:{onChange:e.TOGGLE_GROUP_CHANGE}}),k=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}),f=a.createComponent({react:n,tagName:"anduin-tooltip-trigger",elementClass:e.AnduinTooltipTrigger}),z=a.createComponent({react:n,tagName:"anduin-tooltip-content",elementClass:e.AnduinTooltipContent}),X=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}}),Z=a.createComponent({react:n,tagName:"anduin-avatar",elementClass:e.AnduinAvatar}),q=a.createComponent({react:n,tagName:"anduin-file-icon",elementClass:e.AnduinFileIcon}),y=a.createComponent({react:n,tagName:"anduin-toast",elementClass:e.AnduinToast}),j=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}}),Q=a.createComponent({react:n,tagName:"anduin-drawer",elementClass:e.AnduinDrawer,events:{onClose:e.DRAWER_CLOSE_EVENT,onAfterClose:e.DRAWER_AFTER_CLOSE_EVENT}}),Y=a.createComponent({react:n,tagName:"anduin-drawer-close",elementClass:e.AnduinDrawerClose}),$=a.createComponent({react:n,tagName:"anduin-switcher",elementClass:e.AnduinSwitcher,events:{onChange:e.SWITCHER_CHANGE}}),ee=a.createComponent({react:n,tagName:"anduin-suggestion",elementClass:e.AnduinSuggestion,events:{onChange:e.SUGGESTION_CHANGE,onSelect:e.SUGGESTION_SELECT,onClear:e.SUGGESTION_CLEAR}}),ne=a.createComponent({react:n,tagName:"anduin-navigation",elementClass:e.AnduinNavigation,events:{onChange:e.NAVIGATION_CHANGE}}),ae=a.createComponent({react:n,tagName:"anduin-navigation-item",elementClass:e.AnduinNavigationItem}),te=a.createComponent({react:n,tagName:"anduin-resizable-panel-group",elementClass:e.AnduinResizablePanelGroup}),oe=a.createComponent({react:n,tagName:"anduin-resizable-panel",elementClass:e.AnduinResizablePanel}),ie=a.createComponent({react:n,tagName:"anduin-resizable-handle",elementClass:e.AnduinResizableHandle,events:{onResize:e.RESIZE_EVENT}}),re=a.createComponent({react:n,tagName:"anduin-pagination",elementClass:e.AnduinPagination,events:{onValueChange:e.PAGINATION_CHANGE}}),Ce=a.createComponent({react:n,tagName:"anduin-pagination-first-page",elementClass:e.AnduinPaginationFirstPage}),le=a.createComponent({react:n,tagName:"anduin-pagination-last-page",elementClass:e.AnduinPaginationLastPage}),se=a.createComponent({react:n,tagName:"anduin-sidebar",elementClass:e.AnduinSidebar}),de=a.createComponent({react:n,tagName:"anduin-sidebar-content",elementClass:e.AnduinSidebarContent}),ce=a.createComponent({react:n,tagName:"anduin-sidebar-header",elementClass:e.AnduinSidebarHeader}),Ee=a.createComponent({react:n,tagName:"anduin-sidebar-footer",elementClass:e.AnduinSidebarFooter}),me=a.createComponent({react:n,tagName:"anduin-sidebar-group",elementClass:e.AnduinSidebarGroup}),Ae=a.createComponent({react:n,tagName:"anduin-sidebar-group-label",elementClass:e.AnduinSidebarGroupLabel}),ue=a.createComponent({react:n,tagName:"anduin-sidebar-menu",elementClass:e.AnduinSidebarMenu}),Ne=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}),Te=a.createComponent({react:n,tagName:"anduin-sidebar-badge",elementClass:e.AnduinSidebarBadge}),_e=a.createComponent({react:n,tagName:"anduin-sidebar-separator",elementClass:e.AnduinSidebarSeparator}),pe=a.createComponent({react:n,tagName:"anduin-timeline",elementClass:e.AnduinTimeline}),Ge=a.createComponent({react:n,tagName:"anduin-timeline-item",elementClass:e.AnduinTimelineItem}),Le=a.createComponent({react:n,tagName:"anduin-timeline-date",elementClass:e.AnduinTimelineDate}),Se=a.createComponent({react:n,tagName:"anduin-timeline-title",elementClass:e.AnduinTimelineTitle}),Oe=a.createComponent({react:n,tagName:"anduin-timeline-group",elementClass:e.AnduinTimelineGroup}),Re=a.createComponent({react:n,tagName:"anduin-timeline-label",elementClass:e.AnduinTimelineLabel}),Ie=a.createComponent({react:n,tagName:"anduin-calendar",elementClass:e.AnduinCalendar,events:{onValueChange:e.CALENDAR_CHANGE}}),be=a.createComponent({react:n,tagName:"anduin-date-range",elementClass:e.AnduinDateRange,events:{onChange:e.DATE_RANGE_CHANGE}}),De=a.createComponent({react:n,tagName:"anduin-date-range-default",elementClass:e.AnduinDateRangeDefault}),Pe=a.createComponent({react:n,tagName:"anduin-date-range-start",elementClass:e.AnduinDateRangeStart}),He=a.createComponent({react:n,tagName:"anduin-date-range-end",elementClass:e.AnduinDateRangeEnd}),ve=a.createComponent({react:n,tagName:"anduin-date-input",elementClass:e.AnduinDateInput,events:{onValueChange:e.DATE_INPUT_CHANGE}}),Be=a.createComponent({react:n,tagName:"anduin-date-picker",elementClass:e.AnduinDatePicker,events:{onValueChange:e.DATE_PICKER_CHANGE}}),Me=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=Z;exports.Badge=C;exports.BadgeCount=l;exports.Button=s;exports.Calendar=Ie;exports.Callout=d;exports.Checkbox=S;exports.DateInput=ve;exports.DatePicker=Be;exports.DateRange=be;exports.DateRangeDefault=De;exports.DateRangeEnd=He;exports.DateRangeStart=Pe;exports.Divider=c;exports.Dot=E;exports.Drawer=Q;exports.DrawerClose=Y;exports.Dropdown=J;exports.Field=N;exports.FieldDescription=T;exports.FieldError=_;exports.FieldGroup=p;exports.FieldLabel=g;exports.FileIcon=q;exports.Icon=r;exports.InlineEdit=I;exports.Input=O;exports.LoadingState=u;exports.Menu=P;exports.MenuItem=H;exports.Modal=v;exports.ModalClose=B;exports.Navigation=ne;exports.NavigationItem=ae;exports.Pagination=re;exports.PaginationFirstPage=Ce;exports.PaginationLastPage=le;exports.Popover=b;exports.PopoverClose=D;exports.Progress=m;exports.Radio=G;exports.RadioGroup=L;exports.ResizableHandle=ie;exports.ResizablePanel=oe;exports.ResizablePanelGroup=te;exports.Sidebar=se;exports.SidebarAction=ge;exports.SidebarBadge=Te;exports.SidebarContent=de;exports.SidebarFooter=Ee;exports.SidebarGroup=me;exports.SidebarGroupLabel=Ae;exports.SidebarHeader=ce;exports.SidebarMenu=ue;exports.SidebarMenuItem=Ne;exports.SidebarSeparator=_e;exports.Skeleton=A;exports.SparkleSpinner=o;exports.Spinner=t;exports.Suggestion=ee;exports.Switcher=$;exports.TabContent=W;exports.TabTrigger=F;exports.Table=Me;exports.Tabs=M;exports.TabsList=U;exports.Tag=h;exports.TagClose=V;exports.Textarea=R;exports.Timeline=pe;exports.TimelineDate=Le;exports.TimelineGroup=Oe;exports.TimelineItem=Ge;exports.TimelineLabel=Re;exports.TimelineTitle=Se;exports.Toast=y;exports.Toaster=j;exports.ToggleGroup=w;exports.ToggleGroupItem=k;exports.Tooltip=K;exports.TooltipContent=z;exports.TooltipTrigger=f;exports.Well=X;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-CNwdR3yo.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}),s=a.createComponent({react:n,tagName:"anduin-icon",elementClass:e.AnduinIcon}),r=a.createComponent({react:n,tagName:"anduin-badge",elementClass:e.AnduinBadge}),C=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}),u=a.createComponent({react:n,tagName:"anduin-skeleton",elementClass:e.AnduinSkeleton}),A=a.createComponent({react:n,tagName:"anduin-loading-state",elementClass:e.AnduinLoadingState}),T=a.createComponent({react:n,tagName:"anduin-field",elementClass:e.AnduinField}),g=a.createComponent({react:n,tagName:"anduin-field-label",elementClass:e.AnduinFieldLabel}),N=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}}),I=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}}),O=a.createComponent({react:n,tagName:"anduin-inline-edit",elementClass:e.AnduinInlineEdit,events:{onSave:e.INLINE_EDIT_SAVE,onCancel:e.INLINE_EDIT_CANCEL,onEdit:e.INLINE_EDIT_EDIT}}),b=a.createComponent({react:n,tagName:"anduin-popover",elementClass:e.AnduinPopover,events:{onOpenChange:e.POPOVER_OPEN_CHANGE}}),P=a.createComponent({react:n,tagName:"anduin-popover-close",elementClass:e.AnduinPopoverClose}),D=a.createComponent({react:n,tagName:"anduin-menu",elementClass:e.AnduinMenu}),H=a.createComponent({react:n,tagName:"anduin-menu-item",elementClass:e.AnduinMenuItem}),U=a.createComponent({react:n,tagName:"anduin-modal",elementClass:e.AnduinModal,events:{onClose:e.MODAL_CLOSE_EVENT,onAfterClose:e.MODAL_AFTER_CLOSE_EVENT}}),B=a.createComponent({react:n,tagName:"anduin-modal-close",elementClass:e.AnduinModalClose}),v=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}),h=a.createComponent({react:n,tagName:"anduin-tab-trigger",elementClass:e.AnduinTabTrigger}),F=a.createComponent({react:n,tagName:"anduin-tab-content",elementClass:e.AnduinTabContent}),V=a.createComponent({react:n,tagName:"anduin-tag",elementClass:e.AnduinTag}),W=a.createComponent({react:n,tagName:"anduin-tag-close",elementClass:e.AnduinTagClose,events:{onClick:e.TAG_CLOSE_CLICK}}),w=a.createComponent({react:n,tagName:"anduin-tags-input",elementClass:e.AnduinTagsInput,events:{onValueChange:e.TAGS_INPUT_VALUE_CHANGE,onBlur:e.TAGS_INPUT_BLUR,onSubmit:e.TAGS_INPUT_SUBMIT}}),k=a.createComponent({react:n,tagName:"anduin-tags-input-list",elementClass:e.AnduinTagsInputList}),K=a.createComponent({react:n,tagName:"anduin-tags-input-input",elementClass:e.AnduinTagsInputInput}),f=a.createComponent({react:n,tagName:"anduin-tags-input-clear",elementClass:e.AnduinTagsInputClear}),z=a.createComponent({react:n,tagName:"anduin-toggle-group",elementClass:e.AnduinToggleGroup,events:{onChange:e.TOGGLE_GROUP_CHANGE}}),X=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}}),x=a.createComponent({react:n,tagName:"anduin-tooltip",elementClass:e.AnduinTooltip}),Z=a.createComponent({react:n,tagName:"anduin-tooltip-trigger",elementClass:e.AnduinTooltipTrigger}),q=a.createComponent({react:n,tagName:"anduin-tooltip-content",elementClass:e.AnduinTooltipContent}),y=a.createComponent({react:n,tagName:"anduin-well",elementClass:e.AnduinWell}),j=a.createComponent({react:n,tagName:"anduin-well-close",elementClass:e.AnduinWellClose,events:{onClick:e.WELL_CLOSE_CLICK}}),J=a.createComponent({react:n,tagName:"anduin-avatar",elementClass:e.AnduinAvatar}),Q=a.createComponent({react:n,tagName:"anduin-file-icon",elementClass:e.AnduinFileIcon}),Y=a.createComponent({react:n,tagName:"anduin-toast",elementClass:e.AnduinToast}),$=a.createComponent({react:n,tagName:"anduin-toaster",elementClass:e.AnduinToaster}),ee=a.createComponent({react:n,tagName:"anduin-dropdown",elementClass:e.AnduinDropdown,events:{onChange:e.DROPDOWN_CHANGE}}),ne=a.createComponent({react:n,tagName:"anduin-drawer",elementClass:e.AnduinDrawer,events:{onClose:e.DRAWER_CLOSE_EVENT,onAfterClose:e.DRAWER_AFTER_CLOSE_EVENT}}),ae=a.createComponent({react:n,tagName:"anduin-drawer-close",elementClass:e.AnduinDrawerClose}),te=a.createComponent({react:n,tagName:"anduin-switcher",elementClass:e.AnduinSwitcher,events:{onChange:e.SWITCHER_CHANGE}}),oe=a.createComponent({react:n,tagName:"anduin-suggestion",elementClass:e.AnduinSuggestion,events:{onChange:e.SUGGESTION_CHANGE,onSelect:e.SUGGESTION_SELECT,onClear:e.SUGGESTION_CLEAR}}),ie=a.createComponent({react:n,tagName:"anduin-navigation",elementClass:e.AnduinNavigation,events:{onChange:e.NAVIGATION_CHANGE}}),se=a.createComponent({react:n,tagName:"anduin-navigation-item",elementClass:e.AnduinNavigationItem}),re=a.createComponent({react:n,tagName:"anduin-resizable-panel-group",elementClass:e.AnduinResizablePanelGroup}),Ce=a.createComponent({react:n,tagName:"anduin-resizable-panel",elementClass:e.AnduinResizablePanel}),le=a.createComponent({react:n,tagName:"anduin-resizable-handle",elementClass:e.AnduinResizableHandle,events:{onResize:e.RESIZE_EVENT}}),ce=a.createComponent({react:n,tagName:"anduin-pagination",elementClass:e.AnduinPagination,events:{onValueChange:e.PAGINATION_CHANGE}}),de=a.createComponent({react:n,tagName:"anduin-pagination-first-page",elementClass:e.AnduinPaginationFirstPage}),me=a.createComponent({react:n,tagName:"anduin-pagination-last-page",elementClass:e.AnduinPaginationLastPage}),Ee=a.createComponent({react:n,tagName:"anduin-sidebar",elementClass:e.AnduinSidebar}),ue=a.createComponent({react:n,tagName:"anduin-sidebar-content",elementClass:e.AnduinSidebarContent}),Ae=a.createComponent({react:n,tagName:"anduin-sidebar-header",elementClass:e.AnduinSidebarHeader}),Te=a.createComponent({react:n,tagName:"anduin-sidebar-footer",elementClass:e.AnduinSidebarFooter}),ge=a.createComponent({react:n,tagName:"anduin-sidebar-group",elementClass:e.AnduinSidebarGroup}),Ne=a.createComponent({react:n,tagName:"anduin-sidebar-group-label",elementClass:e.AnduinSidebarGroupLabel}),_e=a.createComponent({react:n,tagName:"anduin-sidebar-menu",elementClass:e.AnduinSidebarMenu}),pe=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}),Le=a.createComponent({react:n,tagName:"anduin-sidebar-badge",elementClass:e.AnduinSidebarBadge}),Se=a.createComponent({react:n,tagName:"anduin-sidebar-separator",elementClass:e.AnduinSidebarSeparator}),Ie=a.createComponent({react:n,tagName:"anduin-timeline",elementClass:e.AnduinTimeline}),Re=a.createComponent({react:n,tagName:"anduin-timeline-item",elementClass:e.AnduinTimelineItem}),Oe=a.createComponent({react:n,tagName:"anduin-timeline-date",elementClass:e.AnduinTimelineDate}),be=a.createComponent({react:n,tagName:"anduin-timeline-title",elementClass:e.AnduinTimelineTitle}),Pe=a.createComponent({react:n,tagName:"anduin-timeline-group",elementClass:e.AnduinTimelineGroup}),De=a.createComponent({react:n,tagName:"anduin-timeline-label",elementClass:e.AnduinTimelineLabel}),He=a.createComponent({react:n,tagName:"anduin-calendar",elementClass:e.AnduinCalendar,events:{onValueChange:e.CALENDAR_CHANGE}}),Ue=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}),ve=a.createComponent({react:n,tagName:"anduin-date-range-start",elementClass:e.AnduinDateRangeStart}),Me=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}}),Fe=a.createComponent({react:n,tagName:"anduin-date-picker",elementClass:e.AnduinDatePicker,events:{onValueChange:e.DATE_PICKER_CHANGE}}),Ve=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.TAGS_INPUT_BLUR=e.TAGS_INPUT_BLUR;exports.TAGS_INPUT_SUBMIT=e.TAGS_INPUT_SUBMIT;exports.TAGS_INPUT_VALUE_CHANGE=e.TAGS_INPUT_VALUE_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=J;exports.Badge=r;exports.BadgeCount=C;exports.Button=l;exports.Calendar=He;exports.Callout=c;exports.Checkbox=S;exports.DateInput=he;exports.DatePicker=Fe;exports.DateRange=Ue;exports.DateRangeDefault=Be;exports.DateRangeEnd=Me;exports.DateRangeStart=ve;exports.Divider=d;exports.Dot=m;exports.Drawer=ne;exports.DrawerClose=ae;exports.Dropdown=ee;exports.Field=T;exports.FieldDescription=N;exports.FieldError=_;exports.FieldGroup=p;exports.FieldLabel=g;exports.FileIcon=Q;exports.Icon=s;exports.InlineEdit=O;exports.Input=I;exports.LoadingState=A;exports.Menu=D;exports.MenuItem=H;exports.Modal=U;exports.ModalClose=B;exports.Navigation=ie;exports.NavigationItem=se;exports.Pagination=ce;exports.PaginationFirstPage=de;exports.PaginationLastPage=me;exports.Popover=b;exports.PopoverClose=P;exports.Progress=E;exports.Radio=G;exports.RadioGroup=L;exports.ResizableHandle=le;exports.ResizablePanel=Ce;exports.ResizablePanelGroup=re;exports.Sidebar=Ee;exports.SidebarAction=Ge;exports.SidebarBadge=Le;exports.SidebarContent=ue;exports.SidebarFooter=Te;exports.SidebarGroup=ge;exports.SidebarGroupLabel=Ne;exports.SidebarHeader=Ae;exports.SidebarMenu=_e;exports.SidebarMenuItem=pe;exports.SidebarSeparator=Se;exports.Skeleton=u;exports.SparkleSpinner=o;exports.Spinner=t;exports.Suggestion=oe;exports.Switcher=te;exports.TabContent=F;exports.TabTrigger=h;exports.Table=Ve;exports.Tabs=v;exports.TabsList=M;exports.Tag=V;exports.TagClose=W;exports.TagsInput=w;exports.TagsInputClear=f;exports.TagsInputInput=K;exports.TagsInputList=k;exports.Textarea=R;exports.Timeline=Ie;exports.TimelineDate=Oe;exports.TimelineGroup=Pe;exports.TimelineItem=Re;exports.TimelineLabel=De;exports.TimelineTitle=be;exports.Toast=Y;exports.Toaster=$;exports.ToggleGroup=z;exports.ToggleGroupItem=X;exports.Tooltip=x;exports.TooltipContent=q;exports.TooltipTrigger=Z;exports.Well=y;exports.WellClose=j;
|
package/dist/react.d.ts
CHANGED
|
@@ -755,7 +755,11 @@ declare class AnduinInput extends LitElement {
|
|
|
755
755
|
* managers read this, and the inner input is where they look.
|
|
756
756
|
*/
|
|
757
757
|
autocomplete: string;
|
|
758
|
-
/**
|
|
758
|
+
/**
|
|
759
|
+
* Set as the inner `<input>`'s `name` when non-empty. Like `autocomplete`,
|
|
760
|
+
* `placeholder`, `inputid`, `disabled` and `readonly`, it is also written
|
|
761
|
+
* onto a slotted input, but never over an attribute the consumer set there.
|
|
762
|
+
*/
|
|
759
763
|
name: string;
|
|
760
764
|
/**
|
|
761
765
|
* With `type="password"`, adds a button at the end that shows and hides
|
|
@@ -764,10 +768,67 @@ declare class AnduinInput extends LitElement {
|
|
|
764
768
|
revealable: boolean;
|
|
765
769
|
/** Whether a revealable password is currently shown as text. */
|
|
766
770
|
private _revealed;
|
|
767
|
-
|
|
771
|
+
/**
|
|
772
|
+
* The consumer's `<input slot="input">`, when there is one. It replaces the
|
|
773
|
+
* inner `<input>` entirely — see `_setSlotted` for why a field would want to
|
|
774
|
+
* live in the light DOM.
|
|
775
|
+
*/
|
|
776
|
+
private _slotted;
|
|
777
|
+
/**
|
|
778
|
+
* The slotted input's own `type` as the consumer wrote it, read when it is
|
|
779
|
+
* slotted. Used when the host's `type` is left at `text`, so
|
|
780
|
+
* `<input slot="input" type="password">` alone still gets the reveal button.
|
|
781
|
+
*/
|
|
782
|
+
private _slottedType;
|
|
783
|
+
/** The slotted input's `type` attribute exactly as it arrived (or null), restored on release. */
|
|
784
|
+
private _slottedTypeAttr;
|
|
785
|
+
/** Set on adoption: the next update writes every host prop, not just the changed ones. */
|
|
786
|
+
private _slottedFresh;
|
|
787
|
+
/**
|
|
788
|
+
* Attribute values this element last wrote onto the slotted input. An
|
|
789
|
+
* attribute whose current value is not the one recorded here was set by the
|
|
790
|
+
* consumer, and is never overwritten or removed.
|
|
791
|
+
*/
|
|
792
|
+
private _written;
|
|
793
|
+
private _innerInput?;
|
|
794
|
+
/** The `<input>` everything acts on: the slotted one if present, else the inner one. */
|
|
795
|
+
private get inputEl();
|
|
796
|
+
private _onSlottedInput;
|
|
797
|
+
/**
|
|
798
|
+
* Some autofill paths report a fill as `change` alone, with no `input`
|
|
799
|
+
* event. Treat a `change` whose value we have not seen as an input, so the
|
|
800
|
+
* host's value (and the next re-render) does not silently undo the fill.
|
|
801
|
+
*/
|
|
802
|
+
private _onSlottedChange;
|
|
803
|
+
private _findSlotted;
|
|
804
|
+
/**
|
|
805
|
+
* Adopts (or lets go of) a consumer's native `<input slot="input">`.
|
|
806
|
+
*
|
|
807
|
+
* The reason this exists: the inner `<input>` lives in a shadow root, and
|
|
808
|
+
* Safari's AutoFill (iCloud Keychain) — and other password managers to
|
|
809
|
+
* varying degrees — do not reliably find, fill, save or suggest passwords
|
|
810
|
+
* for a field there. They look for a light-DOM input, ideally inside a
|
|
811
|
+
* <form> next to a username field. `type`, `autocomplete` and `name` (0.0.67)
|
|
812
|
+
* reach the inner input but cannot fix that, so a sign-in form slots its own.
|
|
813
|
+
*
|
|
814
|
+
* On adoption the value is reconciled once: a non-empty host value wins (it
|
|
815
|
+
* is what a controlled React `value` says), otherwise the input's own value —
|
|
816
|
+
* typed before upgrade, or already autofilled — becomes the host's, quietly.
|
|
817
|
+
*/
|
|
818
|
+
private _setSlotted;
|
|
819
|
+
private onSlotChange;
|
|
820
|
+
/** The type the field has when not revealed. */
|
|
821
|
+
private get _baseType();
|
|
822
|
+
/**
|
|
823
|
+
* Writes a host prop onto the slotted input as an attribute: only when the
|
|
824
|
+
* prop is non-empty (or `true`), and never over an attribute the consumer
|
|
825
|
+
* set. Clearing a prop removes only an attribute this element wrote.
|
|
826
|
+
*/
|
|
827
|
+
private _writeAttr;
|
|
828
|
+
private _syncSlotted;
|
|
768
829
|
connectedCallback(): void;
|
|
769
830
|
willUpdate(changed: Map<PropertyKey, unknown>): void;
|
|
770
|
-
updated(): void;
|
|
831
|
+
updated(changed: Map<PropertyKey, unknown>): void;
|
|
771
832
|
/**
|
|
772
833
|
* Runs `fn` against the inner `<input>` now, or once the first render has
|
|
773
834
|
* made it. A wrapper's ref is live before Lit's first render (a microtask
|
|
@@ -810,7 +871,9 @@ declare class AnduinInput extends LitElement {
|
|
|
810
871
|
*
|
|
811
872
|
* Restored only while the input still has focus: an unfocused
|
|
812
873
|
* `setSelectionRange` can pull focus in some engines, and a keyboard user
|
|
813
|
-
* pressing the button is sitting on the button, not the input.
|
|
874
|
+
* pressing the button is sitting on the button, not the input. "Has focus"
|
|
875
|
+
* is asked of the input's own root: the shadow root for the inner input,
|
|
876
|
+
* the document (or an enclosing shadow root) for a slotted one.
|
|
814
877
|
*/
|
|
815
878
|
private onRevealToggle;
|
|
816
879
|
render(): TemplateResult<1>;
|
|
@@ -1627,6 +1690,133 @@ declare class AnduinTagClose extends LitElement {
|
|
|
1627
1690
|
render(): TemplateResult<1>;
|
|
1628
1691
|
}
|
|
1629
1692
|
|
|
1693
|
+
declare class AnduinTagsInput extends LitElement {
|
|
1694
|
+
static styles: CSSResult;
|
|
1695
|
+
/**
|
|
1696
|
+
* Controlled list. While set (not null/undefined) the component never
|
|
1697
|
+
* changes the list itself: it dispatches the proposed list in
|
|
1698
|
+
* `anduin-tags-input:value-change` and draws whatever `value` says.
|
|
1699
|
+
* As an attribute, a JSON array: `value='["a@x.com"]'`.
|
|
1700
|
+
*/
|
|
1701
|
+
value: string[] | null | undefined;
|
|
1702
|
+
/**
|
|
1703
|
+
* Uncontrolled list: the starting tags, and then the live list — every
|
|
1704
|
+
* change the user makes is written back here before value-change fires.
|
|
1705
|
+
* As an attribute, a JSON array. Re-setting an equal array is a no-op.
|
|
1706
|
+
*/
|
|
1707
|
+
defaultValue: string[];
|
|
1708
|
+
/** Every character in this string ends a tag when typed, e.g. `","` or `",;"`. */
|
|
1709
|
+
delimiters: string;
|
|
1710
|
+
/** Commit the pending text when focus leaves the whole control. */
|
|
1711
|
+
addOnBlur: boolean;
|
|
1712
|
+
/** Tab with pending text commits it instead of moving focus. */
|
|
1713
|
+
addOnTab: boolean;
|
|
1714
|
+
/** Map from tag text to its chip's variant, tooltip, label and lock. JSON as an attribute. */
|
|
1715
|
+
tagMeta: TagsInputTagMetaMap;
|
|
1716
|
+
/** Whole control immutable and dimmed; the tags stay visible. */
|
|
1717
|
+
disabled: boolean;
|
|
1718
|
+
/** Display only: no ×, no clear, no text box, nothing to tab to. Full contrast. */
|
|
1719
|
+
readonly: boolean;
|
|
1720
|
+
private _focused;
|
|
1721
|
+
/** Index of the chip picked out by Backspace / ← / →, or -1 when the caret is in the text box. */
|
|
1722
|
+
private _highlight;
|
|
1723
|
+
private _parts;
|
|
1724
|
+
get isControlled(): boolean;
|
|
1725
|
+
/** The list as drawn: `value` when controlled, `defaultValue` otherwise. */
|
|
1726
|
+
get tags(): string[];
|
|
1727
|
+
get highlightedIndex(): number;
|
|
1728
|
+
metaFor(tag: string): TagsInputTagMeta;
|
|
1729
|
+
isLocked(tag: string): boolean;
|
|
1730
|
+
get _editable(): boolean;
|
|
1731
|
+
/** Clear all shows only when it would remove something. */
|
|
1732
|
+
get clearVisible(): boolean;
|
|
1733
|
+
private get _inputPart();
|
|
1734
|
+
private get _hasClearPart();
|
|
1735
|
+
/* Excluded from this release type: _register */
|
|
1736
|
+
/* Excluded from this release type: _unregister */
|
|
1737
|
+
connectedCallback(): void;
|
|
1738
|
+
disconnectedCallback(): void;
|
|
1739
|
+
willUpdate(): void;
|
|
1740
|
+
updated(): void;
|
|
1741
|
+
/** Focuses the text box. Does nothing without an input part, or while disabled/readonly. */
|
|
1742
|
+
focus(options?: FocusOptions): void;
|
|
1743
|
+
/**
|
|
1744
|
+
* Every change goes through here. Uncontrolled: written to `defaultValue`
|
|
1745
|
+
* first, so a listener reading the element sees the new list. Controlled:
|
|
1746
|
+
* only proposed — the consumer decides.
|
|
1747
|
+
*/
|
|
1748
|
+
private _propose;
|
|
1749
|
+
private _commit;
|
|
1750
|
+
/* Excluded from this release type: _removeAt */
|
|
1751
|
+
/* Excluded from this release type: _clearAll */
|
|
1752
|
+
/* Excluded from this release type: _setHighlight */
|
|
1753
|
+
/* Excluded from this release type: _focusInput */
|
|
1754
|
+
/* Excluded from this release type: _onInputKeydown */
|
|
1755
|
+
/* Excluded from this release type: _onInputInput */
|
|
1756
|
+
/* Excluded from this release type: _onInputPaste */
|
|
1757
|
+
private _onFocusIn;
|
|
1758
|
+
/**
|
|
1759
|
+
* Blur means focus left the whole control. Moving between its own parts
|
|
1760
|
+
* (the text box, a chip's ×, the clear button) is not a blur: there,
|
|
1761
|
+
* `relatedTarget` is retargeted to one of this element's children.
|
|
1762
|
+
*/
|
|
1763
|
+
private _onFocusOut;
|
|
1764
|
+
/**
|
|
1765
|
+
* A press anywhere in the field but the text box keeps (or puts) focus in
|
|
1766
|
+
* the text box. Without this, pressing a chip's × in Chromium focuses its
|
|
1767
|
+
* button, the button is removed with the chip, and focus falls to <body>
|
|
1768
|
+
* with no blur — the user was mid-list and is now nowhere. It also makes
|
|
1769
|
+
* the field's padding and the gaps between chips a click target.
|
|
1770
|
+
*/
|
|
1771
|
+
private _onMouseDown;
|
|
1772
|
+
render(): TemplateResult<1>;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
declare class AnduinTagsInputClear extends LitElement {
|
|
1776
|
+
static styles: CSSResult;
|
|
1777
|
+
/* Excluded from this release type: _root */
|
|
1778
|
+
connectedCallback(): void;
|
|
1779
|
+
disconnectedCallback(): void;
|
|
1780
|
+
willUpdate(): void;
|
|
1781
|
+
private _onClick;
|
|
1782
|
+
render(): TemplateResult<1>;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
declare class AnduinTagsInputInput extends LitElement {
|
|
1786
|
+
/** Focus lands on the inner `<input>`, as with anduin-input. */
|
|
1787
|
+
static shadowRootOptions: ShadowRootInit;
|
|
1788
|
+
static styles: CSSResult;
|
|
1789
|
+
placeholder: string;
|
|
1790
|
+
/* Excluded from this release type: _root */
|
|
1791
|
+
connectedCallback(): void;
|
|
1792
|
+
disconnectedCallback(): void;
|
|
1793
|
+
get inputEl(): HTMLInputElement | null;
|
|
1794
|
+
/** The pending (uncommitted) text. */
|
|
1795
|
+
get text(): string;
|
|
1796
|
+
set text(v: string);
|
|
1797
|
+
get hasInputFocus(): boolean;
|
|
1798
|
+
focus(options?: FocusOptions): void;
|
|
1799
|
+
willUpdate(): void;
|
|
1800
|
+
render(): TemplateResult<1>;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
declare class AnduinTagsInputList extends LitElement {
|
|
1804
|
+
static styles: CSSResult;
|
|
1805
|
+
/* Excluded from this release type: _root */
|
|
1806
|
+
connectedCallback(): void;
|
|
1807
|
+
disconnectedCallback(): void;
|
|
1808
|
+
firstUpdated(): void;
|
|
1809
|
+
/**
|
|
1810
|
+
* A chip's × (anduin-tag-close) fires TAG_CLOSE_CLICK. It is stopped here:
|
|
1811
|
+
* the chips are this component's internals, and a page listening for
|
|
1812
|
+
* anduin-tag-close:click elsewhere should not hear them.
|
|
1813
|
+
*/
|
|
1814
|
+
private _onRemove;
|
|
1815
|
+
private _indexFromPath;
|
|
1816
|
+
private _onChipClick;
|
|
1817
|
+
render(): TemplateResult<1> | typeof nothing;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1630
1820
|
declare class AnduinTextarea extends LitElement {
|
|
1631
1821
|
/**
|
|
1632
1822
|
* Focus belongs to the inner `<textarea>`, not the host — the same reasoning
|
|
@@ -2408,6 +2598,67 @@ export declare const TagClose: ReactWebComponent<AnduinTagClose, {
|
|
|
2408
2598
|
onClick: string;
|
|
2409
2599
|
}>;
|
|
2410
2600
|
|
|
2601
|
+
export declare const TAGS_INPUT_BLUR = "anduin-tags-input:blur";
|
|
2602
|
+
|
|
2603
|
+
export declare const TAGS_INPUT_SUBMIT = "anduin-tags-input:submit";
|
|
2604
|
+
|
|
2605
|
+
/**
|
|
2606
|
+
* anduin-tags-input — a field that collects short free-text values as
|
|
2607
|
+
* removable chips (email recipients, keywords). Mirrors `anduin-tags-input`
|
|
2608
|
+
* in anduin.design (the Scala/Laminar library) under the same element names,
|
|
2609
|
+
* so the two libraries agree. This release is the core subset: no
|
|
2610
|
+
* suggestions panel and no inline editing.
|
|
2611
|
+
*
|
|
2612
|
+
* Shape: the root owns the list and every key; the parts only draw.
|
|
2613
|
+
*
|
|
2614
|
+
* <anduin-tags-input> bordered field, list, keyboard, events
|
|
2615
|
+
* <anduin-tags-input-list> one anduin-tag per value, each with ×
|
|
2616
|
+
* <anduin-tags-input-input> the text box new tags are typed into
|
|
2617
|
+
* <anduin-tags-input-clear> "clear all", pinned top-right
|
|
2618
|
+
* </anduin-tags-input>
|
|
2619
|
+
*
|
|
2620
|
+
* Why the root owns the keys rather than the input part: Backspace, ← and →
|
|
2621
|
+
* act on chips, Enter may fire submit, and blur is "focus left the whole
|
|
2622
|
+
* control", so every interesting key needs the list and the text at once.
|
|
2623
|
+
* The input part forwards its native events to the root and holds no state.
|
|
2624
|
+
*
|
|
2625
|
+
* Layout: the root's field is one flex-wrap row container. The list host is
|
|
2626
|
+
* `display: contents`, so each chip is a flex item of the field itself and
|
|
2627
|
+
* the text box flows on the same line as the last chip, wrapping with them —
|
|
2628
|
+
* the way a chip input reads. Every row is 24px (a 20px anduin-tag centred in
|
|
2629
|
+
* a 24px slot, the text box 24px), with 3px top and bottom padding, so one row
|
|
2630
|
+
* is exactly anduin-input's 32px and each further row adds 24px.
|
|
2631
|
+
*/
|
|
2632
|
+
export declare const TAGS_INPUT_VALUE_CHANGE = "anduin-tags-input:value-change";
|
|
2633
|
+
|
|
2634
|
+
export declare const TagsInput: ReactWebComponent<AnduinTagsInput, {
|
|
2635
|
+
onValueChange: EventName<CustomEvent<string[]>>;
|
|
2636
|
+
onBlur: EventName<CustomEvent<string>>;
|
|
2637
|
+
onSubmit: EventName<CustomEvent<string[]>>;
|
|
2638
|
+
}>;
|
|
2639
|
+
|
|
2640
|
+
export declare const TagsInputClear: ReactWebComponent<AnduinTagsInputClear, {}>;
|
|
2641
|
+
|
|
2642
|
+
export declare const TagsInputInput: ReactWebComponent<AnduinTagsInputInput, {}>;
|
|
2643
|
+
|
|
2644
|
+
export declare const TagsInputList: ReactWebComponent<AnduinTagsInputList, {}>;
|
|
2645
|
+
|
|
2646
|
+
declare type TagsInputPart = AnduinTagsInputList | AnduinTagsInputInput | AnduinTagsInputClear;
|
|
2647
|
+
|
|
2648
|
+
/** Per-tag presentation, keyed by the tag's text in `tagMeta`. */
|
|
2649
|
+
export declare interface TagsInputTagMeta {
|
|
2650
|
+
/** anduin-tag variant for this chip (default `gray`). */
|
|
2651
|
+
variant?: TagVariant;
|
|
2652
|
+
/** Shown in an anduin-tooltip while the chip is hovered. */
|
|
2653
|
+
tooltip?: string;
|
|
2654
|
+
/** Drawn instead of the tag text. The value in the list stays the tag text. */
|
|
2655
|
+
label?: string;
|
|
2656
|
+
/** Locked: dimmed, no ×, Backspace/Delete refuse it, clear all leaves it. */
|
|
2657
|
+
disabled?: boolean;
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
export declare type TagsInputTagMetaMap = Record<string, TagsInputTagMeta>;
|
|
2661
|
+
|
|
2411
2662
|
declare type TagVariant = 'gray' | 'primary' | 'success' | 'warning' | 'danger' | 'boldGray' | 'boldPrimary' | 'boldSuccess' | 'boldWarning' | 'boldDanger' | 'customAqua' | 'customBlue' | 'customBlueGreen' | 'customGreen' | 'customHotPink' | 'customIndigo' | 'customMagenta' | 'customOrange' | 'customPink' | 'customPurple' | 'customRed' | 'customYellow' | 'customYellowGreen' | 'customYellowOrange';
|
|
2412
2663
|
|
|
2413
2664
|
export declare const Textarea: ReactWebComponent<AnduinTextarea, {
|