UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

1,661 lines (1,660 loc) • 601 kB
{ "timestamp": "2022-03-15T02:53:34", "compiler": { "name": "@stencil/core", "version": "2.14.1", "typescriptVersion": "4.5.4" }, "components": [ { "filePath": "./src/components/accordion/accordion.tsx", "encapsulation": "shadow", "tag": "calcite-accordion", "readme": "# calcite-accordion\n\n`calcite-accordion` can be used to present content in collapsible sections. Configuration options exist for visual style (icon-position, scale, appearance), and selection functionality. Selection modes include \"multi\", \"single\", and \"single-persist\".\n", "docs": "`calcite-accordion` can be used to present content in collapsible sections. Configuration options exist for visual style (icon-position, scale, appearance), and selection functionality. Selection modes include \"multi\", \"single\", and \"single-persist\".", "docsTags": [ { "name": "slot", "text": "- A slot for adding `calcite-accordion-item`s. `calcite-accordion` cannot be nested, however calcite-accordion-item`s can." } ], "usage": { "Basic": "```html\n<calcite-accordion>\n <calcite-accordion-item item-title=\"Accordion Item\">Accordion Section Content </calcite-accordion-item>\n <calcite-accordion-item item-title=\"Accordion Item 2\" active>Accordion Section Content </calcite-accordion-item>\n <calcite-accordion-item item-title=\"Accordion Item 3\">Accordion Section Content </calcite-accordion-item>\n</calcite-accordion>\n```\n" }, "props": [ { "name": "appearance", "type": "\"default\" | \"minimal\" | \"transparent\"", "mutable": false, "attr": "appearance", "reflectToAttr": true, "docs": "specify the appearance - default (containing border), or minimal (no containing border), defaults to default", "docsTags": [], "default": "\"default\"", "values": [ { "value": "default", "type": "string" }, { "value": "minimal", "type": "string" }, { "value": "transparent", "type": "string" } ], "optional": false, "required": false }, { "name": "iconPosition", "type": "\"end\" | \"start\"", "mutable": false, "attr": "icon-position", "reflectToAttr": true, "docs": "specify the placement of the icon in the header, defaults to end", "docsTags": [], "default": "\"end\"", "values": [ { "value": "end", "type": "string" }, { "value": "start", "type": "string" } ], "optional": false, "required": false }, { "name": "iconType", "type": "\"caret\" | \"chevron\" | \"plus-minus\"", "mutable": false, "attr": "icon-type", "reflectToAttr": true, "docs": "specify the type of the icon in the header, defaults to chevron", "docsTags": [], "default": "\"chevron\"", "values": [ { "value": "caret", "type": "string" }, { "value": "chevron", "type": "string" }, { "value": "plus-minus", "type": "string" } ], "optional": false, "required": false }, { "name": "scale", "type": "\"l\" | \"m\" | \"s\"", "mutable": false, "attr": "scale", "reflectToAttr": true, "docs": "specify the scale of accordion, defaults to m", "docsTags": [], "default": "\"m\"", "values": [ { "value": "l", "type": "string" }, { "value": "m", "type": "string" }, { "value": "s", "type": "string" } ], "optional": false, "required": false }, { "name": "selectionMode", "type": "\"multi\" | \"single\" | \"single-persist\"", "mutable": false, "attr": "selection-mode", "reflectToAttr": true, "docs": "specify the selection mode - multi (allow any number of open items), single (allow one open item),\nor single-persist (allow and require one open item), defaults to multi", "docsTags": [], "default": "\"multi\"", "values": [ { "value": "multi", "type": "string" }, { "value": "single", "type": "string" }, { "value": "single-persist", "type": "string" } ], "optional": false, "required": false } ], "methods": [], "events": [], "listeners": [ { "event": "calciteAccordionItemKeyEvent", "capture": false, "passive": false }, { "event": "calciteAccordionItemRegister", "capture": false, "passive": false }, { "event": "calciteAccordionItemSelect", "capture": false, "passive": false } ], "styles": [], "slots": [ { "name": "", "docs": "A slot for adding `calcite-accordion-item`s. `calcite-accordion` cannot be nested, however calcite-accordion-item`s can." } ], "parts": [], "dependents": [], "dependencies": [], "dependencyGraph": {} }, { "filePath": "./src/components/accordion-item/accordion-item.tsx", "encapsulation": "shadow", "tag": "calcite-accordion-item", "readme": "# calcite-accordion-item\n\nindividual `calcite-accordion` item\n", "docs": "individual `calcite-accordion` item", "docsTags": [ { "name": "slot", "text": "- A slot for adding custom content, including nested `calcite-accordion-item`s." } ], "usage": {}, "props": [ { "name": "active", "type": "boolean", "mutable": true, "attr": "active", "reflectToAttr": true, "docs": "Indicates whether the item is active.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "icon", "type": "string", "mutable": false, "attr": "icon", "reflectToAttr": true, "docs": "optionally pass an icon to display - accepts Calcite UI icon names", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "itemSubtitle", "type": "string", "mutable": false, "attr": "item-subtitle", "reflectToAttr": false, "docs": "pass a title for the accordion item", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "itemTitle", "type": "string", "mutable": false, "attr": "item-title", "reflectToAttr": false, "docs": "pass a title for the accordion item", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false } ], "methods": [], "events": [], "listeners": [ { "event": "keydown", "capture": false, "passive": false }, { "event": "calciteAccordionChange", "target": "body", "capture": false, "passive": false } ], "styles": [], "slots": [ { "name": "", "docs": "A slot for adding custom content, including nested `calcite-accordion-item`s." } ], "parts": [], "dependents": [], "dependencies": [ "calcite-icon" ], "dependencyGraph": { "calcite-accordion-item": [ "calcite-icon" ] } }, { "filePath": "./src/components/action/action.tsx", "encapsulation": "shadow", "tag": "calcite-action", "readme": "# calcite-action\n\nThe `calcite-action` component lives in either a `calcite-action-bar` or `calcite-action-pad`. Actions look like an icon with a text description option of the component that will be revealed when the icon/ text is clicked or selected.\n", "docs": "The `calcite-action` component lives in either a `calcite-action-bar` or `calcite-action-pad`. Actions look like an icon with a text description option of the component that will be revealed when the icon/ text is clicked or selected.", "docsTags": [ { "name": "slot", "text": "- A slot for adding a `calcite-icon`." } ], "usage": { "Clear-appearance": "Renders a `calcite-action` that has a clear background.\n\n```html\n<calcite-action appearance=\"clear\" text=\"Layers\" icon=\"layers\"></calcite-action>\n```\n", "With-text-displayed": "Renders a `calcite-action` that displays text along side an icon and a tooltip label.\n\n```html\n<calcite-action label=\"Performs my custom action\" text=\"Perform Action!\" text-enabled icon=\"save\"></calcite-action>\n```\n", "Without-text-displayed": "Renders a `calcite-action` that displays only an icon and a tooltip label.\n\n```html\n<calcite-action label=\"Performs my custom action\" text=\"My Custom Action\" icon=\"plus\"></calcite-action>\n```\n" }, "props": [ { "name": "active", "type": "boolean", "mutable": false, "attr": "active", "reflectToAttr": true, "docs": "Indicates whether the action is highlighted.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "alignment", "type": "\"center\" | \"end\" | \"start\"", "mutable": false, "attr": "alignment", "reflectToAttr": true, "docs": "Optionally specify the horizontal alignment of button elements with text content.", "docsTags": [], "values": [ { "value": "center", "type": "string" }, { "value": "end", "type": "string" }, { "value": "start", "type": "string" } ], "optional": true, "required": false }, { "name": "appearance", "type": "\"clear\" | \"solid\"", "mutable": false, "attr": "appearance", "reflectToAttr": true, "docs": "Specify the appearance style of the action, defaults to solid.", "docsTags": [], "default": "\"solid\"", "values": [ { "value": "clear", "type": "string" }, { "value": "solid", "type": "string" } ], "optional": false, "required": false }, { "name": "compact", "type": "boolean", "mutable": false, "attr": "compact", "reflectToAttr": true, "docs": "Compact mode is used internally by components to reduce side padding, e.g. calcite-block-section.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "disabled", "type": "boolean", "mutable": false, "attr": "disabled", "reflectToAttr": true, "docs": "When true, disabled prevents interaction. This state shows items with lower opacity/grayed.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "icon", "type": "string", "mutable": false, "attr": "icon", "reflectToAttr": false, "docs": "The name of the icon to display. The value of this property must match the icon name from https://esri.github.io/calcite-ui-icons/.", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "indicator", "type": "boolean", "mutable": false, "attr": "indicator", "reflectToAttr": true, "docs": "Indicates unread changes.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "intlLoading", "type": "string", "mutable": false, "attr": "intl-loading", "reflectToAttr": false, "docs": "string to override English loading text", "docsTags": [ { "name": "default", "text": "\"Loading\"" } ], "default": "TEXT.loading", "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "label", "type": "string", "mutable": false, "attr": "label", "reflectToAttr": false, "docs": "The label of the action. If no label is provided, the label inherits what's provided for the `text` prop.", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "loading", "type": "boolean", "mutable": false, "attr": "loading", "reflectToAttr": true, "docs": "When true, content is waiting to be loaded. This state shows a busy indicator.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "scale", "type": "\"l\" | \"m\" | \"s\"", "mutable": false, "attr": "scale", "reflectToAttr": true, "docs": "Specifies the size of the action.", "docsTags": [], "default": "\"m\"", "values": [ { "value": "l", "type": "string" }, { "value": "m", "type": "string" }, { "value": "s", "type": "string" } ], "optional": false, "required": false }, { "name": "text", "type": "string", "mutable": false, "attr": "text", "reflectToAttr": false, "docs": "Text that accompanies the action icon.", "docsTags": [], "values": [ { "type": "string" } ], "optional": false, "required": true }, { "name": "textEnabled", "type": "boolean", "mutable": false, "attr": "text-enabled", "reflectToAttr": true, "docs": "Indicates whether the text is displayed.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false } ], "methods": [ { "name": "setFocus", "returns": { "type": "Promise<void>", "docs": "" }, "signature": "setFocus() => Promise<void>", "parameters": [], "docs": "Sets focus on the component.", "docsTags": [] } ], "events": [ { "event": "calciteActionClick", "detail": "any", "bubbles": true, "cancelable": true, "composed": true, "docs": "Emitted when the action has been clicked.", "docsTags": [ { "name": "deprecated", "text": "use onClick instead." } ], "deprecation": "use onClick instead." } ], "listeners": [], "styles": [], "slots": [ { "name": "", "docs": "A slot for adding a `calcite-icon`." } ], "parts": [], "dependents": [ "calcite-action-bar", "calcite-action-group", "calcite-action-menu", "calcite-action-pad", "calcite-panel", "calcite-pick-list-item", "calcite-popover", "calcite-tip", "calcite-tip-manager" ], "dependencies": [ "calcite-loader", "calcite-icon" ], "dependencyGraph": { "calcite-action": [ "calcite-loader", "calcite-icon" ], "calcite-action-bar": [ "calcite-action" ], "calcite-action-group": [ "calcite-action" ], "calcite-action-menu": [ "calcite-action" ], "calcite-action-pad": [ "calcite-action" ], "calcite-panel": [ "calcite-action" ], "calcite-pick-list-item": [ "calcite-action" ], "calcite-popover": [ "calcite-action" ], "calcite-tip": [ "calcite-action" ], "calcite-tip-manager": [ "calcite-action" ] } }, { "filePath": "./src/components/action-bar/action-bar.tsx", "encapsulation": "shadow", "tag": "calcite-action-bar", "readme": "# calcite-action-bar\n\n## Description\n\nThe `calcite-action-bar` component is made up of multiple `calcite-action`s in the form of clickable icons. The action bar can be expanded to view actions with descriptive text or made smaller to view with just icons.\n", "docs": "", "docsTags": [ { "name": "slot", "text": "- A slot for adding `calcite-action`s that will appear at the top of the action bar." }, { "name": "slot", "text": "bottom-actions - A slot for adding `calcite-action`s that will appear at the bottom of the action bar, above the collapse/expand button." }, { "name": "slot", "text": "expand-tooltip - Used to set the tooltip for the expand toggle." } ], "usage": { "Basic": "Renders `calcite-action`s that stick to the top of the bar.\n\n```html\n<calcite-action-bar>\n <calcite-action text=\"Add\" icon=\"plus\"></calcite-action>\n <calcite-action text=\"Save\" icon=\"save\"></calcite-action>\n</calcite-action-bar>\n```\n", "Bottom-actions": "The bottom-actions slot renders `calcite-action`s that stick to the bottom of the bar above the expand/collapse icon.\n\n```html\n<calcite-action-bar>\n <calcite-action text=\"Information\" icon=\"information\"></calcite-action>\n <calcite-action text=\"Feedback\" slot=\"bottom-actions\" icon=\"mega-phone\"></calcite-action>\n</calcite-action-bar>\n```\n", "Tooltip": "Renders with a tooltip on the expand action.\n\n```html\n<calcite-action-bar id=\"action-bar-test\">\n <calcite-tooltip slot=\"expand-tooltip\">Expand</calcite-tooltip>\n <calcite-action text=\"Add\" icon=\"plus\"></calcite-action>\n</calcite-action-bar>\n```\n", "With-grouping": "Renders a group of `calcite-action`s contained in a `calcite-action-group`. Actions in a group are visually separated from other groups or actions in the bar.\n\n```html\n<calcite-action-bar>\n <calcite-action-group>\n <calcite-action text=\"Add\" icon=\"plus\"></calcite-action>\n <calcite-action text=\"Save\" icon=\"save\"></calcite-action>\n </calcite-action-group>\n\n <calcite-action-group>\n <calcite-action text=\"Layers\" icon=\"layers\"></calcite-action>\n <calcite-action text=\"Basemaps\" icon=\"layer-basemap\"></calcite-action>\n </calcite-action-group>\n</calcite-action-bar>\n```\n" }, "props": [ { "name": "expandDisabled", "type": "boolean", "mutable": false, "attr": "expand-disabled", "reflectToAttr": true, "docs": "When set to true, the expand-toggling behavior will be disabled.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "expanded", "type": "boolean", "mutable": true, "attr": "expanded", "reflectToAttr": true, "docs": "Indicates whether widget is expanded.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "intlCollapse", "type": "string", "mutable": false, "attr": "intl-collapse", "reflectToAttr": false, "docs": "Updates the label of the collapse icon when the component is expanded.", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "intlExpand", "type": "string", "mutable": false, "attr": "intl-expand", "reflectToAttr": false, "docs": "Updates the label of the expand icon when the component is not expanded.", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "overflowActionsDisabled", "type": "boolean", "mutable": false, "attr": "overflow-actions-disabled", "reflectToAttr": false, "docs": "Disables automatically overflowing actions that won't fit into menus.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "position", "type": "\"end\" | \"start\"", "mutable": false, "attr": "position", "reflectToAttr": true, "docs": "Arranges the component depending on the elements 'dir' property.", "docsTags": [], "values": [ { "value": "end", "type": "string" }, { "value": "start", "type": "string" } ], "optional": false, "required": false }, { "name": "scale", "type": "\"l\" | \"m\" | \"s\"", "mutable": false, "attr": "scale", "reflectToAttr": true, "docs": "Specifies the size of the expand action.", "docsTags": [], "values": [ { "value": "l", "type": "string" }, { "value": "m", "type": "string" }, { "value": "s", "type": "string" } ], "optional": false, "required": false } ], "methods": [ { "name": "setFocus", "returns": { "type": "Promise<void>", "docs": "" }, "signature": "setFocus(focusId?: \"expand-toggle\") => Promise<void>", "parameters": [], "docs": "Sets focus on the component.", "docsTags": [] } ], "events": [ { "event": "calciteActionBarToggle", "detail": "any", "bubbles": true, "cancelable": true, "composed": true, "docs": "Emitted when expanded has been toggled.", "docsTags": [] } ], "listeners": [], "styles": [], "slots": [ { "name": "", "docs": "A slot for adding `calcite-action`s that will appear at the top of the action bar." }, { "name": "bottom-actions", "docs": "A slot for adding `calcite-action`s that will appear at the bottom of the action bar, above the collapse/expand button." }, { "name": "expand-tooltip", "docs": "Used to set the tooltip for the expand toggle." } ], "parts": [], "dependents": [], "dependencies": [ "calcite-action-group", "calcite-action", "calcite-tooltip-manager" ], "dependencyGraph": { "calcite-action-bar": [ "calcite-action-group", "calcite-action", "calcite-tooltip-manager" ], "calcite-action-group": [ "calcite-action-menu", "calcite-action" ], "calcite-action-menu": [ "calcite-action", "calcite-tooltip-manager", "calcite-popover" ], "calcite-action": [ "calcite-loader", "calcite-icon" ], "calcite-popover": [ "calcite-action", "calcite-icon" ] } }, { "filePath": "./src/components/action-group/action-group.tsx", "encapsulation": "shadow", "tag": "calcite-action-group", "readme": "# calcite-action-group\n\nThe `calcite-action-group` is a wrapper for multiple `calcite-action`s and housed in `calcite-action-bar` and `calcite-action-pad`.\n", "docs": "The `calcite-action-group` is a wrapper for multiple `calcite-action`s and housed in `calcite-action-bar` and `calcite-action-pad`.", "docsTags": [ { "name": "slot", "text": "- A slot for adding a group of `calcite-action`s." }, { "name": "slot", "text": "menu-actions - a slot for adding an overflow menu with actions inside a dropdown." }, { "name": "slot", "text": "menu-tooltip - a slot for adding an tooltip for the menu." } ], "usage": {}, "props": [ { "name": "columns", "type": "1 | 2 | 3 | 4 | 5 | 6", "mutable": false, "attr": "columns", "reflectToAttr": true, "docs": "Indicates number of columns.", "docsTags": [], "values": [ { "value": "1", "type": "number" }, { "value": "2", "type": "number" }, { "value": "3", "type": "number" }, { "value": "4", "type": "number" }, { "value": "5", "type": "number" }, { "value": "6", "type": "number" } ], "optional": true, "required": false }, { "name": "expanded", "type": "boolean", "mutable": false, "attr": "expanded", "reflectToAttr": true, "docs": "Indicates whether widget is expanded.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "intlMore", "type": "string", "mutable": false, "attr": "intl-more", "reflectToAttr": false, "docs": "Text string for the actions menu.", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "layout", "type": "\"grid\" | \"horizontal\" | \"vertical\"", "mutable": false, "attr": "layout", "reflectToAttr": true, "docs": "Indicates the horizontal, vertical, or grid layout of the component.", "docsTags": [], "default": "\"vertical\"", "values": [ { "value": "grid", "type": "string" }, { "value": "horizontal", "type": "string" }, { "value": "vertical", "type": "string" } ], "optional": false, "required": false }, { "name": "menuOpen", "type": "boolean", "mutable": true, "attr": "menu-open", "reflectToAttr": true, "docs": "Opens the action menu.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "scale", "type": "\"l\" | \"m\" | \"s\"", "mutable": false, "attr": "scale", "reflectToAttr": true, "docs": "Specifies the size of the action-menu.", "docsTags": [], "values": [ { "value": "l", "type": "string" }, { "value": "m", "type": "string" }, { "value": "s", "type": "string" } ], "optional": false, "required": false } ], "methods": [], "events": [], "listeners": [], "styles": [ { "name": "--calcite-action-group-columns", "annotation": "prop", "docs": "sets number of grid-template-columns when layout is grid" } ], "slots": [ { "name": "", "docs": "A slot for adding a group of `calcite-action`s." }, { "name": "menu-actions", "docs": "a slot for adding an overflow menu with actions inside a dropdown." }, { "name": "menu-tooltip", "docs": "a slot for adding an tooltip for the menu." } ], "parts": [], "dependents": [ "calcite-action-bar", "calcite-action-pad" ], "dependencies": [ "calcite-action-menu", "calcite-action" ], "dependencyGraph": { "calcite-action-group": [ "calcite-action-menu", "calcite-action" ], "calcite-action-menu": [ "calcite-action", "calcite-tooltip-manager", "calcite-popover" ], "calcite-action": [ "calcite-loader", "calcite-icon" ], "calcite-popover": [ "calcite-action", "calcite-icon" ], "calcite-action-bar": [ "calcite-action-group" ], "calcite-action-pad": [ "calcite-action-group" ] } }, { "filePath": "./src/components/action-menu/action-menu.tsx", "encapsulation": "shadow", "tag": "calcite-action-menu", "readme": "# calcite-action-menu\n", "docs": "", "docsTags": [ { "name": "slot", "text": "- A slot for adding `calcite-action`s." }, { "name": "slot", "text": "trigger - A slot for adding a `calcite-action` to trigger opening the menu." }, { "name": "slot", "text": "tooltip - A slot for adding an tooltip for the menu." } ], "usage": {}, "props": [ { "name": "expanded", "type": "boolean", "mutable": false, "attr": "expanded", "reflectToAttr": true, "docs": "Indicates whether widget is expanded.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "flipPlacements", "type": "Placement[]", "mutable": false, "reflectToAttr": false, "docs": "Defines the available placements that can be used when a flip occurs.", "docsTags": [], "values": [ { "type": "Placement[]" } ], "optional": true, "required": false }, { "name": "label", "type": "string", "mutable": false, "attr": "label", "reflectToAttr": false, "docs": "Text string for the actions menu.", "docsTags": [], "values": [ { "type": "string" } ], "optional": false, "required": true }, { "name": "open", "type": "boolean", "mutable": true, "attr": "open", "reflectToAttr": true, "docs": "Opens the action menu.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "overlayPositioning", "type": "\"absolute\" | \"fixed\"", "mutable": false, "attr": "overlay-positioning", "reflectToAttr": false, "docs": "Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value.", "docsTags": [], "default": "\"absolute\"", "values": [ { "value": "absolute", "type": "string" }, { "value": "fixed", "type": "string" } ], "optional": false, "required": false }, { "name": "placement", "type": "Placement | PlacementRtl | VariationRtl", "mutable": false, "attr": "placement", "reflectToAttr": true, "docs": "Determines where the component will be positioned relative to the referenceElement.", "docsTags": [ { "name": "see", "text": "[PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)" } ], "default": "\"auto\"", "values": [ { "type": "Placement" }, { "type": "PlacementRtl" }, { "type": "VariationRtl" } ], "optional": false, "required": false }, { "name": "scale", "type": "\"l\" | \"m\" | \"s\"", "mutable": false, "attr": "scale", "reflectToAttr": true, "docs": "Specifies the size of the menu trigger action.", "docsTags": [], "values": [ { "value": "l", "type": "string" }, { "value": "m", "type": "string" }, { "value": "s", "type": "string" } ], "optional": false, "required": false } ], "methods": [ { "name": "setFocus", "returns": { "type": "Promise<void>", "docs": "" }, "signature": "setFocus() => Promise<void>", "parameters": [], "docs": "Sets focus on the component.", "docsTags": [] } ], "events": [ { "event": "calciteActionMenuOpenChange", "detail": "any", "bubbles": true, "cancelable": true, "composed": true, "docs": "Emitted when the open property has changed.", "docsTags": [] } ], "listeners": [ { "event": "click", "target": "window", "capture": false, "passive": false } ], "styles": [], "slots": [ { "name": "", "docs": "A slot for adding `calcite-action`s." }, { "name": "tooltip", "docs": "A slot for adding an tooltip for the menu." }, { "name": "trigger", "docs": "A slot for adding a `calcite-action` to trigger opening the menu." } ], "parts": [], "dependents": [ "calcite-action-group", "calcite-block", "calcite-panel" ], "dependencies": [ "calcite-action", "calcite-tooltip-manager", "calcite-popover" ], "dependencyGraph": { "calcite-action-menu": [ "calcite-action", "calcite-tooltip-manager", "calcite-popover" ], "calcite-action": [ "calcite-loader", "calcite-icon" ], "calcite-popover": [ "calcite-action", "calcite-icon" ], "calcite-action-group": [ "calcite-action-menu" ], "calcite-block": [ "calcite-action-menu" ], "calcite-panel": [ "calcite-action-menu" ] } }, { "filePath": "./src/components/action-pad/action-pad.tsx", "encapsulation": "shadow", "tag": "calcite-action-pad", "readme": "# calcite-action-pad\n\nThe `calcite-action-pad` component is made up of `calcite-action`s in the form of clickable icons. This does not have an expandable option and is a smaller and simpler component than `calcite-action-bar`.\n", "docs": "The `calcite-action-pad` component is made up of `calcite-action`s in the form of clickable icons. This does not have an expandable option and is a smaller and simpler component than `calcite-action-bar`.", "docsTags": [ { "name": "slot", "text": "- A slot for adding `calcite-action`s to the action pad." }, { "name": "slot", "text": "expand-tooltip - Used to set the tooltip for the expand toggle." } ], "usage": { "Basic": "Renders a basic action pad with `calcite-action`s.\n\n```html\n<calcite-action-pad>\n <calcite-action text=\"Undo\" icon=\"undo\"></calcite-action>\n <calcite-action text=\"Redo\" icon=\"redo\"></calcite-action>\n</calcite-action-pad>\n```\n", "Tooltip": "Renders an action pad with a tooltip on the expand action.\n\n```html\n<calcite-action-pad id=\"action-pad-test\">\n <calcite-action text=\"Add\" icon=\"plus\"></calcite-action>\n</calcite-action-pad>\n<calcite-tooltip id=\"tooltip\">Expand</calcite-tooltip>\n<script>\n var actionPad = document.getElementById(\"action-pad-test\");\n var tooltip = document.getElementById(\"tooltip\");\n actionPad.tooltipExpand = tooltip;\n</script>\n```\n", "With-grouping": "Renders a group of `calcite-action`s contained in a `calcite-action-group`. Actions in a group are visually separated from other groups or actions in the pad.\n\n```html\n<calcite-action-pad>\n <calcite-action-group>\n <calcite-action text=\"Home\" icon=\"home\"></calcite-action>\n <calcite-action text=\"Styles\" icon=\"add-in-edit\"></calcite-action>\n </calcite-action-group>\n\n <calcite-action text=\"Tips\" icon=\"lightbulb\"></calcite-action>\n</calcite-action-pad>\n```\n" }, "props": [ { "name": "expandDisabled", "type": "boolean", "mutable": false, "attr": "expand-disabled", "reflectToAttr": true, "docs": "When set to true, the expand-toggling behavior will be disabled.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "expanded", "type": "boolean", "mutable": true, "attr": "expanded", "reflectToAttr": true, "docs": "Indicates whether widget is expanded.", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "intlCollapse", "type": "string", "mutable": false, "attr": "intl-collapse", "reflectToAttr": false, "docs": "Updates the label of the collapse icon when the component is expanded.", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "intlExpand", "type": "string", "mutable": false, "attr": "intl-expand", "reflectToAttr": false, "docs": "Updates the label of the expand icon when the component is not expanded.", "docsTags": [], "values": [ { "type": "string" } ], "optional": true, "required": false }, { "name": "layout", "type": "\"grid\" | \"horizontal\" | \"vertical\"", "mutable": false, "attr": "layout", "reflectToAttr": true, "docs": "Indicates the horizontal or vertical layout of the component.", "docsTags": [], "default": "\"vertical\"", "values": [ { "value": "grid", "type": "string" }, { "value": "horizontal", "type": "string" }, { "value": "vertical", "type": "string" } ], "optional": false, "required": false }, { "name": "position", "type": "\"end\" | \"start\"", "mutable": false, "attr": "position", "reflectToAttr": true, "docs": "Arranges the component depending on the elements 'dir' property.", "docsTags": [], "values": [ { "value": "end", "type": "string" }, { "value": "start", "type": "string" } ], "optional": false, "required": false }, { "name": "scale", "type": "\"l\" | \"m\" | \"s\"", "mutable": false, "attr": "scale", "reflectToAttr": true, "docs": "Specifies the size of the expand action.", "docsTags": [], "values": [ { "value": "l", "type": "string" }, { "value": "m", "type": "string" }, { "value": "s", "type": "string" } ], "optional": false, "required": false } ], "methods": [ { "name": "setFocus", "returns": { "type": "Promise<void>", "docs": "" }, "signature": "setFocus(focusId?: \"expand-toggle\") => Promise<void>", "parameters": [], "docs": "Sets focus on the component.", "docsTags": [] } ], "events": [ { "event": "calciteActionPadToggle", "detail": "any", "bubbles": true, "cancelable": true, "composed": true, "docs": "Emitted when expanded has been toggled.", "docsTags": [] } ], "listeners": [], "styles": [], "slots": [ { "name": "", "docs": "A slot for adding `calcite-action`s to the action pad." }, { "name": "expand-tooltip", "docs": "Used to set the tooltip for the expand toggle." } ], "parts": [], "dependents": [], "dependencies": [ "calcite-action-group", "calcite-action", "calcite-tooltip-manager" ], "dependencyGraph": { "calcite-action-pad": [ "calcite-action-group", "calcite-action", "calcite-tooltip-manager" ], "calcite-action-group": [ "calcite-action-menu", "calcite-action" ], "calcite-action-menu": [ "calcite-action", "calcite-tooltip-manager", "calcite-popover" ], "calcite-action": [ "calcite-loader", "calcite-icon" ], "calcite-popover": [ "calcite-action", "calcite-icon" ] } }, { "filePath": "./src/components/alert/alert.tsx", "encapsulation": "shadow", "tag": "calcite-alert", "readme": "# calcite-alert\n", "docs": "", "docsTags": [ { "name": "slot", "text": "title - Title of the alert (optional)" }, { "name": "slot", "text": "message - Main text of the alert" }, { "name": "slot", "text": "link - Optional action to take from the alert (undo, try again, link to page, etc.)" } ], "usage": { "Basic": "A single instance of an alert. Multiple alerts will aggregate in a queue.\n\n```html\n<calcite-alert active>\n <div slot=\"title\">Title of alert</div>\n <div slot=\"message\">Message text of the alert</div>\n <a slot=\"link\" href=\"#\">Retry</a>\n</calcite-alert>\n```\n" }, "props": [ { "name": "active", "type": "boolean", "mutable": true, "attr": "active", "reflectToAttr": true, "docs": "Is the alert currently active or not", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "autoDismiss", "type": "boolean", "mutable": false, "attr": "auto-dismiss", "reflectToAttr": false, "docs": "Close the alert automatically (recommended for passive, non-blocking alerts)", "docsTags": [], "default": "false", "values": [ { "type": "boolean" } ], "optional": false, "required": false }, { "name": "autoDismissDuration", "type": "\"fast\" | \"medium\" | \"slow\"", "mutable": false, "attr": "auto-dismiss-duration", "reflectToAttr": true, "docs": "Duration of autoDismiss (only used with `autoDismiss`)", "docsTags": [], "default": "this.autoDismiss ? \"medium\" : null", "values": [ { "value": "fast", "type": "string" }, { "value": "medium", "type": "string" }, { "value": "slow", "type": "string" } ], "optional": false, "required": false }, { "name": "color", "type": "\"blue\" | \"green\" | \"red\" | \"yellow\"", "mutable": false, "attr": "color",