diff --git a/src/plugins/data/common/search/aggs/utils/prop_filter.ts b/src/plugins/data/common/search/aggs/utils/prop_filter.ts index 341032e47bf6..2670e3d26b82 100644 --- a/src/plugins/data/common/search/aggs/utils/prop_filter.ts +++ b/src/plugins/data/common/search/aggs/utils/prop_filter.ts @@ -37,7 +37,7 @@ type FilterFunc
= (item: T[P]) => boolean; * - fieldType filters a list of fields by their type property * - aggFilter filters a list of aggs by their name property * - * @returns the filter function which can be registered with angular + * @returns the filter function */ export function propFilter
(prop: P) {
/**
diff --git a/src/plugins/data/common/search/aggs/utils/to_angular_json.ts b/src/plugins/data/common/search/aggs/utils/to_angular_json.ts
index 0efafa7884a1..3eac6a1fcfe4 100644
--- a/src/plugins/data/common/search/aggs/utils/to_angular_json.ts
+++ b/src/plugins/data/common/search/aggs/utils/to_angular_json.ts
@@ -33,6 +33,7 @@
* https://github.com/angular/angular.js/blob/master/src/Angular.js#L1312
*
* @internal
+ * @deprecated This function will be removed in the next major version.
*/
export function toAngularJSON(obj: any, pretty?: any): string {
if (obj === undefined) return '';
diff --git a/src/plugins/opensearch_dashboards_legacy/public/index.ts b/src/plugins/opensearch_dashboards_legacy/public/index.ts
index ec74afc903f6..453bfd64dc82 100644
--- a/src/plugins/opensearch_dashboards_legacy/public/index.ts
+++ b/src/plugins/opensearch_dashboards_legacy/public/index.ts
@@ -36,6 +36,5 @@ export const plugin = (initializerContext: PluginInitializerContext) =>
export * from './plugin';
-export { PaginateDirectiveProvider, PaginateControlsDirectiveProvider } from './paginate/paginate';
export * from './notify';
export * from './utils';
diff --git a/src/plugins/opensearch_dashboards_legacy/public/paginate/_paginate.scss b/src/plugins/opensearch_dashboards_legacy/public/paginate/_paginate.scss
deleted file mode 100644
index ec346aa843c1..000000000000
--- a/src/plugins/opensearch_dashboards_legacy/public/paginate/_paginate.scss
+++ /dev/null
@@ -1,58 +0,0 @@
-/* stylelint-disable-next-line selector-type-no-unknown */
-paginate {
- display: block;
-
- /* stylelint-disable-next-line selector-type-no-unknown */
- paginate-controls {
- display: flex;
- align-items: center;
- padding: $euiSizeXS $euiSizeXS $euiSizeS;
- text-align: center;
-
- .pagination-other-pages {
- flex: 1 0 auto;
- display: flex;
- justify-content: center;
- }
-
- .pagination-other-pages-list {
- flex: 0 0 auto;
- display: flex;
- justify-content: center;
- padding: 0;
- margin: 0;
- list-style: none;
-
- > li {
- flex: 0 0 auto;
- user-select: none;
-
- a {
- text-decoration: none;
- background-color: $euiColorLightestShade;
- margin-left: $euiSizeXS / 2;
- padding: $euiSizeS $euiSizeM;
- }
-
- a:hover {
- text-decoration: underline;
- }
-
- &.active a {
- text-decoration: none !important;
- font-weight: $euiFontWeightBold;
- color: $euiColorDarkShade;
- cursor: default;
- }
- }
- }
-
- .pagination-size {
- flex: 0 0 auto;
-
- input[type="number"] {
- width: 3em;
- }
- }
- }
-}
diff --git a/src/plugins/opensearch_dashboards_legacy/public/paginate/paginate.d.ts b/src/plugins/opensearch_dashboards_legacy/public/paginate/paginate.d.ts
deleted file mode 100644
index 60f462aa5ffe..000000000000
--- a/src/plugins/opensearch_dashboards_legacy/public/paginate/paginate.d.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * SPDX-License-Identifier: Apache-2.0
- *
- * The OpenSearch Contributors require contributions made to
- * this file be licensed under the Apache-2.0 license or a
- * compatible open source license.
- *
- * Any modifications Copyright OpenSearch Contributors. See
- * GitHub history for details.
- */
-
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-export function PaginateDirectiveProvider($parse: any, $compile: any): any;
-export function PaginateControlsDirectiveProvider(): any;
diff --git a/src/plugins/opensearch_dashboards_legacy/public/paginate/paginate.js b/src/plugins/opensearch_dashboards_legacy/public/paginate/paginate.js
deleted file mode 100644
index 1f78a7f715d9..000000000000
--- a/src/plugins/opensearch_dashboards_legacy/public/paginate/paginate.js
+++ /dev/null
@@ -1,242 +0,0 @@
-/*
- * SPDX-License-Identifier: Apache-2.0
- *
- * The OpenSearch Contributors require contributions made to
- * this file be licensed under the Apache-2.0 license or a
- * compatible open source license.
- *
- * Any modifications Copyright OpenSearch Contributors. See
- * GitHub history for details.
- */
-
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import _ from 'lodash';
-import { i18n } from '@osd/i18n';
-import './_paginate.scss';
-import paginateControlsTemplate from './paginate_controls.html';
-
-export function PaginateDirectiveProvider($parse, $compile) {
- return {
- restrict: 'E',
- scope: true,
- link: {
- pre: function ($scope, $el, attrs) {
- if (_.isUndefined(attrs.bottomControls)) attrs.bottomControls = true;
- if ($el.find('paginate-controls.paginate-bottom').length === 0 && attrs.bottomControls) {
- $el.append($compile('
-
-