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
|
@@ -30,6 +30,8 @@ const CURRENT_TARGET = 'currentTarget';
|
|
|
30
30
|
const _VALUE = 'value';
|
|
31
31
|
const UNDEFINED = '\uFFFC';
|
|
32
32
|
const id = (key) => EMPTY_STRING + key;
|
|
33
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
34
|
+
str.split(separator, limit);
|
|
33
35
|
|
|
34
36
|
const GLOBAL = globalThis;
|
|
35
37
|
const WINDOW = GLOBAL.window;
|
|
@@ -55,11 +57,16 @@ const errorNew = (message) => {
|
|
|
55
57
|
const {
|
|
56
58
|
PureComponent,
|
|
57
59
|
Fragment,
|
|
60
|
+
createContext,
|
|
58
61
|
createElement,
|
|
59
|
-
useCallback
|
|
62
|
+
useCallback,
|
|
63
|
+
useContext,
|
|
64
|
+
useEffect,
|
|
60
65
|
useLayoutEffect,
|
|
66
|
+
useMemo,
|
|
61
67
|
useRef,
|
|
62
|
-
useState
|
|
68
|
+
useState,
|
|
69
|
+
useSyncExternalStore,
|
|
63
70
|
} = React;
|
|
64
71
|
const getProps = (getProps2, ...ids) =>
|
|
65
72
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -161,7 +168,7 @@ const getUniqueId = (...args) => jsonStringWithMap(args);
|
|
|
161
168
|
const sortedIdsMap = (ids, callback) => arrayMap(arraySort([...ids]), callback);
|
|
162
169
|
const useEditable = (uniqueId, s) => [
|
|
163
170
|
!!uiReact.useCell(STATE_TABLE, uniqueId, EDITABLE_CELL, s),
|
|
164
|
-
useCallback
|
|
171
|
+
useCallback(
|
|
165
172
|
(event) => {
|
|
166
173
|
s.setCell(STATE_TABLE, uniqueId, EDITABLE_CELL, (editable) => !editable);
|
|
167
174
|
event.preventDefault();
|
|
@@ -342,7 +349,6 @@ const setOrDelValue = (store, valueId, value) =>
|
|
|
342
349
|
const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
343
350
|
type == STRING ? stringCase : type == NUMBER ? numberCase : booleanCase;
|
|
344
351
|
|
|
345
|
-
const {useCallback, useMemo, useState} = React;
|
|
346
352
|
const DOT = '.';
|
|
347
353
|
const EDITABLE = 'editable';
|
|
348
354
|
const LEFT_ARROW = '\u2190';
|
|
@@ -562,7 +568,7 @@ const RelationshipInHtmlRow = ({
|
|
|
562
568
|
idColumn === false
|
|
563
569
|
? null
|
|
564
570
|
: /* @__PURE__ */ createElement(
|
|
565
|
-
|
|
571
|
+
Fragment,
|
|
566
572
|
null,
|
|
567
573
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
568
574
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -570,7 +576,7 @@ const RelationshipInHtmlRow = ({
|
|
|
570
576
|
objToArray(
|
|
571
577
|
cells,
|
|
572
578
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
573
|
-
const [tableId, cellId] = compoundCellId
|
|
579
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
574
580
|
const rowId =
|
|
575
581
|
tableId === localTableId
|
|
576
582
|
? localRowId
|
|
@@ -855,7 +861,7 @@ const RelationshipInHtmlTable = ({
|
|
|
855
861
|
idColumn === false
|
|
856
862
|
? null
|
|
857
863
|
: /* @__PURE__ */ createElement(
|
|
858
|
-
|
|
864
|
+
Fragment,
|
|
859
865
|
null,
|
|
860
866
|
/* @__PURE__ */ createElement(
|
|
861
867
|
'th',
|
|
@@ -986,11 +992,11 @@ const SortedTablePaginator = ({
|
|
|
986
992
|
offset + limit < total,
|
|
987
993
|
);
|
|
988
994
|
return /* @__PURE__ */ createElement(
|
|
989
|
-
|
|
995
|
+
Fragment,
|
|
990
996
|
null,
|
|
991
997
|
total > limit &&
|
|
992
998
|
/* @__PURE__ */ createElement(
|
|
993
|
-
|
|
999
|
+
Fragment,
|
|
994
1000
|
null,
|
|
995
1001
|
/* @__PURE__ */ createElement(
|
|
996
1002
|
'button',
|
|
@@ -1327,7 +1333,7 @@ const StoreView = ({storeId, s}) => {
|
|
|
1327
1333
|
const Body = ({s}) => {
|
|
1328
1334
|
const articleRef = useRef(null);
|
|
1329
1335
|
const idleCallbackRef = useRef(0);
|
|
1330
|
-
const [scrolled, setScrolled] = useState
|
|
1336
|
+
const [scrolled, setScrolled] = useState(false);
|
|
1331
1337
|
const {scrollLeft, scrollTop} = uiReact.useValues(s);
|
|
1332
1338
|
useLayoutEffect(() => {
|
|
1333
1339
|
const article = articleRef.current;
|
|
@@ -1344,7 +1350,7 @@ const Body = ({s}) => {
|
|
|
1344
1350
|
return () => observer.disconnect();
|
|
1345
1351
|
}
|
|
1346
1352
|
}, [scrolled, scrollLeft, scrollTop]);
|
|
1347
|
-
const handleScroll = useCallback
|
|
1353
|
+
const handleScroll = useCallback(
|
|
1348
1354
|
(event) => {
|
|
1349
1355
|
const {scrollLeft: scrollLeft2, scrollTop: scrollTop2} =
|
|
1350
1356
|
event[CURRENT_TARGET];
|
|
@@ -1930,11 +1936,7 @@ const pairNewMap = () => [mapNew(), mapNew()];
|
|
|
1930
1936
|
const pairClone = (array) => [...array];
|
|
1931
1937
|
const pairIsEqual = ([entry1, entry2]) => entry1 === entry2;
|
|
1932
1938
|
|
|
1933
|
-
|
|
1934
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
1935
|
-
EMPTY_STRING,
|
|
1936
|
-
);
|
|
1937
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
1939
|
+
strSplit('-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz');
|
|
1938
1940
|
|
|
1939
1941
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
1940
1942
|
(sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1;
|
|
@@ -30,6 +30,8 @@ const CURRENT_TARGET = 'currentTarget';
|
|
|
30
30
|
const _VALUE = 'value';
|
|
31
31
|
const UNDEFINED = '\uFFFC';
|
|
32
32
|
const id = (key) => EMPTY_STRING + key;
|
|
33
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
34
|
+
str.split(separator, limit);
|
|
33
35
|
|
|
34
36
|
const GLOBAL = globalThis;
|
|
35
37
|
const WINDOW = GLOBAL.window;
|
|
@@ -55,11 +57,16 @@ const errorNew = (message) => {
|
|
|
55
57
|
const {
|
|
56
58
|
PureComponent,
|
|
57
59
|
Fragment,
|
|
60
|
+
createContext,
|
|
58
61
|
createElement,
|
|
59
|
-
useCallback
|
|
62
|
+
useCallback,
|
|
63
|
+
useContext,
|
|
64
|
+
useEffect,
|
|
60
65
|
useLayoutEffect,
|
|
66
|
+
useMemo,
|
|
61
67
|
useRef,
|
|
62
|
-
useState
|
|
68
|
+
useState,
|
|
69
|
+
useSyncExternalStore,
|
|
63
70
|
} = React;
|
|
64
71
|
const getProps = (getProps2, ...ids) =>
|
|
65
72
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -161,7 +168,7 @@ const getUniqueId = (...args) => jsonStringWithMap(args);
|
|
|
161
168
|
const sortedIdsMap = (ids, callback) => arrayMap(arraySort([...ids]), callback);
|
|
162
169
|
const useEditable = (uniqueId, s) => [
|
|
163
170
|
!!uiReact.useCell(STATE_TABLE, uniqueId, EDITABLE_CELL, s),
|
|
164
|
-
useCallback
|
|
171
|
+
useCallback(
|
|
165
172
|
(event) => {
|
|
166
173
|
s.setCell(STATE_TABLE, uniqueId, EDITABLE_CELL, (editable) => !editable);
|
|
167
174
|
event.preventDefault();
|
|
@@ -342,7 +349,6 @@ const setOrDelValue = (store, valueId, value) =>
|
|
|
342
349
|
const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
343
350
|
type == STRING ? stringCase : type == NUMBER ? numberCase : booleanCase;
|
|
344
351
|
|
|
345
|
-
const {useCallback, useMemo, useState} = React;
|
|
346
352
|
const DOT = '.';
|
|
347
353
|
const EDITABLE = 'editable';
|
|
348
354
|
const LEFT_ARROW = '\u2190';
|
|
@@ -562,7 +568,7 @@ const RelationshipInHtmlRow = ({
|
|
|
562
568
|
idColumn === false
|
|
563
569
|
? null
|
|
564
570
|
: /* @__PURE__ */ createElement(
|
|
565
|
-
|
|
571
|
+
Fragment,
|
|
566
572
|
null,
|
|
567
573
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
568
574
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -570,7 +576,7 @@ const RelationshipInHtmlRow = ({
|
|
|
570
576
|
objToArray(
|
|
571
577
|
cells,
|
|
572
578
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
573
|
-
const [tableId, cellId] = compoundCellId
|
|
579
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
574
580
|
const rowId =
|
|
575
581
|
tableId === localTableId
|
|
576
582
|
? localRowId
|
|
@@ -855,7 +861,7 @@ const RelationshipInHtmlTable = ({
|
|
|
855
861
|
idColumn === false
|
|
856
862
|
? null
|
|
857
863
|
: /* @__PURE__ */ createElement(
|
|
858
|
-
|
|
864
|
+
Fragment,
|
|
859
865
|
null,
|
|
860
866
|
/* @__PURE__ */ createElement(
|
|
861
867
|
'th',
|
|
@@ -986,11 +992,11 @@ const SortedTablePaginator = ({
|
|
|
986
992
|
offset + limit < total,
|
|
987
993
|
);
|
|
988
994
|
return /* @__PURE__ */ createElement(
|
|
989
|
-
|
|
995
|
+
Fragment,
|
|
990
996
|
null,
|
|
991
997
|
total > limit &&
|
|
992
998
|
/* @__PURE__ */ createElement(
|
|
993
|
-
|
|
999
|
+
Fragment,
|
|
994
1000
|
null,
|
|
995
1001
|
/* @__PURE__ */ createElement(
|
|
996
1002
|
'button',
|
|
@@ -1327,7 +1333,7 @@ const StoreView = ({storeId, s}) => {
|
|
|
1327
1333
|
const Body = ({s}) => {
|
|
1328
1334
|
const articleRef = useRef(null);
|
|
1329
1335
|
const idleCallbackRef = useRef(0);
|
|
1330
|
-
const [scrolled, setScrolled] = useState
|
|
1336
|
+
const [scrolled, setScrolled] = useState(false);
|
|
1331
1337
|
const {scrollLeft, scrollTop} = uiReact.useValues(s);
|
|
1332
1338
|
useLayoutEffect(() => {
|
|
1333
1339
|
const article = articleRef.current;
|
|
@@ -1344,7 +1350,7 @@ const Body = ({s}) => {
|
|
|
1344
1350
|
return () => observer.disconnect();
|
|
1345
1351
|
}
|
|
1346
1352
|
}, [scrolled, scrollLeft, scrollTop]);
|
|
1347
|
-
const handleScroll = useCallback
|
|
1353
|
+
const handleScroll = useCallback(
|
|
1348
1354
|
(event) => {
|
|
1349
1355
|
const {scrollLeft: scrollLeft2, scrollTop: scrollTop2} =
|
|
1350
1356
|
event[CURRENT_TARGET];
|
|
@@ -1930,11 +1936,7 @@ const pairNewMap = () => [mapNew(), mapNew()];
|
|
|
1930
1936
|
const pairClone = (array) => [...array];
|
|
1931
1937
|
const pairIsEqual = ([entry1, entry2]) => entry1 === entry2;
|
|
1932
1938
|
|
|
1933
|
-
|
|
1934
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
1935
|
-
EMPTY_STRING,
|
|
1936
|
-
);
|
|
1937
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
1939
|
+
strSplit('-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz');
|
|
1938
1940
|
|
|
1939
1941
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
1940
1942
|
(sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1;
|
|
@@ -15,7 +15,9 @@ const MAX = 'max';
|
|
|
15
15
|
const LISTENER = 'Listener';
|
|
16
16
|
const RESULT = 'Result';
|
|
17
17
|
const GET = 'get';
|
|
18
|
+
const SET = 'set';
|
|
18
19
|
const ADD = 'add';
|
|
20
|
+
const DEL = 'del';
|
|
19
21
|
const HAS = 'Has';
|
|
20
22
|
const IDS = 'Ids';
|
|
21
23
|
const TABLE = 'Table';
|
|
@@ -30,9 +32,12 @@ const CELL_IDS = CELL + IDS;
|
|
|
30
32
|
const VALUE = 'Value';
|
|
31
33
|
const VALUES = VALUE + 's';
|
|
32
34
|
const VALUE_IDS = VALUE + IDS;
|
|
35
|
+
const TRANSACTION = 'Transaction';
|
|
33
36
|
const id = (key) => EMPTY_STRING + key;
|
|
34
37
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
35
38
|
const strEndsWith = (str, suffix) => str.endsWith(suffix);
|
|
39
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
40
|
+
str.split(separator, limit);
|
|
36
41
|
|
|
37
42
|
const GLOBAL = globalThis;
|
|
38
43
|
const math = Math;
|
|
@@ -752,11 +757,12 @@ const createCheckpoints = getCreateFunction(
|
|
|
752
757
|
);
|
|
753
758
|
|
|
754
759
|
const MASK6 = 63;
|
|
755
|
-
const ENCODE =
|
|
756
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
+
const ENCODE = strSplit(
|
|
761
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
762
|
+
);
|
|
763
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
764
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
765
|
+
);
|
|
760
766
|
const encode = (num) => ENCODE[num & MASK6];
|
|
761
767
|
const decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
|
|
762
768
|
|
|
@@ -971,7 +977,7 @@ const createIndexes = getCreateFunction((store) => {
|
|
|
971
977
|
return objFreeze(indexes);
|
|
972
978
|
});
|
|
973
979
|
|
|
974
|
-
const numericAggregators = mapNew([
|
|
980
|
+
const numericAggregators = /* @__PURE__ */ mapNew([
|
|
975
981
|
[
|
|
976
982
|
AVG,
|
|
977
983
|
[
|
|
@@ -1792,7 +1798,7 @@ const createRelationships = getCreateFunction((store) => {
|
|
|
1792
1798
|
return objFreeze(relationships);
|
|
1793
1799
|
});
|
|
1794
1800
|
|
|
1795
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
1801
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
1796
1802
|
const getHash = (value) => {
|
|
1797
1803
|
let hash = 2166136261;
|
|
1798
1804
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -3704,16 +3710,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
3704
3710
|
store,
|
|
3705
3711
|
(method, name) =>
|
|
3706
3712
|
(mergeableStore[name] = // fluent methods
|
|
3707
|
-
strStartsWith(name,
|
|
3708
|
-
strStartsWith(name,
|
|
3713
|
+
strStartsWith(name, SET) ||
|
|
3714
|
+
strStartsWith(name, DEL) ||
|
|
3709
3715
|
strStartsWith(name, 'apply') ||
|
|
3710
|
-
strEndsWith(name,
|
|
3711
|
-
name == '
|
|
3716
|
+
strEndsWith(name, TRANSACTION) ||
|
|
3717
|
+
name == 'call' + LISTENER
|
|
3712
3718
|
? (...args) => {
|
|
3713
3719
|
method(...args);
|
|
3714
3720
|
return mergeableStore;
|
|
3715
3721
|
}
|
|
3716
|
-
: strStartsWith(name,
|
|
3722
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
3717
3723
|
? (...args) => {
|
|
3718
3724
|
const listenerArg = LISTENER_ARGS[slice(name, 3, -8)] ?? 0;
|
|
3719
3725
|
const listener = args[listenerArg];
|
package/common/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const EMPTY_STRING = '';
|
|
2
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
3
|
+
str.split(separator, limit);
|
|
2
4
|
|
|
3
5
|
const GLOBAL = globalThis;
|
|
4
6
|
const math = Math;
|
|
@@ -7,14 +9,10 @@ const mathFloor = math.floor;
|
|
|
7
9
|
const arrayMap = (array, cb) => array.map(cb);
|
|
8
10
|
const arrayReduce = (array, cb, initial) => array.reduce(cb, initial);
|
|
9
11
|
|
|
10
|
-
const mapNew = (entries) => new Map(entries);
|
|
11
|
-
|
|
12
12
|
const MASK6 = 63;
|
|
13
|
-
const ENCODE =
|
|
14
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
15
|
-
|
|
16
|
-
);
|
|
17
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
13
|
+
const ENCODE = strSplit(
|
|
14
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
15
|
+
);
|
|
18
16
|
const encode = (num) => ENCODE[num & MASK6];
|
|
19
17
|
|
|
20
18
|
const getRandomValues = GLOBAL.crypto
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const EMPTY_STRING = '';
|
|
2
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
3
|
+
str.split(separator, limit);
|
|
2
4
|
|
|
3
5
|
const GLOBAL = globalThis;
|
|
4
6
|
const math = Math;
|
|
@@ -7,14 +9,10 @@ const mathFloor = math.floor;
|
|
|
7
9
|
const arrayMap = (array, cb) => array.map(cb);
|
|
8
10
|
const arrayReduce = (array, cb, initial) => array.reduce(cb, initial);
|
|
9
11
|
|
|
10
|
-
const mapNew = (entries) => new Map(entries);
|
|
11
|
-
|
|
12
12
|
const MASK6 = 63;
|
|
13
|
-
const ENCODE =
|
|
14
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
15
|
-
|
|
16
|
-
);
|
|
17
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
13
|
+
const ENCODE = strSplit(
|
|
14
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
15
|
+
);
|
|
18
16
|
const encode = (num) => ENCODE[num & MASK6];
|
|
19
17
|
|
|
20
18
|
const getRandomValues = GLOBAL.crypto
|
package/es6/common/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const EMPTY_STRING = '';
|
|
2
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
3
|
+
str.split(separator, limit);
|
|
2
4
|
|
|
3
5
|
const GLOBAL = globalThis;
|
|
4
6
|
const math = Math;
|
|
@@ -7,14 +9,10 @@ const mathFloor = math.floor;
|
|
|
7
9
|
const arrayMap = (array, cb) => array.map(cb);
|
|
8
10
|
const arrayReduce = (array, cb, initial) => array.reduce(cb, initial);
|
|
9
11
|
|
|
10
|
-
const mapNew = (entries) => new Map(entries);
|
|
11
|
-
|
|
12
12
|
const MASK6 = 63;
|
|
13
|
-
const ENCODE =
|
|
14
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
15
|
-
|
|
16
|
-
);
|
|
17
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
13
|
+
const ENCODE = strSplit(
|
|
14
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
15
|
+
);
|
|
18
16
|
const encode = (num) => ENCODE[num & MASK6];
|
|
19
17
|
|
|
20
18
|
const getRandomValues = GLOBAL.crypto
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const EMPTY_STRING = '';
|
|
2
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
3
|
+
str.split(separator, limit);
|
|
2
4
|
|
|
3
5
|
const GLOBAL = globalThis;
|
|
4
6
|
const math = Math;
|
|
@@ -7,14 +9,10 @@ const mathFloor = math.floor;
|
|
|
7
9
|
const arrayMap = (array, cb) => array.map(cb);
|
|
8
10
|
const arrayReduce = (array, cb, initial) => array.reduce(cb, initial);
|
|
9
11
|
|
|
10
|
-
const mapNew = (entries) => new Map(entries);
|
|
11
|
-
|
|
12
12
|
const MASK6 = 63;
|
|
13
|
-
const ENCODE =
|
|
14
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
15
|
-
|
|
16
|
-
);
|
|
17
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
13
|
+
const ENCODE = strSplit(
|
|
14
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
15
|
+
);
|
|
18
16
|
const encode = (num) => ENCODE[num & MASK6];
|
|
19
17
|
|
|
20
18
|
const getRandomValues = GLOBAL.crypto
|
package/es6/index.js
CHANGED
|
@@ -13,7 +13,9 @@ const MAX = 'max';
|
|
|
13
13
|
const LISTENER = 'Listener';
|
|
14
14
|
const RESULT = 'Result';
|
|
15
15
|
const GET = 'get';
|
|
16
|
+
const SET = 'set';
|
|
16
17
|
const ADD = 'add';
|
|
18
|
+
const DEL = 'del';
|
|
17
19
|
const HAS = 'Has';
|
|
18
20
|
const IDS = 'Ids';
|
|
19
21
|
const TABLE = 'Table';
|
|
@@ -28,9 +30,12 @@ const CELL_IDS = CELL + IDS;
|
|
|
28
30
|
const VALUE = 'Value';
|
|
29
31
|
const VALUES = VALUE + 's';
|
|
30
32
|
const VALUE_IDS = VALUE + IDS;
|
|
33
|
+
const TRANSACTION = 'Transaction';
|
|
31
34
|
const id = (key) => EMPTY_STRING + key;
|
|
32
35
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
33
36
|
const strEndsWith = (str, suffix) => str.endsWith(suffix);
|
|
37
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
38
|
+
str.split(separator, limit);
|
|
34
39
|
|
|
35
40
|
const GLOBAL = globalThis;
|
|
36
41
|
const math = Math;
|
|
@@ -806,11 +811,12 @@ const createCheckpoints = getCreateFunction(
|
|
|
806
811
|
);
|
|
807
812
|
|
|
808
813
|
const MASK6 = 63;
|
|
809
|
-
const ENCODE =
|
|
810
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
+
const ENCODE = strSplit(
|
|
815
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
816
|
+
);
|
|
817
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
818
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
819
|
+
);
|
|
814
820
|
const encode = (num) => ENCODE[num & MASK6];
|
|
815
821
|
const decode = (str, pos) => {
|
|
816
822
|
var _a;
|
|
@@ -1030,7 +1036,7 @@ const createIndexes = getCreateFunction((store) => {
|
|
|
1030
1036
|
return objFreeze(indexes);
|
|
1031
1037
|
});
|
|
1032
1038
|
|
|
1033
|
-
const numericAggregators = mapNew([
|
|
1039
|
+
const numericAggregators = /* @__PURE__ */ mapNew([
|
|
1034
1040
|
[
|
|
1035
1041
|
AVG,
|
|
1036
1042
|
[
|
|
@@ -1894,7 +1900,7 @@ const createRelationships = getCreateFunction((store) => {
|
|
|
1894
1900
|
return objFreeze(relationships);
|
|
1895
1901
|
});
|
|
1896
1902
|
|
|
1897
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
1903
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
1898
1904
|
const getHash = (value) => {
|
|
1899
1905
|
let hash = 2166136261;
|
|
1900
1906
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -3845,16 +3851,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
3845
3851
|
store,
|
|
3846
3852
|
(method, name) =>
|
|
3847
3853
|
(mergeableStore[name] = // fluent methods
|
|
3848
|
-
strStartsWith(name,
|
|
3849
|
-
strStartsWith(name,
|
|
3854
|
+
strStartsWith(name, SET) ||
|
|
3855
|
+
strStartsWith(name, DEL) ||
|
|
3850
3856
|
strStartsWith(name, 'apply') ||
|
|
3851
|
-
strEndsWith(name,
|
|
3852
|
-
name == '
|
|
3857
|
+
strEndsWith(name, TRANSACTION) ||
|
|
3858
|
+
name == 'call' + LISTENER
|
|
3853
3859
|
? (...args) => {
|
|
3854
3860
|
method(...args);
|
|
3855
3861
|
return mergeableStore;
|
|
3856
3862
|
}
|
|
3857
|
-
: strStartsWith(name,
|
|
3863
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
3858
3864
|
? (...args) => {
|
|
3859
3865
|
var _a;
|
|
3860
3866
|
const listenerArg =
|
package/es6/indexes/index.js
CHANGED
|
@@ -280,12 +280,6 @@ const getCreateFunction = (getFunction, initFunction) => {
|
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
282
|
|
|
283
|
-
const ENCODE =
|
|
284
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
285
|
-
EMPTY_STRING,
|
|
286
|
-
);
|
|
287
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
288
|
-
|
|
289
283
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
290
284
|
(sortKey1 != null ? sortKey1 : 0) < (sortKey2 != null ? sortKey2 : 0)
|
|
291
285
|
? -1
|
|
@@ -280,12 +280,6 @@ const getCreateFunction = (getFunction, initFunction) => {
|
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
282
|
|
|
283
|
-
const ENCODE =
|
|
284
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
285
|
-
EMPTY_STRING,
|
|
286
|
-
);
|
|
287
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
288
|
-
|
|
289
283
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
290
284
|
(sortKey1 != null ? sortKey1 : 0) < (sortKey2 != null ? sortKey2 : 0)
|
|
291
285
|
? -1
|
|
@@ -7,7 +7,9 @@ const FUNCTION = getTypeOf(getTypeOf);
|
|
|
7
7
|
const TYPE = 'type';
|
|
8
8
|
const DEFAULT = 'default';
|
|
9
9
|
const LISTENER = 'Listener';
|
|
10
|
+
const SET = 'set';
|
|
10
11
|
const ADD = 'add';
|
|
12
|
+
const DEL = 'del';
|
|
11
13
|
const HAS = 'Has';
|
|
12
14
|
const IDS = 'Ids';
|
|
13
15
|
const TABLE = 'Table';
|
|
@@ -21,9 +23,12 @@ const CELL_IDS = CELL + IDS;
|
|
|
21
23
|
const VALUE = 'Value';
|
|
22
24
|
const VALUES = VALUE + 's';
|
|
23
25
|
const VALUE_IDS = VALUE + IDS;
|
|
26
|
+
const TRANSACTION = 'Transaction';
|
|
24
27
|
const id = (key) => EMPTY_STRING + key;
|
|
25
28
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
26
29
|
const strEndsWith = (str, suffix) => str.endsWith(suffix);
|
|
30
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
31
|
+
str.split(separator, limit);
|
|
27
32
|
|
|
28
33
|
const GLOBAL = globalThis;
|
|
29
34
|
const math = Math;
|
|
@@ -235,7 +240,7 @@ const visitTree = (node, path, ensureLeaf, pruneLeaf, p = 0) =>
|
|
|
235
240
|
},
|
|
236
241
|
);
|
|
237
242
|
|
|
238
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
243
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
239
244
|
const getHash = (value) => {
|
|
240
245
|
let hash = 2166136261;
|
|
241
246
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -429,11 +434,12 @@ const jsonStringWithMap = (obj) =>
|
|
|
429
434
|
);
|
|
430
435
|
|
|
431
436
|
const MASK6 = 63;
|
|
432
|
-
const ENCODE =
|
|
433
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
+
const ENCODE = strSplit(
|
|
438
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
439
|
+
);
|
|
440
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
441
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
442
|
+
);
|
|
437
443
|
const encode = (num) => ENCODE[num & MASK6];
|
|
438
444
|
const decode = (str, pos) => {
|
|
439
445
|
var _a;
|
|
@@ -2339,16 +2345,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
2339
2345
|
store,
|
|
2340
2346
|
(method, name) =>
|
|
2341
2347
|
(mergeableStore[name] = // fluent methods
|
|
2342
|
-
strStartsWith(name,
|
|
2343
|
-
strStartsWith(name,
|
|
2348
|
+
strStartsWith(name, SET) ||
|
|
2349
|
+
strStartsWith(name, DEL) ||
|
|
2344
2350
|
strStartsWith(name, 'apply') ||
|
|
2345
|
-
strEndsWith(name,
|
|
2346
|
-
name == '
|
|
2351
|
+
strEndsWith(name, TRANSACTION) ||
|
|
2352
|
+
name == 'call' + LISTENER
|
|
2347
2353
|
? (...args) => {
|
|
2348
2354
|
method(...args);
|
|
2349
2355
|
return mergeableStore;
|
|
2350
2356
|
}
|
|
2351
|
-
: strStartsWith(name,
|
|
2357
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
2352
2358
|
? (...args) => {
|
|
2353
2359
|
var _a;
|
|
2354
2360
|
const listenerArg =
|
|
@@ -7,7 +7,9 @@ const FUNCTION = getTypeOf(getTypeOf);
|
|
|
7
7
|
const TYPE = 'type';
|
|
8
8
|
const DEFAULT = 'default';
|
|
9
9
|
const LISTENER = 'Listener';
|
|
10
|
+
const SET = 'set';
|
|
10
11
|
const ADD = 'add';
|
|
12
|
+
const DEL = 'del';
|
|
11
13
|
const HAS = 'Has';
|
|
12
14
|
const IDS = 'Ids';
|
|
13
15
|
const TABLE = 'Table';
|
|
@@ -21,9 +23,12 @@ const CELL_IDS = CELL + IDS;
|
|
|
21
23
|
const VALUE = 'Value';
|
|
22
24
|
const VALUES = VALUE + 's';
|
|
23
25
|
const VALUE_IDS = VALUE + IDS;
|
|
26
|
+
const TRANSACTION = 'Transaction';
|
|
24
27
|
const id = (key) => EMPTY_STRING + key;
|
|
25
28
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
26
29
|
const strEndsWith = (str, suffix) => str.endsWith(suffix);
|
|
30
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
31
|
+
str.split(separator, limit);
|
|
27
32
|
|
|
28
33
|
const GLOBAL = globalThis;
|
|
29
34
|
const math = Math;
|
|
@@ -235,7 +240,7 @@ const visitTree = (node, path, ensureLeaf, pruneLeaf, p = 0) =>
|
|
|
235
240
|
},
|
|
236
241
|
);
|
|
237
242
|
|
|
238
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
243
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
239
244
|
const getHash = (value) => {
|
|
240
245
|
let hash = 2166136261;
|
|
241
246
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -429,11 +434,12 @@ const jsonStringWithMap = (obj) =>
|
|
|
429
434
|
);
|
|
430
435
|
|
|
431
436
|
const MASK6 = 63;
|
|
432
|
-
const ENCODE =
|
|
433
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
+
const ENCODE = strSplit(
|
|
438
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
439
|
+
);
|
|
440
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
441
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
442
|
+
);
|
|
437
443
|
const encode = (num) => ENCODE[num & MASK6];
|
|
438
444
|
const decode = (str, pos) => {
|
|
439
445
|
var _a;
|
|
@@ -2339,16 +2345,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
2339
2345
|
store,
|
|
2340
2346
|
(method, name) =>
|
|
2341
2347
|
(mergeableStore[name] = // fluent methods
|
|
2342
|
-
strStartsWith(name,
|
|
2343
|
-
strStartsWith(name,
|
|
2348
|
+
strStartsWith(name, SET) ||
|
|
2349
|
+
strStartsWith(name, DEL) ||
|
|
2344
2350
|
strStartsWith(name, 'apply') ||
|
|
2345
|
-
strEndsWith(name,
|
|
2346
|
-
name == '
|
|
2351
|
+
strEndsWith(name, TRANSACTION) ||
|
|
2352
|
+
name == 'call' + LISTENER
|
|
2347
2353
|
? (...args) => {
|
|
2348
2354
|
method(...args);
|
|
2349
2355
|
return mergeableStore;
|
|
2350
2356
|
}
|
|
2351
|
-
: strStartsWith(name,
|
|
2357
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
2352
2358
|
? (...args) => {
|
|
2353
2359
|
var _a;
|
|
2354
2360
|
const listenerArg =
|
package/es6/metrics/index.js
CHANGED