@inventreedb/ui 0.11.3 → 1.4.0
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/CHANGELOG.md +25 -0
- package/dist/.vite/manifest.json +6 -5
- package/dist/components/InvenTreeTable.js +4 -3
- package/dist/components/InvenTreeTable.js.map +1 -1
- package/dist/components/RowActions.js +3 -2
- package/dist/components/RowActions.js.map +1 -1
- package/dist/components/nav/DetailDrawer.d.ts +1 -0
- package/dist/components/nav/DetailDrawer.js +1 -0
- package/dist/components/nav/DetailDrawer.js.map +1 -1
- package/dist/enums/ModelInformation.js +1 -0
- package/dist/enums/ModelInformation.js.map +1 -1
- package/dist/functions/Events.js +4 -3
- package/dist/functions/Events.js.map +1 -1
- package/dist/functions/Navigation.js +5 -2
- package/dist/functions/Navigation.js.map +1 -1
- package/dist/functions/Plugins.js +4 -2
- package/dist/functions/Plugins.js.map +1 -1
- package/dist/hooks/MonitorBackgroundTask.js +10 -8
- package/dist/hooks/MonitorBackgroundTask.js.map +1 -1
- package/dist/hooks/MonitorDataOutput.js +4 -3
- package/dist/hooks/MonitorDataOutput.js.map +1 -1
- package/dist/hooks/UseFilterSet.js +7 -6
- package/dist/hooks/UseFilterSet.js.map +1 -1
- package/dist/hooks/UseTable.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@mantine/hooks/esm/use-debounced-value/use-debounced-value.js +40 -15
- package/dist/node_modules/@mantine/hooks/esm/use-debounced-value/use-debounced-value.js.map +1 -1
- package/dist/node_modules/@mantine/hooks/esm/use-document-visibility/use-document-visibility.js +1 -1
- package/dist/node_modules/@mantine/hooks/esm/use-document-visibility/use-document-visibility.js.map +1 -1
- package/dist/node_modules/@mantine/hooks/esm/use-local-storage/create-storage.js +57 -62
- package/dist/node_modules/@mantine/hooks/esm/use-local-storage/create-storage.js.map +1 -1
- package/dist/node_modules/@mantine/hooks/esm/use-local-storage/use-local-storage.js.map +1 -1
- package/dist/node_modules/@mantine/hooks/esm/use-window-event/use-window-event.js +5 -3
- package/dist/node_modules/@mantine/hooks/esm/use-window-event/use-window-event.js.map +1 -1
- package/dist/node_modules/@mantine/hooks/esm/utils/random-id/random-id.js.map +1 -1
- package/dist/node_modules/@remix-run/router/dist/router.js +10 -0
- package/dist/node_modules/@remix-run/router/dist/router.js.map +1 -1
- package/dist/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js +2 -2
- package/dist/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js.map +1 -1
- package/dist/node_modules/@sentry/core/build/esm/scope.js +6 -5
- package/dist/node_modules/@sentry/core/build/esm/scope.js.map +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js.map +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/is.js +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/is.js.map +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/misc.js +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/misc.js.map +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js.map +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/time.js +1 -1
- package/dist/node_modules/@sentry/core/build/esm/utils/time.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustments.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustments.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheck.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheck.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js.map +1 -1
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js +6 -0
- package/dist/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js.map +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/focusManager.js +31 -20
- package/dist/node_modules/@tanstack/query-core/build/modern/focusManager.js.map +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/onlineManager.js +27 -17
- package/dist/node_modules/@tanstack/query-core/build/modern/onlineManager.js.map +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/queryObserver.js +179 -177
- package/dist/node_modules/@tanstack/query-core/build/modern/queryObserver.js.map +1 -1
- package/dist/node_modules/@tanstack/query-core/build/modern/timeoutManager.js +31 -21
- package/dist/node_modules/@tanstack/query-core/build/modern/timeoutManager.js.map +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js.map +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/suspense.js +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/suspense.js.map +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js +7 -4
- package/dist/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js.map +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +10 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +10 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +1 -1
- package/dist/node_modules/react-router/dist/index.js +11 -1
- package/dist/node_modules/react-router/dist/index.js.map +1 -1
- package/dist/node_modules/react-router-dom/dist/index.js +10 -0
- package/dist/node_modules/react-router-dom/dist/index.js.map +1 -1
- package/dist/states/StoredTableState.js +2 -1
- package/dist/states/StoredTableState.js.map +1 -1
- package/dist/states/types.d.ts +3 -0
- package/dist/types/Forms.d.ts +2 -0
- package/dist/types/Panel.d.ts +26 -0
- package/dist/types/Plugins.d.ts +14 -2
- package/dist/types/Plugins.js +2 -2
- package/dist/types/Plugins.js.map +1 -1
- package/dist/types/Rendering.d.ts +53 -0
- package/dist/types/Tables.d.ts +3 -1
- package/lib/components/RowActions.tsx +2 -2
- package/lib/components/nav/DetailDrawer.tsx +1 -1
- package/lib/enums/ModelInformation.tsx +1 -0
- package/lib/hooks/UseFilterSet.tsx +8 -8
- package/lib/index.ts +9 -1
- package/lib/states/types.tsx +7 -0
- package/lib/types/Forms.tsx +2 -0
- package/lib/types/Panel.tsx +30 -0
- package/lib/types/Plugins.tsx +20 -1
- package/lib/types/Rendering.tsx +60 -0
- package/lib/types/Tables.tsx +3 -1
- package/package.json +18 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconCircleX.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M10 10l4 4m0 -4l-4 4\", \"key\": \"svg-1\" }]];\nconst IconCircleX = createReactComponent(\"outline\", \"circle-x\", \"CircleX\", __iconNode);\n\nexport { __iconNode, IconCircleX as default };\n//# sourceMappingURL=IconCircleX.mjs.map\n"],"names":[],"mappings":";AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,wCAAwC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,wBAAwB,OAAO,SAAS,CAAC;AACnJ,MAAC,cAAc,qBAAqB,WAAW,YAAY,WAAW,UAAU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"IconCircleX.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M10 10l4 4m0 -4l-4 4\", \"key\": \"svg-1\" }]];\nconst IconCircleX = createReactComponent(\"outline\", \"circle-x\", \"CircleX\", __iconNode);\n\nexport { __iconNode, IconCircleX as default };\n//# sourceMappingURL=IconCircleX.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,wCAAwC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,wBAAwB,OAAO,SAAS,CAAC;AACnJ,MAAC,cAAc,qBAAqB,WAAW,YAAY,WAAW,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import createReactComponent from "../createReactComponent.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @tabler/icons-react v3.40.0 - MIT
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
2
8
|
const __iconNode = [["path", { "d": "M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666", "key": "svg-0" }], ["path", { "d": "M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1", "key": "svg-1" }]];
|
|
3
9
|
const IconCopy = createReactComponent("outline", "copy", "Copy", __iconNode);
|
|
4
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconCopy.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1\", \"key\": \"svg-1\" }]];\nconst IconCopy = createReactComponent(\"outline\", \"copy\", \"Copy\", __iconNode);\n\nexport { __iconNode, IconCopy as default };\n//# sourceMappingURL=IconCopy.mjs.map\n"],"names":[],"mappings":";AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,oKAAoK,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,iGAAiG,OAAO,SAAS,CAAC;AACxV,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"IconCopy.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1\", \"key\": \"svg-1\" }]];\nconst IconCopy = createReactComponent(\"outline\", \"copy\", \"Copy\", __iconNode);\n\nexport { __iconNode, IconCopy as default };\n//# sourceMappingURL=IconCopy.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,oKAAoK,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,iGAAiG,OAAO,SAAS,CAAC;AACxV,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import createReactComponent from "../createReactComponent.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @tabler/icons-react v3.40.0 - MIT
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
2
8
|
const __iconNode = [["path", { "d": "M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-0" }], ["path", { "d": "M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-1" }], ["path", { "d": "M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-2" }]];
|
|
3
9
|
const IconDots = createReactComponent("outline", "dots", "Dots", __iconNode);
|
|
4
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconDots.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-2\" }]];\nconst IconDots = createReactComponent(\"outline\", \"dots\", \"Dots\", __iconNode);\n\nexport { __iconNode, IconDots as default };\n//# sourceMappingURL=IconDots.mjs.map\n"],"names":[],"mappings":";AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,sCAAsC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,uCAAuC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,uCAAuC,OAAO,SAAS,CAAC;AAC1O,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"IconDots.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-2\" }]];\nconst IconDots = createReactComponent(\"outline\", \"dots\", \"Dots\", __iconNode);\n\nexport { __iconNode, IconDots as default };\n//# sourceMappingURL=IconDots.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,sCAAsC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,uCAAuC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,uCAAuC,OAAO,SAAS,CAAC;AAC1O,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import createReactComponent from "../createReactComponent.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @tabler/icons-react v3.40.0 - MIT
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
2
8
|
const __iconNode = [["path", { "d": "M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1", "key": "svg-0" }], ["path", { "d": "M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415", "key": "svg-1" }], ["path", { "d": "M16 5l3 3", "key": "svg-2" }]];
|
|
3
9
|
const IconEdit = createReactComponent("outline", "edit", "Edit", __iconNode);
|
|
4
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconEdit.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M16 5l3 3\", \"key\": \"svg-2\" }]];\nconst IconEdit = createReactComponent(\"outline\", \"edit\", \"Edit\", __iconNode);\n\nexport { __iconNode, IconEdit as default };\n//# sourceMappingURL=IconEdit.mjs.map\n"],"names":[],"mappings":";AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,8DAA8D,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,yEAAyE,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,aAAa,OAAO,SAAS,CAAC;AAC1Q,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"IconEdit.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M16 5l3 3\", \"key\": \"svg-2\" }]];\nconst IconEdit = createReactComponent(\"outline\", \"edit\", \"Edit\", __iconNode);\n\nexport { __iconNode, IconEdit as default };\n//# sourceMappingURL=IconEdit.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,8DAA8D,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,yEAAyE,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,aAAa,OAAO,SAAS,CAAC;AAC1Q,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import createReactComponent from "../createReactComponent.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @tabler/icons-react v3.40.0 - MIT
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
2
8
|
const __iconNode = [["path", { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "key": "svg-0" }], ["path", { "d": "M12 9v4", "key": "svg-1" }], ["path", { "d": "M12 16v.01", "key": "svg-2" }]];
|
|
3
9
|
const IconExclamationCircle = createReactComponent("outline", "exclamation-circle", "ExclamationCircle", __iconNode);
|
|
4
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconExclamationCircle.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M12 9v4\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M12 16v.01\", \"key\": \"svg-2\" }]];\nconst IconExclamationCircle = createReactComponent(\"outline\", \"exclamation-circle\", \"ExclamationCircle\", __iconNode);\n\nexport { __iconNode, IconExclamationCircle as default };\n//# sourceMappingURL=IconExclamationCircle.mjs.map\n"],"names":[],"mappings":";AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,wCAAwC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,WAAW,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,SAAS,CAAC;AACvL,MAAC,wBAAwB,qBAAqB,WAAW,sBAAsB,qBAAqB,UAAU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"IconExclamationCircle.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M12 9v4\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M12 16v.01\", \"key\": \"svg-2\" }]];\nconst IconExclamationCircle = createReactComponent(\"outline\", \"exclamation-circle\", \"ExclamationCircle\", __iconNode);\n\nexport { __iconNode, IconExclamationCircle as default };\n//# sourceMappingURL=IconExclamationCircle.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,wCAAwC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,WAAW,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,SAAS,CAAC;AACvL,MAAC,wBAAwB,qBAAqB,WAAW,sBAAsB,qBAAqB,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import createReactComponent from "../createReactComponent.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @tabler/icons-react v3.40.0 - MIT
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
2
8
|
const __iconNode = [["path", { "d": "M12 5l0 14", "key": "svg-0" }], ["path", { "d": "M5 12l14 0", "key": "svg-1" }]];
|
|
3
9
|
const IconPlus = createReactComponent("outline", "plus", "Plus", __iconNode);
|
|
4
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconPlus.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 5l0 14\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M5 12l14 0\", \"key\": \"svg-1\" }]];\nconst IconPlus = createReactComponent(\"outline\", \"plus\", \"Plus\", __iconNode);\n\nexport { __iconNode, IconPlus as default };\n//# sourceMappingURL=IconPlus.mjs.map\n"],"names":[],"mappings":";AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,SAAS,CAAC;AAC/G,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"IconPlus.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 5l0 14\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M5 12l14 0\", \"key\": \"svg-1\" }]];\nconst IconPlus = createReactComponent(\"outline\", \"plus\", \"Plus\", __iconNode);\n\nexport { __iconNode, IconPlus as default };\n//# sourceMappingURL=IconPlus.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,SAAS,CAAC;AAC/G,MAAC,WAAW,qBAAqB,WAAW,QAAQ,QAAQ,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import createReactComponent from "../createReactComponent.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @tabler/icons-react v3.40.0 - MIT
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
2
8
|
const __iconNode = [["path", { "d": "M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", "key": "svg-0" }], ["path", { "d": "M21 21l-6 -6", "key": "svg-1" }]];
|
|
3
9
|
const IconSearch = createReactComponent("outline", "search", "Search", __iconNode);
|
|
4
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconSearch.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M21 21l-6 -6\", \"key\": \"svg-1\" }]];\nconst IconSearch = createReactComponent(\"outline\", \"search\", \"Search\", __iconNode);\n\nexport { __iconNode, IconSearch as default };\n//# sourceMappingURL=IconSearch.mjs.map\n"],"names":[],"mappings":";AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,wCAAwC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,gBAAgB,OAAO,SAAS,CAAC;AAC3I,MAAC,aAAa,qBAAqB,WAAW,UAAU,UAAU,UAAU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"IconSearch.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M21 21l-6 -6\", \"key\": \"svg-1\" }]];\nconst IconSearch = createReactComponent(\"outline\", \"search\", \"Search\", __iconNode);\n\nexport { __iconNode, IconSearch as default };\n//# sourceMappingURL=IconSearch.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,wCAAwC,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,gBAAgB,OAAO,SAAS,CAAC;AAC3I,MAAC,aAAa,qBAAqB,WAAW,UAAU,UAAU,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import createReactComponent from "../createReactComponent.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @tabler/icons-react v3.40.0 - MIT
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
2
8
|
const __iconNode = [["path", { "d": "M4 7l16 0", "key": "svg-0" }], ["path", { "d": "M10 11l0 6", "key": "svg-1" }], ["path", { "d": "M14 11l0 6", "key": "svg-2" }], ["path", { "d": "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12", "key": "svg-3" }], ["path", { "d": "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3", "key": "svg-4" }]];
|
|
3
9
|
const IconTrash = createReactComponent("outline", "trash", "Trash", __iconNode);
|
|
4
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconTrash.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M4 7l16 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M10 11l0 6\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M14 11l0 6\", \"key\": \"svg-2\" }], [\"path\", { \"d\": \"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12\", \"key\": \"svg-3\" }], [\"path\", { \"d\": \"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3\", \"key\": \"svg-4\" }]];\nconst IconTrash = createReactComponent(\"outline\", \"trash\", \"Trash\", __iconNode);\n\nexport { __iconNode, IconTrash as default };\n//# sourceMappingURL=IconTrash.mjs.map\n"],"names":[],"mappings":";AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,aAAa,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,kDAAkD,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,4CAA4C,OAAO,SAAS,CAAC;AACnU,MAAC,YAAY,qBAAqB,WAAW,SAAS,SAAS,UAAU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"IconTrash.js","sources":["../../../../../../../node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.40.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M4 7l16 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M10 11l0 6\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M14 11l0 6\", \"key\": \"svg-2\" }], [\"path\", { \"d\": \"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12\", \"key\": \"svg-3\" }], [\"path\", { \"d\": \"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3\", \"key\": \"svg-4\" }]];\nconst IconTrash = createReactComponent(\"outline\", \"trash\", \"Trash\", __iconNode);\n\nexport { __iconNode, IconTrash as default };\n//# sourceMappingURL=IconTrash.mjs.map\n"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,KAAK,aAAa,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,cAAc,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,kDAAkD,OAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,4CAA4C,OAAO,SAAS,CAAC;AACnU,MAAC,YAAY,qBAAqB,WAAW,SAAS,SAAS,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
+
var __typeError = (msg) => {
|
|
2
|
+
throw TypeError(msg);
|
|
3
|
+
};
|
|
4
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
|
+
var _focused, _cleanup, _setup, _a;
|
|
1
9
|
import { Subscribable } from "./subscribable.js";
|
|
2
|
-
var FocusManager = class extends Subscribable {
|
|
3
|
-
#focused;
|
|
4
|
-
#cleanup;
|
|
5
|
-
#setup;
|
|
10
|
+
var FocusManager = (_a = class extends Subscribable {
|
|
6
11
|
constructor() {
|
|
7
12
|
super();
|
|
8
|
-
this
|
|
13
|
+
__privateAdd(this, _focused);
|
|
14
|
+
__privateAdd(this, _cleanup);
|
|
15
|
+
__privateAdd(this, _setup);
|
|
16
|
+
__privateSet(this, _setup, (onFocus) => {
|
|
9
17
|
if (typeof window !== "undefined" && window.addEventListener) {
|
|
10
18
|
const listener = () => onFocus();
|
|
11
19
|
window.addEventListener("visibilitychange", listener, false);
|
|
@@ -14,34 +22,36 @@ var FocusManager = class extends Subscribable {
|
|
|
14
22
|
};
|
|
15
23
|
}
|
|
16
24
|
return;
|
|
17
|
-
};
|
|
25
|
+
});
|
|
18
26
|
}
|
|
19
27
|
onSubscribe() {
|
|
20
|
-
if (!this
|
|
21
|
-
this.setEventListener(this
|
|
28
|
+
if (!__privateGet(this, _cleanup)) {
|
|
29
|
+
this.setEventListener(__privateGet(this, _setup));
|
|
22
30
|
}
|
|
23
31
|
}
|
|
24
32
|
onUnsubscribe() {
|
|
33
|
+
var _a2;
|
|
25
34
|
if (!this.hasListeners()) {
|
|
26
|
-
this
|
|
27
|
-
this
|
|
35
|
+
(_a2 = __privateGet(this, _cleanup)) == null ? void 0 : _a2.call(this);
|
|
36
|
+
__privateSet(this, _cleanup, void 0);
|
|
28
37
|
}
|
|
29
38
|
}
|
|
30
39
|
setEventListener(setup) {
|
|
31
|
-
|
|
32
|
-
this
|
|
33
|
-
|
|
40
|
+
var _a2;
|
|
41
|
+
__privateSet(this, _setup, setup);
|
|
42
|
+
(_a2 = __privateGet(this, _cleanup)) == null ? void 0 : _a2.call(this);
|
|
43
|
+
__privateSet(this, _cleanup, setup((focused) => {
|
|
34
44
|
if (typeof focused === "boolean") {
|
|
35
45
|
this.setFocused(focused);
|
|
36
46
|
} else {
|
|
37
47
|
this.onFocus();
|
|
38
48
|
}
|
|
39
|
-
});
|
|
49
|
+
}));
|
|
40
50
|
}
|
|
41
51
|
setFocused(focused) {
|
|
42
|
-
const changed = this
|
|
52
|
+
const changed = __privateGet(this, _focused) !== focused;
|
|
43
53
|
if (changed) {
|
|
44
|
-
this
|
|
54
|
+
__privateSet(this, _focused, focused);
|
|
45
55
|
this.onFocus();
|
|
46
56
|
}
|
|
47
57
|
}
|
|
@@ -52,12 +62,13 @@ var FocusManager = class extends Subscribable {
|
|
|
52
62
|
});
|
|
53
63
|
}
|
|
54
64
|
isFocused() {
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
var _a2;
|
|
66
|
+
if (typeof __privateGet(this, _focused) === "boolean") {
|
|
67
|
+
return __privateGet(this, _focused);
|
|
57
68
|
}
|
|
58
|
-
return globalThis.document
|
|
69
|
+
return ((_a2 = globalThis.document) == null ? void 0 : _a2.visibilityState) !== "hidden";
|
|
59
70
|
}
|
|
60
|
-
};
|
|
71
|
+
}, _focused = new WeakMap(), _cleanup = new WeakMap(), _setup = new WeakMap(), _a);
|
|
61
72
|
var focusManager = new FocusManager();
|
|
62
73
|
export {
|
|
63
74
|
FocusManager,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusManager.js","sources":["../../../../../../node_modules/@tanstack/query-core/build/modern/focusManager.js"],"sourcesContent":["// src/focusManager.ts\nimport { Subscribable } from \"./subscribable.js\";\nvar FocusManager = class extends Subscribable {\n #focused;\n #cleanup;\n #setup;\n constructor() {\n super();\n this.#setup = (onFocus) => {\n if (typeof window !== \"undefined\" && window.addEventListener) {\n const listener = () => onFocus();\n window.addEventListener(\"visibilitychange\", listener, false);\n return () => {\n window.removeEventListener(\"visibilitychange\", listener);\n };\n }\n return;\n };\n }\n onSubscribe() {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.();\n this.#cleanup = void 0;\n }\n }\n setEventListener(setup) {\n this.#setup = setup;\n this.#cleanup?.();\n this.#cleanup = setup((focused) => {\n if (typeof focused === \"boolean\") {\n this.setFocused(focused);\n } else {\n this.onFocus();\n }\n });\n }\n setFocused(focused) {\n const changed = this.#focused !== focused;\n if (changed) {\n this.#focused = focused;\n this.onFocus();\n }\n }\n onFocus() {\n const isFocused = this.isFocused();\n this.listeners.forEach((listener) => {\n listener(isFocused);\n });\n }\n isFocused() {\n if (typeof this.#focused === \"boolean\") {\n return this.#focused;\n }\n return globalThis.document?.visibilityState !== \"hidden\";\n }\n};\nvar focusManager = new FocusManager();\nexport {\n FocusManager,\n focusManager\n};\n//# sourceMappingURL=focusManager.js.map"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"focusManager.js","sources":["../../../../../../node_modules/@tanstack/query-core/build/modern/focusManager.js"],"sourcesContent":["// src/focusManager.ts\nimport { Subscribable } from \"./subscribable.js\";\nvar FocusManager = class extends Subscribable {\n #focused;\n #cleanup;\n #setup;\n constructor() {\n super();\n this.#setup = (onFocus) => {\n if (typeof window !== \"undefined\" && window.addEventListener) {\n const listener = () => onFocus();\n window.addEventListener(\"visibilitychange\", listener, false);\n return () => {\n window.removeEventListener(\"visibilitychange\", listener);\n };\n }\n return;\n };\n }\n onSubscribe() {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.();\n this.#cleanup = void 0;\n }\n }\n setEventListener(setup) {\n this.#setup = setup;\n this.#cleanup?.();\n this.#cleanup = setup((focused) => {\n if (typeof focused === \"boolean\") {\n this.setFocused(focused);\n } else {\n this.onFocus();\n }\n });\n }\n setFocused(focused) {\n const changed = this.#focused !== focused;\n if (changed) {\n this.#focused = focused;\n this.onFocus();\n }\n }\n onFocus() {\n const isFocused = this.isFocused();\n this.listeners.forEach((listener) => {\n listener(isFocused);\n });\n }\n isFocused() {\n if (typeof this.#focused === \"boolean\") {\n return this.#focused;\n }\n return globalThis.document?.visibilityState !== \"hidden\";\n }\n};\nvar focusManager = new FocusManager();\nexport {\n FocusManager,\n focusManager\n};\n//# sourceMappingURL=focusManager.js.map"],"names":["_a"],"mappings":";;;;;;;;;AAEG,IAAC,gBAAe,mBAAc,aAAa;AAAA,EAI5C,cAAc;AACZ,UAAK;AAJP;AACA;AACA;AAGE,uBAAK,QAAS,CAAC,YAAY;AACzB,UAAI,OAAO,WAAW,eAAe,OAAO,kBAAkB;AAC5D,cAAM,WAAW,MAAM,QAAO;AAC9B,eAAO,iBAAiB,oBAAoB,UAAU,KAAK;AAC3D,eAAO,MAAM;AACX,iBAAO,oBAAoB,oBAAoB,QAAQ;AAAA,QACzD;AAAA,MACF;AACA;AAAA,IACF;AAAA,EACF;AAAA,EACA,cAAc;AACZ,QAAI,CAAC,mBAAK,WAAU;AAClB,WAAK,iBAAiB,mBAAK,OAAM;AAAA,IACnC;AAAA,EACF;AAAA,EACA,gBAAgB;;AACd,QAAI,CAAC,KAAK,gBAAgB;AACxB,OAAAA,MAAA,mBAAK,cAAL,gBAAAA,IAAA;AACA,yBAAK,UAAW;AAAA,IAClB;AAAA,EACF;AAAA,EACA,iBAAiB,OAAO;;AACtB,uBAAK,QAAS;AACd,KAAAA,MAAA,mBAAK,cAAL,gBAAAA,IAAA;AACA,uBAAK,UAAW,MAAM,CAAC,YAAY;AACjC,UAAI,OAAO,YAAY,WAAW;AAChC,aAAK,WAAW,OAAO;AAAA,MACzB,OAAO;AACL,aAAK,QAAO;AAAA,MACd;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,WAAW,SAAS;AAClB,UAAM,UAAU,mBAAK,cAAa;AAClC,QAAI,SAAS;AACX,yBAAK,UAAW;AAChB,WAAK,QAAO;AAAA,IACd;AAAA,EACF;AAAA,EACA,UAAU;AACR,UAAM,YAAY,KAAK,UAAS;AAChC,SAAK,UAAU,QAAQ,CAAC,aAAa;AACnC,eAAS,SAAS;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACA,YAAY;;AACV,QAAI,OAAO,mBAAK,cAAa,WAAW;AACtC,aAAO,mBAAK;AAAA,IACd;AACA,aAAOA,MAAA,WAAW,aAAX,gBAAAA,IAAqB,qBAAoB;AAAA,EAClD;AACF,GAzDE,0BACA,0BACA,wBAHiB;AA2DhB,IAAC,eAAe,IAAI,aAAY;","x_google_ignoreList":[0]}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
+
var __typeError = (msg) => {
|
|
2
|
+
throw TypeError(msg);
|
|
3
|
+
};
|
|
4
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
|
+
var _online, _cleanup, _setup, _a;
|
|
1
9
|
import { Subscribable } from "./subscribable.js";
|
|
2
|
-
var OnlineManager = class extends Subscribable {
|
|
3
|
-
#online = true;
|
|
4
|
-
#cleanup;
|
|
5
|
-
#setup;
|
|
10
|
+
var OnlineManager = (_a = class extends Subscribable {
|
|
6
11
|
constructor() {
|
|
7
12
|
super();
|
|
8
|
-
this
|
|
13
|
+
__privateAdd(this, _online, true);
|
|
14
|
+
__privateAdd(this, _cleanup);
|
|
15
|
+
__privateAdd(this, _setup);
|
|
16
|
+
__privateSet(this, _setup, (onOnline) => {
|
|
9
17
|
if (typeof window !== "undefined" && window.addEventListener) {
|
|
10
18
|
const onlineListener = () => onOnline(true);
|
|
11
19
|
const offlineListener = () => onOnline(false);
|
|
@@ -17,37 +25,39 @@ var OnlineManager = class extends Subscribable {
|
|
|
17
25
|
};
|
|
18
26
|
}
|
|
19
27
|
return;
|
|
20
|
-
};
|
|
28
|
+
});
|
|
21
29
|
}
|
|
22
30
|
onSubscribe() {
|
|
23
|
-
if (!this
|
|
24
|
-
this.setEventListener(this
|
|
31
|
+
if (!__privateGet(this, _cleanup)) {
|
|
32
|
+
this.setEventListener(__privateGet(this, _setup));
|
|
25
33
|
}
|
|
26
34
|
}
|
|
27
35
|
onUnsubscribe() {
|
|
36
|
+
var _a2;
|
|
28
37
|
if (!this.hasListeners()) {
|
|
29
|
-
this
|
|
30
|
-
this
|
|
38
|
+
(_a2 = __privateGet(this, _cleanup)) == null ? void 0 : _a2.call(this);
|
|
39
|
+
__privateSet(this, _cleanup, void 0);
|
|
31
40
|
}
|
|
32
41
|
}
|
|
33
42
|
setEventListener(setup) {
|
|
34
|
-
|
|
35
|
-
this
|
|
36
|
-
|
|
43
|
+
var _a2;
|
|
44
|
+
__privateSet(this, _setup, setup);
|
|
45
|
+
(_a2 = __privateGet(this, _cleanup)) == null ? void 0 : _a2.call(this);
|
|
46
|
+
__privateSet(this, _cleanup, setup(this.setOnline.bind(this)));
|
|
37
47
|
}
|
|
38
48
|
setOnline(online) {
|
|
39
|
-
const changed = this
|
|
49
|
+
const changed = __privateGet(this, _online) !== online;
|
|
40
50
|
if (changed) {
|
|
41
|
-
this
|
|
51
|
+
__privateSet(this, _online, online);
|
|
42
52
|
this.listeners.forEach((listener) => {
|
|
43
53
|
listener(online);
|
|
44
54
|
});
|
|
45
55
|
}
|
|
46
56
|
}
|
|
47
57
|
isOnline() {
|
|
48
|
-
return this
|
|
58
|
+
return __privateGet(this, _online);
|
|
49
59
|
}
|
|
50
|
-
};
|
|
60
|
+
}, _online = new WeakMap(), _cleanup = new WeakMap(), _setup = new WeakMap(), _a);
|
|
51
61
|
var onlineManager = new OnlineManager();
|
|
52
62
|
export {
|
|
53
63
|
OnlineManager,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onlineManager.js","sources":["../../../../../../node_modules/@tanstack/query-core/build/modern/onlineManager.js"],"sourcesContent":["// src/onlineManager.ts\nimport { Subscribable } from \"./subscribable.js\";\nvar OnlineManager = class extends Subscribable {\n #online = true;\n #cleanup;\n #setup;\n constructor() {\n super();\n this.#setup = (onOnline) => {\n if (typeof window !== \"undefined\" && window.addEventListener) {\n const onlineListener = () => onOnline(true);\n const offlineListener = () => onOnline(false);\n window.addEventListener(\"online\", onlineListener, false);\n window.addEventListener(\"offline\", offlineListener, false);\n return () => {\n window.removeEventListener(\"online\", onlineListener);\n window.removeEventListener(\"offline\", offlineListener);\n };\n }\n return;\n };\n }\n onSubscribe() {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.();\n this.#cleanup = void 0;\n }\n }\n setEventListener(setup) {\n this.#setup = setup;\n this.#cleanup?.();\n this.#cleanup = setup(this.setOnline.bind(this));\n }\n setOnline(online) {\n const changed = this.#online !== online;\n if (changed) {\n this.#online = online;\n this.listeners.forEach((listener) => {\n listener(online);\n });\n }\n }\n isOnline() {\n return this.#online;\n }\n};\nvar onlineManager = new OnlineManager();\nexport {\n OnlineManager,\n onlineManager\n};\n//# sourceMappingURL=onlineManager.js.map"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onlineManager.js","sources":["../../../../../../node_modules/@tanstack/query-core/build/modern/onlineManager.js"],"sourcesContent":["// src/onlineManager.ts\nimport { Subscribable } from \"./subscribable.js\";\nvar OnlineManager = class extends Subscribable {\n #online = true;\n #cleanup;\n #setup;\n constructor() {\n super();\n this.#setup = (onOnline) => {\n if (typeof window !== \"undefined\" && window.addEventListener) {\n const onlineListener = () => onOnline(true);\n const offlineListener = () => onOnline(false);\n window.addEventListener(\"online\", onlineListener, false);\n window.addEventListener(\"offline\", offlineListener, false);\n return () => {\n window.removeEventListener(\"online\", onlineListener);\n window.removeEventListener(\"offline\", offlineListener);\n };\n }\n return;\n };\n }\n onSubscribe() {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.();\n this.#cleanup = void 0;\n }\n }\n setEventListener(setup) {\n this.#setup = setup;\n this.#cleanup?.();\n this.#cleanup = setup(this.setOnline.bind(this));\n }\n setOnline(online) {\n const changed = this.#online !== online;\n if (changed) {\n this.#online = online;\n this.listeners.forEach((listener) => {\n listener(online);\n });\n }\n }\n isOnline() {\n return this.#online;\n }\n};\nvar onlineManager = new OnlineManager();\nexport {\n OnlineManager,\n onlineManager\n};\n//# sourceMappingURL=onlineManager.js.map"],"names":["_a"],"mappings":";;;;;;;;;AAEG,IAAC,iBAAgB,mBAAc,aAAa;AAAA,EAI7C,cAAc;AACZ,UAAK;AAJP,gCAAU;AACV;AACA;AAGE,uBAAK,QAAS,CAAC,aAAa;AAC1B,UAAI,OAAO,WAAW,eAAe,OAAO,kBAAkB;AAC5D,cAAM,iBAAiB,MAAM,SAAS,IAAI;AAC1C,cAAM,kBAAkB,MAAM,SAAS,KAAK;AAC5C,eAAO,iBAAiB,UAAU,gBAAgB,KAAK;AACvD,eAAO,iBAAiB,WAAW,iBAAiB,KAAK;AACzD,eAAO,MAAM;AACX,iBAAO,oBAAoB,UAAU,cAAc;AACnD,iBAAO,oBAAoB,WAAW,eAAe;AAAA,QACvD;AAAA,MACF;AACA;AAAA,IACF;AAAA,EACF;AAAA,EACA,cAAc;AACZ,QAAI,CAAC,mBAAK,WAAU;AAClB,WAAK,iBAAiB,mBAAK,OAAM;AAAA,IACnC;AAAA,EACF;AAAA,EACA,gBAAgB;;AACd,QAAI,CAAC,KAAK,gBAAgB;AACxB,OAAAA,MAAA,mBAAK,cAAL,gBAAAA,IAAA;AACA,yBAAK,UAAW;AAAA,IAClB;AAAA,EACF;AAAA,EACA,iBAAiB,OAAO;;AACtB,uBAAK,QAAS;AACd,KAAAA,MAAA,mBAAK,cAAL,gBAAAA,IAAA;AACA,uBAAK,UAAW,MAAM,KAAK,UAAU,KAAK,IAAI,CAAC;AAAA,EACjD;AAAA,EACA,UAAU,QAAQ;AAChB,UAAM,UAAU,mBAAK,aAAY;AACjC,QAAI,SAAS;AACX,yBAAK,SAAU;AACf,WAAK,UAAU,QAAQ,CAAC,aAAa;AACnC,iBAAS,MAAM;AAAA,MACjB,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EACA,WAAW;AACT,WAAO,mBAAK;AAAA,EACd;AACF,GA/CE,yBACA,0BACA,wBAHkB;AAiDjB,IAAC,gBAAgB,IAAI,cAAa;","x_google_ignoreList":[0]}
|