tinybase 5.3.1 → 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 +3 -3
- 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/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
|
@@ -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);
|
|
@@ -125,7 +132,6 @@ var __objRest = (source, exclude) => {
|
|
|
125
132
|
}
|
|
126
133
|
return target;
|
|
127
134
|
};
|
|
128
|
-
const {useCallback, useMemo, useState} = React;
|
|
129
135
|
const DOT = '.';
|
|
130
136
|
const EDITABLE = 'editable';
|
|
131
137
|
const LEFT_ARROW = '\u2190';
|
|
@@ -349,7 +355,7 @@ const RelationshipInHtmlRow = ({
|
|
|
349
355
|
idColumn === false
|
|
350
356
|
? null
|
|
351
357
|
: /* @__PURE__ */ createElement(
|
|
352
|
-
|
|
358
|
+
Fragment,
|
|
353
359
|
null,
|
|
354
360
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
355
361
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -357,7 +363,7 @@ const RelationshipInHtmlRow = ({
|
|
|
357
363
|
objToArray(
|
|
358
364
|
cells,
|
|
359
365
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
360
|
-
const [tableId, cellId] = compoundCellId
|
|
366
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
361
367
|
const rowId =
|
|
362
368
|
tableId === localTableId
|
|
363
369
|
? localRowId
|
|
@@ -694,7 +700,7 @@ const RelationshipInHtmlTable = ({
|
|
|
694
700
|
idColumn === false
|
|
695
701
|
? null
|
|
696
702
|
: /* @__PURE__ */ createElement(
|
|
697
|
-
|
|
703
|
+
Fragment,
|
|
698
704
|
null,
|
|
699
705
|
/* @__PURE__ */ createElement(
|
|
700
706
|
'th',
|
|
@@ -860,11 +866,11 @@ const SortedTablePaginator = ({
|
|
|
860
866
|
offset + limit < total,
|
|
861
867
|
);
|
|
862
868
|
return /* @__PURE__ */ createElement(
|
|
863
|
-
|
|
869
|
+
Fragment,
|
|
864
870
|
null,
|
|
865
871
|
total > limit &&
|
|
866
872
|
/* @__PURE__ */ createElement(
|
|
867
|
-
|
|
873
|
+
Fragment,
|
|
868
874
|
null,
|
|
869
875
|
/* @__PURE__ */ createElement(
|
|
870
876
|
'button',
|
|
@@ -69,6 +69,8 @@ const CURRENT_TARGET = 'currentTarget';
|
|
|
69
69
|
const _VALUE = 'value';
|
|
70
70
|
const UNDEFINED = '\uFFFC';
|
|
71
71
|
const id = (key) => EMPTY_STRING + key;
|
|
72
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
73
|
+
str.split(separator, limit);
|
|
72
74
|
|
|
73
75
|
const GLOBAL = globalThis;
|
|
74
76
|
const WINDOW = GLOBAL.window;
|
|
@@ -94,11 +96,16 @@ const errorNew = (message) => {
|
|
|
94
96
|
const {
|
|
95
97
|
PureComponent,
|
|
96
98
|
Fragment,
|
|
99
|
+
createContext,
|
|
97
100
|
createElement,
|
|
98
|
-
useCallback
|
|
101
|
+
useCallback,
|
|
102
|
+
useContext,
|
|
103
|
+
useEffect,
|
|
99
104
|
useLayoutEffect,
|
|
105
|
+
useMemo,
|
|
100
106
|
useRef,
|
|
101
|
-
useState
|
|
107
|
+
useState,
|
|
108
|
+
useSyncExternalStore,
|
|
102
109
|
} = React;
|
|
103
110
|
const getProps = (getProps2, ...ids) =>
|
|
104
111
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -204,7 +211,7 @@ const getUniqueId = (...args) => jsonStringWithMap(args);
|
|
|
204
211
|
const sortedIdsMap = (ids, callback) => arrayMap(arraySort([...ids]), callback);
|
|
205
212
|
const useEditable = (uniqueId, s) => [
|
|
206
213
|
!!useCell(STATE_TABLE, uniqueId, EDITABLE_CELL, s),
|
|
207
|
-
useCallback
|
|
214
|
+
useCallback(
|
|
208
215
|
(event) => {
|
|
209
216
|
s.setCell(STATE_TABLE, uniqueId, EDITABLE_CELL, (editable) => !editable);
|
|
210
217
|
event.preventDefault();
|
|
@@ -472,7 +479,6 @@ var __objRest = (source, exclude) => {
|
|
|
472
479
|
}
|
|
473
480
|
return target;
|
|
474
481
|
};
|
|
475
|
-
const {useCallback, useMemo, useState} = React;
|
|
476
482
|
const DOT = '.';
|
|
477
483
|
const EDITABLE = 'editable';
|
|
478
484
|
const LEFT_ARROW = '\u2190';
|
|
@@ -699,7 +705,7 @@ const RelationshipInHtmlRow = ({
|
|
|
699
705
|
idColumn === false
|
|
700
706
|
? null
|
|
701
707
|
: /* @__PURE__ */ createElement(
|
|
702
|
-
|
|
708
|
+
Fragment,
|
|
703
709
|
null,
|
|
704
710
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
705
711
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -707,7 +713,7 @@ const RelationshipInHtmlRow = ({
|
|
|
707
713
|
objToArray(
|
|
708
714
|
cells,
|
|
709
715
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
710
|
-
const [tableId, cellId] = compoundCellId
|
|
716
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
711
717
|
const rowId =
|
|
712
718
|
tableId === localTableId
|
|
713
719
|
? localRowId
|
|
@@ -1025,7 +1031,7 @@ const RelationshipInHtmlTable = ({
|
|
|
1025
1031
|
idColumn === false
|
|
1026
1032
|
? null
|
|
1027
1033
|
: /* @__PURE__ */ createElement(
|
|
1028
|
-
|
|
1034
|
+
Fragment,
|
|
1029
1035
|
null,
|
|
1030
1036
|
/* @__PURE__ */ createElement(
|
|
1031
1037
|
'th',
|
|
@@ -1172,11 +1178,11 @@ const SortedTablePaginator = ({
|
|
|
1172
1178
|
offset + limit < total,
|
|
1173
1179
|
);
|
|
1174
1180
|
return /* @__PURE__ */ createElement(
|
|
1175
|
-
|
|
1181
|
+
Fragment,
|
|
1176
1182
|
null,
|
|
1177
1183
|
total > limit &&
|
|
1178
1184
|
/* @__PURE__ */ createElement(
|
|
1179
|
-
|
|
1185
|
+
Fragment,
|
|
1180
1186
|
null,
|
|
1181
1187
|
/* @__PURE__ */ createElement(
|
|
1182
1188
|
'button',
|
|
@@ -1517,7 +1523,7 @@ const StoreView = ({storeId, s}) => {
|
|
|
1517
1523
|
const Body = ({s}) => {
|
|
1518
1524
|
const articleRef = useRef(null);
|
|
1519
1525
|
const idleCallbackRef = useRef(0);
|
|
1520
|
-
const [scrolled, setScrolled] = useState
|
|
1526
|
+
const [scrolled, setScrolled] = useState(false);
|
|
1521
1527
|
const {scrollLeft, scrollTop} = useValues(s);
|
|
1522
1528
|
useLayoutEffect(() => {
|
|
1523
1529
|
const article = articleRef.current;
|
|
@@ -1534,7 +1540,7 @@ const Body = ({s}) => {
|
|
|
1534
1540
|
return () => observer.disconnect();
|
|
1535
1541
|
}
|
|
1536
1542
|
}, [scrolled, scrollLeft, scrollTop]);
|
|
1537
|
-
const handleScroll = useCallback
|
|
1543
|
+
const handleScroll = useCallback(
|
|
1538
1544
|
(event) => {
|
|
1539
1545
|
const {scrollLeft: scrollLeft2, scrollTop: scrollTop2} =
|
|
1540
1546
|
event[CURRENT_TARGET];
|
|
@@ -2276,11 +2282,7 @@ const pairNewMap = () => [mapNew(), mapNew()];
|
|
|
2276
2282
|
const pairClone = (array) => [...array];
|
|
2277
2283
|
const pairIsEqual = ([entry1, entry2]) => entry1 === entry2;
|
|
2278
2284
|
|
|
2279
|
-
|
|
2280
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
2281
|
-
EMPTY_STRING,
|
|
2282
|
-
);
|
|
2283
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
2285
|
+
strSplit('-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz');
|
|
2284
2286
|
|
|
2285
2287
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
2286
2288
|
(sortKey1 != null ? sortKey1 : 0) < (sortKey2 != null ? sortKey2 : 0)
|
|
@@ -69,6 +69,8 @@ const CURRENT_TARGET = 'currentTarget';
|
|
|
69
69
|
const _VALUE = 'value';
|
|
70
70
|
const UNDEFINED = '\uFFFC';
|
|
71
71
|
const id = (key) => EMPTY_STRING + key;
|
|
72
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
73
|
+
str.split(separator, limit);
|
|
72
74
|
|
|
73
75
|
const GLOBAL = globalThis;
|
|
74
76
|
const WINDOW = GLOBAL.window;
|
|
@@ -94,11 +96,16 @@ const errorNew = (message) => {
|
|
|
94
96
|
const {
|
|
95
97
|
PureComponent,
|
|
96
98
|
Fragment,
|
|
99
|
+
createContext,
|
|
97
100
|
createElement,
|
|
98
|
-
useCallback
|
|
101
|
+
useCallback,
|
|
102
|
+
useContext,
|
|
103
|
+
useEffect,
|
|
99
104
|
useLayoutEffect,
|
|
105
|
+
useMemo,
|
|
100
106
|
useRef,
|
|
101
|
-
useState
|
|
107
|
+
useState,
|
|
108
|
+
useSyncExternalStore,
|
|
102
109
|
} = React;
|
|
103
110
|
const getProps = (getProps2, ...ids) =>
|
|
104
111
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -204,7 +211,7 @@ const getUniqueId = (...args) => jsonStringWithMap(args);
|
|
|
204
211
|
const sortedIdsMap = (ids, callback) => arrayMap(arraySort([...ids]), callback);
|
|
205
212
|
const useEditable = (uniqueId, s) => [
|
|
206
213
|
!!useCell(STATE_TABLE, uniqueId, EDITABLE_CELL, s),
|
|
207
|
-
useCallback
|
|
214
|
+
useCallback(
|
|
208
215
|
(event) => {
|
|
209
216
|
s.setCell(STATE_TABLE, uniqueId, EDITABLE_CELL, (editable) => !editable);
|
|
210
217
|
event.preventDefault();
|
|
@@ -472,7 +479,6 @@ var __objRest = (source, exclude) => {
|
|
|
472
479
|
}
|
|
473
480
|
return target;
|
|
474
481
|
};
|
|
475
|
-
const {useCallback, useMemo, useState} = React;
|
|
476
482
|
const DOT = '.';
|
|
477
483
|
const EDITABLE = 'editable';
|
|
478
484
|
const LEFT_ARROW = '\u2190';
|
|
@@ -699,7 +705,7 @@ const RelationshipInHtmlRow = ({
|
|
|
699
705
|
idColumn === false
|
|
700
706
|
? null
|
|
701
707
|
: /* @__PURE__ */ createElement(
|
|
702
|
-
|
|
708
|
+
Fragment,
|
|
703
709
|
null,
|
|
704
710
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
705
711
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -707,7 +713,7 @@ const RelationshipInHtmlRow = ({
|
|
|
707
713
|
objToArray(
|
|
708
714
|
cells,
|
|
709
715
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
710
|
-
const [tableId, cellId] = compoundCellId
|
|
716
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
711
717
|
const rowId =
|
|
712
718
|
tableId === localTableId
|
|
713
719
|
? localRowId
|
|
@@ -1025,7 +1031,7 @@ const RelationshipInHtmlTable = ({
|
|
|
1025
1031
|
idColumn === false
|
|
1026
1032
|
? null
|
|
1027
1033
|
: /* @__PURE__ */ createElement(
|
|
1028
|
-
|
|
1034
|
+
Fragment,
|
|
1029
1035
|
null,
|
|
1030
1036
|
/* @__PURE__ */ createElement(
|
|
1031
1037
|
'th',
|
|
@@ -1172,11 +1178,11 @@ const SortedTablePaginator = ({
|
|
|
1172
1178
|
offset + limit < total,
|
|
1173
1179
|
);
|
|
1174
1180
|
return /* @__PURE__ */ createElement(
|
|
1175
|
-
|
|
1181
|
+
Fragment,
|
|
1176
1182
|
null,
|
|
1177
1183
|
total > limit &&
|
|
1178
1184
|
/* @__PURE__ */ createElement(
|
|
1179
|
-
|
|
1185
|
+
Fragment,
|
|
1180
1186
|
null,
|
|
1181
1187
|
/* @__PURE__ */ createElement(
|
|
1182
1188
|
'button',
|
|
@@ -1517,7 +1523,7 @@ const StoreView = ({storeId, s}) => {
|
|
|
1517
1523
|
const Body = ({s}) => {
|
|
1518
1524
|
const articleRef = useRef(null);
|
|
1519
1525
|
const idleCallbackRef = useRef(0);
|
|
1520
|
-
const [scrolled, setScrolled] = useState
|
|
1526
|
+
const [scrolled, setScrolled] = useState(false);
|
|
1521
1527
|
const {scrollLeft, scrollTop} = useValues(s);
|
|
1522
1528
|
useLayoutEffect(() => {
|
|
1523
1529
|
const article = articleRef.current;
|
|
@@ -1534,7 +1540,7 @@ const Body = ({s}) => {
|
|
|
1534
1540
|
return () => observer.disconnect();
|
|
1535
1541
|
}
|
|
1536
1542
|
}, [scrolled, scrollLeft, scrollTop]);
|
|
1537
|
-
const handleScroll = useCallback
|
|
1543
|
+
const handleScroll = useCallback(
|
|
1538
1544
|
(event) => {
|
|
1539
1545
|
const {scrollLeft: scrollLeft2, scrollTop: scrollTop2} =
|
|
1540
1546
|
event[CURRENT_TARGET];
|
|
@@ -2276,11 +2282,7 @@ const pairNewMap = () => [mapNew(), mapNew()];
|
|
|
2276
2282
|
const pairClone = (array) => [...array];
|
|
2277
2283
|
const pairIsEqual = ([entry1, entry2]) => entry1 === entry2;
|
|
2278
2284
|
|
|
2279
|
-
|
|
2280
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
2281
|
-
EMPTY_STRING,
|
|
2282
|
-
);
|
|
2283
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
2285
|
+
strSplit('-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz');
|
|
2284
2286
|
|
|
2285
2287
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
2286
2288
|
(sortKey1 != null ? sortKey1 : 0) < (sortKey2 != null ? sortKey2 : 0)
|
|
@@ -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/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;
|
|
@@ -750,11 +755,12 @@ const createCheckpoints = getCreateFunction(
|
|
|
750
755
|
);
|
|
751
756
|
|
|
752
757
|
const MASK6 = 63;
|
|
753
|
-
const ENCODE =
|
|
754
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
+
const ENCODE = strSplit(
|
|
759
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
760
|
+
);
|
|
761
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
762
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
763
|
+
);
|
|
758
764
|
const encode = (num) => ENCODE[num & MASK6];
|
|
759
765
|
const decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
|
|
760
766
|
|
|
@@ -969,7 +975,7 @@ const createIndexes = getCreateFunction((store) => {
|
|
|
969
975
|
return objFreeze(indexes);
|
|
970
976
|
});
|
|
971
977
|
|
|
972
|
-
const numericAggregators = mapNew([
|
|
978
|
+
const numericAggregators = /* @__PURE__ */ mapNew([
|
|
973
979
|
[
|
|
974
980
|
AVG,
|
|
975
981
|
[
|
|
@@ -1790,7 +1796,7 @@ const createRelationships = getCreateFunction((store) => {
|
|
|
1790
1796
|
return objFreeze(relationships);
|
|
1791
1797
|
});
|
|
1792
1798
|
|
|
1793
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
1799
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
1794
1800
|
const getHash = (value) => {
|
|
1795
1801
|
let hash = 2166136261;
|
|
1796
1802
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -3702,16 +3708,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
3702
3708
|
store,
|
|
3703
3709
|
(method, name) =>
|
|
3704
3710
|
(mergeableStore[name] = // fluent methods
|
|
3705
|
-
strStartsWith(name,
|
|
3706
|
-
strStartsWith(name,
|
|
3711
|
+
strStartsWith(name, SET) ||
|
|
3712
|
+
strStartsWith(name, DEL) ||
|
|
3707
3713
|
strStartsWith(name, 'apply') ||
|
|
3708
|
-
strEndsWith(name,
|
|
3709
|
-
name == '
|
|
3714
|
+
strEndsWith(name, TRANSACTION) ||
|
|
3715
|
+
name == 'call' + LISTENER
|
|
3710
3716
|
? (...args) => {
|
|
3711
3717
|
method(...args);
|
|
3712
3718
|
return mergeableStore;
|
|
3713
3719
|
}
|
|
3714
|
-
: strStartsWith(name,
|
|
3720
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
3715
3721
|
? (...args) => {
|
|
3716
3722
|
const listenerArg = LISTENER_ARGS[slice(name, 3, -8)] ?? 0;
|
|
3717
3723
|
const listener = args[listenerArg];
|
package/indexes/index.js
CHANGED
|
@@ -259,12 +259,6 @@ const getCreateFunction = (getFunction, initFunction) => {
|
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
261
|
|
|
262
|
-
const ENCODE =
|
|
263
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
264
|
-
EMPTY_STRING,
|
|
265
|
-
);
|
|
266
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
267
|
-
|
|
268
262
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
269
263
|
(sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1;
|
|
270
264
|
|
|
@@ -259,12 +259,6 @@ const getCreateFunction = (getFunction, initFunction) => {
|
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
261
|
|
|
262
|
-
const ENCODE =
|
|
263
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
264
|
-
EMPTY_STRING,
|
|
265
|
-
);
|
|
266
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
267
|
-
|
|
268
262
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
269
263
|
(sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1;
|
|
270
264
|
|
package/mergeable-store/index.js
CHANGED
|
@@ -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;
|
|
@@ -205,7 +210,7 @@ const visitTree = (node, path, ensureLeaf, pruneLeaf, p = 0) =>
|
|
|
205
210
|
},
|
|
206
211
|
);
|
|
207
212
|
|
|
208
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
213
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
209
214
|
const getHash = (value) => {
|
|
210
215
|
let hash = 2166136261;
|
|
211
216
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -366,11 +371,12 @@ const jsonStringWithMap = (obj) =>
|
|
|
366
371
|
);
|
|
367
372
|
|
|
368
373
|
const MASK6 = 63;
|
|
369
|
-
const ENCODE =
|
|
370
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
+
const ENCODE = strSplit(
|
|
375
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
376
|
+
);
|
|
377
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
378
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
379
|
+
);
|
|
374
380
|
const encode = (num) => ENCODE[num & MASK6];
|
|
375
381
|
const decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
|
|
376
382
|
|
|
@@ -2241,16 +2247,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
2241
2247
|
store,
|
|
2242
2248
|
(method, name) =>
|
|
2243
2249
|
(mergeableStore[name] = // fluent methods
|
|
2244
|
-
strStartsWith(name,
|
|
2245
|
-
strStartsWith(name,
|
|
2250
|
+
strStartsWith(name, SET) ||
|
|
2251
|
+
strStartsWith(name, DEL) ||
|
|
2246
2252
|
strStartsWith(name, 'apply') ||
|
|
2247
|
-
strEndsWith(name,
|
|
2248
|
-
name == '
|
|
2253
|
+
strEndsWith(name, TRANSACTION) ||
|
|
2254
|
+
name == 'call' + LISTENER
|
|
2249
2255
|
? (...args) => {
|
|
2250
2256
|
method(...args);
|
|
2251
2257
|
return mergeableStore;
|
|
2252
2258
|
}
|
|
2253
|
-
: strStartsWith(name,
|
|
2259
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
2254
2260
|
? (...args) => {
|
|
2255
2261
|
const listenerArg = LISTENER_ARGS[slice(name, 3, -8)] ?? 0;
|
|
2256
2262
|
const listener = args[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;
|
|
@@ -205,7 +210,7 @@ const visitTree = (node, path, ensureLeaf, pruneLeaf, p = 0) =>
|
|
|
205
210
|
},
|
|
206
211
|
);
|
|
207
212
|
|
|
208
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
213
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
209
214
|
const getHash = (value) => {
|
|
210
215
|
let hash = 2166136261;
|
|
211
216
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -366,11 +371,12 @@ const jsonStringWithMap = (obj) =>
|
|
|
366
371
|
);
|
|
367
372
|
|
|
368
373
|
const MASK6 = 63;
|
|
369
|
-
const ENCODE =
|
|
370
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
+
const ENCODE = strSplit(
|
|
375
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
376
|
+
);
|
|
377
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
378
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
379
|
+
);
|
|
374
380
|
const encode = (num) => ENCODE[num & MASK6];
|
|
375
381
|
const decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
|
|
376
382
|
|
|
@@ -2241,16 +2247,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
2241
2247
|
store,
|
|
2242
2248
|
(method, name) =>
|
|
2243
2249
|
(mergeableStore[name] = // fluent methods
|
|
2244
|
-
strStartsWith(name,
|
|
2245
|
-
strStartsWith(name,
|
|
2250
|
+
strStartsWith(name, SET) ||
|
|
2251
|
+
strStartsWith(name, DEL) ||
|
|
2246
2252
|
strStartsWith(name, 'apply') ||
|
|
2247
|
-
strEndsWith(name,
|
|
2248
|
-
name == '
|
|
2253
|
+
strEndsWith(name, TRANSACTION) ||
|
|
2254
|
+
name == 'call' + LISTENER
|
|
2249
2255
|
? (...args) => {
|
|
2250
2256
|
method(...args);
|
|
2251
2257
|
return mergeableStore;
|
|
2252
2258
|
}
|
|
2253
|
-
: strStartsWith(name,
|
|
2259
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
2254
2260
|
? (...args) => {
|
|
2255
2261
|
const listenerArg = LISTENER_ARGS[slice(name, 3, -8)] ?? 0;
|
|
2256
2262
|
const listener = args[listenerArg];
|
package/metrics/index.js
CHANGED
package/min/common/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=globalThis,
|
|
1
|
+
const r=globalThis,o=Math,t=o.floor,a=((r,o="")=>"-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".split(o,void 0))(),e=r.crypto?o=>r.crypto.getRandomValues(o):r=>(r=>r.map((()=>t(256*o.random()))))(r),n=(r,o)=>(r??0)<(o??0)?-1:1,l=(r=16)=>{return o=(r,o)=>r+a[63&o],e(new Uint8Array(r)).reduce(o,"");var o};export{n as defaultSorter,l as getUniqueId};
|
package/min/common/index.js.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=globalThis,
|
|
1
|
+
const r=globalThis,o=Math,t=o.floor,a=((r,o="")=>"-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".split(o,void 0))(),e=r.crypto?o=>r.crypto.getRandomValues(o):r=>(r=>r.map((()=>t(256*o.random()))))(r),n=(r,o)=>(r??0)<(o??0)?-1:1,l=(r=16)=>{return o=(r,o)=>r+a[63&o],e(new Uint8Array(r)).reduce(o,"");var o};export{n as defaultSorter,l as getUniqueId};
|
|
Binary file
|