mtxuilib 0.0.306 → 0.0.307
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/App.cjs +2 -17
- package/dist/MtmButton.cjs +2 -2
- package/dist/NovelEditor.cjs +1 -0
- package/dist/NovelEditorLoader.cjs +5 -8
- package/dist/browser/index.min.js +1 -2
- package/dist/common/FullCenter.cjs +32 -0
- package/dist/common/MtImage.cjs +85 -0
- package/dist/common/OnlyDebug.cjs +33 -0
- package/dist/common/mtlink.cjs +85 -0
- package/dist/common/table/cells/ExpenderCell.cjs +55 -0
- package/dist/common/table/cells/SelectCell.cjs +57 -0
- package/dist/common/table/cells/Text.cjs +49 -0
- package/dist/common/table/cells/ViewLink.cjs +57 -0
- package/dist/common/table/cells/container/cellWrapper.cjs +31 -0
- package/dist/common/table/cells/number.cjs +46 -0
- package/dist/common/table/cells/string.cjs +51 -0
- package/dist/common/table/data-table-pagination.cjs +86 -0
- package/dist/common/table/data-table-view-options.cjs +58 -0
- package/dist/common/table/datatable-view-options.cjs +17 -0
- package/dist/common/tailwind-indicator.cjs +33 -0
- package/dist/consts.cjs +1 -0
- package/dist/entry-client.cjs +2 -2
- package/dist/entry-server.cjs +2 -2
- package/dist/esm/App.d.ts +2 -1
- package/dist/esm/App.js +1 -17
- package/dist/esm/MtmButton.d.ts +2 -1
- package/dist/esm/MtmButton.js +1 -2
- package/dist/esm/NovelEditor.d.ts +2 -1
- package/dist/esm/NovelEditorLoader.d.ts +2 -1
- package/dist/esm/NovelEditorLoader.js +4 -8
- package/dist/esm/common/FullCenter.d.ts +2 -0
- package/dist/esm/common/FullCenter.js +9 -0
- package/dist/esm/common/MtImage.d.ts +5 -0
- package/dist/esm/common/MtImage.js +54 -0
- package/dist/esm/common/OnlyDebug.d.ts +2 -0
- package/dist/esm/common/OnlyDebug.js +10 -0
- package/dist/esm/common/mtlink.d.ts +8 -0
- package/dist/esm/common/mtlink.js +54 -0
- package/dist/esm/common/table/cells/ExpenderCell.d.ts +3 -0
- package/dist/esm/common/table/cells/ExpenderCell.js +34 -0
- package/dist/esm/common/table/cells/SelectCell.d.ts +13 -0
- package/dist/esm/common/table/cells/SelectCell.js +23 -0
- package/dist/esm/common/table/cells/Text.d.ts +9 -0
- package/dist/esm/common/table/cells/Text.js +16 -0
- package/dist/esm/common/table/cells/ViewLink.d.ts +13 -0
- package/dist/esm/common/table/cells/ViewLink.js +23 -0
- package/dist/esm/common/table/cells/container/cellWrapper.d.ts +6 -0
- package/dist/esm/common/table/cells/container/cellWrapper.js +8 -0
- package/dist/esm/common/table/cells/number.d.ts +3 -0
- package/dist/esm/common/table/cells/number.js +13 -0
- package/dist/esm/common/table/cells/string.d.ts +3 -0
- package/dist/esm/common/table/cells/string.js +18 -0
- package/dist/esm/common/table/data-table-pagination.d.ts +7 -0
- package/dist/esm/common/table/data-table-pagination.js +68 -0
- package/dist/esm/common/table/data-table-view-options.d.ts +7 -0
- package/dist/esm/common/table/data-table-view-options.js +35 -0
- package/dist/esm/common/table/datatable-view-options.d.ts +12 -0
- package/dist/esm/common/table/datatable-view-options.js +2 -0
- package/dist/esm/common/tailwind-indicator.d.ts +2 -0
- package/dist/esm/common/tailwind-indicator.js +10 -0
- package/dist/esm/entry-client.js +1 -2
- package/dist/esm/entry-server.js +1 -2
- package/dist/esm/icons/icons.d.ts +18 -17
- package/dist/esm/icons/icons.js +31 -41
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/lib/clientlib/clientlib.d.ts +6 -0
- package/dist/esm/lib/clientlib/clientlib.js +45 -0
- package/dist/esm/lib/clientlib/domutils.d.ts +2 -0
- package/dist/esm/lib/clientlib/domutils.js +15 -0
- package/dist/esm/lib/clientlib/selectPath.d.ts +4 -0
- package/dist/esm/lib/clientlib/selectPath.js +46 -0
- package/dist/esm/lib/connectquery/call-unary-method.d.ts +8 -0
- package/dist/esm/lib/connectquery/call-unary-method.js +48 -0
- package/dist/esm/lib/connectquery/connect-query-key.d.ts +16 -0
- package/dist/esm/lib/connectquery/connect-query-key.js +16 -0
- package/dist/esm/lib/connectquery/create-use-infinite-query-options.d.ts +21 -0
- package/dist/esm/lib/connectquery/create-use-infinite-query-options.js +93 -0
- package/dist/esm/lib/connectquery/create-use-query-options.d.ts +19 -0
- package/dist/esm/lib/connectquery/create-use-query-options.js +75 -0
- package/dist/esm/lib/connectquery/default-options.d.ts +6 -0
- package/dist/esm/lib/connectquery/default-options.js +10 -0
- package/dist/esm/lib/connectquery/index.d.ts +16 -0
- package/dist/esm/lib/connectquery/index.js +34 -0
- package/dist/esm/lib/connectquery/method-unary-descriptor.d.ts +4 -0
- package/dist/esm/lib/connectquery/method-unary-descriptor.js +1 -0
- package/dist/esm/lib/connectquery/use-infinite-query.d.ts +12 -0
- package/dist/esm/lib/connectquery/use-infinite-query.js +88 -0
- package/dist/esm/lib/connectquery/use-mutation.d.ts +10 -0
- package/dist/esm/lib/connectquery/use-mutation.js +80 -0
- package/dist/esm/lib/connectquery/use-query.d.ts +12 -0
- package/dist/esm/lib/connectquery/use-query.js +76 -0
- package/dist/esm/lib/connectquery/use-transport.d.ts +7 -0
- package/dist/esm/lib/connectquery/use-transport.js +23 -0
- package/dist/esm/lib/connectquery/utils.d.ts +12 -0
- package/dist/esm/lib/connectquery/utils.js +25 -0
- package/dist/esm/lib/http/cors.d.ts +15 -0
- package/dist/esm/lib/http/cors.js +130 -0
- package/dist/esm/lib/http/fetchMiddleWithCache.d.ts +2 -0
- package/dist/esm/lib/http/fetchMiddleWithCache.js +88 -0
- package/dist/esm/lib/http/fetchMiddleWithUrlProxy.d.ts +2 -0
- package/dist/esm/lib/http/fetchMiddleWithUrlProxy.js +30 -0
- package/dist/esm/lib/http/mthttp.d.ts +5 -0
- package/dist/esm/lib/http/mthttp.js +62 -0
- package/dist/esm/lib/http/response-cache.test.js +73 -0
- package/dist/esm/lib/jotai-helper.d.ts +23 -0
- package/dist/esm/lib/jotai-helper.js +97 -0
- package/dist/esm/lib/mt-logger.d.ts +38 -0
- package/dist/esm/lib/mt-logger.js +102 -0
- package/dist/esm/lib/mtmFetcher.d.ts +12 -0
- package/dist/esm/lib/mtmFetcher.js +107 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/conf/conf.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/conf/conf.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/mtbot/mtbotpb/bot.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/mtbot/mtbotpb/bot.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/mtps/mtpspb/mtps.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/mtps/mtpspb/mtps.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sp/sppb/sp.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sp/sppb/sp.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/ai.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/ai.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/av.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/av.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/cx.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/cx.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/events.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/events.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/job.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/job.js +1 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/mtm.d.ts +0 -0
- package/dist/esm/lib/mtmclient/descriptions/mtm/sppb/mtm.js +1 -0
- package/dist/esm/lib/mtmclient/mtm/conf/conf-ConfService_connectquery.d.ts +53 -0
- package/dist/esm/lib/mtmclient/mtm/conf/conf-ConfService_connectquery.js +61 -0
- package/dist/esm/lib/mtmclient/mtm/conf/conf_connect.d.ts +38 -0
- package/dist/esm/lib/mtmclient/mtm/conf/conf_connect.js +57 -0
- package/dist/esm/lib/mtmclient/mtm/conf/conf_pb.d.ts +480 -0
- package/dist/esm/lib/mtmclient/mtm/conf/conf_pb.js +2361 -0
- package/dist/esm/lib/mtmclient/mtm/mtbot/mtbotpb/bot-BotService_connectquery.d.ts +33 -0
- package/dist/esm/lib/mtmclient/mtm/mtbot/mtbotpb/bot-BotService_connectquery.js +39 -0
- package/dist/esm/lib/mtmclient/mtm/mtbot/mtbotpb/bot_connect.d.ts +26 -0
- package/dist/esm/lib/mtmclient/mtm/mtbot/mtbotpb/bot_connect.js +43 -0
- package/dist/esm/lib/mtmclient/mtm/mtbot/mtbotpb/bot_pb.d.ts +304 -0
- package/dist/esm/lib/mtmclient/mtm/mtbot/mtbotpb/bot_pb.js +920 -0
- package/dist/esm/lib/mtmclient/mtm/mtps/mtpspb/mtps-PsService_connectquery.d.ts +52 -0
- package/dist/esm/lib/mtmclient/mtm/mtps/mtpspb/mtps-PsService_connectquery.js +60 -0
- package/dist/esm/lib/mtmclient/mtm/mtps/mtpspb/mtps_connect.d.ts +37 -0
- package/dist/esm/lib/mtmclient/mtm/mtps/mtpspb/mtps_connect.js +56 -0
- package/dist/esm/lib/mtmclient/mtm/mtps/mtpspb/mtps_pb.d.ts +154 -0
- package/dist/esm/lib/mtmclient/mtm/mtps/mtpspb/mtps_pb.js +531 -0
- package/dist/esm/lib/mtmclient/mtm/sp/sppb/sp-SpService_connectquery.d.ts +213 -0
- package/dist/esm/lib/mtmclient/mtm/sp/sppb/sp-SpService_connectquery.js +237 -0
- package/dist/esm/lib/mtmclient/mtm/sp/sppb/sp_connect.d.ts +134 -0
- package/dist/esm/lib/mtmclient/mtm/sp/sppb/sp_connect.js +209 -0
- package/dist/esm/lib/mtmclient/mtm/sp/sppb/sp_pb.d.ts +684 -0
- package/dist/esm/lib/mtmclient/mtm/sp/sppb/sp_pb.js +2906 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/ai-AiService_connectquery.d.ts +22 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/ai-AiService_connectquery.js +27 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/ai_connect.d.ts +19 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/ai_connect.js +33 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/ai_pb.d.ts +47 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/ai_pb.js +150 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/av-AvService_connectquery.d.ts +53 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/av-AvService_connectquery.js +61 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/av_connect.d.ts +38 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/av_connect.js +57 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/av_pb.d.ts +77 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/av_pb.js +291 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/cx-CxService_connectquery.d.ts +133 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/cx-CxService_connectquery.js +149 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/cx_connect.d.ts +86 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/cx_connect.js +142 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/cx_pb.d.ts +362 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/cx_pb.js +1726 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/events_pb.d.ts +231 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/events_pb.js +875 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/job-JobService_connectquery.d.ts +33 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/job-JobService_connectquery.js +39 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/job_connect.d.ts +26 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/job_connect.js +41 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/job_pb.d.ts +116 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/job_pb.js +443 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/mtm-MtmService_connectquery.d.ts +512 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/mtm-MtmService_connectquery.js +566 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/mtm_connect.d.ts +313 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/mtm_connect.js +504 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/mtm_pb.d.ts +1885 -0
- package/dist/esm/lib/mtmclient/mtm/sppb/mtm_pb.js +7654 -0
- package/dist/esm/lib/mtmservices.d.ts +3 -0
- package/dist/esm/lib/mtmservices.js +23 -0
- package/dist/esm/lib/queue copy.d.ts +7 -0
- package/dist/esm/lib/queue copy.js +48 -0
- package/dist/esm/lib/render copy.d.ts +4 -0
- package/dist/esm/lib/render copy.js +36 -0
- package/dist/esm/lib/render.js +1 -2
- package/dist/esm/lib/sslib/mtmcore.d.ts +3 -3
- package/dist/esm/lib/url.d.ts +2 -0
- package/dist/esm/lib/url.js +70 -0
- package/dist/esm/lib/utils.d.ts +4 -2
- package/dist/esm/lib/utils.js +43 -1
- package/dist/esm/store/MtConnectProvider.d.ts +2 -0
- package/dist/esm/store/MtConnectProvider.js +18 -0
- package/dist/esm/store/ReactQueryProvider.d.ts +7 -0
- package/dist/esm/store/ReactQueryProvider.js +102 -0
- package/dist/esm/store/StorybookDecorator.d.ts +5 -0
- package/dist/esm/store/StorybookDecorator.js +20 -0
- package/dist/esm/store/appContext.d.ts +78 -0
- package/dist/esm/store/appContext.js +156 -0
- package/dist/esm/store/hydrateCore.d.ts +2 -0
- package/dist/esm/store/hydrateCore.js +49 -0
- package/dist/esm/store/logger.context.d.ts +16 -0
- package/dist/esm/store/logger.context.js +41 -0
- package/dist/esm/store/pageMeta.d.ts +3 -0
- package/dist/esm/store/pageMeta.js +15 -0
- package/dist/esm/ui/accordion.js +11 -19
- package/dist/esm/ui/alert copy.d.ts +9 -0
- package/dist/esm/ui/alert copy.js +85 -0
- package/dist/esm/ui/alert-dialog.d.ts +2 -2
- package/dist/esm/ui/alert-dialog.js +17 -21
- package/dist/esm/ui/alert.d.ts +3 -3
- package/dist/esm/ui/alert.js +3 -4
- package/dist/esm/ui/avatar.js +3 -4
- package/dist/esm/ui/badge.d.ts +4 -4
- package/dist/esm/ui/badge.js +2 -2
- package/dist/esm/ui/button.d.ts +4 -4
- package/dist/esm/ui/button.js +1 -2
- package/dist/esm/ui/calendar.d.ts +1 -1
- package/dist/esm/ui/calendar.js +4 -4
- package/dist/esm/ui/card.js +6 -7
- package/dist/esm/ui/checkbox.js +10 -15
- package/dist/esm/ui/command.d.ts +19 -19
- package/dist/esm/ui/command.js +18 -25
- package/dist/esm/ui/context-menu.d.ts +4 -4
- package/dist/esm/ui/context-menu.js +22 -35
- package/dist/esm/ui/dialog.d.ts +2 -2
- package/dist/esm/ui/dialog.js +17 -30
- package/dist/esm/ui/drawer.d.ts +4 -4
- package/dist/esm/ui/drawer.js +18 -28
- package/dist/esm/ui/dropdown-menu.d.ts +4 -4
- package/dist/esm/ui/dropdown-menu.js +22 -35
- package/dist/esm/ui/form copy.d.ts +24 -0
- package/dist/esm/ui/form copy.js +140 -0
- package/dist/esm/ui/form.d.ts +3 -3
- package/dist/esm/ui/form.js +9 -14
- package/dist/esm/ui/hover-card.js +1 -2
- package/dist/esm/ui/input.js +1 -2
- package/dist/esm/ui/label.d.ts +1 -1
- package/dist/esm/ui/label.js +1 -2
- package/dist/esm/ui/menubar.d.ts +4 -4
- package/dist/esm/ui/menubar.js +24 -37
- package/dist/esm/ui/navigation-menu.d.ts +1 -1
- package/dist/esm/ui/navigation-menu.js +25 -36
- package/dist/esm/ui/novel/content.d.ts +3 -3
- package/dist/esm/ui/novel/novel/src/components/editor-bubble-item.js +1 -2
- package/dist/esm/ui/novel/novel/src/components/editor-bubble.js +1 -5
- package/dist/esm/ui/novel/novel/src/components/editor-command-item.d.ts +4 -4
- package/dist/esm/ui/novel/novel/src/components/editor-command-item.js +4 -5
- package/dist/esm/ui/novel/novel/src/components/editor-command.d.ts +8 -8
- package/dist/esm/ui/novel/novel/src/components/editor-command.js +14 -21
- package/dist/esm/ui/novel/novel/src/components/editor.d.ts +2 -2
- package/dist/esm/ui/novel/novel/src/components/editor.js +6 -7
- package/dist/esm/ui/novel/novel/src/extensions/image-resizer.js +1 -2
- package/dist/esm/ui/novel/novel/src/extensions/slash-command.d.ts +2 -2
- package/dist/esm/ui/novel/novel/src/utils/atoms.d.ts +3 -1
- package/dist/esm/ui/novel/novel/src/utils/store.d.ts +9 -9
- package/dist/esm/ui/novel/novel/src/utils/utils.d.ts +1 -1
- package/dist/esm/ui/novel/tailwind/advanced-editor.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/advanced-editor.js +35 -58
- package/dist/esm/ui/novel/tailwind/generative/ai-completion-command.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/generative/ai-completion-command.js +30 -45
- package/dist/esm/ui/novel/tailwind/generative/ai-selector-commands.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/generative/ai-selector-commands.js +28 -37
- package/dist/esm/ui/novel/tailwind/generative/ai-selector.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/generative/ai-selector.js +43 -58
- package/dist/esm/ui/novel/tailwind/generative/generative-menu-switch.d.ts +1 -1
- package/dist/esm/ui/novel/tailwind/generative/generative-menu-switch.js +15 -23
- package/dist/esm/ui/novel/tailwind/selectors/color-selector.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/selectors/color-selector.js +55 -78
- package/dist/esm/ui/novel/tailwind/selectors/link-selector.d.ts +3 -2
- package/dist/esm/ui/novel/tailwind/selectors/link-selector.js +50 -58
- package/dist/esm/ui/novel/tailwind/selectors/node-selector.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/selectors/node-selector.js +19 -31
- package/dist/esm/ui/novel/tailwind/selectors/text-buttons.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/selectors/text-buttons.js +12 -13
- package/dist/esm/ui/novel/tailwind/slash-command.js +11 -12
- package/dist/esm/ui/novel/tailwind/ui/button.d.ts +4 -4
- package/dist/esm/ui/novel/tailwind/ui/button.js +1 -2
- package/dist/esm/ui/novel/tailwind/ui/command.d.ts +19 -19
- package/dist/esm/ui/novel/tailwind/ui/command.js +18 -25
- package/dist/esm/ui/novel/tailwind/ui/dialog.d.ts +2 -2
- package/dist/esm/ui/novel/tailwind/ui/dialog.js +17 -30
- package/dist/esm/ui/novel/tailwind/ui/icons/crazy-spinner.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/crazy-spinner.js +1 -6
- package/dist/esm/ui/novel/tailwind/ui/icons/font-default.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/font-default.js +17 -20
- package/dist/esm/ui/novel/tailwind/ui/icons/font-mono.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/font-mono.js +17 -20
- package/dist/esm/ui/novel/tailwind/ui/icons/font-serif.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/font-serif.js +17 -20
- package/dist/esm/ui/novel/tailwind/ui/icons/github.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/github.js +4 -5
- package/dist/esm/ui/novel/tailwind/ui/icons/loading-circle.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/loading-circle.js +17 -20
- package/dist/esm/ui/novel/tailwind/ui/icons/magic.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/magic.js +24 -27
- package/dist/esm/ui/novel/tailwind/ui/menu.d.ts +2 -1
- package/dist/esm/ui/novel/tailwind/ui/menu.js +16 -28
- package/dist/esm/ui/novel/tailwind/ui/popover.js +2 -3
- package/dist/esm/ui/novel/tailwind/ui/scroll-area.js +10 -18
- package/dist/esm/ui/novel/tailwind/ui/separator.js +1 -2
- package/dist/esm/ui/pagination.d.ts +5 -5
- package/dist/esm/ui/pagination.js +19 -32
- package/dist/esm/ui/popover.js +2 -3
- package/dist/esm/ui/progress.js +10 -15
- package/dist/esm/ui/radio-group.js +5 -7
- package/dist/esm/ui/resizable.d.ts +23 -23
- package/dist/esm/ui/resizable.js +5 -10
- package/dist/esm/ui/scroll-area.js +18 -26
- package/dist/esm/ui/select.js +26 -37
- package/dist/esm/ui/separator.js +1 -2
- package/dist/esm/ui/sheet.d.ts +5 -5
- package/dist/esm/ui/sheet.js +14 -24
- package/dist/esm/ui/skeleton.d.ts +1 -1
- package/dist/esm/ui/skeleton.js +1 -2
- package/dist/esm/ui/slider.js +5 -12
- package/dist/esm/ui/sonner.d.ts +1 -1
- package/dist/esm/ui/sonner.js +1 -2
- package/dist/esm/ui/switch.js +11 -12
- package/dist/esm/ui/table.js +9 -10
- package/dist/esm/ui/tabs.js +3 -4
- package/dist/esm/ui/textarea.js +1 -2
- package/dist/esm/ui/toast.d.ts +3 -3
- package/dist/esm/ui/toast.js +9 -14
- package/dist/esm/ui/toaster.d.ts +2 -1
- package/dist/esm/ui/toaster.js +4 -18
- package/dist/esm/ui/toggle.d.ts +8 -8
- package/dist/esm/ui/toggle.js +1 -2
- package/dist/esm/ui/tooltip.js +1 -2
- package/dist/esm/ui/ui-mt/Button.d.ts +2 -0
- package/dist/esm/ui/ui-mt/Button.js +6 -0
- package/dist/esm/ui/ui-mt/MtForm.d.ts +2 -0
- package/dist/esm/ui/ui-mt/MtForm.js +7 -0
- package/dist/esm/ui/ui-mt/NavTag.d.ts +7 -0
- package/dist/esm/ui/ui-mt/NavTag.js +24 -0
- package/dist/esm/ui/ui-mt/Separator.d.ts +2 -0
- package/dist/esm/ui/ui-mt/Separator.js +7 -0
- package/dist/esm/ui/ui-mt/SimpleModel.d.ts +4 -0
- package/dist/esm/ui/ui-mt/SimpleModel.js +51 -0
- package/dist/esm/ui/ui-mt/inputField/InputField.d.ts +4 -0
- package/dist/esm/ui/ui-mt/inputField/InputField.js +82 -0
- package/dist/esm/ui/ui-mt/inputField/SingleUploadForm.d.ts +3 -0
- package/dist/esm/ui/ui-mt/inputField/SingleUploadForm.js +146 -0
- package/dist/esm/ui/ui-mt/inputField/TextArea.d.ts +4 -0
- package/dist/esm/ui/ui-mt/inputField/TextArea.js +60 -0
- package/dist/esm/ui/ui-mt/inputField/TextFileInput.d.ts +8 -0
- package/dist/esm/ui/ui-mt/inputField/TextFileInput.js +102 -0
- package/dist/esm/ui/ui-mt/inputField/select/InputSelect.d.ts +8 -0
- package/dist/esm/ui/ui-mt/inputField/select/InputSelect.js +65 -0
- package/dist/esm/ui/ui-mt/inputField/types.d.ts +5 -0
- package/dist/esm/ui/ui-mt/inputField/types.js +1 -0
- package/dist/esm/ui/ui-mt/inputs/SearchInput.d.ts +4 -0
- package/dist/esm/ui/ui-mt/inputs/SearchInput.js +52 -0
- package/dist/esm/ui/ui-mt/inputs/searchBar.d.ts +2 -0
- package/dist/esm/ui/ui-mt/inputs/searchBar.js +18 -0
- package/dist/esm/ui/ui-mt/skeleton/skeleton-card.d.ts +4 -0
- package/dist/esm/ui/ui-mt/skeleton/skeleton-card.js +14 -0
- package/dist/esm/ui/ui-mt/skeleton/skeleton2.d.ts +2 -0
- package/dist/esm/ui/ui-mt/skeleton/skeleton2.js +7 -0
- package/dist/esm/ui/ui-mt/skeleton/skeletons.d.ts +6 -0
- package/dist/esm/ui/ui-mt/skeleton/skeletons.js +9 -0
- package/dist/esm/ui/ui-vamp/alert.d.ts +18 -0
- package/dist/esm/ui/ui-vamp/alert.js +124 -0
- package/dist/esm/ui/ui-vamp/avatar.d.ts +10 -0
- package/dist/esm/ui/ui-vamp/avatar.js +92 -0
- package/dist/esm/ui/ui-vamp/button.d.ts +13 -0
- package/dist/esm/ui/ui-vamp/button.js +90 -0
- package/dist/esm/ui/ui-vamp/card.d.ts +24 -0
- package/dist/esm/ui/ui-vamp/card.js +87 -0
- package/dist/esm/ui/ui-vamp/checkbox.d.ts +13 -0
- package/dist/esm/ui/ui-vamp/checkbox.js +76 -0
- package/dist/esm/ui/ui-vamp/chip.d.ts +11 -0
- package/dist/esm/ui/ui-vamp/chip.js +69 -0
- package/dist/esm/ui/ui-vamp/dropdown.d.ts +12 -0
- package/dist/esm/ui/ui-vamp/dropdown.js +96 -0
- package/dist/esm/ui/ui-vamp/external-link.d.ts +7 -0
- package/dist/esm/ui/ui-vamp/external-link.js +48 -0
- package/dist/esm/ui/ui-vamp/headline.d.ts +8 -0
- package/dist/esm/ui/ui-vamp/headline.js +7 -0
- package/dist/esm/ui/ui-vamp/input.d.ts +13 -0
- package/dist/esm/ui/ui-vamp/input.js +81 -0
- package/dist/esm/ui/ui-vamp/keyvalue.d.ts +8 -0
- package/dist/esm/ui/ui-vamp/keyvalue.js +23 -0
- package/dist/esm/ui/ui-vamp/label.d.ts +5 -0
- package/dist/esm/ui/ui-vamp/label.js +42 -0
- package/dist/esm/ui/ui-vamp/mobile-nav-button.d.ts +2 -0
- package/dist/esm/ui/ui-vamp/mobile-nav-button.js +21 -0
- package/dist/esm/ui/ui-vamp/modal.d.ts +11 -0
- package/dist/esm/ui/ui-vamp/modal.js +78 -0
- package/dist/esm/ui/ui-vamp/pagination.d.ts +8 -0
- package/dist/esm/ui/ui-vamp/pagination.js +69 -0
- package/dist/esm/ui/ui-vamp/scroll-area.d.ts +10 -0
- package/dist/esm/ui/ui-vamp/scroll-area.js +80 -0
- package/dist/esm/ui/ui-vamp/skeleton.d.ts +6 -0
- package/dist/esm/ui/ui-vamp/skeleton.js +46 -0
- package/dist/esm/ui/ui-vamp/stripe-not-connected-modal.d.ts +6 -0
- package/dist/esm/ui/ui-vamp/stripe-not-connected-modal.js +33 -0
- package/dist/esm/ui/ui-vamp/textarea.d.ts +12 -0
- package/dist/esm/ui/ui-vamp/textarea.js +74 -0
- package/dist/esm/ui/ui-vamp/toggle-group.d.ts +8 -0
- package/dist/esm/ui/ui-vamp/toggle-group.js +58 -0
- package/dist/icons/icons.cjs +32 -41
- package/dist/index.cjs +2 -2
- package/dist/lib/clientlib/clientlib.cjs +72 -0
- package/dist/lib/clientlib/domutils.cjs +39 -0
- package/dist/lib/clientlib/selectPath.cjs +69 -0
- package/dist/lib/connectquery/call-unary-method.cjs +71 -0
- package/dist/lib/connectquery/connect-query-key.cjs +40 -0
- package/dist/lib/connectquery/create-use-infinite-query-options.cjs +112 -0
- package/dist/lib/connectquery/create-use-query-options.cjs +96 -0
- package/dist/lib/connectquery/default-options.cjs +43 -0
- package/dist/lib/connectquery/index.cjs +65 -0
- package/dist/lib/connectquery/method-unary-descriptor.cjs +16 -0
- package/dist/lib/connectquery/use-infinite-query.cjs +107 -0
- package/dist/lib/connectquery/use-mutation.cjs +101 -0
- package/dist/lib/connectquery/use-query.cjs +95 -0
- package/dist/lib/connectquery/use-transport.cjs +48 -0
- package/dist/lib/connectquery/utils.cjs +51 -0
- package/dist/lib/errors.cjs +1 -0
- package/dist/lib/http/cors.cjs +151 -0
- package/dist/lib/http/fetchMiddleWithCache.cjs +111 -0
- package/dist/lib/http/fetchMiddleWithUrlProxy.cjs +53 -0
- package/dist/lib/http/mthttp.cjs +88 -0
- package/dist/lib/http/response-cache.test.cjs +73 -0
- package/dist/lib/jotai-helper.cjs +122 -0
- package/dist/lib/mt-logger.cjs +125 -0
- package/dist/lib/mtmFetcher.cjs +134 -0
- package/dist/lib/mtmclient/descriptions/mtm/conf/conf.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/mtbot/mtbotpb/bot.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/mtps/mtpspb/mtps.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/sp/sppb/sp.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/sppb/ai.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/sppb/av.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/sppb/cx.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/sppb/events.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/sppb/job.cjs +1 -0
- package/dist/lib/mtmclient/descriptions/mtm/sppb/mtm.cjs +1 -0
- package/dist/lib/mtmclient/mtm/conf/conf-ConfService_connectquery.cjs +88 -0
- package/dist/lib/mtmclient/mtm/conf/conf_connect.cjs +80 -0
- package/dist/lib/mtmclient/mtm/conf/conf_pb.cjs +2416 -0
- package/dist/lib/mtmclient/mtm/mtbot/mtbotpb/bot-BotService_connectquery.cjs +64 -0
- package/dist/lib/mtmclient/mtm/mtbot/mtbotpb/bot_connect.cjs +66 -0
- package/dist/lib/mtmclient/mtm/mtbot/mtbotpb/bot_pb.cjs +968 -0
- package/dist/lib/mtmclient/mtm/mtps/mtpspb/mtps-PsService_connectquery.cjs +87 -0
- package/dist/lib/mtmclient/mtm/mtps/mtpspb/mtps_connect.cjs +79 -0
- package/dist/lib/mtmclient/mtm/mtps/mtpspb/mtps_pb.cjs +565 -0
- package/dist/lib/mtmclient/mtm/sp/sppb/sp-SpService_connectquery.cjs +280 -0
- package/dist/lib/mtmclient/mtm/sp/sppb/sp_connect.cjs +232 -0
- package/dist/lib/mtmclient/mtm/sp/sppb/sp_pb.cjs +2979 -0
- package/dist/lib/mtmclient/mtm/sppb/ai-AiService_connectquery.cjs +51 -0
- package/dist/lib/mtmclient/mtm/sppb/ai_connect.cjs +56 -0
- package/dist/lib/mtmclient/mtm/sppb/ai_pb.cjs +175 -0
- package/dist/lib/mtmclient/mtm/sppb/av-AvService_connectquery.cjs +88 -0
- package/dist/lib/mtmclient/mtm/sppb/av_connect.cjs +80 -0
- package/dist/lib/mtmclient/mtm/sppb/av_pb.cjs +318 -0
- package/dist/lib/mtmclient/mtm/sppb/cx-CxService_connectquery.cjs +184 -0
- package/dist/lib/mtmclient/mtm/sppb/cx_connect.cjs +165 -0
- package/dist/lib/mtmclient/mtm/sppb/cx_pb.cjs +1772 -0
- package/dist/lib/mtmclient/mtm/sppb/events_pb.cjs +915 -0
- package/dist/lib/mtmclient/mtm/sppb/job-JobService_connectquery.cjs +64 -0
- package/dist/lib/mtmclient/mtm/sppb/job_connect.cjs +64 -0
- package/dist/lib/mtmclient/mtm/sppb/job_pb.cjs +474 -0
- package/dist/lib/mtmclient/mtm/sppb/mtm-MtmService_connectquery.cjs +639 -0
- package/dist/lib/mtmclient/mtm/sppb/mtm_connect.cjs +527 -0
- package/dist/lib/mtmclient/mtm/sppb/mtm_pb.cjs +7822 -0
- package/dist/lib/mtmservices.cjs +47 -0
- package/dist/lib/queue copy.cjs +70 -0
- package/dist/lib/queue.cjs +1 -0
- package/dist/lib/render copy.cjs +58 -0
- package/dist/lib/render.cjs +2 -2
- package/dist/lib/service-worker.cjs +1 -0
- package/dist/lib/sscore.cjs +1 -0
- package/dist/lib/sslib/github-file.cjs +1 -0
- package/dist/lib/sslib/mtmcore.cjs +1 -0
- package/dist/lib/url.cjs +94 -0
- package/dist/lib/useScript.cjs +1 -0
- package/dist/lib/utils.cjs +45 -0
- package/dist/store/MtConnectProvider.cjs +41 -0
- package/dist/store/ReactQueryProvider.cjs +122 -0
- package/dist/store/StorybookDecorator.cjs +43 -0
- package/dist/store/appContext.cjs +195 -0
- package/dist/store/hydrateCore.cjs +68 -0
- package/dist/store/logger.context.cjs +65 -0
- package/dist/store/pageMeta.cjs +39 -0
- package/dist/tsconfig.type.tsbuildinfo +1 -0
- package/dist/ui/accordion.cjs +12 -19
- package/dist/ui/alert copy.cjs +118 -0
- package/dist/ui/alert-dialog.cjs +18 -21
- package/dist/ui/alert.cjs +4 -4
- package/dist/ui/aspect-ratio.cjs +1 -0
- package/dist/ui/avatar.cjs +4 -4
- package/dist/ui/badge.cjs +13 -2
- package/dist/ui/button.cjs +2 -2
- package/dist/ui/calendar.cjs +15 -4
- package/dist/ui/card.cjs +7 -7
- package/dist/ui/checkbox.cjs +11 -15
- package/dist/ui/collapsible.cjs +1 -0
- package/dist/ui/command.cjs +19 -25
- package/dist/ui/context-menu.cjs +23 -35
- package/dist/ui/dialog.cjs +18 -30
- package/dist/ui/drawer.cjs +19 -28
- package/dist/ui/dropdown-menu.cjs +23 -35
- package/dist/ui/form copy.cjs +174 -0
- package/dist/ui/form.cjs +10 -14
- package/dist/ui/hover-card.cjs +2 -2
- package/dist/ui/input.cjs +2 -2
- package/dist/ui/label.cjs +2 -2
- package/dist/ui/menubar.cjs +25 -37
- package/dist/ui/navigation-menu.cjs +26 -36
- package/dist/ui/novel/content.cjs +1 -0
- package/dist/ui/novel/novel/src/components/editor-bubble-item.cjs +2 -2
- package/dist/ui/novel/novel/src/components/editor-bubble.cjs +2 -5
- package/dist/ui/novel/novel/src/components/editor-command-item.cjs +5 -5
- package/dist/ui/novel/novel/src/components/editor-command.cjs +15 -21
- package/dist/ui/novel/novel/src/components/editor.cjs +7 -7
- package/dist/ui/novel/novel/src/components/index.cjs +1 -0
- package/dist/ui/novel/novel/src/extensions/ai-highlight.cjs +1 -0
- package/dist/ui/novel/novel/src/extensions/custom-keymap.cjs +1 -0
- package/dist/ui/novel/novel/src/extensions/drag-and-drop.cjs +1 -0
- package/dist/ui/novel/novel/src/extensions/image-resizer.cjs +2 -2
- package/dist/ui/novel/novel/src/extensions/index.cjs +1 -0
- package/dist/ui/novel/novel/src/extensions/slash-command.cjs +1 -0
- package/dist/ui/novel/novel/src/extensions/updated-image.cjs +1 -0
- package/dist/ui/novel/novel/src/plugins/index.cjs +1 -0
- package/dist/ui/novel/novel/src/plugins/upload-images.cjs +1 -0
- package/dist/ui/novel/novel/src/utils/atoms.cjs +1 -0
- package/dist/ui/novel/novel/src/utils/store.cjs +1 -0
- package/dist/ui/novel/novel/src/utils/utils.cjs +1 -0
- package/dist/ui/novel/tailwind/advanced-editor.cjs +36 -58
- package/dist/ui/novel/tailwind/extensions.cjs +1 -0
- package/dist/ui/novel/tailwind/generative/ai-completion-command.cjs +31 -45
- package/dist/ui/novel/tailwind/generative/ai-selector-commands.cjs +29 -37
- package/dist/ui/novel/tailwind/generative/ai-selector.cjs +44 -58
- package/dist/ui/novel/tailwind/generative/generative-menu-switch.cjs +16 -23
- package/dist/ui/novel/tailwind/image-upload.cjs +1 -0
- package/dist/ui/novel/tailwind/selectors/color-selector.cjs +56 -78
- package/dist/ui/novel/tailwind/selectors/link-selector.cjs +51 -58
- package/dist/ui/novel/tailwind/selectors/node-selector.cjs +20 -31
- package/dist/ui/novel/tailwind/selectors/text-buttons.cjs +13 -13
- package/dist/ui/novel/tailwind/slash-command.cjs +12 -12
- package/dist/ui/novel/tailwind/ui/button.cjs +2 -2
- package/dist/ui/novel/tailwind/ui/command.cjs +19 -25
- package/dist/ui/novel/tailwind/ui/dialog.cjs +18 -30
- package/dist/ui/novel/tailwind/ui/icons/crazy-spinner.cjs +2 -6
- package/dist/ui/novel/tailwind/ui/icons/font-default.cjs +18 -20
- package/dist/ui/novel/tailwind/ui/icons/font-mono.cjs +18 -20
- package/dist/ui/novel/tailwind/ui/icons/font-serif.cjs +18 -20
- package/dist/ui/novel/tailwind/ui/icons/github.cjs +5 -5
- package/dist/ui/novel/tailwind/ui/icons/index.cjs +1 -0
- package/dist/ui/novel/tailwind/ui/icons/loading-circle.cjs +18 -20
- package/dist/ui/novel/tailwind/ui/icons/magic.cjs +25 -27
- package/dist/ui/novel/tailwind/ui/menu.cjs +17 -28
- package/dist/ui/novel/tailwind/ui/popover.cjs +3 -3
- package/dist/ui/novel/tailwind/ui/scroll-area.cjs +11 -18
- package/dist/ui/novel/tailwind/ui/separator.cjs +2 -2
- package/dist/ui/pagination.cjs +20 -32
- package/dist/ui/popover.cjs +3 -3
- package/dist/ui/progress.cjs +11 -15
- package/dist/ui/radio-group.cjs +6 -7
- package/dist/ui/resizable.cjs +6 -10
- package/dist/ui/scroll-area.cjs +19 -26
- package/dist/ui/select.cjs +27 -37
- package/dist/ui/separator.cjs +2 -2
- package/dist/ui/sheet.cjs +15 -24
- package/dist/ui/skeleton.cjs +2 -2
- package/dist/ui/slider.cjs +6 -12
- package/dist/ui/sonner.cjs +2 -2
- package/dist/ui/switch.cjs +12 -12
- package/dist/ui/table.cjs +10 -10
- package/dist/ui/tabs.cjs +4 -4
- package/dist/ui/textarea.cjs +2 -2
- package/dist/ui/toast.cjs +10 -14
- package/dist/ui/toaster.cjs +5 -18
- package/dist/ui/toggle.cjs +2 -2
- package/dist/ui/tooltip.cjs +2 -2
- package/dist/ui/ui-mt/Button.cjs +29 -0
- package/dist/ui/ui-mt/MtForm.cjs +30 -0
- package/dist/ui/ui-mt/NavTag.cjs +58 -0
- package/dist/ui/ui-mt/Separator.cjs +30 -0
- package/dist/ui/ui-mt/SimpleModel.cjs +70 -0
- package/dist/ui/ui-mt/inputField/InputField.cjs +113 -0
- package/dist/ui/ui-mt/inputField/SingleUploadForm.cjs +175 -0
- package/dist/ui/ui-mt/inputField/TextArea.cjs +91 -0
- package/dist/ui/ui-mt/inputField/TextFileInput.cjs +133 -0
- package/dist/ui/ui-mt/inputField/select/InputSelect.cjs +97 -0
- package/dist/ui/ui-mt/inputField/types.cjs +16 -0
- package/dist/ui/ui-mt/inputs/SearchInput.cjs +83 -0
- package/dist/ui/ui-mt/inputs/searchBar.cjs +41 -0
- package/dist/ui/ui-mt/skeleton/skeleton-card.cjs +47 -0
- package/dist/ui/ui-mt/skeleton/skeleton2.cjs +30 -0
- package/dist/ui/ui-mt/skeleton/skeletons.cjs +32 -0
- package/dist/ui/ui-vamp/alert.cjs +155 -0
- package/dist/ui/ui-vamp/avatar.cjs +123 -0
- package/dist/ui/ui-vamp/button.cjs +111 -0
- package/dist/ui/ui-vamp/card.cjs +118 -0
- package/dist/ui/ui-vamp/checkbox.cjs +97 -0
- package/dist/ui/ui-vamp/chip.cjs +90 -0
- package/dist/ui/ui-vamp/dropdown.cjs +127 -0
- package/dist/ui/ui-vamp/external-link.cjs +69 -0
- package/dist/ui/ui-vamp/headline.cjs +30 -0
- package/dist/ui/ui-vamp/input.cjs +102 -0
- package/dist/ui/ui-vamp/keyvalue.cjs +45 -0
- package/dist/ui/ui-vamp/label.cjs +73 -0
- package/dist/ui/ui-vamp/mobile-nav-button.cjs +54 -0
- package/dist/ui/ui-vamp/modal.cjs +109 -0
- package/dist/ui/ui-vamp/pagination.cjs +92 -0
- package/dist/ui/ui-vamp/scroll-area.cjs +111 -0
- package/dist/ui/ui-vamp/skeleton.cjs +77 -0
- package/dist/ui/ui-vamp/stripe-not-connected-modal.cjs +65 -0
- package/dist/ui/ui-vamp/textarea.cjs +95 -0
- package/dist/ui/ui-vamp/toggle-group.cjs +89 -0
- package/dist/ui/use-toast.cjs +1 -0
- package/dist/vite-env.d.cjs +1 -0
- package/package.json +14 -5
- package/dist/esm/tsconfig.type.tsbuildinfo +0 -1
package/dist/App.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -20,27 +21,11 @@ __export(App_exports, {
|
|
|
20
21
|
default: () => App_default
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(App_exports);
|
|
23
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
24
|
var import_react = require("react");
|
|
25
25
|
var import_App = require("./App.css");
|
|
26
26
|
var import_styles = require("./styles/index.css");
|
|
27
27
|
function App() {
|
|
28
28
|
const [count, setCount] = (0, import_react.useState)(0);
|
|
29
|
-
return /* @__PURE__ */ (
|
|
30
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "loading" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: "https://vitejs.dev", target: "_blank" }) }) }),
|
|
31
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { children: "Vite + React" }),
|
|
32
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "card", children: [
|
|
33
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", { onClick: () => setCount((count2) => count2 + 1), children: [
|
|
34
|
-
"count is ",
|
|
35
|
-
count
|
|
36
|
-
] }),
|
|
37
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
38
|
-
"Edit ",
|
|
39
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children: "src/App.tsx" }),
|
|
40
|
-
" and save to test HMR"
|
|
41
|
-
] })
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "read-the-docs", children: "Click on the Vite and React logos to learn more" })
|
|
44
|
-
] });
|
|
29
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(import_react.Suspense, { fallback: /* @__PURE__ */ React.createElement(React.Fragment, null, "loading") }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("a", { href: "https://vitejs.dev", target: "_blank" }))), /* @__PURE__ */ React.createElement("h1", null, "Vite + React"), /* @__PURE__ */ React.createElement("div", { className: "card" }, /* @__PURE__ */ React.createElement("button", { onClick: () => setCount((count2) => count2 + 1) }, "count is ", count), /* @__PURE__ */ React.createElement("p", null, "Edit ", /* @__PURE__ */ React.createElement("code", null, "src/App.tsx"), " and save to test HMR")), /* @__PURE__ */ React.createElement("p", { className: "read-the-docs" }, "Click on the Vite and React logos to learn more"));
|
|
45
30
|
}
|
|
46
31
|
var App_default = App;
|
package/dist/MtmButton.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -20,9 +21,8 @@ __export(MtmButton_exports, {
|
|
|
20
21
|
MtmButton: () => MtmButton
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(MtmButton_exports);
|
|
23
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
24
|
const MtmButton = () => {
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("button", { className: "bg-green-700 border" }, "MtmButton6"));
|
|
26
26
|
};
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
package/dist/NovelEditor.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -20,18 +21,14 @@ __export(NovelEditorLoader_exports, {
|
|
|
20
21
|
TWEditorLoder: () => TWEditorLoder
|
|
21
22
|
});
|
|
22
23
|
module.exports = __toCommonJS(NovelEditorLoader_exports);
|
|
23
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
24
24
|
var import_react = require("react");
|
|
25
25
|
var import_advanced_editor = require("./ui/novel/tailwind/advanced-editor");
|
|
26
26
|
const TWEditorLoder = () => {
|
|
27
27
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
28
|
-
return /* @__PURE__ */ (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, children: " load" }),
|
|
33
|
-
open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "loading" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_advanced_editor.TailwindAdvancedEditor, {}) })
|
|
34
|
-
] });
|
|
28
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("button", { onClick: () => {
|
|
29
|
+
console.log("load editor");
|
|
30
|
+
setOpen(true);
|
|
31
|
+
} }, " load"), open && /* @__PURE__ */ React.createElement(import_react.Suspense, { fallback: /* @__PURE__ */ React.createElement(React.Fragment, null, "loading") }, /* @__PURE__ */ React.createElement(import_advanced_editor.TailwindAdvancedEditor, null)));
|
|
35
32
|
};
|
|
36
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
37
34
|
0 && (module.exports = {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// src/index.tsx
|
|
2
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
2
|
var LajiComp = () => {
|
|
4
|
-
return /* @__PURE__ */
|
|
3
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("button", null, "laji button"));
|
|
5
4
|
};
|
|
6
5
|
export {
|
|
7
6
|
LajiComp
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var FullCenter_exports = {};
|
|
21
|
+
__export(FullCenter_exports, {
|
|
22
|
+
FullCenter: () => FullCenter
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(FullCenter_exports);
|
|
25
|
+
const FullCenter = (props) => {
|
|
26
|
+
const { children } = props;
|
|
27
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex h-full w-full items-center justify-center" }, /* @__PURE__ */ React.createElement("div", { className: "flex-1" }, children));
|
|
28
|
+
};
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
FullCenter
|
|
32
|
+
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __export = (target, all) => {
|
|
26
|
+
for (var name in all)
|
|
27
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
31
|
+
for (let key of __getOwnPropNames(from))
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
33
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
39
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
40
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
41
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
42
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
43
|
+
mod
|
|
44
|
+
));
|
|
45
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
|
+
var MtImage_exports = {};
|
|
47
|
+
__export(MtImage_exports, {
|
|
48
|
+
MtImage: () => MtImage
|
|
49
|
+
});
|
|
50
|
+
module.exports = __toCommonJS(MtImage_exports);
|
|
51
|
+
var import_image = __toESM(require("next/image"), 1);
|
|
52
|
+
var import_utils = require("../lib/utils");
|
|
53
|
+
const normalizeSrc = (src) => {
|
|
54
|
+
return src.startsWith("/") ? src.slice(1) : src;
|
|
55
|
+
};
|
|
56
|
+
const cloudflareLoader = ({ src, width, quality }) => {
|
|
57
|
+
const params = [`width=${width}`];
|
|
58
|
+
if (quality) {
|
|
59
|
+
params.push(`quality=${quality}`);
|
|
60
|
+
}
|
|
61
|
+
const paramsString = params.join(",");
|
|
62
|
+
return `https://cfgomtm.yuepa8.com/cdn-cgi/image/${paramsString}/${normalizeSrc(src)}`;
|
|
63
|
+
};
|
|
64
|
+
const exampleImageLoader = ({ src, width, quality }) => {
|
|
65
|
+
return `https://example.com/${src}?w=${width}&q=${quality || 75}`;
|
|
66
|
+
};
|
|
67
|
+
function getImageLoader() {
|
|
68
|
+
if ((0, import_utils.isCloudflarePage)()) {
|
|
69
|
+
return cloudflareLoader;
|
|
70
|
+
} else {
|
|
71
|
+
exampleImageLoader;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const MtImage = (props) => {
|
|
75
|
+
return /* @__PURE__ */ React.createElement(
|
|
76
|
+
import_image.default,
|
|
77
|
+
__spreadProps(__spreadValues({}, props), {
|
|
78
|
+
loader: getImageLoader()
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
MtImage
|
|
85
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var OnlyDebug_exports = {};
|
|
21
|
+
__export(OnlyDebug_exports, {
|
|
22
|
+
OnlyDebug: () => OnlyDebug
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(OnlyDebug_exports);
|
|
25
|
+
var import_appContext = require("../store/appContext");
|
|
26
|
+
const OnlyDebug = (props) => {
|
|
27
|
+
const mtapp = (0, import_appContext.useMtmApp)();
|
|
28
|
+
return mtapp.isDebug ? props.children : null;
|
|
29
|
+
};
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
OnlyDebug
|
|
33
|
+
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
48
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
49
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
50
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
51
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
52
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
53
|
+
mod
|
|
54
|
+
));
|
|
55
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
56
|
+
var mtlink_exports = {};
|
|
57
|
+
__export(mtlink_exports, {
|
|
58
|
+
MtLink: () => MtLink
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(mtlink_exports);
|
|
61
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
62
|
+
var import_link = __toESM(require("next/link"), 1);
|
|
63
|
+
var import_react = __toESM(require("react"), 1);
|
|
64
|
+
var import_utils = require("../lib/utils");
|
|
65
|
+
var import_button = require("../ui/button");
|
|
66
|
+
const MtLink = import_react.default.forwardRef(
|
|
67
|
+
(_a, ref) => {
|
|
68
|
+
var _b = _a, { className, variant, size, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild"]);
|
|
69
|
+
const Comp = asChild ? import_react_slot.Slot : import_link.default;
|
|
70
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
71
|
+
Comp,
|
|
72
|
+
__spreadValues({
|
|
73
|
+
className: (0, import_utils.cn)(
|
|
74
|
+
variant && (0, import_button.buttonVariants)({ variant, className })
|
|
75
|
+
),
|
|
76
|
+
ref
|
|
77
|
+
}, props)
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
MtLink.displayName = "MtLink";
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
MtLink
|
|
85
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __export = (target, all) => {
|
|
22
|
+
for (var name in all)
|
|
23
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
24
|
+
};
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
27
|
+
for (let key of __getOwnPropNames(from))
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
29
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
30
|
+
}
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
33
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
|
+
var ExpenderCell_exports = {};
|
|
35
|
+
__export(ExpenderCell_exports, {
|
|
36
|
+
ExpenderCell: () => ExpenderCell
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(ExpenderCell_exports);
|
|
39
|
+
var import_lucide_react = require("lucide-react");
|
|
40
|
+
var import_utils = require("../../../lib/utils");
|
|
41
|
+
const ExpenderCell = (info) => {
|
|
42
|
+
return info.row.getCanExpand() ? /* @__PURE__ */ React.createElement(
|
|
43
|
+
"button",
|
|
44
|
+
__spreadValues({
|
|
45
|
+
className: "pointer"
|
|
46
|
+
}, {
|
|
47
|
+
onClick: info.row.getToggleExpandedHandler()
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ React.createElement(import_lucide_react.ChevronRight, { className: (0, import_utils.cn)(info.row.getIsExpanded() && "rotate-90") })
|
|
50
|
+
) : "\u{1F535}";
|
|
51
|
+
};
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
ExpenderCell
|
|
55
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var SelectCell_exports = {};
|
|
31
|
+
__export(SelectCell_exports, {
|
|
32
|
+
NewSelectCell: () => NewSelectCell,
|
|
33
|
+
SelectCell: () => SelectCell
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(SelectCell_exports);
|
|
36
|
+
var import_react = __toESM(require("react"), 1);
|
|
37
|
+
var import_select = require("../../../ui/select");
|
|
38
|
+
const SelectCell = (info) => {
|
|
39
|
+
const [value, setValue] = import_react.default.useState(info.cell.getValue());
|
|
40
|
+
const onBlur = () => {
|
|
41
|
+
const numValue = parseInt(value);
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "flex w-full" }, /* @__PURE__ */ import_react.default.createElement("input", { type: "number", value, onChange: (e) => setValue(e.target.value), onBlur, className: "grow" }));
|
|
44
|
+
};
|
|
45
|
+
const NewSelectCell = ({ placeholder, items }) => {
|
|
46
|
+
const component = (_info) => {
|
|
47
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_select.Select, null, /* @__PURE__ */ import_react.default.createElement(import_select.SelectTrigger, { className: "w-[180px]" }, /* @__PURE__ */ import_react.default.createElement(import_select.SelectValue, { placeholder: placeholder || "--" })), /* @__PURE__ */ import_react.default.createElement(import_select.SelectContent, null, /* @__PURE__ */ import_react.default.createElement(import_select.SelectGroup, null, items == null ? void 0 : items.map((item, i) => {
|
|
48
|
+
return /* @__PURE__ */ import_react.default.createElement(import_select.SelectItem, { value: item.value, key: i }, item.label);
|
|
49
|
+
})))));
|
|
50
|
+
};
|
|
51
|
+
return component;
|
|
52
|
+
};
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
NewSelectCell,
|
|
56
|
+
SelectCell
|
|
57
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var Text_exports = {};
|
|
31
|
+
__export(Text_exports, {
|
|
32
|
+
NewTextCell: () => NewTextCell
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Text_exports);
|
|
35
|
+
var import_react = __toESM(require("react"), 1);
|
|
36
|
+
const NewTextCell = ({ enableEdit, placeholder, popup }) => (info) => {
|
|
37
|
+
const initialValue = info.cell.getValue();
|
|
38
|
+
const [value, setValue] = import_react.default.useState(initialValue);
|
|
39
|
+
import_react.default.useEffect(() => {
|
|
40
|
+
setValue(initialValue);
|
|
41
|
+
}, [initialValue]);
|
|
42
|
+
const onBlur = () => {
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, value);
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
NewTextCell
|
|
49
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var ViewLink_exports = {};
|
|
31
|
+
__export(ViewLink_exports, {
|
|
32
|
+
NewSelectCell: () => NewSelectCell,
|
|
33
|
+
ViewLinkCell: () => ViewLinkCell
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(ViewLink_exports);
|
|
36
|
+
var import_link = __toESM(require("next/link"), 1);
|
|
37
|
+
var import_react = __toESM(require("react"), 1);
|
|
38
|
+
var import_select = require("../../../ui/select");
|
|
39
|
+
const ViewLinkCell = (info) => {
|
|
40
|
+
const [value, setValue] = import_react.default.useState(info.cell.getValue());
|
|
41
|
+
const onBlur = () => {
|
|
42
|
+
const numValue = parseInt(value);
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_link.default, { href: "#" }, "res link"));
|
|
45
|
+
};
|
|
46
|
+
const NewSelectCell = ({ placeholder, items }) => {
|
|
47
|
+
return (info) => {
|
|
48
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_select.Select, null, /* @__PURE__ */ import_react.default.createElement(import_select.SelectTrigger, { className: "w-[180px]" }, /* @__PURE__ */ import_react.default.createElement(import_select.SelectValue, { placeholder: placeholder || "--" })), /* @__PURE__ */ import_react.default.createElement(import_select.SelectContent, null, /* @__PURE__ */ import_react.default.createElement(import_select.SelectGroup, null, items == null ? void 0 : items.map((item, i) => {
|
|
49
|
+
return /* @__PURE__ */ import_react.default.createElement(import_select.SelectItem, { value: item.value, key: i }, item.label);
|
|
50
|
+
})))));
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
NewSelectCell,
|
|
56
|
+
ViewLinkCell
|
|
57
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var cellWrapper_exports = {};
|
|
21
|
+
__export(cellWrapper_exports, {
|
|
22
|
+
CellWrapper: () => CellWrapper
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(cellWrapper_exports);
|
|
25
|
+
const CellWrapper = ({ children }) => {
|
|
26
|
+
return /* @__PURE__ */ React.createElement("div", null, children);
|
|
27
|
+
};
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
CellWrapper
|
|
31
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var number_exports = {};
|
|
31
|
+
__export(number_exports, {
|
|
32
|
+
NumberCell: () => NumberCell
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(number_exports);
|
|
35
|
+
var import_react = __toESM(require("react"), 1);
|
|
36
|
+
const NumberCell = (info) => {
|
|
37
|
+
const [value, setValue] = import_react.default.useState(info.cell.getValue());
|
|
38
|
+
const onBlur = () => {
|
|
39
|
+
const numValue = parseInt(value);
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "flex w-full" }, /* @__PURE__ */ import_react.default.createElement("input", { type: "number", value, onChange: (e) => setValue(e.target.value), onBlur, className: "grow" }));
|
|
42
|
+
};
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
NumberCell
|
|
46
|
+
});
|