@revolist/revogrid 4.1.0-next.72 → 4.1.0-next.76
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/custom-element/_baseIteratee.js +1099 -0
- package/custom-element/_stringToPath.js +1239 -0
- package/{dist/revo-grid/selection.store.connector-6275c806.js → custom-element/columnService.js} +289 -3
- package/custom-element/consts.js +45 -0
- package/{dist/revo-grid/data.store-84e32999.js → custom-element/data.store.js} +45 -41
- package/{dist/revo-grid/debounce-c6704ea4.js → custom-element/debounce.js} +2 -2
- package/{dist/revo-grid/dimension.helpers-83b63758.js → custom-element/dimension.helpers.js} +7 -176
- package/custom-element/each.js +177 -0
- package/{dist/revo-grid/filter.button-c0e1fade.js → custom-element/filter.button.js} +12 -2
- package/custom-element/identity.js +23 -0
- package/custom-element/index.d.ts +1 -92
- package/{dist/revo-grid/app-globals-0f8c2f53.js → custom-element/index.js} +3 -7
- package/custom-element/index2.js +46 -0
- package/custom-element/isObject.js +190 -0
- package/custom-element/isSymbol.js +30 -0
- package/custom-element/keys.js +292 -0
- package/{dist/revo-grid/localScrollService-49f74e0a.js → custom-element/localScrollService.js} +1 -1
- package/{dist/revo-grid/lodash-6909f3c3.js → custom-element/lodash.js} +4 -26
- package/custom-element/resize-observer.js +489 -0
- package/custom-element/revo-grid.d.ts +11 -0
- package/{dist/revo-grid/revo-grid.entry.js → custom-element/revo-grid.js} +250 -94
- package/custom-element/revogr-clipboard.d.ts +11 -0
- package/custom-element/revogr-clipboard.js +74 -0
- package/custom-element/revogr-data.d.ts +11 -0
- package/custom-element/revogr-data.js +6 -0
- package/{dist/revo-grid/revogr-data.entry.js → custom-element/revogr-data2.js} +37 -16
- package/custom-element/revogr-edit.d.ts +11 -0
- package/custom-element/revogr-edit.js +6 -0
- package/{dist/revo-grid/revogr-edit.entry.js → custom-element/revogr-edit2.js} +315 -15
- package/custom-element/revogr-filter-panel.d.ts +11 -0
- package/custom-element/revogr-filter-panel.js +295 -0
- package/custom-element/revogr-focus.d.ts +11 -0
- package/custom-element/revogr-focus.js +6 -0
- package/{dist/revo-grid/revogr-focus.entry.js → custom-element/revogr-focus2.js} +31 -11
- package/custom-element/revogr-header.d.ts +11 -0
- package/custom-element/revogr-header.js +6 -0
- package/{dist/revo-grid/revogr-header.entry.js → custom-element/revogr-header2.js} +44 -20
- package/custom-element/revogr-order-editor.d.ts +11 -0
- package/custom-element/revogr-order-editor.js +6 -0
- package/{dist/revo-grid/revogr-order-editor.entry.js → custom-element/revogr-order-editor2.js} +33 -12
- package/custom-element/revogr-overlay-selection.d.ts +11 -0
- package/custom-element/revogr-overlay-selection.js +6 -0
- package/{dist/revo-grid/revogr-overlay-selection.entry.js → custom-element/revogr-overlay-selection2.js} +59 -22
- package/custom-element/revogr-row-headers.d.ts +11 -0
- package/custom-element/revogr-row-headers.js +6 -0
- package/{dist/revo-grid/row-header-utils-4c858713.js → custom-element/revogr-row-headers2.js} +100 -3
- package/custom-element/revogr-scroll-virtual.d.ts +11 -0
- package/custom-element/revogr-scroll-virtual.js +6 -0
- package/{dist/revo-grid/revogr-scroll-virtual.entry.js → custom-element/revogr-scroll-virtual2.js} +31 -11
- package/custom-element/revogr-temp-range.d.ts +11 -0
- package/custom-element/revogr-temp-range.js +6 -0
- package/{dist/revo-grid/revogr-temp-range.entry.js → custom-element/revogr-temp-range2.js} +29 -11
- package/custom-element/revogr-viewport-scroll.d.ts +11 -0
- package/custom-element/revogr-viewport-scroll.js +6 -0
- package/{dist/revo-grid/revogr-viewport-scroll.entry.js → custom-element/revogr-viewport-scroll2.js} +45 -15
- package/{dist/revo-grid/selection.utils-93031f64.js → custom-element/selection.utils.js} +1 -1
- package/{dist/revo-grid/themeService-6983e3c8.js → custom-element/themeService.js} +0 -0
- package/{dist/revo-grid/toInteger-fa10dc5c.js → custom-element/toInteger.js} +1 -1
- package/{dist/revo-grid/toNumber-bf0906cb.js → custom-element/toNumber.js} +2 -1
- package/dist/cjs/css-shim-b3e497ca.js +6 -0
- package/dist/cjs/debounce-1d510725.js +575 -0
- package/dist/cjs/dom-8ac1ad03.js +75 -0
- package/dist/cjs/index-3fca60e4.js +1784 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +35 -0
- package/dist/cjs/resize-observer-8dc80084.js +492 -0
- package/dist/cjs/revo-grid.cjs.js +76 -0
- package/dist/cjs/revo-grid_11.cjs.entry.js +28533 -0
- package/dist/cjs/revogr-clipboard.cjs.entry.js +57 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +265 -0
- package/dist/collection/collection-manifest.json +25 -0
- package/dist/collection/components/button/button.d.ts +5 -0
- package/dist/collection/components/button/button.js +4 -0
- package/dist/collection/components/clipboard/revogr-clipboard.d.ts +13 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js +125 -0
- package/dist/collection/components/data/cellRenderer.d.ts +8 -0
- package/dist/collection/components/data/cellRenderer.js +19 -0
- package/dist/collection/components/data/columnService.d.ts +52 -0
- package/dist/{revo-grid/columnService-c8dcbf40.js → collection/components/data/columnService.js} +8 -10
- package/dist/collection/components/data/revogr-data-style.css +135 -0
- package/dist/collection/components/data/revogr-data.d.ts +28 -0
- package/dist/collection/components/data/revogr-data.js +394 -0
- package/dist/collection/components/data/rowRenderer.d.ts +11 -0
- package/dist/collection/components/data/rowRenderer.js +6 -0
- package/dist/collection/components/header/headerCellRenderer.d.ts +8 -0
- package/dist/collection/components/header/headerCellRenderer.js +19 -0
- package/dist/collection/components/header/headerRenderer.d.ts +15 -0
- package/dist/collection/components/header/headerRenderer.js +45 -0
- package/dist/collection/components/header/revogr-header-style.css +198 -0
- package/dist/collection/components/header/revogr-header.d.ts +25 -0
- package/dist/collection/components/header/revogr-header.js +348 -0
- package/dist/collection/components/order/orderRenderer.d.ts +28 -0
- package/dist/collection/components/order/orderRenderer.js +50 -0
- package/dist/collection/components/order/revogr-order-editor.d.ts +44 -0
- package/dist/collection/components/order/revogr-order-editor.js +358 -0
- package/dist/collection/components/order/rowOrderService.d.ts +27 -0
- package/dist/collection/components/order/rowOrderService.js +68 -0
- package/dist/collection/components/overlay/autofill.service.d.ts +66 -0
- package/dist/collection/components/overlay/autofill.service.js +192 -0
- package/dist/collection/components/overlay/clipboard.service.d.ts +22 -0
- package/dist/collection/components/overlay/clipboard.service.js +37 -0
- package/dist/collection/components/overlay/editors/edit.utils.d.ts +1 -0
- package/dist/collection/components/overlay/editors/edit.utils.js +5 -0
- package/dist/collection/components/overlay/editors/text.d.ts +14 -0
- package/dist/collection/components/overlay/editors/text.js +39 -0
- package/dist/collection/components/overlay/keyboard.service.d.ts +29 -0
- package/dist/collection/components/overlay/keyboard.service.js +135 -0
- package/dist/collection/components/overlay/revogr-edit-style.css +86 -0
- package/dist/collection/components/overlay/revogr-edit.d.ts +24 -0
- package/dist/collection/components/overlay/revogr-edit.js +232 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.d.ts +102 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +986 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +98 -0
- package/dist/collection/components/overlay/selection.utils.d.ts +36 -0
- package/dist/collection/components/overlay/selection.utils.js +100 -0
- package/dist/collection/components/revoGrid/grid.helpers.d.ts +17 -0
- package/dist/collection/components/revoGrid/grid.helpers.js +26 -0
- package/dist/collection/components/revoGrid/revo-grid-style.css +528 -0
- package/dist/collection/components/revoGrid/revo-grid.d.ts +451 -0
- package/dist/collection/components/revoGrid/revo-grid.js +2420 -0
- package/dist/collection/components/revoGrid/viewport.d.ts +19 -0
- package/dist/collection/components/revoGrid/viewport.helpers.d.ts +9 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js +11 -0
- package/dist/collection/components/revoGrid/viewport.interfaces.d.ts +67 -0
- package/dist/collection/components/revoGrid/viewport.interfaces.js +1 -0
- package/dist/collection/components/revoGrid/viewport.js +20 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.d.ts +12 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js +21 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.d.ts +23 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js +60 -0
- package/dist/collection/components/revoGrid/viewport.section.d.ts +25 -0
- package/dist/collection/components/revoGrid/viewport.section.js +27 -0
- package/dist/collection/components/revoGrid/viewport.service.d.ts +66 -0
- package/dist/collection/components/revoGrid/viewport.service.js +209 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.d.ts +20 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +231 -0
- package/dist/collection/components/rowHeaders/row-header-render.d.ts +9 -0
- package/dist/collection/components/rowHeaders/row-header-render.js +1 -0
- package/dist/collection/components/rowHeaders/row-header-utils.d.ts +2 -0
- package/dist/collection/components/rowHeaders/row-header-utils.js +4 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +137 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.d.ts +92 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +424 -0
- package/dist/collection/components/scrollable/revogr-scroll-style.css +104 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.d.ts +25 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +253 -0
- package/dist/collection/components/selectionFocus/revogr-focus-style.css +77 -0
- package/dist/collection/components/selectionFocus/revogr-focus.d.ts +15 -0
- package/dist/collection/components/selectionFocus/revogr-focus.js +177 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +98 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range.d.ts +13 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js +138 -0
- package/dist/collection/components.d.ts +960 -0
- package/dist/collection/global/global.d.ts +1 -0
- package/dist/{revo-grid/app-globals-b0e1cbef.js → collection/global/global.js} +2 -8
- package/dist/collection/index.d.ts +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/interfaces.d.ts +373 -0
- package/dist/collection/plugins/autoSizeColumn.d.ts +54 -0
- package/dist/collection/plugins/autoSizeColumn.js +230 -0
- package/dist/collection/plugins/basePlugin.d.ts +46 -0
- package/dist/collection/plugins/basePlugin.js +66 -0
- package/dist/collection/plugins/export/csv.d.ts +9 -0
- package/dist/collection/plugins/export/csv.js +68 -0
- package/dist/collection/plugins/export/export.plugin.d.ts +24 -0
- package/dist/collection/plugins/export/export.plugin.js +165 -0
- package/dist/collection/plugins/export/types.d.ts +23 -0
- package/dist/collection/plugins/export/types.js +1 -0
- package/dist/collection/plugins/filter/conditions/equal.d.ts +4 -0
- package/dist/collection/plugins/filter/conditions/equal.js +17 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.d.ts +3 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +10 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +3 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +7 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.d.ts +3 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +12 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.d.ts +3 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +7 -0
- package/dist/collection/plugins/filter/conditions/set.d.ts +4 -0
- package/dist/collection/plugins/filter/conditions/set.js +3 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.d.ts +3 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +17 -0
- package/dist/collection/plugins/filter/conditions/string/contains.d.ts +4 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js +21 -0
- package/dist/collection/plugins/filter/filter.button.d.ts +14 -0
- package/dist/collection/plugins/filter/filter.button.js +30 -0
- package/dist/collection/plugins/filter/filter.plugin.d.ts +71 -0
- package/dist/collection/plugins/filter/filter.plugin.js +279 -0
- package/dist/collection/plugins/filter/filter.pop.d.ts +66 -0
- package/dist/collection/plugins/filter/filter.pop.js +456 -0
- package/dist/collection/plugins/filter/filter.service.d.ts +20 -0
- package/dist/collection/plugins/filter/filter.service.js +44 -0
- package/dist/collection/plugins/filter/filter.style.css +239 -0
- package/dist/collection/plugins/filter/filter.types.d.ts +8 -0
- package/dist/collection/plugins/filter/filter.types.js +1 -0
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.d.ts +16 -0
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +30 -0
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.d.ts +13 -0
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +35 -0
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.d.ts +14 -0
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +21 -0
- package/dist/collection/plugins/groupingRow/grouping.const.d.ts +9 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +10 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.d.ts +15 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +76 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.d.ts +43 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +258 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.d.ts +9 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +29 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.d.ts +19 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +1 -0
- package/dist/collection/plugins/groupingRow/grouping.service.d.ts +25 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js +155 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.d.ts +10 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +57 -0
- package/dist/collection/plugins/plugin.types.d.ts +12 -0
- package/dist/collection/plugins/plugin.types.js +1 -0
- package/dist/collection/plugins/sorting/sorting.plugin.d.ts +32 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js +180 -0
- package/dist/collection/plugins/sorting/sorting.sign.d.ts +8 -0
- package/dist/collection/plugins/sorting/sorting.sign.js +6 -0
- package/dist/collection/plugins/stretchPlugin.d.ts +29 -0
- package/dist/collection/plugins/stretchPlugin.js +90 -0
- package/dist/collection/services/cell.helpers.d.ts +2 -0
- package/dist/collection/services/cell.helpers.js +7 -0
- package/dist/collection/services/column.data.provider.d.ts +37 -0
- package/dist/collection/services/column.data.provider.js +189 -0
- package/dist/collection/services/data.provider.d.ts +26 -0
- package/dist/collection/services/data.provider.js +48 -0
- package/dist/collection/services/dimension.provider.d.ts +40 -0
- package/dist/collection/services/dimension.provider.js +106 -0
- package/dist/collection/services/localScrollService.d.ts +28 -0
- package/dist/collection/services/localScrollService.js +90 -0
- package/dist/collection/services/resizable.directive.d.ts +55 -0
- package/dist/collection/services/resizable.directive.js +250 -0
- package/dist/collection/services/selection.store.connector.d.ts +57 -0
- package/dist/collection/services/selection.store.connector.js +241 -0
- package/dist/collection/services/viewport.provider.d.ts +10 -0
- package/dist/collection/services/viewport.provider.js +14 -0
- package/dist/collection/stencil-public-runtime.d.ts +1565 -0
- package/dist/collection/store/dataSource/data.proxy.d.ts +10 -0
- package/dist/collection/store/dataSource/data.proxy.js +34 -0
- package/dist/collection/store/dataSource/data.store.d.ts +58 -0
- package/dist/collection/store/dataSource/data.store.js +127 -0
- package/dist/collection/store/dataSource/trimmed.plugin.d.ts +10 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js +32 -0
- package/dist/collection/store/dimension/dimension.helpers.d.ts +26 -0
- package/dist/collection/store/dimension/dimension.helpers.js +98 -0
- package/dist/collection/store/dimension/dimension.store.d.ts +26 -0
- package/dist/collection/store/dimension/dimension.store.js +103 -0
- package/dist/collection/store/selection/selection.helpers.d.ts +8 -0
- package/dist/collection/store/selection/selection.helpers.js +53 -0
- package/dist/collection/store/selection/selection.store.d.ts +19 -0
- package/dist/collection/store/selection/selection.store.js +73 -0
- package/dist/collection/store/selection/selection.store.service.d.ts +18 -0
- package/dist/collection/store/selection/selection.store.service.js +35 -0
- package/dist/collection/store/storeTypes.d.ts +4 -0
- package/dist/collection/store/storeTypes.js +5 -0
- package/dist/collection/store/viewPort/viewport.helpers.d.ts +30 -0
- package/dist/{revo-grid/row-header-utils-354caa34.js → collection/store/viewPort/viewport.helpers.js} +9 -168
- package/dist/collection/store/viewPort/viewport.store.d.ts +21 -0
- package/dist/collection/store/viewPort/viewport.store.js +152 -0
- package/dist/collection/themeManager/theme.compact.d.ts +4 -0
- package/dist/collection/themeManager/theme.compact.js +5 -0
- package/dist/collection/themeManager/theme.default.d.ts +4 -0
- package/dist/collection/themeManager/theme.default.js +5 -0
- package/dist/collection/themeManager/theme.material.d.ts +4 -0
- package/dist/collection/themeManager/theme.material.js +5 -0
- package/dist/collection/themeManager/themeService.d.ts +13 -0
- package/dist/collection/themeManager/themeService.js +43 -0
- package/dist/collection/utils/closestPolifill.d.ts +0 -0
- package/dist/collection/utils/closestPolifill.js +18 -0
- package/dist/collection/utils/consts.d.ts +21 -0
- package/dist/collection/utils/consts.js +21 -0
- package/dist/collection/utils/generateAlphabetHeader.d.ts +2 -0
- package/dist/collection/utils/generateAlphabetHeader.js +20 -0
- package/dist/collection/utils/index.d.ts +21 -0
- package/dist/{revo-grid/index-ddba9eb9.js → collection/utils/index.js} +9 -12
- package/dist/collection/utils/keyCodes.d.ts +68 -0
- package/dist/collection/utils/keyCodes.js +70 -0
- package/dist/collection/utils/keyCodes.utils.d.ts +8 -0
- package/dist/collection/utils/keyCodes.utils.js +64 -0
- package/dist/collection/utils/platform.d.ts +4 -0
- package/dist/collection/utils/platform.js +5 -0
- package/dist/collection/utils/resizeObserver.d.ts +1 -0
- package/dist/collection/utils/resizeObserver.js +6 -0
- package/dist/collection/utils/store.utils.d.ts +6 -0
- package/dist/collection/utils/store.utils.js +7 -0
- package/dist/collection/utilsExternal/generate-data.js +136 -0
- package/dist/esm/css-shim-2f04a37a.js +4 -0
- package/dist/esm/debounce-ba02c6bc.js +558 -0
- package/dist/{revo-grid/dom-1f98a75f.js → esm/dom-c5ed0ba5.js} +1 -1
- package/dist/esm/index-1e019091.js +1749 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +31 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/resize-observer-56b7b34f.js +489 -0
- package/dist/esm/revo-grid.js +74 -0
- package/dist/esm/revo-grid_11.entry.js +28519 -0
- package/dist/esm/revogr-clipboard.entry.js +53 -0
- package/dist/esm/revogr-filter-panel.entry.js +261 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/revo-grid/css-shim-2f04a37a.js +1 -0
- package/dist/revo-grid/debounce-0688229f.js +1 -0
- package/dist/revo-grid/dom-c5ed0ba5.js +19 -0
- package/dist/revo-grid/index-3a7abbe1.js +1 -0
- package/dist/revo-grid/index.esm.js +0 -1
- package/dist/revo-grid/resize-observer-56b7b34f.js +1 -489
- package/dist/revo-grid/revo-grid.esm.js +1 -126
- package/dist/revo-grid/revo-grid_11.entry.js +1 -0
- package/dist/revo-grid/revogr-clipboard.entry.js +1 -53
- package/dist/revo-grid/revogr-filter-panel.entry.js +1 -146
- package/dist/types/components/data/revogr-data.d.ts +1 -1
- package/dist/types/components/revoGrid/grid.helpers.d.ts +4 -4
- package/dist/types/components.d.ts +4 -2
- package/dist/types/plugins/filter/filter.button.d.ts +4 -0
- package/dist/types/plugins/filter/filter.plugin.d.ts +6 -8
- package/dist/types/plugins/filter/filter.pop.d.ts +26 -7
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/consts.d.ts +2 -1
- package/loader/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/revo-grid/_baseIteratee-71e30b32.js +0 -2904
- package/dist/revo-grid/columnService-0ac47aab.js +0 -291
- package/dist/revo-grid/consts-554f4ff1.js +0 -22
- package/dist/revo-grid/css-shim-bbdf0cc6.js +0 -4
- package/dist/revo-grid/data.store-16f691b2.js +0 -552
- package/dist/revo-grid/filter.button-f27a3e7f.js +0 -23
- package/dist/revo-grid/index-2f09d3bb.js +0 -2938
- package/dist/revo-grid/index-8b05ed1a.js +0 -2938
- package/dist/revo-grid/isString-94b454ad.js +0 -30
- package/dist/revo-grid/keyCodes.utils-d78c3499.js +0 -295
- package/dist/revo-grid/revogr-row-headers.entry.js +0 -64
- package/dist/revo-grid/selection.store.connector-592c3d70.js +0 -533
- package/dist/revo-grid/shadow-css-67b66845.js +0 -389
- package/dist/revo-grid/viewport.helpers-73fb1b64.js +0 -13
|
@@ -0,0 +1,1099 @@
|
|
|
1
|
+
import { h as _SetCache, e as eq_1, _ as _getTag, d as isBuffer_1, j as _Stack, k as _stringToPath, f as isLength_1, i as isArguments_1 } from './_stringToPath.js';
|
|
2
|
+
import { d as _root, f as _Symbol, a as isObjectLike_1, i as isObject_1 } from './isObject.js';
|
|
3
|
+
import { a as isArray_1, k as keys_1, c as isTypedArray_1, b as _isIndex } from './keys.js';
|
|
4
|
+
import { i as isSymbol_1 } from './isSymbol.js';
|
|
5
|
+
import { _ as _arrayMap } from './consts.js';
|
|
6
|
+
import { i as identity_1 } from './identity.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A specialized version of `_.some` for arrays without support for iteratee
|
|
10
|
+
* shorthands.
|
|
11
|
+
*
|
|
12
|
+
* @private
|
|
13
|
+
* @param {Array} [array] The array to iterate over.
|
|
14
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
15
|
+
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
16
|
+
* else `false`.
|
|
17
|
+
*/
|
|
18
|
+
function arraySome(array, predicate) {
|
|
19
|
+
var index = -1,
|
|
20
|
+
length = array == null ? 0 : array.length;
|
|
21
|
+
|
|
22
|
+
while (++index < length) {
|
|
23
|
+
if (predicate(array[index], index, array)) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var _arraySome = arraySome;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Checks if a `cache` value for `key` exists.
|
|
34
|
+
*
|
|
35
|
+
* @private
|
|
36
|
+
* @param {Object} cache The cache to query.
|
|
37
|
+
* @param {string} key The key of the entry to check.
|
|
38
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
39
|
+
*/
|
|
40
|
+
function cacheHas(cache, key) {
|
|
41
|
+
return cache.has(key);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var _cacheHas = cacheHas;
|
|
45
|
+
|
|
46
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
47
|
+
var COMPARE_PARTIAL_FLAG$5 = 1,
|
|
48
|
+
COMPARE_UNORDERED_FLAG$3 = 2;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
52
|
+
* partial deep comparisons.
|
|
53
|
+
*
|
|
54
|
+
* @private
|
|
55
|
+
* @param {Array} array The array to compare.
|
|
56
|
+
* @param {Array} other The other array to compare.
|
|
57
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
58
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
59
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
60
|
+
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
61
|
+
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
62
|
+
*/
|
|
63
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
64
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
|
|
65
|
+
arrLength = array.length,
|
|
66
|
+
othLength = other.length;
|
|
67
|
+
|
|
68
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
// Check that cyclic values are equal.
|
|
72
|
+
var arrStacked = stack.get(array);
|
|
73
|
+
var othStacked = stack.get(other);
|
|
74
|
+
if (arrStacked && othStacked) {
|
|
75
|
+
return arrStacked == other && othStacked == array;
|
|
76
|
+
}
|
|
77
|
+
var index = -1,
|
|
78
|
+
result = true,
|
|
79
|
+
seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new _SetCache : undefined;
|
|
80
|
+
|
|
81
|
+
stack.set(array, other);
|
|
82
|
+
stack.set(other, array);
|
|
83
|
+
|
|
84
|
+
// Ignore non-index properties.
|
|
85
|
+
while (++index < arrLength) {
|
|
86
|
+
var arrValue = array[index],
|
|
87
|
+
othValue = other[index];
|
|
88
|
+
|
|
89
|
+
if (customizer) {
|
|
90
|
+
var compared = isPartial
|
|
91
|
+
? customizer(othValue, arrValue, index, other, array, stack)
|
|
92
|
+
: customizer(arrValue, othValue, index, array, other, stack);
|
|
93
|
+
}
|
|
94
|
+
if (compared !== undefined) {
|
|
95
|
+
if (compared) {
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
result = false;
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
// Recursively compare arrays (susceptible to call stack limits).
|
|
102
|
+
if (seen) {
|
|
103
|
+
if (!_arraySome(other, function(othValue, othIndex) {
|
|
104
|
+
if (!_cacheHas(seen, othIndex) &&
|
|
105
|
+
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
106
|
+
return seen.push(othIndex);
|
|
107
|
+
}
|
|
108
|
+
})) {
|
|
109
|
+
result = false;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
} else if (!(
|
|
113
|
+
arrValue === othValue ||
|
|
114
|
+
equalFunc(arrValue, othValue, bitmask, customizer, stack)
|
|
115
|
+
)) {
|
|
116
|
+
result = false;
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
stack['delete'](array);
|
|
121
|
+
stack['delete'](other);
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
var _equalArrays = equalArrays;
|
|
126
|
+
|
|
127
|
+
/** Built-in value references. */
|
|
128
|
+
var Uint8Array = _root.Uint8Array;
|
|
129
|
+
|
|
130
|
+
var _Uint8Array = Uint8Array;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Converts `map` to its key-value pairs.
|
|
134
|
+
*
|
|
135
|
+
* @private
|
|
136
|
+
* @param {Object} map The map to convert.
|
|
137
|
+
* @returns {Array} Returns the key-value pairs.
|
|
138
|
+
*/
|
|
139
|
+
function mapToArray(map) {
|
|
140
|
+
var index = -1,
|
|
141
|
+
result = Array(map.size);
|
|
142
|
+
|
|
143
|
+
map.forEach(function(value, key) {
|
|
144
|
+
result[++index] = [key, value];
|
|
145
|
+
});
|
|
146
|
+
return result;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
var _mapToArray = mapToArray;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Converts `set` to an array of its values.
|
|
153
|
+
*
|
|
154
|
+
* @private
|
|
155
|
+
* @param {Object} set The set to convert.
|
|
156
|
+
* @returns {Array} Returns the values.
|
|
157
|
+
*/
|
|
158
|
+
function setToArray(set) {
|
|
159
|
+
var index = -1,
|
|
160
|
+
result = Array(set.size);
|
|
161
|
+
|
|
162
|
+
set.forEach(function(value) {
|
|
163
|
+
result[++index] = value;
|
|
164
|
+
});
|
|
165
|
+
return result;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
var _setToArray = setToArray;
|
|
169
|
+
|
|
170
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
171
|
+
var COMPARE_PARTIAL_FLAG$4 = 1,
|
|
172
|
+
COMPARE_UNORDERED_FLAG$2 = 2;
|
|
173
|
+
|
|
174
|
+
/** `Object#toString` result references. */
|
|
175
|
+
var boolTag = '[object Boolean]',
|
|
176
|
+
dateTag = '[object Date]',
|
|
177
|
+
errorTag = '[object Error]',
|
|
178
|
+
mapTag = '[object Map]',
|
|
179
|
+
numberTag = '[object Number]',
|
|
180
|
+
regexpTag = '[object RegExp]',
|
|
181
|
+
setTag = '[object Set]',
|
|
182
|
+
stringTag = '[object String]',
|
|
183
|
+
symbolTag = '[object Symbol]';
|
|
184
|
+
|
|
185
|
+
var arrayBufferTag = '[object ArrayBuffer]',
|
|
186
|
+
dataViewTag = '[object DataView]';
|
|
187
|
+
|
|
188
|
+
/** Used to convert symbols to primitives and strings. */
|
|
189
|
+
var symbolProto$1 = _Symbol ? _Symbol.prototype : undefined,
|
|
190
|
+
symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
194
|
+
* the same `toStringTag`.
|
|
195
|
+
*
|
|
196
|
+
* **Note:** This function only supports comparing values with tags of
|
|
197
|
+
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
198
|
+
*
|
|
199
|
+
* @private
|
|
200
|
+
* @param {Object} object The object to compare.
|
|
201
|
+
* @param {Object} other The other object to compare.
|
|
202
|
+
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
203
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
204
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
205
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
206
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
207
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
208
|
+
*/
|
|
209
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
210
|
+
switch (tag) {
|
|
211
|
+
case dataViewTag:
|
|
212
|
+
if ((object.byteLength != other.byteLength) ||
|
|
213
|
+
(object.byteOffset != other.byteOffset)) {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
object = object.buffer;
|
|
217
|
+
other = other.buffer;
|
|
218
|
+
|
|
219
|
+
case arrayBufferTag:
|
|
220
|
+
if ((object.byteLength != other.byteLength) ||
|
|
221
|
+
!equalFunc(new _Uint8Array(object), new _Uint8Array(other))) {
|
|
222
|
+
return false;
|
|
223
|
+
}
|
|
224
|
+
return true;
|
|
225
|
+
|
|
226
|
+
case boolTag:
|
|
227
|
+
case dateTag:
|
|
228
|
+
case numberTag:
|
|
229
|
+
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
230
|
+
// Invalid dates are coerced to `NaN`.
|
|
231
|
+
return eq_1(+object, +other);
|
|
232
|
+
|
|
233
|
+
case errorTag:
|
|
234
|
+
return object.name == other.name && object.message == other.message;
|
|
235
|
+
|
|
236
|
+
case regexpTag:
|
|
237
|
+
case stringTag:
|
|
238
|
+
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
239
|
+
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
240
|
+
// for more details.
|
|
241
|
+
return object == (other + '');
|
|
242
|
+
|
|
243
|
+
case mapTag:
|
|
244
|
+
var convert = _mapToArray;
|
|
245
|
+
|
|
246
|
+
case setTag:
|
|
247
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
|
|
248
|
+
convert || (convert = _setToArray);
|
|
249
|
+
|
|
250
|
+
if (object.size != other.size && !isPartial) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
// Assume cyclic values are equal.
|
|
254
|
+
var stacked = stack.get(object);
|
|
255
|
+
if (stacked) {
|
|
256
|
+
return stacked == other;
|
|
257
|
+
}
|
|
258
|
+
bitmask |= COMPARE_UNORDERED_FLAG$2;
|
|
259
|
+
|
|
260
|
+
// Recursively compare objects (susceptible to call stack limits).
|
|
261
|
+
stack.set(object, other);
|
|
262
|
+
var result = _equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
263
|
+
stack['delete'](object);
|
|
264
|
+
return result;
|
|
265
|
+
|
|
266
|
+
case symbolTag:
|
|
267
|
+
if (symbolValueOf) {
|
|
268
|
+
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return false;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
var _equalByTag = equalByTag;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Appends the elements of `values` to `array`.
|
|
278
|
+
*
|
|
279
|
+
* @private
|
|
280
|
+
* @param {Array} array The array to modify.
|
|
281
|
+
* @param {Array} values The values to append.
|
|
282
|
+
* @returns {Array} Returns `array`.
|
|
283
|
+
*/
|
|
284
|
+
function arrayPush(array, values) {
|
|
285
|
+
var index = -1,
|
|
286
|
+
length = values.length,
|
|
287
|
+
offset = array.length;
|
|
288
|
+
|
|
289
|
+
while (++index < length) {
|
|
290
|
+
array[offset + index] = values[index];
|
|
291
|
+
}
|
|
292
|
+
return array;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
var _arrayPush = arrayPush;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
299
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
300
|
+
* symbols of `object`.
|
|
301
|
+
*
|
|
302
|
+
* @private
|
|
303
|
+
* @param {Object} object The object to query.
|
|
304
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
305
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
306
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
307
|
+
*/
|
|
308
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
309
|
+
var result = keysFunc(object);
|
|
310
|
+
return isArray_1(object) ? result : _arrayPush(result, symbolsFunc(object));
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
var _baseGetAllKeys = baseGetAllKeys;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
317
|
+
* iteratee shorthands.
|
|
318
|
+
*
|
|
319
|
+
* @private
|
|
320
|
+
* @param {Array} [array] The array to iterate over.
|
|
321
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
322
|
+
* @returns {Array} Returns the new filtered array.
|
|
323
|
+
*/
|
|
324
|
+
function arrayFilter(array, predicate) {
|
|
325
|
+
var index = -1,
|
|
326
|
+
length = array == null ? 0 : array.length,
|
|
327
|
+
resIndex = 0,
|
|
328
|
+
result = [];
|
|
329
|
+
|
|
330
|
+
while (++index < length) {
|
|
331
|
+
var value = array[index];
|
|
332
|
+
if (predicate(value, index, array)) {
|
|
333
|
+
result[resIndex++] = value;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return result;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
var _arrayFilter = arrayFilter;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* This method returns a new empty array.
|
|
343
|
+
*
|
|
344
|
+
* @static
|
|
345
|
+
* @memberOf _
|
|
346
|
+
* @since 4.13.0
|
|
347
|
+
* @category Util
|
|
348
|
+
* @returns {Array} Returns the new empty array.
|
|
349
|
+
* @example
|
|
350
|
+
*
|
|
351
|
+
* var arrays = _.times(2, _.stubArray);
|
|
352
|
+
*
|
|
353
|
+
* console.log(arrays);
|
|
354
|
+
* // => [[], []]
|
|
355
|
+
*
|
|
356
|
+
* console.log(arrays[0] === arrays[1]);
|
|
357
|
+
* // => false
|
|
358
|
+
*/
|
|
359
|
+
function stubArray() {
|
|
360
|
+
return [];
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
var stubArray_1 = stubArray;
|
|
364
|
+
|
|
365
|
+
/** Used for built-in method references. */
|
|
366
|
+
var objectProto$2 = Object.prototype;
|
|
367
|
+
|
|
368
|
+
/** Built-in value references. */
|
|
369
|
+
var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
|
|
370
|
+
|
|
371
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
372
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
376
|
+
*
|
|
377
|
+
* @private
|
|
378
|
+
* @param {Object} object The object to query.
|
|
379
|
+
* @returns {Array} Returns the array of symbols.
|
|
380
|
+
*/
|
|
381
|
+
var getSymbols = !nativeGetSymbols ? stubArray_1 : function(object) {
|
|
382
|
+
if (object == null) {
|
|
383
|
+
return [];
|
|
384
|
+
}
|
|
385
|
+
object = Object(object);
|
|
386
|
+
return _arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
387
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
388
|
+
});
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
var _getSymbols = getSymbols;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
395
|
+
*
|
|
396
|
+
* @private
|
|
397
|
+
* @param {Object} object The object to query.
|
|
398
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
399
|
+
*/
|
|
400
|
+
function getAllKeys(object) {
|
|
401
|
+
return _baseGetAllKeys(object, keys_1, _getSymbols);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
var _getAllKeys = getAllKeys;
|
|
405
|
+
|
|
406
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
407
|
+
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
408
|
+
|
|
409
|
+
/** Used for built-in method references. */
|
|
410
|
+
var objectProto$1 = Object.prototype;
|
|
411
|
+
|
|
412
|
+
/** Used to check objects for own properties. */
|
|
413
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
417
|
+
* partial deep comparisons.
|
|
418
|
+
*
|
|
419
|
+
* @private
|
|
420
|
+
* @param {Object} object The object to compare.
|
|
421
|
+
* @param {Object} other The other object to compare.
|
|
422
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
423
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
424
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
425
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
426
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
427
|
+
*/
|
|
428
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
429
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
|
|
430
|
+
objProps = _getAllKeys(object),
|
|
431
|
+
objLength = objProps.length,
|
|
432
|
+
othProps = _getAllKeys(other),
|
|
433
|
+
othLength = othProps.length;
|
|
434
|
+
|
|
435
|
+
if (objLength != othLength && !isPartial) {
|
|
436
|
+
return false;
|
|
437
|
+
}
|
|
438
|
+
var index = objLength;
|
|
439
|
+
while (index--) {
|
|
440
|
+
var key = objProps[index];
|
|
441
|
+
if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
|
|
442
|
+
return false;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
// Check that cyclic values are equal.
|
|
446
|
+
var objStacked = stack.get(object);
|
|
447
|
+
var othStacked = stack.get(other);
|
|
448
|
+
if (objStacked && othStacked) {
|
|
449
|
+
return objStacked == other && othStacked == object;
|
|
450
|
+
}
|
|
451
|
+
var result = true;
|
|
452
|
+
stack.set(object, other);
|
|
453
|
+
stack.set(other, object);
|
|
454
|
+
|
|
455
|
+
var skipCtor = isPartial;
|
|
456
|
+
while (++index < objLength) {
|
|
457
|
+
key = objProps[index];
|
|
458
|
+
var objValue = object[key],
|
|
459
|
+
othValue = other[key];
|
|
460
|
+
|
|
461
|
+
if (customizer) {
|
|
462
|
+
var compared = isPartial
|
|
463
|
+
? customizer(othValue, objValue, key, other, object, stack)
|
|
464
|
+
: customizer(objValue, othValue, key, object, other, stack);
|
|
465
|
+
}
|
|
466
|
+
// Recursively compare objects (susceptible to call stack limits).
|
|
467
|
+
if (!(compared === undefined
|
|
468
|
+
? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
|
|
469
|
+
: compared
|
|
470
|
+
)) {
|
|
471
|
+
result = false;
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
skipCtor || (skipCtor = key == 'constructor');
|
|
475
|
+
}
|
|
476
|
+
if (result && !skipCtor) {
|
|
477
|
+
var objCtor = object.constructor,
|
|
478
|
+
othCtor = other.constructor;
|
|
479
|
+
|
|
480
|
+
// Non `Object` object instances with different constructors are not equal.
|
|
481
|
+
if (objCtor != othCtor &&
|
|
482
|
+
('constructor' in object && 'constructor' in other) &&
|
|
483
|
+
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
|
|
484
|
+
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
|
|
485
|
+
result = false;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
stack['delete'](object);
|
|
489
|
+
stack['delete'](other);
|
|
490
|
+
return result;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
var _equalObjects = equalObjects;
|
|
494
|
+
|
|
495
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
496
|
+
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
497
|
+
|
|
498
|
+
/** `Object#toString` result references. */
|
|
499
|
+
var argsTag = '[object Arguments]',
|
|
500
|
+
arrayTag = '[object Array]',
|
|
501
|
+
objectTag = '[object Object]';
|
|
502
|
+
|
|
503
|
+
/** Used for built-in method references. */
|
|
504
|
+
var objectProto = Object.prototype;
|
|
505
|
+
|
|
506
|
+
/** Used to check objects for own properties. */
|
|
507
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
511
|
+
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
512
|
+
* references to be compared.
|
|
513
|
+
*
|
|
514
|
+
* @private
|
|
515
|
+
* @param {Object} object The object to compare.
|
|
516
|
+
* @param {Object} other The other object to compare.
|
|
517
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
518
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
519
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
520
|
+
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
521
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
522
|
+
*/
|
|
523
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
524
|
+
var objIsArr = isArray_1(object),
|
|
525
|
+
othIsArr = isArray_1(other),
|
|
526
|
+
objTag = objIsArr ? arrayTag : _getTag(object),
|
|
527
|
+
othTag = othIsArr ? arrayTag : _getTag(other);
|
|
528
|
+
|
|
529
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
530
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
531
|
+
|
|
532
|
+
var objIsObj = objTag == objectTag,
|
|
533
|
+
othIsObj = othTag == objectTag,
|
|
534
|
+
isSameTag = objTag == othTag;
|
|
535
|
+
|
|
536
|
+
if (isSameTag && isBuffer_1(object)) {
|
|
537
|
+
if (!isBuffer_1(other)) {
|
|
538
|
+
return false;
|
|
539
|
+
}
|
|
540
|
+
objIsArr = true;
|
|
541
|
+
objIsObj = false;
|
|
542
|
+
}
|
|
543
|
+
if (isSameTag && !objIsObj) {
|
|
544
|
+
stack || (stack = new _Stack);
|
|
545
|
+
return (objIsArr || isTypedArray_1(object))
|
|
546
|
+
? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
547
|
+
: _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
548
|
+
}
|
|
549
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
550
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
|
|
551
|
+
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
|
|
552
|
+
|
|
553
|
+
if (objIsWrapped || othIsWrapped) {
|
|
554
|
+
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
555
|
+
othUnwrapped = othIsWrapped ? other.value() : other;
|
|
556
|
+
|
|
557
|
+
stack || (stack = new _Stack);
|
|
558
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
if (!isSameTag) {
|
|
562
|
+
return false;
|
|
563
|
+
}
|
|
564
|
+
stack || (stack = new _Stack);
|
|
565
|
+
return _equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
var _baseIsEqualDeep = baseIsEqualDeep;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
572
|
+
* and tracks traversed objects.
|
|
573
|
+
*
|
|
574
|
+
* @private
|
|
575
|
+
* @param {*} value The value to compare.
|
|
576
|
+
* @param {*} other The other value to compare.
|
|
577
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
578
|
+
* 1 - Unordered comparison
|
|
579
|
+
* 2 - Partial comparison
|
|
580
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
581
|
+
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
582
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
583
|
+
*/
|
|
584
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
585
|
+
if (value === other) {
|
|
586
|
+
return true;
|
|
587
|
+
}
|
|
588
|
+
if (value == null || other == null || (!isObjectLike_1(value) && !isObjectLike_1(other))) {
|
|
589
|
+
return value !== value && other !== other;
|
|
590
|
+
}
|
|
591
|
+
return _baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
var _baseIsEqual = baseIsEqual;
|
|
595
|
+
|
|
596
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
597
|
+
var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
598
|
+
COMPARE_UNORDERED_FLAG$1 = 2;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* The base implementation of `_.isMatch` without support for iteratee shorthands.
|
|
602
|
+
*
|
|
603
|
+
* @private
|
|
604
|
+
* @param {Object} object The object to inspect.
|
|
605
|
+
* @param {Object} source The object of property values to match.
|
|
606
|
+
* @param {Array} matchData The property names, values, and compare flags to match.
|
|
607
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
608
|
+
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
609
|
+
*/
|
|
610
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
611
|
+
var index = matchData.length,
|
|
612
|
+
length = index,
|
|
613
|
+
noCustomizer = !customizer;
|
|
614
|
+
|
|
615
|
+
if (object == null) {
|
|
616
|
+
return !length;
|
|
617
|
+
}
|
|
618
|
+
object = Object(object);
|
|
619
|
+
while (index--) {
|
|
620
|
+
var data = matchData[index];
|
|
621
|
+
if ((noCustomizer && data[2])
|
|
622
|
+
? data[1] !== object[data[0]]
|
|
623
|
+
: !(data[0] in object)
|
|
624
|
+
) {
|
|
625
|
+
return false;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
while (++index < length) {
|
|
629
|
+
data = matchData[index];
|
|
630
|
+
var key = data[0],
|
|
631
|
+
objValue = object[key],
|
|
632
|
+
srcValue = data[1];
|
|
633
|
+
|
|
634
|
+
if (noCustomizer && data[2]) {
|
|
635
|
+
if (objValue === undefined && !(key in object)) {
|
|
636
|
+
return false;
|
|
637
|
+
}
|
|
638
|
+
} else {
|
|
639
|
+
var stack = new _Stack;
|
|
640
|
+
if (customizer) {
|
|
641
|
+
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
642
|
+
}
|
|
643
|
+
if (!(result === undefined
|
|
644
|
+
? _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
|
|
645
|
+
: result
|
|
646
|
+
)) {
|
|
647
|
+
return false;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
return true;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
var _baseIsMatch = baseIsMatch;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
658
|
+
*
|
|
659
|
+
* @private
|
|
660
|
+
* @param {*} value The value to check.
|
|
661
|
+
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
662
|
+
* equality comparisons, else `false`.
|
|
663
|
+
*/
|
|
664
|
+
function isStrictComparable(value) {
|
|
665
|
+
return value === value && !isObject_1(value);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
var _isStrictComparable = isStrictComparable;
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Gets the property names, values, and compare flags of `object`.
|
|
672
|
+
*
|
|
673
|
+
* @private
|
|
674
|
+
* @param {Object} object The object to query.
|
|
675
|
+
* @returns {Array} Returns the match data of `object`.
|
|
676
|
+
*/
|
|
677
|
+
function getMatchData(object) {
|
|
678
|
+
var result = keys_1(object),
|
|
679
|
+
length = result.length;
|
|
680
|
+
|
|
681
|
+
while (length--) {
|
|
682
|
+
var key = result[length],
|
|
683
|
+
value = object[key];
|
|
684
|
+
|
|
685
|
+
result[length] = [key, value, _isStrictComparable(value)];
|
|
686
|
+
}
|
|
687
|
+
return result;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
var _getMatchData = getMatchData;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* A specialized version of `matchesProperty` for source values suitable
|
|
694
|
+
* for strict equality comparisons, i.e. `===`.
|
|
695
|
+
*
|
|
696
|
+
* @private
|
|
697
|
+
* @param {string} key The key of the property to get.
|
|
698
|
+
* @param {*} srcValue The value to match.
|
|
699
|
+
* @returns {Function} Returns the new spec function.
|
|
700
|
+
*/
|
|
701
|
+
function matchesStrictComparable(key, srcValue) {
|
|
702
|
+
return function(object) {
|
|
703
|
+
if (object == null) {
|
|
704
|
+
return false;
|
|
705
|
+
}
|
|
706
|
+
return object[key] === srcValue &&
|
|
707
|
+
(srcValue !== undefined || (key in Object(object)));
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
var _matchesStrictComparable = matchesStrictComparable;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
715
|
+
*
|
|
716
|
+
* @private
|
|
717
|
+
* @param {Object} source The object of property values to match.
|
|
718
|
+
* @returns {Function} Returns the new spec function.
|
|
719
|
+
*/
|
|
720
|
+
function baseMatches(source) {
|
|
721
|
+
var matchData = _getMatchData(source);
|
|
722
|
+
if (matchData.length == 1 && matchData[0][2]) {
|
|
723
|
+
return _matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
724
|
+
}
|
|
725
|
+
return function(object) {
|
|
726
|
+
return object === source || _baseIsMatch(object, source, matchData);
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
var _baseMatches = baseMatches;
|
|
731
|
+
|
|
732
|
+
/** Used to match property names within property paths. */
|
|
733
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
734
|
+
reIsPlainProp = /^\w*$/;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Checks if `value` is a property name and not a property path.
|
|
738
|
+
*
|
|
739
|
+
* @private
|
|
740
|
+
* @param {*} value The value to check.
|
|
741
|
+
* @param {Object} [object] The object to query keys on.
|
|
742
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
743
|
+
*/
|
|
744
|
+
function isKey(value, object) {
|
|
745
|
+
if (isArray_1(value)) {
|
|
746
|
+
return false;
|
|
747
|
+
}
|
|
748
|
+
var type = typeof value;
|
|
749
|
+
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
750
|
+
value == null || isSymbol_1(value)) {
|
|
751
|
+
return true;
|
|
752
|
+
}
|
|
753
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
754
|
+
(object != null && value in Object(object));
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
var _isKey = isKey;
|
|
758
|
+
|
|
759
|
+
/** Used as references for various `Number` constants. */
|
|
760
|
+
var INFINITY$1 = 1 / 0;
|
|
761
|
+
|
|
762
|
+
/** Used to convert symbols to primitives and strings. */
|
|
763
|
+
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
764
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
768
|
+
* values to empty strings.
|
|
769
|
+
*
|
|
770
|
+
* @private
|
|
771
|
+
* @param {*} value The value to process.
|
|
772
|
+
* @returns {string} Returns the string.
|
|
773
|
+
*/
|
|
774
|
+
function baseToString(value) {
|
|
775
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
776
|
+
if (typeof value == 'string') {
|
|
777
|
+
return value;
|
|
778
|
+
}
|
|
779
|
+
if (isArray_1(value)) {
|
|
780
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
781
|
+
return _arrayMap(value, baseToString) + '';
|
|
782
|
+
}
|
|
783
|
+
if (isSymbol_1(value)) {
|
|
784
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
785
|
+
}
|
|
786
|
+
var result = (value + '');
|
|
787
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
var _baseToString = baseToString;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
794
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
795
|
+
*
|
|
796
|
+
* @static
|
|
797
|
+
* @memberOf _
|
|
798
|
+
* @since 4.0.0
|
|
799
|
+
* @category Lang
|
|
800
|
+
* @param {*} value The value to convert.
|
|
801
|
+
* @returns {string} Returns the converted string.
|
|
802
|
+
* @example
|
|
803
|
+
*
|
|
804
|
+
* _.toString(null);
|
|
805
|
+
* // => ''
|
|
806
|
+
*
|
|
807
|
+
* _.toString(-0);
|
|
808
|
+
* // => '-0'
|
|
809
|
+
*
|
|
810
|
+
* _.toString([1, 2, 3]);
|
|
811
|
+
* // => '1,2,3'
|
|
812
|
+
*/
|
|
813
|
+
function toString(value) {
|
|
814
|
+
return value == null ? '' : _baseToString(value);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
var toString_1 = toString;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Casts `value` to a path array if it's not one.
|
|
821
|
+
*
|
|
822
|
+
* @private
|
|
823
|
+
* @param {*} value The value to inspect.
|
|
824
|
+
* @param {Object} [object] The object to query keys on.
|
|
825
|
+
* @returns {Array} Returns the cast property path array.
|
|
826
|
+
*/
|
|
827
|
+
function castPath(value, object) {
|
|
828
|
+
if (isArray_1(value)) {
|
|
829
|
+
return value;
|
|
830
|
+
}
|
|
831
|
+
return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
var _castPath = castPath;
|
|
835
|
+
|
|
836
|
+
/** Used as references for various `Number` constants. */
|
|
837
|
+
var INFINITY = 1 / 0;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
841
|
+
*
|
|
842
|
+
* @private
|
|
843
|
+
* @param {*} value The value to inspect.
|
|
844
|
+
* @returns {string|symbol} Returns the key.
|
|
845
|
+
*/
|
|
846
|
+
function toKey(value) {
|
|
847
|
+
if (typeof value == 'string' || isSymbol_1(value)) {
|
|
848
|
+
return value;
|
|
849
|
+
}
|
|
850
|
+
var result = (value + '');
|
|
851
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
var _toKey = toKey;
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* The base implementation of `_.get` without support for default values.
|
|
858
|
+
*
|
|
859
|
+
* @private
|
|
860
|
+
* @param {Object} object The object to query.
|
|
861
|
+
* @param {Array|string} path The path of the property to get.
|
|
862
|
+
* @returns {*} Returns the resolved value.
|
|
863
|
+
*/
|
|
864
|
+
function baseGet(object, path) {
|
|
865
|
+
path = _castPath(path, object);
|
|
866
|
+
|
|
867
|
+
var index = 0,
|
|
868
|
+
length = path.length;
|
|
869
|
+
|
|
870
|
+
while (object != null && index < length) {
|
|
871
|
+
object = object[_toKey(path[index++])];
|
|
872
|
+
}
|
|
873
|
+
return (index && index == length) ? object : undefined;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
var _baseGet = baseGet;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
880
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
881
|
+
*
|
|
882
|
+
* @static
|
|
883
|
+
* @memberOf _
|
|
884
|
+
* @since 3.7.0
|
|
885
|
+
* @category Object
|
|
886
|
+
* @param {Object} object The object to query.
|
|
887
|
+
* @param {Array|string} path The path of the property to get.
|
|
888
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
889
|
+
* @returns {*} Returns the resolved value.
|
|
890
|
+
* @example
|
|
891
|
+
*
|
|
892
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
893
|
+
*
|
|
894
|
+
* _.get(object, 'a[0].b.c');
|
|
895
|
+
* // => 3
|
|
896
|
+
*
|
|
897
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
898
|
+
* // => 3
|
|
899
|
+
*
|
|
900
|
+
* _.get(object, 'a.b.c', 'default');
|
|
901
|
+
* // => 'default'
|
|
902
|
+
*/
|
|
903
|
+
function get(object, path, defaultValue) {
|
|
904
|
+
var result = object == null ? undefined : _baseGet(object, path);
|
|
905
|
+
return result === undefined ? defaultValue : result;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
var get_1 = get;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* The base implementation of `_.hasIn` without support for deep paths.
|
|
912
|
+
*
|
|
913
|
+
* @private
|
|
914
|
+
* @param {Object} [object] The object to query.
|
|
915
|
+
* @param {Array|string} key The key to check.
|
|
916
|
+
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
917
|
+
*/
|
|
918
|
+
function baseHasIn(object, key) {
|
|
919
|
+
return object != null && key in Object(object);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
var _baseHasIn = baseHasIn;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Checks if `path` exists on `object`.
|
|
926
|
+
*
|
|
927
|
+
* @private
|
|
928
|
+
* @param {Object} object The object to query.
|
|
929
|
+
* @param {Array|string} path The path to check.
|
|
930
|
+
* @param {Function} hasFunc The function to check properties.
|
|
931
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
932
|
+
*/
|
|
933
|
+
function hasPath(object, path, hasFunc) {
|
|
934
|
+
path = _castPath(path, object);
|
|
935
|
+
|
|
936
|
+
var index = -1,
|
|
937
|
+
length = path.length,
|
|
938
|
+
result = false;
|
|
939
|
+
|
|
940
|
+
while (++index < length) {
|
|
941
|
+
var key = _toKey(path[index]);
|
|
942
|
+
if (!(result = object != null && hasFunc(object, key))) {
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
object = object[key];
|
|
946
|
+
}
|
|
947
|
+
if (result || ++index != length) {
|
|
948
|
+
return result;
|
|
949
|
+
}
|
|
950
|
+
length = object == null ? 0 : object.length;
|
|
951
|
+
return !!length && isLength_1(length) && _isIndex(key, length) &&
|
|
952
|
+
(isArray_1(object) || isArguments_1(object));
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
var _hasPath = hasPath;
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Checks if `path` is a direct or inherited property of `object`.
|
|
959
|
+
*
|
|
960
|
+
* @static
|
|
961
|
+
* @memberOf _
|
|
962
|
+
* @since 4.0.0
|
|
963
|
+
* @category Object
|
|
964
|
+
* @param {Object} object The object to query.
|
|
965
|
+
* @param {Array|string} path The path to check.
|
|
966
|
+
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
967
|
+
* @example
|
|
968
|
+
*
|
|
969
|
+
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
|
|
970
|
+
*
|
|
971
|
+
* _.hasIn(object, 'a');
|
|
972
|
+
* // => true
|
|
973
|
+
*
|
|
974
|
+
* _.hasIn(object, 'a.b');
|
|
975
|
+
* // => true
|
|
976
|
+
*
|
|
977
|
+
* _.hasIn(object, ['a', 'b']);
|
|
978
|
+
* // => true
|
|
979
|
+
*
|
|
980
|
+
* _.hasIn(object, 'b');
|
|
981
|
+
* // => false
|
|
982
|
+
*/
|
|
983
|
+
function hasIn(object, path) {
|
|
984
|
+
return object != null && _hasPath(object, path, _baseHasIn);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
var hasIn_1 = hasIn;
|
|
988
|
+
|
|
989
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
990
|
+
var COMPARE_PARTIAL_FLAG = 1,
|
|
991
|
+
COMPARE_UNORDERED_FLAG = 2;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
|
995
|
+
*
|
|
996
|
+
* @private
|
|
997
|
+
* @param {string} path The path of the property to get.
|
|
998
|
+
* @param {*} srcValue The value to match.
|
|
999
|
+
* @returns {Function} Returns the new spec function.
|
|
1000
|
+
*/
|
|
1001
|
+
function baseMatchesProperty(path, srcValue) {
|
|
1002
|
+
if (_isKey(path) && _isStrictComparable(srcValue)) {
|
|
1003
|
+
return _matchesStrictComparable(_toKey(path), srcValue);
|
|
1004
|
+
}
|
|
1005
|
+
return function(object) {
|
|
1006
|
+
var objValue = get_1(object, path);
|
|
1007
|
+
return (objValue === undefined && objValue === srcValue)
|
|
1008
|
+
? hasIn_1(object, path)
|
|
1009
|
+
: _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
var _baseMatchesProperty = baseMatchesProperty;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* The base implementation of `_.property` without support for deep paths.
|
|
1017
|
+
*
|
|
1018
|
+
* @private
|
|
1019
|
+
* @param {string} key The key of the property to get.
|
|
1020
|
+
* @returns {Function} Returns the new accessor function.
|
|
1021
|
+
*/
|
|
1022
|
+
function baseProperty(key) {
|
|
1023
|
+
return function(object) {
|
|
1024
|
+
return object == null ? undefined : object[key];
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
var _baseProperty = baseProperty;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* A specialized version of `baseProperty` which supports deep paths.
|
|
1032
|
+
*
|
|
1033
|
+
* @private
|
|
1034
|
+
* @param {Array|string} path The path of the property to get.
|
|
1035
|
+
* @returns {Function} Returns the new accessor function.
|
|
1036
|
+
*/
|
|
1037
|
+
function basePropertyDeep(path) {
|
|
1038
|
+
return function(object) {
|
|
1039
|
+
return _baseGet(object, path);
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
var _basePropertyDeep = basePropertyDeep;
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Creates a function that returns the value at `path` of a given object.
|
|
1047
|
+
*
|
|
1048
|
+
* @static
|
|
1049
|
+
* @memberOf _
|
|
1050
|
+
* @since 2.4.0
|
|
1051
|
+
* @category Util
|
|
1052
|
+
* @param {Array|string} path The path of the property to get.
|
|
1053
|
+
* @returns {Function} Returns the new accessor function.
|
|
1054
|
+
* @example
|
|
1055
|
+
*
|
|
1056
|
+
* var objects = [
|
|
1057
|
+
* { 'a': { 'b': 2 } },
|
|
1058
|
+
* { 'a': { 'b': 1 } }
|
|
1059
|
+
* ];
|
|
1060
|
+
*
|
|
1061
|
+
* _.map(objects, _.property('a.b'));
|
|
1062
|
+
* // => [2, 1]
|
|
1063
|
+
*
|
|
1064
|
+
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
1065
|
+
* // => [1, 2]
|
|
1066
|
+
*/
|
|
1067
|
+
function property(path) {
|
|
1068
|
+
return _isKey(path) ? _baseProperty(_toKey(path)) : _basePropertyDeep(path);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
var property_1 = property;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* The base implementation of `_.iteratee`.
|
|
1075
|
+
*
|
|
1076
|
+
* @private
|
|
1077
|
+
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
1078
|
+
* @returns {Function} Returns the iteratee.
|
|
1079
|
+
*/
|
|
1080
|
+
function baseIteratee(value) {
|
|
1081
|
+
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
|
|
1082
|
+
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
|
|
1083
|
+
if (typeof value == 'function') {
|
|
1084
|
+
return value;
|
|
1085
|
+
}
|
|
1086
|
+
if (value == null) {
|
|
1087
|
+
return identity_1;
|
|
1088
|
+
}
|
|
1089
|
+
if (typeof value == 'object') {
|
|
1090
|
+
return isArray_1(value)
|
|
1091
|
+
? _baseMatchesProperty(value[0], value[1])
|
|
1092
|
+
: _baseMatches(value);
|
|
1093
|
+
}
|
|
1094
|
+
return property_1(value);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
var _baseIteratee = baseIteratee;
|
|
1098
|
+
|
|
1099
|
+
export { _baseIteratee as _, _baseProperty as a };
|