mirror of
https://github.com/dream-num/univer.git
synced 2026-10-30 18:32:48 +08:00
chore(workspace): rename Basic to Basics
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { Plugin, UniverSheet } from '@univerjs/core';
|
||||
import { zh, en } from './Locale';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME'
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME'
|
||||
import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller';
|
||||
|
||||
export interface I<%= projectUpperValue %>PluginConfig {}
|
||||
|
||||
export class <%= projectUpperValue %>Plugin extends Plugin {
|
||||
private _<%= projectValue %>Controller: <%= projectUpperValue %>Controller;
|
||||
|
||||
|
||||
constructor(config ?: I<%= projectUpperValue %>PluginConfig) {
|
||||
super(<%= projectConstantValue %>_PLUGIN_NAME);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Plugin, UniverSheet, UniverDoc, UniverSlide } from '@univerjs/core';
|
||||
import { zh, en } from './Locale';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME'
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME'
|
||||
import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller';
|
||||
|
||||
export interface I<%= projectUpperValue %>PluginConfig {}
|
||||
@@ -33,7 +33,7 @@ export class <%= projectUpperValue %>Plugin extends Plugin {
|
||||
});
|
||||
|
||||
this._<%= projectValue %>Controller = new <%= projectUpperValue %>Controller(this);
|
||||
|
||||
|
||||
}
|
||||
|
||||
onMounted(): void {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { BaseComponentRender } from '@univerjs/base-ui';
|
||||
import { DocPlugin } from '@univerjs/base-docs';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basic/Const';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basics/Const';
|
||||
import { <%= projectUpperValue %>Plugin } from '../<%= projectUpperValue %>Plugin';
|
||||
|
||||
export class <%= projectUpperValue %>Controller {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Plugin, DocContext, UniverDoc } from '@univerjs/core';
|
||||
import { zh, en } from './Locale';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME'
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME'
|
||||
import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller';
|
||||
|
||||
export interface I<%= projectUpperValue %>PluginConfig {}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { PLUGIN_NAMES } from '@univerjs/core';
|
||||
import { BaseComponentRender } from '@univerjs/base-ui';
|
||||
import { IToolbarItemProps, SelectTypes, SheetPlugin } from '@univerjs/base-sheets';
|
||||
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basic/Const';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basics/Const';
|
||||
import { <%= projectUpperValue %>Plugin } from '../<%= projectUpperValue %>Plugin';
|
||||
|
||||
export class <%= projectUpperValue %>Controller {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Plugin, SheetContext, UniverSheet } from '@univerjs/core';
|
||||
import { zh, en } from './Locale';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME'
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME'
|
||||
import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller';
|
||||
|
||||
export interface I<%= projectUpperValue %>PluginConfig {}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { BaseComponentRender } from '@univerjs/base-ui';
|
||||
import { SlidePlugin } from '@univerjs/base-slides';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basic/Const';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME } from '../Basics/Const';
|
||||
import { <%= projectUpperValue %>Plugin } from '../<%= projectUpperValue %>Plugin';
|
||||
|
||||
export class <%= projectUpperValue %>Controller {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Plugin, SlideContext, UniverSlide } from '@univerjs/core';
|
||||
import { zh, en } from './Locale';
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basic/Const/PLUGIN_NAME'
|
||||
import { <%= projectConstantValue %>_PLUGIN_NAME} from './Basics/Const/PLUGIN_NAME'
|
||||
import { <%= projectUpperValue %>Controller } from './Controller/<%= projectUpperValue %>Controller';
|
||||
|
||||
export interface I<%= projectUpperValue %>PluginConfig {}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
/* Basic Options */
|
||||
/* Basics Options */
|
||||
// "incremental": true, /* Enable incremental compilation */
|
||||
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
|
||||
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { DocContext, Plugin, PLUGIN_NAMES, UniverSheet, Tools, AsyncFunction } f
|
||||
import { zh, en } from './Locale';
|
||||
import { IOCContainer } from '@univerjs/core';
|
||||
import { Component, getRefElement, isElement, ISlotProps, RefObject, render } from '@univerjs/base-ui';
|
||||
import { DocPluginObserve, install } from './Basic/Observer';
|
||||
import { DocPluginObserve, install } from './Basics/Observer';
|
||||
import { ToolbarController } from './Controller/ToolbarController';
|
||||
import { DocumentController } from './Controller/DocumentController';
|
||||
import { BaseDocContainerConfig, defaultLayout, DocContainer, IDocPluginConfigBase, ILayout } from './View/UI/DocContainer';
|
||||
|
||||
@@ -1 +1 @@
|
||||
// Basic business components
|
||||
// Basics business components
|
||||
|
||||
@@ -34,7 +34,7 @@ export function toYMD_1904(ord) {
|
||||
|
||||
// https://web.archive.org/web/20080209173858/https://www.microsoft.com/globaldev/DrIntl/columns/002/default.mspx
|
||||
// > [algorithm] is used in many Microsoft products, including all operating systems that
|
||||
// > support Arabic locales, Microsoft Office, COM, Visual Basic, VBA, and SQL Server 2000.
|
||||
// > support Arabic locales, Microsoft Office, COM, Visual Basics, VBA, and SQL Server 2000.
|
||||
export function toYMD_1317(ord) {
|
||||
if (ord === 60) {
|
||||
throw new Error('#VALUE!');
|
||||
|
||||
@@ -2,7 +2,7 @@ import { SlideContext, Plugin, PLUGIN_NAMES, UniverSheet, Tools, AsyncFunction }
|
||||
import { getRefElement, isElement, ISlotProps, RefObject, render } from '@univerjs/base-ui';
|
||||
import { Engine, RenderEngine } from '@univerjs/base-render';
|
||||
import { zh, en } from './Locale';
|
||||
import { install, SlidePluginObserve } from './Basic/Observer';
|
||||
import { install, SlidePluginObserve } from './Basics/Observer';
|
||||
import { ToolbarController } from './Controller/ToolbarController';
|
||||
import { SlideController } from './Controller/SlideController';
|
||||
import { InfoBarController } from './Controller/InfoBarController';
|
||||
|
||||
@@ -1 +1 @@
|
||||
// Basic business components
|
||||
// Basics business components
|
||||
|
||||
@@ -35,7 +35,7 @@ export type ILocaleOptions = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Basic English internationalization object
|
||||
* Basics English internationalization object
|
||||
*
|
||||
* The internationalized language pack of the plug-in will be dynamically loaded in each plug-in.
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Plugin, UniverSheet, UniverDoc, UniverSlide } from '@univerjs/core';
|
||||
import { zh, en } from './Locale';
|
||||
import { COLLABORATION_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME';
|
||||
import { COLLABORATION_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME';
|
||||
import { CollaborationController } from './Controller/CollaborationController';
|
||||
|
||||
export interface ICollaborationPluginConfig {
|
||||
|
||||
@@ -199,7 +199,7 @@ export interface IHeaderAndFooterBase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Basic properties of doc style
|
||||
* Basics properties of doc style
|
||||
*/
|
||||
export interface IDocStyleBase extends IMargin {
|
||||
pageNumberStart?: number; // pageNumberStart
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Locale, Nullable, PropsFrom } from '../Shared';
|
||||
import { Univer } from '../Basics';
|
||||
|
||||
/**
|
||||
* Basic function of plugin
|
||||
* Basics function of plugin
|
||||
*/
|
||||
export interface BasePlugin {
|
||||
context: ContextBase;
|
||||
|
||||
@@ -36,7 +36,7 @@ export type ILocaleOptions = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Basic English internationalization object
|
||||
* Basics English internationalization object
|
||||
*
|
||||
* The internationalized language pack of the plug-in will be dynamically loaded in each plug-in.
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@ import { FIND_PLUGIN_NAME } from './Const/PLUGIN_NAME';
|
||||
import { FindController } from './Controller/FindController';
|
||||
import en from './Locale/en';
|
||||
import zh from './Locale/zh';
|
||||
import { FindPluginObserve, install } from './Basic/Observer';
|
||||
import { FindPluginObserve, install } from './Basics/Observer';
|
||||
import { FindModalController } from './Controller/FindModalController';
|
||||
|
||||
export interface IFindPluginConfig {}
|
||||
|
||||
@@ -248,12 +248,12 @@ window.sheetFormula = {
|
||||
r: 1,
|
||||
c: 0,
|
||||
v: {
|
||||
v: 'Basic Function',
|
||||
v: 'Basics Function',
|
||||
ct: {
|
||||
fa: 'General',
|
||||
t: 'g',
|
||||
},
|
||||
m: 'Basic Function',
|
||||
m: 'Basics Function',
|
||||
bg: null,
|
||||
bl: 1,
|
||||
it: 0,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { $$, getNodeindex, xssDeal } from '@univerjs/base-ui';
|
||||
import { Nullable, Tools } from '@univerjs/core';
|
||||
import { FunList } from '../Basic';
|
||||
import { FunList } from '../Basics';
|
||||
|
||||
/**
|
||||
* Random color for formula cell input
|
||||
|
||||
@@ -2,8 +2,8 @@ import { FormulaEnginePlugin, IInterpreterDatasetConfig, SheetDataType, UnitData
|
||||
import { SheetPlugin } from '@univerjs/base-sheets';
|
||||
import { PLUGIN_NAMES, SheetContext } from '@univerjs/core';
|
||||
import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets';
|
||||
import { FORMULA_PLUGIN_NAME } from '../Basic';
|
||||
import { IFormulaConfig } from '../Basic/Interfaces/IFormula';
|
||||
import { FORMULA_PLUGIN_NAME } from '../Basics';
|
||||
import { IFormulaConfig } from '../Basics/Interfaces/IFormula';
|
||||
import { FormulaPlugin } from '../FormulaPlugin';
|
||||
import { FormulaDataModel } from '../Model/FormulaDataModel';
|
||||
import { FormulaLabel } from '../View/UI/FormulaLabel';
|
||||
|
||||
@@ -2,7 +2,7 @@ import { $$, getRefElement } from '@univerjs/base-ui';
|
||||
import { SheetPlugin } from '@univerjs/base-sheets';
|
||||
import { KeyCode, PLUGIN_NAMES, SheetContext } from '@univerjs/core';
|
||||
import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets';
|
||||
import { FORMULA_PLUGIN_NAME, FunList } from '../Basic';
|
||||
import { FORMULA_PLUGIN_NAME, FunList } from '../Basics';
|
||||
import { FormulaPlugin } from '../FormulaPlugin';
|
||||
import { HelpFunction, SearchFunction } from '../View/UI/FormulaPrompt';
|
||||
import { CellInputHandler } from './CellInputHandler';
|
||||
|
||||
@@ -2,7 +2,7 @@ import { ComponentChildren } from '@univerjs/base-ui';
|
||||
import { SheetPlugin } from '@univerjs/base-sheets';
|
||||
import { PLUGIN_NAMES } from '@univerjs/core';
|
||||
import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets';
|
||||
import { FormulaType, FORMULA_PLUGIN_NAME, FunList, SelectCategoryType } from '../Basic';
|
||||
import { FormulaType, FORMULA_PLUGIN_NAME, FunList, SelectCategoryType } from '../Basics';
|
||||
import { FormulaPlugin } from '../FormulaPlugin';
|
||||
import { SearchFormulaContent } from '../View/UI/SearchFormulaModal/SearchFormulaContent';
|
||||
import { SearchFormulaModal } from '../View/UI/SearchFormulaModal/SearchFormulaModal';
|
||||
|
||||
@@ -4,14 +4,14 @@ import { CellEditExtensionManager, CellInputExtensionManager, Icon } from '@univ
|
||||
import { SheetUIPlugin, SHEET_UI_PLUGIN_NAME } from '@univerjs/ui-plugin-sheets';
|
||||
import { zh, en } from './Locale';
|
||||
|
||||
import { IFormulaConfig } from './Basic/Interfaces/IFormula';
|
||||
import { FORMULA_PLUGIN_NAME } from './Basic/Const/PLUGIN_NAME';
|
||||
import { IFormulaConfig } from './Basics/Interfaces/IFormula';
|
||||
import { FORMULA_PLUGIN_NAME } from './Basics/Const/PLUGIN_NAME';
|
||||
import { FormulaController } from './Controller/FormulaController';
|
||||
import { firstLoader } from './Controller/FirstLoader';
|
||||
import { FormulaCellEditExtensionFactory } from './Basic/Register/FormulaCellEditExtension';
|
||||
import { FormulaCellInputExtensionFactory } from './Basic/Register/FormulaCellInputExtension';
|
||||
import { FormulaActionExtensionFactory } from './Basic/Register';
|
||||
import { FormulaPluginObserve, install } from './Basic/Observer';
|
||||
import { FormulaCellEditExtensionFactory } from './Basics/Register/FormulaCellEditExtension';
|
||||
import { FormulaCellInputExtensionFactory } from './Basics/Register/FormulaCellInputExtension';
|
||||
import { FormulaActionExtensionFactory } from './Basics/Register';
|
||||
import { FormulaPluginObserve, install } from './Basics/Observer';
|
||||
import { SearchFormulaController } from './Controller/SearchFormulaModalController';
|
||||
import { FormulaPromptController } from './Controller/FormulaPromptController';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Tools, Workbook } from '@univerjs/core';
|
||||
import { FormulaDataType } from '@univerjs/base-formula-engine';
|
||||
import { FORMULA_PLUGIN_NAME } from '../../Basic';
|
||||
import { FORMULA_PLUGIN_NAME } from '../../Basics';
|
||||
import { FormulaPlugin } from '../../FormulaPlugin';
|
||||
|
||||
export function SetFormulaRangeData(workbook: Workbook, formulaData: FormulaDataType): FormulaDataType {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ArrayFormulaDataType, FormulaDataType } from '@univerjs/base-formula-engine';
|
||||
import { ObjectMatrix } from '@univerjs/core';
|
||||
import { IFormulaConfig, RecalculationModeType } from '../Basic/Interfaces/IFormula';
|
||||
import { IFormulaConfig, RecalculationModeType } from '../Basics/Interfaces/IFormula';
|
||||
|
||||
export class FormulaDataModel {
|
||||
private _formulaData: FormulaDataType = {};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CommandManager } from '@univerjs/core';
|
||||
import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES';
|
||||
import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES';
|
||||
import { SetFormulaRangeDataAction } from './Action/SetFormulaRangeDataAction';
|
||||
|
||||
CommandManager.register(ACTION_NAMES.SET_FORMULA_RANGE_DATA_ACTION, SetFormulaRangeDataAction);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Component, createRef } from '@univerjs/base-ui';
|
||||
import { FormulaParamType, FormulaType } from '../../../Basic';
|
||||
import { FormulaParamType, FormulaType } from '../../../Basics';
|
||||
import styles from './index.module.less';
|
||||
|
||||
interface IProps {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { BaseButtonProps, BaseComponentSheet, BaseModalProps, BaseSelectProps, Component, FunctionComponent } from '@univerjs/base-ui';
|
||||
import { Nullable, Observer, Workbook } from '@univerjs/core';
|
||||
import { IConfig } from '../../Basic/Interfaces/IFormula';
|
||||
import { IConfig } from '../../Basics/Interfaces/IFormula';
|
||||
import styles from './index.module.less';
|
||||
|
||||
interface IProps {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { BaseComponentProps, Component, createRef, debounce, Input, Select } from '@univerjs/base-ui';
|
||||
import { FormulaType } from '../../../Basic';
|
||||
import { FormulaType } from '../../../Basics';
|
||||
import { FunListILabel, Label } from '../../../Controller/SearchFormulaModalController';
|
||||
import styles from './index.module.less';
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import { BaseButtonProps, BaseComponentSheet, BaseModalProps, BaseSelectProps, Component, createRef, FunctionComponent } from '@univerjs/base-ui';
|
||||
import { Nullable, Observer, Workbook } from '@univerjs/core';
|
||||
import * as func from '../../Basic/Const/FunctionList'; // 全部公式数组
|
||||
import { IConfig } from '../../Basic/Interfaces/IFormula';
|
||||
import * as func from '../../Basics/Const/FunctionList'; // 全部公式数组
|
||||
import { IConfig } from '../../Basics/Interfaces/IFormula';
|
||||
import styles from './index.module.less';
|
||||
|
||||
interface IProps {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BaseComponentProps, CellRange, Component } from '@univerjs/base-ui';
|
||||
import { FormulaParamType } from '../../../Basic';
|
||||
import { FormulaParamType } from '../../../Basics';
|
||||
import { FunParams } from '../../../Controller/SearchFormulaModalController';
|
||||
import styles from './index.module.less';
|
||||
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
import './Model/RegisterAction';
|
||||
|
||||
export * from './FormulaPlugin';
|
||||
export * from './Basic'
|
||||
export * from './Basics'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CommandManager } from '@univerjs/core';
|
||||
import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES';
|
||||
import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES';
|
||||
import { SetFrozenColumnsAction } from './SetFrozenColumnsAction';
|
||||
import { SetFrozenRowsAction } from './SetFrozenRowsAction';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { SheetActionBase, ISheetActionData, Workbook, ActionObservers, ActionTyp
|
||||
import { SetFrozenCancel } from '../Apply/SetFrozenCancel';
|
||||
import { SetFrozenColumns } from '../Apply/SetFrozenColumns';
|
||||
import { SetFrozenRows } from '../Apply/SetFrozenRows';
|
||||
import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES';
|
||||
import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES';
|
||||
|
||||
export class SetFrozenCancelAction extends SheetActionBase<ISheetActionData> {
|
||||
_numbers: number[] = [];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ISheetActionData, SheetActionBase, Workbook, ActionObservers, ActionType } from '@univerjs/core';
|
||||
import { SetFrozenColumns } from '../Apply/SetFrozenColumns';
|
||||
import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES';
|
||||
import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES';
|
||||
|
||||
export interface ISetFrozenColumnsActionData extends ISheetActionData {
|
||||
numColumns: number;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ISheetActionData, SheetActionBase, Workbook, ActionObservers, ActionType } from '@univerjs/core';
|
||||
import { SetFrozenRows } from '../Apply/SetFrozenRows';
|
||||
import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES';
|
||||
import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES';
|
||||
|
||||
export interface ISetFrozenRowsActionData extends ISheetActionData {
|
||||
numRows: number;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CommandManager, Worksheet, Command, SheetContext } from '@univerjs/core';
|
||||
import { ACTION_NAMES } from '../Basic/Enum/ACTION_NAMES';
|
||||
import { ACTION_NAMES } from '../Basics/Enum/ACTION_NAMES';
|
||||
|
||||
export class Freeze {
|
||||
private _commandManager: CommandManager;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user