handsontable 18.1.0-rc1 → 18.1.0-rc7
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/3rdparty/walkontable/src/axisSizing/columnUtils.js +9 -4
- package/3rdparty/walkontable/src/axisSizing/columnUtils.mjs +9 -4
- package/3rdparty/walkontable/src/axisSizing/defaultSizeSource.js +9 -4
- package/3rdparty/walkontable/src/axisSizing/defaultSizeSource.mjs +9 -4
- package/3rdparty/walkontable/src/axisSizing/positionCache/index.js +9 -4
- package/3rdparty/walkontable/src/axisSizing/positionCache/index.mjs +9 -4
- package/3rdparty/walkontable/src/axisSizing/positionCache/prefixSumStrategy.js +9 -4
- package/3rdparty/walkontable/src/axisSizing/positionCache/prefixSumStrategy.mjs +9 -4
- package/3rdparty/walkontable/src/axisSizing/positionCache/sparseStrategy.js +12 -5
- package/3rdparty/walkontable/src/axisSizing/positionCache/sparseStrategy.mjs +12 -5
- package/3rdparty/walkontable/src/axisSizing/positionCache/uniformStrategy.js +9 -4
- package/3rdparty/walkontable/src/axisSizing/positionCache/uniformStrategy.mjs +9 -4
- package/3rdparty/walkontable/src/axisSizing/rowUtils.js +9 -4
- package/3rdparty/walkontable/src/axisSizing/rowUtils.mjs +9 -4
- package/3rdparty/walkontable/src/cell/coords.js +9 -4
- package/3rdparty/walkontable/src/cell/coords.mjs +9 -4
- package/3rdparty/walkontable/src/cell/range.js +12 -5
- package/3rdparty/walkontable/src/cell/range.mjs +12 -5
- package/3rdparty/walkontable/src/core/_base.js +19 -8
- package/3rdparty/walkontable/src/core/clone.js +19 -8
- package/3rdparty/walkontable/src/core/core.js +19 -8
- package/3rdparty/walkontable/src/domMeasure/liveGeometryReader.js +9 -4
- package/3rdparty/walkontable/src/domMeasure/liveGeometryReader.mjs +9 -4
- package/3rdparty/walkontable/src/event.js +12 -5
- package/3rdparty/walkontable/src/event.mjs +12 -5
- package/3rdparty/walkontable/src/index.js +19 -8
- package/3rdparty/walkontable/src/overlay/overlays.js +12 -5
- package/3rdparty/walkontable/src/overlay/overlays.mjs +12 -5
- package/3rdparty/walkontable/src/overlay/regions/_base.js +9 -4
- package/3rdparty/walkontable/src/overlay/regions/_base.mjs +9 -4
- package/3rdparty/walkontable/src/overlay/regions/bottomOverlay.js +3 -1
- package/3rdparty/walkontable/src/overlay/regions/bottomOverlay.mjs +3 -1
- package/3rdparty/walkontable/src/overlay/regions/inlineStartOverlay.js +3 -1
- package/3rdparty/walkontable/src/overlay/regions/inlineStartOverlay.mjs +3 -1
- package/3rdparty/walkontable/src/overlay/regions/topOverlay.js +3 -1
- package/3rdparty/walkontable/src/overlay/regions/topOverlay.mjs +3 -1
- package/3rdparty/walkontable/src/overlay/resizeMonitor.js +9 -4
- package/3rdparty/walkontable/src/overlay/resizeMonitor.mjs +9 -4
- package/3rdparty/walkontable/src/overlay/scroll/nativeScrollInput.js +12 -5
- package/3rdparty/walkontable/src/overlay/scroll/nativeScrollInput.mjs +12 -5
- package/3rdparty/walkontable/src/overlay/scroll/scrollSync.js +12 -5
- package/3rdparty/walkontable/src/overlay/scroll/scrollSync.mjs +12 -5
- package/3rdparty/walkontable/src/overlay/spreaderSize.js +9 -4
- package/3rdparty/walkontable/src/overlay/spreaderSize.mjs +9 -4
- package/3rdparty/walkontable/src/overlay/strategies/stickyScrollStrategy.js +12 -5
- package/3rdparty/walkontable/src/overlay/strategies/stickyScrollStrategy.mjs +12 -5
- package/3rdparty/walkontable/src/render/columnHeaders.js +3 -1
- package/3rdparty/walkontable/src/render/columnHeaders.mjs +3 -1
- package/3rdparty/walkontable/src/render/tableRenderer.js +12 -5
- package/3rdparty/walkontable/src/render/tableRenderer.mjs +12 -5
- package/3rdparty/walkontable/src/scroll/scroll.js +12 -5
- package/3rdparty/walkontable/src/scroll/scroll.mjs +12 -5
- package/3rdparty/walkontable/src/selection/manager.js +12 -5
- package/3rdparty/walkontable/src/selection/manager.mjs +12 -5
- package/3rdparty/walkontable/src/selection/scanner.js +12 -5
- package/3rdparty/walkontable/src/selection/scanner.mjs +12 -5
- package/3rdparty/walkontable/src/table/baseTable.js +9 -4
- package/3rdparty/walkontable/src/table/baseTable.mjs +9 -4
- package/3rdparty/walkontable/src/table/regions/masterTable.js +9 -4
- package/3rdparty/walkontable/src/table/regions/masterTable.mjs +9 -4
- package/3rdparty/walkontable/src/viewport/viewport.js +9 -4
- package/3rdparty/walkontable/src/viewport/viewport.mjs +9 -4
- package/CHANGELOG.md +114 -1
- package/base.d.ts +3 -2
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/coordsMapper/rangeToRenderableMapper.js +12 -5
- package/core/coordsMapper/rangeToRenderableMapper.mjs +12 -5
- package/core/hooks/bucket.js +12 -5
- package/core/hooks/bucket.mjs +12 -5
- package/core/hooks/constants.js +1 -1
- package/core/hooks/constants.mjs +1 -1
- package/core/hooks/index.js +3 -1
- package/core/hooks/index.mjs +3 -1
- package/core/layout/domSlot.js +12 -5
- package/core/layout/domSlot.mjs +12 -5
- package/core/layout/layoutManager.js +9 -4
- package/core/layout/layoutManager.mjs +9 -4
- package/core/settings.d.ts +43 -0
- package/core.js +53 -3
- package/core.mjs +54 -4
- package/dataMap/dataMap.js +3 -1
- package/dataMap/dataMap.mjs +3 -1
- package/dataMap/metaManager/lazyFactoryMap.js +12 -5
- package/dataMap/metaManager/lazyFactoryMap.mjs +12 -5
- package/dataMap/metaManager/metaLayers/cellMeta.js +9 -4
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +9 -4
- package/dataMap/metaManager/metaSchema.js +47 -8
- package/dataMap/metaManager/metaSchema.mjs +47 -8
- package/dataMap/metaManager/mods/dynamicCellMeta.js +12 -5
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +12 -5
- package/dataMap/metaManager/mods/extendMetaProperties.js +9 -4
- package/dataMap/metaManager/mods/extendMetaProperties.mjs +9 -4
- package/dist/handsontable.full.js +3979 -9863
- package/dist/handsontable.full.min.js +117 -117
- package/dist/handsontable.js +3044 -2470
- package/dist/handsontable.min.js +117 -117
- package/dist/languages/all.min.js +1 -1
- package/dist/themes/classic.js +2 -2
- package/dist/themes/classic.min.js +2 -2
- package/dist/themes/horizon.js +2 -2
- package/dist/themes/horizon.min.js +2 -2
- package/dist/themes/main.js +2 -2
- package/dist/themes/main.min.js +2 -2
- package/dist/themes/static/variables/colors/ant.js +2 -2
- package/dist/themes/static/variables/colors/ant.min.js +2 -2
- package/dist/themes/static/variables/colors/classic.js +2 -2
- package/dist/themes/static/variables/colors/classic.min.js +2 -2
- package/dist/themes/static/variables/colors/horizon.js +2 -2
- package/dist/themes/static/variables/colors/horizon.min.js +2 -2
- package/dist/themes/static/variables/colors/main.js +2 -2
- package/dist/themes/static/variables/colors/main.min.js +2 -2
- package/dist/themes/static/variables/colors/material.js +2 -2
- package/dist/themes/static/variables/colors/material.min.js +2 -2
- package/dist/themes/static/variables/colors/shadcn.js +2 -2
- package/dist/themes/static/variables/colors/shadcn.min.js +2 -2
- package/dist/themes/static/variables/density.js +2 -2
- package/dist/themes/static/variables/density.min.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.min.js +2 -2
- package/dist/themes/static/variables/icons/horizon.js +2 -2
- package/dist/themes/static/variables/icons/horizon.min.js +2 -2
- package/dist/themes/static/variables/icons/main.js +2 -2
- package/dist/themes/static/variables/icons/main.min.js +2 -2
- package/dist/themes/static/variables/sizing.js +2 -2
- package/dist/themes/static/variables/sizing.min.js +2 -2
- package/dist/themes/static/variables/tokens/classic.js +2 -2
- package/dist/themes/static/variables/tokens/classic.min.js +2 -2
- package/dist/themes/static/variables/tokens/horizon.js +2 -2
- package/dist/themes/static/variables/tokens/horizon.min.js +2 -2
- package/dist/themes/static/variables/tokens/main.js +2 -2
- package/dist/themes/static/variables/tokens/main.min.js +2 -2
- package/editorManager.js +155 -4
- package/editorManager.mjs +155 -4
- package/editors/autocompleteEditor/autocompleteEditor.js +27 -6
- package/editors/autocompleteEditor/autocompleteEditor.mjs +28 -7
- package/editors/baseEditor/baseEditor.js +3 -1
- package/editors/baseEditor/baseEditor.mjs +3 -1
- package/editors/multiSelectEditor/controllers/dropdownController.js +12 -5
- package/editors/multiSelectEditor/controllers/dropdownController.mjs +12 -5
- package/editors/multiSelectEditor/controllers/inputController.js +3 -1
- package/editors/multiSelectEditor/controllers/inputController.mjs +3 -1
- package/editors/multiSelectEditor/multiSelectEditor.js +12 -5
- package/editors/multiSelectEditor/multiSelectEditor.mjs +12 -5
- package/editors/passwordEditor/passwordEditor.js +12 -5
- package/editors/passwordEditor/passwordEditor.mjs +12 -5
- package/editors/registry.js +9 -4
- package/editors/registry.mjs +9 -4
- package/editors/selectEditor/selectEditor.js +2 -1
- package/editors/selectEditor/selectEditor.mjs +2 -1
- package/focusManager/grid.js +20 -7
- package/focusManager/grid.mjs +20 -7
- package/helpers/console.d.ts +25 -3
- package/helpers/console.js +40 -7
- package/helpers/console.mjs +52 -7
- package/helpers/dom/element.d.ts +20 -5
- package/helpers/dom/element.js +12 -2
- package/helpers/dom/element.mjs +25 -6
- package/helpers/mixed.js +6 -6
- package/helpers/mixed.mjs +6 -6
- package/helpers/string.d.ts +14 -10
- package/helpers/string.js +17 -9
- package/helpers/string.mjs +27 -17
- package/helpers/templateString.d.mts +1 -0
- package/helpers/templateString.d.ts +13 -0
- package/helpers/templateString.js +29 -0
- package/helpers/templateString.mjs +19 -0
- package/helpers/uiButton.d.mts +1 -0
- package/helpers/uiButton.d.ts +21 -0
- package/helpers/uiButton.js +37 -0
- package/helpers/uiButton.mjs +31 -0
- package/i18n/languages/ar-AR.js +19 -8
- package/i18n/languages/cs-CZ.js +19 -8
- package/i18n/languages/de-CH.js +19 -8
- package/i18n/languages/de-DE.js +19 -8
- package/i18n/languages/en-US.js +19 -8
- package/i18n/languages/es-MX.js +19 -8
- package/i18n/languages/fa-IR.js +19 -8
- package/i18n/languages/fr-FR.js +19 -8
- package/i18n/languages/hr-HR.js +19 -8
- package/i18n/languages/it-IT.js +19 -8
- package/i18n/languages/ja-JP.js +19 -8
- package/i18n/languages/ko-KR.js +19 -8
- package/i18n/languages/lv-LV.js +19 -8
- package/i18n/languages/nb-NO.js +19 -8
- package/i18n/languages/nl-NL.js +19 -8
- package/i18n/languages/pl-PL.js +19 -8
- package/i18n/languages/pt-BR.js +19 -8
- package/i18n/languages/ru-RU.js +19 -8
- package/i18n/languages/sr-SP.js +19 -8
- package/i18n/languages/zh-CN.js +19 -8
- package/i18n/languages/zh-TW.js +19 -8
- package/i18n/registry.js +19 -8
- package/index.d.ts +1 -1
- package/index.js +19 -8
- package/package.json +1 -1
- package/plugins/autoColumnSize/autoColumnSize.js +12 -5
- package/plugins/autoColumnSize/autoColumnSize.mjs +12 -5
- package/plugins/autoRowSize/autoRowSize.js +12 -5
- package/plugins/autoRowSize/autoRowSize.mjs +12 -5
- package/plugins/autofill/autofill.js +12 -5
- package/plugins/autofill/autofill.mjs +12 -5
- package/plugins/base/base.js +12 -5
- package/plugins/base/base.mjs +12 -5
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +9 -4
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +9 -4
- package/plugins/collapsibleColumns/collapsibleColumns.js +12 -5
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +12 -5
- package/plugins/columnSorting/columnSorting.js +12 -5
- package/plugins/columnSorting/columnSorting.mjs +12 -5
- package/plugins/columnSummary/columnSummary.js +9 -4
- package/plugins/columnSummary/columnSummary.mjs +9 -4
- package/plugins/columnSummary/endpoints.js +9 -4
- package/plugins/columnSummary/endpoints.mjs +9 -4
- package/plugins/comments/commentEditor.js +9 -4
- package/plugins/comments/commentEditor.mjs +9 -4
- package/plugins/comments/comments.js +12 -5
- package/plugins/comments/comments.mjs +12 -5
- package/plugins/comments/contextMenuItem/addEditComment.js +19 -8
- package/plugins/comments/contextMenuItem/readOnlyComment.js +19 -8
- package/plugins/comments/contextMenuItem/removeComment.js +19 -8
- package/plugins/comments/editorResizeObserver.js +12 -5
- package/plugins/comments/editorResizeObserver.mjs +12 -5
- package/plugins/contextMenu/contextMenu.js +9 -4
- package/plugins/contextMenu/contextMenu.mjs +9 -4
- package/plugins/contextMenu/menu/menu.js +12 -5
- package/plugins/contextMenu/menu/menu.mjs +12 -5
- package/plugins/contextMenu/menu/menuItemRenderer.js +2 -2
- package/plugins/contextMenu/menu/menuItemRenderer.mjs +2 -2
- package/plugins/contextMenu/menu/positioner.js +9 -4
- package/plugins/contextMenu/menu/positioner.mjs +9 -4
- package/plugins/contextMenu/predefinedItems/alignment.js +19 -8
- package/plugins/contextMenu/predefinedItems/clearColumn.js +19 -8
- package/plugins/contextMenu/predefinedItems/columnLeft.js +19 -8
- package/plugins/contextMenu/predefinedItems/columnRight.js +19 -8
- package/plugins/contextMenu/predefinedItems/index.js +19 -8
- package/plugins/contextMenu/predefinedItems/readOnly.js +19 -8
- package/plugins/contextMenu/predefinedItems/redo.js +19 -8
- package/plugins/contextMenu/predefinedItems/removeColumn.js +19 -8
- package/plugins/contextMenu/predefinedItems/removeRow.js +19 -8
- package/plugins/contextMenu/predefinedItems/rowAbove.js +19 -8
- package/plugins/contextMenu/predefinedItems/rowBelow.js +19 -8
- package/plugins/contextMenu/predefinedItems/undo.js +19 -8
- package/plugins/copyPaste/contextMenuItem/cut.js +19 -8
- package/plugins/copyPaste/copyPaste.js +25 -13
- package/plugins/copyPaste/copyPaste.mjs +26 -14
- package/plugins/copyPaste/copyableRanges.js +12 -5
- package/plugins/copyPaste/copyableRanges.mjs +12 -5
- package/plugins/customBorders/contextMenuItem/bottom.js +19 -8
- package/plugins/customBorders/contextMenuItem/left.js +19 -8
- package/plugins/customBorders/contextMenuItem/noBorders.js +19 -8
- package/plugins/customBorders/contextMenuItem/right.js +19 -8
- package/plugins/customBorders/contextMenuItem/top.js +19 -8
- package/plugins/customBorders/customBorders.js +31 -13
- package/plugins/customBorders/customBorders.mjs +12 -5
- package/plugins/dataProvider/dataProvider.d.ts +2 -1
- package/plugins/dataProvider/dataProvider.js +31 -13
- package/plugins/dataProvider/dataProvider.mjs +12 -5
- package/plugins/dialog/dialog.js +43 -20
- package/plugins/dialog/dialog.mjs +24 -12
- package/plugins/dialog/templates/confirm.d.ts +1 -1
- package/plugins/dialog/templates/confirm.js +2 -1
- package/plugins/dialog/templates/confirm.mjs +2 -1
- package/plugins/dialog/ui.d.ts +5 -3
- package/plugins/dialog/ui.js +24 -9
- package/plugins/dialog/ui.mjs +24 -9
- package/plugins/dragToScroll/autoScroller.js +9 -4
- package/plugins/dragToScroll/autoScroller.mjs +9 -4
- package/plugins/dragToScroll/dragToScroll.js +12 -5
- package/plugins/dragToScroll/dragToScroll.mjs +12 -5
- package/plugins/dragToScroll/scrollTimer.js +9 -4
- package/plugins/dragToScroll/scrollTimer.mjs +9 -4
- package/plugins/dropdownMenu/dropdownMenu.js +12 -5
- package/plugins/dropdownMenu/dropdownMenu.mjs +12 -5
- package/plugins/emptyDataState/emptyDataState.js +33 -17
- package/plugins/emptyDataState/emptyDataState.mjs +14 -9
- package/plugins/emptyDataState/ui.js +11 -5
- package/plugins/emptyDataState/ui.mjs +11 -5
- package/plugins/exportFile/dataProvider.js +2 -8
- package/plugins/exportFile/dataProvider.mjs +2 -8
- package/plugins/exportFile/exportFile.d.ts +10 -3
- package/plugins/exportFile/exportFile.js +31 -13
- package/plugins/exportFile/exportFile.mjs +12 -5
- package/plugins/exportFile/types/_base.js +4 -10
- package/plugins/exportFile/types/_base.mjs +4 -10
- package/plugins/exportFile/types/csv.js +3 -1
- package/plugins/exportFile/types/csv.mjs +3 -1
- package/plugins/exportFile/types/xlsx.js +7 -10
- package/plugins/exportFile/types/xlsx.mjs +7 -10
- package/plugins/exportFile/utils.d.ts +9 -1
- package/plugins/exportFile/utils.js +27 -4
- package/plugins/exportFile/utils.mjs +40 -2
- package/plugins/filters/component/actionBar.js +22 -9
- package/plugins/filters/component/actionBar.mjs +3 -1
- package/plugins/filters/component/condition.js +22 -9
- package/plugins/filters/component/condition.mjs +3 -1
- package/plugins/filters/component/operators.js +3 -1
- package/plugins/filters/component/operators.mjs +3 -1
- package/plugins/filters/component/value.js +22 -9
- package/plugins/filters/component/value.mjs +3 -1
- package/plugins/filters/condition/beginsWith.js +19 -8
- package/plugins/filters/condition/between.js +19 -8
- package/plugins/filters/condition/contains.js +19 -8
- package/plugins/filters/condition/date/after.js +19 -8
- package/plugins/filters/condition/date/afterOrEqual.js +19 -8
- package/plugins/filters/condition/date/before.js +19 -8
- package/plugins/filters/condition/date/beforeOrEqual.js +19 -8
- package/plugins/filters/condition/date/today.js +19 -8
- package/plugins/filters/condition/date/tomorrow.js +19 -8
- package/plugins/filters/condition/date/yesterday.js +19 -8
- package/plugins/filters/condition/empty.js +19 -8
- package/plugins/filters/condition/endsWith.js +19 -8
- package/plugins/filters/condition/equal.js +19 -8
- package/plugins/filters/condition/greaterThan.js +19 -8
- package/plugins/filters/condition/greaterThanOrEqual.js +19 -8
- package/plugins/filters/condition/intlDate/after.js +19 -8
- package/plugins/filters/condition/intlDate/afterOrEqual.js +19 -8
- package/plugins/filters/condition/intlDate/before.js +19 -8
- package/plugins/filters/condition/intlDate/beforeOrEqual.js +19 -8
- package/plugins/filters/condition/intlDate/between.js +19 -8
- package/plugins/filters/condition/intlDate/today.js +19 -8
- package/plugins/filters/condition/intlDate/tomorrow.js +19 -8
- package/plugins/filters/condition/intlDate/yesterday.js +19 -8
- package/plugins/filters/condition/intlDatetime/after.js +19 -8
- package/plugins/filters/condition/intlDatetime/afterOrEqual.js +19 -8
- package/plugins/filters/condition/intlDatetime/before.js +19 -8
- package/plugins/filters/condition/intlDatetime/beforeOrEqual.js +19 -8
- package/plugins/filters/condition/intlDatetime/between.js +19 -8
- package/plugins/filters/condition/intlDatetime/today.js +19 -8
- package/plugins/filters/condition/intlDatetime/tomorrow.js +19 -8
- package/plugins/filters/condition/intlDatetime/yesterday.js +19 -8
- package/plugins/filters/condition/intlTime/after.js +19 -8
- package/plugins/filters/condition/intlTime/afterOrEqual.js +19 -8
- package/plugins/filters/condition/intlTime/before.js +19 -8
- package/plugins/filters/condition/intlTime/beforeOrEqual.js +19 -8
- package/plugins/filters/condition/intlTime/between.js +19 -8
- package/plugins/filters/condition/lessThan.js +19 -8
- package/plugins/filters/condition/lessThanOrEqual.js +19 -8
- package/plugins/filters/condition/none.js +19 -8
- package/plugins/filters/condition/notBetween.js +19 -8
- package/plugins/filters/condition/notContains.js +19 -8
- package/plugins/filters/condition/notEmpty.js +19 -8
- package/plugins/filters/condition/notEqual.js +19 -8
- package/plugins/filters/conditionUpdateObserver.js +12 -5
- package/plugins/filters/conditionUpdateObserver.mjs +12 -5
- package/plugins/filters/filters.js +31 -13
- package/plugins/filters/filters.mjs +12 -5
- package/plugins/filters/logicalOperations/conjunction.js +19 -8
- package/plugins/filters/logicalOperations/disjunction.js +19 -8
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.js +19 -8
- package/plugins/filters/ui/_base.js +19 -8
- package/plugins/filters/ui/input.js +12 -5
- package/plugins/filters/ui/input.mjs +12 -5
- package/plugins/filters/ui/link.js +9 -4
- package/plugins/filters/ui/link.mjs +9 -4
- package/plugins/filters/ui/multipleSelect.js +31 -13
- package/plugins/filters/ui/multipleSelect.mjs +12 -5
- package/plugins/filters/ui/radioInput.js +9 -4
- package/plugins/filters/ui/radioInput.mjs +9 -4
- package/plugins/filters/ui/select.js +31 -13
- package/plugins/filters/ui/select.mjs +12 -5
- package/plugins/formulas/formulas.js +59 -10
- package/plugins/formulas/formulas.mjs +59 -10
- package/plugins/formulas/indexSyncer/axisSyncer.js +12 -5
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +12 -5
- package/plugins/formulas/indexSyncer/index.js +9 -4
- package/plugins/formulas/indexSyncer/index.mjs +9 -4
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +19 -8
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +19 -8
- package/plugins/hiddenColumns/hiddenColumns.js +12 -5
- package/plugins/hiddenColumns/hiddenColumns.mjs +12 -5
- package/plugins/hiddenRows/contextMenuItem/hideRow.js +19 -8
- package/plugins/hiddenRows/contextMenuItem/showRow.js +19 -8
- package/plugins/hiddenRows/hiddenRows.js +12 -5
- package/plugins/hiddenRows/hiddenRows.mjs +12 -5
- package/plugins/loading/content.d.ts +5 -3
- package/plugins/loading/content.js +3 -2
- package/plugins/loading/content.mjs +8 -5
- package/plugins/loading/loading.d.ts +5 -2
- package/plugins/loading/loading.js +31 -13
- package/plugins/loading/loading.mjs +17 -7
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +19 -8
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +19 -8
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +12 -5
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +12 -5
- package/plugins/manualColumnMove/manualColumnMove.js +12 -5
- package/plugins/manualColumnMove/manualColumnMove.mjs +12 -5
- package/plugins/manualColumnResize/manualColumnResize.d.ts +8 -6
- package/plugins/manualColumnResize/manualColumnResize.js +22 -13
- package/plugins/manualColumnResize/manualColumnResize.mjs +23 -14
- package/plugins/manualRowMove/manualRowMove.js +12 -5
- package/plugins/manualRowMove/manualRowMove.mjs +12 -5
- package/plugins/manualRowResize/manualRowResize.d.ts +8 -6
- package/plugins/manualRowResize/manualRowResize.js +22 -13
- package/plugins/manualRowResize/manualRowResize.mjs +23 -14
- package/plugins/mergeCells/cellCoords.js +9 -4
- package/plugins/mergeCells/cellCoords.mjs +9 -4
- package/plugins/mergeCells/cellsCollection.js +3 -1
- package/plugins/mergeCells/cellsCollection.mjs +3 -1
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +19 -8
- package/plugins/mergeCells/focusOrder.js +12 -5
- package/plugins/mergeCells/focusOrder.mjs +12 -5
- package/plugins/mergeCells/mergeCells.js +12 -5
- package/plugins/mergeCells/mergeCells.mjs +12 -5
- package/plugins/moveCells/moveCells.js +12 -5
- package/plugins/moveCells/moveCells.mjs +12 -5
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +12 -5
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +12 -5
- package/plugins/nestedHeaders/nestedHeaders.js +12 -5
- package/plugins/nestedHeaders/nestedHeaders.mjs +12 -5
- package/plugins/nestedHeaders/stateManager/headersTree.js +9 -4
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +9 -4
- package/plugins/nestedHeaders/stateManager/index.js +12 -5
- package/plugins/nestedHeaders/stateManager/index.mjs +12 -5
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +9 -4
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +9 -4
- package/plugins/nestedHeaders/utils/ghostTable.js +24 -9
- package/plugins/nestedHeaders/utils/ghostTable.mjs +24 -9
- package/plugins/nestedRows/nestedRows.js +12 -5
- package/plugins/nestedRows/nestedRows.mjs +12 -5
- package/plugins/nestedRows/ui/collapsing.js +3 -1
- package/plugins/nestedRows/ui/collapsing.mjs +3 -1
- package/plugins/nestedRows/ui/contextMenu.js +28 -12
- package/plugins/nestedRows/ui/contextMenu.mjs +9 -4
- package/plugins/notification/notification.d.ts +2 -1
- package/plugins/notification/notification.js +37 -16
- package/plugins/notification/notification.mjs +18 -8
- package/plugins/notification/ui.d.ts +8 -5
- package/plugins/notification/ui.js +27 -10
- package/plugins/notification/ui.mjs +27 -10
- package/plugins/pagination/pagination.js +12 -5
- package/plugins/pagination/pagination.mjs +12 -5
- package/plugins/pagination/ui.js +31 -13
- package/plugins/pagination/ui.mjs +12 -5
- package/plugins/search/search.js +9 -4
- package/plugins/search/search.mjs +9 -4
- package/plugins/selectionHandles/selectionHandles.js +12 -5
- package/plugins/selectionHandles/selectionHandles.mjs +12 -5
- package/plugins/stretchColumns/calculator.js +12 -5
- package/plugins/stretchColumns/calculator.mjs +12 -5
- package/plugins/stretchColumns/strategies/last.js +9 -4
- package/plugins/stretchColumns/strategies/last.mjs +9 -4
- package/plugins/stretchColumns/stretchColumns.js +9 -4
- package/plugins/stretchColumns/stretchColumns.mjs +9 -4
- package/plugins/touchScroll/touchScroll.js +9 -4
- package/plugins/touchScroll/touchScroll.mjs +9 -4
- package/plugins/trimRows/trimRows.js +9 -4
- package/plugins/trimRows/trimRows.mjs +9 -4
- package/plugins/undoRedo/undoRedo.js +9 -4
- package/plugins/undoRedo/undoRedo.mjs +9 -4
- package/renderSizeProbe.js +3 -1
- package/renderSizeProbe.mjs +3 -1
- package/renderers/passwordRenderer/passwordRenderer.js +6 -1
- package/renderers/passwordRenderer/passwordRenderer.mjs +6 -1
- package/selection/highlight/highlight.js +3 -1
- package/selection/highlight/highlight.mjs +3 -1
- package/selection/selection.js +31 -13
- package/selection/selection.mjs +12 -5
- package/selection/transformation/_base.js +12 -5
- package/selection/transformation/_base.mjs +12 -5
- package/settings.d.ts +1 -1
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +3 -3
- package/styles/handsontableStyles.d.mts +2 -0
- package/styles/handsontableStyles.d.ts +2 -0
- package/styles/handsontableStyles.js +1 -1
- package/styles/handsontableStyles.mjs +1 -1
- package/styles/ht-icons-horizon.min.css +2 -2
- package/styles/ht-icons-main.min.css +2 -2
- package/styles/ht-theme-classic-no-icons.min.css +2 -2
- package/styles/ht-theme-classic.min.css +2 -2
- package/styles/ht-theme-horizon-no-icons.min.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main-no-icons.min.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
- package/tableView.js +14 -6
- package/tableView.mjs +14 -6
- package/themes/engine/builder.js +12 -5
- package/themes/engine/builder.mjs +12 -5
- package/themes/engine/manager.js +12 -5
- package/themes/engine/manager.mjs +12 -5
- package/translations/changesObservable/observable.js +9 -4
- package/translations/changesObservable/observable.mjs +9 -4
- package/translations/changesObservable/observer.js +9 -4
- package/translations/changesObservable/observer.mjs +9 -4
- package/translations/indexMapper.js +12 -11
- package/translations/indexMapper.mjs +12 -11
- package/translations/maps/booleanMap.js +12 -5
- package/translations/maps/booleanMap.mjs +12 -5
- package/translations/maps/indexMap.js +9 -4
- package/translations/maps/indexMap.mjs +9 -4
- package/translations/maps/indexesSequence.js +12 -5
- package/translations/maps/indexesSequence.mjs +12 -5
- package/utils/ghostTable.js +3 -1
- package/utils/ghostTable.mjs +3 -1
- package/utils/interval.js +12 -5
- package/utils/interval.mjs +12 -5
- package/utils/licenseBranding/index.js +2 -2
- package/utils/licenseBranding/index.mjs +2 -2
- package/utils/licenseNotification.js +2 -2
- package/utils/licenseNotification.mjs +2 -2
- package/utils/parseTable.js +15 -6
- package/utils/parseTable.mjs +15 -6
- package/utils/samplesGenerator.js +3 -1
- package/utils/samplesGenerator.mjs +3 -1
- package/utils/sanitizer.d.mts +1 -0
- package/utils/sanitizer.d.ts +47 -0
- package/utils/sanitizer.js +43 -0
- package/utils/sanitizer.mjs +55 -0
- package/utils/stylesHandler.js +12 -5
- package/utils/stylesHandler.mjs +12 -5
|
@@ -14,12 +14,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
17
|
-
if (descriptor.get)
|
|
17
|
+
if (descriptor.get) {
|
|
18
|
+
return descriptor.get.call(receiver);
|
|
19
|
+
}
|
|
18
20
|
return descriptor.value;
|
|
19
21
|
}
|
|
20
22
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
21
|
-
if (descriptor.set)
|
|
22
|
-
|
|
23
|
+
if (descriptor.set) {
|
|
24
|
+
descriptor.set.call(receiver, value);
|
|
25
|
+
} else {
|
|
23
26
|
if (!descriptor.writable) {
|
|
24
27
|
throw new TypeError("attempted to set read only private field");
|
|
25
28
|
}
|
|
@@ -27,7 +30,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
30
|
-
if (!privateMap.has(receiver))
|
|
33
|
+
if (!privateMap.has(receiver)) {
|
|
34
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
35
|
+
}
|
|
31
36
|
return privateMap.get(receiver);
|
|
32
37
|
}
|
|
33
38
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -22,12 +22,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
25
|
-
if (descriptor.get)
|
|
25
|
+
if (descriptor.get) {
|
|
26
|
+
return descriptor.get.call(receiver);
|
|
27
|
+
}
|
|
26
28
|
return descriptor.value;
|
|
27
29
|
}
|
|
28
30
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
29
|
-
if (descriptor.set)
|
|
30
|
-
|
|
31
|
+
if (descriptor.set) {
|
|
32
|
+
descriptor.set.call(receiver, value);
|
|
33
|
+
} else {
|
|
31
34
|
if (!descriptor.writable) {
|
|
32
35
|
throw new TypeError("attempted to set read only private field");
|
|
33
36
|
}
|
|
@@ -35,7 +38,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
38
|
-
if (!privateMap.has(receiver))
|
|
41
|
+
if (!privateMap.has(receiver)) {
|
|
42
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
43
|
+
}
|
|
39
44
|
return privateMap.get(receiver);
|
|
40
45
|
}
|
|
41
46
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -18,12 +18,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
21
|
-
if (descriptor.get)
|
|
21
|
+
if (descriptor.get) {
|
|
22
|
+
return descriptor.get.call(receiver);
|
|
23
|
+
}
|
|
22
24
|
return descriptor.value;
|
|
23
25
|
}
|
|
24
26
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
25
|
-
if (descriptor.set)
|
|
26
|
-
|
|
27
|
+
if (descriptor.set) {
|
|
28
|
+
descriptor.set.call(receiver, value);
|
|
29
|
+
} else {
|
|
27
30
|
if (!descriptor.writable) {
|
|
28
31
|
throw new TypeError("attempted to set read only private field");
|
|
29
32
|
}
|
|
@@ -31,7 +34,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
34
|
-
if (!privateMap.has(receiver))
|
|
37
|
+
if (!privateMap.has(receiver)) {
|
|
38
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
39
|
+
}
|
|
35
40
|
return privateMap.get(receiver);
|
|
36
41
|
}
|
|
37
42
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -15,12 +15,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
18
|
-
if (descriptor.get)
|
|
18
|
+
if (descriptor.get) {
|
|
19
|
+
return descriptor.get.call(receiver);
|
|
20
|
+
}
|
|
19
21
|
return descriptor.value;
|
|
20
22
|
}
|
|
21
23
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
22
|
-
if (descriptor.set)
|
|
23
|
-
|
|
24
|
+
if (descriptor.set) {
|
|
25
|
+
descriptor.set.call(receiver, value);
|
|
26
|
+
} else {
|
|
24
27
|
if (!descriptor.writable) {
|
|
25
28
|
throw new TypeError("attempted to set read only private field");
|
|
26
29
|
}
|
|
@@ -28,7 +31,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
31
|
-
if (!privateMap.has(receiver))
|
|
34
|
+
if (!privateMap.has(receiver)) {
|
|
35
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
36
|
+
}
|
|
32
37
|
return privateMap.get(receiver);
|
|
33
38
|
}
|
|
34
39
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -15,12 +15,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
18
|
-
if (descriptor.get)
|
|
18
|
+
if (descriptor.get) {
|
|
19
|
+
return descriptor.get.call(receiver);
|
|
20
|
+
}
|
|
19
21
|
return descriptor.value;
|
|
20
22
|
}
|
|
21
23
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
22
|
-
if (descriptor.set)
|
|
23
|
-
|
|
24
|
+
if (descriptor.set) {
|
|
25
|
+
descriptor.set.call(receiver, value);
|
|
26
|
+
} else {
|
|
24
27
|
if (!descriptor.writable) {
|
|
25
28
|
throw new TypeError("attempted to set read only private field");
|
|
26
29
|
}
|
|
@@ -28,7 +31,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
31
|
-
if (!privateMap.has(receiver))
|
|
34
|
+
if (!privateMap.has(receiver)) {
|
|
35
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
36
|
+
}
|
|
32
37
|
return privateMap.get(receiver);
|
|
33
38
|
}
|
|
34
39
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -45,7 +50,9 @@ function _class_private_field_set(receiver, privateMap, value) {
|
|
|
45
50
|
return value;
|
|
46
51
|
}
|
|
47
52
|
function _class_private_method_get(receiver, privateSet, fn) {
|
|
48
|
-
if (!privateSet.has(receiver))
|
|
53
|
+
if (!privateSet.has(receiver)) {
|
|
54
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
55
|
+
}
|
|
49
56
|
return fn;
|
|
50
57
|
}
|
|
51
58
|
function _class_private_method_init(obj, privateSet) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -34,7 +39,9 @@ function _class_private_field_set(receiver, privateMap, value) {
|
|
|
34
39
|
return value;
|
|
35
40
|
}
|
|
36
41
|
function _class_private_method_get(receiver, privateSet, fn) {
|
|
37
|
-
if (!privateSet.has(receiver))
|
|
42
|
+
if (!privateSet.has(receiver)) {
|
|
43
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
44
|
+
}
|
|
38
45
|
return fn;
|
|
39
46
|
}
|
|
40
47
|
function _class_private_method_init(obj, privateSet) {
|
|
@@ -14,12 +14,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
17
|
-
if (descriptor.get)
|
|
17
|
+
if (descriptor.get) {
|
|
18
|
+
return descriptor.get.call(receiver);
|
|
19
|
+
}
|
|
18
20
|
return descriptor.value;
|
|
19
21
|
}
|
|
20
22
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
21
|
-
if (descriptor.set)
|
|
22
|
-
|
|
23
|
+
if (descriptor.set) {
|
|
24
|
+
descriptor.set.call(receiver, value);
|
|
25
|
+
} else {
|
|
23
26
|
if (!descriptor.writable) {
|
|
24
27
|
throw new TypeError("attempted to set read only private field");
|
|
25
28
|
}
|
|
@@ -27,7 +30,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
30
|
-
if (!privateMap.has(receiver))
|
|
33
|
+
if (!privateMap.has(receiver)) {
|
|
34
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
35
|
+
}
|
|
31
36
|
return privateMap.get(receiver);
|
|
32
37
|
}
|
|
33
38
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -14,12 +14,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
17
|
-
if (descriptor.get)
|
|
17
|
+
if (descriptor.get) {
|
|
18
|
+
return descriptor.get.call(receiver);
|
|
19
|
+
}
|
|
18
20
|
return descriptor.value;
|
|
19
21
|
}
|
|
20
22
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
21
|
-
if (descriptor.set)
|
|
22
|
-
|
|
23
|
+
if (descriptor.set) {
|
|
24
|
+
descriptor.set.call(receiver, value);
|
|
25
|
+
} else {
|
|
23
26
|
if (!descriptor.writable) {
|
|
24
27
|
throw new TypeError("attempted to set read only private field");
|
|
25
28
|
}
|
|
@@ -27,7 +30,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
30
|
-
if (!privateMap.has(receiver))
|
|
33
|
+
if (!privateMap.has(receiver)) {
|
|
34
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
35
|
+
}
|
|
31
36
|
return privateMap.get(receiver);
|
|
32
37
|
}
|
|
33
38
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -14,12 +14,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
17
|
-
if (descriptor.get)
|
|
17
|
+
if (descriptor.get) {
|
|
18
|
+
return descriptor.get.call(receiver);
|
|
19
|
+
}
|
|
18
20
|
return descriptor.value;
|
|
19
21
|
}
|
|
20
22
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
21
|
-
if (descriptor.set)
|
|
22
|
-
|
|
23
|
+
if (descriptor.set) {
|
|
24
|
+
descriptor.set.call(receiver, value);
|
|
25
|
+
} else {
|
|
23
26
|
if (!descriptor.writable) {
|
|
24
27
|
throw new TypeError("attempted to set read only private field");
|
|
25
28
|
}
|
|
@@ -27,7 +30,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
30
|
-
if (!privateMap.has(receiver))
|
|
33
|
+
if (!privateMap.has(receiver)) {
|
|
34
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
35
|
+
}
|
|
31
36
|
return privateMap.get(receiver);
|
|
32
37
|
}
|
|
33
38
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -23,12 +23,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
26
|
-
if (descriptor.get)
|
|
26
|
+
if (descriptor.get) {
|
|
27
|
+
return descriptor.get.call(receiver);
|
|
28
|
+
}
|
|
27
29
|
return descriptor.value;
|
|
28
30
|
}
|
|
29
31
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
30
|
-
if (descriptor.set)
|
|
31
|
-
|
|
32
|
+
if (descriptor.set) {
|
|
33
|
+
descriptor.set.call(receiver, value);
|
|
34
|
+
} else {
|
|
32
35
|
if (!descriptor.writable) {
|
|
33
36
|
throw new TypeError("attempted to set read only private field");
|
|
34
37
|
}
|
|
@@ -36,7 +39,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
39
|
-
if (!privateMap.has(receiver))
|
|
42
|
+
if (!privateMap.has(receiver)) {
|
|
43
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
44
|
+
}
|
|
40
45
|
return privateMap.get(receiver);
|
|
41
46
|
}
|
|
42
47
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -53,7 +58,9 @@ function _class_private_field_set(receiver, privateMap, value) {
|
|
|
53
58
|
return value;
|
|
54
59
|
}
|
|
55
60
|
function _class_private_method_get(receiver, privateSet, fn) {
|
|
56
|
-
if (!privateSet.has(receiver))
|
|
61
|
+
if (!privateSet.has(receiver)) {
|
|
62
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
63
|
+
}
|
|
57
64
|
return fn;
|
|
58
65
|
}
|
|
59
66
|
function _class_private_method_init(obj, privateSet) {
|
|
@@ -4,12 +4,15 @@ function _check_private_redeclaration(obj, privateCollection) {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
7
|
-
if (descriptor.get)
|
|
7
|
+
if (descriptor.get) {
|
|
8
|
+
return descriptor.get.call(receiver);
|
|
9
|
+
}
|
|
8
10
|
return descriptor.value;
|
|
9
11
|
}
|
|
10
12
|
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
11
|
-
if (descriptor.set)
|
|
12
|
-
|
|
13
|
+
if (descriptor.set) {
|
|
14
|
+
descriptor.set.call(receiver, value);
|
|
15
|
+
} else {
|
|
13
16
|
if (!descriptor.writable) {
|
|
14
17
|
throw new TypeError("attempted to set read only private field");
|
|
15
18
|
}
|
|
@@ -17,7 +20,9 @@ function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
20
|
-
if (!privateMap.has(receiver))
|
|
23
|
+
if (!privateMap.has(receiver)) {
|
|
24
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
25
|
+
}
|
|
21
26
|
return privateMap.get(receiver);
|
|
22
27
|
}
|
|
23
28
|
function _class_private_field_get(receiver, privateMap) {
|
|
@@ -34,7 +39,9 @@ function _class_private_field_set(receiver, privateMap, value) {
|
|
|
34
39
|
return value;
|
|
35
40
|
}
|
|
36
41
|
function _class_private_method_get(receiver, privateSet, fn) {
|
|
37
|
-
if (!privateSet.has(receiver))
|
|
42
|
+
if (!privateSet.has(receiver)) {
|
|
43
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
44
|
+
}
|
|
38
45
|
return fn;
|
|
39
46
|
}
|
|
40
47
|
function _class_private_method_init(obj, privateSet) {
|
|
@@ -30,12 +30,18 @@ function _getRequireWildcardCache(nodeInterop) {
|
|
|
30
30
|
})(nodeInterop);
|
|
31
31
|
}
|
|
32
32
|
function _interop_require_wildcard(obj, nodeInterop) {
|
|
33
|
-
if (!nodeInterop && obj && obj.__esModule)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
34
|
+
return obj;
|
|
35
|
+
}
|
|
36
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
37
|
+
return {
|
|
38
|
+
default: obj
|
|
39
|
+
};
|
|
40
|
+
}
|
|
37
41
|
var cache = _getRequireWildcardCache(nodeInterop);
|
|
38
|
-
if (cache && cache.has(obj))
|
|
42
|
+
if (cache && cache.has(obj)) {
|
|
43
|
+
return cache.get(obj);
|
|
44
|
+
}
|
|
39
45
|
var newObj = {
|
|
40
46
|
__proto__: null
|
|
41
47
|
};
|
|
@@ -43,12 +49,17 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
43
49
|
for(var key in obj){
|
|
44
50
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
45
51
|
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
46
|
-
if (desc && (desc.get || desc.set))
|
|
47
|
-
|
|
52
|
+
if (desc && (desc.get || desc.set)) {
|
|
53
|
+
Object.defineProperty(newObj, key, desc);
|
|
54
|
+
} else {
|
|
55
|
+
newObj[key] = obj[key];
|
|
56
|
+
}
|
|
48
57
|
}
|
|
49
58
|
}
|
|
50
59
|
newObj.default = obj;
|
|
51
|
-
if (cache)
|
|
60
|
+
if (cache) {
|
|
61
|
+
cache.set(obj, newObj);
|
|
62
|
+
}
|
|
52
63
|
return newObj;
|
|
53
64
|
}
|
|
54
65
|
class CoreAbstract {
|