@speed-sheet/vue3-antd 0.1.1 → 0.1.2

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 (56) hide show
  1. package/dist/SpeedSheet.vue.d.ts.map +1 -1
  2. package/dist/bubbleMenus/noteConfigMenu/index.vue.d.ts.map +1 -1
  3. package/dist/bubbleMenus/noteMenus/NoteHoverTracker.vue.d.ts.map +1 -1
  4. package/dist/components/CfRangePickBanner.vue.d.ts +3 -0
  5. package/dist/components/CfRangePickBanner.vue.d.ts.map +1 -0
  6. package/dist/components/ConditionalFormatRuleEditor.vue.d.ts +16 -0
  7. package/dist/components/ConditionalFormatRuleEditor.vue.d.ts.map +1 -0
  8. package/dist/components/ConditionalFormatSidebar.vue.d.ts +7 -0
  9. package/dist/components/ConditionalFormatSidebar.vue.d.ts.map +1 -0
  10. package/dist/components/ProtectionManageModal.vue.d.ts +3 -0
  11. package/dist/components/ProtectionManageModal.vue.d.ts.map +1 -0
  12. package/dist/composables/sheetBuiltin.d.ts +2 -0
  13. package/dist/composables/sheetBuiltin.d.ts.map +1 -1
  14. package/dist/composables/useCfRangePick.d.ts +14 -0
  15. package/dist/composables/useCfRangePick.d.ts.map +1 -0
  16. package/dist/composables/useConditionalFormatPanel.d.ts +16 -0
  17. package/dist/composables/useConditionalFormatPanel.d.ts.map +1 -0
  18. package/dist/composables/useProtectionManage.d.ts +17 -0
  19. package/dist/composables/useProtectionManage.d.ts.map +1 -0
  20. package/dist/composables/useSheetToolbar.d.ts +1 -0
  21. package/dist/composables/useSheetToolbar.d.ts.map +1 -1
  22. package/dist/composables/useSheetToolbarContext.d.ts +9 -1
  23. package/dist/composables/useSheetToolbarContext.d.ts.map +1 -1
  24. package/dist/extensions/conditional-format/index.d.ts +2 -0
  25. package/dist/extensions/conditional-format/index.d.ts.map +1 -0
  26. package/dist/extensions/image/Layer.vue.d.ts +1 -1
  27. package/dist/extensions/image/Layer.vue.d.ts.map +1 -1
  28. package/dist/extensions/protection/index.d.ts +2 -0
  29. package/dist/extensions/protection/index.d.ts.map +1 -0
  30. package/dist/helpers/cfPresets.d.ts +15 -0
  31. package/dist/helpers/cfPresets.d.ts.map +1 -0
  32. package/dist/i18n/index.d.ts +148 -0
  33. package/dist/i18n/index.d.ts.map +1 -1
  34. package/dist/index.cjs +73 -73
  35. package/dist/index.d.ts +2 -1
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +15572 -13928
  38. package/dist/install.d.ts +2 -0
  39. package/dist/install.d.ts.map +1 -1
  40. package/dist/menus/contextMenu/index.vue.d.ts +3 -3
  41. package/dist/menus/contextMenu/index.vue.d.ts.map +1 -1
  42. package/dist/menus/insert/InsertMenu.vue.d.ts.map +1 -1
  43. package/dist/menus/insert/builtins.d.ts.map +1 -1
  44. package/dist/menus/insert/types.d.ts +2 -2
  45. package/dist/menus/insert/types.d.ts.map +1 -1
  46. package/dist/menus/toolbar/align.d.ts +1 -1
  47. package/dist/menus/toolbar/conditionalFormat.vue.d.ts +3 -0
  48. package/dist/menus/toolbar/conditionalFormat.vue.d.ts.map +1 -0
  49. package/dist/menus/toolbar/freeze.vue.d.ts +3 -0
  50. package/dist/menus/toolbar/freeze.vue.d.ts.map +1 -0
  51. package/dist/menus/toolbar/index.d.ts.map +1 -1
  52. package/dist/menus/toolbar/keys.d.ts.map +1 -1
  53. package/dist/menus/toolbar/protect.vue.d.ts +3 -0
  54. package/dist/menus/toolbar/protect.vue.d.ts.map +1 -0
  55. package/dist/vue3-antd.css +1 -1
  56. package/package.json +10 -6
