@univerjs/sheets-ui 1.0.0-rc.0 → 1.0.1

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 (46) hide show
  1. package/lib/cjs/facade.js +5 -13
  2. package/lib/cjs/index.js +7439 -6538
  3. package/lib/cjs/locale/ar-SA.js +0 -1
  4. package/lib/cjs/locale/ca-ES.js +0 -1
  5. package/lib/cjs/locale/de-DE.js +0 -1
  6. package/lib/cjs/locale/en-US.js +0 -1
  7. package/lib/cjs/locale/es-ES.js +0 -1
  8. package/lib/cjs/locale/fa-IR.js +0 -1
  9. package/lib/cjs/locale/fr-FR.js +0 -1
  10. package/lib/cjs/locale/id-ID.js +0 -1
  11. package/lib/cjs/locale/it-IT.js +0 -1
  12. package/lib/cjs/locale/ja-JP.js +0 -1
  13. package/lib/cjs/locale/ko-KR.js +0 -1
  14. package/lib/cjs/locale/pl-PL.js +0 -1
  15. package/lib/cjs/locale/pt-BR.js +0 -1
  16. package/lib/cjs/locale/ru-RU.js +0 -1
  17. package/lib/cjs/locale/sk-SK.js +0 -1
  18. package/lib/cjs/locale/vi-VN.js +0 -1
  19. package/lib/cjs/locale/zh-CN.js +0 -1
  20. package/lib/cjs/locale/zh-HK.js +0 -1
  21. package/lib/cjs/locale/zh-TW.js +0 -1
  22. package/lib/es/facade.js +5 -13
  23. package/lib/es/index.js +7444 -6543
  24. package/lib/facade.js +5 -13
  25. package/lib/index.js +7444 -6543
  26. package/lib/types/controllers/auto-fill-ui.controller.d.ts +7 -1
  27. package/lib/types/controllers/render-controllers/desktop-cell-edit.render-controller.d.ts +49 -0
  28. package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +2 -17
  29. package/lib/types/controllers/render-controllers/format-painter.render-controller.d.ts +5 -1
  30. package/lib/types/controllers/render-controllers/mobile/mobile-cell-edit.render-controller.d.ts +30 -0
  31. package/lib/types/controllers/render-controllers/mobile/mobile-hover.render-controller.d.ts +9 -0
  32. package/lib/types/controllers/render-controllers/mobile/mobile-scroll.render-controller.d.ts +0 -12
  33. package/lib/types/facade/f-range.d.ts +4 -4
  34. package/lib/types/facade/f-workbook.d.ts +2 -2
  35. package/lib/types/facade/f-worksheet.d.ts +12 -8
  36. package/lib/types/menu/mobile-schema.d.ts +17 -0
  37. package/lib/types/services/canvas-pop-manager.service.d.ts +2 -3
  38. package/lib/types/services/clipboard/html-to-usm/utils.d.ts +2 -0
  39. package/lib/types/services/selection/selection-render.service.d.ts +3 -0
  40. package/lib/types/views/auto-fill-popup-menu/AutoFillPopupMenu.d.ts +1 -5
  41. package/lib/types/views/auto-fill-popup-menu/component-name.d.ts +16 -0
  42. package/lib/types/views/sheet-container/SheetContainer.d.ts +1 -8
  43. package/lib/umd/facade.js +1 -1
  44. package/lib/umd/index.js +10 -28
  45. package/package.json +16 -16
  46. package/lib/types/services/sheet-loading-render.service.d.ts +0 -65
package/lib/facade.js CHANGED
@@ -514,17 +514,13 @@ var FUniverSheetsUIMixin = class extends FUniver {
514
514
  this.disposeWithMe(this.registerEventHandler(this.Event.BeforeClipboardChange, () => commandService.beforeCommandExecuted((commandInfo) => {
515
515
  switch (commandInfo.id) {
516
516
  case CopyCommand.id:
517
- case CutCommand.id:
518
- this._beforeClipboardChange();
519
- break;
517
+ case CutCommand.id: this._beforeClipboardChange();
520
518
  }
521
519
  })));
522
520
  this.disposeWithMe(this.registerEventHandler(this.Event.ClipboardChanged, () => commandService.onCommandExecuted((commandInfo) => {
523
521
  switch (commandInfo.id) {
524
522
  case CopyCommand.id:
525
- case CutCommand.id:
526
- this._clipboardChanged();
527
- break;
523
+ case CutCommand.id: this._clipboardChanged();
528
524
  }
529
525
  })));
530
526
  this.disposeWithMe(this.registerEventHandler(this.Event.BeforeClipboardPaste, () => commandService.beforeCommandExecuted((commandInfo) => {
@@ -532,9 +528,7 @@ var FUniverSheetsUIMixin = class extends FUniver {
532
528
  case SheetPasteShortKeyCommand.id:
533
529
  this._beforeClipboardPaste(commandInfo.params);
534
530
  break;
535
- case PasteCommand.id:
536
- this._beforeClipboardPasteAsync();
537
- break;
531
+ case PasteCommand.id: this._beforeClipboardPasteAsync();
538
532
  }
539
533
  })));
540
534
  this.disposeWithMe(this.registerEventHandler(this.Event.ClipboardPasted, () => commandService.onCommandExecuted((commandInfo) => {
@@ -542,9 +536,7 @@ var FUniverSheetsUIMixin = class extends FUniver {
542
536
  case SheetPasteShortKeyCommand.id:
543
537
  this._clipboardPaste(commandInfo.params);
544
538
  break;
545
- case PasteCommand.id:
546
- this._clipboardPasteAsync();
547
- break;
539
+ case PasteCommand.id: this._clipboardPasteAsync();
548
540
  }
549
541
  })));
550
542
  this.disposeWithMe(this.registerEventHandler(this.Event.SheetSkeletonChanged, () => commandService.onCommandExecuted((commandInfo) => {
@@ -1205,7 +1197,7 @@ var FRangeSheetsUIMixin = class extends FRange {
1205
1197
  /**
1206
1198
  * attachRangePopup
1207
1199
  * @param popup
1208
- * @returns {IDisposable} disposable
1200
+ * @returns {Nullable<IDisposable>} A disposable that detaches the popup, or `null` if the popup cannot be attached.
1209
1201
  * @example
1210
1202
  * ```typescript
1211
1203
  * let fWorksheet = univerAPI.getActiveWorkbook().getSheetByName('Sheet1');