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
|
@@ -8,7 +8,9 @@ const FUNCTION = getTypeOf(getTypeOf);
|
|
|
8
8
|
const LISTENER = 'Listener';
|
|
9
9
|
const RESULT = 'Result';
|
|
10
10
|
const GET = 'get';
|
|
11
|
+
const SET = 'set';
|
|
11
12
|
const ADD = 'add';
|
|
13
|
+
const DEL = 'del';
|
|
12
14
|
const HAS = 'Has';
|
|
13
15
|
const _HAS = 'has';
|
|
14
16
|
const IDS = 'Ids';
|
|
@@ -24,7 +26,19 @@ const CELL_IDS = CELL + IDS;
|
|
|
24
26
|
const VALUE = 'Value';
|
|
25
27
|
const VALUES = VALUE + 's';
|
|
26
28
|
const VALUE_IDS = VALUE + IDS;
|
|
29
|
+
const TRANSACTION = 'Transaction';
|
|
30
|
+
const PARTIAL = 'Partial';
|
|
31
|
+
const FINISH = 'Finish';
|
|
27
32
|
const STATUS = 'Status';
|
|
33
|
+
const METRIC = 'Metric';
|
|
34
|
+
const INDEX = 'Index';
|
|
35
|
+
const SLICE = 'Slice';
|
|
36
|
+
const RELATIONSHIP = 'Relationship';
|
|
37
|
+
const REMOTE_ROW_ID = 'Remote' + ROW + 'Id';
|
|
38
|
+
const LOCAL = 'Local';
|
|
39
|
+
const LINKED = 'Linked';
|
|
40
|
+
const QUERY = 'Query';
|
|
41
|
+
const CHECKPOINT = 'Checkpoint';
|
|
28
42
|
|
|
29
43
|
const GLOBAL = globalThis;
|
|
30
44
|
const isUndefined = (thing) => thing == void 0;
|
|
@@ -47,6 +61,34 @@ const arrayIsEmpty = (array) => size(array) == 0;
|
|
|
47
61
|
const arrayFilter = (array, cb) => array.filter(cb);
|
|
48
62
|
const arrayWith = (array, index, value) => array.with(index, value);
|
|
49
63
|
|
|
64
|
+
const {
|
|
65
|
+
PureComponent,
|
|
66
|
+
Fragment,
|
|
67
|
+
createContext,
|
|
68
|
+
createElement,
|
|
69
|
+
useCallback,
|
|
70
|
+
useContext,
|
|
71
|
+
useEffect,
|
|
72
|
+
useLayoutEffect,
|
|
73
|
+
useMemo,
|
|
74
|
+
useRef,
|
|
75
|
+
useState,
|
|
76
|
+
useSyncExternalStore,
|
|
77
|
+
} = React;
|
|
78
|
+
const getProps = (getProps2, ...ids) =>
|
|
79
|
+
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
80
|
+
const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
|
|
81
|
+
relationships,
|
|
82
|
+
relationships?.getStore(),
|
|
83
|
+
relationships?.getLocalTableId(relationshipId),
|
|
84
|
+
relationships?.getRemoteTableId(relationshipId),
|
|
85
|
+
];
|
|
86
|
+
const getIndexStoreTableId = (indexes, indexId) => [
|
|
87
|
+
indexes,
|
|
88
|
+
indexes?.getStore(),
|
|
89
|
+
indexes?.getTableId(indexId),
|
|
90
|
+
];
|
|
91
|
+
|
|
50
92
|
const object = Object;
|
|
51
93
|
const getPrototypeOf = (obj) => object.getPrototypeOf(obj);
|
|
52
94
|
const objEntries = object.entries;
|
|
@@ -89,21 +131,9 @@ const objEnsure = (obj, id, getDefaultValue) => {
|
|
|
89
131
|
return obj[id];
|
|
90
132
|
};
|
|
91
133
|
|
|
92
|
-
const {createContext, useContext: useContext$1, useEffect: useEffect$1} = React;
|
|
93
|
-
var Offsets = /* @__PURE__ */ ((Offsets2) => {
|
|
94
|
-
Offsets2[(Offsets2['Store'] = 0)] = 'Store';
|
|
95
|
-
Offsets2[(Offsets2['Metrics'] = 1)] = 'Metrics';
|
|
96
|
-
Offsets2[(Offsets2['Indexes'] = 2)] = 'Indexes';
|
|
97
|
-
Offsets2[(Offsets2['Relationships'] = 3)] = 'Relationships';
|
|
98
|
-
Offsets2[(Offsets2['Queries'] = 4)] = 'Queries';
|
|
99
|
-
Offsets2[(Offsets2['Checkpoints'] = 5)] = 'Checkpoints';
|
|
100
|
-
Offsets2[(Offsets2['Persister'] = 6)] = 'Persister';
|
|
101
|
-
Offsets2[(Offsets2['Synchronizer'] = 7)] = 'Synchronizer';
|
|
102
|
-
return Offsets2;
|
|
103
|
-
})(Offsets || {});
|
|
104
134
|
const Context = objEnsure(GLOBAL, TINYBASE + '_uirc', () => createContext([]));
|
|
105
135
|
const useThing = (id, offset) => {
|
|
106
|
-
const contextValue = useContext
|
|
136
|
+
const contextValue = useContext(Context);
|
|
107
137
|
return isUndefined(id)
|
|
108
138
|
? contextValue[offset * 2]
|
|
109
139
|
: isString(id)
|
|
@@ -117,14 +147,14 @@ const useThingOrThingById = (thingOrThingId, offset) => {
|
|
|
117
147
|
: thingOrThingId;
|
|
118
148
|
};
|
|
119
149
|
const useProvideThing = (thingId, thing, offset) => {
|
|
120
|
-
const {16: addExtraThingById, 17: delExtraThingById} = useContext
|
|
121
|
-
useEffect
|
|
150
|
+
const {16: addExtraThingById, 17: delExtraThingById} = useContext(Context);
|
|
151
|
+
useEffect(() => {
|
|
122
152
|
addExtraThingById?.(offset, thingId, thing);
|
|
123
153
|
return () => delExtraThingById?.(offset, thingId);
|
|
124
154
|
}, [addExtraThingById, thingId, thing, offset, delExtraThingById]);
|
|
125
155
|
};
|
|
126
156
|
const useThingIds = (offset) =>
|
|
127
|
-
objIds(useContext
|
|
157
|
+
objIds(useContext(Context)[offset * 2 + 1] ?? {});
|
|
128
158
|
const useStoreIds = () => useThingIds(0 /* Store */);
|
|
129
159
|
const useStore = (id) => useThing(id, 0 /* Store */);
|
|
130
160
|
const useStoreOrStoreById = (storeOrStoreId) =>
|
|
@@ -174,20 +204,6 @@ const useSynchronizerOrSynchronizerById = (synchronizerOrSynchronizerId) =>
|
|
|
174
204
|
const useProvideSynchronizer = (persisterId, persister) =>
|
|
175
205
|
useProvideThing(persisterId, persister, 7 /* Synchronizer */);
|
|
176
206
|
|
|
177
|
-
const lower = (str) => str.toLowerCase();
|
|
178
|
-
lower(LISTENER);
|
|
179
|
-
const TRANSACTION = 'Transaction';
|
|
180
|
-
lower(TRANSACTION);
|
|
181
|
-
|
|
182
|
-
const {
|
|
183
|
-
useCallback: useCallback$2,
|
|
184
|
-
useEffect,
|
|
185
|
-
useMemo: useMemo$1,
|
|
186
|
-
useLayoutEffect: useLayoutEffect$1,
|
|
187
|
-
useRef: useRef$1,
|
|
188
|
-
useState: useState$2,
|
|
189
|
-
useSyncExternalStore,
|
|
190
|
-
} = React;
|
|
191
207
|
const EMPTY_ARRAY = [];
|
|
192
208
|
const DEFAULTS = [{}, [], [EMPTY_ARRAY, void 0, EMPTY_ARRAY], void 0, false, 0];
|
|
193
209
|
const IS_EQUALS = [
|
|
@@ -203,8 +219,8 @@ const IS_EQUALS = [
|
|
|
203
219
|
];
|
|
204
220
|
const isEqual = (thing1, thing2) => thing1 === thing2;
|
|
205
221
|
const useCreate = (store, create, createDeps = EMPTY_ARRAY) => {
|
|
206
|
-
const [, rerender] = useState
|
|
207
|
-
const [thing, setThing] = useState
|
|
222
|
+
const [, rerender] = useState();
|
|
223
|
+
const [thing, setThing] = useState();
|
|
208
224
|
useEffect(
|
|
209
225
|
() => {
|
|
210
226
|
const newThing = store ? create(store) : void 0;
|
|
@@ -222,8 +238,8 @@ const addAndDelListener = (thing, listenable, ...args) => {
|
|
|
222
238
|
return () => thing?.delListener(listenerId);
|
|
223
239
|
};
|
|
224
240
|
const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
|
|
225
|
-
const lastResult = useRef
|
|
226
|
-
const getResult = useCallback
|
|
241
|
+
const lastResult = useRef(DEFAULTS[returnType]);
|
|
242
|
+
const getResult = useCallback(
|
|
227
243
|
() => {
|
|
228
244
|
const nextResult =
|
|
229
245
|
thing?.[(returnType == 4 /* Boolean */ ? _HAS : GET) + listenable]?.(
|
|
@@ -236,7 +252,7 @@ const useListenable = (listenable, thing, returnType, args = EMPTY_ARRAY) => {
|
|
|
236
252
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
237
253
|
[thing, returnType, listenable, ...args],
|
|
238
254
|
);
|
|
239
|
-
const subscribe = useCallback
|
|
255
|
+
const subscribe = useCallback(
|
|
240
256
|
(listener) =>
|
|
241
257
|
addAndDelListener(
|
|
242
258
|
thing,
|
|
@@ -257,7 +273,7 @@ const useListener = (
|
|
|
257
273
|
preArgs = EMPTY_ARRAY,
|
|
258
274
|
...postArgs
|
|
259
275
|
) =>
|
|
260
|
-
useLayoutEffect
|
|
276
|
+
useLayoutEffect(
|
|
261
277
|
() =>
|
|
262
278
|
addAndDelListener(thing, listenable, ...preArgs, listener, ...postArgs),
|
|
263
279
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -273,12 +289,12 @@ const useSetCallback = (
|
|
|
273
289
|
...args
|
|
274
290
|
) => {
|
|
275
291
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
276
|
-
return useCallback
|
|
292
|
+
return useCallback(
|
|
277
293
|
(parameter) =>
|
|
278
294
|
ifNotUndefined(store, (store2) =>
|
|
279
295
|
ifNotUndefined(get(parameter, store2), (thing) =>
|
|
280
296
|
then(
|
|
281
|
-
store2[
|
|
297
|
+
store2[SET + settable](
|
|
282
298
|
...argsOrGetArgs(args, store2, parameter),
|
|
283
299
|
thing,
|
|
284
300
|
),
|
|
@@ -301,11 +317,9 @@ const useDel = (
|
|
|
301
317
|
...args
|
|
302
318
|
) => {
|
|
303
319
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
304
|
-
return useCallback
|
|
320
|
+
return useCallback(
|
|
305
321
|
(parameter) =>
|
|
306
|
-
then(
|
|
307
|
-
store?.['del' + deletable](...argsOrGetArgs(args, store, parameter)),
|
|
308
|
-
),
|
|
322
|
+
then(store?.[DEL + deletable](...argsOrGetArgs(args, store, parameter))),
|
|
309
323
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
310
324
|
[store, deletable, ...thenDeps, ...nonFunctionDeps(args)],
|
|
311
325
|
);
|
|
@@ -314,16 +328,16 @@ const useCheckpointAction = (checkpointsOrCheckpointsId, action, arg) => {
|
|
|
314
328
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
315
329
|
checkpointsOrCheckpointsId,
|
|
316
330
|
);
|
|
317
|
-
return useCallback
|
|
331
|
+
return useCallback(
|
|
318
332
|
() => checkpoints?.[action](arg),
|
|
319
333
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
320
334
|
[checkpoints, action, arg],
|
|
321
335
|
);
|
|
322
336
|
};
|
|
323
337
|
const useCreateStore = (create, createDeps = EMPTY_ARRAY) =>
|
|
324
|
-
useMemo
|
|
338
|
+
useMemo(create, createDeps);
|
|
325
339
|
const useCreateMergeableStore = (create, createDeps = EMPTY_ARRAY) =>
|
|
326
|
-
useMemo
|
|
340
|
+
useMemo(create, createDeps);
|
|
327
341
|
const useHasTables = (storeOrStoreId) =>
|
|
328
342
|
useListenable(
|
|
329
343
|
TABLES,
|
|
@@ -493,7 +507,7 @@ const useAddRowCallback = (
|
|
|
493
507
|
reuseRowIds = true,
|
|
494
508
|
) => {
|
|
495
509
|
const store = useStoreOrStoreById(storeOrStoreId);
|
|
496
|
-
return useCallback
|
|
510
|
+
return useCallback(
|
|
497
511
|
(parameter) =>
|
|
498
512
|
ifNotUndefined(store, (store2) =>
|
|
499
513
|
ifNotUndefined(getRow(parameter, store2), (row) =>
|
|
@@ -523,7 +537,7 @@ const useSetPartialRowCallback = (
|
|
|
523
537
|
) =>
|
|
524
538
|
useSetCallback(
|
|
525
539
|
storeOrStoreId,
|
|
526
|
-
|
|
540
|
+
PARTIAL + ROW,
|
|
527
541
|
getPartialRow,
|
|
528
542
|
getPartialRowDeps,
|
|
529
543
|
then,
|
|
@@ -576,7 +590,7 @@ const useSetPartialValuesCallback = (
|
|
|
576
590
|
) =>
|
|
577
591
|
useSetCallback(
|
|
578
592
|
storeOrStoreId,
|
|
579
|
-
|
|
593
|
+
PARTIAL + VALUES,
|
|
580
594
|
getPartialValues,
|
|
581
595
|
getPartialValuesDeps,
|
|
582
596
|
then,
|
|
@@ -927,7 +941,7 @@ const useWillFinishTransactionListener = (
|
|
|
927
941
|
storeOrStoreId,
|
|
928
942
|
) =>
|
|
929
943
|
useListener(
|
|
930
|
-
'
|
|
944
|
+
'Will' + FINISH + TRANSACTION,
|
|
931
945
|
useStoreOrStoreById(storeOrStoreId),
|
|
932
946
|
listener,
|
|
933
947
|
listenerDeps,
|
|
@@ -938,7 +952,7 @@ const useDidFinishTransactionListener = (
|
|
|
938
952
|
storeOrStoreId,
|
|
939
953
|
) =>
|
|
940
954
|
useListener(
|
|
941
|
-
'
|
|
955
|
+
'Did' + FINISH + TRANSACTION,
|
|
942
956
|
useStoreOrStoreById(storeOrStoreId),
|
|
943
957
|
listener,
|
|
944
958
|
listenerDeps,
|
|
@@ -947,13 +961,13 @@ const useCreateMetrics = (store, create, createDeps) =>
|
|
|
947
961
|
useCreate(store, create, createDeps);
|
|
948
962
|
const useMetricIds = (metricsOrMetricsId) =>
|
|
949
963
|
useListenable(
|
|
950
|
-
|
|
964
|
+
METRIC + IDS,
|
|
951
965
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
952
966
|
1 /* Array */,
|
|
953
967
|
);
|
|
954
968
|
const useMetric = (metricId, metricsOrMetricsId) =>
|
|
955
969
|
useListenable(
|
|
956
|
-
|
|
970
|
+
METRIC,
|
|
957
971
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
958
972
|
3 /* CellOrValue */,
|
|
959
973
|
[metricId],
|
|
@@ -965,7 +979,7 @@ const useMetricListener = (
|
|
|
965
979
|
metricsOrMetricsId,
|
|
966
980
|
) =>
|
|
967
981
|
useListener(
|
|
968
|
-
|
|
982
|
+
METRIC,
|
|
969
983
|
useMetricsOrMetricsById(metricsOrMetricsId),
|
|
970
984
|
listener,
|
|
971
985
|
listenerDeps,
|
|
@@ -975,20 +989,20 @@ const useCreateIndexes = (store, create, createDeps) =>
|
|
|
975
989
|
useCreate(store, create, createDeps);
|
|
976
990
|
const useSliceIds = (indexId, indexesOrIndexesId) =>
|
|
977
991
|
useListenable(
|
|
978
|
-
|
|
992
|
+
SLICE + IDS,
|
|
979
993
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
980
994
|
1 /* Array */,
|
|
981
995
|
[indexId],
|
|
982
996
|
);
|
|
983
997
|
const useIndexIds = (indexesOrIndexesId) =>
|
|
984
998
|
useListenable(
|
|
985
|
-
|
|
999
|
+
INDEX + IDS,
|
|
986
1000
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
987
1001
|
1 /* Array */,
|
|
988
1002
|
);
|
|
989
1003
|
const useSliceRowIds = (indexId, sliceId, indexesOrIndexesId) =>
|
|
990
1004
|
useListenable(
|
|
991
|
-
|
|
1005
|
+
SLICE + ROW_IDS,
|
|
992
1006
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
993
1007
|
1 /* Array */,
|
|
994
1008
|
[indexId, sliceId],
|
|
@@ -1000,7 +1014,7 @@ const useSliceIdsListener = (
|
|
|
1000
1014
|
indexesOrIndexesId,
|
|
1001
1015
|
) =>
|
|
1002
1016
|
useListener(
|
|
1003
|
-
|
|
1017
|
+
SLICE + IDS,
|
|
1004
1018
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1005
1019
|
listener,
|
|
1006
1020
|
listenerDeps,
|
|
@@ -1014,7 +1028,7 @@ const useSliceRowIdsListener = (
|
|
|
1014
1028
|
indexesOrIndexesId,
|
|
1015
1029
|
) =>
|
|
1016
1030
|
useListener(
|
|
1017
|
-
|
|
1031
|
+
SLICE + ROW_IDS,
|
|
1018
1032
|
useIndexesOrIndexesById(indexesOrIndexesId),
|
|
1019
1033
|
listener,
|
|
1020
1034
|
listenerDeps,
|
|
@@ -1024,7 +1038,7 @@ const useCreateRelationships = (store, create, createDeps) =>
|
|
|
1024
1038
|
useCreate(store, create, createDeps);
|
|
1025
1039
|
const useRelationshipIds = (relationshipsOrRelationshipsId) =>
|
|
1026
1040
|
useListenable(
|
|
1027
|
-
|
|
1041
|
+
RELATIONSHIP + IDS,
|
|
1028
1042
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1029
1043
|
1 /* Array */,
|
|
1030
1044
|
);
|
|
@@ -1034,7 +1048,7 @@ const useRemoteRowId = (
|
|
|
1034
1048
|
relationshipsOrRelationshipsId,
|
|
1035
1049
|
) =>
|
|
1036
1050
|
useListenable(
|
|
1037
|
-
|
|
1051
|
+
REMOTE_ROW_ID,
|
|
1038
1052
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1039
1053
|
3 /* CellOrValue */,
|
|
1040
1054
|
[relationshipId, localRowId],
|
|
@@ -1045,7 +1059,7 @@ const useLocalRowIds = (
|
|
|
1045
1059
|
relationshipsOrRelationshipsId,
|
|
1046
1060
|
) =>
|
|
1047
1061
|
useListenable(
|
|
1048
|
-
|
|
1062
|
+
LOCAL + ROW_IDS,
|
|
1049
1063
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1050
1064
|
1 /* Array */,
|
|
1051
1065
|
[relationshipId, remoteRowId],
|
|
@@ -1056,7 +1070,7 @@ const useLinkedRowIds = (
|
|
|
1056
1070
|
relationshipsOrRelationshipsId,
|
|
1057
1071
|
) =>
|
|
1058
1072
|
useListenable(
|
|
1059
|
-
|
|
1073
|
+
LINKED + ROW_IDS,
|
|
1060
1074
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1061
1075
|
1 /* Array */,
|
|
1062
1076
|
[relationshipId, firstRowId],
|
|
@@ -1069,7 +1083,7 @@ const useRemoteRowIdListener = (
|
|
|
1069
1083
|
relationshipsOrRelationshipsId,
|
|
1070
1084
|
) =>
|
|
1071
1085
|
useListener(
|
|
1072
|
-
|
|
1086
|
+
REMOTE_ROW_ID,
|
|
1073
1087
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1074
1088
|
listener,
|
|
1075
1089
|
listenerDeps,
|
|
@@ -1083,7 +1097,7 @@ const useLocalRowIdsListener = (
|
|
|
1083
1097
|
relationshipsOrRelationshipsId,
|
|
1084
1098
|
) =>
|
|
1085
1099
|
useListener(
|
|
1086
|
-
|
|
1100
|
+
LOCAL + ROW_IDS,
|
|
1087
1101
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1088
1102
|
listener,
|
|
1089
1103
|
listenerDeps,
|
|
@@ -1097,7 +1111,7 @@ const useLinkedRowIdsListener = (
|
|
|
1097
1111
|
relationshipsOrRelationshipsId,
|
|
1098
1112
|
) =>
|
|
1099
1113
|
useListener(
|
|
1100
|
-
|
|
1114
|
+
LINKED + ROW_IDS,
|
|
1101
1115
|
useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
|
|
1102
1116
|
listener,
|
|
1103
1117
|
listenerDeps,
|
|
@@ -1107,7 +1121,7 @@ const useCreateQueries = (store, create, createDeps) =>
|
|
|
1107
1121
|
useCreate(store, create, createDeps);
|
|
1108
1122
|
const useQueryIds = (queriesOrQueriesId) =>
|
|
1109
1123
|
useListenable(
|
|
1110
|
-
|
|
1124
|
+
QUERY + IDS,
|
|
1111
1125
|
useQueriesOrQueriesById(queriesOrQueriesId),
|
|
1112
1126
|
1 /* Array */,
|
|
1113
1127
|
);
|
|
@@ -1290,13 +1304,13 @@ const useCreateCheckpoints = (store, create, createDeps) =>
|
|
|
1290
1304
|
useCreate(store, create, createDeps);
|
|
1291
1305
|
const useCheckpointIds = (checkpointsOrCheckpointsId) =>
|
|
1292
1306
|
useListenable(
|
|
1293
|
-
|
|
1307
|
+
CHECKPOINT + IDS,
|
|
1294
1308
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1295
1309
|
2 /* Checkpoints */,
|
|
1296
1310
|
);
|
|
1297
1311
|
const useCheckpoint = (checkpointId, checkpointsOrCheckpointsId) =>
|
|
1298
1312
|
useListenable(
|
|
1299
|
-
|
|
1313
|
+
CHECKPOINT,
|
|
1300
1314
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1301
1315
|
3 /* CellOrValue */,
|
|
1302
1316
|
[checkpointId],
|
|
@@ -1311,7 +1325,7 @@ const useSetCheckpointCallback = (
|
|
|
1311
1325
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
1312
1326
|
checkpointsOrCheckpointsId,
|
|
1313
1327
|
);
|
|
1314
|
-
return useCallback
|
|
1328
|
+
return useCallback(
|
|
1315
1329
|
(parameter) =>
|
|
1316
1330
|
ifNotUndefined(checkpoints, (checkpoints2) => {
|
|
1317
1331
|
const label = getCheckpoint(parameter);
|
|
@@ -1335,7 +1349,7 @@ const useGoToCallback = (
|
|
|
1335
1349
|
const checkpoints = useCheckpointsOrCheckpointsById(
|
|
1336
1350
|
checkpointsOrCheckpointsId,
|
|
1337
1351
|
);
|
|
1338
|
-
return useCallback
|
|
1352
|
+
return useCallback(
|
|
1339
1353
|
(parameter) =>
|
|
1340
1354
|
ifNotUndefined(checkpoints, (checkpoints2) =>
|
|
1341
1355
|
ifNotUndefined(getCheckpointId(parameter), (checkpointId) =>
|
|
@@ -1378,7 +1392,7 @@ const useCheckpointIdsListener = (
|
|
|
1378
1392
|
checkpointsOrCheckpointsId,
|
|
1379
1393
|
) =>
|
|
1380
1394
|
useListener(
|
|
1381
|
-
|
|
1395
|
+
CHECKPOINT + IDS,
|
|
1382
1396
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1383
1397
|
listener,
|
|
1384
1398
|
listenerDeps,
|
|
@@ -1390,7 +1404,7 @@ const useCheckpointListener = (
|
|
|
1390
1404
|
checkpointsOrCheckpointsId,
|
|
1391
1405
|
) =>
|
|
1392
1406
|
useListener(
|
|
1393
|
-
|
|
1407
|
+
CHECKPOINT,
|
|
1394
1408
|
useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
|
|
1395
1409
|
listener,
|
|
1396
1410
|
listenerDeps,
|
|
@@ -1405,8 +1419,8 @@ const useCreatePersister = (
|
|
|
1405
1419
|
destroy,
|
|
1406
1420
|
destroyDeps = EMPTY_ARRAY,
|
|
1407
1421
|
) => {
|
|
1408
|
-
const [, rerender] = useState
|
|
1409
|
-
const [persister, setPersister] = useState
|
|
1422
|
+
const [, rerender] = useState();
|
|
1423
|
+
const [persister, setPersister] = useState();
|
|
1410
1424
|
useEffect(
|
|
1411
1425
|
() => {
|
|
1412
1426
|
(async () => {
|
|
@@ -1461,7 +1475,7 @@ const useCreateSynchronizer = (
|
|
|
1461
1475
|
destroy,
|
|
1462
1476
|
destroyDeps = EMPTY_ARRAY,
|
|
1463
1477
|
) => {
|
|
1464
|
-
const [synchronizer, setSynchronizer] = useState
|
|
1478
|
+
const [synchronizer, setSynchronizer] = useState();
|
|
1465
1479
|
useEffect(
|
|
1466
1480
|
() => {
|
|
1467
1481
|
(async () => {
|
|
@@ -1504,30 +1518,6 @@ const useSynchronizerStatusListener = (
|
|
|
1504
1518
|
[],
|
|
1505
1519
|
);
|
|
1506
1520
|
|
|
1507
|
-
const {
|
|
1508
|
-
PureComponent,
|
|
1509
|
-
Fragment,
|
|
1510
|
-
createElement,
|
|
1511
|
-
useCallback: useCallback$1,
|
|
1512
|
-
useLayoutEffect,
|
|
1513
|
-
useRef,
|
|
1514
|
-
useState: useState$1,
|
|
1515
|
-
} = React;
|
|
1516
|
-
const getProps = (getProps2, ...ids) =>
|
|
1517
|
-
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
1518
|
-
const getRelationshipsStoreTableIds = (relationships, relationshipId) => [
|
|
1519
|
-
relationships,
|
|
1520
|
-
relationships?.getStore(),
|
|
1521
|
-
relationships?.getLocalTableId(relationshipId),
|
|
1522
|
-
relationships?.getRemoteTableId(relationshipId),
|
|
1523
|
-
];
|
|
1524
|
-
const getIndexStoreTableId = (indexes, indexId) => [
|
|
1525
|
-
indexes,
|
|
1526
|
-
indexes?.getStore(),
|
|
1527
|
-
indexes?.getTableId(indexId),
|
|
1528
|
-
];
|
|
1529
|
-
|
|
1530
|
-
const {useCallback, useContext, useMemo, useState} = React;
|
|
1531
1521
|
const mergeParentThings = (
|
|
1532
1522
|
offset,
|
|
1533
1523
|
parentValue,
|
|
@@ -1709,56 +1699,56 @@ const Provider = ({
|
|
|
1709
1699
|
value: useMemo(
|
|
1710
1700
|
() => [
|
|
1711
1701
|
...mergeParentThings(
|
|
1712
|
-
|
|
1702
|
+
0 /* Store */,
|
|
1713
1703
|
parentValue,
|
|
1714
1704
|
store,
|
|
1715
1705
|
storesById,
|
|
1716
1706
|
extraThingsById,
|
|
1717
1707
|
),
|
|
1718
1708
|
...mergeParentThings(
|
|
1719
|
-
|
|
1709
|
+
1 /* Metrics */,
|
|
1720
1710
|
parentValue,
|
|
1721
1711
|
metrics,
|
|
1722
1712
|
metricsById,
|
|
1723
1713
|
extraThingsById,
|
|
1724
1714
|
),
|
|
1725
1715
|
...mergeParentThings(
|
|
1726
|
-
|
|
1716
|
+
2 /* Indexes */,
|
|
1727
1717
|
parentValue,
|
|
1728
1718
|
indexes,
|
|
1729
1719
|
indexesById,
|
|
1730
1720
|
extraThingsById,
|
|
1731
1721
|
),
|
|
1732
1722
|
...mergeParentThings(
|
|
1733
|
-
|
|
1723
|
+
3 /* Relationships */,
|
|
1734
1724
|
parentValue,
|
|
1735
1725
|
relationships,
|
|
1736
1726
|
relationshipsById,
|
|
1737
1727
|
extraThingsById,
|
|
1738
1728
|
),
|
|
1739
1729
|
...mergeParentThings(
|
|
1740
|
-
|
|
1730
|
+
4 /* Queries */,
|
|
1741
1731
|
parentValue,
|
|
1742
1732
|
queries,
|
|
1743
1733
|
queriesById,
|
|
1744
1734
|
extraThingsById,
|
|
1745
1735
|
),
|
|
1746
1736
|
...mergeParentThings(
|
|
1747
|
-
|
|
1737
|
+
5 /* Checkpoints */,
|
|
1748
1738
|
parentValue,
|
|
1749
1739
|
checkpoints,
|
|
1750
1740
|
checkpointsById,
|
|
1751
1741
|
extraThingsById,
|
|
1752
1742
|
),
|
|
1753
1743
|
...mergeParentThings(
|
|
1754
|
-
|
|
1744
|
+
6 /* Persister */,
|
|
1755
1745
|
parentValue,
|
|
1756
1746
|
persister,
|
|
1757
1747
|
persistersById,
|
|
1758
1748
|
extraThingsById,
|
|
1759
1749
|
),
|
|
1760
1750
|
...mergeParentThings(
|
|
1761
|
-
|
|
1751
|
+
7 /* Synchronizer */,
|
|
1762
1752
|
parentValue,
|
|
1763
1753
|
synchronizer,
|
|
1764
1754
|
synchronizersById,
|
package/ui-react-dom/index.js
CHANGED
|
@@ -32,6 +32,8 @@ const CELL = 'Cell';
|
|
|
32
32
|
const VALUE = 'Value';
|
|
33
33
|
const CURRENT_TARGET = 'currentTarget';
|
|
34
34
|
const _VALUE = 'value';
|
|
35
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
36
|
+
str.split(separator, limit);
|
|
35
37
|
|
|
36
38
|
const math = Math;
|
|
37
39
|
const mathMin = math.min;
|
|
@@ -54,11 +56,16 @@ const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
|
54
56
|
const {
|
|
55
57
|
PureComponent,
|
|
56
58
|
Fragment,
|
|
59
|
+
createContext,
|
|
57
60
|
createElement,
|
|
58
|
-
useCallback
|
|
61
|
+
useCallback,
|
|
62
|
+
useContext,
|
|
63
|
+
useEffect,
|
|
59
64
|
useLayoutEffect,
|
|
65
|
+
useMemo,
|
|
60
66
|
useRef,
|
|
61
|
-
useState
|
|
67
|
+
useState,
|
|
68
|
+
useSyncExternalStore,
|
|
62
69
|
} = React;
|
|
63
70
|
const getProps = (getProps2, ...ids) =>
|
|
64
71
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -84,7 +91,6 @@ const objToArray = (obj, cb) =>
|
|
|
84
91
|
const objMap = (obj, cb) =>
|
|
85
92
|
objNew(objToArray(obj, (value, id) => [id, cb(value, id)]));
|
|
86
93
|
|
|
87
|
-
const {useCallback, useMemo, useState} = React;
|
|
88
94
|
const DOT = '.';
|
|
89
95
|
const EDITABLE = 'editable';
|
|
90
96
|
const LEFT_ARROW = '\u2190';
|
|
@@ -297,7 +303,7 @@ const RelationshipInHtmlRow = ({
|
|
|
297
303
|
idColumn === false
|
|
298
304
|
? null
|
|
299
305
|
: /* @__PURE__ */ createElement(
|
|
300
|
-
|
|
306
|
+
Fragment,
|
|
301
307
|
null,
|
|
302
308
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
303
309
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -305,7 +311,7 @@ const RelationshipInHtmlRow = ({
|
|
|
305
311
|
objToArray(
|
|
306
312
|
cells,
|
|
307
313
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
308
|
-
const [tableId, cellId] = compoundCellId
|
|
314
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
309
315
|
const rowId =
|
|
310
316
|
tableId === localTableId
|
|
311
317
|
? localRowId
|
|
@@ -603,7 +609,7 @@ const RelationshipInHtmlTable = ({
|
|
|
603
609
|
idColumn === false
|
|
604
610
|
? null
|
|
605
611
|
: /* @__PURE__ */ createElement(
|
|
606
|
-
|
|
612
|
+
Fragment,
|
|
607
613
|
null,
|
|
608
614
|
/* @__PURE__ */ createElement(
|
|
609
615
|
'th',
|
|
@@ -742,11 +748,11 @@ const SortedTablePaginator = ({
|
|
|
742
748
|
offset + limit < total,
|
|
743
749
|
);
|
|
744
750
|
return /* @__PURE__ */ createElement(
|
|
745
|
-
|
|
751
|
+
Fragment,
|
|
746
752
|
null,
|
|
747
753
|
total > limit &&
|
|
748
754
|
/* @__PURE__ */ createElement(
|
|
749
|
-
|
|
755
|
+
Fragment,
|
|
750
756
|
null,
|
|
751
757
|
/* @__PURE__ */ createElement(
|
|
752
758
|
'button',
|
|
@@ -32,6 +32,8 @@ const CELL = 'Cell';
|
|
|
32
32
|
const VALUE = 'Value';
|
|
33
33
|
const CURRENT_TARGET = 'currentTarget';
|
|
34
34
|
const _VALUE = 'value';
|
|
35
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
36
|
+
str.split(separator, limit);
|
|
35
37
|
|
|
36
38
|
const math = Math;
|
|
37
39
|
const mathMin = math.min;
|
|
@@ -54,11 +56,16 @@ const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
|
54
56
|
const {
|
|
55
57
|
PureComponent,
|
|
56
58
|
Fragment,
|
|
59
|
+
createContext,
|
|
57
60
|
createElement,
|
|
58
|
-
useCallback
|
|
61
|
+
useCallback,
|
|
62
|
+
useContext,
|
|
63
|
+
useEffect,
|
|
59
64
|
useLayoutEffect,
|
|
65
|
+
useMemo,
|
|
60
66
|
useRef,
|
|
61
|
-
useState
|
|
67
|
+
useState,
|
|
68
|
+
useSyncExternalStore,
|
|
62
69
|
} = React;
|
|
63
70
|
const getProps = (getProps2, ...ids) =>
|
|
64
71
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -84,7 +91,6 @@ const objToArray = (obj, cb) =>
|
|
|
84
91
|
const objMap = (obj, cb) =>
|
|
85
92
|
objNew(objToArray(obj, (value, id) => [id, cb(value, id)]));
|
|
86
93
|
|
|
87
|
-
const {useCallback, useMemo, useState} = React;
|
|
88
94
|
const DOT = '.';
|
|
89
95
|
const EDITABLE = 'editable';
|
|
90
96
|
const LEFT_ARROW = '\u2190';
|
|
@@ -297,7 +303,7 @@ const RelationshipInHtmlRow = ({
|
|
|
297
303
|
idColumn === false
|
|
298
304
|
? null
|
|
299
305
|
: /* @__PURE__ */ createElement(
|
|
300
|
-
|
|
306
|
+
Fragment,
|
|
301
307
|
null,
|
|
302
308
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
303
309
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -305,7 +311,7 @@ const RelationshipInHtmlRow = ({
|
|
|
305
311
|
objToArray(
|
|
306
312
|
cells,
|
|
307
313
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
308
|
-
const [tableId, cellId] = compoundCellId
|
|
314
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
309
315
|
const rowId =
|
|
310
316
|
tableId === localTableId
|
|
311
317
|
? localRowId
|
|
@@ -603,7 +609,7 @@ const RelationshipInHtmlTable = ({
|
|
|
603
609
|
idColumn === false
|
|
604
610
|
? null
|
|
605
611
|
: /* @__PURE__ */ createElement(
|
|
606
|
-
|
|
612
|
+
Fragment,
|
|
607
613
|
null,
|
|
608
614
|
/* @__PURE__ */ createElement(
|
|
609
615
|
'th',
|
|
@@ -742,11 +748,11 @@ const SortedTablePaginator = ({
|
|
|
742
748
|
offset + limit < total,
|
|
743
749
|
);
|
|
744
750
|
return /* @__PURE__ */ createElement(
|
|
745
|
-
|
|
751
|
+
Fragment,
|
|
746
752
|
null,
|
|
747
753
|
total > limit &&
|
|
748
754
|
/* @__PURE__ */ createElement(
|
|
749
|
-
|
|
755
|
+
Fragment,
|
|
750
756
|
null,
|
|
751
757
|
/* @__PURE__ */ createElement(
|
|
752
758
|
'button',
|