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
|
@@ -12,6 +12,8 @@ const CELL = 'Cell';
|
|
|
12
12
|
const VALUE = 'Value';
|
|
13
13
|
const CURRENT_TARGET = 'currentTarget';
|
|
14
14
|
const _VALUE = 'value';
|
|
15
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
16
|
+
str.split(separator, limit);
|
|
15
17
|
|
|
16
18
|
const math = Math;
|
|
17
19
|
const mathMin = math.min;
|
|
@@ -34,11 +36,16 @@ const getTypeCase = (type, stringCase, numberCase, booleanCase) =>
|
|
|
34
36
|
const {
|
|
35
37
|
PureComponent,
|
|
36
38
|
Fragment,
|
|
39
|
+
createContext,
|
|
37
40
|
createElement,
|
|
38
|
-
useCallback
|
|
41
|
+
useCallback,
|
|
42
|
+
useContext,
|
|
43
|
+
useEffect,
|
|
39
44
|
useLayoutEffect,
|
|
45
|
+
useMemo,
|
|
40
46
|
useRef,
|
|
41
|
-
useState
|
|
47
|
+
useState,
|
|
48
|
+
useSyncExternalStore,
|
|
42
49
|
} = React;
|
|
43
50
|
const getProps = (getProps2, ...ids) =>
|
|
44
51
|
isUndefined(getProps2) ? {} : getProps2(...ids);
|
|
@@ -105,7 +112,6 @@ var __objRest = (source, exclude) => {
|
|
|
105
112
|
}
|
|
106
113
|
return target;
|
|
107
114
|
};
|
|
108
|
-
const {useCallback, useMemo, useState} = React;
|
|
109
115
|
const DOT = '.';
|
|
110
116
|
const EDITABLE = 'editable';
|
|
111
117
|
const LEFT_ARROW = '\u2190';
|
|
@@ -336,7 +342,7 @@ const RelationshipInHtmlRow = ({
|
|
|
336
342
|
idColumn === false
|
|
337
343
|
? null
|
|
338
344
|
: /* @__PURE__ */ createElement(
|
|
339
|
-
|
|
345
|
+
Fragment,
|
|
340
346
|
null,
|
|
341
347
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
342
348
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -344,7 +350,7 @@ const RelationshipInHtmlRow = ({
|
|
|
344
350
|
objToArray(
|
|
345
351
|
cells,
|
|
346
352
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
347
|
-
const [tableId, cellId] = compoundCellId
|
|
353
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
348
354
|
const rowId =
|
|
349
355
|
tableId === localTableId
|
|
350
356
|
? localRowId
|
|
@@ -681,7 +687,7 @@ const RelationshipInHtmlTable = ({
|
|
|
681
687
|
idColumn === false
|
|
682
688
|
? null
|
|
683
689
|
: /* @__PURE__ */ createElement(
|
|
684
|
-
|
|
690
|
+
Fragment,
|
|
685
691
|
null,
|
|
686
692
|
/* @__PURE__ */ createElement(
|
|
687
693
|
'th',
|
|
@@ -861,11 +867,11 @@ const SortedTablePaginator = ({
|
|
|
861
867
|
offset + limit < total,
|
|
862
868
|
);
|
|
863
869
|
return /* @__PURE__ */ createElement(
|
|
864
|
-
|
|
870
|
+
Fragment,
|
|
865
871
|
null,
|
|
866
872
|
total > limit &&
|
|
867
873
|
/* @__PURE__ */ createElement(
|
|
868
|
-
|
|
874
|
+
Fragment,
|
|
869
875
|
null,
|
|
870
876
|
/* @__PURE__ */ createElement(
|
|
871
877
|
'button',
|
|
@@ -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);
|
|
@@ -165,7 +172,7 @@ const getUniqueId = (...args) => jsonStringWithMap(args);
|
|
|
165
172
|
const sortedIdsMap = (ids, callback) => arrayMap(arraySort([...ids]), callback);
|
|
166
173
|
const useEditable = (uniqueId, s) => [
|
|
167
174
|
!!uiReact.useCell(STATE_TABLE, uniqueId, EDITABLE_CELL, s),
|
|
168
|
-
useCallback
|
|
175
|
+
useCallback(
|
|
169
176
|
(event) => {
|
|
170
177
|
s.setCell(STATE_TABLE, uniqueId, EDITABLE_CELL, (editable) => !editable);
|
|
171
178
|
event.preventDefault();
|
|
@@ -433,7 +440,6 @@ var __objRest = (source, exclude) => {
|
|
|
433
440
|
}
|
|
434
441
|
return target;
|
|
435
442
|
};
|
|
436
|
-
const {useCallback, useMemo, useState} = React;
|
|
437
443
|
const DOT = '.';
|
|
438
444
|
const EDITABLE = 'editable';
|
|
439
445
|
const LEFT_ARROW = '\u2190';
|
|
@@ -667,7 +673,7 @@ const RelationshipInHtmlRow = ({
|
|
|
667
673
|
idColumn === false
|
|
668
674
|
? null
|
|
669
675
|
: /* @__PURE__ */ createElement(
|
|
670
|
-
|
|
676
|
+
Fragment,
|
|
671
677
|
null,
|
|
672
678
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
673
679
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -675,7 +681,7 @@ const RelationshipInHtmlRow = ({
|
|
|
675
681
|
objToArray(
|
|
676
682
|
cells,
|
|
677
683
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
678
|
-
const [tableId, cellId] = compoundCellId
|
|
684
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
679
685
|
const rowId =
|
|
680
686
|
tableId === localTableId
|
|
681
687
|
? localRowId
|
|
@@ -993,7 +999,7 @@ const RelationshipInHtmlTable = ({
|
|
|
993
999
|
idColumn === false
|
|
994
1000
|
? null
|
|
995
1001
|
: /* @__PURE__ */ createElement(
|
|
996
|
-
|
|
1002
|
+
Fragment,
|
|
997
1003
|
null,
|
|
998
1004
|
/* @__PURE__ */ createElement(
|
|
999
1005
|
'th',
|
|
@@ -1154,11 +1160,11 @@ const SortedTablePaginator = ({
|
|
|
1154
1160
|
offset + limit < total,
|
|
1155
1161
|
);
|
|
1156
1162
|
return /* @__PURE__ */ createElement(
|
|
1157
|
-
|
|
1163
|
+
Fragment,
|
|
1158
1164
|
null,
|
|
1159
1165
|
total > limit &&
|
|
1160
1166
|
/* @__PURE__ */ createElement(
|
|
1161
|
-
|
|
1167
|
+
Fragment,
|
|
1162
1168
|
null,
|
|
1163
1169
|
/* @__PURE__ */ createElement(
|
|
1164
1170
|
'button',
|
|
@@ -1507,7 +1513,7 @@ const StoreView = ({storeId, s}) => {
|
|
|
1507
1513
|
const Body = ({s}) => {
|
|
1508
1514
|
const articleRef = useRef(null);
|
|
1509
1515
|
const idleCallbackRef = useRef(0);
|
|
1510
|
-
const [scrolled, setScrolled] = useState
|
|
1516
|
+
const [scrolled, setScrolled] = useState(false);
|
|
1511
1517
|
const {scrollLeft, scrollTop} = uiReact.useValues(s);
|
|
1512
1518
|
useLayoutEffect(() => {
|
|
1513
1519
|
const article = articleRef.current;
|
|
@@ -1524,7 +1530,7 @@ const Body = ({s}) => {
|
|
|
1524
1530
|
return () => observer.disconnect();
|
|
1525
1531
|
}
|
|
1526
1532
|
}, [scrolled, scrollLeft, scrollTop]);
|
|
1527
|
-
const handleScroll = useCallback
|
|
1533
|
+
const handleScroll = useCallback(
|
|
1528
1534
|
(event) => {
|
|
1529
1535
|
const {scrollLeft: scrollLeft2, scrollTop: scrollTop2} =
|
|
1530
1536
|
event[CURRENT_TARGET];
|
|
@@ -2271,11 +2277,7 @@ const pairNewMap = () => [mapNew(), mapNew()];
|
|
|
2271
2277
|
const pairClone = (array) => [...array];
|
|
2272
2278
|
const pairIsEqual = ([entry1, entry2]) => entry1 === entry2;
|
|
2273
2279
|
|
|
2274
|
-
|
|
2275
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
2276
|
-
EMPTY_STRING,
|
|
2277
|
-
);
|
|
2278
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
2280
|
+
strSplit('-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz');
|
|
2279
2281
|
|
|
2280
2282
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
2281
2283
|
(sortKey1 != null ? sortKey1 : 0) < (sortKey2 != null ? sortKey2 : 0)
|
|
@@ -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);
|
|
@@ -165,7 +172,7 @@ const getUniqueId = (...args) => jsonStringWithMap(args);
|
|
|
165
172
|
const sortedIdsMap = (ids, callback) => arrayMap(arraySort([...ids]), callback);
|
|
166
173
|
const useEditable = (uniqueId, s) => [
|
|
167
174
|
!!uiReact.useCell(STATE_TABLE, uniqueId, EDITABLE_CELL, s),
|
|
168
|
-
useCallback
|
|
175
|
+
useCallback(
|
|
169
176
|
(event) => {
|
|
170
177
|
s.setCell(STATE_TABLE, uniqueId, EDITABLE_CELL, (editable) => !editable);
|
|
171
178
|
event.preventDefault();
|
|
@@ -433,7 +440,6 @@ var __objRest = (source, exclude) => {
|
|
|
433
440
|
}
|
|
434
441
|
return target;
|
|
435
442
|
};
|
|
436
|
-
const {useCallback, useMemo, useState} = React;
|
|
437
443
|
const DOT = '.';
|
|
438
444
|
const EDITABLE = 'editable';
|
|
439
445
|
const LEFT_ARROW = '\u2190';
|
|
@@ -667,7 +673,7 @@ const RelationshipInHtmlRow = ({
|
|
|
667
673
|
idColumn === false
|
|
668
674
|
? null
|
|
669
675
|
: /* @__PURE__ */ createElement(
|
|
670
|
-
|
|
676
|
+
Fragment,
|
|
671
677
|
null,
|
|
672
678
|
/* @__PURE__ */ createElement('th', null, localRowId),
|
|
673
679
|
/* @__PURE__ */ createElement('th', null, remoteRowId),
|
|
@@ -675,7 +681,7 @@ const RelationshipInHtmlRow = ({
|
|
|
675
681
|
objToArray(
|
|
676
682
|
cells,
|
|
677
683
|
({component: CellView2, getComponentProps}, compoundCellId) => {
|
|
678
|
-
const [tableId, cellId] = compoundCellId
|
|
684
|
+
const [tableId, cellId] = strSplit(compoundCellId, DOT, 2);
|
|
679
685
|
const rowId =
|
|
680
686
|
tableId === localTableId
|
|
681
687
|
? localRowId
|
|
@@ -993,7 +999,7 @@ const RelationshipInHtmlTable = ({
|
|
|
993
999
|
idColumn === false
|
|
994
1000
|
? null
|
|
995
1001
|
: /* @__PURE__ */ createElement(
|
|
996
|
-
|
|
1002
|
+
Fragment,
|
|
997
1003
|
null,
|
|
998
1004
|
/* @__PURE__ */ createElement(
|
|
999
1005
|
'th',
|
|
@@ -1154,11 +1160,11 @@ const SortedTablePaginator = ({
|
|
|
1154
1160
|
offset + limit < total,
|
|
1155
1161
|
);
|
|
1156
1162
|
return /* @__PURE__ */ createElement(
|
|
1157
|
-
|
|
1163
|
+
Fragment,
|
|
1158
1164
|
null,
|
|
1159
1165
|
total > limit &&
|
|
1160
1166
|
/* @__PURE__ */ createElement(
|
|
1161
|
-
|
|
1167
|
+
Fragment,
|
|
1162
1168
|
null,
|
|
1163
1169
|
/* @__PURE__ */ createElement(
|
|
1164
1170
|
'button',
|
|
@@ -1507,7 +1513,7 @@ const StoreView = ({storeId, s}) => {
|
|
|
1507
1513
|
const Body = ({s}) => {
|
|
1508
1514
|
const articleRef = useRef(null);
|
|
1509
1515
|
const idleCallbackRef = useRef(0);
|
|
1510
|
-
const [scrolled, setScrolled] = useState
|
|
1516
|
+
const [scrolled, setScrolled] = useState(false);
|
|
1511
1517
|
const {scrollLeft, scrollTop} = uiReact.useValues(s);
|
|
1512
1518
|
useLayoutEffect(() => {
|
|
1513
1519
|
const article = articleRef.current;
|
|
@@ -1524,7 +1530,7 @@ const Body = ({s}) => {
|
|
|
1524
1530
|
return () => observer.disconnect();
|
|
1525
1531
|
}
|
|
1526
1532
|
}, [scrolled, scrollLeft, scrollTop]);
|
|
1527
|
-
const handleScroll = useCallback
|
|
1533
|
+
const handleScroll = useCallback(
|
|
1528
1534
|
(event) => {
|
|
1529
1535
|
const {scrollLeft: scrollLeft2, scrollTop: scrollTop2} =
|
|
1530
1536
|
event[CURRENT_TARGET];
|
|
@@ -2271,11 +2277,7 @@ const pairNewMap = () => [mapNew(), mapNew()];
|
|
|
2271
2277
|
const pairClone = (array) => [...array];
|
|
2272
2278
|
const pairIsEqual = ([entry1, entry2]) => entry1 === entry2;
|
|
2273
2279
|
|
|
2274
|
-
|
|
2275
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
2276
|
-
EMPTY_STRING,
|
|
2277
|
-
);
|
|
2278
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
2280
|
+
strSplit('-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz');
|
|
2279
2281
|
|
|
2280
2282
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
2281
2283
|
(sortKey1 != null ? sortKey1 : 0) < (sortKey2 != null ? sortKey2 : 0)
|
|
@@ -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;
|
|
@@ -808,11 +813,12 @@ const createCheckpoints = getCreateFunction(
|
|
|
808
813
|
);
|
|
809
814
|
|
|
810
815
|
const MASK6 = 63;
|
|
811
|
-
const ENCODE =
|
|
812
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
+
const ENCODE = strSplit(
|
|
817
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
818
|
+
);
|
|
819
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
820
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
821
|
+
);
|
|
816
822
|
const encode = (num) => ENCODE[num & MASK6];
|
|
817
823
|
const decode = (str, pos) => {
|
|
818
824
|
var _a;
|
|
@@ -1032,7 +1038,7 @@ const createIndexes = getCreateFunction((store) => {
|
|
|
1032
1038
|
return objFreeze(indexes);
|
|
1033
1039
|
});
|
|
1034
1040
|
|
|
1035
|
-
const numericAggregators = mapNew([
|
|
1041
|
+
const numericAggregators = /* @__PURE__ */ mapNew([
|
|
1036
1042
|
[
|
|
1037
1043
|
AVG,
|
|
1038
1044
|
[
|
|
@@ -1896,7 +1902,7 @@ const createRelationships = getCreateFunction((store) => {
|
|
|
1896
1902
|
return objFreeze(relationships);
|
|
1897
1903
|
});
|
|
1898
1904
|
|
|
1899
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
1905
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
1900
1906
|
const getHash = (value) => {
|
|
1901
1907
|
let hash = 2166136261;
|
|
1902
1908
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -3847,16 +3853,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
3847
3853
|
store,
|
|
3848
3854
|
(method, name) =>
|
|
3849
3855
|
(mergeableStore[name] = // fluent methods
|
|
3850
|
-
strStartsWith(name,
|
|
3851
|
-
strStartsWith(name,
|
|
3856
|
+
strStartsWith(name, SET) ||
|
|
3857
|
+
strStartsWith(name, DEL) ||
|
|
3852
3858
|
strStartsWith(name, 'apply') ||
|
|
3853
|
-
strEndsWith(name,
|
|
3854
|
-
name == '
|
|
3859
|
+
strEndsWith(name, TRANSACTION) ||
|
|
3860
|
+
name == 'call' + LISTENER
|
|
3855
3861
|
? (...args) => {
|
|
3856
3862
|
method(...args);
|
|
3857
3863
|
return mergeableStore;
|
|
3858
3864
|
}
|
|
3859
|
-
: strStartsWith(name,
|
|
3865
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
3860
3866
|
? (...args) => {
|
|
3861
3867
|
var _a;
|
|
3862
3868
|
const listenerArg =
|
package/cjs/index.cjs
CHANGED
|
@@ -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/cjs/indexes/index.cjs
CHANGED
|
@@ -261,12 +261,6 @@ const getCreateFunction = (getFunction, initFunction) => {
|
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
const ENCODE =
|
|
265
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
266
|
-
EMPTY_STRING,
|
|
267
|
-
);
|
|
268
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
269
|
-
|
|
270
264
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
271
265
|
(sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1;
|
|
272
266
|
|
|
@@ -261,12 +261,6 @@ const getCreateFunction = (getFunction, initFunction) => {
|
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
const ENCODE =
|
|
265
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'.split(
|
|
266
|
-
EMPTY_STRING,
|
|
267
|
-
);
|
|
268
|
-
mapNew(arrayMap(ENCODE, (char, index) => [char, index]));
|
|
269
|
-
|
|
270
264
|
const defaultSorter = (sortKey1, sortKey2) =>
|
|
271
265
|
(sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1;
|
|
272
266
|
|
|
@@ -9,7 +9,9 @@ const FUNCTION = getTypeOf(getTypeOf);
|
|
|
9
9
|
const TYPE = 'type';
|
|
10
10
|
const DEFAULT = 'default';
|
|
11
11
|
const LISTENER = 'Listener';
|
|
12
|
+
const SET = 'set';
|
|
12
13
|
const ADD = 'add';
|
|
14
|
+
const DEL = 'del';
|
|
13
15
|
const HAS = 'Has';
|
|
14
16
|
const IDS = 'Ids';
|
|
15
17
|
const TABLE = 'Table';
|
|
@@ -23,9 +25,12 @@ const CELL_IDS = CELL + IDS;
|
|
|
23
25
|
const VALUE = 'Value';
|
|
24
26
|
const VALUES = VALUE + 's';
|
|
25
27
|
const VALUE_IDS = VALUE + IDS;
|
|
28
|
+
const TRANSACTION = 'Transaction';
|
|
26
29
|
const id = (key) => EMPTY_STRING + key;
|
|
27
30
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
28
31
|
const strEndsWith = (str, suffix) => str.endsWith(suffix);
|
|
32
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
33
|
+
str.split(separator, limit);
|
|
29
34
|
|
|
30
35
|
const GLOBAL = globalThis;
|
|
31
36
|
const math = Math;
|
|
@@ -207,7 +212,7 @@ const visitTree = (node, path, ensureLeaf, pruneLeaf, p = 0) =>
|
|
|
207
212
|
},
|
|
208
213
|
);
|
|
209
214
|
|
|
210
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
215
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
211
216
|
const getHash = (value) => {
|
|
212
217
|
let hash = 2166136261;
|
|
213
218
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -368,11 +373,12 @@ const jsonStringWithMap = (obj) =>
|
|
|
368
373
|
);
|
|
369
374
|
|
|
370
375
|
const MASK6 = 63;
|
|
371
|
-
const ENCODE =
|
|
372
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
+
const ENCODE = strSplit(
|
|
377
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
378
|
+
);
|
|
379
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
380
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
381
|
+
);
|
|
376
382
|
const encode = (num) => ENCODE[num & MASK6];
|
|
377
383
|
const decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
|
|
378
384
|
|
|
@@ -2243,16 +2249,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
2243
2249
|
store,
|
|
2244
2250
|
(method, name) =>
|
|
2245
2251
|
(mergeableStore[name] = // fluent methods
|
|
2246
|
-
strStartsWith(name,
|
|
2247
|
-
strStartsWith(name,
|
|
2252
|
+
strStartsWith(name, SET) ||
|
|
2253
|
+
strStartsWith(name, DEL) ||
|
|
2248
2254
|
strStartsWith(name, 'apply') ||
|
|
2249
|
-
strEndsWith(name,
|
|
2250
|
-
name == '
|
|
2255
|
+
strEndsWith(name, TRANSACTION) ||
|
|
2256
|
+
name == 'call' + LISTENER
|
|
2251
2257
|
? (...args) => {
|
|
2252
2258
|
method(...args);
|
|
2253
2259
|
return mergeableStore;
|
|
2254
2260
|
}
|
|
2255
|
-
: strStartsWith(name,
|
|
2261
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
2256
2262
|
? (...args) => {
|
|
2257
2263
|
const listenerArg = LISTENER_ARGS[slice(name, 3, -8)] ?? 0;
|
|
2258
2264
|
const listener = args[listenerArg];
|
|
@@ -9,7 +9,9 @@ const FUNCTION = getTypeOf(getTypeOf);
|
|
|
9
9
|
const TYPE = 'type';
|
|
10
10
|
const DEFAULT = 'default';
|
|
11
11
|
const LISTENER = 'Listener';
|
|
12
|
+
const SET = 'set';
|
|
12
13
|
const ADD = 'add';
|
|
14
|
+
const DEL = 'del';
|
|
13
15
|
const HAS = 'Has';
|
|
14
16
|
const IDS = 'Ids';
|
|
15
17
|
const TABLE = 'Table';
|
|
@@ -23,9 +25,12 @@ const CELL_IDS = CELL + IDS;
|
|
|
23
25
|
const VALUE = 'Value';
|
|
24
26
|
const VALUES = VALUE + 's';
|
|
25
27
|
const VALUE_IDS = VALUE + IDS;
|
|
28
|
+
const TRANSACTION = 'Transaction';
|
|
26
29
|
const id = (key) => EMPTY_STRING + key;
|
|
27
30
|
const strStartsWith = (str, prefix) => str.startsWith(prefix);
|
|
28
31
|
const strEndsWith = (str, suffix) => str.endsWith(suffix);
|
|
32
|
+
const strSplit = (str, separator = EMPTY_STRING, limit) =>
|
|
33
|
+
str.split(separator, limit);
|
|
29
34
|
|
|
30
35
|
const GLOBAL = globalThis;
|
|
31
36
|
const math = Math;
|
|
@@ -207,7 +212,7 @@ const visitTree = (node, path, ensureLeaf, pruneLeaf, p = 0) =>
|
|
|
207
212
|
},
|
|
208
213
|
);
|
|
209
214
|
|
|
210
|
-
const textEncoder = new GLOBAL.TextEncoder();
|
|
215
|
+
const textEncoder = /* @__PURE__ */ new GLOBAL.TextEncoder();
|
|
211
216
|
const getHash = (value) => {
|
|
212
217
|
let hash = 2166136261;
|
|
213
218
|
arrayForEach(textEncoder.encode(value), (char) => {
|
|
@@ -368,11 +373,12 @@ const jsonStringWithMap = (obj) =>
|
|
|
368
373
|
);
|
|
369
374
|
|
|
370
375
|
const MASK6 = 63;
|
|
371
|
-
const ENCODE =
|
|
372
|
-
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
+
const ENCODE = strSplit(
|
|
377
|
+
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz',
|
|
378
|
+
);
|
|
379
|
+
const DECODE = /* @__PURE__ */ mapNew(
|
|
380
|
+
/* @__PURE__ */ arrayMap(ENCODE, (char, index) => [char, index]),
|
|
381
|
+
);
|
|
376
382
|
const encode = (num) => ENCODE[num & MASK6];
|
|
377
383
|
const decode = (str, pos) => mapGet(DECODE, str[pos]) ?? 0;
|
|
378
384
|
|
|
@@ -2243,16 +2249,16 @@ const createMergeableStore = (uniqueId) => {
|
|
|
2243
2249
|
store,
|
|
2244
2250
|
(method, name) =>
|
|
2245
2251
|
(mergeableStore[name] = // fluent methods
|
|
2246
|
-
strStartsWith(name,
|
|
2247
|
-
strStartsWith(name,
|
|
2252
|
+
strStartsWith(name, SET) ||
|
|
2253
|
+
strStartsWith(name, DEL) ||
|
|
2248
2254
|
strStartsWith(name, 'apply') ||
|
|
2249
|
-
strEndsWith(name,
|
|
2250
|
-
name == '
|
|
2255
|
+
strEndsWith(name, TRANSACTION) ||
|
|
2256
|
+
name == 'call' + LISTENER
|
|
2251
2257
|
? (...args) => {
|
|
2252
2258
|
method(...args);
|
|
2253
2259
|
return mergeableStore;
|
|
2254
2260
|
}
|
|
2255
|
-
: strStartsWith(name,
|
|
2261
|
+
: strStartsWith(name, ADD) && strEndsWith(name, LISTENER)
|
|
2256
2262
|
? (...args) => {
|
|
2257
2263
|
const listenerArg = LISTENER_ARGS[slice(name, 3, -8)] ?? 0;
|
|
2258
2264
|
const listener = args[listenerArg];
|
package/cjs/metrics/index.cjs
CHANGED
package/cjs/min/common/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=globalThis,t=Math,e=t.floor,o=(r,t)=>
|
|
1
|
+
"use strict";const r=globalThis,t=Math,e=t.floor,o=((r,t="")=>"-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".split(t,void 0))(),a=r.crypto?t=>r.crypto.getRandomValues(t):r=>(r=>r.map((()=>e(256*t.random()))))(r);exports.defaultSorter=(r,t)=>(r??0)<(t??0)?-1:1,exports.getUniqueId=(r=16)=>{return t=(r,t)=>r+o[63&t],a(new Uint8Array(r)).reduce(t,"");var t};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=globalThis,t=Math,e=t.floor,o=(r,t)=>
|
|
1
|
+
"use strict";const r=globalThis,t=Math,e=t.floor,o=((r,t="")=>"-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".split(t,void 0))(),a=r.crypto?t=>r.crypto.getRandomValues(t):r=>(r=>r.map((()=>e(256*t.random()))))(r);exports.defaultSorter=(r,t)=>(r??0)<(t??0)?-1:1,exports.getUniqueId=(r=16)=>{return t=(r,t)=>r+o[63&t],a(new Uint8Array(r)).reduce(t,"");var t};
|
|
Binary file
|