@revolist/revogrid 4.0.2-next → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/cjs/app-globals-53fde1aa.js +14 -0
- package/dist/cjs/app-globals-53fde1aa.js.map +1 -0
- package/dist/cjs/column.service-2066d651.js +545 -0
- package/dist/cjs/column.service-2066d651.js.map +1 -0
- package/dist/cjs/debounce-e2b7c6fb.js +226 -0
- package/dist/cjs/debounce-e2b7c6fb.js.map +1 -0
- package/dist/cjs/dimension.helpers-ee39d6c4.js +4218 -0
- package/dist/cjs/dimension.helpers-ee39d6c4.js.map +1 -0
- package/dist/cjs/dispatcher-a58fa91a.js +34 -0
- package/dist/cjs/dispatcher-a58fa91a.js.map +1 -0
- package/dist/cjs/events-7ccd6894.js +233 -0
- package/dist/cjs/events-7ccd6894.js.map +1 -0
- package/dist/cjs/filter.button-db6cbd2e.js +44 -0
- package/dist/cjs/filter.button-db6cbd2e.js.map +1 -0
- package/dist/cjs/header-cell-renderer-3df76829.js +304 -0
- package/dist/cjs/header-cell-renderer-3df76829.js.map +1 -0
- package/dist/cjs/index-73c149e3.js +106 -0
- package/dist/cjs/index-73c149e3.js.map +1 -0
- package/dist/cjs/index-84e32c2a.js +1868 -0
- package/dist/cjs/index-84e32c2a.js.map +1 -0
- package/dist/cjs/index.cjs.js +53 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/key.utils-dc4ac217.js +129 -0
- package/dist/cjs/key.utils-dc4ac217.js.map +1 -0
- package/dist/cjs/loader.cjs.js +12 -27
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/{resize-observer-8dc80084.js → resize-observer-d009a220.js} +30 -13
- package/dist/cjs/resize-observer-d009a220.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.entry.js +3992 -0
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.js +22 -65
- package/dist/cjs/revo-grid.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution_6.cjs.entry.js +1270 -0
- package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +508 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js +958 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +268 -115
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/selection.store-2e110a67.js +400 -0
- package/dist/cjs/selection.store-2e110a67.js.map +1 -0
- package/dist/cjs/storeTypes-b3f924b2.js +106 -0
- package/dist/cjs/storeTypes-b3f924b2.js.map +1 -0
- package/dist/cjs/throttle-f7aee21b.js +240 -0
- package/dist/cjs/throttle-f7aee21b.js.map +1 -0
- package/dist/cjs/toNumber-838e6ff5.js +340 -0
- package/dist/cjs/toNumber-838e6ff5.js.map +1 -0
- package/dist/cjs/viewport.helpers-6670177c.js +262 -0
- package/dist/cjs/viewport.helpers-6670177c.js.map +1 -0
- package/dist/collection/collection-manifest.json +18 -16
- package/dist/collection/components/attribution/revogr-attribution.js +20 -0
- package/dist/collection/components/attribution/revogr-attribution.js.map +1 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js +410 -115
- package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
- package/dist/collection/components/data/cell-renderer.js +39 -0
- package/dist/collection/components/data/cell-renderer.js.map +1 -0
- package/dist/collection/components/data/column.service.js +302 -0
- package/dist/collection/components/data/column.service.js.map +1 -0
- package/dist/collection/components/data/revogr-data-style.css +18 -11
- package/dist/collection/components/data/revogr-data.js +626 -301
- package/dist/collection/components/data/revogr-data.js.map +1 -0
- package/dist/collection/components/data/row-highlight.plugin.js +51 -0
- package/dist/collection/components/data/row-highlight.plugin.js.map +1 -0
- package/dist/collection/components/data/row-renderer.js +16 -0
- package/dist/collection/components/data/row-renderer.js.map +1 -0
- package/dist/collection/components/editors/edit.utils.js +9 -0
- package/dist/collection/components/editors/edit.utils.js.map +1 -0
- package/dist/collection/components/{overlay → editors}/revogr-edit-style.css +15 -9
- package/dist/collection/components/editors/revogr-edit.js +316 -0
- package/dist/collection/components/editors/revogr-edit.js.map +1 -0
- package/dist/collection/components/editors/text-editor.js +73 -0
- package/dist/collection/components/editors/text-editor.js.map +1 -0
- package/dist/collection/components/header/header-cell-renderer.js +28 -0
- package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
- package/dist/collection/components/header/header-renderer.js +47 -0
- package/dist/collection/components/header/header-renderer.js.map +1 -0
- package/dist/collection/components/header/revogr-header-style.css +15 -9
- package/dist/collection/components/header/revogr-header.js +421 -297
- package/dist/collection/components/header/revogr-header.js.map +1 -0
- package/dist/collection/components/order/order-renderer.js +50 -0
- package/dist/collection/components/order/order-renderer.js.map +1 -0
- package/dist/collection/components/order/order-row.service.js +72 -0
- package/dist/collection/components/order/order-row.service.js.map +1 -0
- package/dist/collection/components/order/revogr-order-editor.js +381 -350
- package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
- package/dist/collection/components/overlay/autofill.service.js +206 -179
- package/dist/collection/components/overlay/autofill.service.js.map +1 -0
- package/dist/collection/components/overlay/keyboard.service.js +137 -124
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +1208 -703
- package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +86 -13
- package/dist/collection/components/overlay/selection.utils.js +86 -82
- package/dist/collection/components/overlay/selection.utils.js.map +1 -0
- package/dist/collection/components/revoGrid/grid.helpers.js +28 -13
- package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/revo-grid-style.css +143 -51
- package/dist/collection/components/revoGrid/revo-grid.js +2834 -2181
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js +9 -4
- package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js +23 -19
- package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js +78 -50
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.service.js +224 -204
- package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +262 -204
- package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
- package/dist/collection/components/rowHeaders/row-header-render.js +4 -0
- package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +20 -13
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +535 -369
- package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js +44 -0
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js.map +1 -0
- package/dist/collection/components/scrollable/revogr-scroll-style.css +24 -18
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +286 -247
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
- package/dist/collection/components/selectionFocus/revogr-focus-style.css +16 -10
- package/dist/collection/components/selectionFocus/revogr-focus.js +366 -96
- package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +16 -10
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js +149 -128
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
- package/dist/collection/components/vnode/vnode-converter.js +81 -0
- package/dist/collection/components/vnode/vnode-converter.js.map +1 -0
- package/dist/collection/components/vnode/vnode.utils.js +18 -0
- package/dist/collection/components/vnode/vnode.utils.js.map +1 -0
- package/dist/collection/global/global.js +15 -11
- package/dist/collection/global/global.js.map +1 -0
- package/dist/collection/index.js +18 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/plugins/base.plugin.js +88 -0
- package/dist/collection/plugins/base.plugin.js.map +1 -0
- package/dist/collection/plugins/column.auto-size.plugin.js +234 -0
- package/dist/collection/plugins/column.auto-size.plugin.js.map +1 -0
- package/dist/collection/plugins/column.stretch.plugin.js +96 -0
- package/dist/collection/plugins/column.stretch.plugin.js.map +1 -0
- package/dist/collection/plugins/dispatcher.js +27 -0
- package/dist/collection/plugins/dispatcher.js.map +1 -0
- package/dist/collection/plugins/export/csv.js +57 -53
- package/dist/collection/plugins/export/csv.js.map +1 -0
- package/dist/collection/plugins/export/export.plugin.js +154 -150
- package/dist/collection/plugins/export/export.plugin.js.map +1 -0
- package/dist/collection/plugins/export/types.js +1 -0
- package/dist/collection/plugins/export/types.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/equal.js +15 -7
- package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +10 -6
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +7 -3
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +12 -8
- package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +7 -3
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/set.js +4 -0
- package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +17 -13
- package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js +17 -10
- package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
- package/dist/collection/plugins/filter/filter.button.js +21 -13
- package/dist/collection/plugins/filter/filter.button.js.map +1 -0
- package/dist/collection/plugins/filter/filter.plugin.js +280 -185
- package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
- package/dist/collection/plugins/filter/filter.pop.js +492 -246
- package/dist/collection/plugins/filter/filter.pop.js.map +1 -0
- package/dist/collection/plugins/filter/filter.service.js +42 -38
- package/dist/collection/plugins/filter/filter.service.js.map +1 -0
- package/dist/collection/plugins/filter/filter.style.css +68 -15
- package/dist/collection/plugins/filter/filter.types.js +1 -0
- package/dist/collection/plugins/filter/filter.types.js.map +1 -0
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +30 -26
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js.map +1 -0
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +38 -30
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js.map +1 -0
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +22 -18
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +7 -2
- package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +64 -61
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +239 -237
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +27 -24
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js +101 -131
- package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +47 -43
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +167 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js +69 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js +218 -163
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.sign.js +6 -2
- package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
- package/dist/collection/serve/controller.js +233 -0
- package/dist/collection/{utilsExternal/generate-data.js → serve/data.js} +72 -32
- package/dist/collection/services/cell.helpers.js +9 -5
- package/dist/collection/services/cell.helpers.js.map +1 -0
- package/dist/collection/services/column.data.provider.js +201 -185
- package/dist/collection/services/column.data.provider.js.map +1 -0
- package/dist/collection/services/data.provider.js +70 -45
- package/dist/collection/services/data.provider.js.map +1 -0
- package/dist/collection/services/dimension.provider.js +143 -84
- package/dist/collection/services/dimension.provider.js.map +1 -0
- package/dist/collection/services/local.scroll.service.js +120 -0
- package/dist/collection/services/local.scroll.service.js.map +1 -0
- package/dist/collection/services/local.scroll.timer.js +42 -0
- package/dist/collection/services/local.scroll.timer.js.map +1 -0
- package/dist/collection/services/resizable.directive.js +211 -226
- package/dist/collection/services/resizable.directive.js.map +1 -0
- package/dist/collection/services/resizable.element.js +39 -0
- package/dist/collection/services/resizable.element.js.map +1 -0
- package/dist/collection/services/selection.store.connector.js +257 -208
- package/dist/collection/services/selection.store.connector.js.map +1 -0
- package/dist/collection/services/viewport.provider.js +16 -12
- package/dist/collection/services/viewport.provider.js.map +1 -0
- package/dist/collection/store/dataSource/data.proxy.js +29 -25
- package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
- package/dist/collection/store/dataSource/data.store.js +100 -93
- package/dist/collection/store/dataSource/data.store.js.map +1 -0
- package/dist/collection/store/dataSource/index.js +7 -0
- package/dist/collection/store/dataSource/index.js.map +1 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js +36 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.helpers.js +97 -95
- package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
- package/dist/collection/store/dimension/dimension.store.js +106 -48
- package/dist/collection/store/dimension/dimension.store.js.map +1 -0
- package/dist/collection/store/dimension/index.js +6 -0
- package/dist/collection/store/dimension/index.js.map +1 -0
- package/dist/collection/store/selection/index.js +7 -0
- package/dist/collection/store/selection/index.js.map +1 -0
- package/dist/collection/store/selection/selection.helpers.js +43 -39
- package/dist/collection/store/selection/selection.helpers.js.map +1 -0
- package/dist/collection/store/selection/selection.store.js +75 -63
- package/dist/collection/store/selection/selection.store.js.map +1 -0
- package/dist/collection/store/selection/selection.store.service.js +35 -31
- package/dist/collection/store/selection/selection.store.service.js.map +1 -0
- package/dist/collection/store/storeTypes.js +10 -2
- package/dist/collection/store/storeTypes.js.map +1 -0
- package/dist/collection/store/viewport/index.js +6 -0
- package/dist/collection/store/viewport/index.js.map +1 -0
- package/dist/collection/store/viewport/viewport.helpers.js +247 -0
- package/dist/collection/store/viewport/viewport.helpers.js.map +1 -0
- package/dist/collection/store/viewport/viewport.store.js +193 -0
- package/dist/collection/store/viewport/viewport.store.js.map +1 -0
- package/dist/collection/themeManager/theme.compact.js +7 -3
- package/dist/collection/themeManager/theme.compact.js.map +1 -0
- package/dist/collection/themeManager/theme.default.js +7 -3
- package/dist/collection/themeManager/theme.default.js.map +1 -0
- package/dist/collection/themeManager/theme.material.js +7 -3
- package/dist/collection/themeManager/theme.material.js.map +1 -0
- package/dist/collection/themeManager/theme.service.js +53 -0
- package/dist/collection/themeManager/theme.service.js.map +1 -0
- package/dist/collection/types/dimension.js +2 -0
- package/dist/collection/types/dimension.js.map +1 -0
- package/dist/collection/types/interfaces.js +2 -0
- package/dist/collection/types/interfaces.js.map +1 -0
- package/dist/collection/types/plugin.js +2 -0
- package/dist/collection/types/plugin.js.map +1 -0
- package/dist/collection/types/plugin.types.js +2 -0
- package/dist/collection/types/plugin.types.js.map +1 -0
- package/dist/collection/types/selection.js +2 -0
- package/dist/collection/types/selection.js.map +1 -0
- package/dist/collection/types/theme.js +2 -0
- package/dist/collection/types/theme.js.map +1 -0
- package/dist/collection/types/viewport.interfaces.js +2 -0
- package/dist/collection/types/viewport.interfaces.js.map +1 -0
- package/dist/collection/utils/browser.js +7 -0
- package/dist/collection/utils/browser.js.map +1 -0
- package/dist/collection/utils/closest.polifill.js +22 -0
- package/dist/collection/utils/closest.polifill.js.map +1 -0
- package/dist/collection/utils/consts.js +8 -0
- package/dist/collection/utils/consts.js.map +1 -0
- package/dist/collection/utils/events.js +29 -0
- package/dist/collection/utils/events.js.map +1 -0
- package/dist/collection/utils/header.utils.js +24 -0
- package/dist/collection/utils/header.utils.js.map +1 -0
- package/dist/collection/utils/index.js +125 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/key.codes.js +76 -0
- package/dist/collection/utils/key.codes.js.map +1 -0
- package/dist/collection/utils/key.utils.js +84 -0
- package/dist/collection/utils/key.utils.js.map +1 -0
- package/dist/collection/utils/mobile.js +7 -0
- package/dist/collection/utils/mobile.js.map +1 -0
- package/dist/collection/utils/platform.js +5 -1
- package/dist/collection/utils/platform.js.map +1 -0
- package/dist/collection/utils/resize-observer.polifill.js +10 -0
- package/dist/collection/utils/resize-observer.polifill.js.map +1 -0
- package/dist/collection/utils/row-header-utils.js +9 -0
- package/dist/collection/utils/row-header-utils.js.map +1 -0
- package/dist/collection/utils/store.utils.js +7 -3
- package/dist/collection/utils/store.utils.js.map +1 -0
- package/dist/esm/app-globals-ef1fca59.js +12 -0
- package/dist/esm/app-globals-ef1fca59.js.map +1 -0
- package/dist/esm/column.service-21a3af74.js +520 -0
- package/dist/esm/column.service-21a3af74.js.map +1 -0
- package/dist/esm/debounce-7781346d.js +224 -0
- package/dist/esm/debounce-7781346d.js.map +1 -0
- package/dist/esm/dimension.helpers-a3065cb1.js +4185 -0
- package/dist/esm/dimension.helpers-a3065cb1.js.map +1 -0
- package/dist/esm/dispatcher-8ea9187d.js +30 -0
- package/dist/esm/dispatcher-8ea9187d.js.map +1 -0
- package/dist/esm/events-3dd8ee7c.js +228 -0
- package/dist/esm/events-3dd8ee7c.js.map +1 -0
- package/dist/esm/filter.button-46ce4f80.js +38 -0
- package/dist/esm/filter.button-46ce4f80.js.map +1 -0
- package/dist/esm/header-cell-renderer-1ca84d5f.js +301 -0
- package/dist/esm/header-cell-renderer-1ca84d5f.js.map +1 -0
- package/dist/esm/index-21436631.js +1837 -0
- package/dist/esm/index-21436631.js.map +1 -0
- package/dist/esm/index-98fd0168.js +79 -0
- package/dist/esm/index-98fd0168.js.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/key.utils-4586a3d6.js +120 -0
- package/dist/esm/key.utils-4586a3d6.js.map +1 -0
- package/dist/esm/loader.js +11 -26
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/{resize-observer-56b7b34f.js → resize-observer-83c9e167.js} +30 -14
- package/dist/esm/resize-observer-83c9e167.js.map +1 -0
- package/dist/esm/revo-grid.entry.js +3988 -0
- package/dist/esm/revo-grid.entry.js.map +1 -0
- package/dist/esm/revo-grid.js +19 -65
- package/dist/esm/revo-grid.js.map +1 -0
- package/dist/esm/revogr-attribution_6.entry.js +1261 -0
- package/dist/esm/revogr-attribution_6.entry.js.map +1 -0
- package/dist/esm/revogr-clipboard_3.entry.js +502 -0
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/esm/revogr-data_4.entry.js +951 -0
- package/dist/esm/revogr-data_4.entry.js.map +1 -0
- package/dist/esm/revogr-filter-panel.entry.js +268 -115
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
- package/dist/esm/selection.store-2577ddf9.js +391 -0
- package/dist/esm/selection.store-2577ddf9.js.map +1 -0
- package/dist/esm/storeTypes-f2647985.js +101 -0
- package/dist/esm/storeTypes-f2647985.js.map +1 -0
- package/dist/esm/throttle-cfd527d6.js +235 -0
- package/dist/esm/throttle-cfd527d6.js.map +1 -0
- package/dist/esm/toNumber-8de324a7.js +331 -0
- package/dist/esm/toNumber-8de324a7.js.map +1 -0
- package/dist/esm/viewport.helpers-6591d423.js +251 -0
- package/dist/esm/viewport.helpers-6591d423.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/loader/cdn.js +4 -0
- package/dist/loader/index.cjs.js +4 -0
- package/{loader → dist/loader}/index.d.ts +11 -3
- package/dist/loader/index.es2017.js +4 -0
- package/dist/{esm/polyfills/es5-html-element.js → loader/index.js} +5 -1
- package/{loader → dist/loader}/package.json +1 -0
- package/dist/revo-grid/app-globals-ef1fca59.js +5 -0
- package/dist/revo-grid/app-globals-ef1fca59.js.map +1 -0
- package/dist/revo-grid/column.service-21a3af74.js +5 -0
- package/dist/revo-grid/column.service-21a3af74.js.map +1 -0
- package/dist/revo-grid/debounce-7781346d.js +5 -0
- package/dist/revo-grid/debounce-7781346d.js.map +1 -0
- package/dist/revo-grid/dimension.helpers-a3065cb1.js +5 -0
- package/dist/revo-grid/dimension.helpers-a3065cb1.js.map +1 -0
- package/dist/revo-grid/dispatcher-8ea9187d.js +5 -0
- package/dist/revo-grid/dispatcher-8ea9187d.js.map +1 -0
- package/dist/revo-grid/events-3dd8ee7c.js +5 -0
- package/dist/revo-grid/events-3dd8ee7c.js.map +1 -0
- package/dist/revo-grid/filter.button-46ce4f80.js +5 -0
- package/dist/revo-grid/filter.button-46ce4f80.js.map +1 -0
- package/dist/revo-grid/header-cell-renderer-1ca84d5f.js +5 -0
- package/dist/revo-grid/header-cell-renderer-1ca84d5f.js.map +1 -0
- package/dist/revo-grid/index-21436631.js +6 -0
- package/dist/revo-grid/index-21436631.js.map +1 -0
- package/dist/revo-grid/index-98fd0168.js +5 -0
- package/dist/revo-grid/index-98fd0168.js.map +1 -0
- package/dist/revo-grid/index.esm.js +5 -0
- package/dist/revo-grid/index.esm.js.map +1 -0
- package/dist/revo-grid/key.utils-4586a3d6.js +5 -0
- package/dist/revo-grid/key.utils-4586a3d6.js.map +1 -0
- package/dist/revo-grid/resize-observer-83c9e167.js +5 -0
- package/dist/revo-grid/resize-observer-83c9e167.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.js +5 -0
- package/dist/revo-grid/revo-grid.entry.js.map +1 -0
- package/dist/revo-grid/revo-grid.esm.js +5 -1
- package/dist/revo-grid/revo-grid.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution_6.entry.js +5 -0
- package/dist/revo-grid/revogr-attribution_6.entry.js.map +1 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js +5 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/revo-grid/revogr-data_4.entry.js +5 -0
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js +5 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
- package/dist/revo-grid/selection.store-2577ddf9.js +5 -0
- package/dist/revo-grid/selection.store-2577ddf9.js.map +1 -0
- package/dist/revo-grid/storeTypes-f2647985.js +5 -0
- package/dist/revo-grid/storeTypes-f2647985.js.map +1 -0
- package/dist/revo-grid/throttle-cfd527d6.js +5 -0
- package/dist/revo-grid/throttle-cfd527d6.js.map +1 -0
- package/dist/revo-grid/toNumber-8de324a7.js +5 -0
- package/dist/revo-grid/toNumber-8de324a7.js.map +1 -0
- package/dist/revo-grid/viewport.helpers-6591d423.js +5 -0
- package/dist/revo-grid/viewport.helpers-6591d423.js.map +1 -0
- package/dist/types/components/attribution/revogr-attribution.d.ts +12 -0
- package/dist/types/components/clipboard/revogr-clipboard.d.ts +78 -10
- package/dist/types/components/data/cell-renderer.d.ts +14 -0
- package/dist/types/components/data/column.service.d.ts +60 -0
- package/dist/types/components/data/revogr-data.d.ts +101 -27
- package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
- package/dist/types/components/data/{rowRenderer.d.ts → row-renderer.d.ts} +6 -5
- package/dist/types/components/editors/revogr-edit.d.ts +63 -0
- package/dist/types/components/editors/text-editor.d.ts +46 -0
- package/dist/types/components/header/header-cell-renderer.d.ts +11 -0
- package/dist/types/components/header/header-renderer.d.ts +17 -0
- package/dist/types/components/header/revogr-header.d.ts +70 -22
- package/dist/types/components/order/order-renderer.d.ts +29 -0
- package/dist/types/components/order/order-row.service.d.ts +28 -0
- package/dist/types/components/order/revogr-order-editor.d.ts +43 -41
- package/dist/types/components/overlay/autofill.service.d.ts +69 -54
- package/dist/types/components/overlay/keyboard.service.d.ts +24 -23
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +216 -75
- package/dist/types/components/overlay/selection.utils.d.ts +24 -27
- package/dist/types/components/revoGrid/grid.helpers.d.ts +16 -11
- package/dist/types/components/revoGrid/revo-grid.d.ts +555 -403
- package/dist/types/components/revoGrid/viewport.helpers.d.ts +4 -3
- package/dist/types/components/revoGrid/viewport.resize.service.d.ts +7 -7
- package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +20 -21
- package/dist/types/components/revoGrid/viewport.service.d.ts +54 -56
- package/dist/types/components/rowHeaders/revogr-row-headers.d.ts +45 -12
- package/dist/types/components/rowHeaders/row-header-render.d.ts +5 -5
- package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +115 -76
- package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
- package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +39 -22
- package/dist/types/components/selectionFocus/revogr-focus.d.ts +61 -9
- package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +26 -11
- package/dist/types/components/vnode/vnode-converter.d.ts +19 -0
- package/dist/types/components/vnode/vnode.utils.d.ts +8 -0
- package/dist/types/components.d.ts +1595 -274
- package/dist/types/index.d.ts +14 -0
- package/dist/types/plugins/base.plugin.d.ts +49 -0
- package/dist/types/plugins/column.auto-size.plugin.d.ts +47 -0
- package/dist/types/plugins/column.stretch.plugin.d.ts +22 -0
- package/dist/types/plugins/dispatcher.d.ts +16 -0
- package/dist/types/plugins/export/csv.d.ts +6 -6
- package/dist/types/plugins/export/export.plugin.d.ts +18 -18
- package/dist/types/plugins/export/types.d.ts +15 -15
- package/dist/types/plugins/filter/filter.button.d.ts +7 -3
- package/dist/types/plugins/filter/filter.plugin.d.ts +61 -43
- package/dist/types/plugins/filter/filter.pop.d.ts +60 -35
- package/dist/types/plugins/filter/filter.service.d.ts +15 -15
- package/dist/types/plugins/filter/filter.types.d.ts +7 -7
- package/dist/types/plugins/groupingColumn/columnGroupsRenderer.d.ts +16 -13
- package/dist/types/plugins/groupingColumn/grouping.col.plugin.d.ts +10 -6
- package/dist/types/plugins/groupingColumn/headerGroupRenderer.d.ts +12 -10
- package/dist/types/plugins/groupingRow/grouping.const.d.ts +8 -7
- package/dist/types/plugins/groupingRow/grouping.row.expand.service.d.ts +6 -6
- package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +32 -37
- package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +7 -5
- package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +23 -15
- package/dist/types/plugins/groupingRow/grouping.service.d.ts +18 -16
- package/dist/types/plugins/groupingRow/grouping.trimmed.service.d.ts +1 -1
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +56 -0
- package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +40 -27
- package/dist/types/plugins/sorting/sorting.sign.d.ts +3 -3
- package/dist/types/services/cell.helpers.d.ts +2 -2
- package/dist/types/services/column.data.provider.d.ts +33 -35
- package/dist/types/services/data.provider.d.ts +27 -21
- package/dist/types/services/dimension.provider.d.ts +52 -32
- package/dist/types/services/local.scroll.service.d.ts +37 -0
- package/dist/types/services/local.scroll.timer.d.ts +26 -0
- package/dist/types/services/resizable.directive.d.ts +52 -51
- package/dist/types/services/resizable.element.d.ts +4 -0
- package/dist/types/services/selection.store.connector.d.ts +54 -36
- package/dist/types/services/viewport.provider.d.ts +6 -8
- package/dist/types/stencil-public-runtime.d.ts +331 -217
- package/dist/types/store/dataSource/data.proxy.d.ts +3 -3
- package/dist/types/store/dataSource/data.store.d.ts +45 -46
- package/dist/types/store/dataSource/index.d.ts +3 -0
- package/dist/types/store/dataSource/trimmed.plugin.d.ts +10 -0
- package/dist/types/store/dimension/dimension.helpers.d.ts +24 -9
- package/dist/types/store/dimension/dimension.store.d.ts +29 -11
- package/dist/types/store/dimension/index.d.ts +2 -0
- package/dist/types/store/selection/index.d.ts +3 -0
- package/dist/types/store/selection/selection.helpers.d.ts +1 -3
- package/dist/types/store/selection/selection.store.d.ts +19 -17
- package/dist/types/store/selection/selection.store.service.d.ts +12 -13
- package/dist/types/store/storeTypes.d.ts +4 -4
- package/dist/types/store/viewport/index.d.ts +2 -0
- package/dist/types/store/viewport/viewport.helpers.d.ts +54 -0
- package/dist/types/store/viewport/viewport.store.d.ts +36 -0
- package/dist/types/themeManager/theme.compact.d.ts +3 -3
- package/dist/types/themeManager/theme.default.d.ts +3 -3
- package/dist/types/themeManager/theme.material.d.ts +3 -3
- package/dist/types/themeManager/theme.service.d.ts +13 -0
- package/dist/types/types/dimension.d.ts +8 -0
- package/dist/types/types/interfaces.d.ts +243 -0
- package/dist/types/types/plugin.d.ts +9 -0
- package/dist/types/types/plugin.types.d.ts +12 -0
- package/dist/types/types/selection.d.ts +115 -0
- package/dist/types/types/theme.d.ts +7 -0
- package/dist/types/types/viewport.interfaces.d.ts +51 -0
- package/dist/types/utils/browser.d.ts +1 -0
- package/dist/types/utils/consts.d.ts +5 -1
- package/dist/types/utils/events.d.ts +2 -0
- package/dist/types/utils/{utils.d.ts → index.d.ts} +17 -1
- package/dist/types/utils/key.codes.d.ts +70 -0
- package/dist/types/utils/{keyCodes.utils.d.ts → key.utils.d.ts} +5 -1
- package/dist/types/utils/mobile.d.ts +1 -0
- package/dist/types/utils/platform.d.ts +1 -1
- package/dist/types/utils/row-header-utils.d.ts +2 -0
- package/dist/types/utils/store.utils.d.ts +2 -2
- package/hydrate/index.d.ts +218 -0
- package/hydrate/index.js +32381 -0
- package/hydrate/package.json +6 -0
- package/package.json +94 -52
- package/readme.md +135 -98
- package/standalone/_baseIteratee.js +1237 -0
- package/standalone/_baseIteratee.js.map +1 -0
- package/standalone/_stringToPath.js +1389 -0
- package/standalone/_stringToPath.js.map +1 -0
- package/standalone/column.service.js +889 -0
- package/standalone/column.service.js.map +1 -0
- package/standalone/consts.js +30 -0
- package/standalone/consts.js.map +1 -0
- package/standalone/data.store.js +705 -0
- package/standalone/data.store.js.map +1 -0
- package/standalone/debounce.js +225 -0
- package/standalone/debounce.js.map +1 -0
- package/standalone/dimension.helpers.js +355 -0
- package/standalone/dimension.helpers.js.map +1 -0
- package/standalone/each.js +200 -0
- package/standalone/each.js.map +1 -0
- package/standalone/filter.button.js +38 -0
- package/standalone/filter.button.js.map +1 -0
- package/standalone/identity.js +349 -0
- package/standalone/identity.js.map +1 -0
- package/standalone/index.d.ts +66 -0
- package/standalone/index.js +42 -0
- package/standalone/index.js.map +1 -0
- package/standalone/index2.js +55 -0
- package/standalone/index2.js.map +1 -0
- package/standalone/isObjectLike.js +195 -0
- package/standalone/isObjectLike.js.map +1 -0
- package/standalone/local.scroll.timer.js +163 -0
- package/standalone/local.scroll.timer.js.map +1 -0
- package/{custom-element → standalone}/resize-observer.js +30 -14
- package/standalone/resize-observer.js.map +1 -0
- package/standalone/revo-grid.d.ts +11 -0
- package/standalone/revo-grid.js +4252 -0
- package/standalone/revo-grid.js.map +1 -0
- package/standalone/revogr-attribution.d.ts +11 -0
- package/standalone/revogr-attribution.js +11 -0
- package/standalone/revogr-attribution.js.map +1 -0
- package/standalone/revogr-attribution2.js +31 -0
- package/standalone/revogr-attribution2.js.map +1 -0
- package/standalone/revogr-clipboard.d.ts +11 -0
- package/standalone/revogr-clipboard.js +11 -0
- package/standalone/revogr-clipboard.js.map +1 -0
- package/standalone/revogr-clipboard2.js +159 -0
- package/standalone/revogr-clipboard2.js.map +1 -0
- package/standalone/revogr-data.d.ts +11 -0
- package/standalone/revogr-data.js +11 -0
- package/standalone/revogr-data.js.map +1 -0
- package/standalone/revogr-data2.js +368 -0
- package/standalone/revogr-data2.js.map +1 -0
- package/standalone/revogr-edit.d.ts +11 -0
- package/standalone/revogr-edit.js +11 -0
- package/standalone/revogr-edit.js.map +1 -0
- package/standalone/revogr-edit2.js +335 -0
- package/standalone/revogr-edit2.js.map +1 -0
- package/standalone/revogr-filter-panel.d.ts +11 -0
- package/standalone/revogr-filter-panel.js +310 -0
- package/standalone/revogr-filter-panel.js.map +1 -0
- package/standalone/revogr-focus.d.ts +11 -0
- package/standalone/revogr-focus.js +11 -0
- package/standalone/revogr-focus.js.map +1 -0
- package/standalone/revogr-focus2.js +106 -0
- package/standalone/revogr-focus2.js.map +1 -0
- package/standalone/revogr-header.d.ts +11 -0
- package/standalone/revogr-header.js +11 -0
- package/standalone/revogr-header.js.map +1 -0
- package/standalone/revogr-header2.js +667 -0
- package/standalone/revogr-header2.js.map +1 -0
- package/standalone/revogr-order-editor.d.ts +11 -0
- package/standalone/revogr-order-editor.js +11 -0
- package/standalone/revogr-order-editor.js.map +1 -0
- package/standalone/revogr-order-editor2.js +199 -0
- package/standalone/revogr-order-editor2.js.map +1 -0
- package/standalone/revogr-overlay-selection.d.ts +11 -0
- package/standalone/revogr-overlay-selection.js +11 -0
- package/standalone/revogr-overlay-selection.js.map +1 -0
- package/standalone/revogr-overlay-selection2.js +876 -0
- package/standalone/revogr-overlay-selection2.js.map +1 -0
- package/standalone/revogr-row-headers.d.ts +11 -0
- package/standalone/revogr-row-headers.js +11 -0
- package/standalone/revogr-row-headers.js.map +1 -0
- package/standalone/revogr-row-headers2.js +555 -0
- package/standalone/revogr-row-headers2.js.map +1 -0
- package/standalone/revogr-scroll-virtual.d.ts +11 -0
- package/standalone/revogr-scroll-virtual.js +11 -0
- package/standalone/revogr-scroll-virtual.js.map +1 -0
- package/standalone/revogr-scroll-virtual2.js +187 -0
- package/standalone/revogr-scroll-virtual2.js.map +1 -0
- package/standalone/revogr-temp-range.d.ts +11 -0
- package/standalone/revogr-temp-range.js +11 -0
- package/standalone/revogr-temp-range.js.map +1 -0
- package/standalone/revogr-temp-range2.js +90 -0
- package/standalone/revogr-temp-range2.js.map +1 -0
- package/standalone/revogr-viewport-scroll.d.ts +11 -0
- package/standalone/revogr-viewport-scroll.js +11 -0
- package/standalone/revogr-viewport-scroll.js.map +1 -0
- package/standalone/revogr-viewport-scroll2.js +336 -0
- package/standalone/revogr-viewport-scroll2.js.map +1 -0
- package/standalone/selection.utils.js +108 -0
- package/standalone/selection.utils.js.map +1 -0
- package/standalone/throttle.js +79 -0
- package/standalone/throttle.js.map +1 -0
- package/standalone/toNumber.js +144 -0
- package/standalone/toNumber.js.map +1 -0
- package/standalone/vnode-converter.js +45 -0
- package/standalone/vnode-converter.js.map +1 -0
- package/standalone/vnode-html.d.ts +11 -0
- package/standalone/vnode-html.js +11 -0
- package/standalone/vnode-html.js.map +1 -0
- package/custom-element/index.d.ts +0 -117
- package/custom-element/index.js +0 -28857
- package/dist/cjs/css-shim-e33df79c.js +0 -6
- package/dist/cjs/dom-c8b6d1a7.js +0 -75
- package/dist/cjs/filter.button-2396a488.js +0 -27
- package/dist/cjs/index-d3f67f2e.js +0 -1729
- package/dist/cjs/revo-grid_11.cjs.entry.js +0 -28621
- package/dist/cjs/revogr-clipboard.cjs.entry.js +0 -53
- package/dist/collection/components/button/button.js +0 -4
- package/dist/collection/components/data/cellRenderer.js +0 -19
- package/dist/collection/components/data/columnService.js +0 -243
- package/dist/collection/components/data/rowRenderer.js +0 -6
- package/dist/collection/components/header/headerCellRenderer.js +0 -19
- package/dist/collection/components/header/headerRenderer.js +0 -45
- package/dist/collection/components/order/orderRenderer.js +0 -50
- package/dist/collection/components/order/rowOrderService.js +0 -68
- package/dist/collection/components/overlay/clipboard.service.js +0 -39
- package/dist/collection/components/overlay/editors/edit.utils.js +0 -5
- package/dist/collection/components/overlay/editors/text.js +0 -35
- package/dist/collection/components/overlay/revogr-edit.js +0 -163
- package/dist/collection/components/revoGrid/viewport.interfaces.js +0 -1
- package/dist/collection/components/revoGrid/viewport.js +0 -18
- package/dist/collection/components/revoGrid/viewport.section.js +0 -28
- package/dist/collection/components/rowHeaders/row-header-utils.js +0 -4
- package/dist/collection/plugins/autoSizeColumn.d.ts +0 -54
- package/dist/collection/plugins/autoSizeColumn.js +0 -230
- package/dist/collection/plugins/basePlugin.d.ts +0 -37
- package/dist/collection/plugins/basePlugin.js +0 -53
- package/dist/collection/plugins/export/csv.d.ts +0 -9
- package/dist/collection/plugins/export/export.plugin.d.ts +0 -24
- package/dist/collection/plugins/export/types.d.ts +0 -23
- package/dist/collection/plugins/filter/conditions/equal.d.ts +0 -4
- package/dist/collection/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/number/lessThan.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/set.d.ts +0 -4
- package/dist/collection/plugins/filter/conditions/string/beginswith.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/string/contains.d.ts +0 -4
- package/dist/collection/plugins/filter/filter.button.d.ts +0 -10
- package/dist/collection/plugins/filter/filter.plugin.d.ts +0 -59
- package/dist/collection/plugins/filter/filter.pop.d.ts +0 -42
- package/dist/collection/plugins/filter/filter.service.d.ts +0 -20
- package/dist/collection/plugins/filter/filter.types.d.ts +0 -8
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
- package/dist/collection/plugins/groupingRow/grouping.const.d.ts +0 -9
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.d.ts +0 -40
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
- package/dist/collection/plugins/groupingRow/grouping.row.types.d.ts +0 -19
- package/dist/collection/plugins/groupingRow/grouping.service.d.ts +0 -25
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
- package/dist/collection/plugins/sorting/sorting.plugin.d.ts +0 -32
- package/dist/collection/plugins/sorting/sorting.sign.d.ts +0 -8
- package/dist/collection/plugins/stretchPlugin.d.ts +0 -29
- package/dist/collection/plugins/stretchPlugin.js +0 -90
- package/dist/collection/plugins/trimmed/trimmed.plugin.d.ts +0 -10
- package/dist/collection/plugins/trimmed/trimmed.plugin.js +0 -32
- package/dist/collection/services/localScrollService.js +0 -80
- package/dist/collection/store/viewPort/viewport.helpers.js +0 -180
- package/dist/collection/store/viewPort/viewport.store.js +0 -121
- package/dist/collection/themeManager/themeService.js +0 -43
- package/dist/collection/utils/closestPolifill.js +0 -18
- package/dist/collection/utils/generateAlphabetHeader.js +0 -20
- package/dist/collection/utils/keyCodes.js +0 -70
- package/dist/collection/utils/keyCodes.utils.js +0 -64
- package/dist/collection/utils/resizeObserver.js +0 -6
- package/dist/collection/utils/utils.js +0 -104
- package/dist/esm/css-shim-8d75038b.js +0 -4
- package/dist/esm/dom-1b195079.js +0 -73
- package/dist/esm/filter.button-53ebca66.js +0 -23
- package/dist/esm/index-42c84e7c.js +0 -1694
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/revo-grid_11.entry.js +0 -28607
- package/dist/esm/revogr-clipboard.entry.js +0 -49
- package/dist/esm-es5/css-shim-8d75038b.js +0 -1
- package/dist/esm-es5/dom-1b195079.js +0 -21
- package/dist/esm-es5/filter.button-53ebca66.js +0 -1
- package/dist/esm-es5/index-42c84e7c.js +0 -1
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
- package/dist/esm-es5/revo-grid.js +0 -1
- package/dist/esm-es5/revo-grid_11.entry.js +0 -1
- package/dist/esm-es5/revogr-clipboard.entry.js +0 -1
- package/dist/esm-es5/revogr-filter-panel.entry.js +0 -1
- package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
- package/dist/revo-grid/css-shim-8d75038b.js +0 -1
- package/dist/revo-grid/dom-1b195079.js +0 -19
- package/dist/revo-grid/dom-ee2dd1b3.system.js +0 -21
- package/dist/revo-grid/filter.button-1509c206.js +0 -1
- package/dist/revo-grid/filter.button-4bd87101.system.js +0 -1
- package/dist/revo-grid/index-a15e7527.system.js +0 -1
- package/dist/revo-grid/index-a7f99799.js +0 -1
- package/dist/revo-grid/index.system.js +0 -1
- package/dist/revo-grid/plugins/autoSizeColumn.d.ts +0 -54
- package/dist/revo-grid/plugins/basePlugin.d.ts +0 -37
- package/dist/revo-grid/plugins/export/csv.d.ts +0 -9
- package/dist/revo-grid/plugins/export/export.plugin.d.ts +0 -24
- package/dist/revo-grid/plugins/export/types.d.ts +0 -23
- package/dist/revo-grid/plugins/filter/conditions/equal.d.ts +0 -4
- package/dist/revo-grid/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/number/lessThan.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/set.d.ts +0 -4
- package/dist/revo-grid/plugins/filter/conditions/string/beginswith.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/string/contains.d.ts +0 -4
- package/dist/revo-grid/plugins/filter/filter.button.d.ts +0 -10
- package/dist/revo-grid/plugins/filter/filter.plugin.d.ts +0 -59
- package/dist/revo-grid/plugins/filter/filter.pop.d.ts +0 -42
- package/dist/revo-grid/plugins/filter/filter.service.d.ts +0 -20
- package/dist/revo-grid/plugins/filter/filter.types.d.ts +0 -8
- package/dist/revo-grid/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
- package/dist/revo-grid/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
- package/dist/revo-grid/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
- package/dist/revo-grid/plugins/groupingRow/grouping.const.d.ts +0 -9
- package/dist/revo-grid/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
- package/dist/revo-grid/plugins/groupingRow/grouping.row.plugin.d.ts +0 -40
- package/dist/revo-grid/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
- package/dist/revo-grid/plugins/groupingRow/grouping.row.types.d.ts +0 -19
- package/dist/revo-grid/plugins/groupingRow/grouping.service.d.ts +0 -25
- package/dist/revo-grid/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
- package/dist/revo-grid/plugins/sorting/sorting.plugin.d.ts +0 -32
- package/dist/revo-grid/plugins/sorting/sorting.sign.d.ts +0 -8
- package/dist/revo-grid/plugins/stretchPlugin.d.ts +0 -29
- package/dist/revo-grid/plugins/trimmed/trimmed.plugin.d.ts +0 -10
- package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
- package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
- package/dist/revo-grid/revo-grid.js +0 -132
- package/dist/revo-grid/revo-grid.system.js +0 -1
- package/dist/revo-grid/revo-grid_11.entry.js +0 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +0 -1
- package/dist/revo-grid/revogr-clipboard.entry.js +0 -1
- package/dist/revo-grid/revogr-clipboard.system.entry.js +0 -1
- package/dist/revo-grid/revogr-filter-panel.system.entry.js +0 -1
- package/dist/types/components/button/button.d.ts +0 -5
- package/dist/types/components/data/cellRenderer.d.ts +0 -8
- package/dist/types/components/data/columnService.d.ts +0 -42
- package/dist/types/components/header/headerCellRenderer.d.ts +0 -8
- package/dist/types/components/header/headerRenderer.d.ts +0 -15
- package/dist/types/components/order/orderRenderer.d.ts +0 -28
- package/dist/types/components/order/rowOrderService.d.ts +0 -27
- package/dist/types/components/overlay/clipboard.service.d.ts +0 -20
- package/dist/types/components/overlay/editors/text.d.ts +0 -13
- package/dist/types/components/overlay/revogr-edit.d.ts +0 -19
- package/dist/types/components/revoGrid/viewport.d.ts +0 -19
- package/dist/types/components/revoGrid/viewport.interfaces.d.ts +0 -66
- package/dist/types/components/revoGrid/viewport.section.d.ts +0 -24
- package/dist/types/components/rowHeaders/row-header-utils.d.ts +0 -2
- package/dist/types/interfaces.d.ts +0 -437
- package/dist/types/plugins/autoSizeColumn.d.ts +0 -54
- package/dist/types/plugins/basePlugin.d.ts +0 -37
- package/dist/types/plugins/stretchPlugin.d.ts +0 -29
- package/dist/types/plugins/trimmed/trimmed.plugin.d.ts +0 -10
- package/dist/types/services/localScrollService.d.ts +0 -28
- package/dist/types/store/viewPort/viewport.helpers.d.ts +0 -30
- package/dist/types/store/viewPort/viewport.store.d.ts +0 -18
- package/dist/types/themeManager/themeService.d.ts +0 -13
- package/dist/types/utils/closestPolifill.d.ts +0 -0
- package/dist/types/utils/keyCodes.d.ts +0 -68
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- /package/dist/types/components/{overlay/editors → editors}/edit.utils.d.ts +0 -0
- /package/dist/{esm-es5/index.js → types/utils/closest.polifill.d.ts} +0 -0
- /package/dist/types/utils/{generateAlphabetHeader.d.ts → header.utils.d.ts} +0 -0
- /package/dist/types/utils/{resizeObserver.d.ts → resize-observer.polifill.d.ts} +0 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by Revolist OU ❤️
|
|
3
|
+
*/
|
|
4
|
+
import { s as scaleValue } from './index-98fd0168.js';
|
|
5
|
+
import { d as debounce_1 } from './debounce-7781346d.js';
|
|
6
|
+
import { i as isObject_1 } from './toNumber-8de324a7.js';
|
|
7
|
+
|
|
8
|
+
const initialParams = {
|
|
9
|
+
contentSize: 0,
|
|
10
|
+
clientSize: 0,
|
|
11
|
+
virtualSize: 0,
|
|
12
|
+
maxSize: 0,
|
|
13
|
+
};
|
|
14
|
+
const NO_COORDINATE = -1;
|
|
15
|
+
/**
|
|
16
|
+
* Based on content size, client size and virtual size
|
|
17
|
+
* return full size
|
|
18
|
+
*/
|
|
19
|
+
function getContentSize(contentSize, clientSize, virtualSize = 0) {
|
|
20
|
+
return contentSize + (virtualSize ? clientSize - virtualSize : 0);
|
|
21
|
+
}
|
|
22
|
+
class LocalScrollService {
|
|
23
|
+
constructor(cfg) {
|
|
24
|
+
this.cfg = cfg;
|
|
25
|
+
this.preventArtificialScroll = {
|
|
26
|
+
rgRow: null,
|
|
27
|
+
rgCol: null,
|
|
28
|
+
};
|
|
29
|
+
// to check if scroll changed
|
|
30
|
+
this.previousScroll = {
|
|
31
|
+
rgRow: NO_COORDINATE,
|
|
32
|
+
rgCol: NO_COORDINATE,
|
|
33
|
+
};
|
|
34
|
+
this.params = {
|
|
35
|
+
rgRow: Object.assign({}, initialParams),
|
|
36
|
+
rgCol: Object.assign({}, initialParams),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
setParams(params, dimension) {
|
|
40
|
+
const virtualContentSize = getContentSize(params.contentSize, params.clientSize, params.virtualSize);
|
|
41
|
+
this.params[dimension] = Object.assign(Object.assign({}, params), { maxSize: virtualContentSize - params.clientSize, virtualContentSize });
|
|
42
|
+
}
|
|
43
|
+
// apply scroll values after scroll done
|
|
44
|
+
async setScroll(e) {
|
|
45
|
+
this.cancelScroll(e.dimension);
|
|
46
|
+
// start frame animation
|
|
47
|
+
const frameAnimation = new Promise((resolve, reject) => {
|
|
48
|
+
// for example safari desktop has issues with animation frame
|
|
49
|
+
if (this.cfg.skipAnimationFrame) {
|
|
50
|
+
return resolve();
|
|
51
|
+
}
|
|
52
|
+
const animationId = window.requestAnimationFrame(() => {
|
|
53
|
+
resolve();
|
|
54
|
+
});
|
|
55
|
+
this.preventArtificialScroll[e.dimension] = reject.bind(null, animationId);
|
|
56
|
+
});
|
|
57
|
+
try {
|
|
58
|
+
await frameAnimation;
|
|
59
|
+
const params = this.getParams(e.dimension);
|
|
60
|
+
e.coordinate = Math.ceil(e.coordinate);
|
|
61
|
+
this.previousScroll[e.dimension] = this.wrapCoordinate(e.coordinate, params);
|
|
62
|
+
this.preventArtificialScroll[e.dimension] = null;
|
|
63
|
+
this.cfg.applyScroll(Object.assign(Object.assign({}, e), { coordinate: params.virtualSize
|
|
64
|
+
? this.convert(e.coordinate, params, false)
|
|
65
|
+
: e.coordinate }));
|
|
66
|
+
}
|
|
67
|
+
catch (id) {
|
|
68
|
+
window.cancelAnimationFrame(id);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* On scroll event started
|
|
73
|
+
*/
|
|
74
|
+
scroll(coordinate, dimension, force = false, delta, outside = false) {
|
|
75
|
+
// cancel all previous scrolls for same dimension
|
|
76
|
+
this.cancelScroll(dimension);
|
|
77
|
+
// drop if no change
|
|
78
|
+
if (!force && this.previousScroll[dimension] === coordinate) {
|
|
79
|
+
this.previousScroll[dimension] = NO_COORDINATE;
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const param = this.getParams(dimension);
|
|
83
|
+
// let component know about scroll event started
|
|
84
|
+
this.cfg.runScroll({
|
|
85
|
+
dimension: dimension,
|
|
86
|
+
coordinate: param.virtualSize
|
|
87
|
+
? this.convert(coordinate, param)
|
|
88
|
+
: coordinate,
|
|
89
|
+
delta,
|
|
90
|
+
outside,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
getParams(dimension) {
|
|
94
|
+
return this.params[dimension];
|
|
95
|
+
}
|
|
96
|
+
// check if scroll outside of region to avoid looping
|
|
97
|
+
wrapCoordinate(c, param) {
|
|
98
|
+
if (c < 0) {
|
|
99
|
+
return NO_COORDINATE;
|
|
100
|
+
}
|
|
101
|
+
if (c > param.maxSize) {
|
|
102
|
+
return param.maxSize;
|
|
103
|
+
}
|
|
104
|
+
return c;
|
|
105
|
+
}
|
|
106
|
+
// prevent already started scroll, performance optimization
|
|
107
|
+
cancelScroll(dimension) {
|
|
108
|
+
var _a, _b;
|
|
109
|
+
(_b = (_a = this.preventArtificialScroll)[dimension]) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
110
|
+
this.preventArtificialScroll[dimension] = null;
|
|
111
|
+
}
|
|
112
|
+
/* convert virtual to real and back, scale range */
|
|
113
|
+
convert(pos, param, toReal = true) {
|
|
114
|
+
const minRange = param.clientSize;
|
|
115
|
+
const from = [0, param.virtualContentSize - minRange];
|
|
116
|
+
const to = [0, param.contentSize - param.virtualSize];
|
|
117
|
+
if (toReal) {
|
|
118
|
+
return scaleValue(pos, from, to);
|
|
119
|
+
}
|
|
120
|
+
return scaleValue(pos, to, from);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Apply changes only if mousewheel event happened some time ago (scrollThrottling)
|
|
126
|
+
*/
|
|
127
|
+
class LocalScrollTimer {
|
|
128
|
+
constructor(scrollThrottling = 10) {
|
|
129
|
+
this.scrollThrottling = scrollThrottling;
|
|
130
|
+
/**
|
|
131
|
+
* Last mw event time for trigger scroll function below
|
|
132
|
+
* If mousewheel function was ignored we still need to trigger render
|
|
133
|
+
*/
|
|
134
|
+
this.mouseWheelScrollTimestamp = {
|
|
135
|
+
rgCol: 0,
|
|
136
|
+
rgRow: 0,
|
|
137
|
+
};
|
|
138
|
+
this.lastKnownScrollCoordinate = {
|
|
139
|
+
rgCol: 0,
|
|
140
|
+
rgRow: 0,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
setCoordinate(e) {
|
|
144
|
+
this.lastKnownScrollCoordinate[e.dimension] = e.coordinate;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Remember last mw event time
|
|
148
|
+
*/
|
|
149
|
+
latestScrollUpdate(dimension) {
|
|
150
|
+
this.mouseWheelScrollTimestamp[dimension] = new Date().getTime();
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Check if scroll is ready to accept new value
|
|
154
|
+
*/
|
|
155
|
+
isReady(type, coordinate) {
|
|
156
|
+
const change = new Date().getTime() - this.mouseWheelScrollTimestamp[type];
|
|
157
|
+
// apply after throttling
|
|
158
|
+
return (change > this.scrollThrottling &&
|
|
159
|
+
coordinate !== this.lastKnownScrollCoordinate[type]);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
var debounce = debounce_1,
|
|
164
|
+
isObject = isObject_1;
|
|
165
|
+
|
|
166
|
+
/** Error message constants. */
|
|
167
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Creates a throttled function that only invokes `func` at most once per
|
|
171
|
+
* every `wait` milliseconds. The throttled function comes with a `cancel`
|
|
172
|
+
* method to cancel delayed `func` invocations and a `flush` method to
|
|
173
|
+
* immediately invoke them. Provide `options` to indicate whether `func`
|
|
174
|
+
* should be invoked on the leading and/or trailing edge of the `wait`
|
|
175
|
+
* timeout. The `func` is invoked with the last arguments provided to the
|
|
176
|
+
* throttled function. Subsequent calls to the throttled function return the
|
|
177
|
+
* result of the last `func` invocation.
|
|
178
|
+
*
|
|
179
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
180
|
+
* invoked on the trailing edge of the timeout only if the throttled function
|
|
181
|
+
* is invoked more than once during the `wait` timeout.
|
|
182
|
+
*
|
|
183
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
184
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
185
|
+
*
|
|
186
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
187
|
+
* for details over the differences between `_.throttle` and `_.debounce`.
|
|
188
|
+
*
|
|
189
|
+
* @static
|
|
190
|
+
* @memberOf _
|
|
191
|
+
* @since 0.1.0
|
|
192
|
+
* @category Function
|
|
193
|
+
* @param {Function} func The function to throttle.
|
|
194
|
+
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
|
195
|
+
* @param {Object} [options={}] The options object.
|
|
196
|
+
* @param {boolean} [options.leading=true]
|
|
197
|
+
* Specify invoking on the leading edge of the timeout.
|
|
198
|
+
* @param {boolean} [options.trailing=true]
|
|
199
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
200
|
+
* @returns {Function} Returns the new throttled function.
|
|
201
|
+
* @example
|
|
202
|
+
*
|
|
203
|
+
* // Avoid excessively updating the position while scrolling.
|
|
204
|
+
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
|
205
|
+
*
|
|
206
|
+
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
|
207
|
+
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
|
208
|
+
* jQuery(element).on('click', throttled);
|
|
209
|
+
*
|
|
210
|
+
* // Cancel the trailing throttled invocation.
|
|
211
|
+
* jQuery(window).on('popstate', throttled.cancel);
|
|
212
|
+
*/
|
|
213
|
+
function throttle(func, wait, options) {
|
|
214
|
+
var leading = true,
|
|
215
|
+
trailing = true;
|
|
216
|
+
|
|
217
|
+
if (typeof func != 'function') {
|
|
218
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
219
|
+
}
|
|
220
|
+
if (isObject(options)) {
|
|
221
|
+
leading = 'leading' in options ? !!options.leading : leading;
|
|
222
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
223
|
+
}
|
|
224
|
+
return debounce(func, wait, {
|
|
225
|
+
'leading': leading,
|
|
226
|
+
'maxWait': wait,
|
|
227
|
+
'trailing': trailing
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
var throttle_1 = throttle;
|
|
232
|
+
|
|
233
|
+
export { LocalScrollTimer as L, LocalScrollService as a, getContentSize as g, throttle_1 as t };
|
|
234
|
+
|
|
235
|
+
//# sourceMappingURL=throttle-cfd527d6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"throttle-cfd527d6.js","mappings":";;;;;;;AAsBA,MAAM,aAAa,GAAW;IAC5B,WAAW,EAAE,CAAC;IACd,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,OAAO,EAAE,CAAC;CACX,CAAC;AACF,MAAM,aAAa,GAAG,CAAC,CAAC,CAAC;AAEzB;;;;SAIgB,cAAc,CAC5B,WAAmB,EACnB,UAAkB,EAClB,WAAW,GAAG,CAAC;IAEf,OAAO,WAAW,IAAI,WAAW,GAAG,UAAU,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC;AACpE,CAAC;MAEoB,kBAAkB;IAerC,YAAoB,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;QAdvB,4BAAuB,GAA6C;YAC1E,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;SACZ,CAAC;;QAEM,mBAAc,GAAkC;YACtD,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;SACrB,CAAC;QACM,WAAM,GAAkC;YAC9C,KAAK,oBAAO,aAAa,CAAE;YAC3B,KAAK,oBAAO,aAAa,CAAE;SAC5B,CAAC;KAEiC;IAEnC,SAAS,CAAC,MAAc,EAAE,SAAwB;QAChD,MAAM,kBAAkB,GAAG,cAAc,CACvC,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,UAAU,EACjB,MAAM,CAAC,WAAW,CACnB,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,mCACjB,MAAM,KACT,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAAC,UAAU,EAC/C,kBAAkB,GACnB,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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE;AACvC,EAAE,IAAI,OAAO,GAAG,IAAI;AACpB,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB;AACA,EAAE,IAAI,OAAO,IAAI,IAAI,UAAU,EAAE;AACjC,IAAI,MAAM,IAAI,SAAS,CAAC,eAAe,CAAC,CAAC;AACzC,GAAG;AACH,EAAE,IAAI,QAAQ,CAAC,OAAO,CAAC,EAAE;AACzB,IAAI,OAAO,GAAG,SAAS,IAAI,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;AACjE,IAAI,QAAQ,GAAG,UAAU,IAAI,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACrE,GAAG;AACH,EAAE,OAAO,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE;AAC9B,IAAI,SAAS,EAAE,OAAO;AACtB,IAAI,SAAS,EAAE,IAAI;AACnB,IAAI,UAAU,EAAE,QAAQ;AACxB,GAAG,CAAC,CAAC;AACL,CAAC;AACD;IACA,UAAc,GAAG;;;;","names":["require$$0","require$$1"],"sources":["src/services/local.scroll.service.ts","src/services/local.scroll.timer.ts","node_modules/lodash/throttle.js"],"sourcesContent":["import { DimensionType } from '..';\nimport { ViewPortScrollEvent } from '..';\nimport { scaleValue } from '../utils';\n\ninterface Config {\n skipAnimationFrame?: boolean;\n // scroll event inited and direction cached\n // scrollingService.proxyScroll get tiggered\n // setScroll event called from scrollingService\n runScroll(e: ViewPortScrollEvent): void;\n // all operation finished, apply scroll values\n applyScroll(e: ViewPortScrollEvent): void;\n}\n\ntype Params = {\n contentSize: number;\n virtualContentSize?: number;\n clientSize: number;\n virtualSize: number;\n maxSize?: number;\n};\n\nconst initialParams: Params = {\n contentSize: 0,\n clientSize: 0,\n virtualSize: 0,\n maxSize: 0,\n};\nconst NO_COORDINATE = -1;\n\n/**\n * Based on content size, client size and virtual size\n * return full size\n */\nexport function getContentSize(\n contentSize: number,\n clientSize: number,\n virtualSize = 0,\n): number {\n return contentSize + (virtualSize ? clientSize - virtualSize : 0);\n}\n\nexport default class LocalScrollService {\n private preventArtificialScroll: Record<DimensionType, () => void | null> = {\n rgRow: null,\n rgCol: null,\n };\n // to check if scroll changed\n private previousScroll: Record<DimensionType, number> = {\n rgRow: NO_COORDINATE,\n rgCol: NO_COORDINATE,\n };\n private params: Record<DimensionType, Params> = {\n rgRow: { ...initialParams },\n rgCol: { ...initialParams },\n };\n\n constructor(private cfg: Config) {}\n\n setParams(params: Params, dimension: DimensionType) {\n const virtualContentSize = getContentSize(\n params.contentSize,\n params.clientSize,\n params.virtualSize,\n );\n this.params[dimension] = {\n ...params,\n maxSize: virtualContentSize - params.clientSize,\n virtualContentSize,\n };\n }\n\n // apply scroll values after scroll done\n async setScroll(e: ViewPortScrollEvent) {\n this.cancelScroll(e.dimension);\n\n // start frame animation\n const frameAnimation = new Promise<void>((resolve, reject) => {\n // for example safari desktop has issues with animation frame\n if (this.cfg.skipAnimationFrame) {\n return resolve();\n }\n const animationId = window.requestAnimationFrame(() => {\n resolve();\n });\n this.preventArtificialScroll[e.dimension] = reject.bind(\n null,\n animationId,\n );\n });\n\n try {\n await frameAnimation;\n const params = this.getParams(e.dimension);\n e.coordinate = Math.ceil(e.coordinate);\n this.previousScroll[e.dimension] = this.wrapCoordinate(\n e.coordinate,\n params,\n );\n this.preventArtificialScroll[e.dimension] = null;\n this.cfg.applyScroll({\n ...e,\n coordinate: params.virtualSize\n ? this.convert(e.coordinate, params, false)\n : e.coordinate,\n });\n } catch (id) {\n window.cancelAnimationFrame(id);\n }\n }\n\n /**\n * On scroll event started\n */\n scroll(\n coordinate: number,\n dimension: DimensionType,\n force = false,\n delta?: number,\n outside = false,\n ) {\n // cancel all previous scrolls for same dimension\n this.cancelScroll(dimension);\n\n // drop if no change\n if (!force && this.previousScroll[dimension] === coordinate) {\n this.previousScroll[dimension] = NO_COORDINATE;\n return;\n }\n\n const param = this.getParams(dimension);\n // let component know about scroll event started\n this.cfg.runScroll({\n dimension: dimension,\n coordinate: param.virtualSize\n ? this.convert(coordinate, param)\n : coordinate,\n delta,\n outside,\n });\n }\n\n private getParams(dimension: DimensionType): Params {\n return this.params[dimension];\n }\n\n // check if scroll outside of region to avoid looping\n private wrapCoordinate(c: number, param: Params): number {\n if (c < 0) {\n return NO_COORDINATE;\n }\n\n if (c > param.maxSize) {\n return param.maxSize;\n }\n return c;\n }\n\n // prevent already started scroll, performance optimization\n private cancelScroll(dimension: DimensionType) {\n this.preventArtificialScroll[dimension]?.();\n this.preventArtificialScroll[dimension] = null;\n }\n\n /* convert virtual to real and back, scale range */\n private convert(pos: number, param: Params, toReal = true): number {\n const minRange = param.clientSize;\n const from: [number, number] = [0, param.virtualContentSize - minRange];\n const to: [number, number] = [0, param.contentSize - param.virtualSize];\n if (toReal) {\n return scaleValue(pos, from, to);\n }\n return scaleValue(pos, to, from);\n }\n}\n","import { DimensionType } from '..';\n/**\n * Apply changes only if mousewheel event happened some time ago (scrollThrottling)\n */\nexport class LocalScrollTimer {\n /**\n * Last mw event time for trigger scroll function below\n * If mousewheel function was ignored we still need to trigger render\n */\n private mouseWheelScrollTimestamp: Record<DimensionType, number> = {\n rgCol: 0,\n rgRow: 0,\n };\n private lastKnownScrollCoordinate: Record<DimensionType, number> = {\n rgCol: 0,\n rgRow: 0,\n };\n\n constructor(private scrollThrottling = 10) {}\n\n setCoordinate(e: { dimension: DimensionType; coordinate: number }) {\n this.lastKnownScrollCoordinate[e.dimension] = e.coordinate;\n }\n\n /**\n * Remember last mw event time\n */\n latestScrollUpdate(dimension: DimensionType) {\n this.mouseWheelScrollTimestamp[dimension] = new Date().getTime();\n }\n\n /**\n * Check if scroll is ready to accept new value\n */\n isReady(type: DimensionType, coordinate: number) {\n const change = new Date().getTime() - this.mouseWheelScrollTimestamp[type];\n // apply after throttling\n return (\n change > this.scrollThrottling &&\n coordinate !== this.lastKnownScrollCoordinate[type]\n );\n }\n}\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"version":3}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by Revolist OU ❤️
|
|
3
|
+
*/
|
|
4
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
|
+
|
|
6
|
+
/** Detect free variable `global` from Node.js. */
|
|
7
|
+
|
|
8
|
+
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
9
|
+
|
|
10
|
+
var _freeGlobal = freeGlobal$1;
|
|
11
|
+
|
|
12
|
+
var freeGlobal = _freeGlobal;
|
|
13
|
+
|
|
14
|
+
/** Detect free variable `self`. */
|
|
15
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
16
|
+
|
|
17
|
+
/** Used as a reference to the global object. */
|
|
18
|
+
var root$1 = freeGlobal || freeSelf || Function('return this')();
|
|
19
|
+
|
|
20
|
+
var _root = root$1;
|
|
21
|
+
|
|
22
|
+
var root = _root;
|
|
23
|
+
|
|
24
|
+
/** Built-in value references. */
|
|
25
|
+
var Symbol$2 = root.Symbol;
|
|
26
|
+
|
|
27
|
+
var _Symbol = Symbol$2;
|
|
28
|
+
|
|
29
|
+
var Symbol$1 = _Symbol;
|
|
30
|
+
|
|
31
|
+
/** Used for built-in method references. */
|
|
32
|
+
var objectProto$1 = Object.prototype;
|
|
33
|
+
|
|
34
|
+
/** Used to check objects for own properties. */
|
|
35
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Used to resolve the
|
|
39
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
40
|
+
* of values.
|
|
41
|
+
*/
|
|
42
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
43
|
+
|
|
44
|
+
/** Built-in value references. */
|
|
45
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
49
|
+
*
|
|
50
|
+
* @private
|
|
51
|
+
* @param {*} value The value to query.
|
|
52
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
53
|
+
*/
|
|
54
|
+
function getRawTag$1(value) {
|
|
55
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
56
|
+
tag = value[symToStringTag$1];
|
|
57
|
+
|
|
58
|
+
try {
|
|
59
|
+
value[symToStringTag$1] = undefined;
|
|
60
|
+
var unmasked = true;
|
|
61
|
+
} catch (e) {}
|
|
62
|
+
|
|
63
|
+
var result = nativeObjectToString$1.call(value);
|
|
64
|
+
if (unmasked) {
|
|
65
|
+
if (isOwn) {
|
|
66
|
+
value[symToStringTag$1] = tag;
|
|
67
|
+
} else {
|
|
68
|
+
delete value[symToStringTag$1];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var _getRawTag = getRawTag$1;
|
|
75
|
+
|
|
76
|
+
/** Used for built-in method references. */
|
|
77
|
+
|
|
78
|
+
var objectProto = Object.prototype;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Used to resolve the
|
|
82
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
83
|
+
* of values.
|
|
84
|
+
*/
|
|
85
|
+
var nativeObjectToString = objectProto.toString;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
89
|
+
*
|
|
90
|
+
* @private
|
|
91
|
+
* @param {*} value The value to convert.
|
|
92
|
+
* @returns {string} Returns the converted string.
|
|
93
|
+
*/
|
|
94
|
+
function objectToString$1(value) {
|
|
95
|
+
return nativeObjectToString.call(value);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var _objectToString = objectToString$1;
|
|
99
|
+
|
|
100
|
+
var Symbol = _Symbol,
|
|
101
|
+
getRawTag = _getRawTag,
|
|
102
|
+
objectToString = _objectToString;
|
|
103
|
+
|
|
104
|
+
/** `Object#toString` result references. */
|
|
105
|
+
var nullTag = '[object Null]',
|
|
106
|
+
undefinedTag = '[object Undefined]';
|
|
107
|
+
|
|
108
|
+
/** Built-in value references. */
|
|
109
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
113
|
+
*
|
|
114
|
+
* @private
|
|
115
|
+
* @param {*} value The value to query.
|
|
116
|
+
* @returns {string} Returns the `toStringTag`.
|
|
117
|
+
*/
|
|
118
|
+
function baseGetTag$1(value) {
|
|
119
|
+
if (value == null) {
|
|
120
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
121
|
+
}
|
|
122
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
123
|
+
? getRawTag(value)
|
|
124
|
+
: objectToString(value);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
var _baseGetTag = baseGetTag$1;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Checks if `value` is the
|
|
131
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
132
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
133
|
+
*
|
|
134
|
+
* @static
|
|
135
|
+
* @memberOf _
|
|
136
|
+
* @since 0.1.0
|
|
137
|
+
* @category Lang
|
|
138
|
+
* @param {*} value The value to check.
|
|
139
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
140
|
+
* @example
|
|
141
|
+
*
|
|
142
|
+
* _.isObject({});
|
|
143
|
+
* // => true
|
|
144
|
+
*
|
|
145
|
+
* _.isObject([1, 2, 3]);
|
|
146
|
+
* // => true
|
|
147
|
+
*
|
|
148
|
+
* _.isObject(_.noop);
|
|
149
|
+
* // => true
|
|
150
|
+
*
|
|
151
|
+
* _.isObject(null);
|
|
152
|
+
* // => false
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
function isObject$1(value) {
|
|
156
|
+
var type = typeof value;
|
|
157
|
+
return value != null && (type == 'object' || type == 'function');
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
var isObject_1 = isObject$1;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
164
|
+
* and has a `typeof` result of "object".
|
|
165
|
+
*
|
|
166
|
+
* @static
|
|
167
|
+
* @memberOf _
|
|
168
|
+
* @since 4.0.0
|
|
169
|
+
* @category Lang
|
|
170
|
+
* @param {*} value The value to check.
|
|
171
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
172
|
+
* @example
|
|
173
|
+
*
|
|
174
|
+
* _.isObjectLike({});
|
|
175
|
+
* // => true
|
|
176
|
+
*
|
|
177
|
+
* _.isObjectLike([1, 2, 3]);
|
|
178
|
+
* // => true
|
|
179
|
+
*
|
|
180
|
+
* _.isObjectLike(_.noop);
|
|
181
|
+
* // => false
|
|
182
|
+
*
|
|
183
|
+
* _.isObjectLike(null);
|
|
184
|
+
* // => false
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
function isObjectLike$1(value) {
|
|
188
|
+
return value != null && typeof value == 'object';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
var isObjectLike_1 = isObjectLike$1;
|
|
192
|
+
|
|
193
|
+
var baseGetTag = _baseGetTag,
|
|
194
|
+
isObjectLike = isObjectLike_1;
|
|
195
|
+
|
|
196
|
+
/** `Object#toString` result references. */
|
|
197
|
+
var symbolTag = '[object Symbol]';
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
201
|
+
*
|
|
202
|
+
* @static
|
|
203
|
+
* @memberOf _
|
|
204
|
+
* @since 4.0.0
|
|
205
|
+
* @category Lang
|
|
206
|
+
* @param {*} value The value to check.
|
|
207
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
208
|
+
* @example
|
|
209
|
+
*
|
|
210
|
+
* _.isSymbol(Symbol.iterator);
|
|
211
|
+
* // => true
|
|
212
|
+
*
|
|
213
|
+
* _.isSymbol('abc');
|
|
214
|
+
* // => false
|
|
215
|
+
*/
|
|
216
|
+
function isSymbol$1(value) {
|
|
217
|
+
return typeof value == 'symbol' ||
|
|
218
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
var isSymbol_1 = isSymbol$1;
|
|
222
|
+
|
|
223
|
+
/** Used to match a single whitespace character. */
|
|
224
|
+
|
|
225
|
+
var reWhitespace = /\s/;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
229
|
+
* character of `string`.
|
|
230
|
+
*
|
|
231
|
+
* @private
|
|
232
|
+
* @param {string} string The string to inspect.
|
|
233
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
234
|
+
*/
|
|
235
|
+
function trimmedEndIndex$1(string) {
|
|
236
|
+
var index = string.length;
|
|
237
|
+
|
|
238
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
239
|
+
return index;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
243
|
+
|
|
244
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
245
|
+
|
|
246
|
+
/** Used to match leading whitespace. */
|
|
247
|
+
var reTrimStart = /^\s+/;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The base implementation of `_.trim`.
|
|
251
|
+
*
|
|
252
|
+
* @private
|
|
253
|
+
* @param {string} string The string to trim.
|
|
254
|
+
* @returns {string} Returns the trimmed string.
|
|
255
|
+
*/
|
|
256
|
+
function baseTrim$1(string) {
|
|
257
|
+
return string
|
|
258
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
259
|
+
: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
var _baseTrim = baseTrim$1;
|
|
263
|
+
|
|
264
|
+
var baseTrim = _baseTrim,
|
|
265
|
+
isObject = isObject_1,
|
|
266
|
+
isSymbol = isSymbol_1;
|
|
267
|
+
|
|
268
|
+
/** Used as references for various `Number` constants. */
|
|
269
|
+
var NAN = 0 / 0;
|
|
270
|
+
|
|
271
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
272
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
273
|
+
|
|
274
|
+
/** Used to detect binary string values. */
|
|
275
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
276
|
+
|
|
277
|
+
/** Used to detect octal string values. */
|
|
278
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
279
|
+
|
|
280
|
+
/** Built-in method references without a dependency on `root`. */
|
|
281
|
+
var freeParseInt = parseInt;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Converts `value` to a number.
|
|
285
|
+
*
|
|
286
|
+
* @static
|
|
287
|
+
* @memberOf _
|
|
288
|
+
* @since 4.0.0
|
|
289
|
+
* @category Lang
|
|
290
|
+
* @param {*} value The value to process.
|
|
291
|
+
* @returns {number} Returns the number.
|
|
292
|
+
* @example
|
|
293
|
+
*
|
|
294
|
+
* _.toNumber(3.2);
|
|
295
|
+
* // => 3.2
|
|
296
|
+
*
|
|
297
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
298
|
+
* // => 5e-324
|
|
299
|
+
*
|
|
300
|
+
* _.toNumber(Infinity);
|
|
301
|
+
* // => Infinity
|
|
302
|
+
*
|
|
303
|
+
* _.toNumber('3.2');
|
|
304
|
+
* // => 3.2
|
|
305
|
+
*/
|
|
306
|
+
function toNumber(value) {
|
|
307
|
+
if (typeof value == 'number') {
|
|
308
|
+
return value;
|
|
309
|
+
}
|
|
310
|
+
if (isSymbol(value)) {
|
|
311
|
+
return NAN;
|
|
312
|
+
}
|
|
313
|
+
if (isObject(value)) {
|
|
314
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
315
|
+
value = isObject(other) ? (other + '') : other;
|
|
316
|
+
}
|
|
317
|
+
if (typeof value != 'string') {
|
|
318
|
+
return value === 0 ? value : +value;
|
|
319
|
+
}
|
|
320
|
+
value = baseTrim(value);
|
|
321
|
+
var isBinary = reIsBinary.test(value);
|
|
322
|
+
return (isBinary || reIsOctal.test(value))
|
|
323
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
324
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
var toNumber_1 = toNumber;
|
|
328
|
+
|
|
329
|
+
export { _baseGetTag as _, _root as a, _Symbol as b, isObjectLike_1 as c, _freeGlobal as d, isSymbol_1 as e, isObject_1 as i, toNumber_1 as t };
|
|
330
|
+
|
|
331
|
+
//# sourceMappingURL=toNumber-8de324a7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"toNumber-8de324a7.js","mappings":";;;;;;;AACA,IAAIA,YAAU,GAAG,OAAOC,cAAM,IAAI,QAAQ,IAAIA,cAAM,IAAIA,cAAM,CAAC,MAAM,KAAK,MAAM,IAAIA,cAAM,CAAC;AAC3F;IACA,WAAc,GAAGD;;ACHjB,IA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,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,EAAE,IAAI,KAAK,CAAC;AACnD,GAAG;AACH,EAAE,IAAI,OAAO,KAAK,IAAI,QAAQ,EAAE;AAChC,IAAI,OAAO,KAAK,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC;AACxC,GAAG;AACH,EAAE,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC1B,EAAE,IAAI,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACxC,EAAE,OAAO,CAAC,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;AAC3C,MAAM,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,GAAG,CAAC,CAAC;AACpD,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC;AACD;IACA,UAAc,GAAG;;;;","names":["freeGlobal","global","require$$0","root","Symbol","objectProto","nativeObjectToString","symToStringTag","getRawTag","objectToString","require$$1","require$$2","baseGetTag","isObject","isObjectLike","isSymbol","trimmedEndIndex","baseTrim"],"sources":["node_modules/lodash/_freeGlobal.js","node_modules/lodash/_root.js","node_modules/lodash/_Symbol.js","node_modules/lodash/_getRawTag.js","node_modules/lodash/_objectToString.js","node_modules/lodash/_baseGetTag.js","node_modules/lodash/isObject.js","node_modules/lodash/isObjectLike.js","node_modules/lodash/isSymbol.js","node_modules/lodash/_trimmedEndIndex.js","node_modules/lodash/_baseTrim.js","node_modules/lodash/toNumber.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"version":3}
|