Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
feat: export facade api
Wenzhao Hu1d4b185f35a4
diff --git a/packages/facade/src/apis/sheets/f-all-sheets.ts b/packages/facade/src/apis/sheets/f-all-sheets.tsdeleted file mode 100644index cf732b1e13..0000000000--- a/packages/facade/src/apis/sheets/f-all-sheets.ts+++ /dev/null@@ -1,16 +0,0 @@-/**- * Copyright 2023-present DreamNum Inc.- *- * Licensed 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.- */-diff --git a/packages/facade/src/apis/sheets/f-filter.ts b/packages/facade/src/apis/sheets/f-filter.tsindex 0905f3dee7..b8c6a4cba5 100644--- a/packages/facade/src/apis/sheets/f-filter.ts+++ b/packages/facade/src/apis/sheets/f-filter.ts@@ -36,6 +36,14 @@ export class FFilter {// empty}+ /**+ * Get the filtered out rows by this filter.+ * @returns {number[]} Filtered out rows by this filter.+ */+ getFilteredOutRows(): number[] {+ return Array.from(this._filterModel.filteredOutRows).sort();+ }+/*** Get the filter criteria of a column.* @param {number} col The column number.diff --git a/packages/facade/src/index.ts b/packages/facade/src/index.tsindex 7b69633046..3541002e5d 100644--- a/packages/facade/src/index.ts+++ b/packages/facade/src/index.ts@@ -15,9 +15,21 @@*/export type { FontLine, FontStyle, FontWeight } from './apis/sheets/f-range';+export { FUniver } from './apis/facade';++export { FHooks } from './apis/f-hooks';++// #region+export { FDataValidation } from './apis/sheets/f-data-validation';+export { FDataValidationBuilder } from './apis/sheets/f-data-validation-builder';+export { FFilter } from './apis/sheets/f-filter';+export { FFormula } from './apis/sheets/f-formula';+export { FPermission } from './apis/sheets/f-permission';export { FRange } from './apis/sheets/f-range';export { FSelection } from './apis/sheets/f-selection';+export { FSheetHooks } from './apis/sheets/f-sheet-hooks';export { FWorkbook } from './apis/sheets/f-workbook';export { FWorksheet } from './apis/sheets/f-worksheet';-export { FFilter } from './apis/sheets/f-filter';++// #endregion