@ynput/ayon-frontend-shared 0.3.1 → 0.3.3
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/dist/node_modules/web-namespaces/index.cjs.js +1 -1
- package/dist/node_modules/web-namespaces/index.cjs.js.map +1 -1
- package/dist/node_modules/web-namespaces/index.es.js +3 -8
- package/dist/node_modules/web-namespaces/index.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.cjs.js +12 -8
- package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.es.js +11 -7
- package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
- package/dist/shared/src/api/queries/entities/updateEntity.cjs.js +1 -1
- package/dist/shared/src/api/queries/entities/updateEntity.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/entities/updateEntity.es.js +125 -120
- package/dist/shared/src/api/queries/entities/updateEntity.es.js.map +1 -1
- package/dist/shared/src/api/queries/views/updateViews.cjs.js +1 -1
- package/dist/shared/src/api/queries/views/updateViews.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/views/updateViews.es.js +68 -63
- package/dist/shared/src/api/queries/views/updateViews.es.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinkManagerItem.cjs.js +1 -1
- package/dist/shared/src/components/LinksManager/LinkManagerItem.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinkManagerItem.es.js +30 -28
- package/dist/shared/src/components/LinksManager/LinkManagerItem.es.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.cjs.js +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.es.js +74 -56
- package/dist/shared/src/components/LinksManager/LinksManager.es.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.styled.cjs.js +2 -1
- package/dist/shared/src/components/LinksManager/LinksManager.styled.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.styled.es.js +5 -4
- package/dist/shared/src/components/LinksManager/LinksManager.styled.es.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.cjs.js +2 -2
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.cjs.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.es.js +66 -61
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/Feed.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/Feed.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/Feed.es.js +123 -113
- package/dist/shared/src/containers/Feed/Feed.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/hooks/useTransformActivities.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/hooks/useTransformActivities.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/hooks/useTransformActivities.es.js +6 -6
- package/dist/shared/src/containers/Feed/hooks/useTransformActivities.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js +3 -3
- package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js +178 -172
- package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js +42 -41
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js +2 -2
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js +10 -10
- package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.cjs.js +1 -1
- package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.cjs.js.map +1 -1
- package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.es.js +26 -26
- package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.es.js.map +1 -1
- package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js +1 -1
- package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/Views/context/ViewsContext.es.js +53 -51
- package/dist/shared/src/containers/Views/context/ViewsContext.es.js.map +1 -1
- package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.cjs.js +1 -1
- package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.cjs.js.map +1 -1
- package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.es.js +95 -52
- package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.es.js.map +1 -1
- package/dist/shared/src/containers/Views/hooks/useViewsMutations.cjs.js +1 -1
- package/dist/shared/src/containers/Views/hooks/useViewsMutations.cjs.js.map +1 -1
- package/dist/shared/src/containers/Views/hooks/useViewsMutations.es.js +13 -13
- package/dist/shared/src/containers/Views/hooks/useViewsMutations.es.js.map +1 -1
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js +1 -1
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js.map +1 -1
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js +38 -37
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js.map +1 -1
- package/dist/shared/src/hooks/useLoadModules.cjs.js +1 -1
- package/dist/shared/src/hooks/useLoadModules.cjs.js.map +1 -1
- package/dist/shared/src/hooks/useLoadModules.es.js +86 -80
- package/dist/shared/src/hooks/useLoadModules.es.js.map +1 -1
- package/dist/types/api/generated/graphql.d.ts +2 -1
- package/dist/types/api/generated/graphqlLinks.d.ts +1 -0
- package/dist/types/components/LinksManager/LinkManagerItem.d.ts +1 -0
- package/dist/types/containers/Views/context/ViewsContext.d.ts +1 -0
- package/dist/types/containers/Views/hooks/useBaseViewMutations.d.ts +5 -2
- package/package.json +2 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.js +0 -2
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +0 -63
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/index.cjs.js +0 -2
- package/dist/node_modules/@ungap/structured-clone/esm/index.cjs.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/index.es.js +0 -12
- package/dist/node_modules/@ungap/structured-clone/esm/index.es.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.js +0 -2
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +0 -107
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/types.cjs.js +0 -2
- package/dist/node_modules/@ungap/structured-clone/esm/types.cjs.js.map +0 -1
- package/dist/node_modules/@ungap/structured-clone/esm/types.es.js +0 -14
- package/dist/node_modules/@ungap/structured-clone/esm/types.es.js.map +0 -1
- package/dist/node_modules/devlop/lib/default.cjs.js +0 -2
- package/dist/node_modules/devlop/lib/default.cjs.js.map +0 -1
- package/dist/node_modules/devlop/lib/default.es.js +0 -6
- package/dist/node_modules/devlop/lib/default.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.js +0 -2
- package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js +0 -39
- package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode.cjs.js +0 -2
- package/dist/node_modules/entities/dist/esm/decode.cjs.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/decode.es.js +0 -246
- package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.js +0 -2
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.js.map +0 -1
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js +0 -8
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/lib/index.es.js +0 -218
- package/dist/node_modules/hast-util-raw/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js +0 -146
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js +0 -21
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.es.js +0 -113
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.es.js +0 -9
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.es.js +0 -45
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.es.js +0 -26
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.es.js +0 -99
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.es.js +0 -8
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.es.js +0 -211
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.es.js +0 -251
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.es.js +0 -15
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.es.js +0 -74
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.es.js +0 -85
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.es.js +0 -2272
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.es.js +0 -241
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.es.js +0 -3
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.es.js +0 -1941
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.es.js +0 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.es.js +0 -163
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.es.js +0 -13
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.es.js +0 -62
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.es.js +0 -34
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.es.js +0 -369
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.es.js +0 -7
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.es.js +0 -567
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js +0 -20
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.es.js +0 -37
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js +0 -29
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js +0 -11
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js +0 -22
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js +0 -15
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js +0 -20
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.es.js +0 -12
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js +0 -2
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js +0 -12
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.cjs.js +0 -3
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.es.js +0 -43
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +0 -119
- package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -20
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -37
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -29
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -11
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -22
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.js +0 -2
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.js.map +0 -1
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
- package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
- package/dist/node_modules/rehype-raw/lib/index.cjs.js +0 -2
- package/dist/node_modules/rehype-raw/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/rehype-raw/lib/index.es.js +0 -13
- package/dist/node_modules/rehype-raw/lib/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-is/lib/index.cjs.js +0 -2
- package/dist/node_modules/unist-util-is/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-is/lib/index.es.js +0 -92
- package/dist/node_modules/unist-util-is/lib/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-position/lib/index.cjs.js +0 -2
- package/dist/node_modules/unist-util-position/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-position/lib/index.es.js +0 -18
- package/dist/node_modules/unist-util-position/lib/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-visit/lib/index.cjs.js +0 -2
- package/dist/node_modules/unist-util-visit/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-visit/lib/index.es.js +0 -17
- package/dist/node_modules/unist-util-visit/lib/index.es.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.js +0 -2
- package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/color.es.js +0 -7
- package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.js +0 -2
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +0 -57
- package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as ye } from "../../../../../_virtual/jsx-runtime.es.js";
|
|
2
|
-
import { createContext as Ie, useCallback as H, useEffect as ge, useMemo as me, useContext as
|
|
3
|
-
import { useSelectionCellsContext as
|
|
4
|
-
import { useCellEditing as
|
|
5
|
-
import { parseCellId as
|
|
2
|
+
import { createContext as Ie, useCallback as H, useEffect as ge, useMemo as me, useContext as be } from "react";
|
|
3
|
+
import { useSelectionCellsContext as we, ROW_SELECTION_COLUMN_ID as R } from "./SelectionCellsContext.es.js";
|
|
4
|
+
import { useCellEditing as Te } from "./CellEditingContext.es.js";
|
|
5
|
+
import { parseCellId as B, getLinkEntityIdsByColumnId as he, getCellValue as xe, getEntityDataById as ne } from "../utils/cellUtils.es.js";
|
|
6
6
|
import Ce from "../hooks/usePasteLinks.es.js";
|
|
7
7
|
import { getEntityPath as ve, clipboardError as P, parseClipboardText as re, processFieldValue as Ee } from "./clipboard/clipboardUtils.es.js";
|
|
8
8
|
import { validateClipboardData as ke } from "./clipboard/clipboardValidation.es.js";
|
|
@@ -12,92 +12,92 @@ import "react-toastify";
|
|
|
12
12
|
import { validateEntityId as _e } from "../../../util/getEntityId.es.js";
|
|
13
13
|
import "../../../util/pubsub.es.js";
|
|
14
14
|
const se = Ie(void 0), We = ({
|
|
15
|
-
children:
|
|
16
|
-
entitiesMap:
|
|
15
|
+
children: j,
|
|
16
|
+
entitiesMap: _,
|
|
17
17
|
columnEnums: Q,
|
|
18
18
|
columnReadOnly: ie,
|
|
19
19
|
visibleColumns: D
|
|
20
20
|
}) => {
|
|
21
|
-
const { selectedCells:
|
|
22
|
-
async (r,
|
|
23
|
-
const { headers:
|
|
21
|
+
const { selectedCells: v, gridMap: d, focusedCellId: ae } = we(), { updateEntities: Y } = Te(), { pasteTableLinks: Z } = Ce(), { getEntityById: F, attribFields: O } = Ae(), X = H(
|
|
22
|
+
async (r, a) => {
|
|
23
|
+
const { headers: i, fullRow: y } = a || {};
|
|
24
24
|
try {
|
|
25
|
-
const
|
|
25
|
+
const l = D.map((s) => s.id).filter((s) => s !== R), I = /* @__PURE__ */ new Map();
|
|
26
26
|
r.forEach((s) => {
|
|
27
|
-
const o =
|
|
27
|
+
const o = B(s);
|
|
28
28
|
if (!o) return;
|
|
29
|
-
const { rowId:
|
|
30
|
-
|
|
31
|
-
}),
|
|
32
|
-
(o) =>
|
|
33
|
-
).map((o) =>
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
const { rowId: f, colId: g } = o;
|
|
30
|
+
g === R || !l.includes(g) || (I.has(f) || I.set(f, /* @__PURE__ */ new Set()), I.get(f)?.add(g));
|
|
31
|
+
}), y && r.filter(
|
|
32
|
+
(o) => B(o)?.rowId && B(o)?.colId === R
|
|
33
|
+
).map((o) => B(o)?.rowId).forEach((o) => {
|
|
34
|
+
I.has(o) || I.set(o, /* @__PURE__ */ new Set()), Array.from(d.colIdToIndex.keys()).forEach((g) => {
|
|
35
|
+
I.get(o)?.add(g);
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
return
|
|
38
|
+
const E = Array.from(I.keys()).sort((s, o) => {
|
|
39
|
+
const f = d.rowIdToIndex.get(s) ?? 1 / 0, g = d.rowIdToIndex.get(o) ?? 1 / 0;
|
|
40
|
+
return f - g;
|
|
41
41
|
});
|
|
42
42
|
let $ = "";
|
|
43
|
-
const M =
|
|
43
|
+
const M = E[0];
|
|
44
44
|
if (!M) return "";
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
return
|
|
45
|
+
const k = Array.from(I.get(M) || []).sort((s, o) => {
|
|
46
|
+
const f = d.colIdToIndex.get(s) ?? 1 / 0, g = d.colIdToIndex.get(o) ?? 1 / 0;
|
|
47
|
+
return f - g;
|
|
48
48
|
});
|
|
49
|
-
if (
|
|
49
|
+
if (i && k.length > 0) {
|
|
50
50
|
const s = [];
|
|
51
|
-
for (const o of
|
|
52
|
-
const
|
|
53
|
-
s.push(`${
|
|
51
|
+
for (const o of k) {
|
|
52
|
+
const f = o;
|
|
53
|
+
s.push(`${f.replace(/"/g, '""')}`);
|
|
54
54
|
}
|
|
55
55
|
$ += s.join(" ") + `
|
|
56
56
|
`;
|
|
57
57
|
}
|
|
58
|
-
for (const s of
|
|
58
|
+
for (const s of E) {
|
|
59
59
|
const o = F(s);
|
|
60
60
|
if (!o) {
|
|
61
61
|
console.warn(`Entity not found for rowId: ${s}`);
|
|
62
62
|
continue;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
return
|
|
67
|
-
}).filter((
|
|
68
|
-
for (const
|
|
69
|
-
let
|
|
70
|
-
if (
|
|
71
|
-
|
|
64
|
+
const g = Array.from(I.get(s) || []).sort((w, h) => {
|
|
65
|
+
const T = d.colIdToIndex.get(w) ?? 1 / 0, e = d.colIdToIndex.get(h) ?? 1 / 0;
|
|
66
|
+
return T - e;
|
|
67
|
+
}).filter((w) => w !== R), S = [];
|
|
68
|
+
for (const w of g) {
|
|
69
|
+
let h = "";
|
|
70
|
+
if (w.startsWith("link_"))
|
|
71
|
+
h = he(o.links, w);
|
|
72
72
|
else {
|
|
73
|
-
let
|
|
74
|
-
if (!
|
|
75
|
-
const e =
|
|
76
|
-
e && e.data.type === "boolean" ?
|
|
73
|
+
let T = xe(o, w);
|
|
74
|
+
if (!T) {
|
|
75
|
+
const e = O.find((t) => t.name === w.replace("attrib_", ""));
|
|
76
|
+
e && e.data.type === "boolean" ? T = !1 : e && e.data.type.includes("list_of") && (T = []);
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
h = T != null ? String(T) : "", w === "name" && (h = ve(o.entityId || o.id, _)), w === "subType" && ("folderType" in o && (h = o.folderType || ""), "taskType" in o && (h = o.taskType || ""));
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
S.push(`${h.replace(/"/g, '""')}`);
|
|
81
81
|
}
|
|
82
|
-
$ +=
|
|
82
|
+
$ += S.join(" ") + `
|
|
83
83
|
`;
|
|
84
84
|
}
|
|
85
85
|
return $;
|
|
86
|
-
} catch (
|
|
87
|
-
console.error("Failed to copy to clipboard:",
|
|
86
|
+
} catch (l) {
|
|
87
|
+
console.error("Failed to copy to clipboard:", l);
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
[
|
|
90
|
+
[v, ae, d, _, F, D]
|
|
91
91
|
), le = async () => {
|
|
92
92
|
const r = await ee();
|
|
93
93
|
if (!r) return !1;
|
|
94
|
-
const
|
|
95
|
-
return
|
|
96
|
-
},
|
|
97
|
-
async (r,
|
|
98
|
-
if (r = r || Array.from(
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
94
|
+
const a = re(r);
|
|
95
|
+
return a.length === 0 ? !1 : a.every((i) => i.values.every((y) => y.split(",").every((l) => _e(l))));
|
|
96
|
+
}, K = H(
|
|
97
|
+
async (r, a) => {
|
|
98
|
+
if (r = r || Array.from(v), !r.length) return;
|
|
99
|
+
const i = await X(r, { fullRow: a });
|
|
100
|
+
if (i) {
|
|
101
101
|
if (!navigator.clipboard) {
|
|
102
102
|
P("Clipboard API not supported in this browser.");
|
|
103
103
|
return;
|
|
@@ -107,28 +107,28 @@ const se = Ie(void 0), We = ({
|
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
try {
|
|
110
|
-
await navigator.clipboard.writeText(
|
|
111
|
-
} catch (
|
|
112
|
-
P(`Failed to copy to clipboard: ${
|
|
110
|
+
await navigator.clipboard.writeText(i);
|
|
111
|
+
} catch (y) {
|
|
112
|
+
P(`Failed to copy to clipboard: ${y.message}`);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
|
-
[
|
|
116
|
+
[v, _, d]
|
|
117
117
|
), ce = H(
|
|
118
|
-
async (r,
|
|
119
|
-
if (r = r || Array.from(
|
|
118
|
+
async (r, a, i) => {
|
|
119
|
+
if (r = r || Array.from(v), !!r.length)
|
|
120
120
|
try {
|
|
121
|
-
const
|
|
122
|
-
if (!
|
|
123
|
-
const
|
|
124
|
-
|
|
121
|
+
const y = await X(r, { headers: !0, fullRow: i });
|
|
122
|
+
if (!y) return;
|
|
123
|
+
const l = new Blob([y], { type: "text/csv" }), I = URL.createObjectURL(l), E = document.createElement("a");
|
|
124
|
+
E.href = I;
|
|
125
125
|
const $ = r.length;
|
|
126
|
-
|
|
127
|
-
} catch (
|
|
128
|
-
console.error("Failed to copy to clipboard:",
|
|
126
|
+
E.download = `${a}-export-${$}_cells-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, E.click(), URL.revokeObjectURL(I);
|
|
127
|
+
} catch (y) {
|
|
128
|
+
console.error("Failed to copy to clipboard:", y);
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
|
-
[
|
|
131
|
+
[v, _, d, X]
|
|
132
132
|
), ee = async () => {
|
|
133
133
|
if (!navigator.clipboard) {
|
|
134
134
|
P("Clipboard API not supported in this browser.");
|
|
@@ -141,107 +141,107 @@ const se = Ie(void 0), We = ({
|
|
|
141
141
|
let r;
|
|
142
142
|
try {
|
|
143
143
|
return r = await navigator.clipboard.readText(), r;
|
|
144
|
-
} catch (
|
|
145
|
-
P(`Failed to read from clipboard: ${
|
|
144
|
+
} catch (a) {
|
|
145
|
+
P(`Failed to read from clipboard: ${a.message}`);
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
}, W = H(
|
|
149
|
-
async (r,
|
|
150
|
-
const { method:
|
|
149
|
+
async (r, a) => {
|
|
150
|
+
const { method: i = "replace" } = a || {};
|
|
151
151
|
if (!r.length) return;
|
|
152
|
-
const
|
|
153
|
-
if (!
|
|
154
|
-
const
|
|
155
|
-
if (!
|
|
156
|
-
const
|
|
157
|
-
const
|
|
158
|
-
return n && n.length > 0 ? n.forEach((
|
|
159
|
-
const
|
|
160
|
-
(
|
|
152
|
+
const y = await ee();
|
|
153
|
+
if (!y) return;
|
|
154
|
+
const l = re(y);
|
|
155
|
+
if (!l.length) return;
|
|
156
|
+
const I = l.length === 1 && l[0].values.length === 1, E = D.map((e) => e.id).filter((e) => e !== R), $ = (e, t, n) => {
|
|
157
|
+
const p = {};
|
|
158
|
+
return n && n.length > 0 ? n.forEach((c, u) => {
|
|
159
|
+
const b = t.find(
|
|
160
|
+
(m) => m === c || m.replace("attrib_", "") === c || m === `attrib_${c}` || m.toLowerCase() === c.toLowerCase()
|
|
161
161
|
);
|
|
162
|
-
|
|
163
|
-
}) : t.forEach((
|
|
164
|
-
|
|
165
|
-
}),
|
|
166
|
-
}, M =
|
|
162
|
+
b && u < e.values.length && (p[b] = e.values[u]);
|
|
163
|
+
}) : t.forEach((c, u) => {
|
|
164
|
+
u < e.values.length && (p[c] = e.values[u]);
|
|
165
|
+
}), p;
|
|
166
|
+
}, M = l[0]?.colIds || void 0, k = /* @__PURE__ */ new Map();
|
|
167
167
|
Array.from(r).forEach((e) => {
|
|
168
|
-
const t =
|
|
168
|
+
const t = B(e);
|
|
169
169
|
if (!t) return;
|
|
170
|
-
const { rowId: n, colId:
|
|
171
|
-
|
|
170
|
+
const { rowId: n, colId: p } = t;
|
|
171
|
+
p === R || !E.includes(p) || (k.has(n) || k.set(n, /* @__PURE__ */ new Set()), k.get(n)?.add(p));
|
|
172
172
|
});
|
|
173
|
-
const s = Array.from(
|
|
174
|
-
const n =
|
|
175
|
-
return n -
|
|
176
|
-
}), o = s[0],
|
|
177
|
-
const n =
|
|
178
|
-
return n -
|
|
173
|
+
const s = Array.from(k.keys()).sort((e, t) => {
|
|
174
|
+
const n = d.rowIdToIndex.get(e) ?? 1 / 0, p = d.rowIdToIndex.get(t) ?? 1 / 0;
|
|
175
|
+
return n - p;
|
|
176
|
+
}), o = s[0], f = Array.from(k.get(o) || []).sort((e, t) => {
|
|
177
|
+
const n = d.colIdToIndex.get(e) ?? 1 / 0, p = d.colIdToIndex.get(t) ?? 1 / 0;
|
|
178
|
+
return n - p;
|
|
179
179
|
});
|
|
180
180
|
for (let e = 0; e < s.length; e++) {
|
|
181
|
-
const t = s[e], n = ne(t,
|
|
182
|
-
for (const
|
|
183
|
-
const
|
|
181
|
+
const t = s[e], n = ne(t, _)?.entityType === "folder", p = e % l.length, c = l[p], u = I ? { [f[0]]: l[0].values[0] } : $(c, f, M);
|
|
182
|
+
for (const b of f) {
|
|
183
|
+
const m = u[b] || "";
|
|
184
184
|
if (!ke({
|
|
185
|
-
colId:
|
|
185
|
+
colId: b,
|
|
186
186
|
isFolder: n,
|
|
187
|
-
pasteValue:
|
|
188
|
-
parsedData:
|
|
187
|
+
pasteValue: m,
|
|
188
|
+
parsedData: l,
|
|
189
189
|
columnEnums: Q,
|
|
190
190
|
columnReadOnly: ie,
|
|
191
191
|
rowIndex: e,
|
|
192
|
-
colIndex:
|
|
193
|
-
isSingleCellValue:
|
|
194
|
-
attribFields:
|
|
192
|
+
colIndex: f.indexOf(b),
|
|
193
|
+
isSingleCellValue: I,
|
|
194
|
+
attribFields: O
|
|
195
195
|
})) return;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
for (let e = 0; e <
|
|
200
|
-
const t =
|
|
198
|
+
const g = /* @__PURE__ */ new Map();
|
|
199
|
+
for (let e = 0; e < f.length; e++) {
|
|
200
|
+
const t = f[e];
|
|
201
201
|
if (t === "name") continue;
|
|
202
|
-
let n = !1,
|
|
202
|
+
let n = !1, p = !1, c = "string";
|
|
203
203
|
if (s.length > 0) {
|
|
204
|
-
const
|
|
205
|
-
if (F(
|
|
206
|
-
if (n = t.startsWith("attrib_"),
|
|
207
|
-
|
|
204
|
+
const u = s[0];
|
|
205
|
+
if (F(u))
|
|
206
|
+
if (n = t.startsWith("attrib_"), p = t.startsWith("link_"), t === "status" || t === "subType")
|
|
207
|
+
c = "string", n = !1;
|
|
208
208
|
else if (t === "tags" || t === "assignees")
|
|
209
|
-
|
|
209
|
+
c = "array";
|
|
210
210
|
else if (n) {
|
|
211
|
-
const
|
|
212
|
-
if (
|
|
213
|
-
switch (
|
|
211
|
+
const m = t.replace("attrib_", ""), A = O.find((x) => x.name === m);
|
|
212
|
+
if (A)
|
|
213
|
+
switch (A.data.type) {
|
|
214
214
|
case "boolean":
|
|
215
|
-
|
|
215
|
+
c = "boolean";
|
|
216
216
|
break;
|
|
217
217
|
case "float":
|
|
218
218
|
case "integer":
|
|
219
|
-
|
|
219
|
+
c = "number";
|
|
220
220
|
break;
|
|
221
221
|
case "list_of_strings":
|
|
222
222
|
case "list_of_any":
|
|
223
223
|
case "list_of_integers":
|
|
224
224
|
case "list_of_submodels":
|
|
225
|
-
|
|
225
|
+
c = "array";
|
|
226
226
|
break;
|
|
227
227
|
default:
|
|
228
|
-
|
|
228
|
+
c = "string";
|
|
229
229
|
}
|
|
230
|
-
} else
|
|
230
|
+
} else p && (c = "array");
|
|
231
231
|
}
|
|
232
|
-
for (let
|
|
233
|
-
const
|
|
232
|
+
for (let u = 0; u < s.length; u++) {
|
|
233
|
+
const b = s[u], m = ne(b, _)?.entityType, A = m === "folder";
|
|
234
234
|
let x;
|
|
235
|
-
if (
|
|
236
|
-
x =
|
|
235
|
+
if (I)
|
|
236
|
+
x = l[0].values[0];
|
|
237
237
|
else {
|
|
238
|
-
const te =
|
|
239
|
-
if (C.values.length >
|
|
240
|
-
const U =
|
|
241
|
-
const pe =
|
|
238
|
+
const te = u % l.length, C = l[te];
|
|
239
|
+
if (C.values.length > f.length) {
|
|
240
|
+
const U = d.colIdToIndex.get(f[0]) ?? 0, q = Array.from(d.colIdToIndex.keys()).filter((N) => N !== R).sort((N, fe) => {
|
|
241
|
+
const pe = d.colIdToIndex.get(N) ?? 1 / 0, ue = d.colIdToIndex.get(fe) ?? 1 / 0;
|
|
242
242
|
return pe - ue;
|
|
243
243
|
}), G = q.findIndex(
|
|
244
|
-
(
|
|
244
|
+
(N) => d.colIdToIndex.get(N) === U
|
|
245
245
|
), oe = q.slice(
|
|
246
246
|
G,
|
|
247
247
|
G + C.values.length
|
|
@@ -252,29 +252,29 @@ const se = Ie(void 0), We = ({
|
|
|
252
252
|
x = C.values[U];
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
let
|
|
256
|
-
if (t === "subType" && (
|
|
255
|
+
let V = t.split("_").pop() || t;
|
|
256
|
+
if (t === "subType" && (V = A ? "folderType" : "taskType", n = !1, !x))
|
|
257
257
|
continue;
|
|
258
|
-
const L = Ee(x,
|
|
259
|
-
!
|
|
260
|
-
rowId:
|
|
261
|
-
id:
|
|
262
|
-
type:
|
|
258
|
+
const L = Ee(x, c), z = `${b}-${m}`;
|
|
259
|
+
!g.has(z) && m && g.set(z, {
|
|
260
|
+
rowId: b,
|
|
261
|
+
id: b,
|
|
262
|
+
type: m,
|
|
263
263
|
fields: {},
|
|
264
264
|
attrib: {},
|
|
265
265
|
links: {}
|
|
266
266
|
});
|
|
267
|
-
const J =
|
|
268
|
-
if (
|
|
267
|
+
const J = g.get(z);
|
|
268
|
+
if (p) {
|
|
269
269
|
const [te, C, U, q, G] = t.split("_");
|
|
270
270
|
J.links[`${C}|${U}|${q}_${G}`] = L;
|
|
271
|
-
} else n ? J.attrib[
|
|
271
|
+
} else n ? J.attrib[V] = L : J.fields[V] = L;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
const
|
|
275
|
-
|
|
274
|
+
const S = [], w = /* @__PURE__ */ new Map();
|
|
275
|
+
g.forEach((e) => {
|
|
276
276
|
Object.entries(e.fields).forEach(([t, n]) => {
|
|
277
|
-
|
|
277
|
+
S.push({
|
|
278
278
|
rowId: e.rowId,
|
|
279
279
|
id: e.id,
|
|
280
280
|
type: e.type,
|
|
@@ -282,7 +282,7 @@ const se = Ie(void 0), We = ({
|
|
|
282
282
|
value: n
|
|
283
283
|
});
|
|
284
284
|
}), Object.entries(e.attrib).forEach(([t, n]) => {
|
|
285
|
-
|
|
285
|
+
S.push({
|
|
286
286
|
rowId: e.rowId,
|
|
287
287
|
id: e.id,
|
|
288
288
|
type: e.type,
|
|
@@ -291,53 +291,59 @@ const se = Ie(void 0), We = ({
|
|
|
291
291
|
isAttrib: !0
|
|
292
292
|
});
|
|
293
293
|
}), Object.entries(e.links).forEach(([t, n]) => {
|
|
294
|
-
const [
|
|
295
|
-
if (
|
|
296
|
-
const
|
|
297
|
-
|
|
294
|
+
const [p, c] = t.split("_"), u = p.split("|");
|
|
295
|
+
if (u.length >= 3) {
|
|
296
|
+
const b = u[0], m = u[1], A = u[2], x = `${b}|${m}|${A}`, V = c === "out" ? A : m, L = `${e.id}-${x}-${c}`;
|
|
297
|
+
w.set(L, {
|
|
298
298
|
rowId: e.rowId,
|
|
299
299
|
sourceEntityId: e.id,
|
|
300
300
|
sourceEntityType: e.type,
|
|
301
301
|
linkType: x,
|
|
302
|
-
direction:
|
|
303
|
-
targetEntityType:
|
|
304
|
-
operation:
|
|
302
|
+
direction: c,
|
|
303
|
+
targetEntityType: V,
|
|
304
|
+
operation: i,
|
|
305
305
|
targetEntityIds: Array.isArray(n) ? n : []
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
});
|
|
310
|
-
const
|
|
311
|
-
if (
|
|
310
|
+
const h = Array.from(w.values()), T = [];
|
|
311
|
+
if (S.length > 0 && T.push(Y(S)), h.length > 0 && T.push(Z(h)), T.length > 0)
|
|
312
312
|
try {
|
|
313
|
-
await Promise.all(
|
|
313
|
+
await Promise.all(T);
|
|
314
314
|
} catch (e) {
|
|
315
315
|
console.error("Error updating entities:", e), P(`Paste failed: ${e || e?.message || "Unknown error"}`);
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
318
|
[
|
|
319
|
+
v,
|
|
320
|
+
d,
|
|
319
321
|
_,
|
|
320
|
-
l,
|
|
321
|
-
A,
|
|
322
322
|
Y,
|
|
323
323
|
Z,
|
|
324
324
|
Q,
|
|
325
325
|
F,
|
|
326
326
|
D,
|
|
327
|
-
|
|
327
|
+
O
|
|
328
328
|
]
|
|
329
329
|
);
|
|
330
330
|
ge(() => {
|
|
331
|
-
const r = async (
|
|
332
|
-
if ((
|
|
333
|
-
const
|
|
334
|
-
if (
|
|
331
|
+
const r = async (a) => {
|
|
332
|
+
if ((a.ctrlKey || a.metaKey) && a.key === "c") {
|
|
333
|
+
const i = document.activeElement, y = i?.closest("table") !== null || i?.closest(".table-container") !== null || i?.tagName === "TD" || i?.tagName === "TH", l = i?.tagName === "INPUT" || i?.tagName === "TEXTAREA" || i?.isContentEditable;
|
|
334
|
+
if ((window.getSelection()?.toString().length ?? !1) && !y || l && !y)
|
|
335
|
+
return;
|
|
336
|
+
v.size > 0 && await K();
|
|
337
|
+
}
|
|
338
|
+
if ((a.ctrlKey || a.metaKey) && a.key === "v") {
|
|
339
|
+
const i = document.activeElement;
|
|
340
|
+
if (i && (i.tagName === "INPUT" || i.tagName === "TEXTAREA" || i.isContentEditable))
|
|
335
341
|
if (await le())
|
|
336
|
-
|
|
342
|
+
a.preventDefault();
|
|
337
343
|
else
|
|
338
344
|
return;
|
|
339
|
-
W(Array.from(
|
|
340
|
-
method:
|
|
345
|
+
W(Array.from(v), {
|
|
346
|
+
method: a.shiftKey ? "merge" : "replace"
|
|
341
347
|
// Use shift key to determine paste method
|
|
342
348
|
});
|
|
343
349
|
}
|
|
@@ -345,21 +351,21 @@ const se = Ie(void 0), We = ({
|
|
|
345
351
|
return window.addEventListener("keydown", r), () => {
|
|
346
352
|
window.removeEventListener("keydown", r);
|
|
347
353
|
};
|
|
348
|
-
}, [
|
|
354
|
+
}, [K, W]);
|
|
349
355
|
const de = me(
|
|
350
356
|
() => ({
|
|
351
|
-
copyToClipboard:
|
|
357
|
+
copyToClipboard: K,
|
|
352
358
|
pasteFromClipboard: W,
|
|
353
359
|
exportCSV: ce
|
|
354
360
|
}),
|
|
355
|
-
[
|
|
361
|
+
[K, W]
|
|
356
362
|
);
|
|
357
|
-
return /* @__PURE__ */ ye.jsx(se.Provider, { value: de, children:
|
|
363
|
+
return /* @__PURE__ */ ye.jsx(se.Provider, { value: de, children: j });
|
|
358
364
|
}, Me = () => {
|
|
359
|
-
const
|
|
360
|
-
if (
|
|
365
|
+
const j = be(se);
|
|
366
|
+
if (j === void 0)
|
|
361
367
|
throw new Error("useClipboard must be used within a ClipboardProvider");
|
|
362
|
-
return
|
|
368
|
+
return j;
|
|
363
369
|
};
|
|
364
370
|
export {
|
|
365
371
|
We as ClipboardProvider,
|