@@ -1 +1 @@
1
- {"version":3,"file":"SpeedSheet.vue.d.ts","sourceRoot":"","sources":["../src/SpeedSheet.vue"],"names":[],"mappings":"AAgZA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAG9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;AA4hB9C,wBAQG"}
1
+ {"version":3,"file":"SpeedSheet.vue.d.ts","sourceRoot":"","sources":["../src/SpeedSheet.vue"],"names":[],"mappings":"AAwfA,OAAO,KAAK,EAAuB,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAInE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;AAgqB9C,wBAQG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/bubbleMenus/noteConfigMenu/index.vue"],"names":[],"mappings":"AAkFA,OAAO,EAA0C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAMlD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;CAChF,CAAC;;AA2IF,wBAMG"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/bubbleMenus/noteConfigMenu/index.vue"],"names":[],"mappings":"AAqGA,OAAO,EAA0C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAMtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAMlD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;CAChF,CAAC;;AA0JF,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"NoteHoverTracker.vue.d.ts","sourceRoot":"","sources":["../../../src/bubbleMenus/noteMenus/NoteHoverTracker.vue"],"names":[],"mappings":"AAoHA,OAAO,EAA0B,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAMtD,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;CAChF,CAAC;;AA8HF,wBAMG"}
1
+ {"version":3,"file":"NoteHoverTracker.vue.d.ts","sourceRoot":"","sources":["../../../src/bubbleMenus/noteMenus/NoteHoverTracker.vue"],"names":[],"mappings":"AA0IA,OAAO,EAAiC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAY7D,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;CAChF,CAAC;;AA8IF,wBAMG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=CfRangePickBanner.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CfRangePickBanner.vue.d.ts","sourceRoot":"","sources":["../../src/components/CfRangePickBanner.vue"],"names":[],"mappings":";AAuEA,wBAKG"}
@@ -0,0 +1,16 @@
1
+ import type { CfRule } from '@speed-sheet/extension-conditional-format';
2
+ type __VLS_Props = {
3
+ rule: CfRule | null;
4
+ rangePickActive: boolean;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "start-range-pick": (initial: string) => any;
8
+ "stop-range-pick": () => any;
9
+ "update:draft": (rule: CfRule) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onStart-range-pick"?: ((initial: string) => any) | undefined;
12
+ "onStop-range-pick"?: (() => any) | undefined;
13
+ "onUpdate:draft"?: ((rule: CfRule) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
16
+ //# sourceMappingURL=ConditionalFormatRuleEditor.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalFormatRuleEditor.vue.d.ts","sourceRoot":"","sources":["../../src/components/ConditionalFormatRuleEditor.vue"],"names":[],"mappings":"AA2ZA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAYvE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,eAAe,EAAE,OAAO,CAAA;CACzB,CAAC;;;;;;;;;;AA6mBF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import type { useCfRangePick } from '../composables/useCfRangePick';
2
+ type __VLS_Props = {
3
+ rangePick: ReturnType<typeof useCfRangePick>;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
7
+ //# sourceMappingURL=ConditionalFormatSidebar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalFormatSidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ConditionalFormatSidebar.vue"],"names":[],"mappings":"AAocA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAInE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;CAC7C,CAAC;;AA4kBF,wBAMG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=ProtectionManageModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProtectionManageModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ProtectionManageModal.vue"],"names":[],"mappings":";AA2NA,wBAKG"}
@@ -4,6 +4,8 @@ export declare function hasSheetDropdownExtension(extensions: unknown[] | undefi
4
4
  export declare function hasSheetLinkExtension(extensions: unknown[] | undefined): boolean;
5
5
  export declare function hasSheetNoteExtension(extensions: unknown[] | undefined): boolean;
6
6
  export declare function hasSheetFilterExtension(extensions: unknown[] | undefined): boolean;
7
+ export declare function hasSheetProtectionExtension(extensions: unknown[] | undefined): boolean;
8
+ export declare function hasSheetConditionalFormatExtension(extensions: unknown[] | undefined): boolean;
7
9
  /**
8
10
  * 合并 SpeedSheet 内置扩展与用户扩展(按 name 去重)。
9
11
  * 公式扩展由 useSheet → mergeBuiltinExtensions 单独合并。
@@ -1 +1 @@
1
- {"version":3,"file":"sheetBuiltin.d.ts","sourceRoot":"","sources":["../../src/composables/sheetBuiltin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAShE,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEjF;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEpF;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEhF;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEhF;AAED,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAElF;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,EACtC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAC3B,YAAY,CAAC,YAAY,CAAC,CAkB5B"}
1
+ {"version":3,"file":"sheetBuiltin.d.ts","sourceRoot":"","sources":["../../src/composables/sheetBuiltin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAchE,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEjF;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEpF;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEhF;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEhF;AAED,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAElF;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAEtF;AAED,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,CAE7F;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,EACtC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAC3B,YAAY,CAAC,YAAY,CAAC,CAwB5B"}
@@ -0,0 +1,14 @@
1
+ import { type Ref } from 'vue';
2
+ import type { Sheet } from '@speed-sheet/core';
3
+ export declare function useCfRangePick(sheet: Ref<Sheet | null>): {
4
+ active: Ref<boolean, boolean>;
5
+ overlayRange: import("vue").ComputedRef<{
6
+ row: [number, number];
7
+ column: [number, number];
8
+ } | null>;
9
+ startPick: (initialA1: string, confirm: (a1: string) => void) => void;
10
+ handleSelectRange: (r0: number, c0: number, r1: number, c1: number) => void;
11
+ confirmPick: () => void;
12
+ cancelPick: () => void;
13
+ };
14
+ //# sourceMappingURL=useCfRangePick.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCfRangePick.d.ts","sourceRoot":"","sources":["../../src/composables/useCfRangePick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAG9C,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC;;;aAE1B,CAAC,MAAM,EAAE,MAAM,CAAC;gBAAU,CAAC,MAAM,EAAE,MAAM,CAAC;;2BA2BvC,MAAM,WAAW,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,KAAG,IAAI;4BAkBpE,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,KACT,IAAI;uBAQiB,IAAI;sBAOL,IAAI;EAc5B"}
@@ -0,0 +1,16 @@
1
+ import { type Ref } from 'vue';
2
+ import type { CfRule } from '@speed-sheet/extension-conditional-format';
3
+ export type CfPanelMode = 'list' | 'edit';
4
+ export interface ConditionalFormatPanelContext {
5
+ open: Ref<boolean>;
6
+ mode: Ref<CfPanelMode>;
7
+ editingRule: Ref<CfRule | null>;
8
+ openPanel: () => void;
9
+ closePanel: () => void;
10
+ openList: () => void;
11
+ openEditor: (rule?: CfRule | null) => void;
12
+ }
13
+ export declare function provideConditionalFormatPanel(): ConditionalFormatPanelContext;
14
+ export declare function useConditionalFormatPanel(): ConditionalFormatPanelContext;
15
+ export declare function useConditionalFormatPanelOptional(): ConditionalFormatPanelContext | null;
16
+ //# sourceMappingURL=useConditionalFormatPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConditionalFormatPanel.d.ts","sourceRoot":"","sources":["../../src/composables/useConditionalFormatPanel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAEvE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzC,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,IAAI,EAAE,GAAG,CAAC,WAAW,CAAC,CAAA;IACtB,WAAW,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAC/B,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CAC3C;AAMD,wBAAgB,6BAA6B,IAAI,6BAA6B,CA+B7E;AAED,wBAAgB,yBAAyB,IAAI,6BAA6B,CAIzE;AAED,wBAAgB,iCAAiC,IAAI,6BAA6B,GAAG,IAAI,CAExF"}
@@ -0,0 +1,17 @@
1
+ import { type InjectionKey, type Ref } from 'vue';
2
+ export declare const PROTECTION_MANAGE_KEY: InjectionKey<{
3
+ open: Ref<boolean>;
4
+ openModal: () => void;
5
+ closeModal: () => void;
6
+ }>;
7
+ export declare function provideProtectionManage(): {
8
+ open: Ref<boolean, boolean>;
9
+ openModal: () => void;
10
+ closeModal: () => void;
11
+ };
12
+ export declare function useProtectionManageOptional(): {
13
+ open: Ref<boolean>;
14
+ openModal: () => void;
15
+ closeModal: () => void;
16
+ } | null;
17
+ //# sourceMappingURL=useProtectionManage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProtectionManage.d.ts","sourceRoot":"","sources":["../../src/composables/useProtectionManage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,YAAY,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAEvE,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC;IAC/C,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAA2C,CAAA;AAE5C,wBAAgB,uBAAuB;;;;EAatC;AAED,wBAAgB,2BAA2B;UApBnC,GAAG,CAAC,OAAO,CAAC;eACP,MAAM,IAAI;gBACT,MAAM,IAAI;SAoBvB"}
@@ -1,5 +1,6 @@
1
1
  import type { CellAttributes } from '@speed-sheet/shared';
2
2
  export declare function useSheetToolbar(): {
3
+ getViewportState: (() => import("./useSheetToolbarContext").SheetViewportSnapshot | null) | undefined;
3
4
  selection: import("vue").ComputedRef<import("@speed-sheet/shared").Selection | undefined>;
4
5
  cells: import("vue").ComputedRef<{
5
6
  r: number;
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetToolbar.d.ts","sourceRoot":"","sources":["../../src/composables/useSheetToolbar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAKzD,wBAAgB,eAAe;;;;;;;;;;;;;;8BAyCI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,KAAG,IAAI;sBAa7C,cAAc,KAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;EAoBlE"}
1
+ {"version":3,"file":"useSheetToolbar.d.ts","sourceRoot":"","sources":["../../src/composables/useSheetToolbar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAKzD,wBAAgB,eAAe;;;;;;;;;;;;;;;8BAyCI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,KAAG,IAAI;sBAa7C,cAAc,KAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;EAqBlE"}
@@ -1,6 +1,12 @@
1
1
  import type { InjectionKey, Ref } from 'vue';
2
- import type { Sheet } from '@speed-sheet/core';
2
+ import type { GridLayout, GridMetrics, Sheet } from '@speed-sheet/core';
3
3
  import type { CellAttributes } from '@speed-sheet/shared';
4
+ export interface SheetViewportSnapshot {
5
+ layout: GridLayout;
6
+ scrollX: number;
7
+ scrollY: number;
8
+ gridMetrics: GridMetrics;
9
+ }
4
10
  export interface SheetToolbarContext {
5
11
  sheet: Ref<Sheet | null | undefined>;
6
12
  /** 与 useSheet.revision 同步,驱动工具栏读取 sheet.state */
@@ -10,6 +16,8 @@ export interface SheetToolbarContext {
10
16
  formatPainterActive: Ref<boolean>;
11
17
  copiedStyle: Ref<Partial<CellAttributes> | null>;
12
18
  findReplaceOpen: Ref<boolean>;
19
+ /** 读取画布当前滚动与布局,供冻结等工具栏做视口校验 */
20
+ getViewportState?: () => SheetViewportSnapshot | null;
13
21
  }
14
22
  export declare const SHEET_TOOLBAR_KEY: InjectionKey<SheetToolbarContext>;
15
23
  //# sourceMappingURL=useSheetToolbarContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetToolbarContext.d.ts","sourceRoot":"","sources":["../../src/composables/useSheetToolbarContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IACpC,iDAAiD;IACjD,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACrB,wBAAwB;IACxB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACtB,mBAAmB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACjC,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAA;IAChD,eAAe,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,mBAAmB,CACxC,CAAA"}
1
+ {"version":3,"file":"useSheetToolbarContext.d.ts","sourceRoot":"","sources":["../../src/composables/useSheetToolbarContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,WAAW,CAAA;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IACpC,iDAAiD;IACjD,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACrB,wBAAwB;IACxB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACtB,mBAAmB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACjC,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAA;IAChD,eAAe,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAC7B,+BAA+B;IAC/B,gBAAgB,CAAC,EAAE,MAAM,qBAAqB,GAAG,IAAI,CAAA;CACtD;AAED,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,mBAAmB,CACxC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { ConditionalFormatExtension as SheetConditionalFormat, CF_EXTENSION_NAME, getCfRules, formatCfRuleLabel, formatCfRuleRange, formatRangeA1, parseRangeA1, type CfRule, type CfRuleType, type CfCellConditionOp, type CfCellStyle, type CfDataBarStyle, } from '@speed-sheet/extension-conditional-format';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/conditional-format/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,IAAI,sBAAsB,EACpD,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,cAAc,GACpB,MAAM,2CAA2C,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type SheetImageExtensionStorage } from '@speed-sheet/extension-image';
1
+ import type { SheetImageExtensionStorage } from '@speed-sheet/extension-image';
2
2
  import type { Extension } from '@speed-sheet/core';
3
3
  type __VLS_Props = {
4
4
  extension: Extension<SheetImageExtensionStorage>;
@@ -1 +1 @@
1
- {"version":3,"file":"Layer.vue.d.ts","sourceRoot":"","sources":["../../../src/extensions/image/Layer.vue"],"names":[],"mappings":"AAyGA,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAIlD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAC,0BAA0B,CAAC,CAAA;CACjD,CAAC;;AAmGF,wBAMG"}
1
+ {"version":3,"file":"Layer.vue.d.ts","sourceRoot":"","sources":["../../../src/extensions/image/Layer.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAKlD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAC,0BAA0B,CAAC,CAAA;CACjD,CAAC;;AA6DF,wBAMG"}
@@ -0,0 +1,2 @@
1
+ export { ProtectionExtension as SheetProtection, PROTECTION_EXTENSION_NAME, } from '@speed-sheet/extension-protection';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/protection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,IAAI,eAAe,EACtC,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { CfCellConditionOp, CfCellStyle } from '@speed-sheet/extension-conditional-format';
2
+ export declare const DEFAULT_CF_CELL_STYLE: CfCellStyle;
3
+ export declare const CF_CELL_OP_OPTIONS: {
4
+ key: CfCellConditionOp;
5
+ labelKey: string;
6
+ }[];
7
+ export type CfDataBarPreset = {
8
+ id: string;
9
+ color: string;
10
+ gradient: boolean;
11
+ labelKey: string;
12
+ };
13
+ export declare const CF_DATA_BAR_GRADIENT_PRESETS: CfDataBarPreset[];
14
+ export declare const CF_DATA_BAR_SOLID_PRESETS: CfDataBarPreset[];
15
+ //# sourceMappingURL=cfPresets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cfPresets.d.ts","sourceRoot":"","sources":["../../src/helpers/cfPresets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAA;AAE/F,eAAO,MAAM,qBAAqB,EAAE,WAGnC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE;IAAE,GAAG,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAM5E,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,4BAA4B,EAAE,eAAe,EAOzD,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,eAAe,EAOtD,CAAA"}
@@ -62,6 +62,24 @@ export declare const sheetI18n: import("vue-i18n").I18n<{
62
62
  link: string;
63
63
  insertLinkHint: string;
64
64
  formula: string;
65
+ protect: string;
66
+ };
67
+ protection: {
68
+ title: string;
69
+ protectRows: string;
70
+ protectCols: string;
71
+ protectCells: string;
72
+ manage: string;
73
+ manageTitle: string;
74
+ manageEmpty: string;
75
+ unprotect: string;
76
+ alreadyProtectedTitle: string;
77
+ alreadyProtectedContent: string;
78
+ blockedTitle: string;
79
+ blockedContent: string;
80
+ blockedCancel: string;
81
+ blockedManage: string;
82
+ ok: string;
65
83
  };
66
84
  formula: {
67
85
  common: string;
@@ -74,6 +92,62 @@ export declare const sheetI18n: import("vue-i18n").I18n<{
74
92
  seeAlso: string;
75
93
  notImplementedYet: string;
76
94
  };
95
+ conditionalFormat: {
96
+ title: string;
97
+ applyRange: string;
98
+ ruleType: string;
99
+ display: string;
100
+ stylePreview: string;
101
+ valuePlaceholder: string;
102
+ value2Placeholder: string;
103
+ minValue: string;
104
+ maxValue: string;
105
+ gradientFill: string;
106
+ solidFill: string;
107
+ gradient: string;
108
+ empty: string;
109
+ manageRules: string;
110
+ cancel: string;
111
+ confirm: string;
112
+ rangePickHint: string;
113
+ scope: {
114
+ selection: string;
115
+ all: string;
116
+ };
117
+ type: {
118
+ cell: string;
119
+ dataBar: string;
120
+ };
121
+ op: {
122
+ greaterThan: string;
123
+ lessThan: string;
124
+ between: string;
125
+ equal: string;
126
+ textContains: string;
127
+ };
128
+ bound: {
129
+ min: string;
130
+ max: string;
131
+ num: string;
132
+ percent: string;
133
+ };
134
+ color: {
135
+ blue: string;
136
+ green: string;
137
+ orange: string;
138
+ yellow: string;
139
+ red: string;
140
+ cyan: string;
141
+ };
142
+ menu: {
143
+ highlight: string;
144
+ dataBar: string;
145
+ moreRules: string;
146
+ newRule: string;
147
+ manage: string;
148
+ clear: string;
149
+ };
150
+ };
77
151
  };
78
152
  en: {
79
153
  contextMenu: {
@@ -132,6 +206,24 @@ export declare const sheetI18n: import("vue-i18n").I18n<{
132
206
  insertLink: string;
133
207
  insertLinkHint: string;
134
208
  formula: string;
209
+ protect: string;
210
+ };
211
+ protection: {
212
+ title: string;
213
+ protectRows: string;
214
+ protectCols: string;
215
+ protectCells: string;
216
+ manage: string;
217
+ manageTitle: string;
218
+ manageEmpty: string;
219
+ unprotect: string;
220
+ alreadyProtectedTitle: string;
221
+ alreadyProtectedContent: string;
222
+ blockedTitle: string;
223
+ blockedContent: string;
224
+ blockedCancel: string;
225
+ blockedManage: string;
226
+ ok: string;
135
227
  };
136
228
  formula: {
137
229
  common: string;
@@ -144,6 +236,62 @@ export declare const sheetI18n: import("vue-i18n").I18n<{
144
236
  seeAlso: string;
145
237
  notImplementedYet: string;
146
238
  };
239
+ conditionalFormat: {
240
+ title: string;
241
+ applyRange: string;
242
+ ruleType: string;
243
+ display: string;
244
+ stylePreview: string;
245
+ valuePlaceholder: string;
246
+ value2Placeholder: string;
247
+ minValue: string;
248
+ maxValue: string;
249
+ gradientFill: string;
250
+ solidFill: string;
251
+ gradient: string;
252
+ empty: string;
253
+ manageRules: string;
254
+ cancel: string;
255
+ confirm: string;
256
+ rangePickHint: string;
257
+ scope: {
258
+ selection: string;
259
+ all: string;
260
+ };
261
+ type: {
262
+ cell: string;
263
+ dataBar: string;
264
+ };
265
+ op: {
266
+ greaterThan: string;
267
+ lessThan: string;
268
+ between: string;
269
+ equal: string;
270
+ textContains: string;
271
+ };
272
+ bound: {
273
+ min: string;
274
+ max: string;
275
+ num: string;
276
+ percent: string;
277
+ };
278
+ color: {
279
+ blue: string;
280
+ green: string;
281
+ orange: string;
282
+ yellow: string;
283
+ red: string;
284
+ cyan: string;
285
+ };
286
+ menu: {
287
+ highlight: string;
288
+ dataBar: string;
289
+ moreRules: string;
290
+ newRule: string;
291
+ manage: string;
292
+ clear: string;
293
+ };
294
+ };
147
295
  };
148
296
  }, {}, {}, string, false>;
149
297
  export type SheetT = typeof sheetI18n.global.t;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAG9B,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEnC,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,CAAA;AAErC,MAAM,MAAM,aAAa,GAAG,OAAO,EAAE,CAAA;AAErC,iCAAiC;AACjC,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAE/D;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAKpB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;AAE9C,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAExD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAKrE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAG9B,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEnC,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,CAAA;AAErC,MAAM,MAAM,aAAa,GAAG,OAAO,EAAE,CAAA;AAErC,iCAAiC;AACjC,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAE/D;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAKpB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;AAE9C,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAExD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAKrE"}