tinybase 5.3.0 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/common/index.cjs +5 -7
- package/cjs/common/with-schemas/index.cjs +5 -7
- package/cjs/es6/common/index.cjs +5 -7
- package/cjs/es6/common/with-schemas/index.cjs +5 -7
- package/cjs/es6/index.cjs +18 -12
- package/cjs/es6/indexes/index.cjs +0 -6
- package/cjs/es6/indexes/with-schemas/index.cjs +0 -6
- package/cjs/es6/mergeable-store/index.cjs +17 -11
- package/cjs/es6/mergeable-store/with-schemas/index.cjs +17 -11
- package/cjs/es6/metrics/index.cjs +1 -1
- package/cjs/es6/metrics/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/common/index.cjs +1 -1
- package/cjs/es6/min/common/index.cjs.gz +0 -0
- package/cjs/es6/min/common/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/common/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/index.cjs +1 -1
- package/cjs/es6/min/index.cjs.gz +0 -0
- package/cjs/es6/min/indexes/index.cjs +1 -1
- package/cjs/es6/min/indexes/index.cjs.gz +0 -0
- package/cjs/es6/min/indexes/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/indexes/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/mergeable-store/index.cjs +1 -1
- package/cjs/es6/min/mergeable-store/index.cjs.gz +0 -0
- package/cjs/es6/min/mergeable-store/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/mergeable-store/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/persisters/persister-pglite/index.cjs +1 -1
- package/cjs/es6/min/persisters/persister-pglite/index.cjs.gz +0 -0
- package/cjs/es6/min/persisters/persister-pglite/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/persisters/persister-pglite/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/store/index.cjs +1 -1
- package/cjs/es6/min/store/index.cjs.gz +0 -0
- package/cjs/es6/min/store/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/store/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-local/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-local/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-local/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-local/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-server/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-server/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/tools/index.cjs +1 -1
- package/cjs/es6/min/tools/index.cjs.gz +0 -0
- package/cjs/es6/min/tools/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/tools/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react/index.cjs +1 -1
- package/cjs/es6/min/ui-react/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/ui-react/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react-dom/index.cjs +1 -1
- package/cjs/es6/min/ui-react-dom/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react-dom/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/ui-react-dom/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react-inspector/index.cjs +1 -1
- package/cjs/es6/min/ui-react-inspector/index.cjs.gz +0 -0
- package/cjs/es6/min/ui-react-inspector/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/ui-react-inspector/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/persisters/persister-pglite/index.cjs +1 -1
- package/cjs/es6/persisters/persister-pglite/with-schemas/index.cjs +1 -1
- package/cjs/es6/queries/index.cjs +1 -1
- package/cjs/es6/queries/with-schemas/index.cjs +1 -1
- package/cjs/es6/store/index.cjs +0 -6
- package/cjs/es6/store/with-schemas/index.cjs +0 -6
- package/cjs/es6/synchronizers/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-local/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-ws-server/index.cjs +5 -7
- package/cjs/es6/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +5 -7
- package/cjs/es6/synchronizers/with-schemas/index.cjs +5 -7
- package/cjs/es6/tools/index.cjs +7 -4
- package/cjs/es6/tools/with-schemas/index.cjs +7 -4
- package/cjs/es6/ui-react/index.cjs +101 -109
- package/cjs/es6/ui-react/with-schemas/index.cjs +101 -109
- package/cjs/es6/ui-react-dom/index.cjs +14 -8
- package/cjs/es6/ui-react-dom/with-schemas/index.cjs +14 -8
- package/cjs/es6/ui-react-inspector/index.cjs +18 -16
- package/cjs/es6/ui-react-inspector/with-schemas/index.cjs +18 -16
- package/cjs/es6/with-schemas/index.cjs +18 -12
- package/cjs/index.cjs +18 -12
- package/cjs/indexes/index.cjs +0 -6
- package/cjs/indexes/with-schemas/index.cjs +0 -6
- package/cjs/mergeable-store/index.cjs +17 -11
- package/cjs/mergeable-store/with-schemas/index.cjs +17 -11
- package/cjs/metrics/index.cjs +1 -1
- package/cjs/metrics/with-schemas/index.cjs +1 -1
- package/cjs/min/common/index.cjs +1 -1
- package/cjs/min/common/index.cjs.gz +0 -0
- package/cjs/min/common/with-schemas/index.cjs +1 -1
- package/cjs/min/common/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/index.cjs +1 -1
- package/cjs/min/index.cjs.gz +0 -0
- package/cjs/min/indexes/index.cjs +1 -1
- package/cjs/min/indexes/index.cjs.gz +0 -0
- package/cjs/min/indexes/with-schemas/index.cjs +1 -1
- package/cjs/min/indexes/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/mergeable-store/index.cjs +1 -1
- package/cjs/min/mergeable-store/index.cjs.gz +0 -0
- package/cjs/min/mergeable-store/with-schemas/index.cjs +1 -1
- package/cjs/min/mergeable-store/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/persisters/persister-pglite/index.cjs +1 -1
- package/cjs/min/persisters/persister-pglite/index.cjs.gz +0 -0
- package/cjs/min/persisters/persister-pglite/with-schemas/index.cjs +1 -1
- package/cjs/min/persisters/persister-pglite/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/store/index.cjs +1 -1
- package/cjs/min/store/index.cjs.gz +0 -0
- package/cjs/min/store/with-schemas/index.cjs +1 -1
- package/cjs/min/store/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/index.cjs +1 -1
- package/cjs/min/synchronizers/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-local/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-local/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-local/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-local/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-server/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-server/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-server/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/tools/index.cjs +1 -1
- package/cjs/min/tools/index.cjs.gz +0 -0
- package/cjs/min/tools/with-schemas/index.cjs +1 -1
- package/cjs/min/tools/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/ui-react/index.cjs +1 -1
- package/cjs/min/ui-react/index.cjs.gz +0 -0
- package/cjs/min/ui-react/with-schemas/index.cjs +1 -1
- package/cjs/min/ui-react/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/ui-react-dom/index.cjs +1 -1
- package/cjs/min/ui-react-dom/index.cjs.gz +0 -0
- package/cjs/min/ui-react-dom/with-schemas/index.cjs +1 -1
- package/cjs/min/ui-react-dom/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/ui-react-inspector/index.cjs +1 -1
- package/cjs/min/ui-react-inspector/index.cjs.gz +0 -0
- package/cjs/min/ui-react-inspector/with-schemas/index.cjs +1 -1
- package/cjs/min/ui-react-inspector/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/with-schemas/index.cjs +1 -1
- package/cjs/min/with-schemas/index.cjs.gz +0 -0
- package/cjs/persisters/persister-pglite/index.cjs +1 -1
- package/cjs/persisters/persister-pglite/with-schemas/index.cjs +1 -1
- package/cjs/queries/index.cjs +1 -1
- package/cjs/queries/with-schemas/index.cjs +1 -1
- package/cjs/store/index.cjs +0 -6
- package/cjs/store/with-schemas/index.cjs +0 -6
- package/cjs/synchronizers/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-local/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-ws-client/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-ws-server/index.cjs +5 -7
- package/cjs/synchronizers/synchronizer-ws-server/with-schemas/index.cjs +5 -7
- package/cjs/synchronizers/with-schemas/index.cjs +5 -7
- package/cjs/tools/index.cjs +7 -4
- package/cjs/tools/with-schemas/index.cjs +7 -4
- package/cjs/ui-react/index.cjs +97 -107
- package/cjs/ui-react/with-schemas/index.cjs +97 -107
- package/cjs/ui-react-dom/index.cjs +14 -8
- package/cjs/ui-react-dom/with-schemas/index.cjs +14 -8
- package/cjs/ui-react-inspector/index.cjs +18 -16
- package/cjs/ui-react-inspector/with-schemas/index.cjs +18 -16
- package/cjs/with-schemas/index.cjs +18 -12
- package/common/index.js +5 -7
- package/common/with-schemas/index.js +5 -7
- package/es6/common/index.js +5 -7
- package/es6/common/with-schemas/index.js +5 -7
- package/es6/index.js +18 -12
- package/es6/indexes/index.js +0 -6
- package/es6/indexes/with-schemas/index.js +0 -6
- package/es6/mergeable-store/index.js +17 -11
- package/es6/mergeable-store/with-schemas/index.js +17 -11
- package/es6/metrics/index.js +1 -1
- package/es6/metrics/with-schemas/index.js +1 -1
- package/es6/min/common/index.js +1 -1
- package/es6/min/common/index.js.gz +0 -0
- package/es6/min/common/with-schemas/index.js +1 -1
- package/es6/min/common/with-schemas/index.js.gz +0 -0
- package/es6/min/index.js +1 -1
- package/es6/min/index.js.gz +0 -0
- package/es6/min/indexes/index.js +1 -1
- package/es6/min/indexes/index.js.gz +0 -0
- package/es6/min/indexes/with-schemas/index.js +1 -1
- package/es6/min/indexes/with-schemas/index.js.gz +0 -0
- package/es6/min/mergeable-store/index.js +1 -1
- package/es6/min/mergeable-store/index.js.gz +0 -0
- package/es6/min/mergeable-store/with-schemas/index.js +1 -1
- package/es6/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/es6/min/persisters/persister-pglite/index.js +1 -1
- package/es6/min/persisters/persister-pglite/index.js.gz +0 -0
- package/es6/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/es6/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/es6/min/store/index.js +1 -1
- package/es6/min/store/index.js.gz +0 -0
- package/es6/min/store/with-schemas/index.js +1 -1
- package/es6/min/store/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/index.js +1 -1
- package/es6/min/synchronizers/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-local/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/es6/min/tools/index.js +1 -1
- package/es6/min/tools/index.js.gz +0 -0
- package/es6/min/tools/with-schemas/index.js +1 -1
- package/es6/min/tools/with-schemas/index.js.gz +0 -0
- package/es6/min/ui-react/index.js +1 -1
- package/es6/min/ui-react/index.js.gz +0 -0
- package/es6/min/ui-react/with-schemas/index.js +1 -1
- package/es6/min/ui-react/with-schemas/index.js.gz +0 -0
- package/es6/min/ui-react-dom/index.js +1 -1
- package/es6/min/ui-react-dom/index.js.gz +0 -0
- package/es6/min/ui-react-dom/with-schemas/index.js +1 -1
- package/es6/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/es6/min/ui-react-inspector/index.js +1 -1
- package/es6/min/ui-react-inspector/index.js.gz +0 -0
- package/es6/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/es6/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/es6/min/with-schemas/index.js +1 -1
- package/es6/min/with-schemas/index.js.gz +0 -0
- package/es6/persisters/persister-pglite/index.js +1 -1
- package/es6/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/es6/queries/index.js +1 -1
- package/es6/queries/with-schemas/index.js +1 -1
- package/es6/store/index.js +0 -6
- package/es6/store/with-schemas/index.js +0 -6
- package/es6/synchronizers/index.js +5 -7
- package/es6/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
- package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
- package/es6/synchronizers/synchronizer-local/index.js +5 -7
- package/es6/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
- package/es6/synchronizers/synchronizer-ws-client/index.js +5 -7
- package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
- package/es6/synchronizers/synchronizer-ws-server/index.js +5 -7
- package/es6/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
- package/es6/synchronizers/with-schemas/index.js +5 -7
- package/es6/tools/index.js +7 -4
- package/es6/tools/with-schemas/index.js +7 -4
- package/es6/ui-react/index.js +101 -109
- package/es6/ui-react/with-schemas/index.js +101 -109
- package/es6/ui-react-dom/index.js +14 -8
- package/es6/ui-react-dom/with-schemas/index.js +14 -8
- package/es6/ui-react-inspector/index.js +18 -16
- package/es6/ui-react-inspector/with-schemas/index.js +18 -16
- package/es6/with-schemas/index.js +18 -12
- package/index.js +18 -12
- package/indexes/index.js +0 -6
- package/indexes/with-schemas/index.js +0 -6
- package/mergeable-store/index.js +17 -11
- package/mergeable-store/with-schemas/index.js +17 -11
- package/metrics/index.js +1 -1
- package/metrics/with-schemas/index.js +1 -1
- package/min/common/index.js +1 -1
- package/min/common/index.js.gz +0 -0
- package/min/common/with-schemas/index.js +1 -1
- package/min/common/with-schemas/index.js.gz +0 -0
- package/min/index.js +1 -1
- package/min/index.js.gz +0 -0
- package/min/indexes/index.js +1 -1
- package/min/indexes/index.js.gz +0 -0
- package/min/indexes/with-schemas/index.js +1 -1
- package/min/indexes/with-schemas/index.js.gz +0 -0
- package/min/mergeable-store/index.js +1 -1
- package/min/mergeable-store/index.js.gz +0 -0
- package/min/mergeable-store/with-schemas/index.js +1 -1
- package/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-pglite/index.js +1 -1
- package/min/persisters/persister-pglite/index.js.gz +0 -0
- package/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/min/store/index.js +1 -1
- package/min/store/index.js.gz +0 -0
- package/min/store/with-schemas/index.js +1 -1
- package/min/store/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/index.js +1 -1
- package/min/synchronizers/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-local/index.js +1 -1
- package/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/with-schemas/index.js +1 -1
- package/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/min/tools/index.js +1 -1
- package/min/tools/index.js.gz +0 -0
- package/min/tools/with-schemas/index.js +1 -1
- package/min/tools/with-schemas/index.js.gz +0 -0
- package/min/ui-react/index.js +1 -1
- package/min/ui-react/index.js.gz +0 -0
- package/min/ui-react/with-schemas/index.js +1 -1
- package/min/ui-react/with-schemas/index.js.gz +0 -0
- package/min/ui-react-dom/index.js +1 -1
- package/min/ui-react-dom/index.js.gz +0 -0
- package/min/ui-react-dom/with-schemas/index.js +1 -1
- package/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/min/ui-react-inspector/index.js +1 -1
- package/min/ui-react-inspector/index.js.gz +0 -0
- package/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/min/with-schemas/index.js +1 -1
- package/min/with-schemas/index.js.gz +0 -0
- package/package.json +5 -5
- package/persisters/persister-pglite/index.js +1 -1
- package/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/queries/index.js +1 -1
- package/queries/with-schemas/index.js +1 -1
- package/readme.md +14 -14
- package/releases.md +24 -24
- package/store/index.js +0 -6
- package/store/with-schemas/index.js +0 -6
- package/synchronizers/index.js +5 -7
- package/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
- package/synchronizers/synchronizer-local/index.js +5 -7
- package/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
- package/synchronizers/synchronizer-ws-client/index.js +5 -7
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
- package/synchronizers/synchronizer-ws-server/index.js +5 -7
- package/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
- package/synchronizers/with-schemas/index.js +5 -7
- package/tools/index.js +7 -4
- package/tools/with-schemas/index.js +7 -4
- package/ui-react/index.js +97 -107
- package/ui-react/with-schemas/index.js +97 -107
- package/ui-react-dom/index.js +14 -8
- package/ui-react-dom/with-schemas/index.js +14 -8
- package/ui-react-inspector/index.js +18 -16
- package/ui-react-inspector/with-schemas/index.js +18 -16
- package/umd/common/index.js +5 -7
- package/umd/common/with-schemas/index.js +5 -7
- package/umd/es6/common/index.js +5 -7
- package/umd/es6/common/with-schemas/index.js +5 -7
- package/umd/es6/index.js +18 -12
- package/umd/es6/indexes/index.js +0 -6
- package/umd/es6/indexes/with-schemas/index.js +0 -6
- package/umd/es6/mergeable-store/index.js +17 -11
- package/umd/es6/mergeable-store/with-schemas/index.js +17 -11
- package/umd/es6/metrics/index.js +1 -1
- package/umd/es6/metrics/with-schemas/index.js +1 -1
- package/umd/es6/min/common/index.js +1 -1
- package/umd/es6/min/common/index.js.gz +0 -0
- package/umd/es6/min/common/with-schemas/index.js +1 -1
- package/umd/es6/min/common/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/index.js +1 -1
- package/umd/es6/min/index.js.gz +0 -0
- package/umd/es6/min/indexes/index.js +1 -1
- package/umd/es6/min/indexes/index.js.gz +0 -0
- package/umd/es6/min/indexes/with-schemas/index.js +1 -1
- package/umd/es6/min/indexes/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/mergeable-store/index.js +1 -1
- package/umd/es6/min/mergeable-store/index.js.gz +0 -0
- package/umd/es6/min/mergeable-store/with-schemas/index.js +1 -1
- package/umd/es6/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/persisters/persister-pglite/index.js +1 -1
- package/umd/es6/min/persisters/persister-pglite/index.js.gz +0 -0
- package/umd/es6/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/umd/es6/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/store/index.js +1 -1
- package/umd/es6/min/store/index.js.gz +0 -0
- package/umd/es6/min/store/with-schemas/index.js +1 -1
- package/umd/es6/min/store/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/index.js +1 -1
- package/umd/es6/min/synchronizers/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-local/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/tools/index.js +1 -1
- package/umd/es6/min/tools/index.js.gz +0 -0
- package/umd/es6/min/tools/with-schemas/index.js +1 -1
- package/umd/es6/min/tools/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/ui-react/index.js +1 -1
- package/umd/es6/min/ui-react/index.js.gz +0 -0
- package/umd/es6/min/ui-react/with-schemas/index.js +1 -1
- package/umd/es6/min/ui-react/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/ui-react-dom/index.js +1 -1
- package/umd/es6/min/ui-react-dom/index.js.gz +0 -0
- package/umd/es6/min/ui-react-dom/with-schemas/index.js +1 -1
- package/umd/es6/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/ui-react-inspector/index.js +1 -1
- package/umd/es6/min/ui-react-inspector/index.js.gz +0 -0
- package/umd/es6/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/umd/es6/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/with-schemas/index.js +1 -1
- package/umd/es6/min/with-schemas/index.js.gz +0 -0
- package/umd/es6/persisters/persister-pglite/index.js +1 -1
- package/umd/es6/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/umd/es6/queries/index.js +1 -1
- package/umd/es6/queries/with-schemas/index.js +1 -1
- package/umd/es6/store/index.js +0 -6
- package/umd/es6/store/with-schemas/index.js +0 -6
- package/umd/es6/synchronizers/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-local/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-ws-client/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-ws-server/index.js +5 -7
- package/umd/es6/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
- package/umd/es6/synchronizers/with-schemas/index.js +5 -7
- package/umd/es6/tools/index.js +7 -4
- package/umd/es6/tools/with-schemas/index.js +7 -4
- package/umd/es6/ui-react/index.js +101 -118
- package/umd/es6/ui-react/with-schemas/index.js +101 -118
- package/umd/es6/ui-react-dom/index.js +14 -8
- package/umd/es6/ui-react-dom/with-schemas/index.js +14 -8
- package/umd/es6/ui-react-inspector/index.js +18 -16
- package/umd/es6/ui-react-inspector/with-schemas/index.js +18 -16
- package/umd/es6/with-schemas/index.js +18 -12
- package/umd/index.js +18 -12
- package/umd/indexes/index.js +0 -6
- package/umd/indexes/with-schemas/index.js +0 -6
- package/umd/mergeable-store/index.js +17 -11
- package/umd/mergeable-store/with-schemas/index.js +17 -11
- package/umd/metrics/index.js +1 -1
- package/umd/metrics/with-schemas/index.js +1 -1
- package/umd/min/common/index.js +1 -1
- package/umd/min/common/index.js.gz +0 -0
- package/umd/min/common/with-schemas/index.js +1 -1
- package/umd/min/common/with-schemas/index.js.gz +0 -0
- package/umd/min/index.js +1 -1
- package/umd/min/index.js.gz +0 -0
- package/umd/min/indexes/index.js +1 -1
- package/umd/min/indexes/index.js.gz +0 -0
- package/umd/min/indexes/with-schemas/index.js +1 -1
- package/umd/min/indexes/with-schemas/index.js.gz +0 -0
- package/umd/min/mergeable-store/index.js +1 -1
- package/umd/min/mergeable-store/index.js.gz +0 -0
- package/umd/min/mergeable-store/with-schemas/index.js +1 -1
- package/umd/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/umd/min/persisters/persister-pglite/index.js +1 -1
- package/umd/min/persisters/persister-pglite/index.js.gz +0 -0
- package/umd/min/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/umd/min/persisters/persister-pglite/with-schemas/index.js.gz +0 -0
- package/umd/min/store/index.js +1 -1
- package/umd/min/store/index.js.gz +0 -0
- package/umd/min/store/with-schemas/index.js +1 -1
- package/umd/min/store/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/index.js +1 -1
- package/umd/min/synchronizers/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-local/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-local/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-local/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-local/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-server/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-server/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-server/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-server/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/with-schemas/index.js.gz +0 -0
- package/umd/min/tools/index.js +1 -1
- package/umd/min/tools/index.js.gz +0 -0
- package/umd/min/tools/with-schemas/index.js +1 -1
- package/umd/min/tools/with-schemas/index.js.gz +0 -0
- package/umd/min/ui-react/index.js +1 -1
- package/umd/min/ui-react/index.js.gz +0 -0
- package/umd/min/ui-react/with-schemas/index.js +1 -1
- package/umd/min/ui-react/with-schemas/index.js.gz +0 -0
- package/umd/min/ui-react-dom/index.js +1 -1
- package/umd/min/ui-react-dom/index.js.gz +0 -0
- package/umd/min/ui-react-dom/with-schemas/index.js +1 -1
- package/umd/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/umd/min/ui-react-inspector/index.js +1 -1
- package/umd/min/ui-react-inspector/index.js.gz +0 -0
- package/umd/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/umd/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/umd/min/with-schemas/index.js +1 -1
- package/umd/min/with-schemas/index.js.gz +0 -0
- package/umd/persisters/persister-pglite/index.js +1 -1
- package/umd/persisters/persister-pglite/with-schemas/index.js +1 -1
- package/umd/queries/index.js +1 -1
- package/umd/queries/with-schemas/index.js +1 -1
- package/umd/store/index.js +0 -6
- package/umd/store/with-schemas/index.js +0 -6
- package/umd/synchronizers/index.js +5 -7
- package/umd/synchronizers/synchronizer-broadcast-channel/index.js +5 -7
- package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +5 -7
- package/umd/synchronizers/synchronizer-local/index.js +5 -7
- package/umd/synchronizers/synchronizer-local/with-schemas/index.js +5 -7
- package/umd/synchronizers/synchronizer-ws-client/index.js +5 -7
- package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +5 -7
- package/umd/synchronizers/synchronizer-ws-server/index.js +5 -7
- package/umd/synchronizers/synchronizer-ws-server/with-schemas/index.js +5 -7
- package/umd/synchronizers/with-schemas/index.js +5 -7
- package/umd/tools/index.js +7 -4
- package/umd/tools/with-schemas/index.js +7 -4
- package/umd/ui-react/index.js +97 -110
- package/umd/ui-react/with-schemas/index.js +97 -110
- package/umd/ui-react-dom/index.js +14 -8
- package/umd/ui-react-dom/with-schemas/index.js +14 -8
- package/umd/ui-react-inspector/index.js +18 -16
- package/umd/ui-react-inspector/with-schemas/index.js +18 -16
- package/umd/with-schemas/index.js +18 -12
- package/with-schemas/index.js +18 -12
|
@@ -10,7 +10,9 @@ const FUNCTION = getTypeOf(getTypeOf);
|
|
|
10
10
|
const LISTENER = 'Listener';
|
|
11
11
|
const RESULT = 'Result';
|
|
12
12
|
const GET = 'get';
|
|
13
|
+
const SET = 'set';
|
|
13
14
|
const ADD = 'add';
|
|
15
|
+
const DEL = 'del';
|
|
14
16
|
const HAS = 'Has';
|
|
15
17
|
const _HAS = 'has';
|
|
16
18
|
const IDS = 'Ids';
|
|
@@ -26,7 +28,19 @@ const CELL_IDS = CELL + IDS;
|
|
|
26
28
|
const VALUE = 'Value';
|
|
27
29
|
const VALUES = VALUE + 's';
|
|
28
30
|
const VALUE_IDS = VALUE + IDS;
|
|
31
|
+
const TRANSACTION = 'Transaction';
|
|
32
|
+
const PARTIAL = 'Partial';
|
|
33
|
+
const FINISH = 'Finish';
|
|
29
34
|
const STATUS = 'Status';
|
|
35
|
+
const METRIC = 'Metric';
|
|
36
|
+
const INDEX = 'Index';
|
|
37
|
+
const SLICE = 'Slice';
|
|
38
|
+
const RELATIONSHIP = 'Relationship';
|
|
39
|
+
const REMOTE_ROW_ID = 'Remote' + ROW + 'Id';
|
|
40
|
+
const LOCAL = 'Local';
|
|
41
|
+
const LINKED = 'Linked';
|
|
42
|
+
const QUERY = 'Query';
|
|
43
|
+
const CHECKPOINT = 'Checkpoint';
|
|
30
44
|
|
|
31
45
|
const GLOBAL = globalThis;
|
|
32
46
|
const isUndefined = (thing) => thing == void 0;
|
|
@@ -49,6 +63,34 @@ const arrayIsEmpty = (array) => size(array) == 0;
|
|
|
49
63
|
const arrayFilter = (array, cb) => array.filter(cb);
|
|
50
64
|
const arrayWith = (array, index, value) => array.with(index, value);
|
|
51
65
|
|
|
66
|
+
const {
|
|
67
|
+
PureComponent,
|
|
68
|
+
Fragment,
|
|
69
|
+
createContext,
|
|
70
|
+
createElement,
|
|
71
|
+
useCallback,
|
|
72
|
+
useContext,
|
|
73
|
+
useEffect,
|
|
74
|
+
useLayoutEffect,
|
|
75
|
+
useMemo,
|
|
76
|
+
useRef,
|
|
77
|
+
useState,
|
|
78
|
+
useSyncExternalStore,
|
|
79
|
+
} = React;
|
|
80
|
+
const getProps = (getProps2, ...ids) =>
|
|
81
|
+
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
82
|
+
const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
|
|
83
|
+
relationships,
|
|
84
|
+
relationships?.getStore(),
|
|
85
|
+
relationships?.getLocalTableId(relationshipId),
|
|
86
|
+
relationships?.getRemoteTableId(relationshipId),
|
|
87
|
+
];
|
|
88
|
+
const getIndexStoreTableId = (indexes, indexId) => [
|
|
89
|
+
indexes,
|
|
90
|
+
indexes?.getStore(),
|
|
91
|
+
indexes?.getTableId(indexId),
|
|
92
|
+
];
|
|
93
|
+
|
|
52
94
|
const object = Object;
|
|
53
95
|
const getPrototypeOf = (obj) => object.getPrototypeOf(obj);
|
|
54
96
|
const objEntries = object.entries;
|
|
@@ -91,21 +133,9 @@ const objEnsure = (obj, id, getDefaultValue) => {
|
|
|
91
133
|
return obj[id];
|
|
92
134
|
};
|
|
93
135
|
|
|
94
|
-
const {createContext, useContext: useContext$1, useEffect: useEffect$1} = React;
|
|
95
|
-
var Offsets = /* @__PURE__ */ ((Offsets2) => {
|
|
96
|
-
Offsets2[(Offsets2['Store'] = 0)] = 'Store';
|
|
97
|
-
Offsets2[(Offsets2['Metrics'] = 1)] = 'Metrics';
|
|
98
|
-
Offsets2[(Offsets2['Indexes'] = 2)] = 'Indexes';
|
|
99
|
-
Offsets2[(Offsets2['Relationships'] = 3)] = 'Relationships';
|
|
100
|
-
Offsets2[(Offsets2['Queries'] = 4)] = 'Queries';
|
|
101
|
-
Offsets2[(Offsets2['Checkpoints'] = 5)] = 'Checkpoints';
|
|
102
|
-
Offsets2[(Offsets2['Persister'] = 6)] = 'Persister';
|
|
103
|
-
Offsets2[(Offsets2['Synchronizer'] = 7)] = 'Synchronizer';
|
|
104
|
-
return Offsets2;
|
|
105
|
-
})(Offsets || {});
|
|
106
136
|
const Context = objEnsure(GLOBAL, TINYBASE + '_uirc', () => createContext([]));
|
|
107
137
|
const useThing = (id, offset) => {
|
|
108
|
-
const contextValue = useContext
|
|
138
|
+
const contextValue = useContext(Context);
|
|
109
139
|
return isUndefined(id)
|
|
110
140
|
? contextValue[offset * 2]
|
|
111
141
|
: isString(id)
|
|
@@ -119,14 +149,14 @@ const useThingOrThingById = (thingOrThingId, offset) => {
|
|
|
119
149
|
: thingOrThingId;
|
|
120
150
|
};
|
|
121
151
|
const useProvideThing = (thingId, thing, offset) => {
|
|
122
|
-
const {16: addExtraThingById, 17: delExtraThingById} = useContext
|
|
123
|
-
useEffect
|
|
152
|
+
const {16: addExtraThingById, 17: delExtraThingById} = useContext(Context);
|
|
153
|
+
useEffect(() => {
|
|
124
154
|
addExtraThingById?.(offset, thingId, thing);
|
|
125
155
|
return () => delExtraThingById?.(offset, thingId);
|
|
126
156
|
}, [addExtraThingById, thingId, thing, offset, delExtraThingById]);
|
|
127
157
|
};
|
|
128
158
|
const useThingIds = (offset) =>
|
|
129
|
-
objIds(useContext
|
|
159
|
+
objIds(useContext(Context)[offset * 2 + 1] ?? {});
|
|
130
160
|
const useStoreIds = () => useThingIds(0 /* Store */);
|
|
131
161
|
const useStore = (id) => useThing(id, 0 /* Store */);
|
|
132
162
|
const useStoreOrStoreById = (storeOrStoreId) =>
|
|
@@ -176,20 +206,6 @@ const useSynchronizerOrSynchronizerById = (synchronizerOrSynchronizerId) =>
|
|
|
176
206
|
const useProvideSynchronizer = (persisterId, persister) =>
|
|
177
207
|
useProvideThing(persisterId, persister, 7 /* Synchronizer */);
|
|
178
208
|
|
|
179
|
-
const lower = (str) => str.toLowerCase();
|
|
180
|
-
lower(LISTENER);
|
|
181
|
-
const TRANSACTION = 'Transaction';
|
|
182
|
-
lower(TRANSACTION);
|
|
183
|
-
|
|
184
|
-
const {
|
|
185
|
-
useCallback: useCallback$2,
|
|
186
|
-
useEffect,
|
|
187
|
-
useMemo: useMemo$1,
|
|
188
|
-
useLayoutEffect: useLayoutEffect$1,
|
|
189
|
-
useRef: useRef$1,
|
|
190
|
-
useState: useState$2,
|
|
191
|
-
useSyncExternalStore,
|
|
192
|
-
} = React;
|
|
193
209
|
const EMPTY_ARRAY = [];
|
|
194
210
|
const DEFAULTS = [{}, [], [EMPTY_ARRAY, void 0, EMPTY_ARRAY], void 0, false, 0];
|
|
195
211
|
const IS_EQUALS = [
|
|
@@ -205,8 +221,8 @@ const IS_EQUALS = [
|
|
|
205
221
|
];
|
|
206
222
|
const isEqual = (thing1, thing2) => thing1 === thing2;
|
|
207
223
|
const useCreate = (store, create, createDeps = EMPTY_ARRAY) => {
|
|
208
|
-
const [, rerender] = useState
|
|
209
|
-
const [thing, setThing] = useState
|
|
224
|
+
const [, rerender] = useState();
|
|
225
|
+
const [thing, setThing] = useState();
|
|
210
226
|
useEffect(
|
|
211
227
|
() => {
|
|
212
228
|
const newThing = store ? create(store) : void 0;
|
|
@@ -224,8 +240,8 @@ const addAndDelListener = (thing, listenable, ...args) => {
|
|
|
224
240
|
return () => thing?.delListener(listenerId);
|
|
225
241
|
};
|
|
226
242
|
const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
|
|
227
|
-
const lastResult = useRef
|
|
228
|
-
const getResult = useCallback
|
|
243
|
+
const lastResult = useRef(DEFAULTS[returnType]);
|
|
244
|
+
const getResult = useCallback(
|
|
229
245
|
() => {
|
|
230
246
|
const nextResult =
|
|
231
247
|
thing?.[(returnType == 4 /* Boolean */ ? _HAS : GET) + listenable]?.(
|
|
@@ -238,7 +254,7 @@ const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
|
|
|
238
254
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
239
255
|
[thing, returnType, listenable, ...args],
|
|
240
256
|
);
|
|
241
|
-
const subscribe = useCallback
|
|
257
|
+
const subscribe = useCallback(
|
|
242
258
|
(listener) =>
|
|
243
259
|
addAndDelListener(
|
|
244
260
|
thing,
|
|
@@ -259,7 +275,7 @@ const useListener = (
|
|
|
259
275
|
preArgs = EMPTY_ARRAY,
|
|
260
276
|
...postArgs
|
|
261
277
|
) =>
|
|
262
|
-
useLayoutEffect
|
|
278
|
+
useLayoutEffect(
|
|
263
279
|
() =>
|
|
264
280
|
addAndDelListener(thing, listenable, ...preArgs, listener, ...postArgs),
|
|
265
281
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -275,12 +291,12 @@ const useSetCallback = (
|
|
|
275
291
|
...args
|
|
276
292
|
) => {
|
|
277
293
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
278
|
-
return useCallback
|
|
294
|
+
return useCallback(
|
|
279
295
|
(parameter) =>
|
|
280
296
|
ifNotUndefined(store, (store2) =>
|
|
281
297
|
ifNotUndefined(get(parameter, store2), (thing) =>
|
|
282
298
|
then(
|
|
283
|
-
store2[
|
|
299
|
+
store2[SET + settable](
|
|
284
300
|
...argsOrGetArgs(args, store2, parameter),
|
|
285
301
|
thing,
|
|
286
302
|
),
|
|
@@ -303,11 +319,9 @@ const useDel = (
|
|
|
303
319
|
...args
|
|
304
320
|
) => {
|
|
305
321
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
306
|
-
return useCallback
|
|
322
|
+
return useCallback(
|
|
307
323
|
(parameter) =>
|
|
308
|
-
then(
|
|
309
|
-
store?.['del' + deletable](...argsOrGetArgs(args, store, parameter)),
|
|
310
|
-
),
|
|
324
|
+
then(store?.[DEL + deletable](...argsOrGetArgs(args, store, parameter))),
|
|
311
325
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
312
326
|
[store, deletable, ...thenDeps, ...nonFunctionDeps(args)],
|
|
313
327
|
);
|
|
@@ -316,16 +330,16 @@ const useCheckpointAction = (checkpointsOrCheckpointsId, action, arg) => {
|
|
|
316
330
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
317
331
|
checkpointsOrCheckpointsId,
|
|
318
332
|
);
|
|
319
|
-
return useCallback
|
|
333
|
+
return useCallback(
|
|
320
334
|
() => checkpoints?.[action](arg),
|
|
321
335
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
322
336
|
[checkpoints, action, arg],
|
|
323
337
|
);
|
|
324
338
|
};
|
|
325
339
|
const useCreateStore = (create, createDeps = EMPTY_ARRAY) =>
|
|
326
|
-
useMemo
|
|
340
|
+
useMemo(create, createDeps);
|
|
327
341
|
const useCreateMergeableStore = (create, createDeps = EMPTY_ARRAY) =>
|
|
328
|
-
useMemo
|
|
342
|
+
useMemo(create, createDeps);
|
|
329
343
|
const useHasTables = (storeOrStoreId) =>
|
|
330
344
|
useListenable(
|
|
331
345
|
TABLES,
|
|
@@ -495,7 +509,7 @@ const useAddRowCallback = (
|
|
|
495
509
|
reuseRowIds = true,
|
|
496
510
|
) => {
|
|
497
511
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
498
|
-
return useCallback
|
|
512
|
+
return useCallback(
|
|
499
513
|
(parameter) =>
|
|
500
514
|
ifNotUndefined(store, (store2) =>
|
|
501
515
|
ifNotUndefined(getRow(parameter, store2), (row) =>
|
|
@@ -525,7 +539,7 @@ const useSetPartialRowCallback = (
|
|
|
525
539
|
) =>
|
|
526
540
|
useSetCallback(
|
|
527
541
|
storeOrStoreId,
|
|
528
|
-
|
|
542
|
+
PARTIAL + ROW,
|
|
529
543
|
getPartialRow,
|
|
530
544
|
getPartialRowDeps,
|
|
531
545
|
then,
|
|
@@ -578,7 +592,7 @@ const useSetPartialValuesCallback = (
|
|
|
578
592
|
) =>
|
|
579
593
|
useSetCallback(
|
|
580
594
|
storeOrStoreId,
|
|
581
|
-
|
|
595
|
+
PARTIAL + VALUES,
|
|
582
596
|
getPartialValues,
|
|
583
597
|
getPartialValuesDeps,
|
|
584
598
|
then,
|
|
@@ -929,7 +943,7 @@ const useWillFinishTransactionListener = (
|
|
|
929
943
|
storeOrStoreId,
|
|
930
944
|
) =>
|
|
931
945
|
useListener(
|
|
932
|
-
'
|
|
946
|
+
'Will' + FINISH + TRANSACTION,
|
|
933
947
|
useStoreOrStoreById(storeOrStoreId),
|
|
934
948
|
listener,
|
|
935
949
|
listenerDeps,
|
|
@@ -940,7 +954,7 @@ const useDidFinishTransactionListener = (
|
|
|
940
954
|
storeOrStoreId,
|
|
941
955
|
) =>
|
|
942
956
|
useListener(
|
|
943
|
-
'
|
|
957
|
+
'Did' + FINISH + TRANSACTION,
|
|
944
958
|
useStoreOrStoreById(storeOrStoreId),
|
|
945
959
|
listener,
|
|
946
960
|
listenerDeps,
|
|
@@ -949,13 +963,13 @@ const useCreateMetrics = (store, create, createDeps) =>
|
|
|
949
963
|
useCreate(store, create, createDeps);
|
|
950
964
|
const useMetricIds = (metricsOrMetricsId) =>
|
|
951
965
|
useListenable(
|
|
952
|
-
|
|
966
|
+
METRIC + IDS,
|
|
953
967
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
954
968
|
1 /* Array */,
|
|
955
969
|
);
|
|
956
970
|
const useMetric = (metricId, metricsOrMetricsId) =>
|
|
957
971
|
useListenable(
|
|
958
|
-
|
|
972
|
+
METRIC,
|
|
959
973
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
960
974
|
3 /* CellOrValue */,
|
|
961
975
|
[metricId],
|
|
@@ -967,7 +981,7 @@ const useMetricListener = (
|
|
|
967
981
|
metricsOrMetricsId,
|
|
968
982
|
) =>
|
|
969
983
|
useListener(
|
|
970
|
-
|
|
984
|
+
METRIC,
|
|
971
985
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
972
986
|
listener,
|
|
973
987
|
listenerDeps,
|
|
@@ -977,20 +991,20 @@ const useCreateIndexes = (store, create, createDeps) =>
|
|
|
977
991
|
useCreate(store, create, createDeps);
|
|
978
992
|
const useSliceIds = (indexId, indexesOrIndexesId) =>
|
|
979
993
|
useListenable(
|
|
980
|
-
|
|
994
|
+
SLICE + IDS,
|
|
981
995
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
982
996
|
1 /* Array */,
|
|
983
997
|
[indexId],
|
|
984
998
|
);
|
|
985
999
|
const useIndexIds = (indexesOrIndexesId) =>
|
|
986
1000
|
useListenable(
|
|
987
|
-
|
|
1001
|
+
INDEX + IDS,
|
|
988
1002
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
989
1003
|
1 /* Array */,
|
|
990
1004
|
);
|
|
991
1005
|
const useSliceRowIds = (indexId, sliceId, indexesOrIndexesId) =>
|
|
992
1006
|
useListenable(
|
|
993
|
-
|
|
1007
|
+
SLICE + ROW_IDS,
|
|
994
1008
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
995
1009
|
1 /* Array */,
|
|
996
1010
|
[indexId, sliceId],
|
|
@@ -1002,7 +1016,7 @@ const useSliceIdsListener = (
|
|
|
1002
1016
|
indexesOrIndexesId,
|
|
1003
1017
|
) =>
|
|
1004
1018
|
useListener(
|
|
1005
|
-
|
|
1019
|
+
SLICE + IDS,
|
|
1006
1020
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1007
1021
|
listener,
|
|
1008
1022
|
listenerDeps,
|
|
@@ -1016,7 +1030,7 @@ const useSliceRowIdsListener = (
|
|
|
1016
1030
|
indexesOrIndexesId,
|
|
1017
1031
|
) =>
|
|
1018
1032
|
useListener(
|
|
1019
|
-
|
|
1033
|
+
SLICE + ROW_IDS,
|
|
1020
1034
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1021
1035
|
listener,
|
|
1022
1036
|
listenerDeps,
|
|
@@ -1026,7 +1040,7 @@ const useCreateRelationships = (store, create, createDeps) =>
|
|
|
1026
1040
|
useCreate(store, create, createDeps);
|
|
1027
1041
|
const useRelationshipIds = (relationshipsOrRelationshipsId) =>
|
|
1028
1042
|
useListenable(
|
|
1029
|
-
|
|
1043
|
+
RELATIONSHIP + IDS,
|
|
1030
1044
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1031
1045
|
1 /* Array */,
|
|
1032
1046
|
);
|
|
@@ -1036,7 +1050,7 @@ const useRemoteRowId = (
|
|
|
1036
1050
|
relationshipsOrRelationshipsId,
|
|
1037
1051
|
) =>
|
|
1038
1052
|
useListenable(
|
|
1039
|
-
|
|
1053
|
+
REMOTE_ROW_ID,
|
|
1040
1054
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1041
1055
|
3 /* CellOrValue */,
|
|
1042
1056
|
[relationshipId, localRowId],
|
|
@@ -1047,7 +1061,7 @@ const useLocalRowIds = (
|
|
|
1047
1061
|
relationshipsOrRelationshipsId,
|
|
1048
1062
|
) =>
|
|
1049
1063
|
useListenable(
|
|
1050
|
-
|
|
1064
|
+
LOCAL + ROW_IDS,
|
|
1051
1065
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1052
1066
|
1 /* Array */,
|
|
1053
1067
|
[relationshipId, remoteRowId],
|
|
@@ -1058,7 +1072,7 @@ const useLinkedRowIds = (
|
|
|
1058
1072
|
relationshipsOrRelationshipsId,
|
|
1059
1073
|
) =>
|
|
1060
1074
|
useListenable(
|
|
1061
|
-
|
|
1075
|
+
LINKED + ROW_IDS,
|
|
1062
1076
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1063
1077
|
1 /* Array */,
|
|
1064
1078
|
[relationshipId, firstRowId],
|
|
@@ -1071,7 +1085,7 @@ const useRemoteRowIdListener = (
|
|
|
1071
1085
|
relationshipsOrRelationshipsId,
|
|
1072
1086
|
) =>
|
|
1073
1087
|
useListener(
|
|
1074
|
-
|
|
1088
|
+
REMOTE_ROW_ID,
|
|
1075
1089
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1076
1090
|
listener,
|
|
1077
1091
|
listenerDeps,
|
|
@@ -1085,7 +1099,7 @@ const useLocalRowIdsListener = (
|
|
|
1085
1099
|
relationshipsOrRelationshipsId,
|
|
1086
1100
|
) =>
|
|
1087
1101
|
useListener(
|
|
1088
|
-
|
|
1102
|
+
LOCAL + ROW_IDS,
|
|
1089
1103
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1090
1104
|
listener,
|
|
1091
1105
|
listenerDeps,
|
|
@@ -1099,7 +1113,7 @@ const useLinkedRowIdsListener = (
|
|
|
1099
1113
|
relationshipsOrRelationshipsId,
|
|
1100
1114
|
) =>
|
|
1101
1115
|
useListener(
|
|
1102
|
-
|
|
1116
|
+
LINKED + ROW_IDS,
|
|
1103
1117
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1104
1118
|
listener,
|
|
1105
1119
|
listenerDeps,
|
|
@@ -1109,7 +1123,7 @@ const useCreateQueries = (store, create, createDeps) =>
|
|
|
1109
1123
|
useCreate(store, create, createDeps);
|
|
1110
1124
|
const useQueryIds = (queriesOrQueriesId) =>
|
|
1111
1125
|
useListenable(
|
|
1112
|
-
|
|
1126
|
+
QUERY + IDS,
|
|
1113
1127
|
useQueriesOrQueriesById(queriesOrQueriesId),
|
|
1114
1128
|
1 /* Array */,
|
|
1115
1129
|
);
|
|
@@ -1292,13 +1306,13 @@ const useCreateCheckpoints = (store, create, createDeps) =>
|
|
|
1292
1306
|
useCreate(store, create, createDeps);
|
|
1293
1307
|
const useCheckpointIds = (checkpointsOrCheckpointsId) =>
|
|
1294
1308
|
useListenable(
|
|
1295
|
-
|
|
1309
|
+
CHECKPOINT + IDS,
|
|
1296
1310
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1297
1311
|
2 /* Checkpoints */,
|
|
1298
1312
|
);
|
|
1299
1313
|
const useCheckpoint = (checkpointId, checkpointsOrCheckpointsId) =>
|
|
1300
1314
|
useListenable(
|
|
1301
|
-
|
|
1315
|
+
CHECKPOINT,
|
|
1302
1316
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1303
1317
|
3 /* CellOrValue */,
|
|
1304
1318
|
[checkpointId],
|
|
@@ -1313,7 +1327,7 @@ const useSetCheckpointCallback = (
|
|
|
1313
1327
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
1314
1328
|
checkpointsOrCheckpointsId,
|
|
1315
1329
|
);
|
|
1316
|
-
return useCallback
|
|
1330
|
+
return useCallback(
|
|
1317
1331
|
(parameter) =>
|
|
1318
1332
|
ifNotUndefined(checkpoints, (checkpoints2) => {
|
|
1319
1333
|
const label = getCheckpoint(parameter);
|
|
@@ -1337,7 +1351,7 @@ const useGoToCallback = (
|
|
|
1337
1351
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
1338
1352
|
checkpointsOrCheckpointsId,
|
|
1339
1353
|
);
|
|
1340
|
-
return useCallback
|
|
1354
|
+
return useCallback(
|
|
1341
1355
|
(parameter) =>
|
|
1342
1356
|
ifNotUndefined(checkpoints, (checkpoints2) =>
|
|
1343
1357
|
ifNotUndefined(getCheckpointId(parameter), (checkpointId) =>
|
|
@@ -1380,7 +1394,7 @@ const useCheckpointIdsListener = (
|
|
|
1380
1394
|
checkpointsOrCheckpointsId,
|
|
1381
1395
|
) =>
|
|
1382
1396
|
useListener(
|
|
1383
|
-
|
|
1397
|
+
CHECKPOINT + IDS,
|
|
1384
1398
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1385
1399
|
listener,
|
|
1386
1400
|
listenerDeps,
|
|
@@ -1392,7 +1406,7 @@ const useCheckpointListener = (
|
|
|
1392
1406
|
checkpointsOrCheckpointsId,
|
|
1393
1407
|
) =>
|
|
1394
1408
|
useListener(
|
|
1395
|
-
|
|
1409
|
+
CHECKPOINT,
|
|
1396
1410
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1397
1411
|
listener,
|
|
1398
1412
|
listenerDeps,
|
|
@@ -1407,8 +1421,8 @@ const useCreatePersister = (
|
|
|
1407
1421
|
destroy,
|
|
1408
1422
|
destroyDeps = EMPTY_ARRAY,
|
|
1409
1423
|
) => {
|
|
1410
|
-
const [, rerender] = useState
|
|
1411
|
-
const [persister, setPersister] = useState
|
|
1424
|
+
const [, rerender] = useState();
|
|
1425
|
+
const [persister, setPersister] = useState();
|
|
1412
1426
|
useEffect(
|
|
1413
1427
|
() => {
|
|
1414
1428
|
(async () => {
|
|
@@ -1463,7 +1477,7 @@ const useCreateSynchronizer = (
|
|
|
1463
1477
|
destroy,
|
|
1464
1478
|
destroyDeps = EMPTY_ARRAY,
|
|
1465
1479
|
) => {
|
|
1466
|
-
const [synchronizer, setSynchronizer] = useState
|
|
1480
|
+
const [synchronizer, setSynchronizer] = useState();
|
|
1467
1481
|
useEffect(
|
|
1468
1482
|
() => {
|
|
1469
1483
|
(async () => {
|
|
@@ -1506,30 +1520,6 @@ const useSynchronizerStatusListener = (
|
|
|
1506
1520
|
[],
|
|
1507
1521
|
);
|
|
1508
1522
|
|
|
1509
|
-
const {
|
|
1510
|
-
PureComponent,
|
|
1511
|
-
Fragment,
|
|
1512
|
-
createElement,
|
|
1513
|
-
useCallback: useCallback$1,
|
|
1514
|
-
useLayoutEffect,
|
|
1515
|
-
useRef,
|
|
1516
|
-
useState: useState$1,
|
|
1517
|
-
} = React;
|
|
1518
|
-
const getProps = (getProps2, ...ids) =>
|
|
1519
|
-
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
1520
|
-
const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
|
|
1521
|
-
relationships,
|
|
1522
|
-
relationships?.getStore(),
|
|
1523
|
-
relationships?.getLocalTableId(relationshipId),
|
|
1524
|
-
relationships?.getRemoteTableId(relationshipId),
|
|
1525
|
-
];
|
|
1526
|
-
const getIndexStoreTableId = (indexes, indexId) => [
|
|
1527
|
-
indexes,
|
|
1528
|
-
indexes?.getStore(),
|
|
1529
|
-
indexes?.getTableId(indexId),
|
|
1530
|
-
];
|
|
1531
|
-
|
|
1532
|
-
const {useCallback, useContext, useMemo, useState} = React;
|
|
1533
1523
|
const mergeParentThings = (
|
|
1534
1524
|
offset,
|
|
1535
1525
|
parentValue,
|
|
@@ -1711,56 +1701,56 @@ const Provider = ({
|
|
|
1711
1701
|
value: useMemo(
|
|
1712
1702
|
() => [
|
|
1713
1703
|
...mergeParentThings(
|
|
1714
|
-
|
|
1704
|
+
0 /* Store */,
|
|
1715
1705
|
parentValue,
|
|
1716
1706
|
store,
|
|
1717
1707
|
storesById,
|
|
1718
1708
|
extraThingsById,
|
|
1719
1709
|
),
|
|
1720
1710
|
...mergeParentThings(
|
|
1721
|
-
|
|
1711
|
+
1 /* Metrics */,
|
|
1722
1712
|
parentValue,
|
|
1723
1713
|
metrics,
|
|
1724
1714
|
metricsById,
|
|
1725
1715
|
extraThingsById,
|
|
1726
1716
|
),
|
|
1727
1717
|
...mergeParentThings(
|
|
1728
|
-
|
|
1718
|
+
2 /* Indexes */,
|
|
1729
1719
|
parentValue,
|
|
1730
1720
|
indexes,
|
|
1731
1721
|
indexesById,
|
|
1732
1722
|
extraThingsById,
|
|
1733
1723
|
),
|
|
1734
1724
|
...mergeParentThings(
|
|
1735
|
-
|
|
1725
|
+
3 /* Relationships */,
|
|
1736
1726
|
parentValue,
|
|
1737
1727
|
relationships,
|
|
1738
1728
|
relationshipsById,
|
|
1739
1729
|
extraThingsById,
|
|
1740
1730
|
),
|
|
1741
1731
|
...mergeParentThings(
|
|
1742
|
-
|
|
1732
|
+
4 /* Queries */,
|
|
1743
1733
|
parentValue,
|
|
1744
1734
|
queries,
|
|
1745
1735
|
queriesById,
|
|
1746
1736
|
extraThingsById,
|
|
1747
1737
|
),
|
|
1748
1738
|
...mergeParentThings(
|
|
1749
|
-
|
|
1739
|
+
5 /* Checkpoints */,
|
|
1750
1740
|
parentValue,
|
|
1751
1741
|
checkpoints,
|
|
1752
1742
|
checkpointsById,
|
|
1753
1743
|
extraThingsById,
|
|
1754
1744
|
),
|
|
1755
1745
|
...mergeParentThings(
|
|
1756
|
-
|
|
1746
|
+
6 /* Persister */,
|
|
1757
1747
|
parentValue,
|
|
1758
1748
|
persister,
|
|
1759
1749
|
persistersById,
|
|
1760
1750
|
extraThingsById,
|
|
1761
1751
|
),
|
|
1762
1752
|
...mergeParentThings(
|
|
1763
|
-
|
|
1753
|
+
7 /* Synchronizer */,
|
|
1764
1754
|
parentValue,
|
|
1765
1755
|
synchronizer,
|
|
1766
1756
|
synchronizersById,
|
|
@@ -12,6 +12,8 @@ const CELL = 'Cell';
|
|
|
12
12
|
const VALUE = 'Value';
|
|
13
13
|
const CURRENT_TARGET = 'currentTarget';
|
|
14
14
|
const _VALUE = 'value';
|
|
15
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
16
|
+
str.split(separator, limit);
|
|
15
17
|
|
|
16
18
|
const math = Math;
|
|
17
19
|
const mathMin = math.min;
|
|
@@ -34,11 +36,16 @@ const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
|
34
36
|
const {
|
|
35
37
|
PureComponent,
|
|
36
38
|
Fragment,
|
|
39
|
+
createContext,
|
|
37
40
|
createElement,
|
|
38
|
-
useCallback
|
|
41
|
+
useCallback,
|
|
42
|
+
useContext,
|
|
43
|
+
useEffect,
|
|
39
44
|
useLayoutEffect,
|
|
45
|
+
useMemo,
|
|
40
46
|
useRef,
|
|
41
|
-
useState
|
|
47
|
+
useState,
|
|
48
|
+
useSyncExternalStore,
|
|
42
49
|
} = React;
|
|
43
50
|
const getProps = (getProps2, ...ids) =>
|
|
44
51
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -64,7 +71,6 @@ const objToArray = (obj, cb) =>
|
|
|
64
71
|
const objMap = (obj, cb) =>
|
|
65
72
|
objNew(objToArray(obj, (value, id) => [id, cb(value, id)]));
|
|
66
73
|
|
|
67
|
-
const {useCallback, useMemo, useState} = React;
|
|
68
74
|
const DOT = '.';
|
|
69
75
|
const EDITABLE = 'editable';
|
|
70
76
|
const LEFT_ARROW = '\u2190';
|
|
@@ -284,7 +290,7 @@ const RelationshipInHtmlRow = ({
|
|
|
284
290
|
idColumn === false
|
|
285
291
|
? null
|
|
286
292
|
: /* @__PURE__ */ createElement(
|
|
287
|
-
|
|
293
|
+
Fragment,
|
|
288
294
|
null,
|
|
289
295
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
290
296
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -292,7 +298,7 @@ const RelationshipInHtmlRow = ({
|
|
|
292
298
|
objToArray(
|
|
293
299
|
cells,
|
|
294
300
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
295
|
-
const [tableId, cellId] = compoundCellId
|
|
301
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
296
302
|
const rowId =
|
|
297
303
|
tableId === localTableId
|
|
298
304
|
? localRowId
|
|
@@ -590,7 +596,7 @@ const RelationshipInHtmlTable = ({
|
|
|
590
596
|
idColumn === false
|
|
591
597
|
? null
|
|
592
598
|
: /* @__PURE__ */ createElement(
|
|
593
|
-
|
|
599
|
+
Fragment,
|
|
594
600
|
null,
|
|
595
601
|
/* @__PURE__ */ createElement(
|
|
596
602
|
'th',
|
|
@@ -734,11 +740,11 @@ const SortedTablePaginator = ({
|
|
|
734
740
|
offset + limit < total,
|
|
735
741
|
);
|
|
736
742
|
return /* @__PURE__ */ createElement(
|
|
737
|
-
|
|
743
|
+
Fragment,
|
|
738
744
|
null,
|
|
739
745
|
total > limit &&
|
|
740
746
|
/* @__PURE__ */ createElement(
|
|
741
|
-
|
|
747
|
+
Fragment,
|
|
742
748
|
null,
|
|
743
749
|
/* @__PURE__ */ createElement(
|
|
744
750
|
'button',
|
|
@@ -12,6 +12,8 @@ const CELL = 'Cell';
|
|
|
12
12
|
const VALUE = 'Value';
|
|
13
13
|
const CURRENT_TARGET = 'currentTarget';
|
|
14
14
|
const _VALUE = 'value';
|
|
15
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
16
|
+
str.split(separator, limit);
|
|
15
17
|
|
|
16
18
|
const math = Math;
|
|
17
19
|
const mathMin = math.min;
|
|
@@ -34,11 +36,16 @@ const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
|
34
36
|
const {
|
|
35
37
|
PureComponent,
|
|
36
38
|
Fragment,
|
|
39
|
+
createContext,
|
|
37
40
|
createElement,
|
|
38
|
-
useCallback
|
|
41
|
+
useCallback,
|
|
42
|
+
useContext,
|
|
43
|
+
useEffect,
|
|
39
44
|
useLayoutEffect,
|
|
45
|
+
useMemo,
|
|
40
46
|
useRef,
|
|
41
|
-
useState
|
|
47
|
+
useState,
|
|
48
|
+
useSyncExternalStore,
|
|
42
49
|
} = React;
|
|
43
50
|
const getProps = (getProps2, ...ids) =>
|
|
44
51
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -64,7 +71,6 @@ const objToArray = (obj, cb) =>
|
|
|
64
71
|
const objMap = (obj, cb) =>
|
|
65
72
|
objNew(objToArray(obj, (value, id) => [id, cb(value, id)]));
|
|
66
73
|
|
|
67
|
-
const {useCallback, useMemo, useState} = React;
|
|
68
74
|
const DOT = '.';
|
|
69
75
|
const EDITABLE = 'editable';
|
|
70
76
|
const LEFT_ARROW = '\u2190';
|
|
@@ -284,7 +290,7 @@ const RelationshipInHtmlRow = ({
|
|
|
284
290
|
idColumn === false
|
|
285
291
|
? null
|
|
286
292
|
: /* @__PURE__ */ createElement(
|
|
287
|
-
|
|
293
|
+
Fragment,
|
|
288
294
|
null,
|
|
289
295
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
290
296
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -292,7 +298,7 @@ const RelationshipInHtmlRow = ({
|
|
|
292
298
|
objToArray(
|
|
293
299
|
cells,
|
|
294
300
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
295
|
-
const [tableId, cellId] = compoundCellId
|
|
301
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
296
302
|
const rowId =
|
|
297
303
|
tableId === localTableId
|
|
298
304
|
? localRowId
|
|
@@ -590,7 +596,7 @@ const RelationshipInHtmlTable = ({
|
|
|
590
596
|
idColumn === false
|
|
591
597
|
? null
|
|
592
598
|
: /* @__PURE__ */ createElement(
|
|
593
|
-
|
|
599
|
+
Fragment,
|
|
594
600
|
null,
|
|
595
601
|
/* @__PURE__ */ createElement(
|
|
596
602
|
'th',
|
|
@@ -734,11 +740,11 @@ const SortedTablePaginator = ({
|
|
|
734
740
|
offset + limit < total,
|
|
735
741
|
);
|
|
736
742
|
return /* @__PURE__ */ createElement(
|
|
737
|
-
|
|
743
|
+
Fragment,
|
|
738
744
|
null,
|
|
739
745
|
total > limit &&
|
|
740
746
|
/* @__PURE__ */ createElement(
|
|
741
|
-
|
|
747
|
+
Fragment,
|
|
742
748
|
null,
|
|
743
749
|
/* @__PURE__ */ createElement(
|
|
744
750
|
'button',
|