@univerjs/find-replace 1.0.0-alpha.0 → 1.0.0-insiders.20260629-12f2e44

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.
Files changed (83) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -0
  3. package/lib/cjs/locale/ca-ES.js +1 -0
  4. package/lib/cjs/locale/de-DE.js +1 -0
  5. package/lib/cjs/locale/en-US.js +1 -0
  6. package/lib/cjs/locale/es-ES.js +1 -0
  7. package/lib/cjs/locale/fa-IR.js +1 -0
  8. package/lib/cjs/locale/fr-FR.js +1 -0
  9. package/lib/cjs/locale/id-ID.js +1 -0
  10. package/lib/cjs/locale/it-IT.js +1 -0
  11. package/lib/cjs/locale/ja-JP.js +1 -0
  12. package/lib/cjs/locale/ko-KR.js +1 -0
  13. package/lib/cjs/locale/pl-PL.js +1 -0
  14. package/lib/cjs/locale/pt-BR.js +1 -0
  15. package/lib/cjs/locale/ru-RU.js +1 -0
  16. package/lib/cjs/locale/sk-SK.js +1 -0
  17. package/lib/cjs/locale/vi-VN.js +1 -0
  18. package/lib/cjs/locale/zh-CN.js +1 -0
  19. package/lib/cjs/locale/zh-HK.js +1 -0
  20. package/lib/cjs/locale/zh-TW.js +1 -0
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -0
  23. package/lib/es/locale/ca-ES.js +1 -0
  24. package/lib/es/locale/de-DE.js +1 -0
  25. package/lib/es/locale/en-US.js +1 -0
  26. package/lib/es/locale/es-ES.js +1 -0
  27. package/lib/es/locale/fa-IR.js +1 -0
  28. package/lib/es/locale/fr-FR.js +1 -0
  29. package/lib/es/locale/id-ID.js +1 -0
  30. package/lib/es/locale/it-IT.js +1 -0
  31. package/lib/es/locale/ja-JP.js +1 -0
  32. package/lib/es/locale/ko-KR.js +1 -0
  33. package/lib/es/locale/pl-PL.js +1 -0
  34. package/lib/es/locale/pt-BR.js +1 -0
  35. package/lib/es/locale/ru-RU.js +1 -0
  36. package/lib/es/locale/sk-SK.js +1 -0
  37. package/lib/es/locale/vi-VN.js +1 -0
  38. package/lib/es/locale/zh-CN.js +1 -0
  39. package/lib/es/locale/zh-HK.js +1 -0
  40. package/lib/es/locale/zh-TW.js +1 -0
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -0
  43. package/lib/locale/ca-ES.js +1 -0
  44. package/lib/locale/de-DE.js +1 -0
  45. package/lib/locale/en-US.js +1 -0
  46. package/lib/locale/es-ES.js +1 -0
  47. package/lib/locale/fa-IR.js +1 -0
  48. package/lib/locale/fr-FR.js +1 -0
  49. package/lib/locale/id-ID.js +1 -0
  50. package/lib/locale/it-IT.js +1 -0
  51. package/lib/locale/ja-JP.js +1 -0
  52. package/lib/locale/ko-KR.js +1 -0
  53. package/lib/locale/pl-PL.js +1 -0
  54. package/lib/locale/pt-BR.js +1 -0
  55. package/lib/locale/ru-RU.js +1 -0
  56. package/lib/locale/sk-SK.js +1 -0
  57. package/lib/locale/vi-VN.js +1 -0
  58. package/lib/locale/zh-CN.js +1 -0
  59. package/lib/locale/zh-HK.js +1 -0
  60. package/lib/locale/zh-TW.js +1 -0
  61. package/lib/types/locale/en-US.d.ts +1 -0
  62. package/lib/umd/index.js +1 -1
  63. package/lib/umd/locale/ar-SA.js +1 -1
  64. package/lib/umd/locale/ca-ES.js +1 -1
  65. package/lib/umd/locale/de-DE.js +1 -1
  66. package/lib/umd/locale/en-US.js +1 -1
  67. package/lib/umd/locale/es-ES.js +1 -1
  68. package/lib/umd/locale/fa-IR.js +1 -1
  69. package/lib/umd/locale/fr-FR.js +1 -1
  70. package/lib/umd/locale/id-ID.js +1 -1
  71. package/lib/umd/locale/it-IT.js +1 -1
  72. package/lib/umd/locale/ja-JP.js +1 -1
  73. package/lib/umd/locale/ko-KR.js +1 -1
  74. package/lib/umd/locale/pl-PL.js +1 -1
  75. package/lib/umd/locale/pt-BR.js +1 -1
  76. package/lib/umd/locale/ru-RU.js +1 -1
  77. package/lib/umd/locale/sk-SK.js +1 -1
  78. package/lib/umd/locale/vi-VN.js +1 -1
  79. package/lib/umd/locale/zh-CN.js +1 -1
  80. package/lib/umd/locale/zh-HK.js +1 -1
  81. package/lib/umd/locale/zh-TW.js +1 -1
  82. package/package.json +7 -7
  83. package/LICENSE +0 -176
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@univerjs/core"),require("@univerjs/design"),require("@univerjs/ui"),require("@univerjs/engine-render"),require("rxjs"),require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`@univerjs/core`,`@univerjs/design`,`@univerjs/ui`,`@univerjs/engine-render`,`rxjs`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverFindReplace={},e.UniverCore,e.UniverDesign,e.UniverUi,e.UniverEngineRender,e.rxjs,e.React,e.React))})(this,function(e,t,n,r,i,a,o,s){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});let c=`FIND_REPLACE_INPUT_FOCUS`,l=`FIND_REPLACE_DIALOG_FOCUS`,u=`FIND_REPLACE_REPLACE_REVEALED`;function d(e){"@babel/helpers - typeof";return d=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},d(e)}function f(e,t){if(d(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(d(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function p(e){var t=f(e,`string`);return d(t)==`symbol`?t:t+``}function m(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(n,r){t(n,r,e)}}function g(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var _=class extends t.Disposable{};let v=(0,t.createIdentifier)(`find-replace.service`);function y(e){return e.findString!==void 0||e.inputtingFindString!==void 0||e.findDirection!==void 0||e.matchesTheWholeCell!==void 0||e.caseSensitive!==void 0||e.findScope!==void 0||e.findBy!==void 0}let b=class extends t.Disposable{get searched(){return this._findModels.length>0}constructor(e,t,n,r){super(),this._state=e,this._providers=t,this._univerInstanceService=n,this._commandService=r,m(this,`currentMatch$`,new a.BehaviorSubject(null)),m(this,`replaceables$`,new a.BehaviorSubject([])),m(this,`_findModels`,[]),m(this,`_matchingModel`,null),m(this,`_matches`,[]),m(this,`_currentSearchingDisposables`,null),this.disposeWithMe(this._state.stateUpdates$.pipe((0,a.throttleTime)(200,void 0,{leading:!0,trailing:!0})).subscribe(async e=>{let t=this._state.state;y(e)&&(t.findString!==``&&!t.replaceRevealed?(await this._startSearching(),this._state.changeState({findCompleted:!0})):e.replaceRevealed!==!0&&this._stopSearching())}))}dispose(){super.dispose(),this._stopSearching(),this.currentMatch$.complete(),this.replaceables$.complete(),this._state.changeState({...w(),revealed:!1})}async start(){if(!this._state.findString)return{results:[]};let e=await this._startSearching();return this._state.changeState({findCompleted:!0}),e}focusSelection(){var e;(e=this._matchingModel)==null||e.focusSelection()}async _startSearching(){if(!this._state.findString)return{results:[]};let e=Array.from(this._providers),t=this._findModels=(await Promise.all(e.map(e=>e.find({findString:this._state.findString,findDirection:this._state.findDirection,findScope:this._state.findScope,findBy:this._state.findBy,replaceRevealed:this._state.replaceRevealed,caseSensitive:this._state.caseSensitive,matchesTheWholeCell:this._state.matchesTheWholeCell})))).flat();this._subscribeToModelsChanges(t);let n=this._matches=t.map(e=>e.getMatches()).flat();return this.replaceables$.next(n.filter(e=>e.replaceable)),n.length?(this._moveToInitialMatch(t),this._state.changeState({matchesCount:n.length}),{results:n}):(this._state.changeState({matchesCount:0,matchesPosition:0}),{results:[]})}_stopSearching(){var e;this._providers.forEach(e=>e.terminate()),this._findModels=[],this._matches=[],this._matchingModel=null,(e=this._currentSearchingDisposables)==null||e.dispose(),this._currentSearchingDisposables=null,this.currentMatch$.next(null),this.replaceables$.next([]),this._state.changeState({findCompleted:!1,matchesCount:0,matchesPosition:0})}_subscribeToModelsChanges(e){let n=this._currentSearchingDisposables=new t.DisposableCollection,r=(0,a.combineLatest)(e.map(e=>e.matchesUpdate$)).pipe((0,a.debounceTime)(220)).subscribe(([...e])=>{let t=this._matches=e.flat();t.length?(this._moveToInitialMatch(this._findModels,!0),this._state.changeState({matchesCount:t.length}),this.replaceables$.next(t.filter(e=>e.replaceable))):(this._state.changeState({matchesCount:0,matchesPosition:0}),this.replaceables$.next([]))});e.forEach(e=>n.add((0,t.toDisposable)(e.activelyChangingMatch$.subscribe(e=>{let t=this._matches.findIndex(t=>t===e);this._state.changeState({matchesPosition:t+1})})))),n.add((0,t.toDisposable)(r))}async replace(){return this._matchingModel?this._matchingModel.replace(this._state.replaceString):!1}async replaceAll(){let e=await Promise.all(this._findModels.map(e=>e.replaceAll(this._state.replaceString))).then(e=>e.reduce((e,t)=>(e.success+=t.success,e.failure+=t.failure,e),{success:0,failure:0}));return e.failure===0&&this._stopSearching(),e}getCurrentMatch(){return this._state.matchesPosition>0?this._matches[this._state.matchesPosition-1]:null}_markMatch(e){let t=this._matches.findIndex(t=>t===e);this.currentMatch$.next(e),this._state.changeState({matchesPosition:t+1})}moveToNextMatch(){if(!this._matchingModel)return;let e=this._findModels.length===1,t=this._matchingModel.moveToNextMatch({loop:e});if(t)return this._markMatch(t),t;{let e=this._findModels.findIndex(e=>e===this._matchingModel);return this._moveToNextUnitMatch(e)}}_moveToNextUnitMatch(e){let t=this._findModels.length;for(let n=(e+1)%t;n!==e;){let e=this._findModels[n],r=e.moveToNextMatch({ignoreSelection:!0});if(r)return this._matchingModel=e,this._markMatch(r),r;n=(n+1)%t}if(this._matchingModel){let e=this._matchingModel.moveToNextMatch({ignoreSelection:!0});return e&&this._markMatch(e),e}}moveToPreviousMatch(){if(!this._matchingModel)return;let e=this._findModels.length===1,t=this._matchingModel.moveToPreviousMatch({loop:e});if(t){let e=this._matches.findIndex(e=>e===t);return this.currentMatch$.next(t),this._state.changeState({matchesPosition:e+1}),t}else{let e=this._findModels.length,t=this._findModels.findIndex(e=>e===this._matchingModel);for(let n=(t-1+e)%e;n!==t;){let t=this._findModels[n],r=t.moveToPreviousMatch({ignoreSelection:!0});if(r)return this._matchingModel=t,this._markMatch(r),r;n=(n-1)%e}let n=this._matchingModel.moveToPreviousMatch({ignoreSelection:!0});return n&&this._markMatch(n),n}}_moveToInitialMatch(e,t=!1){var n;let r=(n=this._univerInstanceService.getFocusedUnit())==null?void 0:n.getUnitId();if(!r)return-1;let i=e.findIndex(e=>e.unitId===r);if(i!==-1){this._matchingModel=e[i];let n=this._matchingModel.moveToNextMatch({stayIfOnMatch:!0,noFocus:t});if(n)return this._markMatch(n),i}return this._moveToNextUnitMatch(i),0}};b=g([h(2,t.IUniverInstanceService),h(3,t.ICommandService)],b);let x=function(e){return e.ROW=`row`,e.COLUMN=`column`,e}({}),S=function(e){return e.VALUE=`value`,e.FORMULA=`formula`,e}({}),C=function(e){return e.SUBUNIT=`subunit`,e.UNIT=`unit`,e}({});function w(){return{caseSensitive:!1,findBy:`value`,findCompleted:!1,findDirection:`row`,findScope:`subunit`,findString:``,inputtingFindString:``,matchesCount:0,matchesPosition:0,matchesTheWholeCell:!1,replaceRevealed:!1,replaceString:``,revealed:!0}}var T=class{constructor(){m(this,`_stateUpdates$`,new a.Subject),m(this,`stateUpdates$`,this._stateUpdates$.asObservable()),m(this,`_state$`,new a.BehaviorSubject(w())),m(this,`state$`,this._state$.asObservable()),m(this,`_findString`,``),m(this,`_inputtingFindString`,``),m(this,`_replaceString`,``),m(this,`_revealed`,!1),m(this,`_replaceRevealed`,!1),m(this,`_matchesPosition`,0),m(this,`_matchesCount`,0),m(this,`_caseSensitive`,!0),m(this,`_matchesTheWholeCell`,!1),m(this,`_findDirection`,`row`),m(this,`_findScope`,`subunit`),m(this,`_findBy`,`value`),m(this,`_findCompleted`,!1)}get state(){return this._state$.getValue()}get inputtingFindString(){return this._inputtingFindString}get findString(){return this._findString}get revealed(){return this._revealed}get replaceRevealed(){return this._replaceRevealed}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get replaceString(){return this._replaceString}get caseSensitive(){return this._caseSensitive}get matchesTheWholeCell(){return this._matchesTheWholeCell}get findDirection(){return this._findDirection}get findScope(){return this._findScope}get findBy(){return this._findBy}get findCompleted(){return this._findCompleted}changeState(e){let t=!1,n={};e.findString!==void 0&&e.findString!==this._findString&&(this._findString=e.findString,n.findString=this._findString,t=!0),e.revealed!==void 0&&e.revealed!==this._revealed&&(this._revealed=e.revealed,n.revealed=e.revealed,t=!0),e.replaceRevealed!==void 0&&e.replaceRevealed!==this._replaceRevealed&&(this._replaceRevealed=e.replaceRevealed,n.replaceRevealed=e.replaceRevealed,t=!0),e.replaceString!==void 0&&e.replaceString!==this._replaceString&&(this._replaceString=e.replaceString,n.replaceString=e.replaceString,t=!0),e.matchesCount!==void 0&&e.matchesCount!==this._matchesCount&&(this._matchesCount=e.matchesCount,n.matchesCount=e.matchesCount,t=!0),e.matchesPosition!==void 0&&e.matchesPosition!==this._matchesPosition&&(this._matchesPosition=e.matchesPosition,n.matchesPosition=e.matchesPosition,t=!0),e.findBy!==void 0&&e.findBy!==this._findBy&&(this._findBy=e.findBy,n.findBy=e.findBy,t=!0),e.findScope!==void 0&&e.findScope!==this._findScope&&(this._findScope=e.findScope,n.findScope=e.findScope,t=!0),e.findDirection!==void 0&&e.findDirection!==this._findDirection&&(this._findDirection=e.findDirection,n.findDirection=e.findDirection,t=!0),e.caseSensitive!==void 0&&e.caseSensitive!==this._caseSensitive&&(this._caseSensitive=e.caseSensitive,n.caseSensitive=e.caseSensitive,t=!0),e.matchesTheWholeCell!==void 0&&e.matchesTheWholeCell!==this._matchesTheWholeCell&&(this._matchesTheWholeCell=e.matchesTheWholeCell,n.matchesTheWholeCell=e.matchesTheWholeCell,t=!0),e.inputtingFindString!==void 0&&e.inputtingFindString!==this._inputtingFindString&&(this._inputtingFindString=e.inputtingFindString,n.inputtingFindString=e.inputtingFindString,t=!0),e.findCompleted!==void 0&&e.findCompleted!==this._findCompleted&&(this._findCompleted=e.findCompleted,n.findCompleted=e.findCompleted,t=!0),t&&(this._state$.next({caseSensitive:this._caseSensitive,findBy:this._findBy,findCompleted:this._findCompleted,findDirection:this._findDirection,findScope:this._findScope,findString:this._findString,inputtingFindString:this._inputtingFindString,matchesCount:this._matchesCount,matchesPosition:this._matchesPosition,matchesTheWholeCell:this._matchesTheWholeCell,replaceRevealed:this._replaceRevealed,revealed:this._revealed}),this._stateUpdates$.next(n))}};let E=class extends t.Disposable{get stateUpdates$(){return this._state.stateUpdates$}get state$(){return this._state.state$}get revealed(){return this._state.revealed}get replaceRevealed(){return this._state.replaceRevealed}constructor(e,t){super(),this._injector=e,this._contextService=t,m(this,`_providers`,new Set),m(this,`_state`,new T),m(this,`_model`,void 0),m(this,`_modelDisposables`,null),m(this,`_currentMatch$`,new a.BehaviorSubject(null)),m(this,`currentMatch$`,this._currentMatch$.asObservable()),m(this,`_replaceables$`,new a.BehaviorSubject([])),m(this,`replaceables$`,this._replaceables$.asObservable()),m(this,`_focusSignal$`,new a.Subject),m(this,`focusSignal$`,this._focusSignal$.asObservable())}dispose(){super.dispose(),this._currentMatch$.next(null),this._currentMatch$.complete(),this._replaceables$.next([]),this._replaceables$.complete(),this._focusSignal$.complete()}getProviders(){return this._providers}getCurrentMatch(){var e;return(e=this._model)==null?void 0:e.getCurrentMatch()}getFindString(){return this._state.findString}changeFindString(e){this._state.changeState({findString:e})}focusFindInput(){this._focusSignal$.next()}changeInputtingFindString(e){e?this._state.changeState({inputtingFindString:e}):this._state.changeState({inputtingFindString:``,findString:``})}changeReplaceString(e){this._state.changeState({replaceString:e})}changeMatchesTheWholeCell(e){this._state.changeState({matchesTheWholeCell:e})}changeCaseSensitive(e){this._state.changeState({caseSensitive:e})}changeFindBy(e){this._state.changeState({findBy:e}),this._toggleDisplayRawFormula(e===`formula`)}changeFindScope(e){this._state.changeState({findScope:e})}changeFindDirection(e){this._state.changeState({findDirection:e})}moveToNextMatch(){this._model&&(this._state.replaceRevealed&&!this._model.searched?(this._state.changeState({findString:this._state.inputtingFindString}),this._model.start()):this._model.moveToNextMatch(),this._focusSignal$.next())}moveToPreviousMatch(){this._model&&(this._state.replaceRevealed&&!this._model.searched?(this._state.changeState({findString:this._state.inputtingFindString}),this._model.start()):this._model.moveToPreviousMatch(),this._focusSignal$.next())}async replace(){return this._model?this._model.replace():!1}async replaceAll(){if(!this._model)throw Error(`[FindReplaceService] replaceAll: model is not initialized!`);return this._model.replaceAll()}revealReplace(){this._state.changeState({replaceRevealed:!0,inputtingFindString:this._state.findString}),this._toggleRevealReplace(!0)}focusSelection(){var e;(e=this._model)==null||e.focusSelection()}start(e=!1){if(this._providers.size===0)return!1;this._model=this._injector.createInstance(b,this._state,this._providers),this._modelDisposables=new t.DisposableCollection,this._modelDisposables.add((0,t.toDisposable)(this._model.currentMatch$.subscribe(e=>this._currentMatch$.next(e)))),this._modelDisposables.add((0,t.toDisposable)(this._model.replaceables$.subscribe(e=>this._replaceables$.next(e))));let n=w();return e&&(n.replaceRevealed=!0),this._state.changeState(n),this._toggleRevealReplace(e),!0}find(){var e;(e=this._model)==null||e.start()}terminate(){var e,t;(e=this._model)==null||e.dispose(),this._model=null,(t=this._modelDisposables)==null||t.dispose(),this._modelDisposables=null,this._toggleDisplayRawFormula(!1),this._toggleRevealReplace(!1)}registerFindReplaceProvider(e){return this._providers.add(e),(0,t.toDisposable)(()=>this._providers.delete(e))}_toggleRevealReplace(e){this._contextService.setContextValue(u,e)}_toggleDisplayRawFormula(e){this._contextService.setContextValue(i.RENDER_RAW_FORMULA_KEY,e)}};E=g([h(0,(0,t.Inject)(t.Injector)),h(1,t.IContextService)],E);let D={id:`ui.command.replace-current-match`,type:t.CommandType.COMMAND,handler:e=>e.get(v).replace()},O={id:`ui.command.replace-all-matches`,type:t.CommandType.COMMAND,handler:async e=>{let i=e.get(t.IConfirmService),a=e.get(t.LocaleService),o=e.get(r.IMessageService);if(!await i.confirm({id:`CONFIRM_REPLACE_ALL`,title:{title:a.t(`find-replace.replace.confirm.title`)},cancelText:a.t(`find-replace.button.cancel`),confirmText:a.t(`find-replace.button.confirm`)}))return!1;let{success:s,failure:c}=await e.get(v).replaceAll();return c>0?(s===0?o.show({type:n.MessageType.Error,content:a.t(`find-replace.replace.all-failure`)}):o.show({type:n.MessageType.Warning,content:a.t(`find-replace.replace.partial-success`,`${s}`,`${c}`)}),!1):(o.show({type:n.MessageType.Success,content:a.t(`find-replace.replace.all-success`,`${s}`)}),!0)}},k={id:`ui.operation.open-find-dialog`,type:t.CommandType.OPERATION,handler:e=>{let t=e.get(v);return t.revealed?t.focusFindInput():t.start(),!0}},A={id:`ui.operation.open-replace-dialog`,type:t.CommandType.OPERATION,handler:e=>{let t=e.get(v);return t.revealed?t.replaceRevealed?t.focusFindInput():t.revealReplace():t.start(!0),!0}},j={type:t.CommandType.OPERATION,id:`ui.operation.go-to-next-match`,handler:e=>(e.get(v).moveToNextMatch(),!0)},M={type:t.CommandType.OPERATION,id:`ui.operation.go-to-previous-match`,handler:e=>(e.get(v).moveToPreviousMatch(),!0)},N={type:t.CommandType.OPERATION,id:`ui.operation.focus-selection`,handler:e=>(e.get(v).focusSelection(),!0)};function P(e){let n=e.get(t.IContextService);return{id:k.id,icon:`SearchIcon`,tooltip:`find-replace.toolbar`,type:r.MenuItemType.BUTTON,hidden$:(0,r.getMenuHiddenObservable)(e,t.UniverInstanceType.UNIVER_SHEET),disabled$:(0,a.combineLatest)([n.subscribeContextValue$(t.EDITOR_ACTIVATED),n.subscribeContextValue$(t.FOCUSING_SHEET)]).pipe((0,a.map)(([e,t])=>e||!t))}}let F={[r.RibbonDataGroup.ORGANIZATION]:{[k.id]:{order:2,menuItemFactory:P}}};function I(e){return e.getContextValue(l)}function L(e){return e.getContextValue(u)}function R(e){return e.getContextValue(c)}let z=`7_find-replace-shortcuts`;function B(e){return e.getContextValue(t.FOCUSING_SHEET)}function V(e){return!e.getContextValue(t.EDITOR_ACTIVATED)}let ee={id:k.id,description:`find-replace.shortcut.open-find-dialog`,binding:r.KeyCode.F|r.MetaKeys.CTRL_COMMAND,group:z,groupTitle:`find-replace.shortcut.panel`,preconditions(e){return!I(e)&&B(e)&&V(e)}},te={id:k.id,description:`find-replace.shortcut.open-find-dialog`,binding:r.KeyCode.F|r.MetaKeys.CTRL_COMMAND,mac:r.KeyCode.F|r.MetaKeys.MAC_CTRL,preconditions(e){return!I(e)&&B(e)&&V(e)}},H={id:A.id,description:`find-replace.shortcut.open-replace-dialog`,binding:r.KeyCode.H|r.MetaKeys.CTRL_COMMAND,mac:r.KeyCode.H|r.MetaKeys.MAC_CTRL,group:z,groupTitle:`find-replace.shortcut.panel`,preconditions(e){return B(e)&&V(e)&&(!I(e)||!L(e))}},ne={id:j.id,description:`find-replace.shortcut.go-to-next-match`,binding:r.KeyCode.ENTER,group:z,groupTitle:`find-replace.shortcut.panel`,priority:1e3,preconditions(e){return R(e)&&I(e)}},re={id:M.id,description:`find-replace.shortcut.go-to-previous-match`,binding:r.KeyCode.ENTER|r.MetaKeys.SHIFT,group:z,groupTitle:`find-replace.shortcut.panel`,priority:1e3,preconditions(e){return R(e)&&I(e)}},ie={id:N.id,description:`find-replace.shortcut.focus-selection`,binding:r.KeyCode.ESC,group:z,groupTitle:`find-replace.shortcut.panel`,priority:1e3,preconditions(e){return I(e)}},U=`DESKTOP_FIND_REPLACE_DIALOG`,W=class extends t.RxDisposable{constructor(e,t,n,r,i,a,o,s){super(),this._univerInstanceService=e,this._menuManagerService=t,this._shortcutService=n,this._commandService=r,this._findReplaceService=i,this._dialogService=a,this._layoutService=o,this._localeService=s,m(this,`_closingListenerDisposable`,void 0),this._initCommands(),this._initUI(),this._initShortcuts()}dispose(){var e;super.dispose(),(e=this._closingListenerDisposable)==null||e.dispose(),this._closingListenerDisposable=null}_initCommands(){[k,A,j,M,O,D,N].forEach(e=>{this.disposeWithMe(this._commandService.registerCommand(e))})}_initShortcuts(){[H,ee,te,re,ne,ie].forEach(e=>this.disposeWithMe(this._shortcutService.registerShortcut(e)))}_initUI(){this._menuManagerService.mergeMenu(F),this._findReplaceService.stateUpdates$.pipe((0,a.takeUntil)(this.dispose$)).subscribe(e=>{e.revealed===!0&&this._openPanel()})}_openPanel(){this._dialogService.open({id:U,draggable:!0,width:350,title:{title:this._localeService.t(`find-replace.dialog.title`)},children:{label:`FindReplaceDialog`},destroyOnClose:!0,mask:!1,maskClosable:!1,defaultPosition:ae(),preservePositionOnDestroy:!0,onClose:()=>this.closePanel()}),this._closingListenerDisposable=(0,t.toDisposable)(this._univerInstanceService.focused$.pipe((0,a.takeUntil)(this.dispose$)).subscribe(e=>{(!e||!this._univerInstanceService.getUniverSheetInstance(e))&&this.closePanel()}))}closePanel(){this._closingListenerDisposable&&(this._closingListenerDisposable.dispose(),this._closingListenerDisposable=null,this._dialogService.close(U),this._findReplaceService.terminate(),queueMicrotask(()=>this._layoutService.focus()))}};W=g([h(0,t.IUniverInstanceService),h(1,r.IMenuManagerService),h(2,r.IShortcutService),h(3,t.ICommandService),h(4,v),h(5,r.IDialogService),h(6,r.ILayoutService),h(7,(0,t.Inject)(t.LocaleService))],W);function ae(){let{innerWidth:e}=window;return{x:e-350-20,y:64}}var oe=`@univerjs/find-replace`,se=`1.0.0-alpha.0`;let G={};function K({ref:e,...t}){let{icon:n,id:r,className:i,extend:a,...s}=t,c=`univerjs-icon univerjs-icon-${r} ${i||``}`.trim(),l=(0,o.useRef)(`_${ue()}`);return q(n,`${r}`,{defIds:n.defIds,idSuffix:l.current},{ref:e,className:c,...s},a)}function q(e,t,n,r,i){return(0,o.createElement)(e.tag,{key:t,...ce(e,n,i),...r},(le(e,n).children||[]).map((r,a)=>q(r,`${t}-${e.tag}-${a}`,n,void 0,i)))}function ce(e,t,n){let r={...e.attrs};n!=null&&n.colorChannel1&&r.fill===`colorChannel1`&&(r.fill=n.colorChannel1),n!=null&&n.colorChannel1&&r.stroke===`colorChannel1`&&(r.stroke=n.colorChannel1),e.tag===`mask`&&r.id&&(r.id+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{e===`mask`&&typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))});let{defIds:i}=t;return!i||i.length===0?r:(e.tag===`use`&&r[`xlink:href`]&&(r[`xlink:href`]+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))}),r)}function le(e,t){var n;let{defIds:r}=t;return!r||r.length===0?e:e.tag===`defs`&&(n=e.children)!=null&&n.length?{...e,children:e.children.map(e=>typeof e.attrs.id==`string`&&r&&r.includes(e.attrs.id)?{...e,attrs:{...e.attrs,id:e.attrs.id+t.idSuffix}}:e)}:e}function ue(){return Math.random().toString(36).substring(2,8)}K.displayName=`UniverIcon`;let de={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M7.71899 1.36938C4.37604 1.36938 1.66602 4.07941 1.66602 7.42236C1.66602 10.7653 4.37604 13.4753 7.71899 13.4753C9.16744 13.4753 10.4971 12.9666 11.5389 12.118L13.6598 14.4109C13.8848 14.6542 14.2644 14.669 14.5077 14.444C14.7509 14.219 14.7657 13.8393 14.5407 13.5961L12.3906 11.2716C13.2536 10.2254 13.772 8.88442 13.772 7.42236C13.772 4.07941 11.0619 1.36938 7.71899 1.36938ZM2.86602 7.42236C2.86602 4.74215 5.03878 2.56938 7.71899 2.56938C10.3992 2.56938 12.572 4.74215 12.572 7.42236C12.572 10.1026 10.3992 12.2753 7.71899 12.2753C5.03878 12.2753 2.86602 10.1026 2.86602 7.42236Z`,fillRule:`evenodd`,clipRule:`evenodd`}}]},J=(0,o.forwardRef)(function(e,t){return(0,o.createElement)(K,Object.assign({},e,{id:`search-icon`,ref:t,icon:de}))});J.displayName=`SearchIcon`;function Y(e){let{findCompleted:i,matchesCount:a,matchesPosition:c,initialFindString:l,findReplaceService:u,onChange:d,...f}=e,p=(0,r.useDependency)(t.LocaleService),[m,h]=(0,o.useState)(l),g=i&&a===0?p.t(`find-replace.dialog.no-result`):a===0?` `:void 0;function _(e){c===a&&e===1?u.moveToNextMatch():c===1&&e===a||e<c?u.moveToPreviousMatch():u.moveToNextMatch()}return(0,s.jsx)(`div`,{className:`univer-relative univer-flex univer-items-center univer-gap-2`,onDrag:e=>e.stopPropagation(),children:(0,s.jsx)(n.Input,{"data-u-comp":`search-input`,autoFocus:!0,placeholder:p.t(`find-replace.dialog.find-placeholder`),value:m,onChange:e=>{h(e),d==null||d(e)},slot:(0,s.jsx)(n.Pager,{loop:!0,text:g,value:c,total:a,onChange:_}),...f})})}function X(e,t){let n=(0,o.useCallback)(()=>{var e;(e=document.querySelector(`.univer-find-input input`))==null||e.focus()},[]),r=(0,o.useCallback)(()=>{let e=document.querySelectorAll(`[data-u-comp=find-replace-dialog] [data-u-comp=search-input]`);return Array.from(e).some(e=>e===document.activeElement)},[]);return(0,o.useImperativeHandle)(t,()=>({focus:n,selectHasFocus:r})),(0,o.useEffect)(()=>{let t=e.focusSignal$.subscribe(()=>n());return()=>t.unsubscribe()},[e,n]),{focus:n,selectHasFocus:r}}let fe=(0,o.forwardRef)(function(e,n){let i=(0,r.useDependency)(t.LocaleService),a=(0,r.useDependency)(v),c=(0,r.useDependency)(t.ICommandService),{findCompleted:l,findString:u,matchesCount:d,matchesPosition:f}=(0,r.useObservable)(a.state$,void 0,!0),p=(0,o.useCallback)(()=>{c.executeCommand(A.id)},[c]),m=(0,r.useDebounceFn)(e=>a.changeFindString(e),500);return X(a,n),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y,{findCompleted:l,matchesCount:d,matchesPosition:f,findReplaceService:a,initialFindString:u,onChange:m}),(0,s.jsx)(`div`,{className:`univer-mt-4 univer-text-center`,children:(0,s.jsx)(`a`,{className:`hover:univer-text-primary-500/80 univer-cursor-pointer univer-text-sm univer-text-primary-500 univer-transition-colors`,onClick:p,children:i.t(`find-replace.dialog.advanced-finding`)})})]})}),Z=(0,o.forwardRef)(function(e,i){let a=(0,r.useDependency)(v),c=(0,r.useDependency)(t.LocaleService),l=(0,r.useDependency)(t.ICommandService),u=(0,r.useDependency)(r.IMessageService),d=(0,r.useObservable)(a.currentMatch$,void 0,!0),f=(0,r.useObservable)(a.replaceables$,void 0,!0),{matchesCount:p,matchesPosition:m,findString:h,inputtingFindString:g,replaceString:_,caseSensitive:y,matchesTheWholeCell:b,findDirection:x,findScope:S,findBy:C,findCompleted:w}=(0,r.useObservable)(a.state$,void 0,!0),T=g.length===0,E=p===0||!(d!=null&&d.replaceable),k=f.length===0,A=(0,o.useCallback)(e=>a.changeInputtingFindString(e),[a]),j=(0,o.useCallback)(e=>a.changeReplaceString(e),[a]),{focus:M}=X(a,i),N=(0,o.useCallback)(()=>{h===g?a.moveToNextMatch():(a.changeFindString(g),a.find())},[h,g,a]),P=(0,o.useCallback)(()=>l.executeCommand(D.id),[l]),F=(0,o.useCallback)(async()=>{await l.executeCommand(O.id),M()},[l]),I=(0,o.useCallback)(e=>{a.changeFindDirection(e)},[a]),L=(0,o.useCallback)(e=>{a.changeFindScope(e)},[a]),R=(0,o.useCallback)(e=>{a.changeFindBy(e)},[a]),z=me(c),B=he(c),V=ge(c);return(0,o.useEffect)(()=>{w&&p===0&&u.show({content:c.t(`find-replace.dialog.no-match`),type:n.MessageType.Warning,duration:5e3})},[w,p,u,c]),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.find`),children:(0,s.jsx)(Y,{findCompleted:w,className:`univer-find-input`,matchesCount:p,matchesPosition:m,findReplaceService:a,initialFindString:g,onChange:A})}),(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.replace`),children:(0,s.jsx)(n.Input,{placeholder:c.t(`find-replace.dialog.replace-placeholder`),value:_,onChange:e=>j(e)})}),(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.find-direction.title`),children:(0,s.jsx)(n.Select,{value:x,options:B,onChange:I})}),(0,s.jsx)(n.FormDualColumnLayout,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.find-scope.title`),children:(0,s.jsx)(n.Select,{value:S,options:z,onChange:L})}),(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.find-by.title`),children:(0,s.jsx)(n.Select,{value:C,options:V,onChange:R})})]})}),(0,s.jsx)(n.FormDualColumnLayout,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.FormLayout,{children:(0,s.jsx)(n.Checkbox,{checked:y,onChange:e=>{a.changeCaseSensitive(e)},children:c.t(`find-replace.dialog.case-sensitive`)})}),(0,s.jsx)(n.FormLayout,{children:(0,s.jsx)(n.Checkbox,{checked:b,onChange:e=>{a.changeMatchesTheWholeCell(e)},children:c.t(`find-replace.dialog.match-the-whole-cell`)})})]})}),(0,s.jsxs)(`div`,{className:`univer-mt-6 univer-flex univer-justify-between`,children:[(0,s.jsx)(n.Button,{variant:`primary`,onClick:N,disabled:T,children:c.t(`find-replace.dialog.find`)}),(0,s.jsxs)(`span`,{className:`univer-inline-flex univer-gap-2`,children:[(0,s.jsx)(n.Button,{disabled:E,onClick:P,children:c.t(`find-replace.dialog.replace`)}),(0,s.jsx)(n.Button,{disabled:k,onClick:F,children:c.t(`find-replace.dialog.replace-all`)})]})]})]})});function pe(){let e=(0,r.useDependency)(v),n=(0,r.useDependency)(r.ILayoutService),i=(0,r.useDependency)(t.IContextService),u=(0,r.useObservable)(e.state$,void 0,!0),d=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e;return d.current&&(e=n.registerContainerElement(d.current)),()=>e==null?void 0:e.dispose()},[n]);let f=(0,o.useRef)(null),p=(0,o.useCallback)(e=>i.setContextValue(l,e),[i]),m=(0,o.useCallback)(e=>i.setContextValue(c,e),[i]);return(0,o.useEffect)(()=>{var e;let t=(0,a.fromEvent)(document,`focusin`).subscribe(e=>{var t;e.target&&(t=d.current)!=null&&t.contains(e.target)?p(!0):p(!1),!f.current||!f.current.selectHasFocus()?m(!1):m(!0)});return(e=f.current)==null||e.focus(),p(!0),m(!0),()=>{t.unsubscribe(),p(!1)}},[p,m]),(0,s.jsx)(`div`,{ref:d,"data-u-comp":`find-replace-dialog`,children:u.replaceRevealed?(0,s.jsx)(Z,{ref:f}):(0,s.jsx)(fe,{ref:f})})}function me(e){return(0,o.useMemo)(()=>[{label:e.t(`find-replace.dialog.find-scope.current-sheet`),value:`subunit`},{label:e.t(`find-replace.dialog.find-scope.workbook`),value:`unit`}],[e.getCurrentLocale()])}function he(e){return(0,o.useMemo)(()=>[{label:e.t(`find-replace.dialog.find-direction.row`),value:`row`},{label:e.t(`find-replace.dialog.find-direction.column`),value:`column`}],[e.getCurrentLocale()])}function ge(e){return(0,o.useMemo)(()=>[{label:e.t(`find-replace.dialog.find-by.value`),value:`value`},{label:e.t(`find-replace.dialog.find-by.formula`),value:`formula`}],[e.getCurrentLocale()])}let Q=class extends t.Disposable{constructor(e,t){super(),this._componentManager=e,this._iconManager=t,this._registerIcons(),this._registerComponents()}_registerIcons(){this.disposeWithMe(this._iconManager.register({SearchIcon:J}))}_registerComponents(){[[`FindReplaceDialog`,pe]].forEach(([e,t])=>{this.disposeWithMe(this._componentManager.register(e,t))})}};Q=g([h(0,(0,t.Inject)(r.ComponentManager)),h(1,(0,t.Inject)(r.IconManager))],Q);let $=class extends t.Plugin{constructor(e=G,n,r){super(),this._config=e,this._injector=n,this._configService=r;let{...i}=(0,t.merge)({},G,this._config);this._configService.setConfig(`find-replace.config`,i)}onStarting(){this._injector.add([Q]),this._injector.get(Q),[[W],[v,{useClass:E}]].forEach(e=>this._injector.add(e))}onRendered(){this._injector.get(W)}};m($,`pluginName`,`UNIVER_FIND_REPLACE_PLUGIN`),m($,`packageName`,oe),m($,`version`,se),$=g([h(1,(0,t.Inject)(t.Injector)),h(2,t.IConfigService)],$),e.FindBy=S,e.FindDirection=x,e.FindModel=_,Object.defineProperty(e,"FindReplaceController",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"FindReplaceModel",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"FindReplaceService",{enumerable:!0,get:function(){return E}}),e.FindReplaceState=T,e.FindScope=C,e.GoToNextMatchOperation=j,e.GoToPreviousMatchOperation=M,e.IFindReplaceService=v,e.OpenFindDialogOperation=k,e.OpenReplaceDialogOperation=A,e.ReplaceAllMatchesCommand=O,e.ReplaceCurrentMatchCommand=D,Object.defineProperty(e,"UniverFindReplacePlugin",{enumerable:!0,get:function(){return $}}),e.createInitFindReplaceState=w});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@univerjs/core"),require("@univerjs/design"),require("@univerjs/ui"),require("@univerjs/engine-render"),require("rxjs"),require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`@univerjs/core`,`@univerjs/design`,`@univerjs/ui`,`@univerjs/engine-render`,`rxjs`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverFindReplace={},e.UniverCore,e.UniverDesign,e.UniverUi,e.UniverEngineRender,e.rxjs,e.React,e.React))})(this,function(e,t,n,r,i,a,o,s){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});let c=`FIND_REPLACE_INPUT_FOCUS`,l=`FIND_REPLACE_DIALOG_FOCUS`,u=`FIND_REPLACE_REPLACE_REVEALED`;function d(e){"@babel/helpers - typeof";return d=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},d(e)}function f(e,t){if(d(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(d(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function p(e){var t=f(e,`string`);return d(t)==`symbol`?t:t+``}function m(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(n,r){t(n,r,e)}}function g(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var _=class extends t.Disposable{};let v=(0,t.createIdentifier)(`find-replace.service`);function y(e){return e.findString!==void 0||e.inputtingFindString!==void 0||e.findDirection!==void 0||e.matchesTheWholeCell!==void 0||e.caseSensitive!==void 0||e.findScope!==void 0||e.findBy!==void 0}let b=class extends t.Disposable{get searched(){return this._findModels.length>0}constructor(e,t,n,r){super(),this._state=e,this._providers=t,this._univerInstanceService=n,this._commandService=r,m(this,`currentMatch$`,new a.BehaviorSubject(null)),m(this,`replaceables$`,new a.BehaviorSubject([])),m(this,`_findModels`,[]),m(this,`_matchingModel`,null),m(this,`_matches`,[]),m(this,`_currentSearchingDisposables`,null),this.disposeWithMe(this._state.stateUpdates$.pipe((0,a.throttleTime)(200,void 0,{leading:!0,trailing:!0})).subscribe(async e=>{let t=this._state.state;y(e)&&(t.findString!==``&&!t.replaceRevealed?(await this._startSearching(),this._state.changeState({findCompleted:!0})):e.replaceRevealed!==!0&&this._stopSearching())}))}dispose(){super.dispose(),this._stopSearching(),this.currentMatch$.complete(),this.replaceables$.complete(),this._state.changeState({...w(),revealed:!1})}async start(){if(!this._state.findString)return{results:[]};let e=await this._startSearching();return this._state.changeState({findCompleted:!0}),e}focusSelection(){var e;(e=this._matchingModel)==null||e.focusSelection()}async _startSearching(){if(!this._state.findString)return{results:[]};let e=Array.from(this._providers),t=this._findModels=(await Promise.all(e.map(e=>e.find({findString:this._state.findString,findDirection:this._state.findDirection,findScope:this._state.findScope,findBy:this._state.findBy,replaceRevealed:this._state.replaceRevealed,caseSensitive:this._state.caseSensitive,matchesTheWholeCell:this._state.matchesTheWholeCell})))).flat();this._subscribeToModelsChanges(t);let n=this._matches=t.map(e=>e.getMatches()).flat();return this.replaceables$.next(n.filter(e=>e.replaceable)),n.length?(this._moveToInitialMatch(t),this._state.changeState({matchesCount:n.length}),{results:n}):(this._state.changeState({matchesCount:0,matchesPosition:0}),{results:[]})}_stopSearching(){var e;this._providers.forEach(e=>e.terminate()),this._findModels=[],this._matches=[],this._matchingModel=null,(e=this._currentSearchingDisposables)==null||e.dispose(),this._currentSearchingDisposables=null,this.currentMatch$.next(null),this.replaceables$.next([]),this._state.changeState({findCompleted:!1,matchesCount:0,matchesPosition:0})}_subscribeToModelsChanges(e){let n=this._currentSearchingDisposables=new t.DisposableCollection,r=(0,a.combineLatest)(e.map(e=>e.matchesUpdate$)).pipe((0,a.debounceTime)(220)).subscribe(([...e])=>{let t=this._matches=e.flat();t.length?(this._moveToInitialMatch(this._findModels,!0),this._state.changeState({matchesCount:t.length}),this.replaceables$.next(t.filter(e=>e.replaceable))):(this._state.changeState({matchesCount:0,matchesPosition:0}),this.replaceables$.next([]))});e.forEach(e=>n.add((0,t.toDisposable)(e.activelyChangingMatch$.subscribe(e=>{let t=this._matches.findIndex(t=>t===e);this._state.changeState({matchesPosition:t+1})})))),n.add((0,t.toDisposable)(r))}async replace(){return this._matchingModel?this._matchingModel.replace(this._state.replaceString):!1}async replaceAll(){let e=await Promise.all(this._findModels.map(e=>e.replaceAll(this._state.replaceString))).then(e=>e.reduce((e,t)=>(e.success+=t.success,e.failure+=t.failure,e),{success:0,failure:0}));return e.failure===0&&this._stopSearching(),e}getCurrentMatch(){return this._state.matchesPosition>0?this._matches[this._state.matchesPosition-1]:null}_markMatch(e){let t=this._matches.findIndex(t=>t===e);this.currentMatch$.next(e),this._state.changeState({matchesPosition:t+1})}moveToNextMatch(){if(!this._matchingModel)return;let e=this._findModels.length===1,t=this._matchingModel.moveToNextMatch({loop:e});if(t)return this._markMatch(t),t;{let e=this._findModels.findIndex(e=>e===this._matchingModel);return this._moveToNextUnitMatch(e)}}_moveToNextUnitMatch(e){let t=this._findModels.length;for(let n=(e+1)%t;n!==e;){let e=this._findModels[n],r=e.moveToNextMatch({ignoreSelection:!0});if(r)return this._matchingModel=e,this._markMatch(r),r;n=(n+1)%t}if(this._matchingModel){let e=this._matchingModel.moveToNextMatch({ignoreSelection:!0});return e&&this._markMatch(e),e}}moveToPreviousMatch(){if(!this._matchingModel)return;let e=this._findModels.length===1,t=this._matchingModel.moveToPreviousMatch({loop:e});if(t){let e=this._matches.findIndex(e=>e===t);return this.currentMatch$.next(t),this._state.changeState({matchesPosition:e+1}),t}else{let e=this._findModels.length,t=this._findModels.findIndex(e=>e===this._matchingModel);for(let n=(t-1+e)%e;n!==t;){let t=this._findModels[n],r=t.moveToPreviousMatch({ignoreSelection:!0});if(r)return this._matchingModel=t,this._markMatch(r),r;n=(n-1)%e}let n=this._matchingModel.moveToPreviousMatch({ignoreSelection:!0});return n&&this._markMatch(n),n}}_moveToInitialMatch(e,t=!1){var n;let r=(n=this._univerInstanceService.getFocusedUnit())==null?void 0:n.getUnitId();if(!r)return-1;let i=e.findIndex(e=>e.unitId===r);if(i!==-1){this._matchingModel=e[i];let n=this._matchingModel.moveToNextMatch({stayIfOnMatch:!0,noFocus:t});if(n)return this._markMatch(n),i}return this._moveToNextUnitMatch(i),0}};b=g([h(2,t.IUniverInstanceService),h(3,t.ICommandService)],b);let x=function(e){return e.ROW=`row`,e.COLUMN=`column`,e}({}),S=function(e){return e.VALUE=`value`,e.FORMULA=`formula`,e}({}),C=function(e){return e.SUBUNIT=`subunit`,e.UNIT=`unit`,e}({});function w(){return{caseSensitive:!1,findBy:`value`,findCompleted:!1,findDirection:`row`,findScope:`subunit`,findString:``,inputtingFindString:``,matchesCount:0,matchesPosition:0,matchesTheWholeCell:!1,replaceRevealed:!1,replaceString:``,revealed:!0}}var T=class{constructor(){m(this,`_stateUpdates$`,new a.Subject),m(this,`stateUpdates$`,this._stateUpdates$.asObservable()),m(this,`_state$`,new a.BehaviorSubject(w())),m(this,`state$`,this._state$.asObservable()),m(this,`_findString`,``),m(this,`_inputtingFindString`,``),m(this,`_replaceString`,``),m(this,`_revealed`,!1),m(this,`_replaceRevealed`,!1),m(this,`_matchesPosition`,0),m(this,`_matchesCount`,0),m(this,`_caseSensitive`,!0),m(this,`_matchesTheWholeCell`,!1),m(this,`_findDirection`,`row`),m(this,`_findScope`,`subunit`),m(this,`_findBy`,`value`),m(this,`_findCompleted`,!1)}get state(){return this._state$.getValue()}get inputtingFindString(){return this._inputtingFindString}get findString(){return this._findString}get revealed(){return this._revealed}get replaceRevealed(){return this._replaceRevealed}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get replaceString(){return this._replaceString}get caseSensitive(){return this._caseSensitive}get matchesTheWholeCell(){return this._matchesTheWholeCell}get findDirection(){return this._findDirection}get findScope(){return this._findScope}get findBy(){return this._findBy}get findCompleted(){return this._findCompleted}changeState(e){let t=!1,n={};e.findString!==void 0&&e.findString!==this._findString&&(this._findString=e.findString,n.findString=this._findString,t=!0),e.revealed!==void 0&&e.revealed!==this._revealed&&(this._revealed=e.revealed,n.revealed=e.revealed,t=!0),e.replaceRevealed!==void 0&&e.replaceRevealed!==this._replaceRevealed&&(this._replaceRevealed=e.replaceRevealed,n.replaceRevealed=e.replaceRevealed,t=!0),e.replaceString!==void 0&&e.replaceString!==this._replaceString&&(this._replaceString=e.replaceString,n.replaceString=e.replaceString,t=!0),e.matchesCount!==void 0&&e.matchesCount!==this._matchesCount&&(this._matchesCount=e.matchesCount,n.matchesCount=e.matchesCount,t=!0),e.matchesPosition!==void 0&&e.matchesPosition!==this._matchesPosition&&(this._matchesPosition=e.matchesPosition,n.matchesPosition=e.matchesPosition,t=!0),e.findBy!==void 0&&e.findBy!==this._findBy&&(this._findBy=e.findBy,n.findBy=e.findBy,t=!0),e.findScope!==void 0&&e.findScope!==this._findScope&&(this._findScope=e.findScope,n.findScope=e.findScope,t=!0),e.findDirection!==void 0&&e.findDirection!==this._findDirection&&(this._findDirection=e.findDirection,n.findDirection=e.findDirection,t=!0),e.caseSensitive!==void 0&&e.caseSensitive!==this._caseSensitive&&(this._caseSensitive=e.caseSensitive,n.caseSensitive=e.caseSensitive,t=!0),e.matchesTheWholeCell!==void 0&&e.matchesTheWholeCell!==this._matchesTheWholeCell&&(this._matchesTheWholeCell=e.matchesTheWholeCell,n.matchesTheWholeCell=e.matchesTheWholeCell,t=!0),e.inputtingFindString!==void 0&&e.inputtingFindString!==this._inputtingFindString&&(this._inputtingFindString=e.inputtingFindString,n.inputtingFindString=e.inputtingFindString,t=!0),e.findCompleted!==void 0&&e.findCompleted!==this._findCompleted&&(this._findCompleted=e.findCompleted,n.findCompleted=e.findCompleted,t=!0),t&&(this._state$.next({caseSensitive:this._caseSensitive,findBy:this._findBy,findCompleted:this._findCompleted,findDirection:this._findDirection,findScope:this._findScope,findString:this._findString,inputtingFindString:this._inputtingFindString,matchesCount:this._matchesCount,matchesPosition:this._matchesPosition,matchesTheWholeCell:this._matchesTheWholeCell,replaceRevealed:this._replaceRevealed,revealed:this._revealed}),this._stateUpdates$.next(n))}};let E=class extends t.Disposable{get stateUpdates$(){return this._state.stateUpdates$}get state$(){return this._state.state$}get revealed(){return this._state.revealed}get replaceRevealed(){return this._state.replaceRevealed}constructor(e,t){super(),this._injector=e,this._contextService=t,m(this,`_providers`,new Set),m(this,`_state`,new T),m(this,`_model`,void 0),m(this,`_modelDisposables`,null),m(this,`_currentMatch$`,new a.BehaviorSubject(null)),m(this,`currentMatch$`,this._currentMatch$.asObservable()),m(this,`_replaceables$`,new a.BehaviorSubject([])),m(this,`replaceables$`,this._replaceables$.asObservable()),m(this,`_focusSignal$`,new a.Subject),m(this,`focusSignal$`,this._focusSignal$.asObservable())}dispose(){super.dispose(),this._currentMatch$.next(null),this._currentMatch$.complete(),this._replaceables$.next([]),this._replaceables$.complete(),this._focusSignal$.complete()}getProviders(){return this._providers}getCurrentMatch(){var e;return(e=this._model)==null?void 0:e.getCurrentMatch()}getFindString(){return this._state.findString}changeFindString(e){this._state.changeState({findString:e})}focusFindInput(){this._focusSignal$.next()}changeInputtingFindString(e){e?this._state.changeState({inputtingFindString:e}):this._state.changeState({inputtingFindString:``,findString:``})}changeReplaceString(e){this._state.changeState({replaceString:e})}changeMatchesTheWholeCell(e){this._state.changeState({matchesTheWholeCell:e})}changeCaseSensitive(e){this._state.changeState({caseSensitive:e})}changeFindBy(e){this._state.changeState({findBy:e}),this._toggleDisplayRawFormula(e===`formula`)}changeFindScope(e){this._state.changeState({findScope:e})}changeFindDirection(e){this._state.changeState({findDirection:e})}moveToNextMatch(){this._model&&(this._state.replaceRevealed&&!this._model.searched?(this._state.changeState({findString:this._state.inputtingFindString}),this._model.start()):this._model.moveToNextMatch(),this._focusSignal$.next())}moveToPreviousMatch(){this._model&&(this._state.replaceRevealed&&!this._model.searched?(this._state.changeState({findString:this._state.inputtingFindString}),this._model.start()):this._model.moveToPreviousMatch(),this._focusSignal$.next())}async replace(){return this._model?this._model.replace():!1}async replaceAll(){if(!this._model)throw Error(`[FindReplaceService] replaceAll: model is not initialized!`);return this._model.replaceAll()}revealReplace(){this._state.changeState({replaceRevealed:!0,inputtingFindString:this._state.findString}),this._toggleRevealReplace(!0)}focusSelection(){var e;(e=this._model)==null||e.focusSelection()}start(e=!1){if(this._providers.size===0)return!1;this._model=this._injector.createInstance(b,this._state,this._providers),this._modelDisposables=new t.DisposableCollection,this._modelDisposables.add((0,t.toDisposable)(this._model.currentMatch$.subscribe(e=>this._currentMatch$.next(e)))),this._modelDisposables.add((0,t.toDisposable)(this._model.replaceables$.subscribe(e=>this._replaceables$.next(e))));let n=w();return e&&(n.replaceRevealed=!0),this._state.changeState(n),this._toggleRevealReplace(e),!0}find(){var e;(e=this._model)==null||e.start()}terminate(){var e,t;(e=this._model)==null||e.dispose(),this._model=null,(t=this._modelDisposables)==null||t.dispose(),this._modelDisposables=null,this._toggleDisplayRawFormula(!1),this._toggleRevealReplace(!1)}registerFindReplaceProvider(e){return this._providers.add(e),(0,t.toDisposable)(()=>this._providers.delete(e))}_toggleRevealReplace(e){this._contextService.setContextValue(u,e)}_toggleDisplayRawFormula(e){this._contextService.setContextValue(i.RENDER_RAW_FORMULA_KEY,e)}};E=g([h(0,(0,t.Inject)(t.Injector)),h(1,t.IContextService)],E);let D={id:`ui.command.replace-current-match`,type:t.CommandType.COMMAND,handler:e=>e.get(v).replace()},O={id:`ui.command.replace-all-matches`,type:t.CommandType.COMMAND,handler:async e=>{let i=e.get(t.IConfirmService),a=e.get(t.LocaleService),o=e.get(r.IMessageService);if(!await i.confirm({id:`CONFIRM_REPLACE_ALL`,title:{title:a.t(`find-replace.replace.confirm.title`)},cancelText:a.t(`find-replace.button.cancel`),confirmText:a.t(`find-replace.button.confirm`)}))return!1;let{success:s,failure:c}=await e.get(v).replaceAll();return c>0?(s===0?o.show({type:n.MessageType.Error,content:a.t(`find-replace.replace.all-failure`)}):o.show({type:n.MessageType.Warning,content:a.t(`find-replace.replace.partial-success`,`${s}`,`${c}`)}),!1):(o.show({type:n.MessageType.Success,content:a.t(`find-replace.replace.all-success`,`${s}`)}),!0)}},k={id:`ui.operation.open-find-dialog`,type:t.CommandType.OPERATION,handler:e=>{let t=e.get(v);return t.revealed?t.focusFindInput():t.start(),!0}},A={id:`ui.operation.open-replace-dialog`,type:t.CommandType.OPERATION,handler:e=>{let t=e.get(v);return t.revealed?t.replaceRevealed?t.focusFindInput():t.revealReplace():t.start(!0),!0}},j={type:t.CommandType.OPERATION,id:`ui.operation.go-to-next-match`,handler:e=>(e.get(v).moveToNextMatch(),!0)},M={type:t.CommandType.OPERATION,id:`ui.operation.go-to-previous-match`,handler:e=>(e.get(v).moveToPreviousMatch(),!0)},N={type:t.CommandType.OPERATION,id:`ui.operation.focus-selection`,handler:e=>(e.get(v).focusSelection(),!0)};function P(e){let n=e.get(t.IContextService);return{id:k.id,icon:`SearchIcon`,tooltip:`find-replace.toolbar`,type:r.MenuItemType.BUTTON,hidden$:(0,r.getMenuHiddenObservable)(e,t.UniverInstanceType.UNIVER_SHEET),disabled$:(0,a.combineLatest)([n.subscribeContextValue$(t.EDITOR_ACTIVATED),n.subscribeContextValue$(t.FOCUSING_SHEET)]).pipe((0,a.map)(([e,t])=>e||!t))}}let F={[r.RibbonDataGroup.ORGANIZATION]:{[k.id]:{order:2,menuItemFactory:P}}};function I(e){return e.getContextValue(l)}function L(e){return e.getContextValue(u)}function R(e){return e.getContextValue(c)}let z=`7_find-replace-shortcuts`;function B(e){return e.getContextValue(t.FOCUSING_SHEET)}function V(e){return!e.getContextValue(t.EDITOR_ACTIVATED)}let ee={id:k.id,description:`find-replace.shortcut.open-find-dialog`,binding:r.KeyCode.F|r.MetaKeys.CTRL_COMMAND,group:z,groupTitle:`find-replace.shortcut.panel`,preconditions(e){return!I(e)&&B(e)&&V(e)}},te={id:k.id,description:`find-replace.shortcut.open-find-dialog`,binding:r.KeyCode.F|r.MetaKeys.CTRL_COMMAND,mac:r.KeyCode.F|r.MetaKeys.MAC_CTRL,preconditions(e){return!I(e)&&B(e)&&V(e)}},H={id:A.id,description:`find-replace.shortcut.open-replace-dialog`,binding:r.KeyCode.H|r.MetaKeys.CTRL_COMMAND,mac:r.KeyCode.H|r.MetaKeys.MAC_CTRL,group:z,groupTitle:`find-replace.shortcut.panel`,preconditions(e){return B(e)&&V(e)&&(!I(e)||!L(e))}},ne={id:j.id,description:`find-replace.shortcut.go-to-next-match`,binding:r.KeyCode.ENTER,group:z,groupTitle:`find-replace.shortcut.panel`,priority:1e3,preconditions(e){return R(e)&&I(e)}},re={id:M.id,description:`find-replace.shortcut.go-to-previous-match`,binding:r.KeyCode.ENTER|r.MetaKeys.SHIFT,group:z,groupTitle:`find-replace.shortcut.panel`,priority:1e3,preconditions(e){return R(e)&&I(e)}},ie={id:N.id,description:`find-replace.shortcut.focus-selection`,binding:r.KeyCode.ESC,group:z,groupTitle:`find-replace.shortcut.panel`,priority:1e3,preconditions(e){return I(e)}},U=`DESKTOP_FIND_REPLACE_DIALOG`,W=class extends t.RxDisposable{constructor(e,t,n,r,i,a,o,s){super(),this._univerInstanceService=e,this._menuManagerService=t,this._shortcutService=n,this._commandService=r,this._findReplaceService=i,this._dialogService=a,this._layoutService=o,this._localeService=s,m(this,`_closingListenerDisposable`,void 0),this._initCommands(),this._initUI(),this._initShortcuts()}dispose(){var e;super.dispose(),(e=this._closingListenerDisposable)==null||e.dispose(),this._closingListenerDisposable=null}_initCommands(){[k,A,j,M,O,D,N].forEach(e=>{this.disposeWithMe(this._commandService.registerCommand(e))})}_initShortcuts(){[H,ee,te,re,ne,ie].forEach(e=>this.disposeWithMe(this._shortcutService.registerShortcut(e)))}_initUI(){this._menuManagerService.mergeMenu(F),this._findReplaceService.stateUpdates$.pipe((0,a.takeUntil)(this.dispose$)).subscribe(e=>{e.revealed===!0&&this._openPanel()})}_openPanel(){this._dialogService.open({id:U,draggable:!0,width:350,title:{title:this._localeService.t(`find-replace.dialog.title`)},children:{label:`FindReplaceDialog`},destroyOnClose:!0,mask:!1,maskClosable:!1,defaultPosition:ae(),preservePositionOnDestroy:!0,onClose:()=>this.closePanel()}),this._closingListenerDisposable=(0,t.toDisposable)(this._univerInstanceService.focused$.pipe((0,a.takeUntil)(this.dispose$)).subscribe(e=>{(!e||!this._univerInstanceService.getUniverSheetInstance(e))&&this.closePanel()}))}closePanel(){this._closingListenerDisposable&&(this._closingListenerDisposable.dispose(),this._closingListenerDisposable=null,this._dialogService.close(U),this._findReplaceService.terminate(),queueMicrotask(()=>this._layoutService.focus()))}};W=g([h(0,t.IUniverInstanceService),h(1,r.IMenuManagerService),h(2,r.IShortcutService),h(3,t.ICommandService),h(4,v),h(5,r.IDialogService),h(6,r.ILayoutService),h(7,(0,t.Inject)(t.LocaleService))],W);function ae(){let{innerWidth:e}=window;return{x:e-350-20,y:64}}var oe=`@univerjs/find-replace`,se=`1.0.0-insiders.20260629-12f2e44`;let G={};function K({ref:e,...t}){let{icon:n,id:r,className:i,extend:a,...s}=t,c=`univerjs-icon univerjs-icon-${r} ${i||``}`.trim(),l=(0,o.useRef)(`_${ue()}`);return q(n,`${r}`,{defIds:n.defIds,idSuffix:l.current},{ref:e,className:c,...s},a)}function q(e,t,n,r,i){return(0,o.createElement)(e.tag,{key:t,...ce(e,n,i),...r},(le(e,n).children||[]).map((r,a)=>q(r,`${t}-${e.tag}-${a}`,n,void 0,i)))}function ce(e,t,n){let r={...e.attrs};n!=null&&n.colorChannel1&&r.fill===`colorChannel1`&&(r.fill=n.colorChannel1),n!=null&&n.colorChannel1&&r.stroke===`colorChannel1`&&(r.stroke=n.colorChannel1),e.tag===`mask`&&r.id&&(r.id+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{e===`mask`&&typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))});let{defIds:i}=t;return!i||i.length===0?r:(e.tag===`use`&&r[`xlink:href`]&&(r[`xlink:href`]+=t.idSuffix),Object.entries(r).forEach(([e,n])=>{typeof n==`string`&&(r[e]=n.replace(/url\(#(.*)\)/,`url(#$1${t.idSuffix})`))}),r)}function le(e,t){var n;let{defIds:r}=t;return!r||r.length===0?e:e.tag===`defs`&&(n=e.children)!=null&&n.length?{...e,children:e.children.map(e=>typeof e.attrs.id==`string`&&r&&r.includes(e.attrs.id)?{...e,attrs:{...e.attrs,id:e.attrs.id+t.idSuffix}}:e)}:e}function ue(){return Math.random().toString(36).substring(2,8)}K.displayName=`UniverIcon`;let de={tag:`svg`,attrs:{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`currentColor`,d:`M7.71899 1.36938C4.37604 1.36938 1.66602 4.07941 1.66602 7.42236C1.66602 10.7653 4.37604 13.4753 7.71899 13.4753C9.16744 13.4753 10.4971 12.9666 11.5389 12.118L13.6598 14.4109C13.8848 14.6542 14.2644 14.669 14.5077 14.444C14.7509 14.219 14.7657 13.8393 14.5407 13.5961L12.3906 11.2716C13.2536 10.2254 13.772 8.88442 13.772 7.42236C13.772 4.07941 11.0619 1.36938 7.71899 1.36938ZM2.86602 7.42236C2.86602 4.74215 5.03878 2.56938 7.71899 2.56938C10.3992 2.56938 12.572 4.74215 12.572 7.42236C12.572 10.1026 10.3992 12.2753 7.71899 12.2753C5.03878 12.2753 2.86602 10.1026 2.86602 7.42236Z`,fillRule:`evenodd`,clipRule:`evenodd`}}]},J=(0,o.forwardRef)(function(e,t){return(0,o.createElement)(K,Object.assign({},e,{id:`search-icon`,ref:t,icon:de}))});J.displayName=`SearchIcon`;function Y(e){let{findCompleted:i,matchesCount:a,matchesPosition:c,initialFindString:l,findReplaceService:u,onChange:d,...f}=e,p=(0,r.useDependency)(t.LocaleService),[m,h]=(0,o.useState)(l),g=i&&a===0?p.t(`find-replace.dialog.no-result`):a===0?` `:void 0;function _(e){c===a&&e===1?u.moveToNextMatch():c===1&&e===a||e<c?u.moveToPreviousMatch():u.moveToNextMatch()}return(0,s.jsx)(`div`,{className:`univer-relative univer-flex univer-items-center univer-gap-2`,onDrag:e=>e.stopPropagation(),children:(0,s.jsx)(n.Input,{"data-u-comp":`search-input`,autoFocus:!0,placeholder:p.t(`find-replace.dialog.find-placeholder`),value:m,onChange:e=>{h(e),d==null||d(e)},slot:(0,s.jsx)(n.Pager,{loop:!0,text:g,value:c,total:a,onChange:_}),...f})})}function X(e,t){let n=(0,o.useCallback)(()=>{var e;(e=document.querySelector(`.univer-find-input input`))==null||e.focus()},[]),r=(0,o.useCallback)(()=>{let e=document.querySelectorAll(`[data-u-comp=find-replace-dialog] [data-u-comp=search-input]`);return Array.from(e).some(e=>e===document.activeElement)},[]);return(0,o.useImperativeHandle)(t,()=>({focus:n,selectHasFocus:r})),(0,o.useEffect)(()=>{let t=e.focusSignal$.subscribe(()=>n());return()=>t.unsubscribe()},[e,n]),{focus:n,selectHasFocus:r}}let fe=(0,o.forwardRef)(function(e,n){let i=(0,r.useDependency)(t.LocaleService),a=(0,r.useDependency)(v),c=(0,r.useDependency)(t.ICommandService),{findCompleted:l,findString:u,matchesCount:d,matchesPosition:f}=(0,r.useObservable)(a.state$,void 0,!0),p=(0,o.useCallback)(()=>{c.executeCommand(A.id)},[c]),m=(0,r.useDebounceFn)(e=>a.changeFindString(e),500);return X(a,n),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y,{findCompleted:l,matchesCount:d,matchesPosition:f,findReplaceService:a,initialFindString:u,onChange:m}),(0,s.jsx)(`div`,{className:`univer-mt-4 univer-text-center`,children:(0,s.jsx)(`a`,{className:`hover:univer-text-primary-500/80 univer-cursor-pointer univer-text-sm univer-text-primary-500 univer-transition-colors`,onClick:p,children:i.t(`find-replace.dialog.advanced-finding`)})})]})}),Z=(0,o.forwardRef)(function(e,i){let a=(0,r.useDependency)(v),c=(0,r.useDependency)(t.LocaleService),l=(0,r.useDependency)(t.ICommandService),u=(0,r.useDependency)(r.IMessageService),d=(0,r.useObservable)(a.currentMatch$,void 0,!0),f=(0,r.useObservable)(a.replaceables$,void 0,!0),{matchesCount:p,matchesPosition:m,findString:h,inputtingFindString:g,replaceString:_,caseSensitive:y,matchesTheWholeCell:b,findDirection:x,findScope:S,findBy:C,findCompleted:w}=(0,r.useObservable)(a.state$,void 0,!0),T=g.length===0,E=p===0||!(d!=null&&d.replaceable),k=f.length===0,A=(0,o.useCallback)(e=>a.changeInputtingFindString(e),[a]),j=(0,o.useCallback)(e=>a.changeReplaceString(e),[a]),{focus:M}=X(a,i),N=(0,o.useCallback)(()=>{h===g?a.moveToNextMatch():(a.changeFindString(g),a.find())},[h,g,a]),P=(0,o.useCallback)(()=>l.executeCommand(D.id),[l]),F=(0,o.useCallback)(async()=>{await l.executeCommand(O.id),M()},[l]),I=(0,o.useCallback)(e=>{a.changeFindDirection(e)},[a]),L=(0,o.useCallback)(e=>{a.changeFindScope(e)},[a]),R=(0,o.useCallback)(e=>{a.changeFindBy(e)},[a]),z=me(c),B=he(c),V=ge(c);return(0,o.useEffect)(()=>{w&&p===0&&u.show({content:c.t(`find-replace.dialog.no-match`),type:n.MessageType.Warning,duration:5e3})},[w,p,u,c]),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.find`),children:(0,s.jsx)(Y,{findCompleted:w,className:`univer-find-input`,matchesCount:p,matchesPosition:m,findReplaceService:a,initialFindString:g,onChange:A})}),(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.replace`),children:(0,s.jsx)(n.Input,{placeholder:c.t(`find-replace.dialog.replace-placeholder`),value:_,onChange:e=>j(e)})}),(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.find-direction.title`),children:(0,s.jsx)(n.Select,{value:x,options:B,onChange:I})}),(0,s.jsx)(n.FormDualColumnLayout,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.find-scope.title`),children:(0,s.jsx)(n.Select,{value:S,options:z,onChange:L})}),(0,s.jsx)(n.FormLayout,{label:c.t(`find-replace.dialog.find-by.title`),children:(0,s.jsx)(n.Select,{value:C,options:V,onChange:R})})]})}),(0,s.jsx)(n.FormDualColumnLayout,{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.FormLayout,{children:(0,s.jsx)(n.Checkbox,{checked:y,onChange:e=>{a.changeCaseSensitive(e)},children:c.t(`find-replace.dialog.case-sensitive`)})}),(0,s.jsx)(n.FormLayout,{children:(0,s.jsx)(n.Checkbox,{checked:b,onChange:e=>{a.changeMatchesTheWholeCell(e)},children:c.t(`find-replace.dialog.match-the-whole-cell`)})})]})}),(0,s.jsxs)(`div`,{className:`univer-mt-6 univer-flex univer-justify-between`,children:[(0,s.jsx)(n.Button,{variant:`primary`,onClick:N,disabled:T,children:c.t(`find-replace.dialog.find`)}),(0,s.jsxs)(`span`,{className:`univer-inline-flex univer-gap-2`,children:[(0,s.jsx)(n.Button,{disabled:E,onClick:P,children:c.t(`find-replace.dialog.replace`)}),(0,s.jsx)(n.Button,{disabled:k,onClick:F,children:c.t(`find-replace.dialog.replace-all`)})]})]})]})});function pe(){let e=(0,r.useDependency)(v),n=(0,r.useDependency)(r.ILayoutService),i=(0,r.useDependency)(t.IContextService),u=(0,r.useObservable)(e.state$,void 0,!0),d=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e;return d.current&&(e=n.registerContainerElement(d.current)),()=>e==null?void 0:e.dispose()},[n]);let f=(0,o.useRef)(null),p=(0,o.useCallback)(e=>i.setContextValue(l,e),[i]),m=(0,o.useCallback)(e=>i.setContextValue(c,e),[i]);return(0,o.useEffect)(()=>{var e;let t=(0,a.fromEvent)(document,`focusin`).subscribe(e=>{var t;e.target&&(t=d.current)!=null&&t.contains(e.target)?p(!0):p(!1),!f.current||!f.current.selectHasFocus()?m(!1):m(!0)});return(e=f.current)==null||e.focus(),p(!0),m(!0),()=>{t.unsubscribe(),p(!1)}},[p,m]),(0,s.jsx)(`div`,{ref:d,"data-u-comp":`find-replace-dialog`,children:u.replaceRevealed?(0,s.jsx)(Z,{ref:f}):(0,s.jsx)(fe,{ref:f})})}function me(e){return(0,o.useMemo)(()=>[{label:e.t(`find-replace.dialog.find-scope.current-sheet`),value:`subunit`},{label:e.t(`find-replace.dialog.find-scope.workbook`),value:`unit`}],[e.getCurrentLocale()])}function he(e){return(0,o.useMemo)(()=>[{label:e.t(`find-replace.dialog.find-direction.row`),value:`row`},{label:e.t(`find-replace.dialog.find-direction.column`),value:`column`}],[e.getCurrentLocale()])}function ge(e){return(0,o.useMemo)(()=>[{label:e.t(`find-replace.dialog.find-by.value`),value:`value`},{label:e.t(`find-replace.dialog.find-by.formula`),value:`formula`}],[e.getCurrentLocale()])}let Q=class extends t.Disposable{constructor(e,t){super(),this._componentManager=e,this._iconManager=t,this._registerIcons(),this._registerComponents()}_registerIcons(){this.disposeWithMe(this._iconManager.register({SearchIcon:J}))}_registerComponents(){[[`FindReplaceDialog`,pe]].forEach(([e,t])=>{this.disposeWithMe(this._componentManager.register(e,t))})}};Q=g([h(0,(0,t.Inject)(r.ComponentManager)),h(1,(0,t.Inject)(r.IconManager))],Q);let $=class extends t.Plugin{constructor(e=G,n,r){super(),this._config=e,this._injector=n,this._configService=r;let{...i}=(0,t.merge)({},G,this._config);this._configService.setConfig(`find-replace.config`,i)}onStarting(){this._injector.add([Q]),this._injector.get(Q),[[W],[v,{useClass:E}]].forEach(e=>this._injector.add(e))}onRendered(){this._injector.get(W)}};m($,`pluginName`,`UNIVER_FIND_REPLACE_PLUGIN`),m($,`packageName`,oe),m($,`version`,se),$=g([h(1,(0,t.Inject)(t.Injector)),h(2,t.IConfigService)],$),e.FindBy=S,e.FindDirection=x,e.FindModel=_,Object.defineProperty(e,"FindReplaceController",{enumerable:!0,get:function(){return W}}),Object.defineProperty(e,"FindReplaceModel",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"FindReplaceService",{enumerable:!0,get:function(){return E}}),e.FindReplaceState=T,e.FindScope=C,e.GoToNextMatchOperation=j,e.GoToPreviousMatchOperation=M,e.IFindReplaceService=v,e.OpenFindDialogOperation=k,e.OpenReplaceDialogOperation=A,e.ReplaceAllMatchesCommand=O,e.ReplaceCurrentMatchCommand=D,Object.defineProperty(e,"UniverFindReplacePlugin",{enumerable:!0,get:function(){return $}}),e.createInitFindReplaceState=w});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceArSA=t())})(this,function(){return{"find-replace":{toolbar:`بحث واستبدال`,shortcut:{"open-find-dialog":`فتح مربع حوار البحث`,"open-replace-dialog":`فتح مربع حوار الاستبدال`,"close-dialog":`إغلاق مربع حوار البحث والاستبدال`,"go-to-next-match":`الانتقال إلى التطابق التالي`,"go-to-previous-match":`الانتقال إلى التطابق السابق`,"focus-selection":`تركيز التحديد`,panel:`بحث واستبدال`},dialog:{title:`بحث`,find:`بحث`,replace:`استبدال`,"replace-all":`استبدال الكل`,"case-sensitive":`حساس لحالة الأحرف`,"find-placeholder":`البحث في هذه الورقة`,"advanced-finding":`بحث واستبدال متقدم`,"replace-placeholder":`أدخل نص الاستبدال`,"match-the-whole-cell":`تطابق الخلية بأكملها`,"find-direction":{title:`اتجاه البحث`,row:`البحث حسب الصف`,column:`البحث حسب العمود`},"find-scope":{title:`نطاق البحث`,"current-sheet":`الورقة الحالية`,workbook:`المصنف`},"find-by":{title:`البحث حسب`,value:`البحث حسب القيمة`,formula:`البحث في الصيغ`},"no-match":`اكتمل البحث ولكن لم يتم العثور على أي تطابق.`,"no-result":`لا توجد نتائج`},replace:{"all-success":`تم استبدال {0} تطابقات`,"all-failure":`فشل الاستبدال`,confirm:{title:`هل أنت متأكد من استبدال جميع التطابقات؟`}},button:{confirm:`موافق`,cancel:`إلغاء`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceArSA=t())})(this,function(){return{"find-replace":{toolbar:`بحث واستبدال`,shortcut:{"open-find-dialog":`فتح مربع حوار البحث`,"open-replace-dialog":`فتح مربع حوار الاستبدال`,"close-dialog":`إغلاق مربع حوار البحث والاستبدال`,"go-to-next-match":`الانتقال إلى التطابق التالي`,"go-to-previous-match":`الانتقال إلى التطابق السابق`,"focus-selection":`تركيز التحديد`,panel:`بحث واستبدال`},dialog:{title:`بحث`,find:`بحث`,replace:`استبدال`,"replace-all":`استبدال الكل`,"case-sensitive":`حساس لحالة الأحرف`,"find-placeholder":`البحث في هذه الورقة`,"advanced-finding":`بحث واستبدال متقدم`,"replace-placeholder":`أدخل نص الاستبدال`,"match-the-whole-cell":`تطابق الخلية بأكملها`,"find-direction":{title:`اتجاه البحث`,row:`البحث حسب الصف`,column:`البحث حسب العمود`},"find-scope":{title:`نطاق البحث`,"current-sheet":`الورقة الحالية`,workbook:`المصنف`},"find-by":{title:`البحث حسب`,value:`البحث حسب القيمة`,formula:`البحث في الصيغ`},"no-match":`اكتمل البحث ولكن لم يتم العثور على أي تطابق.`,"no-result":`لا توجد نتائج`},replace:{"all-success":`تم استبدال {0} تطابقات`,"partial-success":`تم استبدال {0} تطابقات، وتعذر استبدال {1}`,"all-failure":`فشل الاستبدال`,confirm:{title:`هل أنت متأكد من استبدال جميع التطابقات؟`}},button:{confirm:`موافق`,cancel:`إلغاء`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceCaES=t())})(this,function(){return{"find-replace":{toolbar:`Cerca i reemplaça`,shortcut:{"open-find-dialog":`Obrir el diàleg de cerca`,"open-replace-dialog":`Obrir el diàleg de reemplaçament`,"close-dialog":`Tancar el diàleg de cerca i reemplaçament`,"go-to-next-match":`Anar a la següent coincidència`,"go-to-previous-match":`Anar a la coincidència anterior`,"focus-selection":`Enfocar la selecció`,panel:`Cerca i reemplaça`},dialog:{title:`Cerca`,find:`Cerca`,replace:`Reemplaça`,"replace-all":`Reemplaça-ho tot`,"case-sensitive":`Distingeix majúscules de minúscules`,"find-placeholder":`Cerca en aquest full`,"advanced-finding":`Cerca i reemplaçament avançats`,"replace-placeholder":`Introduïu la cadena de reemplaçament`,"match-the-whole-cell":`Coincidir amb la cel·la sencera`,"find-direction":{title:`Direcció de la cerca`,row:`Cerca per fila`,column:`Cerca per columna`},"find-scope":{title:`Abast de la cerca`,"current-sheet":`Full actual`,workbook:`Llibre`},"find-by":{title:`Cerca per`,value:`Cerca per valor`,formula:`Cerca fórmula`},"no-match":`S'ha completat la cerca però no s'ha trobat cap coincidència.`,"no-result":`Sense resultats`},replace:{"all-success":`S'han reemplaçat totes les {0} coincidències`,"all-failure":`Error en el reemplaçament`,confirm:{title:`Esteu segur que voleu reemplaçar totes les coincidències?`}},button:{confirm:`D'acord`,cancel:`Cancel·lar`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceCaES=t())})(this,function(){return{"find-replace":{toolbar:`Cerca i reemplaça`,shortcut:{"open-find-dialog":`Obrir el diàleg de cerca`,"open-replace-dialog":`Obrir el diàleg de reemplaçament`,"close-dialog":`Tancar el diàleg de cerca i reemplaçament`,"go-to-next-match":`Anar a la següent coincidència`,"go-to-previous-match":`Anar a la coincidència anterior`,"focus-selection":`Enfocar la selecció`,panel:`Cerca i reemplaça`},dialog:{title:`Cerca`,find:`Cerca`,replace:`Reemplaça`,"replace-all":`Reemplaça-ho tot`,"case-sensitive":`Distingeix majúscules de minúscules`,"find-placeholder":`Cerca en aquest full`,"advanced-finding":`Cerca i reemplaçament avançats`,"replace-placeholder":`Introduïu la cadena de reemplaçament`,"match-the-whole-cell":`Coincidir amb la cel·la sencera`,"find-direction":{title:`Direcció de la cerca`,row:`Cerca per fila`,column:`Cerca per columna`},"find-scope":{title:`Abast de la cerca`,"current-sheet":`Full actual`,workbook:`Llibre`},"find-by":{title:`Cerca per`,value:`Cerca per valor`,formula:`Cerca fórmula`},"no-match":`S'ha completat la cerca però no s'ha trobat cap coincidència.`,"no-result":`Sense resultats`},replace:{"all-success":`S'han reemplaçat totes les {0} coincidències`,"partial-success":`S'han reemplaçat {0} coincidències, no s'han pogut reemplaçar {1}`,"all-failure":`Error en el reemplaçament`,confirm:{title:`Esteu segur que voleu reemplaçar totes les coincidències?`}},button:{confirm:`D'acord`,cancel:`Cancel·lar`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceDeDE=t())})(this,function(){return{"find-replace":{toolbar:`Suchen & Ersetzen`,shortcut:{"open-find-dialog":`Suchdialog öffnen`,"open-replace-dialog":`Ersetzungsdialog öffnen`,"close-dialog":`Suchen & Ersetzen-Dialog schließen`,"go-to-next-match":`Zum nächsten Treffer springen`,"go-to-previous-match":`Zum vorherigen Treffer springen`,"focus-selection":`Auswahl fokussieren`,panel:`Suchen & Ersetzen`},dialog:{title:`Suchen`,find:`Suchen`,replace:`Ersetzen`,"replace-all":`Alle ersetzen`,"case-sensitive":`Groß-/Kleinschreibung beachten`,"find-placeholder":`In diesem Blatt suchen`,"advanced-finding":`Erweitertes Suchen & Ersetzen`,"replace-placeholder":`Ersetzungstext eingeben`,"match-the-whole-cell":`Ganze Zelle vergleichen`,"find-direction":{title:`Suchrichtung`,row:`Nach Zeile suchen`,column:`Nach Spalte suchen`},"find-scope":{title:`Suchbereich`,"current-sheet":`Aktuelles Blatt`,workbook:`Arbeitsmappe`},"find-by":{title:`Suchen nach`,value:`Nach Wert suchen`,formula:`Formel suchen`},"no-match":`Suche abgeschlossen, aber kein Treffer gefunden.`,"no-result":`Kein Ergebnis`},replace:{"all-success":`Alle {0} Treffer ersetzt`,"all-failure":`Ersetzen fehlgeschlagen`,confirm:{title:`Sollen alle Treffer ersetzt werden?`}},button:{confirm:`OK`,cancel:`Abbrechen`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceDeDE=t())})(this,function(){return{"find-replace":{toolbar:`Suchen & Ersetzen`,shortcut:{"open-find-dialog":`Suchdialog öffnen`,"open-replace-dialog":`Ersetzungsdialog öffnen`,"close-dialog":`Suchen & Ersetzen-Dialog schließen`,"go-to-next-match":`Zum nächsten Treffer springen`,"go-to-previous-match":`Zum vorherigen Treffer springen`,"focus-selection":`Auswahl fokussieren`,panel:`Suchen & Ersetzen`},dialog:{title:`Suchen`,find:`Suchen`,replace:`Ersetzen`,"replace-all":`Alle ersetzen`,"case-sensitive":`Groß-/Kleinschreibung beachten`,"find-placeholder":`In diesem Blatt suchen`,"advanced-finding":`Erweitertes Suchen & Ersetzen`,"replace-placeholder":`Ersetzungstext eingeben`,"match-the-whole-cell":`Ganze Zelle vergleichen`,"find-direction":{title:`Suchrichtung`,row:`Nach Zeile suchen`,column:`Nach Spalte suchen`},"find-scope":{title:`Suchbereich`,"current-sheet":`Aktuelles Blatt`,workbook:`Arbeitsmappe`},"find-by":{title:`Suchen nach`,value:`Nach Wert suchen`,formula:`Formel suchen`},"no-match":`Suche abgeschlossen, aber kein Treffer gefunden.`,"no-result":`Kein Ergebnis`},replace:{"all-success":`Alle {0} Treffer ersetzt`,"partial-success":`{0} Treffer ersetzt, {1} konnten nicht ersetzt werden`,"all-failure":`Ersetzen fehlgeschlagen`,confirm:{title:`Sollen alle Treffer ersetzt werden?`}},button:{confirm:`OK`,cancel:`Abbrechen`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceEnUS=t())})(this,function(){return{"find-replace":{toolbar:`Find & Replace`,shortcut:{"open-find-dialog":`Open Find Dialog`,"open-replace-dialog":`Open Replace Dialog`,"close-dialog":`Close Find & Replace Dialog`,"go-to-next-match":`Go to Next Match`,"go-to-previous-match":`Go to Previous Match`,"focus-selection":`Focus Selection`,panel:`Find & Replace`},dialog:{title:`Find`,find:`Find`,replace:`Replace`,"replace-all":`Replace All`,"case-sensitive":`Case Sensitive`,"find-placeholder":`Find in this Sheet`,"advanced-finding":`Advanced Searching & Replace`,"replace-placeholder":`Input Replace String`,"match-the-whole-cell":`Match the Whole Cell`,"find-direction":{title:`Find Direction`,row:`Search by Row`,column:`Search by Column`},"find-scope":{title:`Find Range`,"current-sheet":`Current Sheet`,workbook:`Workbook`},"find-by":{title:`Find By`,value:`Find by Value`,formula:`Find Formula`},"no-match":`Finding completed but no match found.`,"no-result":`No Result`},replace:{"all-success":`Replaced all {0} matches`,"all-failure":`Replace failed`,confirm:{title:`Are you sure to replace all matches?`}},button:{confirm:`OK`,cancel:`Cancel`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceEnUS=t())})(this,function(){return{"find-replace":{toolbar:`Find & Replace`,shortcut:{"open-find-dialog":`Open Find Dialog`,"open-replace-dialog":`Open Replace Dialog`,"close-dialog":`Close Find & Replace Dialog`,"go-to-next-match":`Go to Next Match`,"go-to-previous-match":`Go to Previous Match`,"focus-selection":`Focus Selection`,panel:`Find & Replace`},dialog:{title:`Find`,find:`Find`,replace:`Replace`,"replace-all":`Replace All`,"case-sensitive":`Case Sensitive`,"find-placeholder":`Find in this Sheet`,"advanced-finding":`Advanced Searching & Replace`,"replace-placeholder":`Input Replace String`,"match-the-whole-cell":`Match the Whole Cell`,"find-direction":{title:`Find Direction`,row:`Search by Row`,column:`Search by Column`},"find-scope":{title:`Find Range`,"current-sheet":`Current Sheet`,workbook:`Workbook`},"find-by":{title:`Find By`,value:`Find by Value`,formula:`Find Formula`},"no-match":`Finding completed but no match found.`,"no-result":`No Result`},replace:{"all-success":`Replaced all {0} matches`,"partial-success":`Replaced {0} matches, failed to replace {1}`,"all-failure":`Replace failed`,confirm:{title:`Are you sure to replace all matches?`}},button:{confirm:`OK`,cancel:`Cancel`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceEsES=t())})(this,function(){return{"find-replace":{toolbar:`Buscar y reemplazar`,shortcut:{"open-find-dialog":`Abrir cuadro de diálogo de búsqueda`,"open-replace-dialog":`Abrir cuadro de diálogo de reemplazo`,"close-dialog":`Cerrar cuadro de diálogo de búsqueda y reemplazo`,"go-to-next-match":`Ir a la siguiente coincidencia`,"go-to-previous-match":`Ir a la coincidencia anterior`,"focus-selection":`Enfocar selección`,panel:`Buscar y reemplazar`},dialog:{title:`Buscar`,find:`Buscar`,replace:`Reemplazar`,"replace-all":`Reemplazar todo`,"case-sensitive":`Distinguir mayúsculas y minúsculas`,"find-placeholder":`Buscar en esta hoja`,"advanced-finding":`Búsqueda y reemplazo avanzados`,"replace-placeholder":`Introducir cadena de reemplazo`,"match-the-whole-cell":`Coincidir con toda la celda`,"find-direction":{title:`Dirección de búsqueda`,row:`Buscar por fila`,column:`Buscar por columna`},"find-scope":{title:`Rango de búsqueda`,"current-sheet":`Hoja actual`,workbook:`Libro`},"find-by":{title:`Buscar por`,value:`Buscar por valor`,formula:`Buscar fórmula`},"no-match":`Búsqueda completada pero no se encontraron coincidencias.`,"no-result":`Sin resultados`},replace:{"all-success":`Se reemplazaron todas las {0} coincidencias`,"all-failure":`Error al reemplazar`,confirm:{title:`¿Está seguro de que desea reemplazar todas las coincidencias?`}},button:{confirm:`Aceptar`,cancel:`Cancelar`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceEsES=t())})(this,function(){return{"find-replace":{toolbar:`Buscar y reemplazar`,shortcut:{"open-find-dialog":`Abrir cuadro de diálogo de búsqueda`,"open-replace-dialog":`Abrir cuadro de diálogo de reemplazo`,"close-dialog":`Cerrar cuadro de diálogo de búsqueda y reemplazo`,"go-to-next-match":`Ir a la siguiente coincidencia`,"go-to-previous-match":`Ir a la coincidencia anterior`,"focus-selection":`Enfocar selección`,panel:`Buscar y reemplazar`},dialog:{title:`Buscar`,find:`Buscar`,replace:`Reemplazar`,"replace-all":`Reemplazar todo`,"case-sensitive":`Distinguir mayúsculas y minúsculas`,"find-placeholder":`Buscar en esta hoja`,"advanced-finding":`Búsqueda y reemplazo avanzados`,"replace-placeholder":`Introducir cadena de reemplazo`,"match-the-whole-cell":`Coincidir con toda la celda`,"find-direction":{title:`Dirección de búsqueda`,row:`Buscar por fila`,column:`Buscar por columna`},"find-scope":{title:`Rango de búsqueda`,"current-sheet":`Hoja actual`,workbook:`Libro`},"find-by":{title:`Buscar por`,value:`Buscar por valor`,formula:`Buscar fórmula`},"no-match":`Búsqueda completada pero no se encontraron coincidencias.`,"no-result":`Sin resultados`},replace:{"all-success":`Se reemplazaron todas las {0} coincidencias`,"partial-success":`Se reemplazaron {0} coincidencias; no se pudieron reemplazar {1}`,"all-failure":`Error al reemplazar`,confirm:{title:`¿Está seguro de que desea reemplazar todas las coincidencias?`}},button:{confirm:`Aceptar`,cancel:`Cancelar`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceFaIR=t())})(this,function(){return{"find-replace":{toolbar:`یافتن و جایگزینی`,shortcut:{"open-find-dialog":`باز کردن پنجره جستجو`,"open-replace-dialog":`باز کردن پنجره جایگزینی`,"close-dialog":`بستن پنجره جستجو و جایگزینی`,"go-to-next-match":`رفتن به مورد تطابق بعدی`,"go-to-previous-match":`رفتن به مورد تطابق قبلی`,"focus-selection":`تمرکز بر انتخاب`,panel:`یافتن و جایگزینی`},dialog:{title:`جستجو`,find:`جستجو`,replace:`جایگزینی`,"replace-all":`جایگزینی همه`,"case-sensitive":`حساس به حروف بزرگ و کوچک`,"find-placeholder":`جستجو در این شیت`,"advanced-finding":`جستجو و جایگزینی پیشرفته`,"replace-placeholder":`رشته جایگزینی را وارد کنید`,"match-the-whole-cell":`تطابق کل سلول`,"find-direction":{title:`جهت جستجو`,row:`جستجو بر اساس ردیف`,column:`جستجو بر اساس ستون`},"find-scope":{title:`محدوده جستجو`,"current-sheet":`شیت فعلی`,workbook:`کتاب کار`},"find-by":{title:`جستجو بر اساس`,value:`جستجو بر اساس مقدار`,formula:`جستجوی فرمول`},"no-match":`جستجو تکمیل شد اما هیچ تطابقی یافت نشد.`,"no-result":`بدون نتیجه`},replace:{"all-success":`همه {0} مورد تطابق جایگزین شدند`,"all-failure":`جایگزینی ناموفق بود`,confirm:{title:`آیا مطمئن هستید که می‌خواهید همه موارد تطابق را جایگزین کنید؟`}},button:{confirm:`تایید`,cancel:`انصراف`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceFaIR=t())})(this,function(){return{"find-replace":{toolbar:`یافتن و جایگزینی`,shortcut:{"open-find-dialog":`باز کردن پنجره جستجو`,"open-replace-dialog":`باز کردن پنجره جایگزینی`,"close-dialog":`بستن پنجره جستجو و جایگزینی`,"go-to-next-match":`رفتن به مورد تطابق بعدی`,"go-to-previous-match":`رفتن به مورد تطابق قبلی`,"focus-selection":`تمرکز بر انتخاب`,panel:`یافتن و جایگزینی`},dialog:{title:`جستجو`,find:`جستجو`,replace:`جایگزینی`,"replace-all":`جایگزینی همه`,"case-sensitive":`حساس به حروف بزرگ و کوچک`,"find-placeholder":`جستجو در این شیت`,"advanced-finding":`جستجو و جایگزینی پیشرفته`,"replace-placeholder":`رشته جایگزینی را وارد کنید`,"match-the-whole-cell":`تطابق کل سلول`,"find-direction":{title:`جهت جستجو`,row:`جستجو بر اساس ردیف`,column:`جستجو بر اساس ستون`},"find-scope":{title:`محدوده جستجو`,"current-sheet":`شیت فعلی`,workbook:`کتاب کار`},"find-by":{title:`جستجو بر اساس`,value:`جستجو بر اساس مقدار`,formula:`جستجوی فرمول`},"no-match":`جستجو تکمیل شد اما هیچ تطابقی یافت نشد.`,"no-result":`بدون نتیجه`},replace:{"all-success":`همه {0} مورد تطابق جایگزین شدند`,"partial-success":`{0} مورد تطابق جایگزین شد، جایگزینی {1} مورد ناموفق بود`,"all-failure":`جایگزینی ناموفق بود`,confirm:{title:`آیا مطمئن هستید که می‌خواهید همه موارد تطابق را جایگزین کنید؟`}},button:{confirm:`تایید`,cancel:`انصراف`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceFrFR=t())})(this,function(){return{"find-replace":{toolbar:`Rechercher & Remplacer`,shortcut:{"open-find-dialog":`Ouvrir la boîte de dialogue de recherche`,"open-replace-dialog":`Ouvrir la boîte de dialogue de remplacement`,"close-dialog":`Fermer la boîte de dialogue de recherche et de remplacement`,"go-to-next-match":`Aller à la correspondance suivante`,"go-to-previous-match":`Aller à la correspondance précédente`,"focus-selection":`Concentrer la sélection`,panel:`Rechercher & Remplacer`},dialog:{title:`Rechercher`,find:`Rechercher`,replace:`Remplacer`,"replace-all":`Remplacer tout`,"case-sensitive":`Sensible à la casse`,"find-placeholder":`Rechercher dans cette feuille`,"advanced-finding":`Recherche et remplacement avancés`,"replace-placeholder":`Saisir la chaîne de remplacement`,"match-the-whole-cell":`Correspondance de la cellule entière`,"find-direction":{title:`Direction de la recherche`,row:`Rechercher par ligne`,column:`Rechercher par colonne`},"find-scope":{title:`Plage de recherche`,"current-sheet":`Feuille actuelle`,workbook:`Classeur`},"find-by":{title:`Rechercher par`,value:`Rechercher par valeur`,formula:`Rechercher une formule`},"no-match":`Recherche terminée mais aucune correspondance trouvée.`,"no-result":`Aucun résultat`},replace:{"all-success":`Toutes les {0} correspondances ont été remplacées`,"all-failure":`Échec du remplacement`,confirm:{title:`Êtes-vous sûr de vouloir remplacer toutes les correspondances ?`}},button:{confirm:`OK`,cancel:`Annuler`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceFrFR=t())})(this,function(){return{"find-replace":{toolbar:`Rechercher & Remplacer`,shortcut:{"open-find-dialog":`Ouvrir la boîte de dialogue de recherche`,"open-replace-dialog":`Ouvrir la boîte de dialogue de remplacement`,"close-dialog":`Fermer la boîte de dialogue de recherche et de remplacement`,"go-to-next-match":`Aller à la correspondance suivante`,"go-to-previous-match":`Aller à la correspondance précédente`,"focus-selection":`Concentrer la sélection`,panel:`Rechercher & Remplacer`},dialog:{title:`Rechercher`,find:`Rechercher`,replace:`Remplacer`,"replace-all":`Remplacer tout`,"case-sensitive":`Sensible à la casse`,"find-placeholder":`Rechercher dans cette feuille`,"advanced-finding":`Recherche et remplacement avancés`,"replace-placeholder":`Saisir la chaîne de remplacement`,"match-the-whole-cell":`Correspondance de la cellule entière`,"find-direction":{title:`Direction de la recherche`,row:`Rechercher par ligne`,column:`Rechercher par colonne`},"find-scope":{title:`Plage de recherche`,"current-sheet":`Feuille actuelle`,workbook:`Classeur`},"find-by":{title:`Rechercher par`,value:`Rechercher par valeur`,formula:`Rechercher une formule`},"no-match":`Recherche terminée mais aucune correspondance trouvée.`,"no-result":`Aucun résultat`},replace:{"all-success":`Toutes les {0} correspondances ont été remplacées`,"partial-success":`{0} correspondances ont été remplacées, {1} ont échoué`,"all-failure":`Échec du remplacement`,confirm:{title:`Êtes-vous sûr de vouloir remplacer toutes les correspondances ?`}},button:{confirm:`OK`,cancel:`Annuler`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceIdID=t())})(this,function(){return{"find-replace":{toolbar:`Cari & Ganti`,shortcut:{"open-find-dialog":`Buka Dialog Cari`,"open-replace-dialog":`Buka Dialog Ganti`,"close-dialog":`Tutup Dialog Cari & Ganti`,"go-to-next-match":`Ke Hasil Berikutnya`,"go-to-previous-match":`Ke Hasil Sebelumnya`,"focus-selection":`Fokus Pilihan`,panel:`Cari & Ganti`},dialog:{title:`Cari`,find:`Cari`,replace:`Ganti`,"replace-all":`Ganti Semua`,"case-sensitive":`Sensitif Huruf`,"find-placeholder":`Cari di Lembar ini`,"advanced-finding":`Pencarian & Penggantian Lanjutan`,"replace-placeholder":`Masukkan String Pengganti`,"match-the-whole-cell":`Cocokkan Seluruh Sel`,"find-direction":{title:`Arah Cari`,row:`Cari per Baris`,column:`Cari per Kolom`},"find-scope":{title:`Rentang Cari`,"current-sheet":`Lembar Saat Ini`,workbook:`Buku Kerja`},"find-by":{title:`Cari Berdasarkan`,value:`Cari berdasarkan Nilai`,formula:`Cari Rumus`},"no-match":`Pencarian selesai tetapi tidak ditemukan kecocokan.`,"no-result":`Tidak Ada Hasil`},replace:{"all-success":`Berhasil mengganti {0} kecocokan`,"all-failure":`Penggantian gagal`,confirm:{title:`Apakah Anda yakin ingin mengganti semua kecocokan?`}},button:{confirm:`OK`,cancel:`Batal`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceIdID=t())})(this,function(){return{"find-replace":{toolbar:`Cari & Ganti`,shortcut:{"open-find-dialog":`Buka Dialog Cari`,"open-replace-dialog":`Buka Dialog Ganti`,"close-dialog":`Tutup Dialog Cari & Ganti`,"go-to-next-match":`Ke Hasil Berikutnya`,"go-to-previous-match":`Ke Hasil Sebelumnya`,"focus-selection":`Fokus Pilihan`,panel:`Cari & Ganti`},dialog:{title:`Cari`,find:`Cari`,replace:`Ganti`,"replace-all":`Ganti Semua`,"case-sensitive":`Sensitif Huruf`,"find-placeholder":`Cari di Lembar ini`,"advanced-finding":`Pencarian & Penggantian Lanjutan`,"replace-placeholder":`Masukkan String Pengganti`,"match-the-whole-cell":`Cocokkan Seluruh Sel`,"find-direction":{title:`Arah Cari`,row:`Cari per Baris`,column:`Cari per Kolom`},"find-scope":{title:`Rentang Cari`,"current-sheet":`Lembar Saat Ini`,workbook:`Buku Kerja`},"find-by":{title:`Cari Berdasarkan`,value:`Cari berdasarkan Nilai`,formula:`Cari Rumus`},"no-match":`Pencarian selesai tetapi tidak ditemukan kecocokan.`,"no-result":`Tidak Ada Hasil`},replace:{"all-success":`Berhasil mengganti {0} kecocokan`,"partial-success":`Berhasil mengganti {0} kecocokan, gagal mengganti {1}`,"all-failure":`Penggantian gagal`,confirm:{title:`Apakah Anda yakin ingin mengganti semua kecocokan?`}},button:{confirm:`OK`,cancel:`Batal`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceItIT=t())})(this,function(){return{"find-replace":{toolbar:`Trova e sostituisci`,shortcut:{"open-find-dialog":`Apri finestra Trova`,"open-replace-dialog":`Apri finestra Sostituisci`,"close-dialog":`Chiudi finestra Trova e sostituisci`,"go-to-next-match":`Vai alla corrispondenza successiva`,"go-to-previous-match":`Vai alla corrispondenza precedente`,"focus-selection":`Focus selezione`,panel:`Trova e sostituisci`},dialog:{title:`Trova`,find:`Trova`,replace:`Sostituisci`,"replace-all":`Sostituisci tutto`,"case-sensitive":`Maiuscole/minuscole`,"find-placeholder":`Trova in questo foglio`,"advanced-finding":`Ricerca e sostituzione avanzate`,"replace-placeholder":`Inserisci stringa di sostituzione`,"match-the-whole-cell":`Corrispondenza con l'intera cella`,"find-direction":{title:`Direzione ricerca`,row:`Cerca per riga`,column:`Cerca per colonna`},"find-scope":{title:`Intervallo ricerca`,"current-sheet":`Foglio corrente`,workbook:`Cartella di lavoro`},"find-by":{title:`Criterio ricerca`,value:`Trova per valore`,formula:`Trova formula`},"no-match":`Ricerca completata ma nessuna corrispondenza trovata.`,"no-result":`Nessun risultato`},replace:{"all-success":`Sostituite tutte le {0} corrispondenze`,"all-failure":`Sostituzione non riuscita`,confirm:{title:`Sei sicuro di voler sostituire tutte le corrispondenze?`}},button:{confirm:`OK`,cancel:`Annulla`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceItIT=t())})(this,function(){return{"find-replace":{toolbar:`Trova e sostituisci`,shortcut:{"open-find-dialog":`Apri finestra Trova`,"open-replace-dialog":`Apri finestra Sostituisci`,"close-dialog":`Chiudi finestra Trova e sostituisci`,"go-to-next-match":`Vai alla corrispondenza successiva`,"go-to-previous-match":`Vai alla corrispondenza precedente`,"focus-selection":`Focus selezione`,panel:`Trova e sostituisci`},dialog:{title:`Trova`,find:`Trova`,replace:`Sostituisci`,"replace-all":`Sostituisci tutto`,"case-sensitive":`Maiuscole/minuscole`,"find-placeholder":`Trova in questo foglio`,"advanced-finding":`Ricerca e sostituzione avanzate`,"replace-placeholder":`Inserisci stringa di sostituzione`,"match-the-whole-cell":`Corrispondenza con l'intera cella`,"find-direction":{title:`Direzione ricerca`,row:`Cerca per riga`,column:`Cerca per colonna`},"find-scope":{title:`Intervallo ricerca`,"current-sheet":`Foglio corrente`,workbook:`Cartella di lavoro`},"find-by":{title:`Criterio ricerca`,value:`Trova per valore`,formula:`Trova formula`},"no-match":`Ricerca completata ma nessuna corrispondenza trovata.`,"no-result":`Nessun risultato`},replace:{"all-success":`Sostituite tutte le {0} corrispondenze`,"partial-success":`Sostituite {0} corrispondenze, {1} non sostituite`,"all-failure":`Sostituzione non riuscita`,confirm:{title:`Sei sicuro di voler sostituire tutte le corrispondenze?`}},button:{confirm:`OK`,cancel:`Annulla`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceJaJP=t())})(this,function(){return{"find-replace":{toolbar:`検索と置換`,shortcut:{"open-find-dialog":`検索ダイアログを開く`,"open-replace-dialog":`置換ダイアログを開く`,"close-dialog":`検索と置換ダイアログを閉じる`,"go-to-next-match":`次の一致項目へ移動`,"go-to-previous-match":`前の一致項目へ移動`,"focus-selection":`選択範囲にフォーカス`,panel:`検索と置換`},dialog:{title:`検索`,find:`検索`,replace:`置換`,"replace-all":`すべて置換`,"case-sensitive":`大文字と小文字を区別`,"find-placeholder":`このシート内を検索`,"advanced-finding":`詳細検索と置換`,"replace-placeholder":`置換文字列を入力`,"match-the-whole-cell":`セル全体に一致`,"find-direction":{title:`検索方向`,row:`行ごとに検索`,column:`列ごとに検索`},"find-scope":{title:`検索範囲`,"current-sheet":`現在のシート`,workbook:`ブック全体`},"find-by":{title:`検索条件`,value:`値で検索`,formula:`数式を検索`},"no-match":`検索が完了しましたが、一致する項目が見つかりませんでした。`,"no-result":`結果なし`},replace:{"all-success":`一致項目 {0} 件すべてを置換しました`,"all-failure":`置換に失敗しました`,confirm:{title:`すべての一致項目を置換してもよろしいですか?`}},button:{confirm:`確認`,cancel:`キャンセル`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceJaJP=t())})(this,function(){return{"find-replace":{toolbar:`検索と置換`,shortcut:{"open-find-dialog":`検索ダイアログを開く`,"open-replace-dialog":`置換ダイアログを開く`,"close-dialog":`検索と置換ダイアログを閉じる`,"go-to-next-match":`次の一致項目へ移動`,"go-to-previous-match":`前の一致項目へ移動`,"focus-selection":`選択範囲にフォーカス`,panel:`検索と置換`},dialog:{title:`検索`,find:`検索`,replace:`置換`,"replace-all":`すべて置換`,"case-sensitive":`大文字と小文字を区別`,"find-placeholder":`このシート内を検索`,"advanced-finding":`詳細検索と置換`,"replace-placeholder":`置換文字列を入力`,"match-the-whole-cell":`セル全体に一致`,"find-direction":{title:`検索方向`,row:`行ごとに検索`,column:`列ごとに検索`},"find-scope":{title:`検索範囲`,"current-sheet":`現在のシート`,workbook:`ブック全体`},"find-by":{title:`検索条件`,value:`値で検索`,formula:`数式を検索`},"no-match":`検索が完了しましたが、一致する項目が見つかりませんでした。`,"no-result":`結果なし`},replace:{"all-success":`一致項目 {0} 件すべてを置換しました`,"partial-success":`{0} 件の一致項目を置換しました。{1} 件の置換に失敗しました`,"all-failure":`置換に失敗しました`,confirm:{title:`すべての一致項目を置換してもよろしいですか?`}},button:{confirm:`確認`,cancel:`キャンセル`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceKoKR=t())})(this,function(){return{"find-replace":{toolbar:`찾기 및 바꾸기`,shortcut:{"open-find-dialog":`찾기 대화 상자 열기`,"open-replace-dialog":`바꾸기 대화 상자 열기`,"close-dialog":`찾기 및 바꾸기 대화 상자 닫기`,"go-to-next-match":`다음 일치 항목으로 이동`,"go-to-previous-match":`이전 일치 항목으로 이동`,"focus-selection":`선택 영역에 포커스`,panel:`찾기 및 바꾸기`},dialog:{title:`찾기`,find:`찾기`,replace:`바꾸기`,"replace-all":`모두 바꾸기`,"case-sensitive":`대/소문자 구분`,"find-placeholder":`이 시트에서 찾기`,"advanced-finding":`고급 검색 및 바꾸기`,"replace-placeholder":`바꿀 문자열 입력`,"match-the-whole-cell":`전체 셀 내용 일치`,"find-direction":{title:`검색 방향`,row:`행 기준 검색`,column:`열 기준 검색`},"find-scope":{title:`검색 범위`,"current-sheet":`현재 시트`,workbook:`통합 문서`},"find-by":{title:`검색 기준`,value:`값으로 찾기`,formula:`수식 찾기`},"no-match":`검색이 완료되었으나 일치 항목을 찾을 수 없습니다.`,"no-result":`결과 없음`},replace:{"all-success":`일치 항목 {0}개를 모두 바꿨습니다.`,"all-failure":`바꾸기 실패`,confirm:{title:`모든 일치 항목을 바꾸시겠습니까?`}},button:{confirm:`확인`,cancel:`취소`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceKoKR=t())})(this,function(){return{"find-replace":{toolbar:`찾기 및 바꾸기`,shortcut:{"open-find-dialog":`찾기 대화 상자 열기`,"open-replace-dialog":`바꾸기 대화 상자 열기`,"close-dialog":`찾기 및 바꾸기 대화 상자 닫기`,"go-to-next-match":`다음 일치 항목으로 이동`,"go-to-previous-match":`이전 일치 항목으로 이동`,"focus-selection":`선택 영역에 포커스`,panel:`찾기 및 바꾸기`},dialog:{title:`찾기`,find:`찾기`,replace:`바꾸기`,"replace-all":`모두 바꾸기`,"case-sensitive":`대/소문자 구분`,"find-placeholder":`이 시트에서 찾기`,"advanced-finding":`고급 검색 및 바꾸기`,"replace-placeholder":`바꿀 문자열 입력`,"match-the-whole-cell":`전체 셀 내용 일치`,"find-direction":{title:`검색 방향`,row:`행 기준 검색`,column:`열 기준 검색`},"find-scope":{title:`검색 범위`,"current-sheet":`현재 시트`,workbook:`통합 문서`},"find-by":{title:`검색 기준`,value:`값으로 찾기`,formula:`수식 찾기`},"no-match":`검색이 완료되었으나 일치 항목을 찾을 수 없습니다.`,"no-result":`결과 없음`},replace:{"all-success":`일치 항목 {0}개를 모두 바꿨습니다.`,"partial-success":`일치 항목 {0}개를 바꾸고 {1}개는 바꾸지 못했습니다.`,"all-failure":`바꾸기 실패`,confirm:{title:`모든 일치 항목을 바꾸시겠습니까?`}},button:{confirm:`확인`,cancel:`취소`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplacePlPL=t())})(this,function(){return{"find-replace":{toolbar:`Znajdź i zamień`,shortcut:{"open-find-dialog":`Otwórz okno Znajdź`,"open-replace-dialog":`Otwórz okno Zamień`,"close-dialog":`Zamknij okno Znajdź i zamień`,"go-to-next-match":`Przejdź do następnego dopasowania`,"go-to-previous-match":`Przejdź do poprzedniego dopasowania`,"focus-selection":`Skup na zaznaczeniu`,panel:`Znajdź i zamień`},dialog:{title:`Znajdź`,find:`Znajdź`,replace:`Zamień`,"replace-all":`Zamień wszystko`,"case-sensitive":`Rozróżniaj wielkość liter`,"find-placeholder":`Znajdź w tym arkuszu`,"advanced-finding":`Zaawansowane wyszukiwanie i zastępowanie`,"replace-placeholder":`Wprowadź ciąg zastępujący`,"match-the-whole-cell":`Dopasuj całą komórkę`,"find-direction":{title:`Kierunek wyszukiwania`,row:`Szukaj według wierszy`,column:`Szukaj według kolumn`},"find-scope":{title:`Zakres wyszukiwania`,"current-sheet":`Bieżący arkusz`,workbook:`Skoroszyt`},"find-by":{title:`Szukaj według`,value:`Szukaj według wartości`,formula:`Szukaj formuły`},"no-match":`Wyszukiwanie zakończone, ale nie znaleziono dopasowania.`,"no-result":`Brak wyników`},replace:{"all-success":`Zastąpiono wszystkie dopasowania: {0}`,"all-failure":`Zastępowanie nie powiodło się`,confirm:{title:`Czy na pewno chcesz zastąpić wszystkie dopasowania?`}},button:{confirm:`OK`,cancel:`Anuluj`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplacePlPL=t())})(this,function(){return{"find-replace":{toolbar:`Znajdź i zamień`,shortcut:{"open-find-dialog":`Otwórz okno Znajdź`,"open-replace-dialog":`Otwórz okno Zamień`,"close-dialog":`Zamknij okno Znajdź i zamień`,"go-to-next-match":`Przejdź do następnego dopasowania`,"go-to-previous-match":`Przejdź do poprzedniego dopasowania`,"focus-selection":`Skup na zaznaczeniu`,panel:`Znajdź i zamień`},dialog:{title:`Znajdź`,find:`Znajdź`,replace:`Zamień`,"replace-all":`Zamień wszystko`,"case-sensitive":`Rozróżniaj wielkość liter`,"find-placeholder":`Znajdź w tym arkuszu`,"advanced-finding":`Zaawansowane wyszukiwanie i zastępowanie`,"replace-placeholder":`Wprowadź ciąg zastępujący`,"match-the-whole-cell":`Dopasuj całą komórkę`,"find-direction":{title:`Kierunek wyszukiwania`,row:`Szukaj według wierszy`,column:`Szukaj według kolumn`},"find-scope":{title:`Zakres wyszukiwania`,"current-sheet":`Bieżący arkusz`,workbook:`Skoroszyt`},"find-by":{title:`Szukaj według`,value:`Szukaj według wartości`,formula:`Szukaj formuły`},"no-match":`Wyszukiwanie zakończone, ale nie znaleziono dopasowania.`,"no-result":`Brak wyników`},replace:{"all-success":`Zastąpiono wszystkie dopasowania: {0}`,"partial-success":`Zastąpiono dopasowania: {0}, nie udało się zastąpić: {1}`,"all-failure":`Zastępowanie nie powiodło się`,confirm:{title:`Czy na pewno chcesz zastąpić wszystkie dopasowania?`}},button:{confirm:`OK`,cancel:`Anuluj`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplacePtBR=t())})(this,function(){return{"find-replace":{toolbar:`Localizar e Substituir`,shortcut:{"open-find-dialog":`Abrir Caixa de Localização`,"open-replace-dialog":`Abrir Caixa de Substituição`,"close-dialog":`Fechar Caixa de Localizar e Substituir`,"go-to-next-match":`Ir para Próxima Correspondência`,"go-to-previous-match":`Ir para Correspondência Anterior`,"focus-selection":`Focar Seleção`,panel:`Localizar e Substituir`},dialog:{title:`Localizar`,find:`Localizar`,replace:`Substituir`,"replace-all":`Substituir Tudo`,"case-sensitive":`Diferenciar Maiúsculas/Minúsculas`,"find-placeholder":`Localizar nesta Planilha`,"advanced-finding":`Pesquisa e Substituição Avançadas`,"replace-placeholder":`Digite o Texto de Substituição`,"match-the-whole-cell":`Corresponder à Célula Inteira`,"find-direction":{title:`Direção da Pesquisa`,row:`Pesquisar por Linha`,column:`Pesquisar por Coluna`},"find-scope":{title:`Intervalo da Pesquisa`,"current-sheet":`Planilha Atual`,workbook:`Pasta de Trabalho`},"find-by":{title:`Pesquisar Por`,value:`Pesquisar por Valor`,formula:`Localizar Fórmula`},"no-match":`Pesquisa concluída, mas nenhuma correspondência foi encontrada.`,"no-result":`Nenhum Resultado`},replace:{"all-success":`Substituídas todas as {0} correspondências`,"all-failure":`Falha na substituição`,confirm:{title:`Tem certeza de que deseja substituir todas as correspondências?`}},button:{confirm:`OK`,cancel:`Cancelar`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplacePtBR=t())})(this,function(){return{"find-replace":{toolbar:`Localizar e Substituir`,shortcut:{"open-find-dialog":`Abrir Caixa de Localização`,"open-replace-dialog":`Abrir Caixa de Substituição`,"close-dialog":`Fechar Caixa de Localizar e Substituir`,"go-to-next-match":`Ir para Próxima Correspondência`,"go-to-previous-match":`Ir para Correspondência Anterior`,"focus-selection":`Focar Seleção`,panel:`Localizar e Substituir`},dialog:{title:`Localizar`,find:`Localizar`,replace:`Substituir`,"replace-all":`Substituir Tudo`,"case-sensitive":`Diferenciar Maiúsculas/Minúsculas`,"find-placeholder":`Localizar nesta Planilha`,"advanced-finding":`Pesquisa e Substituição Avançadas`,"replace-placeholder":`Digite o Texto de Substituição`,"match-the-whole-cell":`Corresponder à Célula Inteira`,"find-direction":{title:`Direção da Pesquisa`,row:`Pesquisar por Linha`,column:`Pesquisar por Coluna`},"find-scope":{title:`Intervalo da Pesquisa`,"current-sheet":`Planilha Atual`,workbook:`Pasta de Trabalho`},"find-by":{title:`Pesquisar Por`,value:`Pesquisar por Valor`,formula:`Localizar Fórmula`},"no-match":`Pesquisa concluída, mas nenhuma correspondência foi encontrada.`,"no-result":`Nenhum Resultado`},replace:{"all-success":`Substituídas todas as {0} correspondências`,"partial-success":`{0} correspondências substituídas, falha ao substituir {1}`,"all-failure":`Falha na substituição`,confirm:{title:`Tem certeza de que deseja substituir todas as correspondências?`}},button:{confirm:`OK`,cancel:`Cancelar`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceRuRU=t())})(this,function(){return{"find-replace":{toolbar:`Найти и заменить`,shortcut:{"open-find-dialog":`Открыть диалоговое окно поиска`,"open-replace-dialog":`Открыть диалоговое окно замены`,"close-dialog":`Закрыть диалоговое окно поиска и замены`,"go-to-next-match":`Перейти к следующему совпадению`,"go-to-previous-match":`Перейти к предыдущему совпадению`,"focus-selection":`Фокус на выделении`,panel:`Найти и заменить`},dialog:{title:`Найти`,find:`Найти`,replace:`Заменить`,"replace-all":`Заменить все`,"case-sensitive":`Учитывать регистр`,"find-placeholder":`Найти на этом листе`,"advanced-finding":`Расширенный поиск и замена`,"replace-placeholder":`Введите строку для замены`,"match-the-whole-cell":`Соответствие всей ячейке`,"find-direction":{title:`Направление поиска`,row:`Искать по строкам`,column:`Искать по столбцам`},"find-scope":{title:`Диапазон поиска`,"current-sheet":`Текущий лист`,workbook:`Книга`},"find-by":{title:`Искать по`,value:`Искать по значению`,formula:`Искать формулу`},"no-match":`Поиск завершен, но совпадений не найдено.`,"no-result":`Нет результатов`},replace:{"all-success":`Заменены все совпадения: {0}`,"all-failure":`Ошибка замены`,confirm:{title:`Вы уверены, что хотите заменить все совпадения?`}},button:{confirm:`ОК`,cancel:`Отмена`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceRuRU=t())})(this,function(){return{"find-replace":{toolbar:`Найти и заменить`,shortcut:{"open-find-dialog":`Открыть диалоговое окно поиска`,"open-replace-dialog":`Открыть диалоговое окно замены`,"close-dialog":`Закрыть диалоговое окно поиска и замены`,"go-to-next-match":`Перейти к следующему совпадению`,"go-to-previous-match":`Перейти к предыдущему совпадению`,"focus-selection":`Фокус на выделении`,panel:`Найти и заменить`},dialog:{title:`Найти`,find:`Найти`,replace:`Заменить`,"replace-all":`Заменить все`,"case-sensitive":`Учитывать регистр`,"find-placeholder":`Найти на этом листе`,"advanced-finding":`Расширенный поиск и замена`,"replace-placeholder":`Введите строку для замены`,"match-the-whole-cell":`Соответствие всей ячейке`,"find-direction":{title:`Направление поиска`,row:`Искать по строкам`,column:`Искать по столбцам`},"find-scope":{title:`Диапазон поиска`,"current-sheet":`Текущий лист`,workbook:`Книга`},"find-by":{title:`Искать по`,value:`Искать по значению`,formula:`Искать формулу`},"no-match":`Поиск завершен, но совпадений не найдено.`,"no-result":`Нет результатов`},replace:{"all-success":`Заменены все совпадения: {0}`,"partial-success":`Заменено совпадений: {0}, не удалось заменить: {1}`,"all-failure":`Ошибка замены`,confirm:{title:`Вы уверены, что хотите заменить все совпадения?`}},button:{confirm:`ОК`,cancel:`Отмена`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceSkSK=t())})(this,function(){return{"find-replace":{toolbar:`Hľadať a nahradiť`,shortcut:{"open-find-dialog":`Otvoriť dialógové okno hľadania`,"open-replace-dialog":`Otvoriť dialógové okno nahradenia`,"close-dialog":`Zavrieť dialógové okno hľadania a nahradenia`,"go-to-next-match":`Prejsť na ďalšiu zhodu`,"go-to-previous-match":`Prejsť na predchádzajúcu zhodu`,"focus-selection":`Zamerať výber`,panel:`Hľadať a nahradiť`},dialog:{title:`Hľadať`,find:`Hľadať`,replace:`Nahradiť`,"replace-all":`Nahradiť všetko`,"case-sensitive":`Rozlišovať veľké a malé písmená`,"find-placeholder":`Hľadať v tomto hárku`,"advanced-finding":`Pokročilé hľadanie a nahradenie`,"replace-placeholder":`Zadajte reťazec na nahradenie`,"match-the-whole-cell":`Zhoda s celou bunkou`,"find-direction":{title:`Smer hľadania`,row:`Hľadať podľa riadkov`,column:`Hľadať podľa stĺpcov`},"find-scope":{title:`Rozsah hľadania`,"current-sheet":`Aktuálny hárok`,workbook:`Zošit`},"find-by":{title:`Hľadať podľa`,value:`Hľadať podľa hodnoty`,formula:`Hľadať vzorec`},"no-match":`Hľadanie bolo dokončené, ale nenašla sa žiadna zhoda.`,"no-result":`Žiadne výsledky`},replace:{"all-success":`Všetkých {0} zhôd bolo nahradených`,"all-failure":`Nahradenie zlyhalo`,confirm:{title:`Ste si istí, že chcete nahradiť všetky zhody?`}},button:{confirm:`OK`,cancel:`Zrušiť`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceSkSK=t())})(this,function(){return{"find-replace":{toolbar:`Hľadať a nahradiť`,shortcut:{"open-find-dialog":`Otvoriť dialógové okno hľadania`,"open-replace-dialog":`Otvoriť dialógové okno nahradenia`,"close-dialog":`Zavrieť dialógové okno hľadania a nahradenia`,"go-to-next-match":`Prejsť na ďalšiu zhodu`,"go-to-previous-match":`Prejsť na predchádzajúcu zhodu`,"focus-selection":`Zamerať výber`,panel:`Hľadať a nahradiť`},dialog:{title:`Hľadať`,find:`Hľadať`,replace:`Nahradiť`,"replace-all":`Nahradiť všetko`,"case-sensitive":`Rozlišovať veľké a malé písmená`,"find-placeholder":`Hľadať v tomto hárku`,"advanced-finding":`Pokročilé hľadanie a nahradenie`,"replace-placeholder":`Zadajte reťazec na nahradenie`,"match-the-whole-cell":`Zhoda s celou bunkou`,"find-direction":{title:`Smer hľadania`,row:`Hľadať podľa riadkov`,column:`Hľadať podľa stĺpcov`},"find-scope":{title:`Rozsah hľadania`,"current-sheet":`Aktuálny hárok`,workbook:`Zošit`},"find-by":{title:`Hľadať podľa`,value:`Hľadať podľa hodnoty`,formula:`Hľadať vzorec`},"no-match":`Hľadanie bolo dokončené, ale nenašla sa žiadna zhoda.`,"no-result":`Žiadne výsledky`},replace:{"all-success":`Všetkých {0} zhôd bolo nahradených`,"partial-success":`Nahradených {0} zhôd, {1} sa nepodarilo nahradiť`,"all-failure":`Nahradenie zlyhalo`,confirm:{title:`Ste si istí, že chcete nahradiť všetky zhody?`}},button:{confirm:`OK`,cancel:`Zrušiť`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceViVN=t())})(this,function(){return{"find-replace":{toolbar:`Tìm kiếm và Thay thế`,shortcut:{"open-find-dialog":`Mở hộp thoại Tìm kiếm`,"open-replace-dialog":`Mở hộp thoại Thay thế`,"close-dialog":`Đóng hộp thoại Tìm kiếm & Thay thế`,"go-to-next-match":`Chuyển đến kết quả tiếp theo`,"go-to-previous-match":`Chuyển đến kết quả trước đó`,"focus-selection":`Tập trung vào vùng chọn`,panel:`Tìm kiếm và Thay thế`},dialog:{title:`Tìm kiếm`,find:`Tìm kiếm`,replace:`Thay thế`,"replace-all":`Thay thế Tất cả`,"case-sensitive":`Phân biệt chữ hoa chữ thường`,"find-placeholder":`Tìm trong Trang tính này`,"advanced-finding":`Tìm kiếm & Thay thế Nâng cao`,"replace-placeholder":`Nhập chuỗi thay thế`,"match-the-whole-cell":`Khớp toàn bộ ô`,"find-direction":{title:`Hướng tìm kiếm`,row:`Tìm theo hàng`,column:`Tìm theo cột`},"find-scope":{title:`Phạm vi tìm kiếm`,"current-sheet":`Trang tính hiện tại`,workbook:`Sổ làm việc`},"find-by":{title:`Tìm theo`,value:`Tìm theo giá trị`,formula:`Tìm công thức`},"no-match":`Đã hoàn thành tìm kiếm nhưng không tìm thấy kết quả phù hợp.`,"no-result":`Không có kết quả`},replace:{"all-success":`Đã thay thế tất cả {0} kết quả phù hợp`,"all-failure":`Thay thế thất bại`,confirm:{title:`Bạn có chắc chắn muốn thay thế tất cả các kết quả phù hợp không?`}},button:{confirm:`Xác nhận`,cancel:`Hủy`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceViVN=t())})(this,function(){return{"find-replace":{toolbar:`Tìm kiếm và Thay thế`,shortcut:{"open-find-dialog":`Mở hộp thoại Tìm kiếm`,"open-replace-dialog":`Mở hộp thoại Thay thế`,"close-dialog":`Đóng hộp thoại Tìm kiếm & Thay thế`,"go-to-next-match":`Chuyển đến kết quả tiếp theo`,"go-to-previous-match":`Chuyển đến kết quả trước đó`,"focus-selection":`Tập trung vào vùng chọn`,panel:`Tìm kiếm và Thay thế`},dialog:{title:`Tìm kiếm`,find:`Tìm kiếm`,replace:`Thay thế`,"replace-all":`Thay thế Tất cả`,"case-sensitive":`Phân biệt chữ hoa chữ thường`,"find-placeholder":`Tìm trong Trang tính này`,"advanced-finding":`Tìm kiếm & Thay thế Nâng cao`,"replace-placeholder":`Nhập chuỗi thay thế`,"match-the-whole-cell":`Khớp toàn bộ ô`,"find-direction":{title:`Hướng tìm kiếm`,row:`Tìm theo hàng`,column:`Tìm theo cột`},"find-scope":{title:`Phạm vi tìm kiếm`,"current-sheet":`Trang tính hiện tại`,workbook:`Sổ làm việc`},"find-by":{title:`Tìm theo`,value:`Tìm theo giá trị`,formula:`Tìm công thức`},"no-match":`Đã hoàn thành tìm kiếm nhưng không tìm thấy kết quả phù hợp.`,"no-result":`Không có kết quả`},replace:{"all-success":`Đã thay thế tất cả {0} kết quả phù hợp`,"partial-success":`Đã thay thế {0} kết quả phù hợp, không thể thay thế {1}`,"all-failure":`Thay thế thất bại`,confirm:{title:`Bạn có chắc chắn muốn thay thế tất cả các kết quả phù hợp không?`}},button:{confirm:`Xác nhận`,cancel:`Hủy`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceZhCN=t())})(this,function(){return{"find-replace":{toolbar:`查找替换`,shortcut:{"open-find-dialog":`打开查找对话框`,"open-replace-dialog":`打开替换对话框`,"close-dialog":`关闭查找替换对话框`,"go-to-next-match":`下一个匹配项`,"go-to-previous-match":`下一个匹配项`,"focus-selection":`聚焦选区`,panel:`查找替换`},dialog:{title:`查找`,find:`查找`,replace:`替换`,"replace-all":`替换全部`,"find-placeholder":`输入查找内容`,"advanced-finding":`替换 / 高级查找`,"replace-placeholder":`输入替换内容`,"case-sensitive":`匹配大小写`,"match-the-whole-cell":`匹配整个单元格`,"find-scope":{title:`查找范围`,"current-sheet":`当前子表`,workbook:`整个工作簿`},"find-direction":{title:`查找顺序`,column:`按列查找`,row:`按行查找`},"find-by":{title:`查找方式`,formula:`查找公式`,value:`查找值`},"no-match":`已完成搜索,但是未找到任何匹配项`,"no-result":`无结果`},replace:{"all-success":`已全部替换 {0} 个匹配项`,"all-failure":`替换失败`,confirm:{title:`确定要替换所有的匹配项吗?`}},button:{confirm:`确定`,cancel:`取消`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceZhCN=t())})(this,function(){return{"find-replace":{toolbar:`查找替换`,shortcut:{"open-find-dialog":`打开查找对话框`,"open-replace-dialog":`打开替换对话框`,"close-dialog":`关闭查找替换对话框`,"go-to-next-match":`下一个匹配项`,"go-to-previous-match":`下一个匹配项`,"focus-selection":`聚焦选区`,panel:`查找替换`},dialog:{title:`查找`,find:`查找`,replace:`替换`,"replace-all":`替换全部`,"find-placeholder":`输入查找内容`,"advanced-finding":`替换 / 高级查找`,"replace-placeholder":`输入替换内容`,"case-sensitive":`匹配大小写`,"match-the-whole-cell":`匹配整个单元格`,"find-scope":{title:`查找范围`,"current-sheet":`当前子表`,workbook:`整个工作簿`},"find-direction":{title:`查找顺序`,column:`按列查找`,row:`按行查找`},"find-by":{title:`查找方式`,formula:`查找公式`,value:`查找值`},"no-match":`已完成搜索,但是未找到任何匹配项`,"no-result":`无结果`},replace:{"all-success":`已全部替换 {0} 个匹配项`,"partial-success":`已替换 {0} 个匹配项,{1} 个替换失败`,"all-failure":`替换失败`,confirm:{title:`确定要替换所有的匹配项吗?`}},button:{confirm:`确定`,cancel:`取消`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceZhHK=t())})(this,function(){return{"find-replace":{toolbar:`尋找替換`,shortcut:{"open-find-dialog":`打開尋找對話框`,"open-replace-dialog":`打開取代對話框`,"close-dialog":`關閉尋找與取代對話框`,"go-to-next-match":`前往下一個匹配項`,"go-to-previous-match":`前往上一個匹配項`,"focus-selection":`聚焦選取範圍`,panel:`尋找替換`},dialog:{title:`尋找`,find:`尋找`,replace:`取代`,"replace-all":`全部取代`,"case-sensitive":`區分大小寫`,"find-placeholder":`在此工作表中尋找`,"advanced-finding":`進階搜尋與取代`,"replace-placeholder":`輸入取代字串`,"match-the-whole-cell":`完全符合儲存格內容`,"find-direction":{title:`尋找方向`,row:`按列搜尋`,column:`按欄搜尋`},"find-scope":{title:`尋找範圍`,"current-sheet":`目前工作表`,workbook:`整個活頁簿`},"find-by":{title:`尋找方式`,value:`按值尋找`,formula:`尋找公式`},"no-match":`已完成尋找,但未找到任何相符項目。`,"no-result":`無結果`},replace:{"all-success":`已取代全部 {0} 個相符項目`,"all-failure":`取代失敗`,confirm:{title:`確定要取代所有相符項目嗎?`}},button:{confirm:`確定`,cancel:`取消`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceZhHK=t())})(this,function(){return{"find-replace":{toolbar:`尋找替換`,shortcut:{"open-find-dialog":`打開尋找對話框`,"open-replace-dialog":`打開取代對話框`,"close-dialog":`關閉尋找與取代對話框`,"go-to-next-match":`前往下一個匹配項`,"go-to-previous-match":`前往上一個匹配項`,"focus-selection":`聚焦選取範圍`,panel:`尋找替換`},dialog:{title:`尋找`,find:`尋找`,replace:`取代`,"replace-all":`全部取代`,"case-sensitive":`區分大小寫`,"find-placeholder":`在此工作表中尋找`,"advanced-finding":`進階搜尋與取代`,"replace-placeholder":`輸入取代字串`,"match-the-whole-cell":`完全符合儲存格內容`,"find-direction":{title:`尋找方向`,row:`按列搜尋`,column:`按欄搜尋`},"find-scope":{title:`尋找範圍`,"current-sheet":`目前工作表`,workbook:`整個活頁簿`},"find-by":{title:`尋找方式`,value:`按值尋找`,formula:`尋找公式`},"no-match":`已完成尋找,但未找到任何相符項目。`,"no-result":`無結果`},replace:{"all-success":`已取代全部 {0} 個相符項目`,"partial-success":`已取代 {0} 個相符項目,{1} 個取代失敗`,"all-failure":`取代失敗`,confirm:{title:`確定要取代所有相符項目嗎?`}},button:{confirm:`確定`,cancel:`取消`}}}});
@@ -1 +1 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceZhTW=t())})(this,function(){return{"find-replace":{toolbar:`尋找替換`,shortcut:{"open-find-dialog":`打開尋找對話框`,"open-replace-dialog":`打開取代對話框`,"close-dialog":`關閉尋找與取代對話框`,"go-to-next-match":`前往下一個匹配項`,"go-to-previous-match":`前往上一個匹配項`,"focus-selection":`聚焦選取範圍`,panel:`尋找替換`},dialog:{title:`尋找`,find:`尋找`,replace:`取代`,"replace-all":`全部取代`,"case-sensitive":`區分大小寫`,"find-placeholder":`在此工作表中尋找`,"advanced-finding":`進階搜尋與取代`,"replace-placeholder":`輸入取代字串`,"match-the-whole-cell":`完全符合儲存格內容`,"find-direction":{title:`尋找方向`,row:`按列搜尋`,column:`按欄搜尋`},"find-scope":{title:`尋找範圍`,"current-sheet":`目前工作表`,workbook:`整個活頁簿`},"find-by":{title:`尋找方式`,value:`按值尋找`,formula:`尋找公式`},"no-match":`已完成尋找,但未找到任何相符項目。`,"no-result":`無結果`},replace:{"all-success":`已取代全部 {0} 個相符項目`,"all-failure":`取代失敗`,confirm:{title:`確定要取代所有相符項目嗎?`}},button:{confirm:`確定`,cancel:`取消`}}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverFindReplaceZhTW=t())})(this,function(){return{"find-replace":{toolbar:`尋找替換`,shortcut:{"open-find-dialog":`打開尋找對話框`,"open-replace-dialog":`打開取代對話框`,"close-dialog":`關閉尋找與取代對話框`,"go-to-next-match":`前往下一個匹配項`,"go-to-previous-match":`前往上一個匹配項`,"focus-selection":`聚焦選取範圍`,panel:`尋找替換`},dialog:{title:`尋找`,find:`尋找`,replace:`取代`,"replace-all":`全部取代`,"case-sensitive":`區分大小寫`,"find-placeholder":`在此工作表中尋找`,"advanced-finding":`進階搜尋與取代`,"replace-placeholder":`輸入取代字串`,"match-the-whole-cell":`完全符合儲存格內容`,"find-direction":{title:`尋找方向`,row:`按列搜尋`,column:`按欄搜尋`},"find-scope":{title:`尋找範圍`,"current-sheet":`目前工作表`,workbook:`整個活頁簿`},"find-by":{title:`尋找方式`,value:`按值尋找`,formula:`尋找公式`},"no-match":`已完成尋找,但未找到任何相符項目。`,"no-result":`無結果`},replace:{"all-success":`已取代全部 {0} 個相符項目`,"partial-success":`已取代 {0} 個相符項目,{1} 個取代失敗`,"all-failure":`取代失敗`,confirm:{title:`確定要取代所有相符項目嗎?`}},button:{confirm:`確定`,cancel:`取消`}}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/find-replace",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-insiders.20260629-12f2e44",
4
4
  "private": false,
5
5
  "description": "Shared find and replace services and UI infrastructure for Univer.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -58,11 +58,11 @@
58
58
  "rxjs": ">=7.0.0"
59
59
  },
60
60
  "dependencies": {
61
- "@univerjs/icons": "1.12.0",
62
- "@univerjs/core": "1.0.0-alpha.0",
63
- "@univerjs/design": "1.0.0-alpha.0",
64
- "@univerjs/engine-render": "1.0.0-alpha.0",
65
- "@univerjs/ui": "1.0.0-alpha.0"
61
+ "@univerjs/icons": "1.14.0",
62
+ "@univerjs/core": "1.0.0-insiders.20260629-12f2e44",
63
+ "@univerjs/engine-render": "1.0.0-insiders.20260629-12f2e44",
64
+ "@univerjs/design": "1.0.0-insiders.20260629-12f2e44",
65
+ "@univerjs/ui": "1.0.0-insiders.20260629-12f2e44"
66
66
  },
67
67
  "devDependencies": {
68
68
  "postcss": "^8.5.15",
@@ -71,7 +71,7 @@
71
71
  "tailwindcss": "3.4.18",
72
72
  "typescript": "^6.0.3",
73
73
  "vitest": "^4.1.9",
74
- "@univerjs-infra/shared": "1.0.0-alpha.0"
74
+ "@univerjs-infra/shared": "1.0.0-alpha.1"
75
75
  },
76
76
  "scripts": {
77
77
  "test": "vitest run",
package/LICENSE DELETED
@@ -1,176 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS