"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initializeElementsSpec = exports.initializeElements = void 0; var _elements = require("../../i18n/elements"); var _area_chart = require("./area_chart"); var _bubble_chart = require("./bubble_chart"); var _debug = require("./debug"); var _dropdown_filter = require("./dropdown_filter"); var _filter_debug = require("./filter_debug"); var _horizontal_bar_chart = require("./horizontal_bar_chart"); var _horizontal_progress_bar = require("./horizontal_progress_bar"); var _horizontal_progress_pill = require("./horizontal_progress_pill"); var _image = require("./image"); var _line_chart = require("./line_chart"); var _markdown = require("./markdown"); var _metric = require("./metric"); var _pie = require("./pie"); var _plot = require("./plot"); var _progress_gauge = require("./progress_gauge"); var _progress_semicircle = require("./progress_semicircle"); var _progress_wheel = require("./progress_wheel"); var _repeat_image = require("./repeat_image"); var _reveal_image = require("./reveal_image"); var _shape = require("./shape"); var _table = require("./table"); var _time_filter = require("./time_filter"); var _vert_bar_chart = require("./vert_bar_chart"); var _vertical_progress_bar = require("./vertical_progress_bar"); var _vertical_progress_pill = require("./vertical_progress_pill"); var _tag_cloud = require("./tag_cloud"); var _metric_vis_legacy = require("./metric_vis_legacy"); var _metric_vis = require("./metric_vis"); var _heatmap = require("./heatmap"); var _pie_vis = require("./pie_vis"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ const elementSpecs = [_area_chart.areaChart, _bubble_chart.bubbleChart, _debug.debug, _dropdown_filter.dropdownFilter, _filter_debug.filterDebug, _image.image, _horizontal_bar_chart.horizontalBarChart, _horizontal_progress_bar.horizontalProgressBar, _horizontal_progress_pill.horizontalProgressPill, _line_chart.lineChart, _markdown.markdown, _pie.pie, _plot.plot, _progress_gauge.progressGauge, _progress_semicircle.progressSemicircle, _progress_wheel.progressWheel, _repeat_image.repeatImage, _reveal_image.revealImage, _shape.shape, _table.table, _time_filter.timeFilter, _vert_bar_chart.verticalBarChart, _vertical_progress_bar.verticalProgressBar, _vertical_progress_pill.verticalProgressPill, _tag_cloud.tagCloud, _heatmap.heatmap]; const notExposedElementsSpecs = [_metric_vis.metricVis, _metric_vis_legacy.legacyMetricVis, _pie_vis.pieVis]; const initializeElementFactories = [_metric.metricElementInitializer]; const initializeElements = (core, plugins) => { const specs = [...elementSpecs, ...initializeElementFactories.map(factory => factory(core, plugins))]; return (0, _elements.applyElementStrings)(specs); }; // For testing purpose. Will be removed after exposing `metricVis`, pieVis elements. exports.initializeElements = initializeElements; const initializeElementsSpec = (core, plugins) => { const specs = initializeElements(core, plugins); return [...(0, _elements.applyElementStrings)(notExposedElementsSpecs), ...specs]; }; exports.initializeElementsSpec = initializeElementsSpec;