lsp-grid 1.0.0
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/README.md +34 -0
- package/dist/cjs/app-globals-Bfsg1bDt.js +16 -0
- package/dist/cjs/app-globals-Bfsg1bDt.js.map +1 -0
- package/dist/cjs/cell-renderer-DtuYp7tj.js +106 -0
- package/dist/cjs/cell-renderer-DtuYp7tj.js.map +1 -0
- package/dist/cjs/column.drag.plugin-BIptTmfz.js +2554 -0
- package/dist/cjs/column.drag.plugin-BIptTmfz.js.map +1 -0
- package/dist/cjs/column.service-BnVSAfcu.js +1391 -0
- package/dist/cjs/column.service-BnVSAfcu.js.map +1 -0
- package/dist/cjs/data.store-CrF4Nf9q.js +3615 -0
- package/dist/cjs/data.store-CrF4Nf9q.js.map +1 -0
- package/dist/cjs/debounce-DgeyTQM0.js +498 -0
- package/dist/cjs/debounce-DgeyTQM0.js.map +1 -0
- package/dist/cjs/edit.utils-Bw-E3Fj6.js +118 -0
- package/dist/cjs/edit.utils-Bw-E3Fj6.js.map +1 -0
- package/dist/cjs/events-D0Syn6ut.js +46 -0
- package/dist/cjs/events-D0Syn6ut.js.map +1 -0
- package/dist/cjs/filter.button-CaAAXq-6.js +49 -0
- package/dist/cjs/filter.button-CaAAXq-6.js.map +1 -0
- package/dist/cjs/header-cell-renderer-DhRJqZ-w.js +356 -0
- package/dist/cjs/header-cell-renderer-DhRJqZ-w.js.map +1 -0
- package/dist/cjs/index-VM40U6Gh.js +2549 -0
- package/dist/cjs/index-VM40U6Gh.js.map +1 -0
- package/dist/cjs/index.cjs.js +346 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +19 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.entry.js +2187 -0
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.js +31 -0
- package/dist/cjs/revo-grid.cjs.js.map +1 -0
- package/dist/cjs/revo-grid.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution_7.cjs.entry.js +1463 -0
- package/dist/cjs/revogr-attribution_7.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-clipboard.revogr-edit.revogr-order-editor.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +456 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js +948 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +382 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.entry.cjs.js.map +1 -0
- package/dist/cjs/row-header-utils-DL640c7x.js +420 -0
- package/dist/cjs/row-header-utils-DL640c7x.js.map +1 -0
- package/dist/cjs/text-editor-DWChyeVV.js +81 -0
- package/dist/cjs/text-editor-DWChyeVV.js.map +1 -0
- package/dist/cjs/throttle-Bb1Bbfd1.js +278 -0
- package/dist/cjs/throttle-Bb1Bbfd1.js.map +1 -0
- package/dist/cjs/viewport.helpers-CI6uB8tu.js +59 -0
- package/dist/cjs/viewport.helpers-CI6uB8tu.js.map +1 -0
- package/dist/collection/collection-manifest.json +28 -0
- 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 +396 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
- package/dist/collection/components/data/cell-renderer.js +44 -0
- package/dist/collection/components/data/cell-renderer.js.map +1 -0
- package/dist/collection/components/data/column.service.js +293 -0
- package/dist/collection/components/data/column.service.js.map +1 -0
- package/dist/collection/components/data/revogr-data-style.css +75 -0
- package/dist/collection/components/data/revogr-data.js +697 -0
- 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 +13 -0
- package/dist/collection/components/editors/edit.utils.js.map +1 -0
- package/dist/collection/components/editors/revogr-edit-style.css +16 -0
- package/dist/collection/components/editors/revogr-edit.js +346 -0
- package/dist/collection/components/editors/revogr-edit.js.map +1 -0
- package/dist/collection/components/editors/text-editor.js +74 -0
- package/dist/collection/components/editors/text-editor.js.map +1 -0
- package/dist/collection/components/extra/revogr-extra.js +125 -0
- package/dist/collection/components/extra/revogr-extra.js.map +1 -0
- package/dist/collection/components/header/header-cell-renderer.js +34 -0
- package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
- package/dist/collection/components/header/header-group-renderer.js +25 -0
- package/dist/collection/components/header/header-group-renderer.js.map +1 -0
- package/dist/collection/components/header/header-renderer.js +61 -0
- package/dist/collection/components/header/header-renderer.js.map +1 -0
- package/dist/collection/components/header/resizable.directive.js +237 -0
- package/dist/collection/components/header/resizable.directive.js.map +1 -0
- package/dist/collection/components/header/resizable.element.js +38 -0
- package/dist/collection/components/header/resizable.element.js.map +1 -0
- package/dist/collection/components/header/revogr-header-style.css +144 -0
- package/dist/collection/components/header/revogr-header.js +573 -0
- 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 +461 -0
- package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
- package/dist/collection/components/overlay/autofill.service.js +224 -0
- package/dist/collection/components/overlay/autofill.service.js.map +1 -0
- package/dist/collection/components/overlay/keyboard.service.js +158 -0
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +1515 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +95 -0
- package/dist/collection/components/overlay/selection.utils.js +136 -0
- package/dist/collection/components/overlay/selection.utils.js.map +1 -0
- package/dist/collection/components/revoGrid/grid.helpers.js +33 -0
- package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/plugin.service.js +81 -0
- package/dist/collection/components/revoGrid/plugin.service.js.map +1 -0
- package/dist/collection/components/revoGrid/revo-grid-style.css +567 -0
- package/dist/collection/components/revoGrid/revo-grid.js +3671 -0
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js +49 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js +55 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js +90 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.service.js +237 -0
- package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +291 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
- package/dist/collection/components/rowHeaders/row-header-render.js +5 -0
- package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +69 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +601 -0
- 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 +34 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +295 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
- package/dist/collection/components/selectionFocus/revogr-focus-style.css +7 -0
- package/dist/collection/components/selectionFocus/revogr-focus.js +400 -0
- package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +28 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js +171 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
- package/dist/collection/components/vnode/vnode-converter.js +84 -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 +19 -0
- package/dist/collection/global/global.js.map +1 -0
- package/dist/collection/index.js +13 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/plugins/add-rows-on-paste.plugin.js +40 -0
- package/dist/collection/plugins/add-rows-on-paste.plugin.js.map +1 -0
- package/dist/collection/plugins/base.plugin.js +90 -0
- package/dist/collection/plugins/base.plugin.js.map +1 -0
- package/dist/collection/plugins/column.auto-size.plugin.js +225 -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 +40 -0
- package/dist/collection/plugins/dispatcher.js.map +1 -0
- package/dist/collection/plugins/export/csv.js +72 -0
- package/dist/collection/plugins/export/csv.js.map +1 -0
- package/dist/collection/plugins/export/export.plugin.js +157 -0
- package/dist/collection/plugins/export/export.plugin.js.map +1 -0
- package/dist/collection/plugins/export/types.js +2 -0
- package/dist/collection/plugins/export/types.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/equal.js +21 -0
- package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +14 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +11 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +16 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +11 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/set.js +7 -0
- package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +21 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js +25 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
- package/dist/collection/plugins/filter/filter.button.js +28 -0
- package/dist/collection/plugins/filter/filter.button.js.map +1 -0
- package/dist/collection/plugins/filter/filter.indexed.js +49 -0
- package/dist/collection/plugins/filter/filter.indexed.js.map +1 -0
- package/dist/collection/plugins/filter/filter.panel.js +610 -0
- package/dist/collection/plugins/filter/filter.panel.js.map +1 -0
- package/dist/collection/plugins/filter/filter.plugin.js +388 -0
- package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
- package/dist/collection/plugins/filter/filter.style.css +165 -0
- package/dist/collection/plugins/filter/filter.types.js +9 -0
- package/dist/collection/plugins/filter/filter.types.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +16 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +79 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +245 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +38 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +2 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js +178 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +61 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
- package/dist/collection/plugins/index.js +15 -0
- package/dist/collection/plugins/index.js.map +1 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +175 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js +71 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
- package/dist/collection/plugins/rtl/rtl.plugin.js +110 -0
- package/dist/collection/plugins/rtl/rtl.plugin.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.func.js +82 -0
- package/dist/collection/plugins/sorting/sorting.func.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js +224 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.sign.js +9 -0
- package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.types.js +2 -0
- package/dist/collection/plugins/sorting/sorting.types.js.map +1 -0
- package/dist/collection/plugins/wcag/index.js +84 -0
- package/dist/collection/plugins/wcag/index.js.map +1 -0
- package/dist/collection/serve/controller.js +344 -0
- package/dist/collection/serve/data.js +201 -0
- package/dist/collection/services/cell.helpers.js +12 -0
- package/dist/collection/services/cell.helpers.js.map +1 -0
- package/dist/collection/services/column.data.provider.js +119 -0
- package/dist/collection/services/column.data.provider.js.map +1 -0
- package/dist/collection/services/data.provider.js +89 -0
- package/dist/collection/services/data.provider.js.map +1 -0
- package/dist/collection/services/dimension.provider.js +176 -0
- package/dist/collection/services/dimension.provider.js.map +1 -0
- package/dist/collection/services/local.scroll.service.js +124 -0
- package/dist/collection/services/local.scroll.service.js.map +1 -0
- package/dist/collection/services/local.scroll.timer.js +81 -0
- package/dist/collection/services/local.scroll.timer.js.map +1 -0
- package/dist/collection/services/selection.store.connector.js +307 -0
- package/dist/collection/services/selection.store.connector.js.map +1 -0
- package/dist/collection/services/viewport.provider.js +17 -0
- package/dist/collection/services/viewport.provider.js.map +1 -0
- package/dist/collection/store/dataSource/data.proxy.js +45 -0
- package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
- package/dist/collection/store/dataSource/data.store.js +144 -0
- 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 +34 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.helpers.js +101 -0
- package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
- package/dist/collection/store/dimension/dimension.recalculate.plugin.js +35 -0
- package/dist/collection/store/dimension/dimension.recalculate.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.store.js +109 -0
- package/dist/collection/store/dimension/dimension.store.js.map +1 -0
- package/dist/collection/store/dimension/dimension.trim.plugin.js +61 -0
- package/dist/collection/store/dimension/dimension.trim.plugin.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/index.js +17 -0
- package/dist/collection/store/index.js.map +1 -0
- package/dist/collection/store/selection/index.js +6 -0
- package/dist/collection/store/selection/index.js.map +1 -0
- package/dist/collection/store/selection/selection.helpers.js +53 -0
- package/dist/collection/store/selection/selection.helpers.js.map +1 -0
- package/dist/collection/store/selection/selection.store.js +85 -0
- package/dist/collection/store/selection/selection.store.js.map +1 -0
- package/dist/collection/store/vp/index.js +6 -0
- package/dist/collection/store/vp/index.js.map +1 -0
- package/dist/collection/store/vp/viewport.helpers.js +251 -0
- package/dist/collection/store/vp/viewport.helpers.js.map +1 -0
- package/dist/collection/store/vp/viewport.store.js +151 -0
- package/dist/collection/store/vp/viewport.store.js.map +1 -0
- package/dist/collection/themeManager/theme.compact.js +9 -0
- package/dist/collection/themeManager/theme.compact.js.map +1 -0
- package/dist/collection/themeManager/theme.default.js +9 -0
- package/dist/collection/themeManager/theme.default.js.map +1 -0
- package/dist/collection/themeManager/theme.material.js +9 -0
- 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/events.js +118 -0
- package/dist/collection/types/events.js.map +1 -0
- package/dist/collection/types/index.js +12 -0
- package/dist/collection/types/index.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/column.utils.js +153 -0
- package/dist/collection/utils/column.utils.js.map +1 -0
- package/dist/collection/utils/consts.js +26 -0
- package/dist/collection/utils/consts.js.map +1 -0
- package/dist/collection/utils/events.js +39 -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 +140 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/key.codes.js +80 -0
- package/dist/collection/utils/key.codes.js.map +1 -0
- package/dist/collection/utils/key.utils.js +90 -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 +9 -0
- package/dist/collection/utils/platform.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.types.js +2 -0
- package/dist/collection/utils/store.types.js.map +1 -0
- package/dist/collection/utils/store.utils.js +15 -0
- package/dist/collection/utils/store.utils.js.map +1 -0
- package/dist/esm/app-globals-FBz64o-g.js +14 -0
- package/dist/esm/app-globals-FBz64o-g.js.map +1 -0
- package/dist/esm/cell-renderer-Ca_PCGjJ.js +98 -0
- package/dist/esm/cell-renderer-Ca_PCGjJ.js.map +1 -0
- package/dist/esm/column.drag.plugin-BtuUyB-2.js +2528 -0
- package/dist/esm/column.drag.plugin-BtuUyB-2.js.map +1 -0
- package/dist/esm/column.service-CTqFIQUy.js +1343 -0
- package/dist/esm/column.service-CTqFIQUy.js.map +1 -0
- package/dist/esm/data.store-B-lvmoFH.js +3553 -0
- package/dist/esm/data.store-B-lvmoFH.js.map +1 -0
- package/dist/esm/debounce-DTUQ1fY7.js +488 -0
- package/dist/esm/debounce-DTUQ1fY7.js.map +1 -0
- package/dist/esm/edit.utils-CyCANCLB.js +103 -0
- package/dist/esm/edit.utils-CyCANCLB.js.map +1 -0
- package/dist/esm/events-CKtYJJSv.js +43 -0
- package/dist/esm/events-CKtYJJSv.js.map +1 -0
- package/dist/esm/filter.button-CjABZQgg.js +39 -0
- package/dist/esm/filter.button-CjABZQgg.js.map +1 -0
- package/dist/esm/header-cell-renderer-DnjpJuXq.js +351 -0
- package/dist/esm/header-cell-renderer-DnjpJuXq.js.map +1 -0
- package/dist/esm/index-BAoInZ4V.js +2519 -0
- package/dist/esm/index-BAoInZ4V.js.map +1 -0
- package/dist/esm/index.js +181 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/revo-grid.entry.js +2185 -0
- package/dist/esm/revo-grid.entry.js.map +1 -0
- package/dist/esm/revo-grid.js +27 -0
- package/dist/esm/revo-grid.js.map +1 -0
- package/dist/esm/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.js.map +1 -0
- package/dist/esm/revogr-attribution_7.entry.js +1455 -0
- package/dist/esm/revogr-attribution_7.entry.js.map +1 -0
- package/dist/esm/revogr-clipboard.revogr-edit.revogr-order-editor.entry.js.map +1 -0
- package/dist/esm/revogr-clipboard_3.entry.js +452 -0
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/esm/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.js.map +1 -0
- package/dist/esm/revogr-data_4.entry.js +943 -0
- package/dist/esm/revogr-data_4.entry.js.map +1 -0
- package/dist/esm/revogr-filter-panel.entry.js +380 -0
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
- package/dist/esm/row-header-utils-vnoLGj5A.js +407 -0
- package/dist/esm/row-header-utils-vnoLGj5A.js.map +1 -0
- package/dist/esm/text-editor-Cp7lwBZi.js +79 -0
- package/dist/esm/text-editor-Cp7lwBZi.js.map +1 -0
- package/dist/esm/throttle-DiUrHjcY.js +273 -0
- package/dist/esm/throttle-DiUrHjcY.js.map +1 -0
- package/dist/esm/viewport.helpers-Ch4AQMMg.js +53 -0
- package/dist/esm/viewport.helpers-Ch4AQMMg.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/revo-grid/app-globals-FBz64o-g.js +14 -0
- package/dist/revo-grid/app-globals-FBz64o-g.js.map +1 -0
- package/dist/revo-grid/cell-renderer-Ca_PCGjJ.js +98 -0
- package/dist/revo-grid/cell-renderer-Ca_PCGjJ.js.map +1 -0
- package/dist/revo-grid/column.drag.plugin-BtuUyB-2.js +2528 -0
- package/dist/revo-grid/column.drag.plugin-BtuUyB-2.js.map +1 -0
- package/dist/revo-grid/column.service-CTqFIQUy.js +1343 -0
- package/dist/revo-grid/column.service-CTqFIQUy.js.map +1 -0
- package/dist/revo-grid/data.store-B-lvmoFH.js +3553 -0
- package/dist/revo-grid/data.store-B-lvmoFH.js.map +1 -0
- package/dist/revo-grid/debounce-DTUQ1fY7.js +488 -0
- package/dist/revo-grid/debounce-DTUQ1fY7.js.map +1 -0
- package/dist/revo-grid/edit.utils-CyCANCLB.js +103 -0
- package/dist/revo-grid/edit.utils-CyCANCLB.js.map +1 -0
- package/dist/revo-grid/events-CKtYJJSv.js +43 -0
- package/dist/revo-grid/events-CKtYJJSv.js.map +1 -0
- package/dist/revo-grid/filter.button-CjABZQgg.js +39 -0
- package/dist/revo-grid/filter.button-CjABZQgg.js.map +1 -0
- package/dist/revo-grid/header-cell-renderer-DnjpJuXq.js +351 -0
- package/dist/revo-grid/header-cell-renderer-DnjpJuXq.js.map +1 -0
- package/dist/revo-grid/index-BAoInZ4V.js +2490 -0
- package/dist/revo-grid/index-BAoInZ4V.js.map +1 -0
- package/dist/revo-grid/index.esm.js +181 -0
- package/dist/revo-grid/index.esm.js.map +1 -0
- package/dist/revo-grid/loader.esm.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.esm.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.js +2185 -0
- package/dist/revo-grid/revo-grid.entry.js.map +1 -0
- package/dist/revo-grid/revo-grid.esm.js +27 -0
- package/dist/revo-grid/revo-grid.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution_7.entry.js +1455 -0
- package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -0
- package/dist/revo-grid/revogr-clipboard.revogr-edit.revogr-order-editor.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js +452 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/revo-grid/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-data_4.entry.js +943 -0
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js +380 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
- package/dist/revo-grid/row-header-utils-vnoLGj5A.js +407 -0
- package/dist/revo-grid/row-header-utils-vnoLGj5A.js.map +1 -0
- package/dist/revo-grid/text-editor-Cp7lwBZi.js +79 -0
- package/dist/revo-grid/text-editor-Cp7lwBZi.js.map +1 -0
- package/dist/revo-grid/throttle-DiUrHjcY.js +273 -0
- package/dist/revo-grid/throttle-DiUrHjcY.js.map +1 -0
- package/dist/revo-grid/viewport.helpers-Ch4AQMMg.js +53 -0
- package/dist/revo-grid/viewport.helpers-Ch4AQMMg.js.map +1 -0
- package/dist/types/components/attribution/revogr-attribution.d.ts +12 -0
- package/dist/types/components/clipboard/revogr-clipboard.d.ts +89 -0
- package/dist/types/components/data/cell-renderer.d.ts +12 -0
- package/dist/types/components/data/column.service.d.ts +61 -0
- package/dist/types/components/data/revogr-data.d.ts +107 -0
- package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
- package/dist/types/components/data/row-renderer.d.ts +12 -0
- package/dist/types/components/editors/edit.utils.d.ts +3 -0
- package/dist/types/components/editors/revogr-edit.d.ts +63 -0
- package/dist/types/components/editors/text-editor.d.ts +43 -0
- package/dist/types/components/extra/revogr-extra.d.ts +38 -0
- package/dist/types/components/header/header-cell-renderer.d.ts +9 -0
- package/dist/types/components/header/header-group-renderer.d.ts +15 -0
- package/dist/types/components/header/header-renderer.d.ts +16 -0
- package/dist/types/components/header/resizable.directive.d.ts +55 -0
- package/dist/types/components/header/resizable.element.d.ts +5 -0
- package/dist/types/components/header/revogr-header.d.ts +90 -0
- package/dist/types/components/order/order-renderer.d.ts +29 -0
- package/dist/types/components/order/order-row.service.d.ts +27 -0
- package/dist/types/components/order/revogr-order-editor.d.ts +56 -0
- package/dist/types/components/overlay/autofill.service.d.ts +80 -0
- package/dist/types/components/overlay/keyboard.service.d.ts +28 -0
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +278 -0
- package/dist/types/components/overlay/selection.utils.d.ts +47 -0
- package/dist/types/components/revoGrid/grid.helpers.d.ts +17 -0
- package/dist/types/components/revoGrid/plugin.service.d.ts +37 -0
- package/dist/types/components/revoGrid/revo-grid.d.ts +686 -0
- package/dist/types/components/revoGrid/viewport.helpers.d.ts +39 -0
- package/dist/types/components/revoGrid/viewport.resize.service.d.ts +17 -0
- package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +20 -0
- package/dist/types/components/revoGrid/viewport.service.d.ts +59 -0
- package/dist/types/components/rowHeaders/revogr-row-headers.d.ts +51 -0
- package/dist/types/components/rowHeaders/row-header-render.d.ts +9 -0
- package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +117 -0
- package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
- package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +43 -0
- package/dist/types/components/selectionFocus/revogr-focus.d.ts +58 -0
- package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +28 -0
- package/dist/types/components/vnode/vnode-converter.d.ts +19 -0
- package/dist/types/components/vnode/vnode.utils.d.ts +9 -0
- package/dist/types/components.d.ts +2583 -0
- package/dist/types/global/global.d.ts +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/plugins/add-rows-on-paste.plugin.d.ts +14 -0
- package/dist/types/plugins/base.plugin.d.ts +51 -0
- package/dist/types/plugins/column.auto-size.plugin.d.ts +55 -0
- package/dist/types/plugins/column.stretch.plugin.d.ts +20 -0
- package/dist/types/plugins/dispatcher.d.ts +20 -0
- package/dist/types/plugins/export/csv.d.ts +9 -0
- package/dist/types/plugins/export/export.plugin.d.ts +24 -0
- package/dist/types/plugins/export/types.d.ts +23 -0
- package/dist/types/plugins/filter/conditions/equal.d.ts +4 -0
- package/dist/types/plugins/filter/conditions/number/greaterThan.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/lessThan.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/lessThanOrEqual.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/set.d.ts +4 -0
- package/dist/types/plugins/filter/conditions/string/beginswith.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/string/contains.d.ts +4 -0
- package/dist/types/plugins/filter/filter.button.d.ts +14 -0
- package/dist/types/plugins/filter/filter.indexed.d.ts +20 -0
- package/dist/types/plugins/filter/filter.panel.d.ts +53 -0
- package/dist/types/plugins/filter/filter.plugin.d.ts +73 -0
- package/dist/types/plugins/filter/filter.types.d.ts +129 -0
- package/dist/types/plugins/groupingRow/grouping.const.d.ts +12 -0
- package/dist/types/plugins/groupingRow/grouping.row.expand.service.d.ts +15 -0
- package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +39 -0
- package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +6 -0
- package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +103 -0
- package/dist/types/plugins/groupingRow/grouping.service.d.ts +36 -0
- package/dist/types/plugins/groupingRow/grouping.trimmed.service.d.ts +10 -0
- package/dist/types/plugins/index.d.ts +11 -0
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +42 -0
- package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
- package/dist/types/plugins/rtl/rtl.plugin.d.ts +37 -0
- package/dist/types/plugins/sorting/sorting.func.d.ts +9 -0
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +48 -0
- package/dist/types/plugins/sorting/sorting.sign.d.ts +6 -0
- package/dist/types/plugins/sorting/sorting.types.d.ts +14 -0
- package/dist/types/plugins/wcag/index.d.ts +26 -0
- package/dist/types/services/cell.helpers.d.ts +2 -0
- package/dist/types/services/column.data.provider.d.ts +27 -0
- package/dist/types/services/data.provider.d.ts +36 -0
- package/dist/types/services/dimension.provider.d.ts +66 -0
- package/dist/types/services/local.scroll.service.d.ts +36 -0
- package/dist/types/services/local.scroll.timer.d.ts +32 -0
- package/dist/types/services/selection.store.connector.d.ts +79 -0
- package/dist/types/services/viewport.provider.d.ts +7 -0
- package/dist/types/stencil-public-runtime.d.ts +1709 -0
- package/dist/types/store/dataSource/data.proxy.d.ts +14 -0
- package/dist/types/store/dataSource/data.store.d.ts +74 -0
- package/dist/types/store/dataSource/index.d.ts +3 -0
- package/dist/types/store/dataSource/trimmed.plugin.d.ts +12 -0
- package/dist/types/store/dimension/dimension.helpers.d.ts +24 -0
- package/dist/types/store/dimension/dimension.recalculate.plugin.d.ts +9 -0
- package/dist/types/store/dimension/dimension.store.d.ts +21 -0
- package/dist/types/store/dimension/dimension.trim.plugin.d.ts +13 -0
- package/dist/types/store/dimension/index.d.ts +2 -0
- package/dist/types/store/index.d.ts +8 -0
- package/dist/types/store/selection/index.d.ts +2 -0
- package/dist/types/store/selection/selection.helpers.d.ts +6 -0
- package/dist/types/store/selection/selection.store.d.ts +22 -0
- package/dist/types/store/vp/index.d.ts +7 -0
- package/dist/types/store/vp/viewport.helpers.d.ts +54 -0
- package/dist/types/store/vp/viewport.store.d.ts +26 -0
- package/dist/types/themeManager/theme.compact.d.ts +4 -0
- package/dist/types/themeManager/theme.default.d.ts +4 -0
- package/dist/types/themeManager/theme.material.d.ts +4 -0
- package/dist/types/themeManager/theme.service.d.ts +13 -0
- package/dist/types/types/dimension.d.ts +8 -0
- package/dist/types/types/events.d.ts +2 -0
- package/dist/types/types/index.d.ts +8 -0
- package/dist/types/types/interfaces.d.ts +768 -0
- package/dist/types/types/plugin.d.ts +9 -0
- package/dist/types/types/plugin.types.d.ts +48 -0
- package/dist/types/types/selection.d.ts +178 -0
- package/dist/types/types/theme.d.ts +7 -0
- package/dist/types/types/viewport.interfaces.d.ts +45 -0
- package/dist/types/utils/browser.d.ts +1 -0
- package/dist/types/utils/closest.polifill.d.ts +0 -0
- package/dist/types/utils/column.utils.d.ts +52 -0
- package/dist/types/utils/consts.d.ts +22 -0
- package/dist/types/utils/events.d.ts +5 -0
- package/dist/types/utils/header.utils.d.ts +2 -0
- package/dist/types/utils/index.d.ts +32 -0
- package/dist/types/utils/key.codes.d.ts +73 -0
- package/dist/types/utils/key.utils.d.ts +13 -0
- package/dist/types/utils/mobile.d.ts +1 -0
- package/dist/types/utils/platform.d.ts +4 -0
- package/dist/types/utils/row-header-utils.d.ts +2 -0
- package/dist/types/utils/store.types.d.ts +97 -0
- package/dist/types/utils/store.utils.d.ts +10 -0
- package/hydrate/index.d.ts +273 -0
- package/hydrate/index.js +33890 -0
- package/hydrate/index.mjs +33882 -0
- package/hydrate/package.json +12 -0
- package/loader/cdn.js +4 -0
- package/loader/index.cjs.js +4 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +4 -0
- package/loader/index.js +5 -0
- package/package.json +101 -0
- package/react/dist/index.d.ts +6191 -0
- package/react/dist/react-datagrid.js +260 -0
- package/react/dist/react-datagrid.umd.cjs +272 -0
- package/standalone/column.service.js +1345 -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 +3099 -0
- package/standalone/data.store.js.map +1 -0
- package/standalone/debounce.js +215 -0
- package/standalone/debounce.js.map +1 -0
- package/standalone/dimension.helpers.js +229 -0
- package/standalone/dimension.helpers.js.map +1 -0
- package/standalone/filter.button.js +39 -0
- package/standalone/filter.button.js.map +1 -0
- package/standalone/index.d.ts +68 -0
- package/standalone/index.js +217 -0
- package/standalone/index.js.map +1 -0
- package/standalone/index2.js +140 -0
- package/standalone/index2.js.map +1 -0
- package/standalone/local.scroll.timer.js +207 -0
- package/standalone/local.scroll.timer.js.map +1 -0
- package/standalone/platform.js +90 -0
- package/standalone/platform.js.map +1 -0
- package/standalone/revo-grid.d.ts +11 -0
- package/standalone/revo-grid.js +4884 -0
- package/standalone/revo-grid.js.map +1 -0
- package/standalone/revogr-attribution.d.ts +11 -0
- package/standalone/revogr-attribution.js +12 -0
- package/standalone/revogr-attribution.js.map +1 -0
- package/standalone/revogr-attribution2.js +32 -0
- package/standalone/revogr-attribution2.js.map +1 -0
- package/standalone/revogr-clipboard.d.ts +11 -0
- package/standalone/revogr-clipboard.js +12 -0
- package/standalone/revogr-clipboard.js.map +1 -0
- package/standalone/revogr-clipboard2.js +164 -0
- package/standalone/revogr-clipboard2.js.map +1 -0
- package/standalone/revogr-data.d.ts +11 -0
- package/standalone/revogr-data.js +12 -0
- package/standalone/revogr-data.js.map +1 -0
- package/standalone/revogr-data2.js +378 -0
- package/standalone/revogr-data2.js.map +1 -0
- package/standalone/revogr-edit.d.ts +11 -0
- package/standalone/revogr-edit.js +12 -0
- package/standalone/revogr-edit.js.map +1 -0
- package/standalone/revogr-edit2.js +334 -0
- package/standalone/revogr-edit2.js.map +1 -0
- package/standalone/revogr-extra.d.ts +11 -0
- package/standalone/revogr-extra.js +12 -0
- package/standalone/revogr-extra.js.map +1 -0
- package/standalone/revogr-extra2.js +73 -0
- package/standalone/revogr-extra2.js.map +1 -0
- package/standalone/revogr-filter-panel.d.ts +11 -0
- package/standalone/revogr-filter-panel.js +411 -0
- package/standalone/revogr-filter-panel.js.map +1 -0
- package/standalone/revogr-focus.d.ts +11 -0
- package/standalone/revogr-focus.js +12 -0
- package/standalone/revogr-focus.js.map +1 -0
- package/standalone/revogr-focus2.js +112 -0
- package/standalone/revogr-focus2.js.map +1 -0
- package/standalone/revogr-header.d.ts +11 -0
- package/standalone/revogr-header.js +12 -0
- package/standalone/revogr-header.js.map +1 -0
- package/standalone/revogr-header2.js +707 -0
- package/standalone/revogr-header2.js.map +1 -0
- package/standalone/revogr-order-editor.d.ts +11 -0
- package/standalone/revogr-order-editor.js +12 -0
- package/standalone/revogr-order-editor.js.map +1 -0
- package/standalone/revogr-order-editor2.js +201 -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 +12 -0
- package/standalone/revogr-overlay-selection.js.map +1 -0
- package/standalone/revogr-overlay-selection2.js +972 -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 +12 -0
- package/standalone/revogr-row-headers.js.map +1 -0
- package/standalone/revogr-row-headers2.js +520 -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 +12 -0
- package/standalone/revogr-scroll-virtual.js.map +1 -0
- package/standalone/revogr-scroll-virtual2.js +184 -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 +12 -0
- package/standalone/revogr-temp-range.js.map +1 -0
- package/standalone/revogr-temp-range2.js +93 -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 +12 -0
- package/standalone/revogr-viewport-scroll.js.map +1 -0
- package/standalone/revogr-viewport-scroll2.js +421 -0
- package/standalone/revogr-viewport-scroll2.js.map +1 -0
- package/standalone/selection.utils.js +179 -0
- package/standalone/selection.utils.js.map +1 -0
- package/standalone/throttle.js +75 -0
- package/standalone/throttle.js.map +1 -0
- package/standalone/toNumber.js +282 -0
- package/standalone/toNumber.js.map +1 -0
- package/standalone/vnode-converter.js +46 -0
- package/standalone/vnode-converter.js.map +1 -0
- package/standalone/vnode-html.d.ts +11 -0
- package/standalone/vnode-html.js +12 -0
- package/standalone/vnode-html.js.map +1 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by LevelSkill.Pro
|
|
3
|
+
*/
|
|
4
|
+
import { r as root, t as toNumber, c as isObject } from './toNumber.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
8
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
9
|
+
*
|
|
10
|
+
* @static
|
|
11
|
+
* @memberOf _
|
|
12
|
+
* @since 2.4.0
|
|
13
|
+
* @category Date
|
|
14
|
+
* @returns {number} Returns the timestamp.
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* _.defer(function(stamp) {
|
|
18
|
+
* console.log(_.now() - stamp);
|
|
19
|
+
* }, _.now());
|
|
20
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
21
|
+
*/
|
|
22
|
+
var now = function() {
|
|
23
|
+
return root.Date.now();
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** Error message constants. */
|
|
27
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
28
|
+
|
|
29
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
30
|
+
var nativeMax = Math.max,
|
|
31
|
+
nativeMin = Math.min;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
35
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
36
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
37
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
38
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
39
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
40
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
41
|
+
* calls to the debounced function return the result of the last `func`
|
|
42
|
+
* invocation.
|
|
43
|
+
*
|
|
44
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
45
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
46
|
+
* is invoked more than once during the `wait` timeout.
|
|
47
|
+
*
|
|
48
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
49
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
50
|
+
*
|
|
51
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
52
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
53
|
+
*
|
|
54
|
+
* @static
|
|
55
|
+
* @memberOf _
|
|
56
|
+
* @since 0.1.0
|
|
57
|
+
* @category Function
|
|
58
|
+
* @param {Function} func The function to debounce.
|
|
59
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
60
|
+
* @param {Object} [options={}] The options object.
|
|
61
|
+
* @param {boolean} [options.leading=false]
|
|
62
|
+
* Specify invoking on the leading edge of the timeout.
|
|
63
|
+
* @param {number} [options.maxWait]
|
|
64
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
65
|
+
* @param {boolean} [options.trailing=true]
|
|
66
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
67
|
+
* @returns {Function} Returns the new debounced function.
|
|
68
|
+
* @example
|
|
69
|
+
*
|
|
70
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
71
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
72
|
+
*
|
|
73
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
74
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
75
|
+
* 'leading': true,
|
|
76
|
+
* 'trailing': false
|
|
77
|
+
* }));
|
|
78
|
+
*
|
|
79
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
80
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
81
|
+
* var source = new EventSource('/stream');
|
|
82
|
+
* jQuery(source).on('message', debounced);
|
|
83
|
+
*
|
|
84
|
+
* // Cancel the trailing debounced invocation.
|
|
85
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
86
|
+
*/
|
|
87
|
+
function debounce(func, wait, options) {
|
|
88
|
+
var lastArgs,
|
|
89
|
+
lastThis,
|
|
90
|
+
maxWait,
|
|
91
|
+
result,
|
|
92
|
+
timerId,
|
|
93
|
+
lastCallTime,
|
|
94
|
+
lastInvokeTime = 0,
|
|
95
|
+
leading = false,
|
|
96
|
+
maxing = false,
|
|
97
|
+
trailing = true;
|
|
98
|
+
|
|
99
|
+
if (typeof func != 'function') {
|
|
100
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
101
|
+
}
|
|
102
|
+
wait = toNumber(wait) || 0;
|
|
103
|
+
if (isObject(options)) {
|
|
104
|
+
leading = !!options.leading;
|
|
105
|
+
maxing = 'maxWait' in options;
|
|
106
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
107
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function invokeFunc(time) {
|
|
111
|
+
var args = lastArgs,
|
|
112
|
+
thisArg = lastThis;
|
|
113
|
+
|
|
114
|
+
lastArgs = lastThis = undefined;
|
|
115
|
+
lastInvokeTime = time;
|
|
116
|
+
result = func.apply(thisArg, args);
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function leadingEdge(time) {
|
|
121
|
+
// Reset any `maxWait` timer.
|
|
122
|
+
lastInvokeTime = time;
|
|
123
|
+
// Start the timer for the trailing edge.
|
|
124
|
+
timerId = setTimeout(timerExpired, wait);
|
|
125
|
+
// Invoke the leading edge.
|
|
126
|
+
return leading ? invokeFunc(time) : result;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function remainingWait(time) {
|
|
130
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
131
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
132
|
+
timeWaiting = wait - timeSinceLastCall;
|
|
133
|
+
|
|
134
|
+
return maxing
|
|
135
|
+
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
136
|
+
: timeWaiting;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function shouldInvoke(time) {
|
|
140
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
141
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
142
|
+
|
|
143
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
144
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
145
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
146
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
147
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function timerExpired() {
|
|
151
|
+
var time = now();
|
|
152
|
+
if (shouldInvoke(time)) {
|
|
153
|
+
return trailingEdge(time);
|
|
154
|
+
}
|
|
155
|
+
// Restart the timer.
|
|
156
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function trailingEdge(time) {
|
|
160
|
+
timerId = undefined;
|
|
161
|
+
|
|
162
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
163
|
+
// debounced at least once.
|
|
164
|
+
if (trailing && lastArgs) {
|
|
165
|
+
return invokeFunc(time);
|
|
166
|
+
}
|
|
167
|
+
lastArgs = lastThis = undefined;
|
|
168
|
+
return result;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function cancel() {
|
|
172
|
+
if (timerId !== undefined) {
|
|
173
|
+
clearTimeout(timerId);
|
|
174
|
+
}
|
|
175
|
+
lastInvokeTime = 0;
|
|
176
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function flush() {
|
|
180
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function debounced() {
|
|
184
|
+
var time = now(),
|
|
185
|
+
isInvoking = shouldInvoke(time);
|
|
186
|
+
|
|
187
|
+
lastArgs = arguments;
|
|
188
|
+
lastThis = this;
|
|
189
|
+
lastCallTime = time;
|
|
190
|
+
|
|
191
|
+
if (isInvoking) {
|
|
192
|
+
if (timerId === undefined) {
|
|
193
|
+
return leadingEdge(lastCallTime);
|
|
194
|
+
}
|
|
195
|
+
if (maxing) {
|
|
196
|
+
// Handle invocations in a tight loop.
|
|
197
|
+
clearTimeout(timerId);
|
|
198
|
+
timerId = setTimeout(timerExpired, wait);
|
|
199
|
+
return invokeFunc(lastCallTime);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (timerId === undefined) {
|
|
203
|
+
timerId = setTimeout(timerExpired, wait);
|
|
204
|
+
}
|
|
205
|
+
return result;
|
|
206
|
+
}
|
|
207
|
+
debounced.cancel = cancel;
|
|
208
|
+
debounced.flush = flush;
|
|
209
|
+
return debounced;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export { debounce as d };
|
|
213
|
+
//# sourceMappingURL=debounce.js.map
|
|
214
|
+
|
|
215
|
+
//# sourceMappingURL=debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"debounce.js","mappings":";;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AQ,YAAY,CAAC,OAAO,CAAC;AAC7B,QAAQ,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC;AAChD,QAAQ,OAAO,UAAU,CAAC,YAAY,CAAC;AACvC;AACA;AACA,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE;AAC/B,MAAM,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC;AAC9C;AACA,IAAI,OAAO,MAAM;AACjB;AACA,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM;AAC3B,EAAE,SAAS,CAAC,KAAK,GAAG,KAAK;AACzB,EAAE,OAAO,SAAS;AAClB;;;;","names":[],"sources":["node_modules/lodash/now.js","node_modules/lodash/debounce.js"],"sourcesContent":["import root from './_root.js';\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nexport default now;\n","import isObject from './isObject.js';\nimport now from './now.js';\nimport toNumber from './toNumber.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * 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 debounced 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 `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nexport default debounce;\n"],"version":3}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by LevelSkill.Pro
|
|
3
|
+
*/
|
|
4
|
+
import { a as isSymbol } from './toNumber.js';
|
|
5
|
+
import { k as identity } from './data.store.js';
|
|
6
|
+
|
|
7
|
+
/** Used as references for the maximum length and index of an array. */
|
|
8
|
+
var MAX_ARRAY_LENGTH$1 = 4294967295,
|
|
9
|
+
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH$1 - 1;
|
|
10
|
+
|
|
11
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
12
|
+
var nativeFloor = Math.floor,
|
|
13
|
+
nativeMin = Math.min;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
|
|
17
|
+
* which invokes `iteratee` for `value` and each element of `array` to compute
|
|
18
|
+
* their sort ranking. The iteratee is invoked with one argument; (value).
|
|
19
|
+
*
|
|
20
|
+
* @private
|
|
21
|
+
* @param {Array} array The sorted array to inspect.
|
|
22
|
+
* @param {*} value The value to evaluate.
|
|
23
|
+
* @param {Function} iteratee The iteratee invoked per element.
|
|
24
|
+
* @param {boolean} [retHighest] Specify returning the highest qualified index.
|
|
25
|
+
* @returns {number} Returns the index at which `value` should be inserted
|
|
26
|
+
* into `array`.
|
|
27
|
+
*/
|
|
28
|
+
function baseSortedIndexBy(array, value, iteratee, retHighest) {
|
|
29
|
+
var low = 0,
|
|
30
|
+
high = array == null ? 0 : array.length;
|
|
31
|
+
if (high === 0) {
|
|
32
|
+
return 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
value = iteratee(value);
|
|
36
|
+
var valIsNaN = value !== value,
|
|
37
|
+
valIsNull = value === null,
|
|
38
|
+
valIsSymbol = isSymbol(value),
|
|
39
|
+
valIsUndefined = value === undefined;
|
|
40
|
+
|
|
41
|
+
while (low < high) {
|
|
42
|
+
var mid = nativeFloor((low + high) / 2),
|
|
43
|
+
computed = iteratee(array[mid]),
|
|
44
|
+
othIsDefined = computed !== undefined,
|
|
45
|
+
othIsNull = computed === null,
|
|
46
|
+
othIsReflexive = computed === computed,
|
|
47
|
+
othIsSymbol = isSymbol(computed);
|
|
48
|
+
|
|
49
|
+
if (valIsNaN) {
|
|
50
|
+
var setLow = othIsReflexive;
|
|
51
|
+
} else if (valIsUndefined) {
|
|
52
|
+
setLow = othIsReflexive && (othIsDefined);
|
|
53
|
+
} else if (valIsNull) {
|
|
54
|
+
setLow = othIsReflexive && othIsDefined && (!othIsNull);
|
|
55
|
+
} else if (valIsSymbol) {
|
|
56
|
+
setLow = othIsReflexive && othIsDefined && !othIsNull && (!othIsSymbol);
|
|
57
|
+
} else if (othIsNull || othIsSymbol) {
|
|
58
|
+
setLow = false;
|
|
59
|
+
} else {
|
|
60
|
+
setLow = (computed < value);
|
|
61
|
+
}
|
|
62
|
+
if (setLow) {
|
|
63
|
+
low = mid + 1;
|
|
64
|
+
} else {
|
|
65
|
+
high = mid;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Used as references for the maximum length and index of an array. */
|
|
72
|
+
var MAX_ARRAY_LENGTH = 4294967295,
|
|
73
|
+
HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
|
|
77
|
+
* performs a binary search of `array` to determine the index at which `value`
|
|
78
|
+
* should be inserted into `array` in order to maintain its sort order.
|
|
79
|
+
*
|
|
80
|
+
* @private
|
|
81
|
+
* @param {Array} array The sorted array to inspect.
|
|
82
|
+
* @param {*} value The value to evaluate.
|
|
83
|
+
* @param {boolean} [retHighest] Specify returning the highest qualified index.
|
|
84
|
+
* @returns {number} Returns the index at which `value` should be inserted
|
|
85
|
+
* into `array`.
|
|
86
|
+
*/
|
|
87
|
+
function baseSortedIndex(array, value, retHighest) {
|
|
88
|
+
var low = 0,
|
|
89
|
+
high = array == null ? low : array.length;
|
|
90
|
+
|
|
91
|
+
if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
|
|
92
|
+
while (low < high) {
|
|
93
|
+
var mid = (low + high) >>> 1,
|
|
94
|
+
computed = array[mid];
|
|
95
|
+
|
|
96
|
+
if (computed !== null && !isSymbol(computed) &&
|
|
97
|
+
((computed < value))) {
|
|
98
|
+
low = mid + 1;
|
|
99
|
+
} else {
|
|
100
|
+
high = mid;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return high;
|
|
104
|
+
}
|
|
105
|
+
return baseSortedIndexBy(array, value, identity);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Uses a binary search to determine the lowest index at which `value`
|
|
110
|
+
* should be inserted into `array` in order to maintain its sort order.
|
|
111
|
+
*
|
|
112
|
+
* @static
|
|
113
|
+
* @memberOf _
|
|
114
|
+
* @since 0.1.0
|
|
115
|
+
* @category Array
|
|
116
|
+
* @param {Array} array The sorted array to inspect.
|
|
117
|
+
* @param {*} value The value to evaluate.
|
|
118
|
+
* @returns {number} Returns the index at which `value` should be inserted
|
|
119
|
+
* into `array`.
|
|
120
|
+
* @example
|
|
121
|
+
*
|
|
122
|
+
* _.sortedIndex([30, 50], 40);
|
|
123
|
+
* // => 1
|
|
124
|
+
*/
|
|
125
|
+
function sortedIndex(array, value) {
|
|
126
|
+
return baseSortedIndex(array, value);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Pre-calculation
|
|
131
|
+
* Dimension custom sizes for each cell
|
|
132
|
+
* Keeps only changed sizes, skips origin size
|
|
133
|
+
*/
|
|
134
|
+
function calculateDimensionData(originItemSize, newSizes = {}) {
|
|
135
|
+
const positionIndexes = [];
|
|
136
|
+
const positionIndexToItem = {};
|
|
137
|
+
const indexToItem = {};
|
|
138
|
+
// prepare order sorted new sizes and calculate changed real size
|
|
139
|
+
const newIndexes = Object.keys(newSizes).map(Number).sort((a, b) => a - b);
|
|
140
|
+
let previous;
|
|
141
|
+
for (let i = 0; i < newIndexes.length; i++) {
|
|
142
|
+
const itemIndex = newIndexes[i];
|
|
143
|
+
const newItem = {
|
|
144
|
+
itemIndex,
|
|
145
|
+
start: 0,
|
|
146
|
+
end: 0,
|
|
147
|
+
};
|
|
148
|
+
// if previous item was changed too
|
|
149
|
+
if (previous) {
|
|
150
|
+
const itemsBetween = (itemIndex - previous.itemIndex - 1) * originItemSize;
|
|
151
|
+
newItem.start = itemsBetween + previous.end;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
newItem.start = itemIndex * originItemSize;
|
|
155
|
+
}
|
|
156
|
+
newItem.end = newItem.start + newSizes[itemIndex];
|
|
157
|
+
positionIndexes.push(newItem.start);
|
|
158
|
+
indexToItem[itemIndex] = positionIndexToItem[i] = newItem;
|
|
159
|
+
previous = newItem;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
indexes: newIndexes,
|
|
163
|
+
positionIndexes: [...positionIndexes],
|
|
164
|
+
positionIndexToItem: Object.assign({}, positionIndexToItem),
|
|
165
|
+
indexToItem,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Calculate item by position
|
|
170
|
+
*/
|
|
171
|
+
const getItemByPosition = ({ indexes, positionIndexes, originItemSize, positionIndexToItem, }, pos) => {
|
|
172
|
+
const item = {
|
|
173
|
+
itemIndex: 0,
|
|
174
|
+
start: 0,
|
|
175
|
+
end: 0,
|
|
176
|
+
};
|
|
177
|
+
const currentPlace = indexes.length ? sortedIndex(positionIndexes, pos) : 0;
|
|
178
|
+
// not found or first index
|
|
179
|
+
if (!currentPlace) {
|
|
180
|
+
item.itemIndex = Math.floor(pos / originItemSize);
|
|
181
|
+
item.start = item.itemIndex * originItemSize;
|
|
182
|
+
item.end = item.start + originItemSize;
|
|
183
|
+
return item;
|
|
184
|
+
}
|
|
185
|
+
const positionItem = positionIndexToItem[currentPlace - 1];
|
|
186
|
+
// if item has specified size
|
|
187
|
+
if (positionItem.end > pos) {
|
|
188
|
+
return positionItem;
|
|
189
|
+
}
|
|
190
|
+
// special size item was present before
|
|
191
|
+
const relativePos = pos - positionItem.end;
|
|
192
|
+
const relativeIndex = Math.floor(relativePos / originItemSize);
|
|
193
|
+
item.itemIndex = positionItem.itemIndex + 1 + relativeIndex;
|
|
194
|
+
item.start = positionItem.end + relativeIndex * originItemSize;
|
|
195
|
+
item.end = item.start + originItemSize;
|
|
196
|
+
return item;
|
|
197
|
+
};
|
|
198
|
+
function getItemByIndex(dimension, index) {
|
|
199
|
+
let item = {
|
|
200
|
+
itemIndex: index,
|
|
201
|
+
start: 0,
|
|
202
|
+
end: 0,
|
|
203
|
+
};
|
|
204
|
+
// if item has specified size
|
|
205
|
+
if (dimension.indexToItem[index]) {
|
|
206
|
+
return dimension.indexToItem[index];
|
|
207
|
+
}
|
|
208
|
+
const currentPlace = dimension.indexes.length
|
|
209
|
+
? sortedIndex(dimension.indexes, index)
|
|
210
|
+
: 0;
|
|
211
|
+
// not found or first index
|
|
212
|
+
if (!currentPlace) {
|
|
213
|
+
item.start = item.itemIndex * dimension.originItemSize;
|
|
214
|
+
item.end = item.start + dimension.originItemSize;
|
|
215
|
+
return item;
|
|
216
|
+
}
|
|
217
|
+
// special size item was present before
|
|
218
|
+
const positionItem = dimension.indexToItem[dimension.indexes[currentPlace - 1]];
|
|
219
|
+
item.start =
|
|
220
|
+
positionItem.end +
|
|
221
|
+
(index - positionItem.itemIndex - 1) * dimension.originItemSize;
|
|
222
|
+
item.end = item.start + dimension.originItemSize;
|
|
223
|
+
return item;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export { getItemByIndex as a, calculateDimensionData as c, getItemByPosition as g };
|
|
227
|
+
//# sourceMappingURL=dimension.helpers.js.map
|
|
228
|
+
|
|
229
|
+
//# sourceMappingURL=dimension.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"dimension.helpers.js","mappings":";;;;;;AAEA;AACA,IAAIA,kBAAgB,GAAG,UAAU;AACjC,IAAI,eAAe,GAAGA,kBAAgB,GAAG,CAAC;;AAE1C;AACA,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK;AAC5B,IAAI,SAAS,GAAG,IAAI,CAAC,GAAG;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE;AAC/D,EAAE,IAAI,GAAG,GAAG,CAAC;AACb,MAAM,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM;AAC7C,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE;AAClB,IAAI,OAAO,CAAC;AACZ;;AAEA,EAAE,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;AACzB,EAAE,IAAI,QAAQ,GAAG,KAAK,KAAK,KAAK;AAChC,MAAM,SAAS,GAAG,KAAK,KAAK,IAAI;AAChC,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC;AACnC,MAAM,cAAc,GAAG,KAAK,KAAK,SAAS;;AAE1C,EAAE,OAAO,GAAG,GAAG,IAAI,EAAE;AACrB,IAAI,IAAI,GAAG,GAAG,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,CAAC;AAC3C,QAAQ,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACvC,QAAQ,YAAY,GAAG,QAAQ,KAAK,SAAS;AAC7C,QAAQ,SAAS,GAAG,QAAQ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AAS,CAAC,cAAc;AAChD,QAAA,OAAO,IAAI;;;AAGb,IAAA,MAAM,YAAY,GAChB,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;AAC5D,IAAA,IAAI,CAAC,KAAK;AACR,QAAA,YAAY,CAAC,GAAG;AAChB,YAAA,CAAC,KAAK,GAAG,YAAY,CAAC,SAAS,GAAG,CAAC,IAAI,SAAS,CAAC,cAAc;IACjE,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,cAAc;AAChD,IAAA,OAAO,IAAI;AACb;;;;","names":["MAX_ARRAY_LENGTH"],"sources":["node_modules/lodash/_baseSortedIndexBy.js","node_modules/lodash/_baseSortedIndex.js","node_modules/lodash/sortedIndex.js","src/store/dimension/dimension.helpers.ts"],"sourcesContent":["import isSymbol from './isSymbol.js';\n\n/** Used as references for the maximum length and index of an array. */\nvar MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeFloor = Math.floor,\n nativeMin = Math.min;\n\n/**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\nfunction baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n}\n\nexport default baseSortedIndexBy;\n","import baseSortedIndexBy from './_baseSortedIndexBy.js';\nimport identity from './identity.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for the maximum length and index of an array. */\nvar MAX_ARRAY_LENGTH = 4294967295,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n/**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\nfunction baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n}\n\nexport default baseSortedIndex;\n","import baseSortedIndex from './_baseSortedIndex.js';\n\n/**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\nfunction sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n}\n\nexport default sortedIndex;\n","import sortedIndex from 'lodash/sortedIndex';\r\n\r\nimport type {\r\n DimensionSettingsState,\r\n PositionItem,\r\n ViewSettingSizeProp,\r\n} from '@type';\r\n\r\nexport type DimensionPosition = Pick<\r\n DimensionSettingsState,\r\n 'indexes' | 'positionIndexes' | 'originItemSize' | 'positionIndexToItem'\r\n>;\r\nexport type DimensionIndexInput = Pick<\r\n DimensionSettingsState,\r\n 'indexes' | 'originItemSize' | 'indexToItem'\r\n>;\r\nexport type DimensionSize = Pick<\r\n DimensionSettingsState,\r\n | 'indexes'\r\n | 'positionIndexes'\r\n | 'positionIndexToItem'\r\n | 'indexToItem'\r\n | 'realSize'\r\n | 'sizes'\r\n>;\r\n/**\r\n * Pre-calculation\r\n * Dimension custom sizes for each cell\r\n * Keeps only changed sizes, skips origin size\r\n */\r\nexport function calculateDimensionData(\r\n originItemSize: number,\r\n newSizes: ViewSettingSizeProp = {},\r\n) {\r\n const positionIndexes: number[] = [];\r\n const positionIndexToItem: { [position: number]: PositionItem } = {};\r\n const indexToItem: { [index: number]: PositionItem } = {};\r\n\r\n // prepare order sorted new sizes and calculate changed real size\r\n const newIndexes = Object.keys(newSizes).map(Number).sort((a, b) => a - b);\r\n let previous: PositionItem | undefined;\r\n for (let i = 0; i < newIndexes.length; i++) {\r\n const itemIndex = newIndexes[i];\r\n const newItem: PositionItem = {\r\n itemIndex,\r\n start: 0,\r\n end: 0,\r\n };\r\n // if previous item was changed too\r\n if (previous) {\r\n const itemsBetween =\r\n (itemIndex - previous.itemIndex - 1) * originItemSize;\r\n newItem.start = itemsBetween + previous.end;\r\n } else {\r\n newItem.start = itemIndex * originItemSize;\r\n }\r\n newItem.end = newItem.start + newSizes[itemIndex];\r\n positionIndexes.push(newItem.start);\r\n indexToItem[itemIndex] = positionIndexToItem[i] = newItem;\r\n previous = newItem;\r\n }\r\n return {\r\n indexes: newIndexes,\r\n positionIndexes: [...positionIndexes],\r\n positionIndexToItem: { ...positionIndexToItem },\r\n indexToItem,\r\n };\r\n}\r\n\r\n/**\r\n * Calculate item by position\r\n */\r\nexport const getItemByPosition = (\r\n {\r\n indexes,\r\n positionIndexes,\r\n originItemSize,\r\n positionIndexToItem,\r\n }: Pick<DimensionPosition, 'indexes' | 'positionIndexes' | 'originItemSize' | 'positionIndexToItem'>,\r\n pos: number,\r\n) => {\r\n const item: PositionItem = {\r\n itemIndex: 0,\r\n start: 0,\r\n end: 0,\r\n };\r\n const currentPlace = indexes.length ? sortedIndex(positionIndexes, pos) : 0;\r\n // not found or first index\r\n if (!currentPlace) {\r\n item.itemIndex = Math.floor(pos / originItemSize);\r\n item.start = item.itemIndex * originItemSize;\r\n item.end = item.start + originItemSize;\r\n return item;\r\n }\r\n const positionItem = positionIndexToItem[currentPlace - 1];\r\n // if item has specified size\r\n if (positionItem.end > pos) {\r\n return positionItem;\r\n }\r\n // special size item was present before\r\n const relativePos = pos - positionItem.end;\r\n const relativeIndex = Math.floor(relativePos / originItemSize);\r\n item.itemIndex = positionItem.itemIndex + 1 + relativeIndex;\r\n item.start = positionItem.end + relativeIndex * originItemSize;\r\n item.end = item.start + originItemSize;\r\n return item;\r\n};\r\n\r\nexport function getItemByIndex(\r\n dimension: Pick<\r\n DimensionIndexInput,\r\n 'indexToItem' | 'indexes' | 'originItemSize'\r\n >,\r\n index: number,\r\n) {\r\n let item: PositionItem = {\r\n itemIndex: index,\r\n start: 0,\r\n end: 0,\r\n };\r\n // if item has specified size\r\n if (dimension.indexToItem[index]) {\r\n return dimension.indexToItem[index];\r\n }\r\n\r\n const currentPlace = dimension.indexes.length\r\n ? sortedIndex(dimension.indexes, index)\r\n : 0;\r\n // not found or first index\r\n if (!currentPlace) {\r\n item.start = item.itemIndex * dimension.originItemSize;\r\n item.end = item.start + dimension.originItemSize;\r\n return item;\r\n }\r\n // special size item was present before\r\n const positionItem =\r\n dimension.indexToItem[dimension.indexes[currentPlace - 1]];\r\n item.start =\r\n positionItem.end +\r\n (index - positionItem.itemIndex - 1) * dimension.originItemSize;\r\n item.end = item.start + dimension.originItemSize;\r\n return item;\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by LevelSkill.Pro
|
|
3
|
+
*/
|
|
4
|
+
import { h } from '@stencil/core/internal/client';
|
|
5
|
+
|
|
6
|
+
const FILTER_BUTTON_CLASS = 'rv-filter';
|
|
7
|
+
const FILTER_BUTTON_ACTIVE = 'active';
|
|
8
|
+
const FILTER_PROP = 'hasFilter';
|
|
9
|
+
const AND_OR_BUTTON = 'and-or-button';
|
|
10
|
+
const TRASH_BUTTON = 'trash-button';
|
|
11
|
+
const FilterButton = ({ column }) => {
|
|
12
|
+
return (h("span", null,
|
|
13
|
+
h("button", { class: {
|
|
14
|
+
[FILTER_BUTTON_CLASS]: true,
|
|
15
|
+
[FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],
|
|
16
|
+
} },
|
|
17
|
+
h("svg", { class: "filter-img", viewBox: "0 0 64 64" },
|
|
18
|
+
h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" },
|
|
19
|
+
h("path", { d: "M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z", fill: "currentColor" }))))));
|
|
20
|
+
};
|
|
21
|
+
const TrashButton = () => {
|
|
22
|
+
return (h("div", { class: { [TRASH_BUTTON]: true } },
|
|
23
|
+
h("svg", { class: "trash-img", viewBox: "0 0 24 24" },
|
|
24
|
+
h("path", { fill: "currentColor", d: "M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z" }))));
|
|
25
|
+
};
|
|
26
|
+
const AndOrButton = ({ text }) => {
|
|
27
|
+
return h("button", { class: { [AND_OR_BUTTON]: true, 'light revo-button': true } }, text);
|
|
28
|
+
};
|
|
29
|
+
function isFilterBtn(e) {
|
|
30
|
+
if (e.classList.contains(FILTER_BUTTON_CLASS)) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
return e === null || e === void 0 ? void 0 : e.closest(`.${FILTER_BUTTON_CLASS}`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { AND_OR_BUTTON as A, FILTER_BUTTON_CLASS as F, TRASH_BUTTON as T, FILTER_BUTTON_ACTIVE as a, FILTER_PROP as b, FilterButton as c, TrashButton as d, AndOrButton as e, isFilterBtn as i };
|
|
37
|
+
//# sourceMappingURL=filter.button.js.map
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=filter.button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"filter.button.js","mappings":";;;;;AAGO,MAAM,mBAAmB,GAAG;AAC5B,MAAM,oBAAoB,GAAG;AAE7B,MAAM,WAAW,GAAG;AACpB,MAAM,aAAa,GAAG;AACtB,MAAM,YAAY,GAAG;MAKf,YAAY,GAAG,CAAC,EAAE,MAAM,EAAS,KAAI;AAChD,IAAA,QACE,CAAA,CAAA,MAAA,EAAA,IAAA;AACE,QAAA,CAAA,CAAA,QAAA,EAAA,EACE,KAAK,EAAE;gBACL,CAAC,mBAAmB,GAAG,IAAI;gBAC3B,CAAC,oBAAoB,GAAG,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;AACxD,aAAA,EAAA;AAED,YAAA,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,YAAY,EAAC,OAAO,EAAC,WAAW,EAAA;gBACzC,CAAG,CAAA,GAAA,EAAA,EAAA,MAAM,EAAC,MAAM,EAAc,cAAA,EAAA,GAAG,EAAC,IAAI,EAAC,MAAM,EAAA,WAAA,EAAW,SAAS,EAAA;AAC/D,oBAAA,CAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,2GAA2G,EAAC,IAAI,EAAC,cAAc,EAAA,CAAQ,CAC7I,CACA,CACC,CACJ;AAEX;AAEO,MAAM,WAAW,GAAG,MAAK;IAC9B,QACE,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAE,EAAE,CAAC,YAAY,GAAG,IAAI,EAAE,EAAA;AAClC,QAAA,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,WAAW,EAAC,OAAO,EAAC,WAAW,EAAA;YACxC,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,cAAc,EAAC,CAAC,EAAC,8GAA8G,EAAG,CAAA,CACzI,CACF;AAEV;MACa,WAAW,GAAG,CAAC,EAAE,IAAI,EAAO,KAAI;AAC3C,IAAA,OAAO,cAAQ,KAAK,EAAE,EAAE,CAAC,aAAa,GAAG,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,EAAG,EAAA,IAAI,CAAU;AAC7F;AAEM,SAAU,WAAW,CAAC,CAAc,EAAA;IACxC,IAAI,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE;AAC7C,QAAA,OAAO,IAAI;;AAEb,IAAA,OAAO,CAAC,KAAA,IAAA,IAAD,CAAC,KAAA,MAAA,GAAA,MAAA,GAAD,CAAC,CAAE,OAAO,CAAC,CAAI,CAAA,EAAA,mBAAmB,CAAE,CAAA,CAAC;AAC9C;;;;","names":[],"sources":["src/plugins/filter/filter.button.tsx"],"sourcesContent":["import { h } from '@stencil/core';\r\nimport { ColumnRegular } from '@type';\r\n\r\nexport const FILTER_BUTTON_CLASS = 'rv-filter';\r\nexport const FILTER_BUTTON_ACTIVE = 'active';\r\n\r\nexport const FILTER_PROP = 'hasFilter';\r\nexport const AND_OR_BUTTON = 'and-or-button';\r\nexport const TRASH_BUTTON = 'trash-button';\r\n\r\ntype Props = {\r\n column: ColumnRegular;\r\n};\r\nexport const FilterButton = ({ column }: Props) => {\r\n return (\r\n <span>\r\n <button\r\n class={{\r\n [FILTER_BUTTON_CLASS]: true,\r\n [FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],\r\n }}\r\n >\r\n <svg class=\"filter-img\" viewBox=\"0 0 64 64\">\r\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\r\n <path d=\"M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z\" fill=\"currentColor\"></path>\r\n </g>\r\n </svg>\r\n </button>\r\n </span>\r\n );\r\n};\r\n\r\nexport const TrashButton = () => {\r\n return (\r\n <div class={{ [TRASH_BUTTON]: true }}>\r\n <svg class=\"trash-img\" viewBox=\"0 0 24 24\">\r\n <path fill=\"currentColor\" d=\"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z\" />\r\n </svg>\r\n </div>\r\n );\r\n};\r\nexport const AndOrButton = ({ text }: any) => {\r\n return <button class={{ [AND_OR_BUTTON]: true, 'light revo-button': true }}>{text}</button>;\r\n};\r\n\r\nexport function isFilterBtn(e: HTMLElement) {\r\n if (e.classList.contains(FILTER_BUTTON_CLASS)) {\r\n return true;\r\n }\r\n return e?.closest(`.${FILTER_BUTTON_CLASS}`);\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* RevoGrid custom elements */
|
|
2
|
+
export { RevoGridComponent as RevoGrid } from '../dist/types/components/revoGrid/revo-grid';
|
|
3
|
+
export { defineCustomElement as defineCustomElementRevoGrid } from './revo-grid';
|
|
4
|
+
export { Attribution as RevogrAttribution } from '../dist/types/components/attribution/revogr-attribution';
|
|
5
|
+
export { defineCustomElement as defineCustomElementRevogrAttribution } from './revogr-attribution';
|
|
6
|
+
export { Clipboard as RevogrClipboard } from '../dist/types/components/clipboard/revogr-clipboard';
|
|
7
|
+
export { defineCustomElement as defineCustomElementRevogrClipboard } from './revogr-clipboard';
|
|
8
|
+
export { RevogrData as RevogrData } from '../dist/types/components/data/revogr-data';
|
|
9
|
+
export { defineCustomElement as defineCustomElementRevogrData } from './revogr-data';
|
|
10
|
+
export { RevoEdit as RevogrEdit } from '../dist/types/components/editors/revogr-edit';
|
|
11
|
+
export { defineCustomElement as defineCustomElementRevogrEdit } from './revogr-edit';
|
|
12
|
+
export { RevoGridExtra as RevogrExtra } from '../dist/types/components/extra/revogr-extra';
|
|
13
|
+
export { defineCustomElement as defineCustomElementRevogrExtra } from './revogr-extra';
|
|
14
|
+
export { FilterPanel as RevogrFilterPanel } from '../dist/types/plugins/filter/filter.panel';
|
|
15
|
+
export { defineCustomElement as defineCustomElementRevogrFilterPanel } from './revogr-filter-panel';
|
|
16
|
+
export { RevogrFocus as RevogrFocus } from '../dist/types/components/selectionFocus/revogr-focus';
|
|
17
|
+
export { defineCustomElement as defineCustomElementRevogrFocus } from './revogr-focus';
|
|
18
|
+
export { RevogrHeaderComponent as RevogrHeader } from '../dist/types/components/header/revogr-header';
|
|
19
|
+
export { defineCustomElement as defineCustomElementRevogrHeader } from './revogr-header';
|
|
20
|
+
export { OrderEditor as RevogrOrderEditor } from '../dist/types/components/order/revogr-order-editor';
|
|
21
|
+
export { defineCustomElement as defineCustomElementRevogrOrderEditor } from './revogr-order-editor';
|
|
22
|
+
export { OverlaySelection as RevogrOverlaySelection } from '../dist/types/components/overlay/revogr-overlay-selection';
|
|
23
|
+
export { defineCustomElement as defineCustomElementRevogrOverlaySelection } from './revogr-overlay-selection';
|
|
24
|
+
export { RevogrRowHeaders as RevogrRowHeaders } from '../dist/types/components/rowHeaders/revogr-row-headers';
|
|
25
|
+
export { defineCustomElement as defineCustomElementRevogrRowHeaders } from './revogr-row-headers';
|
|
26
|
+
export { RevogrScrollVirtual as RevogrScrollVirtual } from '../dist/types/components/scrollable/revogr-scroll-virtual';
|
|
27
|
+
export { defineCustomElement as defineCustomElementRevogrScrollVirtual } from './revogr-scroll-virtual';
|
|
28
|
+
export { RevogrFocus as RevogrTempRange } from '../dist/types/components/selectionTempRange/revogr-temp-range';
|
|
29
|
+
export { defineCustomElement as defineCustomElementRevogrTempRange } from './revogr-temp-range';
|
|
30
|
+
export { RevogrViewportScroll as RevogrViewportScroll } from '../dist/types/components/scroll/revogr-viewport-scroll';
|
|
31
|
+
export { defineCustomElement as defineCustomElementRevogrViewportScroll } from './revogr-viewport-scroll';
|
|
32
|
+
export { VNodeToHtml as VnodeHtml } from '../dist/types/components/vnode/vnode-converter';
|
|
33
|
+
export { defineCustomElement as defineCustomElementVnodeHtml } from './vnode-html';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
37
|
+
* if the path needs to be customized.
|
|
38
|
+
*/
|
|
39
|
+
export declare const getAssetPath: (path: string) => string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Used to manually set the base path where assets can be found.
|
|
43
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
44
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
45
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
46
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
47
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
48
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
49
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
50
|
+
*/
|
|
51
|
+
export declare const setAssetPath: (path: string) => void;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
55
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
56
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
57
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
58
|
+
* will result in the same behavior.
|
|
59
|
+
*/
|
|
60
|
+
export declare const setNonce: (nonce: string) => void
|
|
61
|
+
|
|
62
|
+
export interface SetPlatformOptions {
|
|
63
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
64
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
65
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
66
|
+
}
|
|
67
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
68
|
+
export * from '../dist/types';
|