@elastic/eui 92.1.0 → 92.2.0
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/es/components/bottom_bar/bottom_bar.js +6 -2
- package/es/components/button/button.js +55 -1
- package/es/components/button/button_display/_button_display.js +1 -0
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/card/card.js +52 -1
- package/es/components/card/card_select/card_select.js +52 -1
- package/es/components/color_picker/index.js +0 -2
- package/es/components/comment_list/index.js +0 -1
- package/es/components/context_menu/context_menu_item.styles.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +94 -74
- package/es/components/datagrid/body/data_grid_body.js +6 -6
- package/es/components/datagrid/body/data_grid_body_custom.js +6 -6
- package/es/components/datagrid/body/data_grid_body_virtualized.js +6 -6
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/facet/facet_button.js +1 -0
- package/es/components/flyout/flyout_resizable.js +23 -5
- package/es/components/form/text_area/text_area.js +7 -3
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/list_group/list_group.js +1 -1
- package/es/components/list_group/list_group_item.js +1 -1
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/resizable_container/resizable_container.js +11 -5
- package/eui.d.ts +29 -19
- package/i18ntokens.json +66 -12
- package/lib/components/bottom_bar/bottom_bar.js +6 -2
- package/lib/components/button/button.js +58 -5
- package/lib/components/button/button_display/_button_display.js +1 -0
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/card/card.js +53 -2
- package/lib/components/card/card_select/card_select.js +53 -2
- package/lib/components/color_picker/index.js +0 -14
- package/lib/components/comment_list/index.js +0 -7
- package/lib/components/context_menu/context_menu_item.styles.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +94 -74
- package/lib/components/datagrid/body/data_grid_body.js +6 -6
- package/lib/components/datagrid/body/data_grid_body_custom.js +6 -6
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +6 -6
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/facet/facet_button.js +1 -0
- package/lib/components/flyout/flyout_resizable.js +23 -5
- package/lib/components/form/text_area/text_area.js +7 -3
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/list_group/list_group.js +1 -1
- package/lib/components/list_group/list_group_item.js +1 -1
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/resizable_container/resizable_container.js +10 -4
- package/optimize/es/components/button/button.js +3 -0
- package/optimize/es/components/color_picker/index.js +0 -2
- package/optimize/es/components/comment_list/index.js +0 -1
- package/optimize/es/components/context_menu/context_menu_item.styles.js +1 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +82 -62
- package/optimize/es/components/flyout/flyout_resizable.js +23 -5
- package/optimize/es/components/form/text_area/text_area.js +7 -3
- package/optimize/es/components/resizable_container/resizable_container.js +11 -5
- package/optimize/lib/components/button/button.js +2 -0
- package/optimize/lib/components/color_picker/index.js +0 -14
- package/optimize/lib/components/comment_list/index.js +0 -7
- package/optimize/lib/components/context_menu/context_menu_item.styles.js +1 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +82 -62
- package/optimize/lib/components/flyout/flyout_resizable.js +23 -5
- package/optimize/lib/components/form/text_area/text_area.js +7 -3
- package/optimize/lib/components/resizable_container/resizable_container.js +10 -4
- package/package.json +1 -1
- package/test-env/components/bottom_bar/bottom_bar.js +6 -2
- package/test-env/components/button/button.js +58 -5
- package/test-env/components/button/button_display/_button_display.js +1 -0
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/card/card.js +53 -2
- package/test-env/components/card/card_select/card_select.js +53 -2
- package/test-env/components/color_picker/index.js +0 -14
- package/test-env/components/comment_list/index.js +0 -7
- package/test-env/components/context_menu/context_menu_item.styles.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +94 -74
- package/test-env/components/datagrid/body/data_grid_body.js +6 -6
- package/test-env/components/datagrid/body/data_grid_body_custom.js +6 -6
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +6 -6
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/facet/facet_button.js +1 -0
- package/test-env/components/flyout/flyout_resizable.js +23 -5
- package/test-env/components/form/text_area/text_area.js +7 -3
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/list_group/list_group.js +1 -1
- package/test-env/components/list_group/list_group_item.js +1 -1
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/resizable_container/resizable_container.js +10 -4
|
@@ -180,7 +180,7 @@ EuiListGroup.propTypes = {
|
|
|
180
180
|
*/
|
|
181
181
|
extraAction: _propTypes.default.shape({
|
|
182
182
|
alwaysShow: _propTypes.default.bool,
|
|
183
|
-
type: _propTypes.default.
|
|
183
|
+
type: _propTypes.default.any,
|
|
184
184
|
onClick: _propTypes.default.func,
|
|
185
185
|
iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
186
186
|
/**
|
|
@@ -270,7 +270,7 @@ EuiListGroupItem.propTypes = {
|
|
|
270
270
|
*/
|
|
271
271
|
extraAction: _propTypes.default.shape({
|
|
272
272
|
alwaysShow: _propTypes.default.bool,
|
|
273
|
-
type: _propTypes.default.
|
|
273
|
+
type: _propTypes.default.any,
|
|
274
274
|
onClick: _propTypes.default.func,
|
|
275
275
|
iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
276
276
|
/**
|
|
@@ -46,7 +46,7 @@ var EuiListGroupItemExtraAction = function EuiListGroupItemExtraAction(_ref) {
|
|
|
46
46
|
exports.EuiListGroupItemExtraAction = EuiListGroupItemExtraAction;
|
|
47
47
|
EuiListGroupItemExtraAction.propTypes = {
|
|
48
48
|
alwaysShow: _propTypes.default.bool,
|
|
49
|
-
type: _propTypes.default.
|
|
49
|
+
type: _propTypes.default.any,
|
|
50
50
|
onClick: _propTypes.default.func,
|
|
51
51
|
iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
52
52
|
/**
|
|
@@ -176,7 +176,7 @@ EuiPinnableListGroup.propTypes = {
|
|
|
176
176
|
*/
|
|
177
177
|
extraAction: _propTypes.default.shape({
|
|
178
178
|
alwaysShow: _propTypes.default.bool,
|
|
179
|
-
type: _propTypes.default.
|
|
179
|
+
type: _propTypes.default.any,
|
|
180
180
|
onClick: _propTypes.default.func,
|
|
181
181
|
iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
182
182
|
/**
|
|
@@ -312,7 +312,7 @@ EuiPinnableListGroup.propTypes = {
|
|
|
312
312
|
*/
|
|
313
313
|
extraAction: _propTypes.default.shape({
|
|
314
314
|
alwaysShow: _propTypes.default.bool,
|
|
315
|
-
type: _propTypes.default.
|
|
315
|
+
type: _propTypes.default.any,
|
|
316
316
|
onClick: _propTypes.default.func,
|
|
317
317
|
iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
|
|
318
318
|
color: _propTypes.default.any,
|
|
@@ -115,7 +115,7 @@ EuiPaginationButton.propTypes = {
|
|
|
115
115
|
isSelected: _propTypes.default.bool,
|
|
116
116
|
target: _propTypes.default.string,
|
|
117
117
|
rel: _propTypes.default.string,
|
|
118
|
-
type: _propTypes.default.
|
|
118
|
+
type: _propTypes.default.any,
|
|
119
119
|
buttonRef: _propTypes.default.any,
|
|
120
120
|
/**
|
|
121
121
|
* Object of props passed to the `<span>` wrapping the button's content
|
|
@@ -60,6 +60,10 @@ var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
60
60
|
onResizeStart = _ref.onResizeStart,
|
|
61
61
|
onResizeEnd = _ref.onResizeEnd,
|
|
62
62
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
63
|
+
// Note: It's important to memoize consumer callbacks to prevent our own functions
|
|
64
|
+
// from reinstantiating unnecessarily & causing window event listeners to call stale closures
|
|
65
|
+
var onResizeEndRef = (0, _services.useLatest)(onResizeEnd);
|
|
66
|
+
var onResizeStartRef = (0, _services.useLatest)(onResizeStart);
|
|
63
67
|
var containerRef = (0, _react.useRef)(null);
|
|
64
68
|
var isHorizontal = direction === 'horizontal';
|
|
65
69
|
var classes = (0, _classnames.default)('euiResizableContainer', className);
|
|
@@ -86,10 +90,12 @@ var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
86
90
|
}, [initialize, containerSize]);
|
|
87
91
|
var resizeContext = (0, _react.useRef)({});
|
|
88
92
|
var resizeEnd = (0, _react.useCallback)(function () {
|
|
89
|
-
|
|
93
|
+
var _onResizeEndRef$curre;
|
|
94
|
+
(_onResizeEndRef$curre = onResizeEndRef.current) === null || _onResizeEndRef$curre === void 0 ? void 0 : _onResizeEndRef$curre.call(onResizeEndRef);
|
|
90
95
|
resizeContext.current = {};
|
|
91
|
-
}, [
|
|
96
|
+
}, [onResizeEndRef]);
|
|
92
97
|
var resizeStart = (0, _react.useCallback)(function (trigger, keyMoveDirection) {
|
|
98
|
+
var _onResizeStartRef$cur;
|
|
93
99
|
// If another resize starts while the previous one is still in progress
|
|
94
100
|
// (e.g. user presses opposite arrow to change direction while the first
|
|
95
101
|
// is still held down, or user presses an arrow while dragging with the
|
|
@@ -97,12 +103,12 @@ var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
97
103
|
if (resizeContext.current.trigger) {
|
|
98
104
|
resizeEnd();
|
|
99
105
|
}
|
|
100
|
-
|
|
106
|
+
(_onResizeStartRef$cur = onResizeStartRef.current) === null || _onResizeStartRef$cur === void 0 ? void 0 : _onResizeStartRef$cur.call(onResizeStartRef, trigger);
|
|
101
107
|
resizeContext.current = {
|
|
102
108
|
trigger: trigger,
|
|
103
109
|
keyMoveDirection: keyMoveDirection
|
|
104
110
|
};
|
|
105
|
-
}, [
|
|
111
|
+
}, [onResizeStartRef, resizeEnd]);
|
|
106
112
|
var onMouseDown = (0, _react.useCallback)(function (event) {
|
|
107
113
|
var currentTarget = event.currentTarget;
|
|
108
114
|
var prevPanel = currentTarget.previousElementSibling;
|
|
@@ -16,6 +16,9 @@ import { EuiButtonDisplay, isButtonDisabled } from './button_display/_button_dis
|
|
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
17
|
export var COLORS = BUTTON_COLORS;
|
|
18
18
|
export var SIZES = ['s', 'm'];
|
|
19
|
+
|
|
20
|
+
// For some reason, Storybook doesn't parse `EuiButtonDisplayCommonProps` unless we include it here
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* EuiButton is largely responsible for providing relevant props
|
|
21
24
|
* and the logic for element-specific attributes
|
|
@@ -8,7 +8,5 @@
|
|
|
8
8
|
|
|
9
9
|
export { EuiColorPicker } from './color_picker';
|
|
10
10
|
export { EuiColorPickerSwatch } from './color_picker_swatch';
|
|
11
|
-
export { EuiHue } from './hue';
|
|
12
|
-
export { EuiSaturation } from './saturation';
|
|
13
11
|
export { EuiColorPalettePicker } from './color_palette_picker';
|
|
14
12
|
export { EuiColorPaletteDisplay } from './color_palette_display';
|
|
@@ -60,7 +60,7 @@ var _ref6 = process.env.NODE_ENV === "production" ? {
|
|
|
60
60
|
export var euiContextMenuItemStyles = function euiContextMenuItemStyles(euiThemeContext) {
|
|
61
61
|
var euiTheme = euiThemeContext.euiTheme;
|
|
62
62
|
return {
|
|
63
|
-
euiContextMenuItem: /*#__PURE__*/css("display:flex;gap:", euiTheme.size.s, ";", logicalCSS('width', '100%'), " ", logicalTextAlignCSS('left'), " color:", euiTheme.colors.text, ";outline-offset:-", euiTheme.focus.width, ";&:not(:disabled){&:hover,&:focus{text-decoration:underline;}&:focus{background-color:", euiTheme.focus.backgroundColor, ";}};label:euiContextMenuItem;"),
|
|
63
|
+
euiContextMenuItem: /*#__PURE__*/css("display:flex;gap:", euiTheme.size.s, ";", logicalCSS('width', '100%'), " ", logicalTextAlignCSS('left'), " color:", euiTheme.colors.text, ";outline-offset:-", euiTheme.focus.width, ";&:where(a, button):not(:disabled){&:hover,&:focus{text-decoration:underline;}&:focus{background-color:", euiTheme.focus.backgroundColor, ";}};label:euiContextMenuItem;"),
|
|
64
64
|
disabled: /*#__PURE__*/css("color:", euiTheme.colors.disabledText, ";cursor:default;;label:disabled;"),
|
|
65
65
|
layoutAlign: {
|
|
66
66
|
center: _ref6,
|
|
@@ -108,6 +108,7 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
108
108
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
109
109
|
cellProps: {},
|
|
110
110
|
isFocused: false,
|
|
111
|
+
isHovered: false,
|
|
111
112
|
cellTextAlign: 'Left'
|
|
112
113
|
});
|
|
113
114
|
_defineProperty(_assertThisInitialized(_this), "unsubscribeCell", void 0);
|
|
@@ -276,14 +277,59 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
276
277
|
setPopoverContent(popoverContent);
|
|
277
278
|
}
|
|
278
279
|
});
|
|
280
|
+
_defineProperty(_assertThisInitialized(_this), "handleCellKeyDown", function (event) {
|
|
281
|
+
if (_this.isExpandable()) {
|
|
282
|
+
if (_this.isPopoverOpen()) return;
|
|
283
|
+
var _this$props6 = _this.props,
|
|
284
|
+
openCellPopover = _this$props6.popoverContext.openCellPopover,
|
|
285
|
+
visibleRowIndex = _this$props6.visibleRowIndex,
|
|
286
|
+
colIndex = _this$props6.colIndex;
|
|
287
|
+
switch (event.key) {
|
|
288
|
+
case keys.ENTER:
|
|
289
|
+
case keys.F2:
|
|
290
|
+
event.preventDefault();
|
|
291
|
+
openCellPopover({
|
|
292
|
+
rowIndex: visibleRowIndex,
|
|
293
|
+
colIndex: colIndex
|
|
294
|
+
});
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
_defineProperty(_assertThisInitialized(_this), "handleCellExpansionClick", function () {
|
|
300
|
+
var _this$props7 = _this.props,
|
|
301
|
+
_this$props7$popoverC = _this$props7.popoverContext,
|
|
302
|
+
openCellPopover = _this$props7$popoverC.openCellPopover,
|
|
303
|
+
closeCellPopover = _this$props7$popoverC.closeCellPopover,
|
|
304
|
+
visibleRowIndex = _this$props7.visibleRowIndex,
|
|
305
|
+
colIndex = _this$props7.colIndex;
|
|
306
|
+
if (_this.isPopoverOpen()) {
|
|
307
|
+
closeCellPopover();
|
|
308
|
+
} else {
|
|
309
|
+
openCellPopover({
|
|
310
|
+
rowIndex: visibleRowIndex,
|
|
311
|
+
colIndex: colIndex
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
_defineProperty(_assertThisInitialized(_this), "onMouseEnter", function () {
|
|
316
|
+
return _this.setState({
|
|
317
|
+
isHovered: true
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
_defineProperty(_assertThisInitialized(_this), "onMouseLeave", function () {
|
|
321
|
+
return _this.setState({
|
|
322
|
+
isHovered: false
|
|
323
|
+
});
|
|
324
|
+
});
|
|
279
325
|
return _this;
|
|
280
326
|
}
|
|
281
327
|
_createClass(EuiDataGridCell, [{
|
|
282
328
|
key: "componentDidMount",
|
|
283
329
|
value: function componentDidMount() {
|
|
284
|
-
var _this$
|
|
285
|
-
colIndex = _this$
|
|
286
|
-
visibleRowIndex = _this$
|
|
330
|
+
var _this$props8 = this.props,
|
|
331
|
+
colIndex = _this$props8.colIndex,
|
|
332
|
+
visibleRowIndex = _this$props8.visibleRowIndex;
|
|
287
333
|
this.unsubscribeCell = this.context.onFocusUpdate([colIndex, visibleRowIndex], this.onFocusUpdate);
|
|
288
334
|
|
|
289
335
|
// Account for virtualization - when a cell unmounts when scrolled out of view
|
|
@@ -369,32 +415,32 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
369
415
|
}
|
|
370
416
|
if (nextState.cellProps !== this.state.cellProps) return true;
|
|
371
417
|
if (nextState.isFocused !== this.state.isFocused) return true;
|
|
418
|
+
if (nextState.isHovered !== this.state.isHovered) return true;
|
|
372
419
|
return false;
|
|
373
420
|
}
|
|
374
421
|
}, {
|
|
375
422
|
key: "render",
|
|
376
423
|
value: function render() {
|
|
377
424
|
var _classNames, _rowHeightsOptions$li;
|
|
378
|
-
var _this$
|
|
379
|
-
width = _this$
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
pagination = _this$props7.pagination,
|
|
392
|
-
rest = _objectWithoutProperties(_this$props7, _excluded2);
|
|
425
|
+
var _this$props9 = this.props,
|
|
426
|
+
width = _this$props9.width,
|
|
427
|
+
popoverContext = _this$props9.popoverContext,
|
|
428
|
+
interactiveCellId = _this$props9.interactiveCellId,
|
|
429
|
+
columnType = _this$props9.columnType,
|
|
430
|
+
className = _this$props9.className,
|
|
431
|
+
column = _this$props9.column,
|
|
432
|
+
style = _this$props9.style,
|
|
433
|
+
rowHeightUtils = _this$props9.rowHeightUtils,
|
|
434
|
+
rowHeightsOptions = _this$props9.rowHeightsOptions,
|
|
435
|
+
rowManager = _this$props9.rowManager,
|
|
436
|
+
pagination = _this$props9.pagination,
|
|
437
|
+
rest = _objectWithoutProperties(_this$props9, _excluded2);
|
|
393
438
|
var rowIndex = rest.rowIndex,
|
|
394
439
|
visibleRowIndex = rest.visibleRowIndex,
|
|
395
440
|
colIndex = rest.colIndex;
|
|
396
441
|
var isExpandable = this.isExpandable();
|
|
397
442
|
var popoverIsOpen = this.isPopoverOpen();
|
|
443
|
+
var showCellActions = isExpandable && (popoverIsOpen || this.state.isFocused || this.state.isHovered);
|
|
398
444
|
var cellClasses = classNames('euiDataGridRowCell', "euiDataGridRowCell--align".concat(this.state.cellTextAlign), (_classNames = {}, _defineProperty(_classNames, "euiDataGridRowCell--".concat(columnType), columnType), _defineProperty(_classNames, 'euiDataGridRowCell--open', popoverIsOpen), _classNames), className);
|
|
399
445
|
var ariaRowIndex = pagination ? visibleRowIndex + 1 + pagination.pageSize * pagination.pageIndex : visibleRowIndex + 1;
|
|
400
446
|
var _this$state$cellProps2 = this.state.cellProps,
|
|
@@ -415,23 +461,6 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
415
461
|
// column width, can be undefined
|
|
416
462
|
lineHeight: (_rowHeightsOptions$li = rowHeightsOptions === null || rowHeightsOptions === void 0 ? void 0 : rowHeightsOptions.lineHeight) !== null && _rowHeightsOptions$li !== void 0 ? _rowHeightsOptions$li : undefined
|
|
417
463
|
}, cellPropsStyle);
|
|
418
|
-
var handleCellKeyDown = function handleCellKeyDown(event) {
|
|
419
|
-
if (isExpandable) {
|
|
420
|
-
if (popoverIsOpen) {
|
|
421
|
-
return;
|
|
422
|
-
}
|
|
423
|
-
switch (event.key) {
|
|
424
|
-
case keys.ENTER:
|
|
425
|
-
case keys.F2:
|
|
426
|
-
event.preventDefault();
|
|
427
|
-
openCellPopover({
|
|
428
|
-
rowIndex: visibleRowIndex,
|
|
429
|
-
colIndex: colIndex
|
|
430
|
-
});
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
464
|
var rowHeight = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
|
|
436
465
|
var cellContentProps = _objectSpread(_objectSpread({}, rest), {}, {
|
|
437
466
|
setCellProps: this.setCellProps,
|
|
@@ -447,31 +476,6 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
447
476
|
isControlColumn: cellClasses.includes('euiDataGridRowCell--controlColumn'),
|
|
448
477
|
ariaRowIndex: ariaRowIndex
|
|
449
478
|
});
|
|
450
|
-
var cellActions = isExpandable ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiDataGridCellActions, {
|
|
451
|
-
rowIndex: rowIndex,
|
|
452
|
-
colIndex: colIndex,
|
|
453
|
-
column: column,
|
|
454
|
-
onExpandClick: function onExpandClick() {
|
|
455
|
-
if (popoverIsOpen) {
|
|
456
|
-
closeCellPopover();
|
|
457
|
-
} else {
|
|
458
|
-
openCellPopover({
|
|
459
|
-
rowIndex: visibleRowIndex,
|
|
460
|
-
colIndex: colIndex
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}), ___EmotionJSX("div", {
|
|
465
|
-
ref: this.popoverAnchorRef,
|
|
466
|
-
"data-test-subject": "cellPopoverAnchor"
|
|
467
|
-
})) : undefined;
|
|
468
|
-
var cellContent = ___EmotionJSX(HandleInteractiveChildren, {
|
|
469
|
-
cellEl: this.cellRef.current,
|
|
470
|
-
updateCellFocusContext: this.updateCellFocusContext,
|
|
471
|
-
renderFocusTrap: !isExpandable
|
|
472
|
-
}, ___EmotionJSX(EuiDataGridCellContent, _extends({}, cellContentProps, {
|
|
473
|
-
cellActions: cellActions
|
|
474
|
-
})));
|
|
475
479
|
var cell = ___EmotionJSX("div", _extends({
|
|
476
480
|
role: "gridcell",
|
|
477
481
|
"aria-rowindex": ariaRowIndex,
|
|
@@ -489,8 +493,24 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
489
493
|
,
|
|
490
494
|
"data-gridcell-visible-row-index": this.props.visibleRowIndex // Affected by sorting & pagination
|
|
491
495
|
,
|
|
492
|
-
onKeyDown: handleCellKeyDown
|
|
493
|
-
|
|
496
|
+
onKeyDown: this.handleCellKeyDown,
|
|
497
|
+
onMouseEnter: this.onMouseEnter,
|
|
498
|
+
onMouseLeave: this.onMouseLeave
|
|
499
|
+
}), ___EmotionJSX(HandleInteractiveChildren, {
|
|
500
|
+
cellEl: this.cellRef.current,
|
|
501
|
+
updateCellFocusContext: this.updateCellFocusContext,
|
|
502
|
+
renderFocusTrap: !isExpandable
|
|
503
|
+
}, ___EmotionJSX(EuiDataGridCellContent, _extends({}, cellContentProps, {
|
|
504
|
+
cellActions: showCellActions && ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiDataGridCellActions, {
|
|
505
|
+
rowIndex: rowIndex,
|
|
506
|
+
colIndex: colIndex,
|
|
507
|
+
column: column,
|
|
508
|
+
onExpandClick: this.handleCellExpansionClick
|
|
509
|
+
}), ___EmotionJSX("div", {
|
|
510
|
+
ref: this.popoverAnchorRef,
|
|
511
|
+
"data-test-subject": "cellPopoverAnchor"
|
|
512
|
+
}))
|
|
513
|
+
}))));
|
|
494
514
|
return rowManager && !IS_JEST_ENVIRONMENT ? /*#__PURE__*/createPortal(cell, rowManager.getRow({
|
|
495
515
|
rowIndex: rowIndex,
|
|
496
516
|
visibleRowIndex: visibleRowIndex,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["size", "maxWidth", "minWidth", "side", "type", "children"];
|
|
4
|
+
var _excluded = ["size", "maxWidth", "minWidth", "onResize", "side", "type", "children"];
|
|
5
5
|
/*
|
|
6
6
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
7
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -22,6 +22,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22
22
|
maxWidth = _ref.maxWidth,
|
|
23
23
|
_ref$minWidth = _ref.minWidth,
|
|
24
24
|
minWidth = _ref$minWidth === void 0 ? 200 : _ref$minWidth,
|
|
25
|
+
onResize = _ref.onResize,
|
|
25
26
|
_ref$side = _ref.side,
|
|
26
27
|
side = _ref$side === void 0 ? 'right' : _ref$side,
|
|
27
28
|
_ref$type = _ref.type,
|
|
@@ -39,14 +40,19 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
39
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40
41
|
flyoutWidth = _useState2[0],
|
|
41
42
|
setFlyoutWidth = _useState2[1];
|
|
43
|
+
var _useState3 = useState(false),
|
|
44
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
45
|
+
callOnResize = _useState4[0],
|
|
46
|
+
setCallOnResize = _useState4[1];
|
|
42
47
|
|
|
43
48
|
// Must use state for the flyout ref in order for the useEffect to be correctly called after render
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
flyoutRef =
|
|
47
|
-
setFlyoutRef =
|
|
49
|
+
var _useState5 = useState(null),
|
|
50
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
51
|
+
flyoutRef = _useState6[0],
|
|
52
|
+
setFlyoutRef = _useState6[1];
|
|
48
53
|
var setRefs = useCombinedRefs([setFlyoutRef, ref]);
|
|
49
54
|
useEffect(function () {
|
|
55
|
+
setCallOnResize(false); // Don't call `onResize` for non-user width changes
|
|
50
56
|
setFlyoutWidth(flyoutRef ? getFlyoutMinMaxWidth(flyoutRef.offsetWidth) : 0);
|
|
51
57
|
}, [flyoutRef, getFlyoutMinMaxWidth, size]);
|
|
52
58
|
|
|
@@ -69,6 +75,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
69
75
|
setFlyoutWidth(getFlyoutMinMaxWidth(changedFlyoutWidth));
|
|
70
76
|
}, [getFlyoutMinMaxWidth, direction]);
|
|
71
77
|
var onMouseUp = useCallback(function () {
|
|
78
|
+
setCallOnResize(true);
|
|
72
79
|
initialMouseX.current = 0;
|
|
73
80
|
window.removeEventListener('mousemove', onMouseMove);
|
|
74
81
|
window.removeEventListener('mouseup', onMouseUp);
|
|
@@ -77,6 +84,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
77
84
|
}, [onMouseMove]);
|
|
78
85
|
var onMouseDown = useCallback(function (e) {
|
|
79
86
|
var _flyoutRef$offsetWidt;
|
|
87
|
+
setCallOnResize(false);
|
|
80
88
|
initialMouseX.current = getPosition(e, true);
|
|
81
89
|
initialWidth.current = (_flyoutRef$offsetWidt = flyoutRef === null || flyoutRef === void 0 ? void 0 : flyoutRef.offsetWidth) !== null && _flyoutRef$offsetWidt !== void 0 ? _flyoutRef$offsetWidt : 0;
|
|
82
90
|
|
|
@@ -88,6 +96,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
88
96
|
window.addEventListener('touchend', onMouseUp);
|
|
89
97
|
}, [flyoutRef, onMouseMove, onMouseUp]);
|
|
90
98
|
var onKeyDown = useCallback(function (e) {
|
|
99
|
+
setCallOnResize(true);
|
|
91
100
|
var KEYBOARD_OFFSET = 10;
|
|
92
101
|
switch (e.key) {
|
|
93
102
|
case keys.ARROW_RIGHT:
|
|
@@ -103,6 +112,15 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
103
112
|
});
|
|
104
113
|
}
|
|
105
114
|
}, [getFlyoutMinMaxWidth, direction]);
|
|
115
|
+
|
|
116
|
+
// To reduce unnecessary calls, only fire onResize callback:
|
|
117
|
+
// 1. After initial mount / on user width change events only
|
|
118
|
+
// 2. If not currently mouse dragging
|
|
119
|
+
useEffect(function () {
|
|
120
|
+
if (callOnResize) {
|
|
121
|
+
onResize === null || onResize === void 0 ? void 0 : onResize(flyoutWidth);
|
|
122
|
+
}
|
|
123
|
+
}, [onResize, callOnResize, flyoutWidth]);
|
|
106
124
|
return ___EmotionJSX(EuiFlyout, _extends({}, rest, {
|
|
107
125
|
size: flyoutWidth || size,
|
|
108
126
|
maxWidth: maxWidth,
|
|
@@ -62,16 +62,20 @@ export var EuiTextArea = function EuiTextArea(props) {
|
|
|
62
62
|
return {
|
|
63
63
|
onClick: function onClick() {
|
|
64
64
|
if (ref.current) {
|
|
65
|
-
|
|
65
|
+
// Updates the displayed value and fires `onChange` callbacks
|
|
66
|
+
// @see https://stackoverflow.com/questions/23892547/what-is-the-best-way-to-trigger-onchange-event-in-react-js
|
|
67
|
+
var nativeValueSetter = Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype, 'value').set;
|
|
68
|
+
nativeValueSetter.call(ref.current, '');
|
|
66
69
|
var event = new Event('input', {
|
|
67
70
|
bubbles: true,
|
|
68
71
|
cancelable: false
|
|
69
72
|
});
|
|
70
73
|
ref.current.dispatchEvent(event);
|
|
71
|
-
|
|
74
|
+
|
|
75
|
+
// Set focus back to the textarea
|
|
76
|
+
ref.current.focus();
|
|
72
77
|
}
|
|
73
78
|
},
|
|
74
|
-
|
|
75
79
|
'data-test-subj': 'clearTextAreaButton'
|
|
76
80
|
};
|
|
77
81
|
}
|
|
@@ -15,7 +15,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
15
15
|
|
|
16
16
|
import React, { useEffect, useRef, useCallback } from 'react';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
|
-
import { keys } from '../../services';
|
|
18
|
+
import { keys, useLatest } from '../../services';
|
|
19
19
|
import { useResizeObserver } from '../observer/resize_observer';
|
|
20
20
|
import { EuiResizableContainerContextProvider } from './context';
|
|
21
21
|
import { euiResizableButtonWithControls } from './resizable_button';
|
|
@@ -42,6 +42,10 @@ export var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
42
42
|
onResizeStart = _ref.onResizeStart,
|
|
43
43
|
onResizeEnd = _ref.onResizeEnd,
|
|
44
44
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
+
// Note: It's important to memoize consumer callbacks to prevent our own functions
|
|
46
|
+
// from reinstantiating unnecessarily & causing window event listeners to call stale closures
|
|
47
|
+
var onResizeEndRef = useLatest(onResizeEnd);
|
|
48
|
+
var onResizeStartRef = useLatest(onResizeStart);
|
|
45
49
|
var containerRef = useRef(null);
|
|
46
50
|
var isHorizontal = direction === 'horizontal';
|
|
47
51
|
var classes = classNames('euiResizableContainer', className);
|
|
@@ -68,10 +72,12 @@ export var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
68
72
|
}, [initialize, containerSize]);
|
|
69
73
|
var resizeContext = useRef({});
|
|
70
74
|
var resizeEnd = useCallback(function () {
|
|
71
|
-
|
|
75
|
+
var _onResizeEndRef$curre;
|
|
76
|
+
(_onResizeEndRef$curre = onResizeEndRef.current) === null || _onResizeEndRef$curre === void 0 ? void 0 : _onResizeEndRef$curre.call(onResizeEndRef);
|
|
72
77
|
resizeContext.current = {};
|
|
73
|
-
}, [
|
|
78
|
+
}, [onResizeEndRef]);
|
|
74
79
|
var resizeStart = useCallback(function (trigger, keyMoveDirection) {
|
|
80
|
+
var _onResizeStartRef$cur;
|
|
75
81
|
// If another resize starts while the previous one is still in progress
|
|
76
82
|
// (e.g. user presses opposite arrow to change direction while the first
|
|
77
83
|
// is still held down, or user presses an arrow while dragging with the
|
|
@@ -79,12 +85,12 @@ export var EuiResizableContainer = function EuiResizableContainer(_ref) {
|
|
|
79
85
|
if (resizeContext.current.trigger) {
|
|
80
86
|
resizeEnd();
|
|
81
87
|
}
|
|
82
|
-
|
|
88
|
+
(_onResizeStartRef$cur = onResizeStartRef.current) === null || _onResizeStartRef$cur === void 0 ? void 0 : _onResizeStartRef$cur.call(onResizeStartRef, trigger);
|
|
83
89
|
resizeContext.current = {
|
|
84
90
|
trigger: trigger,
|
|
85
91
|
keyMoveDirection: keyMoveDirection
|
|
86
92
|
};
|
|
87
|
-
}, [
|
|
93
|
+
}, [onResizeStartRef, resizeEnd]);
|
|
88
94
|
var onMouseDown = useCallback(function (event) {
|
|
89
95
|
var currentTarget = event.currentTarget;
|
|
90
96
|
var prevPanel = currentTarget.previousElementSibling;
|