@rowsncolumns/spreadsheet-state 28.0.66
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.
- package/LICENSE.md +100 -0
- package/Readme.md +65 -0
- package/dist/cjs/api/border.d.ts +9 -0
- package/dist/cjs/api/border.d.ts.map +1 -0
- package/dist/cjs/api/border.js +25 -0
- package/dist/cjs/api/conditional-format.d.ts +2 -0
- package/dist/cjs/api/conditional-format.d.ts.map +1 -0
- package/dist/cjs/api/conditional-format.js +5 -0
- package/dist/cjs/api/copy-paste.d.ts +20 -0
- package/dist/cjs/api/copy-paste.d.ts.map +1 -0
- package/dist/cjs/api/copy-paste.js +384 -0
- package/dist/cjs/api/data-validation.d.ts +2 -0
- package/dist/cjs/api/data-validation.d.ts.map +1 -0
- package/dist/cjs/api/data-validation.js +5 -0
- package/dist/cjs/api/datatype.d.ts +89 -0
- package/dist/cjs/api/datatype.d.ts.map +1 -0
- package/dist/cjs/api/datatype.js +671 -0
- package/dist/cjs/api/date.d.ts +27 -0
- package/dist/cjs/api/date.d.ts.map +1 -0
- package/dist/cjs/api/date.js +222 -0
- package/dist/cjs/api/decimals.d.ts +10 -0
- package/dist/cjs/api/decimals.d.ts.map +1 -0
- package/dist/cjs/api/decimals.js +192 -0
- package/dist/cjs/api/dependency.d.ts +64 -0
- package/dist/cjs/api/dependency.d.ts.map +1 -0
- package/dist/cjs/api/dependency.js +279 -0
- package/dist/cjs/api/fill.d.ts +88 -0
- package/dist/cjs/api/fill.d.ts.map +1 -0
- package/dist/cjs/api/fill.js +959 -0
- package/dist/cjs/api/filter-range.d.ts +4 -0
- package/dist/cjs/api/filter-range.d.ts.map +1 -0
- package/dist/cjs/api/filter-range.js +101 -0
- package/dist/cjs/api/filter.d.ts +24 -0
- package/dist/cjs/api/filter.d.ts.map +1 -0
- package/dist/cjs/api/filter.js +66 -0
- package/dist/cjs/api/format-caches.d.ts +43 -0
- package/dist/cjs/api/format-caches.d.ts.map +1 -0
- package/dist/cjs/api/format-caches.js +107 -0
- package/dist/cjs/api/formula.d.ts +69 -0
- package/dist/cjs/api/formula.d.ts.map +1 -0
- package/dist/cjs/api/formula.js +458 -0
- package/dist/cjs/api/immer-utils.d.ts +66 -0
- package/dist/cjs/api/immer-utils.d.ts.map +1 -0
- package/dist/cjs/api/immer-utils.js +1633 -0
- package/dist/cjs/api/intl.d.ts +51 -0
- package/dist/cjs/api/intl.d.ts.map +1 -0
- package/dist/cjs/api/intl.js +261 -0
- package/dist/cjs/api/merges.d.ts +7 -0
- package/dist/cjs/api/merges.d.ts.map +1 -0
- package/dist/cjs/api/merges.js +134 -0
- package/dist/cjs/api/outline.d.ts +33 -0
- package/dist/cjs/api/outline.d.ts.map +1 -0
- package/dist/cjs/api/outline.js +70 -0
- package/dist/cjs/api/parse-html.d.ts +15 -0
- package/dist/cjs/api/parse-html.d.ts.map +1 -0
- package/dist/cjs/api/parse-html.js +1066 -0
- package/dist/cjs/api/patches.d.ts +11 -0
- package/dist/cjs/api/patches.d.ts.map +1 -0
- package/dist/cjs/api/patches.js +218 -0
- package/dist/cjs/api/pivot-range.d.ts +8 -0
- package/dist/cjs/api/pivot-range.d.ts.map +1 -0
- package/dist/cjs/api/pivot-range.js +130 -0
- package/dist/cjs/api/range-rule-helpers.d.ts +65 -0
- package/dist/cjs/api/range-rule-helpers.d.ts.map +1 -0
- package/dist/cjs/api/range-rule-helpers.js +142 -0
- package/dist/cjs/api/range.d.ts +19 -0
- package/dist/cjs/api/range.d.ts.map +1 -0
- package/dist/cjs/api/range.js +183 -0
- package/dist/cjs/api/rename-sheet.d.ts +22 -0
- package/dist/cjs/api/rename-sheet.d.ts.map +1 -0
- package/dist/cjs/api/rename-sheet.js +54 -0
- package/dist/cjs/api/selection.d.ts +36 -0
- package/dist/cjs/api/selection.d.ts.map +1 -0
- package/dist/cjs/api/selection.js +133 -0
- package/dist/cjs/api/sort.d.ts +3 -0
- package/dist/cjs/api/sort.d.ts.map +1 -0
- package/dist/cjs/api/sort.js +33 -0
- package/dist/cjs/api/split-text.d.ts +2 -0
- package/dist/cjs/api/split-text.d.ts.map +1 -0
- package/dist/cjs/api/split-text.js +25 -0
- package/dist/cjs/api/structural-formula-update.d.ts +75 -0
- package/dist/cjs/api/structural-formula-update.d.ts.map +1 -0
- package/dist/cjs/api/structural-formula-update.js +508 -0
- package/dist/cjs/api/table.d.ts +39 -0
- package/dist/cjs/api/table.d.ts.map +1 -0
- package/dist/cjs/api/table.js +337 -0
- package/dist/cjs/api/validation.d.ts +12 -0
- package/dist/cjs/api/validation.d.ts.map +1 -0
- package/dist/cjs/api/validation.js +306 -0
- package/dist/cjs/api/xlsx-source.d.ts +22 -0
- package/dist/cjs/api/xlsx-source.d.ts.map +1 -0
- package/dist/cjs/api/xlsx-source.js +31 -0
- package/dist/cjs/atoms/delete-sheet-atom.d.ts +6 -0
- package/dist/cjs/atoms/delete-sheet-atom.d.ts.map +1 -0
- package/dist/cjs/atoms/delete-sheet-atom.js +4 -0
- package/dist/cjs/atoms/dialog-state.atom.d.ts +23 -0
- package/dist/cjs/atoms/dialog-state.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/dialog-state.atom.js +72 -0
- package/dist/cjs/atoms/editing-data-validation-id.atom.d.ts +7 -0
- package/dist/cjs/atoms/editing-data-validation-id.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/editing-data-validation-id.atom.js +12 -0
- package/dist/cjs/atoms/editing-embed.atom.d.ts +8 -0
- package/dist/cjs/atoms/editing-embed.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/editing-embed.atom.js +5 -0
- package/dist/cjs/atoms/editing-table.atom.d.ts +8 -0
- package/dist/cjs/atoms/editing-table.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/editing-table.atom.js +6 -0
- package/dist/cjs/atoms/error-state.atom.d.ts +10 -0
- package/dist/cjs/atoms/error-state.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/error-state.atom.js +5 -0
- package/dist/cjs/atoms/index.d.ts +5 -0
- package/dist/cjs/atoms/index.d.ts.map +1 -0
- package/dist/cjs/atoms/index.js +4 -0
- package/dist/cjs/atoms/insert-image-state.atom.d.ts +6 -0
- package/dist/cjs/atoms/insert-image-state.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/insert-image-state.atom.js +9 -0
- package/dist/cjs/atoms/named-range.atom.d.ts +8 -0
- package/dist/cjs/atoms/named-range.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/named-range.atom.js +6 -0
- package/dist/cjs/atoms/resize-dimension.atom.d.ts +12 -0
- package/dist/cjs/atoms/resize-dimension.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/resize-dimension.atom.js +5 -0
- package/dist/cjs/atoms/sheet-observer.atom.d.ts +16 -0
- package/dist/cjs/atoms/sheet-observer.atom.d.ts.map +1 -0
- package/dist/cjs/atoms/sheet-observer.atom.js +19 -0
- package/dist/cjs/cellxfs-registry.d.ts +37 -0
- package/dist/cjs/cellxfs-registry.d.ts.map +1 -0
- package/dist/cjs/cellxfs-registry.js +175 -0
- package/dist/cjs/commands.d.ts +691 -0
- package/dist/cjs/commands.d.ts.map +1 -0
- package/dist/cjs/commands.js +1 -0
- package/dist/cjs/components/dialogs/delete-sheet-confirmation.d.ts +7 -0
- package/dist/cjs/components/dialogs/delete-sheet-confirmation.d.ts.map +1 -0
- package/dist/cjs/components/dialogs/delete-sheet-confirmation.js +31 -0
- package/dist/cjs/components/dialogs/error-state.d.ts +3 -0
- package/dist/cjs/components/dialogs/error-state.d.ts.map +1 -0
- package/dist/cjs/components/dialogs/error-state.js +24 -0
- package/dist/cjs/components/editors/cell-format-editor.d.ts +26 -0
- package/dist/cjs/components/editors/cell-format-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/cell-format-editor.js +671 -0
- package/dist/cjs/components/editors/conditional-format-editor.d.ts +43 -0
- package/dist/cjs/components/editors/conditional-format-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/conditional-format-editor.js +176 -0
- package/dist/cjs/components/editors/conditional-format-rule-editor.d.ts +27 -0
- package/dist/cjs/components/editors/conditional-format-rule-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/conditional-format-rule-editor.js +640 -0
- package/dist/cjs/components/editors/data-validation-editor.d.ts +27 -0
- package/dist/cjs/components/editors/data-validation-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/data-validation-editor.js +163 -0
- package/dist/cjs/components/editors/data-validation-rule-editor.d.ts +17 -0
- package/dist/cjs/components/editors/data-validation-rule-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/data-validation-rule-editor.js +217 -0
- package/dist/cjs/components/editors/embed-editor.d.ts +19 -0
- package/dist/cjs/components/editors/embed-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/embed-editor.js +80 -0
- package/dist/cjs/components/editors/insert-image-editor.d.ts +20 -0
- package/dist/cjs/components/editors/insert-image-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/insert-image-editor.js +78 -0
- package/dist/cjs/components/editors/insert-link-editor.d.ts +20 -0
- package/dist/cjs/components/editors/insert-link-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/insert-link-editor.js +64 -0
- package/dist/cjs/components/editors/named-range-editor.d.ts +13 -0
- package/dist/cjs/components/editors/named-range-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/named-range-editor.js +106 -0
- package/dist/cjs/components/editors/resize-dimension-editor.d.ts +9 -0
- package/dist/cjs/components/editors/resize-dimension-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/resize-dimension-editor.js +62 -0
- package/dist/cjs/components/editors/sheet-filter.d.ts +59 -0
- package/dist/cjs/components/editors/sheet-filter.d.ts.map +1 -0
- package/dist/cjs/components/editors/sheet-filter.js +119 -0
- package/dist/cjs/components/editors/table-editor.d.ts +12 -0
- package/dist/cjs/components/editors/table-editor.d.ts.map +1 -0
- package/dist/cjs/components/editors/table-editor.js +105 -0
- package/dist/cjs/components/index.d.ts +13 -0
- package/dist/cjs/components/index.d.ts.map +1 -0
- package/dist/cjs/components/index.js +12 -0
- package/dist/cjs/generated-names.d.ts +51 -0
- package/dist/cjs/generated-names.d.ts.map +1 -0
- package/dist/cjs/generated-names.js +5 -0
- package/dist/cjs/helpers/iterative-calculation.d.ts +4 -0
- package/dist/cjs/helpers/iterative-calculation.d.ts.map +1 -0
- package/dist/cjs/helpers/iterative-calculation.js +44 -0
- package/dist/cjs/helpers/sheet-title.d.ts +5 -0
- package/dist/cjs/helpers/sheet-title.d.ts.map +1 -0
- package/dist/cjs/helpers/sheet-title.js +11 -0
- package/dist/cjs/helpers.d.ts +45 -0
- package/dist/cjs/helpers.d.ts.map +1 -0
- package/dist/cjs/helpers.js +154 -0
- package/dist/cjs/hooks/use-async-datasource.d.ts +57 -0
- package/dist/cjs/hooks/use-async-datasource.d.ts.map +1 -0
- package/dist/cjs/hooks/use-async-datasource.js +329 -0
- package/dist/cjs/hooks/use-calculation-initialize.d.ts +61 -0
- package/dist/cjs/hooks/use-calculation-initialize.d.ts.map +1 -0
- package/dist/cjs/hooks/use-calculation-initialize.js +800 -0
- package/dist/cjs/hooks/use-calculation-process-array.d.ts +20 -0
- package/dist/cjs/hooks/use-calculation-process-array.d.ts.map +1 -0
- package/dist/cjs/hooks/use-calculation-process-array.js +331 -0
- package/dist/cjs/hooks/use-calculation-queue.d.ts +10 -0
- package/dist/cjs/hooks/use-calculation-queue.d.ts.map +1 -0
- package/dist/cjs/hooks/use-calculation-queue.js +15 -0
- package/dist/cjs/hooks/use-calculation-worker.d.ts +37 -0
- package/dist/cjs/hooks/use-calculation-worker.d.ts.map +1 -0
- package/dist/cjs/hooks/use-calculation-worker.js +1868 -0
- package/dist/cjs/hooks/use-calculation.d.ts +173 -0
- package/dist/cjs/hooks/use-calculation.d.ts.map +1 -0
- package/dist/cjs/hooks/use-calculation.js +2735 -0
- package/dist/cjs/hooks/use-can-edit-cellrange.d.ts +31 -0
- package/dist/cjs/hooks/use-can-edit-cellrange.d.ts.map +1 -0
- package/dist/cjs/hooks/use-can-edit-cellrange.js +86 -0
- package/dist/cjs/hooks/use-cellxfs-registry.d.ts +6 -0
- package/dist/cjs/hooks/use-cellxfs-registry.d.ts.map +1 -0
- package/dist/cjs/hooks/use-cellxfs-registry.js +22 -0
- package/dist/cjs/hooks/use-citations.d.ts +19 -0
- package/dist/cjs/hooks/use-citations.d.ts.map +1 -0
- package/dist/cjs/hooks/use-citations.js +62 -0
- package/dist/cjs/hooks/use-comments.d.ts +14 -0
- package/dist/cjs/hooks/use-comments.d.ts.map +1 -0
- package/dist/cjs/hooks/use-comments.js +49 -0
- package/dist/cjs/hooks/use-conditional-formatting-rules.d.ts +22 -0
- package/dist/cjs/hooks/use-conditional-formatting-rules.d.ts.map +1 -0
- package/dist/cjs/hooks/use-conditional-formatting-rules.js +95 -0
- package/dist/cjs/hooks/use-data-validation-rules.d.ts +54 -0
- package/dist/cjs/hooks/use-data-validation-rules.d.ts.map +1 -0
- package/dist/cjs/hooks/use-data-validation-rules.js +151 -0
- package/dist/cjs/hooks/use-deferred-calculation-flush.d.ts +14 -0
- package/dist/cjs/hooks/use-deferred-calculation-flush.d.ts.map +1 -0
- package/dist/cjs/hooks/use-deferred-calculation-flush.js +81 -0
- package/dist/cjs/hooks/use-idle-scheduler.d.ts +5 -0
- package/dist/cjs/hooks/use-idle-scheduler.d.ts.map +1 -0
- package/dist/cjs/hooks/use-idle-scheduler.js +46 -0
- package/dist/cjs/hooks/use-indent.d.ts +23 -0
- package/dist/cjs/hooks/use-indent.d.ts.map +1 -0
- package/dist/cjs/hooks/use-indent.js +98 -0
- package/dist/cjs/hooks/use-named-range.d.ts +7 -0
- package/dist/cjs/hooks/use-named-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-named-range.js +70 -0
- package/dist/cjs/hooks/use-on-adjust-row-height.d.ts +11 -0
- package/dist/cjs/hooks/use-on-adjust-row-height.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-adjust-row-height.js +66 -0
- package/dist/cjs/hooks/use-on-autoresize.d.ts +17 -0
- package/dist/cjs/hooks/use-on-autoresize.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-autoresize.js +39 -0
- package/dist/cjs/hooks/use-on-banded-ranges.d.ts +15 -0
- package/dist/cjs/hooks/use-on-banded-ranges.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-banded-ranges.js +38 -0
- package/dist/cjs/hooks/use-on-calculation-begin.d.ts +14 -0
- package/dist/cjs/hooks/use-on-calculation-begin.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-calculation-begin.js +36 -0
- package/dist/cjs/hooks/use-on-calculation-success.d.ts +22 -0
- package/dist/cjs/hooks/use-on-calculation-success.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-calculation-success.js +182 -0
- package/dist/cjs/hooks/use-on-change-batch-stream.d.ts +7 -0
- package/dist/cjs/hooks/use-on-change-batch-stream.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change-batch-stream.js +59 -0
- package/dist/cjs/hooks/use-on-change-batch.d.ts +54 -0
- package/dist/cjs/hooks/use-on-change-batch.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change-batch.js +124 -0
- package/dist/cjs/hooks/use-on-change-calculated-column.d.ts +23 -0
- package/dist/cjs/hooks/use-on-change-calculated-column.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change-calculated-column.js +30 -0
- package/dist/cjs/hooks/use-on-change-decimals.d.ts +22 -0
- package/dist/cjs/hooks/use-on-change-decimals.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change-decimals.js +47 -0
- package/dist/cjs/hooks/use-on-change-formatting.d.ts +44 -0
- package/dist/cjs/hooks/use-on-change-formatting.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change-formatting.js +165 -0
- package/dist/cjs/hooks/use-on-change-sheet-tabcolor.d.ts +11 -0
- package/dist/cjs/hooks/use-on-change-sheet-tabcolor.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change-sheet-tabcolor.js +27 -0
- package/dist/cjs/hooks/use-on-change-table-column.d.ts +25 -0
- package/dist/cjs/hooks/use-on-change-table-column.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change-table-column.js +53 -0
- package/dist/cjs/hooks/use-on-change-theme.d.ts +11 -0
- package/dist/cjs/hooks/use-on-change-theme.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change-theme.js +20 -0
- package/dist/cjs/hooks/use-on-change.d.ts +61 -0
- package/dist/cjs/hooks/use-on-change.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-change.js +298 -0
- package/dist/cjs/hooks/use-on-clear-formatting.d.ts +17 -0
- package/dist/cjs/hooks/use-on-clear-formatting.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-clear-formatting.js +46 -0
- package/dist/cjs/hooks/use-on-collapse-column-group.d.ts +11 -0
- package/dist/cjs/hooks/use-on-collapse-column-group.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-collapse-column-group.js +47 -0
- package/dist/cjs/hooks/use-on-collapse-row-group.d.ts +18 -0
- package/dist/cjs/hooks/use-on-collapse-row-group.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-collapse-row-group.js +57 -0
- package/dist/cjs/hooks/use-on-copy.d.ts +49 -0
- package/dist/cjs/hooks/use-on-copy.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-copy.js +325 -0
- package/dist/cjs/hooks/use-on-create-named-range.d.ts +13 -0
- package/dist/cjs/hooks/use-on-create-named-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-create-named-range.js +33 -0
- package/dist/cjs/hooks/use-on-create-sheet.d.ts +23 -0
- package/dist/cjs/hooks/use-on-create-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-create-sheet.js +66 -0
- package/dist/cjs/hooks/use-on-delete-cells-shift-left.d.ts +28 -0
- package/dist/cjs/hooks/use-on-delete-cells-shift-left.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-delete-cells-shift-left.js +66 -0
- package/dist/cjs/hooks/use-on-delete-cells-shift-up.d.ts +28 -0
- package/dist/cjs/hooks/use-on-delete-cells-shift-up.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-delete-cells-shift-up.js +66 -0
- package/dist/cjs/hooks/use-on-delete-column.d.ts +38 -0
- package/dist/cjs/hooks/use-on-delete-column.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-delete-column.js +87 -0
- package/dist/cjs/hooks/use-on-delete-named-range.d.ts +14 -0
- package/dist/cjs/hooks/use-on-delete-named-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-delete-named-range.js +23 -0
- package/dist/cjs/hooks/use-on-delete-row.d.ts +38 -0
- package/dist/cjs/hooks/use-on-delete-row.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-delete-row.js +87 -0
- package/dist/cjs/hooks/use-on-delete-sheet.d.ts +16 -0
- package/dist/cjs/hooks/use-on-delete-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-delete-sheet.js +37 -0
- package/dist/cjs/hooks/use-on-delete-table-row.d.ts +29 -0
- package/dist/cjs/hooks/use-on-delete-table-row.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-delete-table-row.js +56 -0
- package/dist/cjs/hooks/use-on-delete.d.ts +33 -0
- package/dist/cjs/hooks/use-on-delete.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-delete.js +60 -0
- package/dist/cjs/hooks/use-on-drag-n-drop.d.ts +55 -0
- package/dist/cjs/hooks/use-on-drag-n-drop.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-drag-n-drop.js +191 -0
- package/dist/cjs/hooks/use-on-duplicate-sheet.d.ts +29 -0
- package/dist/cjs/hooks/use-on-duplicate-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-duplicate-sheet.js +65 -0
- package/dist/cjs/hooks/use-on-embeds.d.ts +19 -0
- package/dist/cjs/hooks/use-on-embeds.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-embeds.js +87 -0
- package/dist/cjs/hooks/use-on-expand-column-group.d.ts +11 -0
- package/dist/cjs/hooks/use-on-expand-column-group.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-expand-column-group.js +45 -0
- package/dist/cjs/hooks/use-on-expand-row-group.d.ts +18 -0
- package/dist/cjs/hooks/use-on-expand-row-group.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-expand-row-group.js +52 -0
- package/dist/cjs/hooks/use-on-fill-range.d.ts +9 -0
- package/dist/cjs/hooks/use-on-fill-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-fill-range.js +55 -0
- package/dist/cjs/hooks/use-on-fill.d.ts +29 -0
- package/dist/cjs/hooks/use-on-fill.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-fill.js +78 -0
- package/dist/cjs/hooks/use-on-filter-table.d.ts +76 -0
- package/dist/cjs/hooks/use-on-filter-table.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-filter-table.js +429 -0
- package/dist/cjs/hooks/use-on-find-replace.d.ts +19 -0
- package/dist/cjs/hooks/use-on-find-replace.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-find-replace.js +150 -0
- package/dist/cjs/hooks/use-on-freeze.d.ts +13 -0
- package/dist/cjs/hooks/use-on-freeze.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-freeze.js +56 -0
- package/dist/cjs/hooks/use-on-group-columns.d.ts +11 -0
- package/dist/cjs/hooks/use-on-group-columns.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-group-columns.js +49 -0
- package/dist/cjs/hooks/use-on-group-rows.d.ts +17 -0
- package/dist/cjs/hooks/use-on-group-rows.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-group-rows.js +55 -0
- package/dist/cjs/hooks/use-on-hide-column.d.ts +23 -0
- package/dist/cjs/hooks/use-on-hide-column.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-hide-column.js +55 -0
- package/dist/cjs/hooks/use-on-hide-row.d.ts +32 -0
- package/dist/cjs/hooks/use-on-hide-row.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-hide-row.js +58 -0
- package/dist/cjs/hooks/use-on-hide-show-sheet.d.ts +18 -0
- package/dist/cjs/hooks/use-on-hide-show-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-hide-show-sheet.js +90 -0
- package/dist/cjs/hooks/use-on-import-csv-legacy.d.ts +8 -0
- package/dist/cjs/hooks/use-on-import-csv-legacy.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-import-csv-legacy.js +165 -0
- package/dist/cjs/hooks/use-on-import-csv.d.ts +28 -0
- package/dist/cjs/hooks/use-on-import-csv.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-import-csv.js +332 -0
- package/dist/cjs/hooks/use-on-import-excel.d.ts +67 -0
- package/dist/cjs/hooks/use-on-import-excel.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-import-excel.js +689 -0
- package/dist/cjs/hooks/use-on-insert-autosum.d.ts +9 -0
- package/dist/cjs/hooks/use-on-insert-autosum.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-autosum.js +105 -0
- package/dist/cjs/hooks/use-on-insert-cells-shift-down.d.ts +28 -0
- package/dist/cjs/hooks/use-on-insert-cells-shift-down.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-cells-shift-down.js +66 -0
- package/dist/cjs/hooks/use-on-insert-cells-shift-right.d.ts +28 -0
- package/dist/cjs/hooks/use-on-insert-cells-shift-right.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-cells-shift-right.js +66 -0
- package/dist/cjs/hooks/use-on-insert-checkbox.d.ts +17 -0
- package/dist/cjs/hooks/use-on-insert-checkbox.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-checkbox.js +87 -0
- package/dist/cjs/hooks/use-on-insert-column.d.ts +40 -0
- package/dist/cjs/hooks/use-on-insert-column.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-column.js +93 -0
- package/dist/cjs/hooks/use-on-insert-date-time.d.ts +4 -0
- package/dist/cjs/hooks/use-on-insert-date-time.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-date-time.js +12 -0
- package/dist/cjs/hooks/use-on-insert-date.d.ts +4 -0
- package/dist/cjs/hooks/use-on-insert-date.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-date.js +13 -0
- package/dist/cjs/hooks/use-on-insert-image.d.ts +24 -0
- package/dist/cjs/hooks/use-on-insert-image.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-image.js +145 -0
- package/dist/cjs/hooks/use-on-insert-link.d.ts +25 -0
- package/dist/cjs/hooks/use-on-insert-link.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-link.js +220 -0
- package/dist/cjs/hooks/use-on-insert-note.d.ts +4 -0
- package/dist/cjs/hooks/use-on-insert-note.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-note.js +14 -0
- package/dist/cjs/hooks/use-on-insert-row.d.ts +38 -0
- package/dist/cjs/hooks/use-on-insert-row.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-row.js +106 -0
- package/dist/cjs/hooks/use-on-insert-table-row.d.ts +31 -0
- package/dist/cjs/hooks/use-on-insert-table-row.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-table-row.js +60 -0
- package/dist/cjs/hooks/use-on-insert-time.d.ts +4 -0
- package/dist/cjs/hooks/use-on-insert-time.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-insert-time.js +12 -0
- package/dist/cjs/hooks/use-on-locale-change.d.ts +35 -0
- package/dist/cjs/hooks/use-on-locale-change.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-locale-change.js +314 -0
- package/dist/cjs/hooks/use-on-merge-unmerge-cells.d.ts +28 -0
- package/dist/cjs/hooks/use-on-merge-unmerge-cells.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-merge-unmerge-cells.js +366 -0
- package/dist/cjs/hooks/use-on-move-columns.d.ts +28 -0
- package/dist/cjs/hooks/use-on-move-columns.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-move-columns.js +378 -0
- package/dist/cjs/hooks/use-on-move-rows.d.ts +30 -0
- package/dist/cjs/hooks/use-on-move-rows.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-move-rows.js +293 -0
- package/dist/cjs/hooks/use-on-move-selection.d.ts +35 -0
- package/dist/cjs/hooks/use-on-move-selection.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-move-selection.js +477 -0
- package/dist/cjs/hooks/use-on-move-sheet.d.ts +12 -0
- package/dist/cjs/hooks/use-on-move-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-move-sheet.js +68 -0
- package/dist/cjs/hooks/use-on-move-table-columns.d.ts +21 -0
- package/dist/cjs/hooks/use-on-move-table-columns.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-move-table-columns.js +249 -0
- package/dist/cjs/hooks/use-on-paste.d.ts +79 -0
- package/dist/cjs/hooks/use-on-paste.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-paste.js +985 -0
- package/dist/cjs/hooks/use-on-protect-range.d.ts +20 -0
- package/dist/cjs/hooks/use-on-protect-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-protect-range.js +67 -0
- package/dist/cjs/hooks/use-on-protect-sheet.d.ts +19 -0
- package/dist/cjs/hooks/use-on-protect-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-protect-sheet.js +65 -0
- package/dist/cjs/hooks/use-on-remove-duplicates.d.ts +21 -0
- package/dist/cjs/hooks/use-on-remove-duplicates.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-remove-duplicates.js +40 -0
- package/dist/cjs/hooks/use-on-rename-sheet.d.ts +21 -0
- package/dist/cjs/hooks/use-on-rename-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-rename-sheet.js +80 -0
- package/dist/cjs/hooks/use-on-request-calculate-wrapper.d.ts +30 -0
- package/dist/cjs/hooks/use-on-request-calculate-wrapper.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-calculate-wrapper.js +90 -0
- package/dist/cjs/hooks/use-on-request-conditional-format.d.ts +2 -0
- package/dist/cjs/hooks/use-on-request-conditional-format.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-conditional-format.js +8 -0
- package/dist/cjs/hooks/use-on-request-data-validation.d.ts +7 -0
- package/dist/cjs/hooks/use-on-request-data-validation.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-data-validation.js +23 -0
- package/dist/cjs/hooks/use-on-request-define-named-range.d.ts +8 -0
- package/dist/cjs/hooks/use-on-request-define-named-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-define-named-range.js +19 -0
- package/dist/cjs/hooks/use-on-request-delete-sheet.d.ts +2 -0
- package/dist/cjs/hooks/use-on-request-delete-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-delete-sheet.js +12 -0
- package/dist/cjs/hooks/use-on-request-edit-table.d.ts +3 -0
- package/dist/cjs/hooks/use-on-request-edit-table.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-edit-table.js +11 -0
- package/dist/cjs/hooks/use-on-request-format-cells.d.ts +2 -0
- package/dist/cjs/hooks/use-on-request-format-cells.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-format-cells.js +8 -0
- package/dist/cjs/hooks/use-on-request-insert-image.d.ts +3 -0
- package/dist/cjs/hooks/use-on-request-insert-image.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-insert-image.js +12 -0
- package/dist/cjs/hooks/use-on-request-insert-link.d.ts +5 -0
- package/dist/cjs/hooks/use-on-request-insert-link.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-insert-link.js +9 -0
- package/dist/cjs/hooks/use-on-request-resize.d.ts +3 -0
- package/dist/cjs/hooks/use-on-request-resize.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-resize.js +13 -0
- package/dist/cjs/hooks/use-on-request-update-named-range.d.ts +3 -0
- package/dist/cjs/hooks/use-on-request-update-named-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-request-update-named-range.js +11 -0
- package/dist/cjs/hooks/use-on-resize-table.d.ts +33 -0
- package/dist/cjs/hooks/use-on-resize-table.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-resize-table.js +218 -0
- package/dist/cjs/hooks/use-on-resize.d.ts +19 -0
- package/dist/cjs/hooks/use-on-resize.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-resize.js +55 -0
- package/dist/cjs/hooks/use-on-set-outline-depth.d.ts +17 -0
- package/dist/cjs/hooks/use-on-set-outline-depth.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-set-outline-depth.js +96 -0
- package/dist/cjs/hooks/use-on-show-column.d.ts +16 -0
- package/dist/cjs/hooks/use-on-show-column.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-show-column.js +96 -0
- package/dist/cjs/hooks/use-on-show-row.d.ts +22 -0
- package/dist/cjs/hooks/use-on-show-row.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-show-row.js +99 -0
- package/dist/cjs/hooks/use-on-sort-column.d.ts +53 -0
- package/dist/cjs/hooks/use-on-sort-column.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-sort-column.js +300 -0
- package/dist/cjs/hooks/use-on-sort-range.d.ts +42 -0
- package/dist/cjs/hooks/use-on-sort-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-sort-range.js +252 -0
- package/dist/cjs/hooks/use-on-sort-table.d.ts +59 -0
- package/dist/cjs/hooks/use-on-sort-table.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-sort-table.js +345 -0
- package/dist/cjs/hooks/use-on-table.d.ts +49 -0
- package/dist/cjs/hooks/use-on-table.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-table.js +386 -0
- package/dist/cjs/hooks/use-on-trace-dependents-precedents.d.ts +14 -0
- package/dist/cjs/hooks/use-on-trace-dependents-precedents.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-trace-dependents-precedents.js +146 -0
- package/dist/cjs/hooks/use-on-ungroup-columns.d.ts +11 -0
- package/dist/cjs/hooks/use-on-ungroup-columns.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-ungroup-columns.js +57 -0
- package/dist/cjs/hooks/use-on-ungroup-rows.d.ts +17 -0
- package/dist/cjs/hooks/use-on-ungroup-rows.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-ungroup-rows.js +63 -0
- package/dist/cjs/hooks/use-on-update-named-range.d.ts +19 -0
- package/dist/cjs/hooks/use-on-update-named-range.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-update-named-range.js +133 -0
- package/dist/cjs/hooks/use-on-update-note.d.ts +13 -0
- package/dist/cjs/hooks/use-on-update-note.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-update-note.js +21 -0
- package/dist/cjs/hooks/use-on-update-sheet.d.ts +10 -0
- package/dist/cjs/hooks/use-on-update-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-on-update-sheet.js +12 -0
- package/dist/cjs/hooks/use-paint-format.d.ts +17 -0
- package/dist/cjs/hooks/use-paint-format.d.ts.map +1 -0
- package/dist/cjs/hooks/use-paint-format.js +118 -0
- package/dist/cjs/hooks/use-search.d.ts +81 -0
- package/dist/cjs/hooks/use-search.d.ts.map +1 -0
- package/dist/cjs/hooks/use-search.js +261 -0
- package/dist/cjs/hooks/use-select-next-prev-sheet.d.ts +11 -0
- package/dist/cjs/hooks/use-select-next-prev-sheet.d.ts.map +1 -0
- package/dist/cjs/hooks/use-select-next-prev-sheet.js +22 -0
- package/dist/cjs/hooks/use-sheet-observer.d.ts +20 -0
- package/dist/cjs/hooks/use-sheet-observer.d.ts.map +1 -0
- package/dist/cjs/hooks/use-sheet-observer.js +127 -0
- package/dist/cjs/hooks/use-sheet-properties.d.ts +105 -0
- package/dist/cjs/hooks/use-sheet-properties.d.ts.map +1 -0
- package/dist/cjs/hooks/use-sheet-properties.js +1019 -0
- package/dist/cjs/hooks/use-sheet-state.d.ts +17 -0
- package/dist/cjs/hooks/use-sheet-state.d.ts.map +1 -0
- package/dist/cjs/hooks/use-sheet-state.js +84 -0
- package/dist/cjs/hooks/use-sheetdata-subscriber.d.ts +10 -0
- package/dist/cjs/hooks/use-sheetdata-subscriber.d.ts.map +1 -0
- package/dist/cjs/hooks/use-sheetdata-subscriber.js +15 -0
- package/dist/cjs/hooks/use-slicers.d.ts +19 -0
- package/dist/cjs/hooks/use-slicers.d.ts.map +1 -0
- package/dist/cjs/hooks/use-slicers.js +84 -0
- package/dist/cjs/hooks/use-split-text-to-columns.d.ts +19 -0
- package/dist/cjs/hooks/use-split-text-to-columns.d.ts.map +1 -0
- package/dist/cjs/hooks/use-split-text-to-columns.js +32 -0
- package/dist/cjs/hooks/use-spreadsheet-state.d.ts +627 -0
- package/dist/cjs/hooks/use-spreadsheet-state.d.ts.map +1 -0
- package/dist/cjs/hooks/use-spreadsheet-state.js +2038 -0
- package/dist/cjs/hooks/use-ss-registry.d.ts +6 -0
- package/dist/cjs/hooks/use-ss-registry.d.ts.map +1 -0
- package/dist/cjs/hooks/use-ss-registry.js +17 -0
- package/dist/cjs/hooks/use-structured-reference.d.ts +8 -0
- package/dist/cjs/hooks/use-structured-reference.d.ts.map +1 -0
- package/dist/cjs/hooks/use-structured-reference.js +132 -0
- package/dist/cjs/hooks/use-undo-redo-actions.d.ts +40 -0
- package/dist/cjs/hooks/use-undo-redo-actions.d.ts.map +1 -0
- package/dist/cjs/hooks/use-undo-redo-actions.js +209 -0
- package/dist/cjs/hooks/use-undo-redo.d.ts +69 -0
- package/dist/cjs/hooks/use-undo-redo.d.ts.map +1 -0
- package/dist/cjs/hooks/use-undo-redo.js +124 -0
- package/dist/cjs/hooks/utils/frozen-sort.d.ts +9 -0
- package/dist/cjs/hooks/utils/frozen-sort.d.ts.map +1 -0
- package/dist/cjs/hooks/utils/frozen-sort.js +28 -0
- package/dist/cjs/hooks/utils/sort-rows.d.ts +32 -0
- package/dist/cjs/hooks/utils/sort-rows.d.ts.map +1 -0
- package/dist/cjs/hooks/utils/sort-rows.js +113 -0
- package/dist/cjs/index.d.ts +38 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +39 -0
- package/dist/cjs/interface/apply-fill.d.ts +6 -0
- package/dist/cjs/interface/apply-fill.d.ts.map +1 -0
- package/dist/cjs/interface/apply-fill.js +203 -0
- package/dist/cjs/interface/auto-resize.d.ts +4 -0
- package/dist/cjs/interface/auto-resize.d.ts.map +1 -0
- package/dist/cjs/interface/auto-resize.js +63 -0
- package/dist/cjs/interface/calculation-interface.d.ts +67 -0
- package/dist/cjs/interface/calculation-interface.d.ts.map +1 -0
- package/dist/cjs/interface/calculation-interface.js +409 -0
- package/dist/cjs/interface/change-batch-stream.d.ts +25 -0
- package/dist/cjs/interface/change-batch-stream.d.ts.map +1 -0
- package/dist/cjs/interface/change-batch-stream.js +428 -0
- package/dist/cjs/interface/change-batch.d.ts +39 -0
- package/dist/cjs/interface/change-batch.d.ts.map +1 -0
- package/dist/cjs/interface/change-batch.js +329 -0
- package/dist/cjs/interface/change-border.d.ts +5 -0
- package/dist/cjs/interface/change-border.d.ts.map +1 -0
- package/dist/cjs/interface/change-border.js +141 -0
- package/dist/cjs/interface/change-calculated-column.d.ts +5 -0
- package/dist/cjs/interface/change-calculated-column.d.ts.map +1 -0
- package/dist/cjs/interface/change-calculated-column.js +131 -0
- package/dist/cjs/interface/change-decimals.d.ts +7 -0
- package/dist/cjs/interface/change-decimals.d.ts.map +1 -0
- package/dist/cjs/interface/change-decimals.js +82 -0
- package/dist/cjs/interface/change-formatting.d.ts +4 -0
- package/dist/cjs/interface/change-formatting.d.ts.map +1 -0
- package/dist/cjs/interface/change-formatting.js +240 -0
- package/dist/cjs/interface/change-sheet-tabcolor.d.ts +4 -0
- package/dist/cjs/interface/change-sheet-tabcolor.d.ts.map +1 -0
- package/dist/cjs/interface/change-sheet-tabcolor.js +21 -0
- package/dist/cjs/interface/change-table-column.d.ts +49 -0
- package/dist/cjs/interface/change-table-column.d.ts.map +1 -0
- package/dist/cjs/interface/change-table-column.js +267 -0
- package/dist/cjs/interface/change-theme.d.ts +4 -0
- package/dist/cjs/interface/change-theme.d.ts.map +1 -0
- package/dist/cjs/interface/change-theme.js +23 -0
- package/dist/cjs/interface/chart-extensions.d.ts +32 -0
- package/dist/cjs/interface/chart-extensions.d.ts.map +1 -0
- package/dist/cjs/interface/chart-extensions.js +71 -0
- package/dist/cjs/interface/citations.d.ts +33 -0
- package/dist/cjs/interface/citations.d.ts.map +1 -0
- package/dist/cjs/interface/citations.js +142 -0
- package/dist/cjs/interface/clear-formatting.d.ts +5 -0
- package/dist/cjs/interface/clear-formatting.d.ts.map +1 -0
- package/dist/cjs/interface/clear-formatting.js +72 -0
- package/dist/cjs/interface/conditional-formatting-rules.d.ts +7 -0
- package/dist/cjs/interface/conditional-formatting-rules.d.ts.map +1 -0
- package/dist/cjs/interface/conditional-formatting-rules.js +191 -0
- package/dist/cjs/interface/create-table.d.ts +5 -0
- package/dist/cjs/interface/create-table.d.ts.map +1 -0
- package/dist/cjs/interface/create-table.js +96 -0
- package/dist/cjs/interface/data-validation-rules.d.ts +25 -0
- package/dist/cjs/interface/data-validation-rules.d.ts.map +1 -0
- package/dist/cjs/interface/data-validation-rules.js +366 -0
- package/dist/cjs/interface/data-validation-utils.d.ts +12 -0
- package/dist/cjs/interface/data-validation-utils.d.ts.map +1 -0
- package/dist/cjs/interface/data-validation-utils.js +118 -0
- package/dist/cjs/interface/delete-cells-shift-left.d.ts +5 -0
- package/dist/cjs/interface/delete-cells-shift-left.d.ts.map +1 -0
- package/dist/cjs/interface/delete-cells-shift-left.js +160 -0
- package/dist/cjs/interface/delete-cells-shift-up.d.ts +5 -0
- package/dist/cjs/interface/delete-cells-shift-up.d.ts.map +1 -0
- package/dist/cjs/interface/delete-cells-shift-up.js +152 -0
- package/dist/cjs/interface/delete-cells.d.ts +6 -0
- package/dist/cjs/interface/delete-cells.d.ts.map +1 -0
- package/dist/cjs/interface/delete-cells.js +231 -0
- package/dist/cjs/interface/delete-column.d.ts +4 -0
- package/dist/cjs/interface/delete-column.d.ts.map +1 -0
- package/dist/cjs/interface/delete-column.js +306 -0
- package/dist/cjs/interface/delete-row.d.ts +4 -0
- package/dist/cjs/interface/delete-row.d.ts.map +1 -0
- package/dist/cjs/interface/delete-row.js +227 -0
- package/dist/cjs/interface/delete-sheet.d.ts +4 -0
- package/dist/cjs/interface/delete-sheet.d.ts.map +1 -0
- package/dist/cjs/interface/delete-sheet.js +81 -0
- package/dist/cjs/interface/delete-table-column.d.ts +4 -0
- package/dist/cjs/interface/delete-table-column.d.ts.map +1 -0
- package/dist/cjs/interface/delete-table-column.js +349 -0
- package/dist/cjs/interface/delete-table-row.d.ts +4 -0
- package/dist/cjs/interface/delete-table-row.d.ts.map +1 -0
- package/dist/cjs/interface/delete-table-row.js +313 -0
- package/dist/cjs/interface/duplicate-sheet.d.ts +4 -0
- package/dist/cjs/interface/duplicate-sheet.d.ts.map +1 -0
- package/dist/cjs/interface/duplicate-sheet.js +232 -0
- package/dist/cjs/interface/embeds.d.ts +9 -0
- package/dist/cjs/interface/embeds.d.ts.map +1 -0
- package/dist/cjs/interface/embeds.js +121 -0
- package/dist/cjs/interface/freeze.d.ts +5 -0
- package/dist/cjs/interface/freeze.d.ts.map +1 -0
- package/dist/cjs/interface/freeze.js +160 -0
- package/dist/cjs/interface/helpers.d.ts +6 -0
- package/dist/cjs/interface/helpers.d.ts.map +1 -0
- package/dist/cjs/interface/helpers.js +44 -0
- package/dist/cjs/interface/hide-column.d.ts +4 -0
- package/dist/cjs/interface/hide-column.d.ts.map +1 -0
- package/dist/cjs/interface/hide-column.js +68 -0
- package/dist/cjs/interface/hide-row.d.ts +4 -0
- package/dist/cjs/interface/hide-row.d.ts.map +1 -0
- package/dist/cjs/interface/hide-row.js +65 -0
- package/dist/cjs/interface/indent.d.ts +7 -0
- package/dist/cjs/interface/indent.d.ts.map +1 -0
- package/dist/cjs/interface/indent.js +97 -0
- package/dist/cjs/interface/insert-cells-shift-down.d.ts +5 -0
- package/dist/cjs/interface/insert-cells-shift-down.d.ts.map +1 -0
- package/dist/cjs/interface/insert-cells-shift-down.js +154 -0
- package/dist/cjs/interface/insert-cells-shift-right.d.ts +5 -0
- package/dist/cjs/interface/insert-cells-shift-right.d.ts.map +1 -0
- package/dist/cjs/interface/insert-cells-shift-right.js +150 -0
- package/dist/cjs/interface/insert-column.d.ts +7 -0
- package/dist/cjs/interface/insert-column.d.ts.map +1 -0
- package/dist/cjs/interface/insert-column.js +645 -0
- package/dist/cjs/interface/insert-note.d.ts +5 -0
- package/dist/cjs/interface/insert-note.d.ts.map +1 -0
- package/dist/cjs/interface/insert-note.js +27 -0
- package/dist/cjs/interface/insert-row.d.ts +4 -0
- package/dist/cjs/interface/insert-row.d.ts.map +1 -0
- package/dist/cjs/interface/insert-row.js +188 -0
- package/dist/cjs/interface/insert-table-row.d.ts +4 -0
- package/dist/cjs/interface/insert-table-row.d.ts.map +1 -0
- package/dist/cjs/interface/insert-table-row.js +348 -0
- package/dist/cjs/interface/interface-cli.d.ts +3 -0
- package/dist/cjs/interface/interface-cli.d.ts.map +1 -0
- package/dist/cjs/interface/interface-cli.js +76 -0
- package/dist/cjs/interface/named-range-operations.d.ts +19 -0
- package/dist/cjs/interface/named-range-operations.d.ts.map +1 -0
- package/dist/cjs/interface/named-range-operations.js +96 -0
- package/dist/cjs/interface/new-sheet.d.ts +4 -0
- package/dist/cjs/interface/new-sheet.d.ts.map +1 -0
- package/dist/cjs/interface/new-sheet.js +109 -0
- package/dist/cjs/interface/pivot-extensions.d.ts +27 -0
- package/dist/cjs/interface/pivot-extensions.d.ts.map +1 -0
- package/dist/cjs/interface/pivot-extensions.js +62 -0
- package/dist/cjs/interface/remove-duplicates.d.ts +11 -0
- package/dist/cjs/interface/remove-duplicates.d.ts.map +1 -0
- package/dist/cjs/interface/remove-duplicates.js +132 -0
- package/dist/cjs/interface/remove-table.d.ts +4 -0
- package/dist/cjs/interface/remove-table.d.ts.map +1 -0
- package/dist/cjs/interface/remove-table.js +53 -0
- package/dist/cjs/interface/resize-utils.d.ts +18 -0
- package/dist/cjs/interface/resize-utils.d.ts.map +1 -0
- package/dist/cjs/interface/resize-utils.js +60 -0
- package/dist/cjs/interface/resize.d.ts +5 -0
- package/dist/cjs/interface/resize.d.ts.map +1 -0
- package/dist/cjs/interface/resize.js +56 -0
- package/dist/cjs/interface/slicers.d.ts +9 -0
- package/dist/cjs/interface/slicers.d.ts.map +1 -0
- package/dist/cjs/interface/slicers.js +113 -0
- package/dist/cjs/interface/split-text.d.ts +5 -0
- package/dist/cjs/interface/split-text.d.ts.map +1 -0
- package/dist/cjs/interface/split-text.js +120 -0
- package/dist/cjs/interface/spreadsheet-interface.d.ts +642 -0
- package/dist/cjs/interface/spreadsheet-interface.d.ts.map +1 -0
- package/dist/cjs/interface/spreadsheet-interface.js +2787 -0
- package/dist/cjs/interface/table-totalrow.d.ts +20 -0
- package/dist/cjs/interface/table-totalrow.d.ts.map +1 -0
- package/dist/cjs/interface/table-totalrow.js +170 -0
- package/dist/cjs/interface/table-utils.d.ts +21 -0
- package/dist/cjs/interface/table-utils.d.ts.map +1 -0
- package/dist/cjs/interface/table-utils.js +44 -0
- package/dist/cjs/interface/update-sheet.d.ts +16 -0
- package/dist/cjs/interface/update-sheet.d.ts.map +1 -0
- package/dist/cjs/interface/update-sheet.js +63 -0
- package/dist/cjs/interface/update-table.d.ts +4 -0
- package/dist/cjs/interface/update-table.d.ts.map +1 -0
- package/dist/cjs/interface/update-table.js +109 -0
- package/dist/cjs/server-utils.d.ts +8 -0
- package/dist/cjs/server-utils.d.ts.map +1 -0
- package/dist/cjs/server-utils.js +3 -0
- package/dist/cjs/server.browser.d.ts +9 -0
- package/dist/cjs/server.browser.d.ts.map +1 -0
- package/dist/cjs/server.browser.js +5 -0
- package/dist/cjs/server.d.ts +9 -0
- package/dist/cjs/server.d.ts.map +1 -0
- package/dist/cjs/server.js +5 -0
- package/dist/cjs/shared-string-registry.d.ts +35 -0
- package/dist/cjs/shared-string-registry.d.ts.map +1 -0
- package/dist/cjs/shared-string-registry.js +314 -0
- package/dist/cjs/sheet-cell.d.ts +310 -0
- package/dist/cjs/sheet-cell.d.ts.map +1 -0
- package/dist/cjs/sheet-cell.js +1809 -0
- package/dist/cjs/test-setup.d.ts +2 -0
- package/dist/cjs/test-setup.d.ts.map +1 -0
- package/dist/cjs/test-setup.js +3 -0
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -0
- package/dist/cjs/types.d.ts +44 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +33 -0
- package/dist/cjs/validation-schema/table.schema.d.ts +6 -0
- package/dist/cjs/validation-schema/table.schema.d.ts.map +1 -0
- package/dist/cjs/validation-schema/table.schema.js +4 -0
- package/dist/cjs/vitest.config.d.ts +3 -0
- package/dist/cjs/vitest.config.d.ts.map +1 -0
- package/dist/cjs/vitest.config.js +22 -0
- package/dist/esm/api/border.d.ts +9 -0
- package/dist/esm/api/border.d.ts.map +1 -0
- package/dist/esm/api/border.js +25 -0
- package/dist/esm/api/conditional-format.d.ts +2 -0
- package/dist/esm/api/conditional-format.d.ts.map +1 -0
- package/dist/esm/api/conditional-format.js +5 -0
- package/dist/esm/api/copy-paste.d.ts +20 -0
- package/dist/esm/api/copy-paste.d.ts.map +1 -0
- package/dist/esm/api/copy-paste.js +302 -0
- package/dist/esm/api/data-validation.d.ts +2 -0
- package/dist/esm/api/data-validation.d.ts.map +1 -0
- package/dist/esm/api/data-validation.js +5 -0
- package/dist/esm/api/datatype.d.ts +89 -0
- package/dist/esm/api/datatype.d.ts.map +1 -0
- package/dist/esm/api/datatype.js +639 -0
- package/dist/esm/api/date.d.ts +27 -0
- package/dist/esm/api/date.d.ts.map +1 -0
- package/dist/esm/api/date.js +220 -0
- package/dist/esm/api/decimals.d.ts +10 -0
- package/dist/esm/api/decimals.d.ts.map +1 -0
- package/dist/esm/api/decimals.js +181 -0
- package/dist/esm/api/dependency.d.ts +64 -0
- package/dist/esm/api/dependency.d.ts.map +1 -0
- package/dist/esm/api/dependency.js +251 -0
- package/dist/esm/api/fill.d.ts +88 -0
- package/dist/esm/api/fill.d.ts.map +1 -0
- package/dist/esm/api/fill.js +919 -0
- package/dist/esm/api/filter-range.d.ts +4 -0
- package/dist/esm/api/filter-range.d.ts.map +1 -0
- package/dist/esm/api/filter-range.js +100 -0
- package/dist/esm/api/filter.d.ts +24 -0
- package/dist/esm/api/filter.d.ts.map +1 -0
- package/dist/esm/api/filter.js +62 -0
- package/dist/esm/api/format-caches.d.ts +43 -0
- package/dist/esm/api/format-caches.d.ts.map +1 -0
- package/dist/esm/api/format-caches.js +95 -0
- package/dist/esm/api/formula.d.ts +69 -0
- package/dist/esm/api/formula.d.ts.map +1 -0
- package/dist/esm/api/formula.js +422 -0
- package/dist/esm/api/immer-utils.d.ts +66 -0
- package/dist/esm/api/immer-utils.d.ts.map +1 -0
- package/dist/esm/api/immer-utils.js +1552 -0
- package/dist/esm/api/intl.d.ts +51 -0
- package/dist/esm/api/intl.d.ts.map +1 -0
- package/dist/esm/api/intl.js +257 -0
- package/dist/esm/api/merges.d.ts +7 -0
- package/dist/esm/api/merges.d.ts.map +1 -0
- package/dist/esm/api/merges.js +174 -0
- package/dist/esm/api/outline.d.ts +33 -0
- package/dist/esm/api/outline.d.ts.map +1 -0
- package/dist/esm/api/outline.js +56 -0
- package/dist/esm/api/parse-html.d.ts +15 -0
- package/dist/esm/api/parse-html.d.ts.map +1 -0
- package/dist/esm/api/parse-html.js +865 -0
- package/dist/esm/api/patches.d.ts +11 -0
- package/dist/esm/api/patches.d.ts.map +1 -0
- package/dist/esm/api/patches.js +206 -0
- package/dist/esm/api/pivot-range.d.ts +8 -0
- package/dist/esm/api/pivot-range.d.ts.map +1 -0
- package/dist/esm/api/pivot-range.js +93 -0
- package/dist/esm/api/range-rule-helpers.d.ts +65 -0
- package/dist/esm/api/range-rule-helpers.d.ts.map +1 -0
- package/dist/esm/api/range-rule-helpers.js +138 -0
- package/dist/esm/api/range.d.ts +19 -0
- package/dist/esm/api/range.d.ts.map +1 -0
- package/dist/esm/api/range.js +136 -0
- package/dist/esm/api/rename-sheet.d.ts +22 -0
- package/dist/esm/api/rename-sheet.d.ts.map +1 -0
- package/dist/esm/api/rename-sheet.js +41 -0
- package/dist/esm/api/selection.d.ts +36 -0
- package/dist/esm/api/selection.d.ts.map +1 -0
- package/dist/esm/api/selection.js +138 -0
- package/dist/esm/api/sort.d.ts +3 -0
- package/dist/esm/api/sort.d.ts.map +1 -0
- package/dist/esm/api/sort.js +33 -0
- package/dist/esm/api/split-text.d.ts +2 -0
- package/dist/esm/api/split-text.d.ts.map +1 -0
- package/dist/esm/api/split-text.js +24 -0
- package/dist/esm/api/structural-formula-update.d.ts +75 -0
- package/dist/esm/api/structural-formula-update.d.ts.map +1 -0
- package/dist/esm/api/structural-formula-update.js +431 -0
- package/dist/esm/api/table.d.ts +39 -0
- package/dist/esm/api/table.d.ts.map +1 -0
- package/dist/esm/api/table.js +333 -0
- package/dist/esm/api/validation.d.ts +12 -0
- package/dist/esm/api/validation.d.ts.map +1 -0
- package/dist/esm/api/validation.js +297 -0
- package/dist/esm/api/xlsx-source.d.ts +22 -0
- package/dist/esm/api/xlsx-source.d.ts.map +1 -0
- package/dist/esm/api/xlsx-source.js +30 -0
- package/dist/esm/atoms/delete-sheet-atom.d.ts +6 -0
- package/dist/esm/atoms/delete-sheet-atom.d.ts.map +1 -0
- package/dist/esm/atoms/delete-sheet-atom.js +4 -0
- package/dist/esm/atoms/dialog-state.atom.d.ts +23 -0
- package/dist/esm/atoms/dialog-state.atom.d.ts.map +1 -0
- package/dist/esm/atoms/dialog-state.atom.js +34 -0
- package/dist/esm/atoms/editing-data-validation-id.atom.d.ts +7 -0
- package/dist/esm/atoms/editing-data-validation-id.atom.d.ts.map +1 -0
- package/dist/esm/atoms/editing-data-validation-id.atom.js +6 -0
- package/dist/esm/atoms/editing-embed.atom.d.ts +8 -0
- package/dist/esm/atoms/editing-embed.atom.d.ts.map +1 -0
- package/dist/esm/atoms/editing-embed.atom.js +5 -0
- package/dist/esm/atoms/editing-table.atom.d.ts +8 -0
- package/dist/esm/atoms/editing-table.atom.d.ts.map +1 -0
- package/dist/esm/atoms/editing-table.atom.js +6 -0
- package/dist/esm/atoms/error-state.atom.d.ts +10 -0
- package/dist/esm/atoms/error-state.atom.d.ts.map +1 -0
- package/dist/esm/atoms/error-state.atom.js +5 -0
- package/dist/esm/atoms/index.d.ts +5 -0
- package/dist/esm/atoms/index.d.ts.map +1 -0
- package/dist/esm/atoms/index.js +4 -0
- package/dist/esm/atoms/insert-image-state.atom.d.ts +6 -0
- package/dist/esm/atoms/insert-image-state.atom.d.ts.map +1 -0
- package/dist/esm/atoms/insert-image-state.atom.js +5 -0
- package/dist/esm/atoms/named-range.atom.d.ts +8 -0
- package/dist/esm/atoms/named-range.atom.d.ts.map +1 -0
- package/dist/esm/atoms/named-range.atom.js +6 -0
- package/dist/esm/atoms/resize-dimension.atom.d.ts +12 -0
- package/dist/esm/atoms/resize-dimension.atom.d.ts.map +1 -0
- package/dist/esm/atoms/resize-dimension.atom.js +5 -0
- package/dist/esm/atoms/sheet-observer.atom.d.ts +16 -0
- package/dist/esm/atoms/sheet-observer.atom.d.ts.map +1 -0
- package/dist/esm/atoms/sheet-observer.atom.js +16 -0
- package/dist/esm/cellxfs-registry.d.ts +37 -0
- package/dist/esm/cellxfs-registry.d.ts.map +1 -0
- package/dist/esm/cellxfs-registry.js +147 -0
- package/dist/esm/commands.d.ts +691 -0
- package/dist/esm/commands.d.ts.map +1 -0
- package/dist/esm/commands.js +1 -0
- package/dist/esm/components/dialogs/delete-sheet-confirmation.d.ts +7 -0
- package/dist/esm/components/dialogs/delete-sheet-confirmation.d.ts.map +1 -0
- package/dist/esm/components/dialogs/delete-sheet-confirmation.js +29 -0
- package/dist/esm/components/dialogs/error-state.d.ts +3 -0
- package/dist/esm/components/dialogs/error-state.d.ts.map +1 -0
- package/dist/esm/components/dialogs/error-state.js +22 -0
- package/dist/esm/components/editors/cell-format-editor.d.ts +26 -0
- package/dist/esm/components/editors/cell-format-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/cell-format-editor.js +648 -0
- package/dist/esm/components/editors/conditional-format-editor.d.ts +43 -0
- package/dist/esm/components/editors/conditional-format-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/conditional-format-editor.js +172 -0
- package/dist/esm/components/editors/conditional-format-rule-editor.d.ts +27 -0
- package/dist/esm/components/editors/conditional-format-rule-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/conditional-format-rule-editor.js +608 -0
- package/dist/esm/components/editors/data-validation-editor.d.ts +27 -0
- package/dist/esm/components/editors/data-validation-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/data-validation-editor.js +160 -0
- package/dist/esm/components/editors/data-validation-rule-editor.d.ts +17 -0
- package/dist/esm/components/editors/data-validation-rule-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/data-validation-rule-editor.js +194 -0
- package/dist/esm/components/editors/embed-editor.d.ts +19 -0
- package/dist/esm/components/editors/embed-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/embed-editor.js +75 -0
- package/dist/esm/components/editors/insert-image-editor.d.ts +20 -0
- package/dist/esm/components/editors/insert-image-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/insert-image-editor.js +73 -0
- package/dist/esm/components/editors/insert-link-editor.d.ts +20 -0
- package/dist/esm/components/editors/insert-link-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/insert-link-editor.js +60 -0
- package/dist/esm/components/editors/named-range-editor.d.ts +13 -0
- package/dist/esm/components/editors/named-range-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/named-range-editor.js +103 -0
- package/dist/esm/components/editors/resize-dimension-editor.d.ts +9 -0
- package/dist/esm/components/editors/resize-dimension-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/resize-dimension-editor.js +60 -0
- package/dist/esm/components/editors/sheet-filter.d.ts +59 -0
- package/dist/esm/components/editors/sheet-filter.d.ts.map +1 -0
- package/dist/esm/components/editors/sheet-filter.js +88 -0
- package/dist/esm/components/editors/table-editor.d.ts +12 -0
- package/dist/esm/components/editors/table-editor.d.ts.map +1 -0
- package/dist/esm/components/editors/table-editor.js +106 -0
- package/dist/esm/components/index.d.ts +13 -0
- package/dist/esm/components/index.d.ts.map +1 -0
- package/dist/esm/components/index.js +12 -0
- package/dist/esm/generated-names.d.ts +51 -0
- package/dist/esm/generated-names.d.ts.map +1 -0
- package/dist/esm/generated-names.js +5 -0
- package/dist/esm/helpers/iterative-calculation.d.ts +4 -0
- package/dist/esm/helpers/iterative-calculation.d.ts.map +1 -0
- package/dist/esm/helpers/iterative-calculation.js +44 -0
- package/dist/esm/helpers/sheet-title.d.ts +5 -0
- package/dist/esm/helpers/sheet-title.d.ts.map +1 -0
- package/dist/esm/helpers/sheet-title.js +13 -0
- package/dist/esm/helpers.d.ts +45 -0
- package/dist/esm/helpers.d.ts.map +1 -0
- package/dist/esm/helpers.js +143 -0
- package/dist/esm/hooks/use-async-datasource.d.ts +57 -0
- package/dist/esm/hooks/use-async-datasource.d.ts.map +1 -0
- package/dist/esm/hooks/use-async-datasource.js +276 -0
- package/dist/esm/hooks/use-calculation-initialize.d.ts +61 -0
- package/dist/esm/hooks/use-calculation-initialize.d.ts.map +1 -0
- package/dist/esm/hooks/use-calculation-initialize.js +603 -0
- package/dist/esm/hooks/use-calculation-process-array.d.ts +20 -0
- package/dist/esm/hooks/use-calculation-process-array.d.ts.map +1 -0
- package/dist/esm/hooks/use-calculation-process-array.js +279 -0
- package/dist/esm/hooks/use-calculation-queue.d.ts +10 -0
- package/dist/esm/hooks/use-calculation-queue.d.ts.map +1 -0
- package/dist/esm/hooks/use-calculation-queue.js +13 -0
- package/dist/esm/hooks/use-calculation-worker.d.ts +37 -0
- package/dist/esm/hooks/use-calculation-worker.d.ts.map +1 -0
- package/dist/esm/hooks/use-calculation-worker.js +1688 -0
- package/dist/esm/hooks/use-calculation.d.ts +173 -0
- package/dist/esm/hooks/use-calculation.d.ts.map +1 -0
- package/dist/esm/hooks/use-calculation.js +2069 -0
- package/dist/esm/hooks/use-can-edit-cellrange.d.ts +31 -0
- package/dist/esm/hooks/use-can-edit-cellrange.d.ts.map +1 -0
- package/dist/esm/hooks/use-can-edit-cellrange.js +72 -0
- package/dist/esm/hooks/use-cellxfs-registry.d.ts +6 -0
- package/dist/esm/hooks/use-cellxfs-registry.d.ts.map +1 -0
- package/dist/esm/hooks/use-cellxfs-registry.js +22 -0
- package/dist/esm/hooks/use-citations.d.ts +19 -0
- package/dist/esm/hooks/use-citations.d.ts.map +1 -0
- package/dist/esm/hooks/use-citations.js +61 -0
- package/dist/esm/hooks/use-comments.d.ts +14 -0
- package/dist/esm/hooks/use-comments.d.ts.map +1 -0
- package/dist/esm/hooks/use-comments.js +45 -0
- package/dist/esm/hooks/use-conditional-formatting-rules.d.ts +22 -0
- package/dist/esm/hooks/use-conditional-formatting-rules.d.ts.map +1 -0
- package/dist/esm/hooks/use-conditional-formatting-rules.js +81 -0
- package/dist/esm/hooks/use-data-validation-rules.d.ts +54 -0
- package/dist/esm/hooks/use-data-validation-rules.d.ts.map +1 -0
- package/dist/esm/hooks/use-data-validation-rules.js +135 -0
- package/dist/esm/hooks/use-deferred-calculation-flush.d.ts +14 -0
- package/dist/esm/hooks/use-deferred-calculation-flush.d.ts.map +1 -0
- package/dist/esm/hooks/use-deferred-calculation-flush.js +78 -0
- package/dist/esm/hooks/use-idle-scheduler.d.ts +5 -0
- package/dist/esm/hooks/use-idle-scheduler.d.ts.map +1 -0
- package/dist/esm/hooks/use-idle-scheduler.js +46 -0
- package/dist/esm/hooks/use-indent.d.ts +23 -0
- package/dist/esm/hooks/use-indent.d.ts.map +1 -0
- package/dist/esm/hooks/use-indent.js +97 -0
- package/dist/esm/hooks/use-named-range.d.ts +7 -0
- package/dist/esm/hooks/use-named-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-named-range.js +69 -0
- package/dist/esm/hooks/use-on-adjust-row-height.d.ts +11 -0
- package/dist/esm/hooks/use-on-adjust-row-height.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-adjust-row-height.js +63 -0
- package/dist/esm/hooks/use-on-autoresize.d.ts +17 -0
- package/dist/esm/hooks/use-on-autoresize.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-autoresize.js +38 -0
- package/dist/esm/hooks/use-on-banded-ranges.d.ts +15 -0
- package/dist/esm/hooks/use-on-banded-ranges.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-banded-ranges.js +36 -0
- package/dist/esm/hooks/use-on-calculation-begin.d.ts +14 -0
- package/dist/esm/hooks/use-on-calculation-begin.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-calculation-begin.js +22 -0
- package/dist/esm/hooks/use-on-calculation-success.d.ts +22 -0
- package/dist/esm/hooks/use-on-calculation-success.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-calculation-success.js +167 -0
- package/dist/esm/hooks/use-on-change-batch-stream.d.ts +7 -0
- package/dist/esm/hooks/use-on-change-batch-stream.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change-batch-stream.js +58 -0
- package/dist/esm/hooks/use-on-change-batch.d.ts +54 -0
- package/dist/esm/hooks/use-on-change-batch.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change-batch.js +111 -0
- package/dist/esm/hooks/use-on-change-calculated-column.d.ts +23 -0
- package/dist/esm/hooks/use-on-change-calculated-column.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change-calculated-column.js +29 -0
- package/dist/esm/hooks/use-on-change-decimals.d.ts +22 -0
- package/dist/esm/hooks/use-on-change-decimals.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change-decimals.js +45 -0
- package/dist/esm/hooks/use-on-change-formatting.d.ts +44 -0
- package/dist/esm/hooks/use-on-change-formatting.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change-formatting.js +158 -0
- package/dist/esm/hooks/use-on-change-sheet-tabcolor.d.ts +11 -0
- package/dist/esm/hooks/use-on-change-sheet-tabcolor.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change-sheet-tabcolor.js +26 -0
- package/dist/esm/hooks/use-on-change-table-column.d.ts +25 -0
- package/dist/esm/hooks/use-on-change-table-column.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change-table-column.js +52 -0
- package/dist/esm/hooks/use-on-change-theme.d.ts +11 -0
- package/dist/esm/hooks/use-on-change-theme.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change-theme.js +11 -0
- package/dist/esm/hooks/use-on-change.d.ts +61 -0
- package/dist/esm/hooks/use-on-change.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-change.js +281 -0
- package/dist/esm/hooks/use-on-clear-formatting.d.ts +17 -0
- package/dist/esm/hooks/use-on-clear-formatting.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-clear-formatting.js +45 -0
- package/dist/esm/hooks/use-on-collapse-column-group.d.ts +11 -0
- package/dist/esm/hooks/use-on-collapse-column-group.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-collapse-column-group.js +44 -0
- package/dist/esm/hooks/use-on-collapse-row-group.d.ts +18 -0
- package/dist/esm/hooks/use-on-collapse-row-group.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-collapse-row-group.js +54 -0
- package/dist/esm/hooks/use-on-copy.d.ts +49 -0
- package/dist/esm/hooks/use-on-copy.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-copy.js +302 -0
- package/dist/esm/hooks/use-on-create-named-range.d.ts +13 -0
- package/dist/esm/hooks/use-on-create-named-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-create-named-range.js +32 -0
- package/dist/esm/hooks/use-on-create-sheet.d.ts +23 -0
- package/dist/esm/hooks/use-on-create-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-create-sheet.js +64 -0
- package/dist/esm/hooks/use-on-delete-cells-shift-left.d.ts +28 -0
- package/dist/esm/hooks/use-on-delete-cells-shift-left.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-delete-cells-shift-left.js +65 -0
- package/dist/esm/hooks/use-on-delete-cells-shift-up.d.ts +28 -0
- package/dist/esm/hooks/use-on-delete-cells-shift-up.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-delete-cells-shift-up.js +65 -0
- package/dist/esm/hooks/use-on-delete-column.d.ts +38 -0
- package/dist/esm/hooks/use-on-delete-column.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-delete-column.js +86 -0
- package/dist/esm/hooks/use-on-delete-named-range.d.ts +14 -0
- package/dist/esm/hooks/use-on-delete-named-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-delete-named-range.js +22 -0
- package/dist/esm/hooks/use-on-delete-row.d.ts +38 -0
- package/dist/esm/hooks/use-on-delete-row.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-delete-row.js +86 -0
- package/dist/esm/hooks/use-on-delete-sheet.d.ts +16 -0
- package/dist/esm/hooks/use-on-delete-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-delete-sheet.js +36 -0
- package/dist/esm/hooks/use-on-delete-table-row.d.ts +29 -0
- package/dist/esm/hooks/use-on-delete-table-row.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-delete-table-row.js +55 -0
- package/dist/esm/hooks/use-on-delete.d.ts +33 -0
- package/dist/esm/hooks/use-on-delete.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-delete.js +58 -0
- package/dist/esm/hooks/use-on-drag-n-drop.d.ts +55 -0
- package/dist/esm/hooks/use-on-drag-n-drop.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-drag-n-drop.js +160 -0
- package/dist/esm/hooks/use-on-duplicate-sheet.d.ts +29 -0
- package/dist/esm/hooks/use-on-duplicate-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-duplicate-sheet.js +63 -0
- package/dist/esm/hooks/use-on-embeds.d.ts +19 -0
- package/dist/esm/hooks/use-on-embeds.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-embeds.js +86 -0
- package/dist/esm/hooks/use-on-expand-column-group.d.ts +11 -0
- package/dist/esm/hooks/use-on-expand-column-group.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-expand-column-group.js +42 -0
- package/dist/esm/hooks/use-on-expand-row-group.d.ts +18 -0
- package/dist/esm/hooks/use-on-expand-row-group.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-expand-row-group.js +49 -0
- package/dist/esm/hooks/use-on-fill-range.d.ts +9 -0
- package/dist/esm/hooks/use-on-fill-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-fill-range.js +79 -0
- package/dist/esm/hooks/use-on-fill.d.ts +29 -0
- package/dist/esm/hooks/use-on-fill.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-fill.js +66 -0
- package/dist/esm/hooks/use-on-filter-table.d.ts +76 -0
- package/dist/esm/hooks/use-on-filter-table.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-filter-table.js +341 -0
- package/dist/esm/hooks/use-on-find-replace.d.ts +19 -0
- package/dist/esm/hooks/use-on-find-replace.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-find-replace.js +115 -0
- package/dist/esm/hooks/use-on-freeze.d.ts +13 -0
- package/dist/esm/hooks/use-on-freeze.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-freeze.js +55 -0
- package/dist/esm/hooks/use-on-group-columns.d.ts +11 -0
- package/dist/esm/hooks/use-on-group-columns.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-group-columns.js +35 -0
- package/dist/esm/hooks/use-on-group-rows.d.ts +17 -0
- package/dist/esm/hooks/use-on-group-rows.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-group-rows.js +41 -0
- package/dist/esm/hooks/use-on-hide-column.d.ts +23 -0
- package/dist/esm/hooks/use-on-hide-column.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-hide-column.js +54 -0
- package/dist/esm/hooks/use-on-hide-row.d.ts +32 -0
- package/dist/esm/hooks/use-on-hide-row.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-hide-row.js +57 -0
- package/dist/esm/hooks/use-on-hide-show-sheet.d.ts +18 -0
- package/dist/esm/hooks/use-on-hide-show-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-hide-show-sheet.js +88 -0
- package/dist/esm/hooks/use-on-import-csv-legacy.d.ts +8 -0
- package/dist/esm/hooks/use-on-import-csv-legacy.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-import-csv-legacy.js +148 -0
- package/dist/esm/hooks/use-on-import-csv.d.ts +28 -0
- package/dist/esm/hooks/use-on-import-csv.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-import-csv.js +267 -0
- package/dist/esm/hooks/use-on-import-excel.d.ts +67 -0
- package/dist/esm/hooks/use-on-import-excel.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-import-excel.js +595 -0
- package/dist/esm/hooks/use-on-insert-autosum.d.ts +9 -0
- package/dist/esm/hooks/use-on-insert-autosum.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-autosum.js +91 -0
- package/dist/esm/hooks/use-on-insert-cells-shift-down.d.ts +28 -0
- package/dist/esm/hooks/use-on-insert-cells-shift-down.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-cells-shift-down.js +65 -0
- package/dist/esm/hooks/use-on-insert-cells-shift-right.d.ts +28 -0
- package/dist/esm/hooks/use-on-insert-cells-shift-right.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-cells-shift-right.js +65 -0
- package/dist/esm/hooks/use-on-insert-checkbox.d.ts +17 -0
- package/dist/esm/hooks/use-on-insert-checkbox.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-checkbox.js +73 -0
- package/dist/esm/hooks/use-on-insert-column.d.ts +40 -0
- package/dist/esm/hooks/use-on-insert-column.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-column.js +91 -0
- package/dist/esm/hooks/use-on-insert-date-time.d.ts +4 -0
- package/dist/esm/hooks/use-on-insert-date-time.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-date-time.js +11 -0
- package/dist/esm/hooks/use-on-insert-date.d.ts +4 -0
- package/dist/esm/hooks/use-on-insert-date.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-date.js +12 -0
- package/dist/esm/hooks/use-on-insert-image.d.ts +24 -0
- package/dist/esm/hooks/use-on-insert-image.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-image.js +131 -0
- package/dist/esm/hooks/use-on-insert-link.d.ts +25 -0
- package/dist/esm/hooks/use-on-insert-link.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-link.js +193 -0
- package/dist/esm/hooks/use-on-insert-note.d.ts +4 -0
- package/dist/esm/hooks/use-on-insert-note.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-note.js +14 -0
- package/dist/esm/hooks/use-on-insert-row.d.ts +38 -0
- package/dist/esm/hooks/use-on-insert-row.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-row.js +104 -0
- package/dist/esm/hooks/use-on-insert-table-row.d.ts +31 -0
- package/dist/esm/hooks/use-on-insert-table-row.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-table-row.js +59 -0
- package/dist/esm/hooks/use-on-insert-time.d.ts +4 -0
- package/dist/esm/hooks/use-on-insert-time.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-insert-time.js +11 -0
- package/dist/esm/hooks/use-on-locale-change.d.ts +35 -0
- package/dist/esm/hooks/use-on-locale-change.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-locale-change.js +314 -0
- package/dist/esm/hooks/use-on-merge-unmerge-cells.d.ts +28 -0
- package/dist/esm/hooks/use-on-merge-unmerge-cells.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-merge-unmerge-cells.js +310 -0
- package/dist/esm/hooks/use-on-move-columns.d.ts +28 -0
- package/dist/esm/hooks/use-on-move-columns.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-move-columns.js +295 -0
- package/dist/esm/hooks/use-on-move-rows.d.ts +30 -0
- package/dist/esm/hooks/use-on-move-rows.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-move-rows.js +264 -0
- package/dist/esm/hooks/use-on-move-selection.d.ts +35 -0
- package/dist/esm/hooks/use-on-move-selection.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-move-selection.js +383 -0
- package/dist/esm/hooks/use-on-move-sheet.d.ts +12 -0
- package/dist/esm/hooks/use-on-move-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-move-sheet.js +65 -0
- package/dist/esm/hooks/use-on-move-table-columns.d.ts +21 -0
- package/dist/esm/hooks/use-on-move-table-columns.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-move-table-columns.js +235 -0
- package/dist/esm/hooks/use-on-paste.d.ts +79 -0
- package/dist/esm/hooks/use-on-paste.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-paste.js +868 -0
- package/dist/esm/hooks/use-on-protect-range.d.ts +20 -0
- package/dist/esm/hooks/use-on-protect-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-protect-range.js +67 -0
- package/dist/esm/hooks/use-on-protect-sheet.d.ts +19 -0
- package/dist/esm/hooks/use-on-protect-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-protect-sheet.js +61 -0
- package/dist/esm/hooks/use-on-remove-duplicates.d.ts +21 -0
- package/dist/esm/hooks/use-on-remove-duplicates.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-remove-duplicates.js +39 -0
- package/dist/esm/hooks/use-on-rename-sheet.d.ts +21 -0
- package/dist/esm/hooks/use-on-rename-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-rename-sheet.js +78 -0
- package/dist/esm/hooks/use-on-request-calculate-wrapper.d.ts +30 -0
- package/dist/esm/hooks/use-on-request-calculate-wrapper.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-calculate-wrapper.js +88 -0
- package/dist/esm/hooks/use-on-request-conditional-format.d.ts +2 -0
- package/dist/esm/hooks/use-on-request-conditional-format.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-conditional-format.js +8 -0
- package/dist/esm/hooks/use-on-request-data-validation.d.ts +7 -0
- package/dist/esm/hooks/use-on-request-data-validation.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-data-validation.js +21 -0
- package/dist/esm/hooks/use-on-request-define-named-range.d.ts +8 -0
- package/dist/esm/hooks/use-on-request-define-named-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-define-named-range.js +25 -0
- package/dist/esm/hooks/use-on-request-delete-sheet.d.ts +2 -0
- package/dist/esm/hooks/use-on-request-delete-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-delete-sheet.js +11 -0
- package/dist/esm/hooks/use-on-request-edit-table.d.ts +3 -0
- package/dist/esm/hooks/use-on-request-edit-table.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-edit-table.js +11 -0
- package/dist/esm/hooks/use-on-request-format-cells.d.ts +2 -0
- package/dist/esm/hooks/use-on-request-format-cells.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-format-cells.js +8 -0
- package/dist/esm/hooks/use-on-request-insert-image.d.ts +3 -0
- package/dist/esm/hooks/use-on-request-insert-image.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-insert-image.js +12 -0
- package/dist/esm/hooks/use-on-request-insert-link.d.ts +5 -0
- package/dist/esm/hooks/use-on-request-insert-link.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-insert-link.js +9 -0
- package/dist/esm/hooks/use-on-request-resize.d.ts +3 -0
- package/dist/esm/hooks/use-on-request-resize.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-resize.js +13 -0
- package/dist/esm/hooks/use-on-request-update-named-range.d.ts +3 -0
- package/dist/esm/hooks/use-on-request-update-named-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-request-update-named-range.js +11 -0
- package/dist/esm/hooks/use-on-resize-table.d.ts +33 -0
- package/dist/esm/hooks/use-on-resize-table.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-resize-table.js +212 -0
- package/dist/esm/hooks/use-on-resize.d.ts +19 -0
- package/dist/esm/hooks/use-on-resize.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-resize.js +54 -0
- package/dist/esm/hooks/use-on-set-outline-depth.d.ts +17 -0
- package/dist/esm/hooks/use-on-set-outline-depth.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-set-outline-depth.js +93 -0
- package/dist/esm/hooks/use-on-show-column.d.ts +16 -0
- package/dist/esm/hooks/use-on-show-column.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-show-column.js +82 -0
- package/dist/esm/hooks/use-on-show-row.d.ts +22 -0
- package/dist/esm/hooks/use-on-show-row.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-show-row.js +85 -0
- package/dist/esm/hooks/use-on-sort-column.d.ts +53 -0
- package/dist/esm/hooks/use-on-sort-column.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-sort-column.js +268 -0
- package/dist/esm/hooks/use-on-sort-range.d.ts +42 -0
- package/dist/esm/hooks/use-on-sort-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-sort-range.js +247 -0
- package/dist/esm/hooks/use-on-sort-table.d.ts +59 -0
- package/dist/esm/hooks/use-on-sort-table.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-sort-table.js +332 -0
- package/dist/esm/hooks/use-on-table.d.ts +49 -0
- package/dist/esm/hooks/use-on-table.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-table.js +384 -0
- package/dist/esm/hooks/use-on-trace-dependents-precedents.d.ts +14 -0
- package/dist/esm/hooks/use-on-trace-dependents-precedents.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-trace-dependents-precedents.js +144 -0
- package/dist/esm/hooks/use-on-ungroup-columns.d.ts +11 -0
- package/dist/esm/hooks/use-on-ungroup-columns.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-ungroup-columns.js +43 -0
- package/dist/esm/hooks/use-on-ungroup-rows.d.ts +17 -0
- package/dist/esm/hooks/use-on-ungroup-rows.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-ungroup-rows.js +49 -0
- package/dist/esm/hooks/use-on-update-named-range.d.ts +19 -0
- package/dist/esm/hooks/use-on-update-named-range.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-update-named-range.js +108 -0
- package/dist/esm/hooks/use-on-update-note.d.ts +13 -0
- package/dist/esm/hooks/use-on-update-note.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-update-note.js +20 -0
- package/dist/esm/hooks/use-on-update-sheet.d.ts +10 -0
- package/dist/esm/hooks/use-on-update-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-on-update-sheet.js +11 -0
- package/dist/esm/hooks/use-paint-format.d.ts +17 -0
- package/dist/esm/hooks/use-paint-format.d.ts.map +1 -0
- package/dist/esm/hooks/use-paint-format.js +110 -0
- package/dist/esm/hooks/use-search.d.ts +81 -0
- package/dist/esm/hooks/use-search.d.ts.map +1 -0
- package/dist/esm/hooks/use-search.js +251 -0
- package/dist/esm/hooks/use-select-next-prev-sheet.d.ts +11 -0
- package/dist/esm/hooks/use-select-next-prev-sheet.d.ts.map +1 -0
- package/dist/esm/hooks/use-select-next-prev-sheet.js +21 -0
- package/dist/esm/hooks/use-sheet-observer.d.ts +20 -0
- package/dist/esm/hooks/use-sheet-observer.d.ts.map +1 -0
- package/dist/esm/hooks/use-sheet-observer.js +120 -0
- package/dist/esm/hooks/use-sheet-properties.d.ts +105 -0
- package/dist/esm/hooks/use-sheet-properties.d.ts.map +1 -0
- package/dist/esm/hooks/use-sheet-properties.js +895 -0
- package/dist/esm/hooks/use-sheet-state.d.ts +17 -0
- package/dist/esm/hooks/use-sheet-state.d.ts.map +1 -0
- package/dist/esm/hooks/use-sheet-state.js +102 -0
- package/dist/esm/hooks/use-sheetdata-subscriber.d.ts +10 -0
- package/dist/esm/hooks/use-sheetdata-subscriber.d.ts.map +1 -0
- package/dist/esm/hooks/use-sheetdata-subscriber.js +14 -0
- package/dist/esm/hooks/use-slicers.d.ts +19 -0
- package/dist/esm/hooks/use-slicers.d.ts.map +1 -0
- package/dist/esm/hooks/use-slicers.js +83 -0
- package/dist/esm/hooks/use-split-text-to-columns.d.ts +19 -0
- package/dist/esm/hooks/use-split-text-to-columns.d.ts.map +1 -0
- package/dist/esm/hooks/use-split-text-to-columns.js +30 -0
- package/dist/esm/hooks/use-spreadsheet-state.d.ts +627 -0
- package/dist/esm/hooks/use-spreadsheet-state.d.ts.map +1 -0
- package/dist/esm/hooks/use-spreadsheet-state.js +2010 -0
- package/dist/esm/hooks/use-ss-registry.d.ts +6 -0
- package/dist/esm/hooks/use-ss-registry.d.ts.map +1 -0
- package/dist/esm/hooks/use-ss-registry.js +17 -0
- package/dist/esm/hooks/use-structured-reference.d.ts +8 -0
- package/dist/esm/hooks/use-structured-reference.d.ts.map +1 -0
- package/dist/esm/hooks/use-structured-reference.js +129 -0
- package/dist/esm/hooks/use-undo-redo-actions.d.ts +40 -0
- package/dist/esm/hooks/use-undo-redo-actions.d.ts.map +1 -0
- package/dist/esm/hooks/use-undo-redo-actions.js +166 -0
- package/dist/esm/hooks/use-undo-redo.d.ts +69 -0
- package/dist/esm/hooks/use-undo-redo.d.ts.map +1 -0
- package/dist/esm/hooks/use-undo-redo.js +113 -0
- package/dist/esm/hooks/utils/frozen-sort.d.ts +9 -0
- package/dist/esm/hooks/utils/frozen-sort.d.ts.map +1 -0
- package/dist/esm/hooks/utils/frozen-sort.js +25 -0
- package/dist/esm/hooks/utils/sort-rows.d.ts +32 -0
- package/dist/esm/hooks/utils/sort-rows.d.ts.map +1 -0
- package/dist/esm/hooks/utils/sort-rows.js +102 -0
- package/dist/esm/index.d.ts +38 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +39 -0
- package/dist/esm/interface/apply-fill.d.ts +6 -0
- package/dist/esm/interface/apply-fill.d.ts.map +1 -0
- package/dist/esm/interface/apply-fill.js +195 -0
- package/dist/esm/interface/auto-resize.d.ts +4 -0
- package/dist/esm/interface/auto-resize.d.ts.map +1 -0
- package/dist/esm/interface/auto-resize.js +50 -0
- package/dist/esm/interface/calculation-interface.d.ts +67 -0
- package/dist/esm/interface/calculation-interface.d.ts.map +1 -0
- package/dist/esm/interface/calculation-interface.js +339 -0
- package/dist/esm/interface/change-batch-stream.d.ts +25 -0
- package/dist/esm/interface/change-batch-stream.d.ts.map +1 -0
- package/dist/esm/interface/change-batch-stream.js +294 -0
- package/dist/esm/interface/change-batch.d.ts +39 -0
- package/dist/esm/interface/change-batch.d.ts.map +1 -0
- package/dist/esm/interface/change-batch.js +282 -0
- package/dist/esm/interface/change-border.d.ts +5 -0
- package/dist/esm/interface/change-border.d.ts.map +1 -0
- package/dist/esm/interface/change-border.js +116 -0
- package/dist/esm/interface/change-calculated-column.d.ts +5 -0
- package/dist/esm/interface/change-calculated-column.d.ts.map +1 -0
- package/dist/esm/interface/change-calculated-column.js +120 -0
- package/dist/esm/interface/change-decimals.d.ts +7 -0
- package/dist/esm/interface/change-decimals.d.ts.map +1 -0
- package/dist/esm/interface/change-decimals.js +58 -0
- package/dist/esm/interface/change-formatting.d.ts +4 -0
- package/dist/esm/interface/change-formatting.d.ts.map +1 -0
- package/dist/esm/interface/change-formatting.js +209 -0
- package/dist/esm/interface/change-sheet-tabcolor.d.ts +4 -0
- package/dist/esm/interface/change-sheet-tabcolor.d.ts.map +1 -0
- package/dist/esm/interface/change-sheet-tabcolor.js +19 -0
- package/dist/esm/interface/change-table-column.d.ts +49 -0
- package/dist/esm/interface/change-table-column.d.ts.map +1 -0
- package/dist/esm/interface/change-table-column.js +247 -0
- package/dist/esm/interface/change-theme.d.ts +4 -0
- package/dist/esm/interface/change-theme.d.ts.map +1 -0
- package/dist/esm/interface/change-theme.js +21 -0
- package/dist/esm/interface/chart-extensions.d.ts +32 -0
- package/dist/esm/interface/chart-extensions.d.ts.map +1 -0
- package/dist/esm/interface/chart-extensions.js +71 -0
- package/dist/esm/interface/citations.d.ts +33 -0
- package/dist/esm/interface/citations.d.ts.map +1 -0
- package/dist/esm/interface/citations.js +123 -0
- package/dist/esm/interface/clear-formatting.d.ts +5 -0
- package/dist/esm/interface/clear-formatting.d.ts.map +1 -0
- package/dist/esm/interface/clear-formatting.js +48 -0
- package/dist/esm/interface/conditional-formatting-rules.d.ts +7 -0
- package/dist/esm/interface/conditional-formatting-rules.d.ts.map +1 -0
- package/dist/esm/interface/conditional-formatting-rules.js +123 -0
- package/dist/esm/interface/create-table.d.ts +5 -0
- package/dist/esm/interface/create-table.d.ts.map +1 -0
- package/dist/esm/interface/create-table.js +105 -0
- package/dist/esm/interface/data-validation-rules.d.ts +25 -0
- package/dist/esm/interface/data-validation-rules.d.ts.map +1 -0
- package/dist/esm/interface/data-validation-rules.js +310 -0
- package/dist/esm/interface/data-validation-utils.d.ts +12 -0
- package/dist/esm/interface/data-validation-utils.d.ts.map +1 -0
- package/dist/esm/interface/data-validation-utils.js +79 -0
- package/dist/esm/interface/delete-cells-shift-left.d.ts +5 -0
- package/dist/esm/interface/delete-cells-shift-left.d.ts.map +1 -0
- package/dist/esm/interface/delete-cells-shift-left.js +146 -0
- package/dist/esm/interface/delete-cells-shift-up.d.ts +5 -0
- package/dist/esm/interface/delete-cells-shift-up.d.ts.map +1 -0
- package/dist/esm/interface/delete-cells-shift-up.js +138 -0
- package/dist/esm/interface/delete-cells.d.ts +6 -0
- package/dist/esm/interface/delete-cells.d.ts.map +1 -0
- package/dist/esm/interface/delete-cells.js +184 -0
- package/dist/esm/interface/delete-column.d.ts +4 -0
- package/dist/esm/interface/delete-column.d.ts.map +1 -0
- package/dist/esm/interface/delete-column.js +254 -0
- package/dist/esm/interface/delete-row.d.ts +4 -0
- package/dist/esm/interface/delete-row.d.ts.map +1 -0
- package/dist/esm/interface/delete-row.js +226 -0
- package/dist/esm/interface/delete-sheet.d.ts +4 -0
- package/dist/esm/interface/delete-sheet.d.ts.map +1 -0
- package/dist/esm/interface/delete-sheet.js +78 -0
- package/dist/esm/interface/delete-table-column.d.ts +4 -0
- package/dist/esm/interface/delete-table-column.d.ts.map +1 -0
- package/dist/esm/interface/delete-table-column.js +274 -0
- package/dist/esm/interface/delete-table-row.d.ts +4 -0
- package/dist/esm/interface/delete-table-row.d.ts.map +1 -0
- package/dist/esm/interface/delete-table-row.js +278 -0
- package/dist/esm/interface/duplicate-sheet.d.ts +4 -0
- package/dist/esm/interface/duplicate-sheet.d.ts.map +1 -0
- package/dist/esm/interface/duplicate-sheet.js +206 -0
- package/dist/esm/interface/embeds.d.ts +9 -0
- package/dist/esm/interface/embeds.d.ts.map +1 -0
- package/dist/esm/interface/embeds.js +115 -0
- package/dist/esm/interface/freeze.d.ts +5 -0
- package/dist/esm/interface/freeze.d.ts.map +1 -0
- package/dist/esm/interface/freeze.js +109 -0
- package/dist/esm/interface/helpers.d.ts +6 -0
- package/dist/esm/interface/helpers.d.ts.map +1 -0
- package/dist/esm/interface/helpers.js +32 -0
- package/dist/esm/interface/hide-column.d.ts +4 -0
- package/dist/esm/interface/hide-column.d.ts.map +1 -0
- package/dist/esm/interface/hide-column.js +59 -0
- package/dist/esm/interface/hide-row.d.ts +4 -0
- package/dist/esm/interface/hide-row.d.ts.map +1 -0
- package/dist/esm/interface/hide-row.js +54 -0
- package/dist/esm/interface/indent.d.ts +7 -0
- package/dist/esm/interface/indent.d.ts.map +1 -0
- package/dist/esm/interface/indent.js +73 -0
- package/dist/esm/interface/insert-cells-shift-down.d.ts +5 -0
- package/dist/esm/interface/insert-cells-shift-down.d.ts.map +1 -0
- package/dist/esm/interface/insert-cells-shift-down.js +143 -0
- package/dist/esm/interface/insert-cells-shift-right.d.ts +5 -0
- package/dist/esm/interface/insert-cells-shift-right.d.ts.map +1 -0
- package/dist/esm/interface/insert-cells-shift-right.js +134 -0
- package/dist/esm/interface/insert-column.d.ts +7 -0
- package/dist/esm/interface/insert-column.d.ts.map +1 -0
- package/dist/esm/interface/insert-column.js +481 -0
- package/dist/esm/interface/insert-note.d.ts +5 -0
- package/dist/esm/interface/insert-note.d.ts.map +1 -0
- package/dist/esm/interface/insert-note.js +23 -0
- package/dist/esm/interface/insert-row.d.ts +4 -0
- package/dist/esm/interface/insert-row.d.ts.map +1 -0
- package/dist/esm/interface/insert-row.js +158 -0
- package/dist/esm/interface/insert-table-row.d.ts +4 -0
- package/dist/esm/interface/insert-table-row.d.ts.map +1 -0
- package/dist/esm/interface/insert-table-row.js +314 -0
- package/dist/esm/interface/interface-cli.d.ts +3 -0
- package/dist/esm/interface/interface-cli.d.ts.map +1 -0
- package/dist/esm/interface/interface-cli.js +62 -0
- package/dist/esm/interface/named-range-operations.d.ts +19 -0
- package/dist/esm/interface/named-range-operations.d.ts.map +1 -0
- package/dist/esm/interface/named-range-operations.js +71 -0
- package/dist/esm/interface/new-sheet.d.ts +4 -0
- package/dist/esm/interface/new-sheet.d.ts.map +1 -0
- package/dist/esm/interface/new-sheet.js +102 -0
- package/dist/esm/interface/pivot-extensions.d.ts +27 -0
- package/dist/esm/interface/pivot-extensions.d.ts.map +1 -0
- package/dist/esm/interface/pivot-extensions.js +60 -0
- package/dist/esm/interface/remove-duplicates.d.ts +11 -0
- package/dist/esm/interface/remove-duplicates.d.ts.map +1 -0
- package/dist/esm/interface/remove-duplicates.js +107 -0
- package/dist/esm/interface/remove-table.d.ts +4 -0
- package/dist/esm/interface/remove-table.d.ts.map +1 -0
- package/dist/esm/interface/remove-table.js +50 -0
- package/dist/esm/interface/resize-utils.d.ts +18 -0
- package/dist/esm/interface/resize-utils.d.ts.map +1 -0
- package/dist/esm/interface/resize-utils.js +34 -0
- package/dist/esm/interface/resize.d.ts +5 -0
- package/dist/esm/interface/resize.d.ts.map +1 -0
- package/dist/esm/interface/resize.js +43 -0
- package/dist/esm/interface/slicers.d.ts +9 -0
- package/dist/esm/interface/slicers.d.ts.map +1 -0
- package/dist/esm/interface/slicers.js +107 -0
- package/dist/esm/interface/split-text.d.ts +5 -0
- package/dist/esm/interface/split-text.d.ts.map +1 -0
- package/dist/esm/interface/split-text.js +94 -0
- package/dist/esm/interface/spreadsheet-interface.d.ts +642 -0
- package/dist/esm/interface/spreadsheet-interface.d.ts.map +1 -0
- package/dist/esm/interface/spreadsheet-interface.js +2442 -0
- package/dist/esm/interface/table-totalrow.d.ts +20 -0
- package/dist/esm/interface/table-totalrow.d.ts.map +1 -0
- package/dist/esm/interface/table-totalrow.js +155 -0
- package/dist/esm/interface/table-utils.d.ts +21 -0
- package/dist/esm/interface/table-utils.d.ts.map +1 -0
- package/dist/esm/interface/table-utils.js +38 -0
- package/dist/esm/interface/update-sheet.d.ts +16 -0
- package/dist/esm/interface/update-sheet.d.ts.map +1 -0
- package/dist/esm/interface/update-sheet.js +64 -0
- package/dist/esm/interface/update-table.d.ts +4 -0
- package/dist/esm/interface/update-table.d.ts.map +1 -0
- package/dist/esm/interface/update-table.js +111 -0
- package/dist/esm/server-utils.d.ts +8 -0
- package/dist/esm/server-utils.d.ts.map +1 -0
- package/dist/esm/server-utils.js +3 -0
- package/dist/esm/server.browser.d.ts +9 -0
- package/dist/esm/server.browser.d.ts.map +1 -0
- package/dist/esm/server.browser.js +5 -0
- package/dist/esm/server.d.ts +9 -0
- package/dist/esm/server.d.ts.map +1 -0
- package/dist/esm/server.js +5 -0
- package/dist/esm/shared-string-registry.d.ts +35 -0
- package/dist/esm/shared-string-registry.d.ts.map +1 -0
- package/dist/esm/shared-string-registry.js +248 -0
- package/dist/esm/sheet-cell.d.ts +310 -0
- package/dist/esm/sheet-cell.d.ts.map +1 -0
- package/dist/esm/sheet-cell.js +1829 -0
- package/dist/esm/test-setup.d.ts +2 -0
- package/dist/esm/test-setup.d.ts.map +1 -0
- package/dist/esm/test-setup.js +3 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -0
- package/dist/esm/types.d.ts +44 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +33 -0
- package/dist/esm/validation-schema/table.schema.d.ts +6 -0
- package/dist/esm/validation-schema/table.schema.d.ts.map +1 -0
- package/dist/esm/validation-schema/table.schema.js +4 -0
- package/dist/esm/vitest.config.d.ts +3 -0
- package/dist/esm/vitest.config.d.ts.map +1 -0
- package/dist/esm/vitest.config.js +22 -0
- package/package.json +89 -0
|
@@ -0,0 +1,959 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
2
|
+
import { Direction } from "@rowsncolumns/common-types";
|
|
3
|
+
import { toDate } from "@rowsncolumns/utils";
|
|
4
|
+
import { SheetCell } from "../sheet-cell";
|
|
5
|
+
// Helper functions for pattern detection and fill operations
|
|
6
|
+
/**
|
|
7
|
+
* Extract numeric value from a string that may contain text
|
|
8
|
+
*/
|
|
9
|
+
var extractNumber = function (value) {
|
|
10
|
+
var match = value.match(/-?\d+\.?\d*/);
|
|
11
|
+
return match ? parseFloat(match[0]) : null;
|
|
12
|
+
};
|
|
13
|
+
var TEXT_NUMBER_PATTERN_REGEX = /^(.*?)(-?\d+(?:\.\d+)?)(.*)$/;
|
|
14
|
+
var MONTH_NAME_REGEX = /\b(?:jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:t(?:ember)?)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)\b/i;
|
|
15
|
+
var WEEKDAY_NAME_REGEX = /\b(?:mon(?:day)?|tue(?:s(?:day)?)?|wed(?:nesday)?|thu(?:rs(?:day)?)?|fri(?:day)?|sat(?:urday)?|sun(?:day)?)\b/i;
|
|
16
|
+
var ISO_DATE_TIME_REGEX = /^\d{4}-\d{2}-\d{2}(?:[tT ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(?:Z|[+-]\d{2}:?\d{2})?)?$/;
|
|
17
|
+
var NUMERIC_DATE_REGEX = /^\d{1,4}[\/.-]\d{1,2}(?:[\/.-]\d{1,4})?(?:\s+\d{1,2}:\d{2}(?::\d{2})?)?$/;
|
|
18
|
+
var extractTextNumberPattern = function (value) {
|
|
19
|
+
var match = value.match(TEXT_NUMBER_PATTERN_REGEX);
|
|
20
|
+
if (!match)
|
|
21
|
+
return null;
|
|
22
|
+
var _a = __read(match, 4), prefix = _a[1], numericPortion = _a[2], suffix = _a[3];
|
|
23
|
+
if (!prefix && !suffix)
|
|
24
|
+
return null;
|
|
25
|
+
var parsed = parseFloat(numericPortion);
|
|
26
|
+
if (Number.isNaN(parsed))
|
|
27
|
+
return null;
|
|
28
|
+
return {
|
|
29
|
+
prefix: prefix,
|
|
30
|
+
suffix: suffix,
|
|
31
|
+
number: parsed,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
var isLikelyDateString = function (value) {
|
|
35
|
+
var trimmed = value.trim();
|
|
36
|
+
if (!trimmed || /^\d+$/.test(trimmed)) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (ISO_DATE_TIME_REGEX.test(trimmed) || NUMERIC_DATE_REGEX.test(trimmed)) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
if (MONTH_NAME_REGEX.test(trimmed) || WEEKDAY_NAME_REGEX.test(trimmed)) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Check if a value is a date
|
|
49
|
+
*/
|
|
50
|
+
var _isDate = function (value) {
|
|
51
|
+
return (value instanceof Date || (!isNaN(Date.parse(value)) && isNaN(Number(value))));
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Parse a date from various formats
|
|
55
|
+
*/
|
|
56
|
+
var parseDate = function (value) {
|
|
57
|
+
if (value instanceof Date)
|
|
58
|
+
return value;
|
|
59
|
+
// Don't try to parse numbers as dates
|
|
60
|
+
if (typeof value === "number")
|
|
61
|
+
return null;
|
|
62
|
+
if (typeof value === "string") {
|
|
63
|
+
var trimmed = value.trim();
|
|
64
|
+
if (!isLikelyDateString(trimmed))
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
var parsed = Date.parse(value);
|
|
68
|
+
return isNaN(parsed) ? null : new Date(parsed);
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Get day names array
|
|
72
|
+
*/
|
|
73
|
+
var getDayNames = function (locale) {
|
|
74
|
+
if (locale === void 0) { locale = "en"; }
|
|
75
|
+
var days = [];
|
|
76
|
+
var date = new Date(2024, 0, 1); // Start with a Monday
|
|
77
|
+
for (var i = 0; i < 7; i++) {
|
|
78
|
+
days.push(date.toLocaleDateString(locale, { weekday: "long" }));
|
|
79
|
+
date.setDate(date.getDate() + 1);
|
|
80
|
+
}
|
|
81
|
+
return days;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Custom autofill list matching. Returns the matched list + the
|
|
85
|
+
* position in the list where the source values START, and the
|
|
86
|
+
* direction (ascending = source[0]→source[n-1] follows list order;
|
|
87
|
+
* descending = reverse).
|
|
88
|
+
*
|
|
89
|
+
* Match is case-insensitive on string values; non-string values
|
|
90
|
+
* (numbers, booleans, dates) never match. Excel's behaviour: source
|
|
91
|
+
* values must form a *contiguous* slice of the list (with wrap-around
|
|
92
|
+
* — "Sun, Mon" can extend into "Tue, Wed,...").
|
|
93
|
+
*/
|
|
94
|
+
var matchCustomList = function (source, lists) {
|
|
95
|
+
var e_1, _a;
|
|
96
|
+
if (!lists || lists.length === 0 || source.length === 0)
|
|
97
|
+
return null;
|
|
98
|
+
var stringValues = source.map(function (v) {
|
|
99
|
+
return typeof v === "string" ? v.toLowerCase() : null;
|
|
100
|
+
});
|
|
101
|
+
if (stringValues.some(function (v) { return v === null; }))
|
|
102
|
+
return null;
|
|
103
|
+
var lc = stringValues;
|
|
104
|
+
var _loop_1 = function (list) {
|
|
105
|
+
if (list.length < 2)
|
|
106
|
+
return "continue";
|
|
107
|
+
var listLower = list.map(function (s) { return s.toLowerCase(); });
|
|
108
|
+
// Find ascending starting index where source[i] === listLower[(start + i) % N]
|
|
109
|
+
var findStart = function (asc) {
|
|
110
|
+
var len = listLower.length;
|
|
111
|
+
for (var start = 0; start < len; start++) {
|
|
112
|
+
var ok = true;
|
|
113
|
+
for (var i = 0; i < lc.length; i++) {
|
|
114
|
+
var offset = asc ? i : -i;
|
|
115
|
+
var idx = ((start + offset) % len + len) % len;
|
|
116
|
+
if (lc[i] !== listLower[idx]) {
|
|
117
|
+
ok = false;
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (ok)
|
|
122
|
+
return start;
|
|
123
|
+
}
|
|
124
|
+
return -1;
|
|
125
|
+
};
|
|
126
|
+
var ascStart = findStart(true);
|
|
127
|
+
if (ascStart !== -1) {
|
|
128
|
+
return { value: { list: list, startIndex: ascStart, ascending: true } };
|
|
129
|
+
}
|
|
130
|
+
if (lc.length >= 2) {
|
|
131
|
+
var descStart = findStart(false);
|
|
132
|
+
if (descStart !== -1) {
|
|
133
|
+
return { value: { list: list, startIndex: descStart, ascending: false } };
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
try {
|
|
138
|
+
for (var lists_1 = __values(lists), lists_1_1 = lists_1.next(); !lists_1_1.done; lists_1_1 = lists_1.next()) {
|
|
139
|
+
var list = lists_1_1.value;
|
|
140
|
+
var state_1 = _loop_1(list);
|
|
141
|
+
if (typeof state_1 === "object")
|
|
142
|
+
return state_1.value;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
146
|
+
finally {
|
|
147
|
+
try {
|
|
148
|
+
if (lists_1_1 && !lists_1_1.done && (_a = lists_1.return)) _a.call(lists_1);
|
|
149
|
+
}
|
|
150
|
+
finally { if (e_1) throw e_1.error; }
|
|
151
|
+
}
|
|
152
|
+
return null;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Get month names array
|
|
156
|
+
*/
|
|
157
|
+
var getMonthNames = function (locale) {
|
|
158
|
+
if (locale === void 0) { locale = "en"; }
|
|
159
|
+
var months = [];
|
|
160
|
+
for (var i = 0; i < 12; i++) {
|
|
161
|
+
var date = new Date(2024, i, 1);
|
|
162
|
+
months.push(date.toLocaleDateString(locale, { month: "long" }));
|
|
163
|
+
}
|
|
164
|
+
return months;
|
|
165
|
+
};
|
|
166
|
+
var FLOAT_ROUNDING_DECIMALS = 12;
|
|
167
|
+
var FLOAT_EPSILON_FACTOR = 10;
|
|
168
|
+
var SIMPLE_INTEGER_SERIES_NUMBER_PATTERN_REGEX = /^(?:#|0|#,##0)$/i;
|
|
169
|
+
var SIMPLE_DECIMAL_SERIES_NUMBER_PATTERN_REGEX = /^(?:#|0|#,##0)\.0+$/i;
|
|
170
|
+
var getFloatTolerance = function (value) {
|
|
171
|
+
return Number.EPSILON * Math.max(1, Math.abs(value)) * FLOAT_EPSILON_FACTOR;
|
|
172
|
+
};
|
|
173
|
+
var normalizeSeriesNumber = function (value) {
|
|
174
|
+
if (!Number.isFinite(value)) {
|
|
175
|
+
return value;
|
|
176
|
+
}
|
|
177
|
+
var tolerance = getFloatTolerance(value);
|
|
178
|
+
var nearestInteger = Math.round(value);
|
|
179
|
+
if (Math.abs(value - nearestInteger) <= tolerance) {
|
|
180
|
+
return nearestInteger;
|
|
181
|
+
}
|
|
182
|
+
for (var decimals = 0; decimals <= FLOAT_ROUNDING_DECIMALS; decimals += 1) {
|
|
183
|
+
var rounded = Number(value.toFixed(decimals));
|
|
184
|
+
if (Math.abs(value - rounded) <= tolerance) {
|
|
185
|
+
return rounded;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return Number(value.toPrecision(15));
|
|
189
|
+
};
|
|
190
|
+
var isNearlyInteger = function (value) {
|
|
191
|
+
if (!Number.isFinite(value)) {
|
|
192
|
+
return false;
|
|
193
|
+
}
|
|
194
|
+
return Math.abs(value - Math.round(value)) <= getFloatTolerance(value);
|
|
195
|
+
};
|
|
196
|
+
var isSimpleIntegerSeriesNumberPattern = function (pattern) {
|
|
197
|
+
var normalizedPattern = pattern === null || pattern === void 0 ? void 0 : pattern.trim();
|
|
198
|
+
return Boolean(normalizedPattern &&
|
|
199
|
+
SIMPLE_INTEGER_SERIES_NUMBER_PATTERN_REGEX.test(normalizedPattern));
|
|
200
|
+
};
|
|
201
|
+
var isSimpleDecimalSeriesNumberPattern = function (pattern) {
|
|
202
|
+
var _a;
|
|
203
|
+
var normalizedPattern = (_a = pattern === null || pattern === void 0 ? void 0 : pattern.trim()) !== null && _a !== void 0 ? _a : "General";
|
|
204
|
+
return SIMPLE_DECIMAL_SERIES_NUMBER_PATTERN_REGEX.test(normalizedPattern);
|
|
205
|
+
};
|
|
206
|
+
var shouldNormalizeSeriesNumberFormat = function (fillType, numberFormat, value) {
|
|
207
|
+
if (fillType !== "FillSeries") {
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
if (!numberFormat || numberFormat.type !== "NUMBER") {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
var pattern = numberFormat.pattern;
|
|
217
|
+
if (isSimpleIntegerSeriesNumberPattern(pattern) && !isNearlyInteger(value)) {
|
|
218
|
+
return true;
|
|
219
|
+
}
|
|
220
|
+
if (isSimpleDecimalSeriesNumberPattern(pattern) && isNearlyInteger(value)) {
|
|
221
|
+
return true;
|
|
222
|
+
}
|
|
223
|
+
return false;
|
|
224
|
+
};
|
|
225
|
+
var getCellNumberFormat = function (sheetCell) {
|
|
226
|
+
var effectiveNumberFormat = sheetCell.getNumberFormat();
|
|
227
|
+
if (effectiveNumberFormat) {
|
|
228
|
+
return effectiveNumberFormat;
|
|
229
|
+
}
|
|
230
|
+
var userEnteredFormat = sheetCell.getUserEnteredFormat();
|
|
231
|
+
if (userEnteredFormat &&
|
|
232
|
+
typeof userEnteredFormat === "object" &&
|
|
233
|
+
"numberFormat" in userEnteredFormat) {
|
|
234
|
+
return userEnteredFormat.numberFormat;
|
|
235
|
+
}
|
|
236
|
+
return undefined;
|
|
237
|
+
};
|
|
238
|
+
var shouldNormalizeSeriesNumberFormatForCell = function (sheetCell, fillType, value) {
|
|
239
|
+
var numberFormat = getCellNumberFormat(sheetCell);
|
|
240
|
+
return shouldNormalizeSeriesNumberFormat(fillType, numberFormat, value);
|
|
241
|
+
};
|
|
242
|
+
var clearCellNumberFormatForSeries = function (sheetCell) {
|
|
243
|
+
if (sheetCell.userEnteredFormat) {
|
|
244
|
+
if (!Object.isExtensible(sheetCell.userEnteredFormat)) {
|
|
245
|
+
sheetCell.userEnteredFormat = __assign({}, sheetCell.userEnteredFormat);
|
|
246
|
+
}
|
|
247
|
+
delete sheetCell.userEnteredFormat.numberFormat;
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Detect the fill type based on selection data
|
|
252
|
+
*/
|
|
253
|
+
export var detectFillType = function (selectionData, locale, customAutofillLists) {
|
|
254
|
+
var _a;
|
|
255
|
+
if (locale === void 0) { locale = "en"; }
|
|
256
|
+
if (!selectionData.length || !((_a = selectionData[0]) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
257
|
+
return "FillCopy";
|
|
258
|
+
}
|
|
259
|
+
// Flatten the selection to analyze patterns
|
|
260
|
+
var values = selectionData.flat().filter(function (v) { return v != null; });
|
|
261
|
+
if (values.length === 0)
|
|
262
|
+
return "FillCopy";
|
|
263
|
+
// Custom autofill lists take precedence over the built-in heuristics
|
|
264
|
+
// (matches Excel — a user-defined list like ["Q1","Q2","Q3","Q4"]
|
|
265
|
+
// wins over "FillSeries" or "FillDefault" interpretations).
|
|
266
|
+
if (matchCustomList(values, customAutofillLists)) {
|
|
267
|
+
return "FillCustomList";
|
|
268
|
+
}
|
|
269
|
+
// Helper to check for day/month names
|
|
270
|
+
var dayNames = getDayNames(locale);
|
|
271
|
+
var monthNames = getMonthNames(locale);
|
|
272
|
+
if (values.length === 1) {
|
|
273
|
+
var singleValue = values[0];
|
|
274
|
+
if (singleValue instanceof Date) {
|
|
275
|
+
return "FillDays";
|
|
276
|
+
}
|
|
277
|
+
// Single numbers → FillCopy (Excel standard: need 2+ cells for series)
|
|
278
|
+
if (typeof singleValue === "number") {
|
|
279
|
+
return "FillCopy";
|
|
280
|
+
}
|
|
281
|
+
if (typeof singleValue === "string") {
|
|
282
|
+
// Single number strings → FillCopy (Excel standard)
|
|
283
|
+
var extractedNum = extractNumber(singleValue);
|
|
284
|
+
if (extractedNum !== null &&
|
|
285
|
+
singleValue.trim() === String(extractedNum)) {
|
|
286
|
+
return "FillCopy";
|
|
287
|
+
}
|
|
288
|
+
// Single text with number (e.g. "hello 1") should continue the numeric suffix.
|
|
289
|
+
if (extractTextNumberPattern(singleValue) &&
|
|
290
|
+
!isLikelyDateString(singleValue)) {
|
|
291
|
+
return "FillSeries";
|
|
292
|
+
}
|
|
293
|
+
// Check for day name
|
|
294
|
+
var lowerValue_1 = singleValue.toLowerCase();
|
|
295
|
+
if (lowerValue_1.length >= 3 &&
|
|
296
|
+
dayNames.some(function (day) {
|
|
297
|
+
return day.toLowerCase().startsWith(lowerValue_1) ||
|
|
298
|
+
lowerValue_1.startsWith(day.toLowerCase().substring(0, 3));
|
|
299
|
+
})) {
|
|
300
|
+
return "FillDays";
|
|
301
|
+
}
|
|
302
|
+
// Check for month name
|
|
303
|
+
if (lowerValue_1.length >= 3 &&
|
|
304
|
+
monthNames.some(function (month) {
|
|
305
|
+
return month.toLowerCase().startsWith(lowerValue_1) ||
|
|
306
|
+
lowerValue_1.startsWith(month.toLowerCase().substring(0, 3));
|
|
307
|
+
})) {
|
|
308
|
+
return "FillMonths";
|
|
309
|
+
}
|
|
310
|
+
var singleDate = parseDate(singleValue);
|
|
311
|
+
if (singleDate) {
|
|
312
|
+
return "FillDays";
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return "FillCopy";
|
|
316
|
+
}
|
|
317
|
+
// Check for dates first (before numeric series to avoid Date objects being treated as numbers)
|
|
318
|
+
var dates = values
|
|
319
|
+
.map(function (v) { return parseDate(v); })
|
|
320
|
+
.filter(function (d) { return d !== null; });
|
|
321
|
+
// Debug logging removed
|
|
322
|
+
if (dates.length >= 2) {
|
|
323
|
+
var firstDate = dates[0];
|
|
324
|
+
var secondDate = dates[1];
|
|
325
|
+
var timeDiff = secondDate.getTime() - firstDate.getTime();
|
|
326
|
+
var dayDiff = timeDiff / (1000 * 60 * 60 * 24);
|
|
327
|
+
if (Math.abs(dayDiff - 1) < 0.1)
|
|
328
|
+
return "FillDays";
|
|
329
|
+
if (Math.abs(dayDiff - 7) < 0.1)
|
|
330
|
+
return "FillWeekdays";
|
|
331
|
+
var sameDayOfMonth = firstDate.getDate() === secondDate.getDate();
|
|
332
|
+
var sameMonth = firstDate.getMonth() === secondDate.getMonth();
|
|
333
|
+
var monthDiff = (secondDate.getFullYear() - firstDate.getFullYear()) * 12 +
|
|
334
|
+
(secondDate.getMonth() - firstDate.getMonth());
|
|
335
|
+
if (sameDayOfMonth && monthDiff === 1)
|
|
336
|
+
return "FillMonths";
|
|
337
|
+
if (sameDayOfMonth &&
|
|
338
|
+
sameMonth &&
|
|
339
|
+
secondDate.getFullYear() - firstDate.getFullYear() === 1)
|
|
340
|
+
return "FillYears";
|
|
341
|
+
return "FillDays";
|
|
342
|
+
}
|
|
343
|
+
// Check for numeric series (after dates to avoid Date objects being treated as timestamps)
|
|
344
|
+
var nonDateValues = values.filter(function (v) { return !(v instanceof Date); });
|
|
345
|
+
var numbers = nonDateValues
|
|
346
|
+
.map(function (v) { return (typeof v === "number" ? v : extractNumber(String(v))); })
|
|
347
|
+
.filter(function (n) { return n !== null; });
|
|
348
|
+
// Debug logging removed
|
|
349
|
+
// Only consider it a series if ALL non-Date values can be converted to numbers
|
|
350
|
+
if (numbers.length >= 2 && numbers.length === nonDateValues.length) {
|
|
351
|
+
var diff_1 = numbers[1] - numbers[0];
|
|
352
|
+
var isLinearSeries = numbers.every(function (num, i) { return i === 0 || Math.abs(num - numbers[i - 1] - diff_1) < 0.0001; });
|
|
353
|
+
// Debug logging removed
|
|
354
|
+
if (isLinearSeries && diff_1 !== 0) {
|
|
355
|
+
return "FillSeries";
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
// Check for text patterns (days/months)
|
|
359
|
+
var textValues = values.map(function (v) { return String(v).toLowerCase(); });
|
|
360
|
+
// Debug logging removed
|
|
361
|
+
if (textValues.some(function (v) {
|
|
362
|
+
return v.length >= 3 &&
|
|
363
|
+
dayNames.some(function (day) {
|
|
364
|
+
return day.toLowerCase().includes(v) || v.includes(day.toLowerCase());
|
|
365
|
+
});
|
|
366
|
+
})) {
|
|
367
|
+
return "FillDays";
|
|
368
|
+
}
|
|
369
|
+
if (textValues.some(function (v) {
|
|
370
|
+
return v.length >= 3 &&
|
|
371
|
+
monthNames.some(function (month) {
|
|
372
|
+
return month.toLowerCase().includes(v) || v.includes(month.toLowerCase());
|
|
373
|
+
});
|
|
374
|
+
})) {
|
|
375
|
+
return "FillMonths";
|
|
376
|
+
}
|
|
377
|
+
return "FillDefault";
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Generate fill values based on type and pattern
|
|
381
|
+
*/
|
|
382
|
+
export var generateFillValues = function (sourceValues, fillType, count, locale, customAutofillLists) {
|
|
383
|
+
var result = [];
|
|
384
|
+
switch (fillType) {
|
|
385
|
+
case "FillCustomList": {
|
|
386
|
+
var match = matchCustomList(sourceValues, customAutofillLists);
|
|
387
|
+
if (!match) {
|
|
388
|
+
// Fell out of sync (e.g. caller passed FillCustomList but the
|
|
389
|
+
// values don't match a list anymore). Degrade to copy.
|
|
390
|
+
for (var i = 0; i < count; i++) {
|
|
391
|
+
result.push(sourceValues[i % sourceValues.length]);
|
|
392
|
+
}
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
var list = match.list, startIndex = match.startIndex, ascending = match.ascending;
|
|
396
|
+
var len = list.length;
|
|
397
|
+
// Continue from where the source slice ended.
|
|
398
|
+
var nextOffset = ascending
|
|
399
|
+
? startIndex + sourceValues.length
|
|
400
|
+
: startIndex - sourceValues.length;
|
|
401
|
+
for (var i = 0; i < count; i++) {
|
|
402
|
+
var step = ascending ? i : -i;
|
|
403
|
+
var idx = (((nextOffset + step) % len) + len) % len;
|
|
404
|
+
result.push(list[idx]);
|
|
405
|
+
}
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
case "FillCopy": {
|
|
409
|
+
for (var i = 0; i < count; i++) {
|
|
410
|
+
result.push(sourceValues[i % sourceValues.length]);
|
|
411
|
+
}
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
case "FillSeries": {
|
|
415
|
+
var textPatterns = sourceValues
|
|
416
|
+
.map(function (value) {
|
|
417
|
+
return typeof value === "string" ? extractTextNumberPattern(value) : null;
|
|
418
|
+
})
|
|
419
|
+
.filter(function (pattern) { return pattern !== null; });
|
|
420
|
+
if (textPatterns.length === sourceValues.length &&
|
|
421
|
+
textPatterns.length > 0) {
|
|
422
|
+
var _a = __read(textPatterns), firstPattern_1 = _a[0], restPatterns = _a.slice(1);
|
|
423
|
+
var hasConsistentAffixes = restPatterns.every(function (_a) {
|
|
424
|
+
var prefix = _a.prefix, suffix = _a.suffix;
|
|
425
|
+
return prefix === firstPattern_1.prefix && suffix === firstPattern_1.suffix;
|
|
426
|
+
});
|
|
427
|
+
if (hasConsistentAffixes) {
|
|
428
|
+
var numbers_1 = textPatterns.map(function (pattern) { return pattern.number; });
|
|
429
|
+
var diff = numbers_1.length >= 2
|
|
430
|
+
? normalizeSeriesNumber(numbers_1[1] - numbers_1[0])
|
|
431
|
+
: 1;
|
|
432
|
+
var lastValue = normalizeSeriesNumber(numbers_1[numbers_1.length - 1]);
|
|
433
|
+
for (var i = 0; i < count; i++) {
|
|
434
|
+
var nextNumber = normalizeSeriesNumber(lastValue + diff * (i + 1));
|
|
435
|
+
result.push("".concat(firstPattern_1.prefix).concat(String(nextNumber)).concat(firstPattern_1.suffix));
|
|
436
|
+
}
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
var numbers = sourceValues
|
|
441
|
+
.map(function (v) { return (typeof v === "number" ? v : extractNumber(String(v))); })
|
|
442
|
+
.filter(function (n) { return n !== null; });
|
|
443
|
+
if (numbers.length >= 1) {
|
|
444
|
+
// Default increment is 1 for single values, or calculated diff for 2+ values
|
|
445
|
+
var diff = numbers.length >= 2
|
|
446
|
+
? normalizeSeriesNumber(numbers[1] - numbers[0])
|
|
447
|
+
: 1;
|
|
448
|
+
var lastValue = normalizeSeriesNumber(numbers[numbers.length - 1]);
|
|
449
|
+
for (var i = 0; i < count; i++) {
|
|
450
|
+
result.push(normalizeSeriesNumber(lastValue + diff * (i + 1)));
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
result.push.apply(result, __spreadArray([], __read(Array(count).fill(sourceValues[sourceValues.length - 1])), false));
|
|
455
|
+
}
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
case "FillDays": {
|
|
459
|
+
var parsedDates = sourceValues
|
|
460
|
+
.map(function (value) { return parseDate(value); })
|
|
461
|
+
.filter(function (date) { return date !== null; });
|
|
462
|
+
if (parsedDates.length) {
|
|
463
|
+
var lastDate = parsedDates[parsedDates.length - 1];
|
|
464
|
+
var previousDate = parsedDates.length >= 2 ? parsedDates[parsedDates.length - 2] : null;
|
|
465
|
+
var dayMs = 1000 * 60 * 60 * 24;
|
|
466
|
+
var dayIncrement = 1;
|
|
467
|
+
if (previousDate) {
|
|
468
|
+
var diff = Math.round((lastDate.getTime() - previousDate.getTime()) / dayMs);
|
|
469
|
+
if (diff !== 0) {
|
|
470
|
+
dayIncrement = diff;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
var currentDate = new Date(lastDate);
|
|
474
|
+
for (var i = 0; i < count; i++) {
|
|
475
|
+
currentDate.setDate(currentDate.getDate() + dayIncrement);
|
|
476
|
+
result.push(currentDate.toLocaleDateString(locale));
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
var lastDayValue = sourceValues[sourceValues.length - 1];
|
|
481
|
+
if (typeof lastDayValue === "string") {
|
|
482
|
+
// Handle day names (like "Mon", "Tue", "Wed")
|
|
483
|
+
var allDayNames = getDayNames(locale);
|
|
484
|
+
var allDayAbbrevs = allDayNames.map(function (d) { return d.substring(0, 3); });
|
|
485
|
+
// Find which day we're at
|
|
486
|
+
var lastDayLower_1 = lastDayValue.toLowerCase();
|
|
487
|
+
var dayIndex = allDayNames.findIndex(function (d) {
|
|
488
|
+
return d.toLowerCase().includes(lastDayLower_1) ||
|
|
489
|
+
lastDayLower_1.includes(d.toLowerCase());
|
|
490
|
+
});
|
|
491
|
+
if (dayIndex !== -1) {
|
|
492
|
+
// Determine if we're using full names or abbreviations
|
|
493
|
+
var isAbbreviated = lastDayValue.length <= 3;
|
|
494
|
+
for (var i = 0; i < count; i++) {
|
|
495
|
+
var nextDayIndex = (dayIndex + i + 1) % 7;
|
|
496
|
+
var dayName = isAbbreviated
|
|
497
|
+
? allDayAbbrevs[nextDayIndex]
|
|
498
|
+
: allDayNames[nextDayIndex];
|
|
499
|
+
result.push(dayName);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
case "FillWeekdays": {
|
|
507
|
+
var lastWeekday = parseDate(sourceValues[sourceValues.length - 1]);
|
|
508
|
+
if (lastWeekday) {
|
|
509
|
+
var currentDate = new Date(lastWeekday);
|
|
510
|
+
for (var i = 0; i < count; i++) {
|
|
511
|
+
do {
|
|
512
|
+
currentDate.setDate(currentDate.getDate() + 1);
|
|
513
|
+
} while (currentDate.getDay() === 0 || currentDate.getDay() === 6); // Skip weekends
|
|
514
|
+
result.push(new Date(currentDate).toLocaleDateString(locale));
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
case "FillMonths": {
|
|
520
|
+
// Check if we're dealing with month names (text) or actual dates
|
|
521
|
+
var lastValue = sourceValues[sourceValues.length - 1];
|
|
522
|
+
var lastMonth = parseDate(lastValue);
|
|
523
|
+
if (lastMonth) {
|
|
524
|
+
// Handle actual dates
|
|
525
|
+
for (var i = 0; i < count; i++) {
|
|
526
|
+
var newDate = new Date(lastMonth);
|
|
527
|
+
newDate.setMonth(lastMonth.getMonth() + i + 1);
|
|
528
|
+
result.push(newDate.toLocaleDateString(locale));
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
else if (typeof lastValue === "string") {
|
|
532
|
+
// Handle month names (like "Jan", "Feb", "Mar")
|
|
533
|
+
var allMonthNames = getMonthNames(locale);
|
|
534
|
+
var allMonthAbbrevs = allMonthNames.map(function (m) { return m.substring(0, 3); });
|
|
535
|
+
// Find which month we're at
|
|
536
|
+
var lastValueLower_1 = lastValue.toLowerCase();
|
|
537
|
+
var monthIndex = allMonthNames.findIndex(function (m) {
|
|
538
|
+
return m.toLowerCase().includes(lastValueLower_1) ||
|
|
539
|
+
lastValueLower_1.includes(m.toLowerCase());
|
|
540
|
+
});
|
|
541
|
+
if (monthIndex !== -1) {
|
|
542
|
+
// Determine if we're using full names or abbreviations
|
|
543
|
+
var isAbbreviated = lastValue.length <= 3;
|
|
544
|
+
for (var i = 0; i < count; i++) {
|
|
545
|
+
var nextMonthIndex = (monthIndex + i + 1) % 12;
|
|
546
|
+
var monthName = isAbbreviated
|
|
547
|
+
? allMonthAbbrevs[nextMonthIndex]
|
|
548
|
+
: allMonthNames[nextMonthIndex];
|
|
549
|
+
result.push(monthName);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
case "FillYears": {
|
|
556
|
+
var lastYear = parseDate(sourceValues[sourceValues.length - 1]);
|
|
557
|
+
if (lastYear) {
|
|
558
|
+
for (var i = 0; i < count; i++) {
|
|
559
|
+
var newDate = new Date(lastYear);
|
|
560
|
+
newDate.setFullYear(lastYear.getFullYear() + i + 1);
|
|
561
|
+
result.push(newDate.toLocaleDateString(locale));
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
case "LinearTrend": {
|
|
567
|
+
var numValues = sourceValues
|
|
568
|
+
.map(function (v) { return (typeof v === "number" ? v : parseFloat(String(v))); })
|
|
569
|
+
.filter(function (n) { return !isNaN(n); });
|
|
570
|
+
if (numValues.length >= 2) {
|
|
571
|
+
// Simple linear regression
|
|
572
|
+
var n = numValues.length;
|
|
573
|
+
var sumX = numValues.reduce(function (sum, _, i) { return sum + i; }, 0);
|
|
574
|
+
var sumY = numValues.reduce(function (sum, val) { return sum + val; }, 0);
|
|
575
|
+
var sumXY = numValues.reduce(function (sum, val, i) { return sum + i * val; }, 0);
|
|
576
|
+
var sumXX = numValues.reduce(function (sum, _, i) { return sum + i * i; }, 0);
|
|
577
|
+
var slope = (n * sumXY - sumX * sumY) / (n * sumXX - sumX * sumX);
|
|
578
|
+
var intercept = (sumY - slope * sumX) / n;
|
|
579
|
+
for (var i = 0; i < count; i++) {
|
|
580
|
+
var x = numValues.length + i;
|
|
581
|
+
result.push(slope * x + intercept);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
break;
|
|
585
|
+
}
|
|
586
|
+
case "GrowthTrend": {
|
|
587
|
+
var growthValues = sourceValues
|
|
588
|
+
.map(function (v) { return (typeof v === "number" ? v : parseFloat(String(v))); })
|
|
589
|
+
.filter(function (n) { return !isNaN(n) && n > 0; });
|
|
590
|
+
if (growthValues.length >= 2) {
|
|
591
|
+
// Calculate growth rate
|
|
592
|
+
var ratios = [];
|
|
593
|
+
for (var i = 1; i < growthValues.length; i++) {
|
|
594
|
+
ratios.push(growthValues[i] / growthValues[i - 1]);
|
|
595
|
+
}
|
|
596
|
+
var avgRatio = ratios.reduce(function (sum, ratio) { return sum + ratio; }, 0) / ratios.length;
|
|
597
|
+
var lastValue = growthValues[growthValues.length - 1];
|
|
598
|
+
for (var i = 0; i < count; i++) {
|
|
599
|
+
lastValue *= avgRatio;
|
|
600
|
+
result.push(lastValue);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
break;
|
|
604
|
+
}
|
|
605
|
+
case "FillValues": {
|
|
606
|
+
// Similar to FillSeries but preserves text formatting
|
|
607
|
+
for (var i = 0; i < count; i++) {
|
|
608
|
+
var sourceIndex = i % sourceValues.length;
|
|
609
|
+
var value = sourceValues[sourceIndex];
|
|
610
|
+
if (typeof value === "string") {
|
|
611
|
+
var num = extractNumber(value);
|
|
612
|
+
if (num !== null && sourceValues.length >= 2) {
|
|
613
|
+
var nextNum = extractNumber(String(sourceValues[(sourceIndex + 1) % sourceValues.length]));
|
|
614
|
+
if (nextNum !== null) {
|
|
615
|
+
var diff = nextNum - num;
|
|
616
|
+
var cycles = Math.floor(i / sourceValues.length);
|
|
617
|
+
var newNum = num + diff * (cycles + 1);
|
|
618
|
+
value = value.replace(String(num), String(newNum));
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
result.push(value);
|
|
623
|
+
}
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
case "FillFormats": {
|
|
627
|
+
// Only copy formatting, not values - this would need format information
|
|
628
|
+
result.push.apply(result, __spreadArray([], __read(Array(count).fill("")), false));
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
631
|
+
case "FlashFill": {
|
|
632
|
+
// Advanced pattern recognition - simplified implementation
|
|
633
|
+
result.push.apply(result, __spreadArray([], __read(Array(count).fill(sourceValues[sourceValues.length - 1])), false));
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
636
|
+
default:
|
|
637
|
+
// FillDefault - intelligent copy
|
|
638
|
+
for (var i = 0; i < count; i++) {
|
|
639
|
+
result.push(sourceValues[i % sourceValues.length]);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
return result;
|
|
643
|
+
};
|
|
644
|
+
/**
|
|
645
|
+
* Get auto fill values
|
|
646
|
+
* @returns T[][]
|
|
647
|
+
*/
|
|
648
|
+
export var getAutoFillValues = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
649
|
+
var sheetCell, activeSheetName, textCell, getTextInfo, buildTextCell, getFillSourceValue, selectionData, rowIndex, rowData, columnIndex, cellData, selectionRows, selectionCols, fillValues, fillCount, columnIndex, sourceValues, sourceCells, rowIndex, cellValue, textInfo, columnData, actualFillType, newValues, i, targetRowIndex, targetColumnIndex, sourceRowIndex, sourceCellData, shouldNormalizeSeriesNumberFormat_1, fillCount, columnIndex, sourceValues, sourceCells, rowIndex, cellValue, textInfo, columnData, actualFillType, newValues, i, targetRowIndex, targetColumnIndex, sourceRowIndex, sourceCellData, shouldNormalizeSeriesNumberFormat_2, fillCount, rowIndex, sourceValues, sourceCells, textSourceCellData, columnIndex, cellValue, textInfo, rowData, actualFillType, newValues, targetRowIndex, i, targetColumnIndex, sourceColumnIndex, sourceCellData, shouldNormalizeSeriesNumberFormat_3, fillCount, rowIndex, sourceValues, sourceCells, textSourceCellData, columnIndex, cellValue, textInfo, rowData, actualFillType, newValues, targetRowIndex, i, targetColumnIndex, sourceColumnIndex, sourceCellData, shouldNormalizeSeriesNumberFormat_4;
|
|
650
|
+
var _c, _d, _e, _f;
|
|
651
|
+
var sheetId = _b.sheetId, direction = _b.direction, selection = _b.selection, fillBounds = _b.fillBounds, getCellData = _b.getCellData, getEffectiveValue = _b.getEffectiveValue, getFormattedValue = _b.getFormattedValue, getSheetName = _b.getSheetName, getDataValidationById = _b.getDataValidationById, cellXfsRegistry = _b.cellXfsRegistry, locale = _b.locale, fillType = _b.fillType, customAutofillLists = _b.customAutofillLists;
|
|
652
|
+
return __generator(this, function (_g) {
|
|
653
|
+
sheetCell = new SheetCell();
|
|
654
|
+
activeSheetName = getSheetName(sheetId);
|
|
655
|
+
textCell = new SheetCell();
|
|
656
|
+
getTextInfo = function (cells) {
|
|
657
|
+
var e_2, _a;
|
|
658
|
+
var _b, _c, _d, _e, _f;
|
|
659
|
+
try {
|
|
660
|
+
for (var cells_1 = __values(cells), cells_1_1 = cells_1.next(); !cells_1_1.done; cells_1_1 = cells_1.next()) {
|
|
661
|
+
var _g = cells_1_1.value, rowIndex = _g.rowIndex, columnIndex = _g.columnIndex;
|
|
662
|
+
var cellData = getCellData(sheetId, rowIndex, columnIndex);
|
|
663
|
+
textCell.assign(sheetId, { rowIndex: rowIndex, columnIndex: columnIndex }, cellData, {
|
|
664
|
+
locale: locale,
|
|
665
|
+
cellXfsRegistry: cellXfsRegistry,
|
|
666
|
+
getDataValidationById: getDataValidationById,
|
|
667
|
+
});
|
|
668
|
+
if (((_b = textCell.getNumberFormat()) === null || _b === void 0 ? void 0 : _b.type) === "TEXT") {
|
|
669
|
+
var fallback = getFillSourceValue(sheetId, rowIndex, columnIndex);
|
|
670
|
+
return {
|
|
671
|
+
isText: true,
|
|
672
|
+
textValue: (_d = (_c = textCell.getUserEnteredValue()) !== null && _c !== void 0 ? _c : textCell.getEffectiveValue()) !== null && _d !== void 0 ? _d : String(fallback !== null && fallback !== void 0 ? fallback : ""),
|
|
673
|
+
pattern: (_f = (_e = textCell.getNumberFormat()) === null || _e === void 0 ? void 0 : _e.pattern) !== null && _f !== void 0 ? _f : "General",
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
679
|
+
finally {
|
|
680
|
+
try {
|
|
681
|
+
if (cells_1_1 && !cells_1_1.done && (_a = cells_1.return)) _a.call(cells_1);
|
|
682
|
+
}
|
|
683
|
+
finally { if (e_2) throw e_2.error; }
|
|
684
|
+
}
|
|
685
|
+
return { isText: false, textValue: "", pattern: "General" };
|
|
686
|
+
};
|
|
687
|
+
buildTextCell = function (sourceCellData, value, pattern) {
|
|
688
|
+
var newCell = new SheetCell();
|
|
689
|
+
newCell.assign(sheetId, { rowIndex: selection.range.startRowIndex, columnIndex: 0 }, sourceCellData, { locale: locale, cellXfsRegistry: cellXfsRegistry, getDataValidationById: getDataValidationById });
|
|
690
|
+
newCell.setUserEnteredFormat("numberFormat", {
|
|
691
|
+
type: "TEXT",
|
|
692
|
+
pattern: pattern,
|
|
693
|
+
});
|
|
694
|
+
newCell.setUserEnteredValue(value);
|
|
695
|
+
return newCell.getCellData();
|
|
696
|
+
};
|
|
697
|
+
getFillSourceValue = function (sheetId, rowIndex, columnIndex) {
|
|
698
|
+
var _a;
|
|
699
|
+
var cellData = getCellData(sheetId, rowIndex, columnIndex);
|
|
700
|
+
sheetCell.assign(sheetId, { rowIndex: rowIndex, columnIndex: columnIndex }, cellData, {
|
|
701
|
+
locale: locale,
|
|
702
|
+
cellXfsRegistry: cellXfsRegistry,
|
|
703
|
+
getDataValidationById: getDataValidationById,
|
|
704
|
+
});
|
|
705
|
+
var numFmtType = (_a = sheetCell.getNumberFormat()) === null || _a === void 0 ? void 0 : _a.type;
|
|
706
|
+
var isDateTime = numFmtType === "DATE" || numFmtType === "DATE_TIME";
|
|
707
|
+
var isText = numFmtType === "TEXT";
|
|
708
|
+
if (isDateTime) {
|
|
709
|
+
var effectiveValue = getEffectiveValue === null || getEffectiveValue === void 0 ? void 0 : getEffectiveValue(sheetId, rowIndex, columnIndex);
|
|
710
|
+
if (typeof effectiveValue === "number") {
|
|
711
|
+
return toDate(effectiveValue, sheetCell.use1904);
|
|
712
|
+
}
|
|
713
|
+
return getFormattedValue === null || getFormattedValue === void 0 ? void 0 : getFormattedValue(sheetId, rowIndex, columnIndex);
|
|
714
|
+
}
|
|
715
|
+
var cellValue = isText
|
|
716
|
+
? sheetCell.getUserEnteredValue()
|
|
717
|
+
: getEffectiveValue === null || getEffectiveValue === void 0 ? void 0 : getEffectiveValue(sheetId, rowIndex, columnIndex);
|
|
718
|
+
return cellValue;
|
|
719
|
+
};
|
|
720
|
+
selectionData = [];
|
|
721
|
+
for (rowIndex = selection.range.startRowIndex; rowIndex <= selection.range.endRowIndex; rowIndex++) {
|
|
722
|
+
rowData = [];
|
|
723
|
+
for (columnIndex = selection.range.startColumnIndex; columnIndex <= selection.range.endColumnIndex; columnIndex++) {
|
|
724
|
+
cellData = getFillSourceValue(sheetId, rowIndex, columnIndex);
|
|
725
|
+
rowData.push(cellData || null);
|
|
726
|
+
}
|
|
727
|
+
selectionData.push(rowData);
|
|
728
|
+
}
|
|
729
|
+
selectionRows = selection.range.endRowIndex - selection.range.startRowIndex + 1;
|
|
730
|
+
selectionCols = selection.range.endColumnIndex - selection.range.startColumnIndex + 1;
|
|
731
|
+
fillValues = [];
|
|
732
|
+
switch (direction) {
|
|
733
|
+
case Direction.Down: {
|
|
734
|
+
fillCount = fillBounds.endRowIndex - selection.range.endRowIndex;
|
|
735
|
+
for (columnIndex = selection.range.startColumnIndex; columnIndex <= selection.range.endColumnIndex; columnIndex++) {
|
|
736
|
+
sourceValues = [];
|
|
737
|
+
sourceCells = [];
|
|
738
|
+
for (rowIndex = selection.range.startRowIndex; rowIndex <= selection.range.endRowIndex; rowIndex++) {
|
|
739
|
+
cellValue = getFillSourceValue(sheetId, rowIndex, columnIndex);
|
|
740
|
+
sourceValues.push(cellValue);
|
|
741
|
+
sourceCells.push({ rowIndex: rowIndex, columnIndex: columnIndex });
|
|
742
|
+
}
|
|
743
|
+
textInfo = getTextInfo(sourceCells);
|
|
744
|
+
columnData = [sourceValues];
|
|
745
|
+
actualFillType = fillType || detectFillType(columnData, locale, customAutofillLists);
|
|
746
|
+
newValues = textInfo.isText
|
|
747
|
+
? Array(fillCount).fill(textInfo.textValue)
|
|
748
|
+
: generateFillValues(sourceValues, actualFillType, fillCount, locale, customAutofillLists);
|
|
749
|
+
// Fallback to FillDefault if no values were generated
|
|
750
|
+
if (newValues.length === 0 && actualFillType !== "FillDefault") {
|
|
751
|
+
newValues = generateFillValues(sourceValues, "FillDefault", fillCount, locale);
|
|
752
|
+
}
|
|
753
|
+
// Apply the values
|
|
754
|
+
for (i = 0; i < fillCount; i++) {
|
|
755
|
+
targetRowIndex = selection.range.endRowIndex + 1 + i;
|
|
756
|
+
targetColumnIndex = columnIndex;
|
|
757
|
+
if (!fillValues[i])
|
|
758
|
+
fillValues[i] = [];
|
|
759
|
+
if (actualFillType === "FillFormats") {
|
|
760
|
+
// Copy format but not value
|
|
761
|
+
fillValues[i][targetColumnIndex - fillBounds.startColumnIndex] =
|
|
762
|
+
"";
|
|
763
|
+
}
|
|
764
|
+
else {
|
|
765
|
+
sourceRowIndex = selection.range.startRowIndex + (i % selectionRows);
|
|
766
|
+
sourceCellData = getCellData === null || getCellData === void 0 ? void 0 : getCellData(sheetId, sourceRowIndex, columnIndex);
|
|
767
|
+
sheetCell.assign(sheetId, { rowIndex: sourceRowIndex, columnIndex: columnIndex }, sourceCellData, { locale: locale, cellXfsRegistry: cellXfsRegistry, getDataValidationById: getDataValidationById });
|
|
768
|
+
if (sheetCell.isFormula()) {
|
|
769
|
+
sheetCell.moveFormula({ rowIndex: sourceRowIndex, columnIndex: columnIndex }, { rowIndex: targetRowIndex, columnIndex: targetColumnIndex }, activeSheetName, { preserveAbsolutes: true });
|
|
770
|
+
// Remove effective value for formulas
|
|
771
|
+
sheetCell.clearEffectiveValueForFormula();
|
|
772
|
+
}
|
|
773
|
+
else if (textInfo.isText) {
|
|
774
|
+
fillValues[i][targetColumnIndex - fillBounds.startColumnIndex] =
|
|
775
|
+
buildTextCell(sourceCellData, String((_c = newValues[i]) !== null && _c !== void 0 ? _c : ""), textInfo.pattern);
|
|
776
|
+
continue;
|
|
777
|
+
}
|
|
778
|
+
else {
|
|
779
|
+
shouldNormalizeSeriesNumberFormat_1 = shouldNormalizeSeriesNumberFormatForCell(sheetCell, actualFillType, newValues[i]);
|
|
780
|
+
if (shouldNormalizeSeriesNumberFormat_1) {
|
|
781
|
+
clearCellNumberFormatForSeries(sheetCell);
|
|
782
|
+
}
|
|
783
|
+
sheetCell.setUserEnteredValue(newValues[i]);
|
|
784
|
+
}
|
|
785
|
+
fillValues[i][targetColumnIndex - fillBounds.startColumnIndex] =
|
|
786
|
+
sheetCell.getCellData();
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
case Direction.Up: {
|
|
793
|
+
fillCount = selection.range.startRowIndex - fillBounds.startRowIndex;
|
|
794
|
+
for (columnIndex = selection.range.startColumnIndex; columnIndex <= selection.range.endColumnIndex; columnIndex++) {
|
|
795
|
+
sourceValues = [];
|
|
796
|
+
sourceCells = [];
|
|
797
|
+
for (rowIndex = selection.range.endRowIndex; rowIndex >= selection.range.startRowIndex; rowIndex--) {
|
|
798
|
+
cellValue = getFillSourceValue(sheetId, rowIndex, columnIndex);
|
|
799
|
+
sourceValues.push(cellValue);
|
|
800
|
+
sourceCells.push({ rowIndex: rowIndex, columnIndex: columnIndex });
|
|
801
|
+
}
|
|
802
|
+
textInfo = getTextInfo(sourceCells);
|
|
803
|
+
columnData = [sourceValues];
|
|
804
|
+
actualFillType = fillType || detectFillType(columnData, locale, customAutofillLists);
|
|
805
|
+
newValues = textInfo.isText
|
|
806
|
+
? Array(fillCount).fill(textInfo.textValue)
|
|
807
|
+
: generateFillValues(sourceValues, actualFillType, fillCount, locale, customAutofillLists);
|
|
808
|
+
// Fallback to FillDefault if no values were generated
|
|
809
|
+
if (newValues.length === 0 && actualFillType !== "FillDefault") {
|
|
810
|
+
newValues = generateFillValues(sourceValues, "FillDefault", fillCount, locale);
|
|
811
|
+
}
|
|
812
|
+
// Apply the values (in reverse order)
|
|
813
|
+
for (i = 0; i < fillCount; i++) {
|
|
814
|
+
targetRowIndex = selection.range.startRowIndex - 1 - i;
|
|
815
|
+
targetColumnIndex = columnIndex;
|
|
816
|
+
if (!fillValues[fillCount - 1 - i])
|
|
817
|
+
fillValues[fillCount - 1 - i] = [];
|
|
818
|
+
if (actualFillType === "FillFormats") {
|
|
819
|
+
fillValues[fillCount - 1 - i][targetColumnIndex - fillBounds.startColumnIndex] = "";
|
|
820
|
+
}
|
|
821
|
+
else {
|
|
822
|
+
sourceRowIndex = selection.range.endRowIndex - (i % selectionRows);
|
|
823
|
+
sourceCellData = getCellData === null || getCellData === void 0 ? void 0 : getCellData(sheetId, sourceRowIndex, columnIndex);
|
|
824
|
+
sheetCell.assign(sheetId, { rowIndex: sourceRowIndex, columnIndex: columnIndex }, sourceCellData, { locale: locale, cellXfsRegistry: cellXfsRegistry, getDataValidationById: getDataValidationById });
|
|
825
|
+
if (sheetCell.isFormula()) {
|
|
826
|
+
sheetCell.moveFormula({ rowIndex: sourceRowIndex, columnIndex: columnIndex }, { rowIndex: targetRowIndex, columnIndex: targetColumnIndex }, activeSheetName, { preserveAbsolutes: true });
|
|
827
|
+
// Remove effective value for formulas
|
|
828
|
+
sheetCell.clearEffectiveValueForFormula();
|
|
829
|
+
}
|
|
830
|
+
else if (textInfo.isText) {
|
|
831
|
+
fillValues[fillCount - 1 - i][targetColumnIndex - fillBounds.startColumnIndex] = buildTextCell(sourceCellData, String((_d = newValues[i]) !== null && _d !== void 0 ? _d : ""), textInfo.pattern);
|
|
832
|
+
continue;
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
shouldNormalizeSeriesNumberFormat_2 = shouldNormalizeSeriesNumberFormatForCell(sheetCell, actualFillType, newValues[i]);
|
|
836
|
+
if (shouldNormalizeSeriesNumberFormat_2) {
|
|
837
|
+
clearCellNumberFormatForSeries(sheetCell);
|
|
838
|
+
}
|
|
839
|
+
sheetCell.setUserEnteredValue(newValues[i]);
|
|
840
|
+
}
|
|
841
|
+
fillValues[fillCount - 1 - i][targetColumnIndex - fillBounds.startColumnIndex] = sheetCell.getCellData();
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
case Direction.Right: {
|
|
848
|
+
fillCount = fillBounds.endColumnIndex - selection.range.endColumnIndex;
|
|
849
|
+
for (rowIndex = selection.range.startRowIndex; rowIndex <= selection.range.endRowIndex; rowIndex++) {
|
|
850
|
+
sourceValues = [];
|
|
851
|
+
sourceCells = [];
|
|
852
|
+
textSourceCellData = getCellData === null || getCellData === void 0 ? void 0 : getCellData(sheetId, rowIndex, selection.range.startColumnIndex);
|
|
853
|
+
for (columnIndex = selection.range.startColumnIndex; columnIndex <= selection.range.endColumnIndex; columnIndex++) {
|
|
854
|
+
cellValue = getFillSourceValue(sheetId, rowIndex, columnIndex);
|
|
855
|
+
sourceValues.push(cellValue);
|
|
856
|
+
sourceCells.push({ rowIndex: rowIndex, columnIndex: columnIndex });
|
|
857
|
+
}
|
|
858
|
+
textInfo = getTextInfo(sourceCells);
|
|
859
|
+
rowData = [sourceValues];
|
|
860
|
+
actualFillType = fillType || detectFillType(rowData, locale);
|
|
861
|
+
newValues = textInfo.isText
|
|
862
|
+
? Array(fillCount).fill(textInfo.textValue)
|
|
863
|
+
: generateFillValues(sourceValues, actualFillType, fillCount, locale, customAutofillLists);
|
|
864
|
+
// Fallback to FillDefault if no values were generated
|
|
865
|
+
if (newValues.length === 0 && actualFillType !== "FillDefault") {
|
|
866
|
+
newValues = generateFillValues(sourceValues, "FillDefault", fillCount, locale);
|
|
867
|
+
}
|
|
868
|
+
targetRowIndex = rowIndex - fillBounds.startRowIndex;
|
|
869
|
+
if (!fillValues[targetRowIndex])
|
|
870
|
+
fillValues[targetRowIndex] = [];
|
|
871
|
+
for (i = 0; i < fillCount; i++) {
|
|
872
|
+
targetColumnIndex = selection.range.endColumnIndex + 1 + i;
|
|
873
|
+
if (actualFillType === "FillFormats") {
|
|
874
|
+
fillValues[targetRowIndex][i] = "";
|
|
875
|
+
}
|
|
876
|
+
else if (textInfo.isText) {
|
|
877
|
+
fillValues[targetRowIndex][i] = buildTextCell(textSourceCellData, String((_e = newValues[i]) !== null && _e !== void 0 ? _e : ""), textInfo.pattern);
|
|
878
|
+
}
|
|
879
|
+
else {
|
|
880
|
+
sourceColumnIndex = selection.range.startColumnIndex + (i % selectionCols);
|
|
881
|
+
sourceCellData = getCellData === null || getCellData === void 0 ? void 0 : getCellData(sheetId, rowIndex, sourceColumnIndex);
|
|
882
|
+
sheetCell.assign(sheetId, { rowIndex: rowIndex, columnIndex: sourceColumnIndex }, sourceCellData, { locale: locale, cellXfsRegistry: cellXfsRegistry, getDataValidationById: getDataValidationById });
|
|
883
|
+
if (sheetCell.isFormula()) {
|
|
884
|
+
sheetCell.moveFormula({ rowIndex: rowIndex, columnIndex: sourceColumnIndex }, { rowIndex: rowIndex, columnIndex: targetColumnIndex }, activeSheetName, { preserveAbsolutes: true });
|
|
885
|
+
// Remove effective value for formulas
|
|
886
|
+
sheetCell.clearEffectiveValueForFormula();
|
|
887
|
+
}
|
|
888
|
+
else {
|
|
889
|
+
shouldNormalizeSeriesNumberFormat_3 = shouldNormalizeSeriesNumberFormatForCell(sheetCell, actualFillType, newValues[i]);
|
|
890
|
+
if (shouldNormalizeSeriesNumberFormat_3) {
|
|
891
|
+
clearCellNumberFormatForSeries(sheetCell);
|
|
892
|
+
}
|
|
893
|
+
sheetCell.setUserEnteredValue(newValues[i]);
|
|
894
|
+
}
|
|
895
|
+
fillValues[targetRowIndex][i] = sheetCell.getCellData();
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
break;
|
|
900
|
+
}
|
|
901
|
+
case Direction.Left: {
|
|
902
|
+
fillCount = selection.range.startColumnIndex - fillBounds.startColumnIndex;
|
|
903
|
+
for (rowIndex = selection.range.startRowIndex; rowIndex <= selection.range.endRowIndex; rowIndex++) {
|
|
904
|
+
sourceValues = [];
|
|
905
|
+
sourceCells = [];
|
|
906
|
+
textSourceCellData = getCellData === null || getCellData === void 0 ? void 0 : getCellData(sheetId, rowIndex, selection.range.endColumnIndex);
|
|
907
|
+
for (columnIndex = selection.range.endColumnIndex; columnIndex >= selection.range.startColumnIndex; columnIndex--) {
|
|
908
|
+
cellValue = getFillSourceValue(sheetId, rowIndex, columnIndex);
|
|
909
|
+
sourceValues.push(cellValue);
|
|
910
|
+
sourceCells.push({ rowIndex: rowIndex, columnIndex: columnIndex });
|
|
911
|
+
}
|
|
912
|
+
textInfo = getTextInfo(sourceCells);
|
|
913
|
+
rowData = [sourceValues];
|
|
914
|
+
actualFillType = fillType || detectFillType(rowData, locale);
|
|
915
|
+
newValues = textInfo.isText
|
|
916
|
+
? Array(fillCount).fill(textInfo.textValue)
|
|
917
|
+
: generateFillValues(sourceValues, actualFillType, fillCount, locale, customAutofillLists);
|
|
918
|
+
// Fallback to FillDefault if no values were generated
|
|
919
|
+
if (newValues.length === 0 && actualFillType !== "FillDefault") {
|
|
920
|
+
newValues = generateFillValues(sourceValues, "FillDefault", fillCount, locale);
|
|
921
|
+
}
|
|
922
|
+
targetRowIndex = rowIndex - fillBounds.startRowIndex;
|
|
923
|
+
if (!fillValues[targetRowIndex])
|
|
924
|
+
fillValues[targetRowIndex] = [];
|
|
925
|
+
for (i = 0; i < fillCount; i++) {
|
|
926
|
+
targetColumnIndex = selection.range.startColumnIndex - 1 - i;
|
|
927
|
+
if (actualFillType === "FillFormats") {
|
|
928
|
+
fillValues[targetRowIndex][fillCount - 1 - i] = "";
|
|
929
|
+
}
|
|
930
|
+
else if (textInfo.isText) {
|
|
931
|
+
fillValues[targetRowIndex][fillCount - 1 - i] = buildTextCell(textSourceCellData, String((_f = newValues[i]) !== null && _f !== void 0 ? _f : ""), textInfo.pattern);
|
|
932
|
+
}
|
|
933
|
+
else {
|
|
934
|
+
sourceColumnIndex = selection.range.endColumnIndex - (i % selectionCols);
|
|
935
|
+
sourceCellData = getCellData === null || getCellData === void 0 ? void 0 : getCellData(sheetId, rowIndex, sourceColumnIndex);
|
|
936
|
+
sheetCell.assign(sheetId, { rowIndex: rowIndex, columnIndex: sourceColumnIndex }, sourceCellData, { locale: locale, cellXfsRegistry: cellXfsRegistry, getDataValidationById: getDataValidationById });
|
|
937
|
+
if (sheetCell.isFormula()) {
|
|
938
|
+
sheetCell.moveFormula({ rowIndex: rowIndex, columnIndex: sourceColumnIndex }, { rowIndex: rowIndex, columnIndex: targetColumnIndex }, activeSheetName, { preserveAbsolutes: true });
|
|
939
|
+
// Remove effective value for formulas
|
|
940
|
+
sheetCell.clearEffectiveValueForFormula();
|
|
941
|
+
}
|
|
942
|
+
else {
|
|
943
|
+
shouldNormalizeSeriesNumberFormat_4 = shouldNormalizeSeriesNumberFormatForCell(sheetCell, actualFillType, newValues[i]);
|
|
944
|
+
if (shouldNormalizeSeriesNumberFormat_4) {
|
|
945
|
+
clearCellNumberFormatForSeries(sheetCell);
|
|
946
|
+
}
|
|
947
|
+
sheetCell.setUserEnteredValue(newValues[i]);
|
|
948
|
+
}
|
|
949
|
+
fillValues[targetRowIndex][fillCount - 1 - i] =
|
|
950
|
+
sheetCell.getCellData();
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
break;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return [2 /*return*/, fillValues];
|
|
958
|
+
});
|
|
959
|
+
}); };
|