@univerjs-pro/drill-down-extraction 0.4.2-nightly.202411071606 → 0.4.2-nightly.202411081606

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/index.js +1 -0
  2. package/lib/cjs/locale/en-US.js +1 -0
  3. package/lib/cjs/locale/fa-IR.js +1 -0
  4. package/lib/cjs/locale/ru-RU.js +1 -0
  5. package/lib/cjs/locale/vi-VN.js +1 -0
  6. package/lib/cjs/locale/zh-CN.js +1 -0
  7. package/lib/cjs/locale/zh-TW.js +1 -0
  8. package/lib/es/index.js +1 -1
  9. package/lib/es/locale/en-US.js +1 -0
  10. package/lib/es/locale/fa-IR.js +1 -0
  11. package/lib/es/locale/ru-RU.js +1 -0
  12. package/lib/es/locale/vi-VN.js +1 -0
  13. package/lib/es/locale/zh-CN.js +1 -0
  14. package/lib/es/locale/zh-TW.js +1 -0
  15. package/lib/types/index.d.ts +95 -3
  16. package/lib/umd/index.js +1 -1
  17. package/lib/umd/locale/en-US.js +1 -1
  18. package/lib/umd/locale/fa-IR.js +1 -1
  19. package/lib/umd/locale/ru-RU.js +1 -1
  20. package/lib/umd/locale/vi-VN.js +1 -1
  21. package/lib/umd/locale/zh-CN.js +1 -1
  22. package/lib/umd/locale/zh-TW.js +1 -1
  23. package/package.json +27 -21
  24. package/lib/locale/en-US.js +0 -1
  25. package/lib/locale/fa-IR.js +0 -1
  26. package/lib/locale/ru-RU.js +0 -1
  27. package/lib/locale/vi-VN.js +0 -1
  28. package/lib/locale/zh-CN.js +0 -1
  29. package/lib/locale/zh-TW.js +0 -1
  30. package/lib/types/common/extraction-field.d.ts +0 -24
  31. package/lib/types/common/field-extraction-event.d.ts +0 -34
  32. package/lib/types/constants.d.ts +0 -1
  33. package/lib/types/controllers/config.schema.d.ts +0 -5
  34. package/lib/types/controllers/drill-down-extraction-hyper-link.controller.d.ts +0 -21
  35. package/lib/types/controllers/drill-down-extraction-ui.controller.d.ts +0 -7
  36. package/lib/types/controllers/drill-down-extraction.controller.d.ts +0 -61
  37. package/lib/types/locale/en-US.d.ts +0 -3
  38. package/lib/types/locale/fa-IR.d.ts +0 -3
  39. package/lib/types/locale/ru-RU.d.ts +0 -3
  40. package/lib/types/locale/vi-VN.d.ts +0 -3
  41. package/lib/types/locale/zh-CN.d.ts +0 -46
  42. package/lib/types/locale/zh-TW.d.ts +0 -3
  43. package/lib/types/plugin.d.ts +0 -13
  44. package/lib/types/services/suggestion-manager.service.d.ts +0 -62
  45. package/lib/types/views/components/ExtractionFieldForm.d.ts +0 -2
  46. package/lib/types/views/components/FloatingButton.d.ts +0 -25
@@ -1,3 +1,95 @@
1
- export { UniverSheetsDrillDownExtractionPlugin } from './plugin';
2
- export { UniverSheetsDrillDownExtractionPluginName } from './constants';
3
- export { SuggestionManagerService, SuggestStateEnum } from './services/suggestion-manager.service';
1
+ import { DisposableCollection } from '@univerjs/core';
2
+ import { IConfigService } from '@univerjs/core';
3
+ import { IDisposable } from '@univerjs/core';
4
+ import { Injector } from '@univerjs/core';
5
+ import { IRange } from '@univerjs/core';
6
+ import { Nullable } from '@univerjs/core';
7
+ import { Observable } from 'rxjs';
8
+ import { Plugin as Plugin_2 } from '@univerjs/core';
9
+ import { UniverInstanceType } from '@univerjs/core';
10
+
11
+ declare interface ISuggestionManagerOptions {
12
+ label: string;
13
+ value: string;
14
+ selected?: boolean;
15
+ }
16
+
17
+ declare interface ISuggestionManagerServiceParam {
18
+ unitId: string;
19
+ subUnitId: string;
20
+ range: IRange;
21
+ disposable: DisposableCollection;
22
+ }
23
+
24
+ declare interface ISuggestManagerServiceRequestParam {
25
+ minInterval: number | null;
26
+ maxInterval: number | null;
27
+ }
28
+
29
+ declare interface IUniverDrillDownExtractionConfig {
30
+ }
31
+
32
+ declare enum OperationTypeEnum {
33
+ REQUEST = 0,
34
+ CLEAR = 1,
35
+ STOP = 2,
36
+ START = 3
37
+ }
38
+
39
+ export declare class SuggestionManagerService {
40
+ private _suggestionParam;
41
+ private _requestParam;
42
+ private _suggestState;
43
+ private _request$;
44
+ readonly request$: Observable<SuggestStateEnum>;
45
+ private _operation$;
46
+ readonly operation$: Observable<OperationTypeEnum>;
47
+ private _extensionInstalled;
48
+ constructor();
49
+ get extensionInstalled(): boolean;
50
+ get suggestState(): SuggestStateEnum;
51
+ dispose(): void;
52
+ suggest(suggestState?: SuggestStateEnum): void;
53
+ operation(state?: OperationTypeEnum): void;
54
+ isSuggesting(): boolean;
55
+ updateRange(range: IRange): void;
56
+ disposeSuggestion(): void;
57
+ addDisposable(disposable: IDisposable): void;
58
+ setRequestParam(value: Nullable<ISuggestManagerServiceRequestParam>): void;
59
+ setSuggestionParam(value: Nullable<ISuggestionManagerServiceParam>): void;
60
+ getRequestParam(): Nullable<ISuggestManagerServiceRequestParam>;
61
+ getSuggestionParam(): Nullable<ISuggestionManagerServiceParam>;
62
+ getSuggestionRange(): IRange | undefined;
63
+ private _hyperlinkOptions;
64
+ getHyperlinkOptions(): ISuggestionManagerOptions[];
65
+ setHyperlinkOptions(options: ISuggestionManagerOptions[]): void;
66
+ private _columnOptions;
67
+ getColumnOptions(): ISuggestionManagerOptions[];
68
+ setColumnOptions(options: ISuggestionManagerOptions[]): void;
69
+ getSelectedColumns(): number[];
70
+ }
71
+
72
+ export declare enum SuggestStateEnum {
73
+ CONFIG = 0,
74
+ REQUESTING = 1,
75
+ COMPLETE = 2,
76
+ ERROR = 3,
77
+ STOP = 4,
78
+ IDLE = 5
79
+ }
80
+
81
+ export declare class UniverSheetsDrillDownExtractionPlugin extends Plugin_2 {
82
+ private readonly _config;
83
+ protected _injector: Injector;
84
+ private readonly _configService;
85
+ static pluginName: "UNIVER_DRILL_DOWN_EXTRACTION_PLUGIN";
86
+ static type: UniverInstanceType;
87
+ constructor(_config: IUniverDrillDownExtractionConfig | undefined, _injector: Injector, _configService: IConfigService);
88
+ onStarting(): void;
89
+ onReady(): void;
90
+ onSteady(): void;
91
+ }
92
+
93
+ export declare const UniverSheetsDrillDownExtractionPluginName: "UNIVER_DRILL_DOWN_EXTRACTION_PLUGIN";
94
+
95
+ export { }