@wular/coder 0.4.8 → 0.4.10
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/actions-C3Mgpl9J.js +2 -0
- package/dist/adapter-BeezVK-B.js +1 -0
- package/dist/{adapter-YCvP9H2n.js → adapter-ChaISKgI.js} +42 -42
- package/dist/{adapter-B2RXnvqt.js → adapter-MD6ahqPR.js} +6 -6
- package/dist/{add-DcR15CL7.js → add-B26QSwPY.js} +2 -2
- package/dist/add-BbXuvqj1.js +1 -0
- package/dist/add-Bk8drM-8.js +1 -0
- package/dist/add-CD_L-WW8.js +2 -0
- package/dist/agent-B8ItyuHN.js +8 -0
- package/dist/{agent-B2Ikhp7u.js → agent-DHpMqHVi.js} +1 -1
- package/dist/alias-CScCzXhS.js +2 -0
- package/dist/{app-snjvOKJA.js → app-wHQJHu6N.js} +1 -1
- package/dist/approvals-BIGQBbCM.js +2 -0
- package/dist/{approve-DAuvq9Eq.js → approve-BnZ3v-3c.js} +1 -1
- package/dist/approve-DFSy7Z72.js +2 -0
- package/dist/apps-6BgpUsFh.js +372 -0
- package/dist/archive-CU0nhUeJ.js +4 -0
- package/dist/{archive-BhfGdyuC.js → archive-CY2lvp_c.js} +2 -2
- package/dist/args-BekfmD9t.js +1 -0
- package/dist/ask-CLDgHB_Y.js +4 -0
- package/dist/auth-C3KrIUf1.js +1 -0
- package/dist/auth-CGeSfgNb.js +1 -0
- package/dist/builtin/coder/agent.json +5 -9
- package/dist/chat-AbW-LOHo.js +13 -0
- package/dist/chat-bridge-WK-pKNfw.js +2 -0
- package/dist/chat-bwKd3y6V.js +1 -0
- package/dist/cli-Fp28pM4Y.js +9 -0
- package/dist/cli.js +1 -1
- package/dist/client-DzwzCsue.js +22 -0
- package/dist/config-DoVedq6T.js +3 -0
- package/dist/{connection-CQPndo-u.js → connection-5V8doFL7.js} +1 -1
- package/dist/connection-Cb0TK201.js +1 -0
- package/dist/conversation-DT-35cEt.js +1 -0
- package/dist/create-CrjRdQip.js +1 -0
- package/dist/credentials-DoL9w8D1.js +1 -0
- package/dist/dash/standalone/server/build-index.json +1 -1
- package/dist/dash/standalone/server/manifest.json +1731 -1566
- package/dist/dash/standalone/server/modules-server-server-react-server/src/client/{index.8e150ef2bc6a5f4e.js → index.843431e3538fd9a4.js} +7 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{defaults.e6ce0944639198a2.js → defaults.1b615366c56838a1.js} +27 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/event-prompt.87f064ca0141e796.js +30 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/task/{log-view.871cbff2605b5cfd.js → log-view.60308a11f7001eb7.js} +10 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{load.4f942c7f68b2e273.js → load.7ae462ef36271be8.js} +15 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{types.9f59e6c761d6aac4.js → types.79f9092cdb5a00d1.js} +4 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/connect/{page.a4ec4bce860e3e71.js → page.806027fde54ab723.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/{page.4c818ef18a084013.js → page.bd04d2d3eba00676.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{loading.f8373428f20c270b.js → loading.e348ec45e9ed951b.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{notify.b0946ff7951ecc11.js → notify.857748e260c691e3.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{page.55eef4b0e71415d9.js → page.25153459858542f9.js} +13 -14
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/sign-out.ff98573f362d76f3.js +20 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/agent-menu.2ed0e66d131fc148.js +13 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agents-grid.3a3c550ff68aeb11.js → agents-grid.8efd14bc39281da9.js} +22 -13
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{connect-apps.7a4cfa5c917e5db9.js → connect-apps.d1e67db29b12dc0a.js} +9 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{loading.fd26a5414b0a06db.js → loading.fac1132ad9c4248e.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.b2bed855b68a77b2.js → page.0f7d5e3e42462870.js} +15 -20
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{layout.95b8bf3c438955c2.js → layout.05210ffa6038791f.js} +35 -37
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{loading.39c596735b108f80.js → loading.388aeaf0c2edf8f8.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{page.1401a08ea4e27c01.js → page.19fe116c0f802cb1.js} +87 -36
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{loading.2d6e75e5923f73f2.js → loading.4da9e2ba3fea937f.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.848ccc3a609385a9.js → page.f87fd8eb66f73af0.js} +50 -48
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{platform-actions.4b14873a20ebd56c.js → platform-actions.b6c3d3184e167d0b.js} +103 -93
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.dd8f3cbc00876ebd.js → agent-settings-form.28220621573033d7.js} +54 -82
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{loading.80f597fd04fc4a97.js → loading.ad1a4c9b000d269a.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{page.35d01036ce840ff9.js → page.2f7467868f599ebc.js} +15 -21
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{loading.ff54c7100f781fbc.js → loading.ec94096015346f2c.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{page.e5a405c518c1d8e6.js → page.a92a36a8ce21088c.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{loading.55aa8df7712e6820.js → loading.8f998a9c511e1fb3.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{page.67c3489c62b661da.js → page.8935a5fe5c08bcf1.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{versions-list.0c20e2100b321316.js → versions-list.5b97ab6d40e2e639.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/loading.bedcc1aba372fbce.js +23 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{page.7132b3ef68d33cc4.js → page.14760e9eedd6ff8e.js} +13 -24
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-pills.19e913c8cb22db21.js → agent-pills.f987c12bcbc5c850.js} +18 -13
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-toggle.ec6d07ccd1f9796e.js → agent-toggle.a6ee8bd882178e29.js} +14 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.9de48723967d8546.js → hero.8be1dd4ea3ed6e17.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{instructions.6558ffd02a59ad53.js → instructions.85b1cd986a9edbb5.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{connect-repositories.258f6c2c5f1b1b17.js → connect-repositories.59d89152fe845af2.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.9e1a0945f6880076.js → editor.77f68d431408745b.js} +56 -99
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{import-picker.e54af9841da11373.js → import-picker.a7b01817a821819a.js} +33 -39
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/loading.ee001af7a96e3972.js +28 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{page.6c8e9ef5d72b7ef1.js → page.c4570fd80bdda68c.js} +11 -19
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.c67ccee8b4770821.js → layout.19006c2d7dc8d114.js} +54 -84
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{operator-apps.3365f9248dfe735d.js → operator-apps.d350a52d27f69fa6.js} +20 -23
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{page.c60ebc5afe4dcdae.js → page.4a652f5080c2b863.js} +9 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{page.c720853404d94114.js → page.d39f7a1719f50c6d.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connections-list.544315916300ed07.js → connections-list.ff7e1dadcd4df17f.js} +77 -78
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/credentials-list.87a1f8ab71eb4bed.js +486 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials.c1a312e6ec58db83.js → credentials.a535c9c6dd8b4cdf.js} +10 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{engines-list.75dc69caed34ff8f.js → engines-list.29fffd07c1c3b771.js} +11 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{list.6d6180438e2bd0c8.js → list.0c87d55cf4ef382c.js} +46 -34
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{loading.9d7c30db2ecccda3.js → loading.7ca95dcb4fb3362b.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{models-list.04eb5a47bca3bd09.js → models-list.6fea9faddb8300bb.js} +156 -147
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{page.dd00f57d398be882.js → page.295245052b93af90.js} +23 -23
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{runners-list.e644287ae91ea8c3.js → runners-list.a4a38e54d834a1ec.js} +37 -45
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{secrets-list.35fa72bf3f00d1af.js → secrets-list.50f487766f87383c.js} +30 -21
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{layout.3a17085fb262e4ab.js → layout.c42e0ab39cb2c0e0.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{model-options.2eacf7f8ac0032df.js → model-options.a96c11d11674f598.js} +13 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{page.bac05d6e87953d0e.js → page.6997506eaa1a4824.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{settings-head.a14b9796a8af62dc.js → settings-head.bbc7ced8dd5491eb.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{tunnel-guide.1fd664df1fd0e3c1.js → tunnel-guide.29eee1a0b1852168.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{create-link.3acdd50e1cc0c729.js → create-link.9458b49dc99bbaaa.js} +6 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{outcome-dialog.d730e0bfbe0cf2f8.js → outcome-dialog.894c73f9abee3ce1.js} +8 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{page.079600422889e725.js → page.77e402bb6e8e7f7e.js} +10 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{activity.ed49ee2686d1ee41.js → activity.fcda6f18c8207c99.js} +23 -28
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{loading.0d973b51fee68801.js → loading.56520888d5270b88.js} +6 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{page.05dd344bada1d4d8.js → page.d0f039221a27b8ef.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-actions.ece7ec732352ce70.js → task-actions.f5f2016d2dc7f422.js} +29 -27
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.8a5908c42647923f.js → task-view.a292baa2410cdf64.js} +147 -90
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer-data.ff108c0ef82a4d7b.js → composer-data.309a194fc7fa34be.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.c7ec618e215d63ce.js → composer.2d4122eb33addbdd.js} +90 -140
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{task.af5001e51d2f612b.js → task.a0c68180db5fb4c1.js} +26 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-list.0976f1812d6d15f5.js → tasks-list.021bdc2f3d90af2d.js} +44 -41
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-section.fd72404364042b87.js → tasks-section.13f64b0836ae406b.js} +10 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{page.293492d13a9dca2e.js → page.b78f0df100410db0.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{custom-range.471edcb853889c2e.js → custom-range.2e21c7f891966c15.js} +25 -26
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{day-chart.d40438efa74b0596.js → day-chart.261b6651df2d3966.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{loading.5b28c7d8f3a473a3.js → loading.97d277dbab9c15cf.js} +4 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{metric.ada350d2b7449b39.js → metric.5ff3636065481c44.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{page.69adbf6cde427292.js → page.93c2306069c03c68.js} +11 -18
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/range-bar.2197d8f43216d104.js +57 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{top-agents.b00f571862b5b608.js → top-agents.18fc469e781e2305.js} +6 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{layout.ab6f86cc5b8b2dab.js → layout.185dbc99875e208a.js} +11 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/login/{page.088b41424cd6cf3c.js → page.a82be2fd23e9ac67.js} +6 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/zone.0515a688ee5ff6ca.js +17 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{drawer.0e2e3636f33049f5.js → drawer.d3e61538dbc8ec39.js} +8 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{foreign-link.fe46528a6a66c0f4.js → foreign-link.1f4217895ff1e835.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/heads.37e35439c02fc636.js +16 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/loading-card.cc76fc9708142525.js +40 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{page-head.e5d2185c1cdac740.js → page-head.85f15db7b648d48c.js} +10 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{stream.2fea238dc4f4f9a4.js → stream.95a2468086aceb84.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{task-toasts.4282affa47415a36.js → task-toasts.e1a484113e1df660.js} +12 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{theme-choices.ef190ef1cd197199.js → theme-choices.85100ed66d6f9200.js} +8 -17
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{back.af528135d7e33d6d.js → back.180765bdadf6d602.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{org.813dc34bd23a336f.js → org.572ad93c7707ab27.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{side-toggle.bafcb4b273b1c4d0.js → side-toggle.489faf1a259479f7.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/badge.c0bc352791a95fd6.js +83 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/button.ce9e6cdb08ca86db.js +91 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{card.6227f43fc0ae4bd1.js → card.9f0d45b73bc78b4f.js} +21 -12
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{collapse.dab7f208cbbe6a33.js → collapse.93e4d1b20c2873ed.js} +17 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{combo.0572dd5730c94112.js → combo.54270c0251466fda.js} +14 -40
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/confirm.c1281f9b12854210.js +27 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{copy.9be99c94423eb1ca.js → copy.bd6fc1577a393965.js} +8 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{filter.4f703a4ce7d2a519.js → filter.3a452a262f040973.js} +34 -53
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{icons.868385119bf2de28.js → icons.e36c72f54750663a.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/menu-items.1d082ac4dae8f3d4.js +145 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{menu.0f064f75822888be.js → menu.ee45bace979944b6.js} +16 -45
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{modal.92432959e3a3e2c0.js → modal.25d53e5b41b9c4e5.js} +10 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{segmented.5ac52bb38fb64ae5.js → segmented.a08dc08338d080e9.js} +13 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{select.7f481669998074f8.js → select.2eb33e5bea28d804.js} +62 -61
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{tail.30913c92f5ca6102.js → tail.04132db0c5033d4f.js} +7 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{toolbar.801bbd3163d3fbb0.js → toolbar.24036899654de6df.js} +10 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{action.568346602027ac74.js → action.968bcab0f5e3665d.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{client.d25e6dcc6704eb60.js → client.189224c16057d7a1.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/follow.bfb9bcff3c1366d7.js +32 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{format.6a7d1beaf4d09d9c.js → format.ceeaafa10a0563f3.js} +1 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{paged.18f5872fc5aebe96.js → paged.0e54c3044f8ca567.js} +1 -7
- package/dist/dash/standalone/static/assets/chunks/action-410bdc82c416bc01.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agent-pills-0c0b8d40b9bfc78f.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-5a2601316e2ab283.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agent-toggle-5ede0c449e88cb9d.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agents-grid-ffb18df48e951ecb.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/back-602db2cfdccf2e7f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/combo-df2685e277db02c0.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-08e49d49c0c3ee94.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-data-5fed6c271a4791ca.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-e1cefed81ea89b7e.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/confirm-d163e6865d66dfab.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/connect-apps-ce3c9d049ebad459.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{connect-repositories-569c181ff81509f4.js → connect-repositories-0aa9abc77b9c3d48.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/connections-list-6eddeb8583ded10f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/copy-0cc00656953531be.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/create-link-bc365f8dfe88e6b3.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/credentials-list-1b6a81e9b4934dc8.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/custom-range-cae5567874db83ca.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/defaults-52f30e83d7666f7a.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/editor-d55d247a1d7de5f0.js +6 -0
- package/dist/dash/standalone/static/assets/chunks/engines-list-288559344de4d4b9.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{field-f40df6a5289dfe05.js → field-693bb870ad0bdee8.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/format-a27067f0186e78ac.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/instructions-3f18e035338b0d0b.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/instructions-a3d7688e421f2a08.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/list-2a59237cb7cb0a7c.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/model-options-8d2170eebe0d061d.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/models-list-5ed9ee02f9b66d98.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{notice-84358e912a9f01cc.js → notice-7d84ffab32ff24ca.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-3cffe3507ea92af2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-f6fb8c69efa66508.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-4dc31567d00c4cb2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-ecd7200f7749c258.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/runners-list-984246a8f9450da1.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{runtime-37175329f2865f15-1.js → runtime-6e12333f12903a62-1.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/secrets-list-88f8b30abbab52f0.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/segmented-79c9c69b702e0b90.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-6e12333f12903a62-2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-962398d15ee67c92.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-ae95a674d381c095.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/side-toggle-7ada95cc7601eb49.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/tail-99e29a541a072002.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-95daa40d39de664f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-actions-1cdca1e8d3eee490.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-view-fdcde0e31f63b737.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/tasks-list-3ad1c93deff4fb2e.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/types-3eca2c7f47c46054.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/versions-list-60ac4d8f715bf5f7.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{wular-pnext-37175329f2865f15-0.js → wular-pnext-6e12333f12903a62-0.js} +1 -1
- package/dist/dash/standalone/static/assets/connect-a550b6f3a8c00186.css +1 -0
- package/dist/dash/standalone/static/assets/create-param-id-da3f7e20689fe51a.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-account-9471bec93c444232.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-64500e78caae32df.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-new-c067c22928a2d7cc.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-9dec87710e04f949.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-779c474301e04440.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-c7d594b5232630c2.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-a80e62570716fdb9.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-ce278252012297b9.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-d3b6d701eb8e1403.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-bcfa3de29341d5ba.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-operator-b7bc6447cc27c9ce.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-settings-6d6902345d88a687.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-85c7af9a89eef06e.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-setup-173efecd7b990c2e.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-ae0bc03f468e63cc.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-7325d8cff5be3592.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-usage-517b2a7ae462ac57.css +1 -0
- package/dist/dash/standalone/static/assets/global-87e1762113874559.css +1 -0
- package/dist/dash/standalone/static/assets/login-9760b85feae40270.css +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-0b3b70f1aefb9947.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-0d90849808b6eb05.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-12faa1754e3ef3be.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-23384b239b81a761.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-23e200dd9b7a79c0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-2562299eef46e62c.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-3a4ada64991e6a40.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-71e7ecdfcf86be84.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-726c29bbb81054c0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-825e9f5b63950ef4.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-894cff70289fb7a3.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-8f96a4b8a00ff460.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-9bc9b14c08020649.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-ab36b406301fd2a4.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-b8c585cae8da7778.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-bab4305b41abb15a.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-bd80926822b3993d.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-cd4c7b4318fa1846.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-db55344d00b7888f.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-eddcd5df2b28120f.js +1 -0
- package/dist/default-tTTSBdXq.js +1 -0
- package/dist/delete-DM2sA12f.js +2 -0
- package/dist/{delete-Dbo9goyQ.js → delete-DR37NTr1.js} +2 -2
- package/dist/disable-Dz_zLPX5.js +1 -0
- package/dist/{discover-hpHsnxqU.js → discover-CqabH4Fx.js} +2 -2
- package/dist/dispatch-BJZqI7sj.js +8 -0
- package/dist/{dist-C3wD7GfG.js → dist-B2jiMMxZ.js} +2 -2
- package/dist/{dist-DkATuPBB.js → dist-ClCNj65n.js} +2 -2
- package/dist/{dist-BTornX7Y.js → dist-DAnSqY1s.js} +2 -2
- package/dist/docs-BV9SC67g.js +2 -0
- package/dist/{docs-CYMICGEv.js → docs-b2mAKC8Z.js} +1 -1
- package/dist/drive-CU2HOCfR.js +1 -0
- package/dist/{enable-BmvNVDHO.js → enable-Cfeki-ne.js} +1 -1
- package/dist/env-DSddo-fz.js +1 -0
- package/dist/exec-DcWxZar6.js +3 -0
- package/dist/executor-LkokKTTd.js +11 -0
- package/dist/flow/builtin/review.d.ts +2 -2
- package/dist/flow/builtin/review.js +7 -14
- package/dist/flow/index.d.ts +1 -1
- package/dist/flow/index.js +1 -1
- package/dist/flow-BQcdyrVK.js +1 -0
- package/dist/history-D_A5odLI.js +8 -0
- package/dist/http-CXaW1e7x.js +1 -0
- package/dist/init-DU_S43NG.js +1 -0
- package/dist/integrations-DPxWtNnS.js +2 -0
- package/dist/integrations-Dwvxl7i2.js +1 -0
- package/dist/lib/broker.js +2 -2
- package/dist/{list-uS9iEE0F.js → list-7yd9K7d8.js} +1 -1
- package/dist/list-BJ0j5eP9.js +4 -0
- package/dist/list-Boaz5b5n.js +2 -0
- package/dist/{list-D2eSpGoo.js → list-CIS-GYO1.js} +1 -1
- package/dist/list-CR0_Emod2.js +4 -0
- package/dist/list-CnHZriYt.js +3 -0
- package/dist/list-_EH6c041.js +1 -0
- package/dist/list-i2r3Nlyz.js +1 -0
- package/dist/load-C-GZnuok.js +2 -0
- package/dist/local-Fs-dx_dP.js +5 -0
- package/dist/log-view-CL3_S0IQ.js +3 -0
- package/dist/{login-CCA0uLsW.js → login-CzD2EMD_.js} +1 -1
- package/dist/login-DISw6--d.js +1 -0
- package/dist/{logout-Cv0cm9F8.js → logout-DMnc5yri.js} +1 -1
- package/dist/{maintenance-B_79IJ_E.js → maintenance-BVDuG9Hg.js} +1 -1
- package/dist/match-BfjPZ7gJ.js +1 -0
- package/dist/mcp-B-hy3eM-.js +11 -0
- package/dist/mcp-CbN-QcpF.js +1 -0
- package/dist/mcp-server-DQqSgD3P.js +1 -0
- package/dist/model-Ckyoyji3.js +1 -0
- package/dist/models-VaiIYlOW.js +1 -0
- package/dist/prompt-DQyPCLUo.js +8 -0
- package/dist/prompts-CEf7z4i_.js +77 -0
- package/dist/push-BNomfHJ3.js +1 -0
- package/dist/reconnect-Bd_jna1M.js +1 -0
- package/dist/refresh-D-broYEx.js +1 -0
- package/dist/remote-f-uny3XZ.js +3 -0
- package/dist/remove-CCYHc1FN.js +1 -0
- package/dist/remove-DMTz_c25.js +1 -0
- package/dist/remove-DdcQ-6by.js +1 -0
- package/dist/remove-VtavIuGm.js +1 -0
- package/dist/rename-CKMyelWN.js +1 -0
- package/dist/{result-70jciKDJ.js → result-CH3_tVXO.js} +2 -2
- package/dist/result-DvOqIwhh.js +18 -0
- package/dist/{resume-xqhwHn3l.js → resume-6j3RUpqa.js} +2 -2
- package/dist/{review-vlPAshsb.js → review-B4ETH5ki.js} +2 -2
- package/dist/{index-CVjkwYeS.d.ts → review-DDYD3Yvq.d.ts} +173 -74
- package/dist/{rotate-key-CfeZ6Rg7.js → rotate-key-Byk_wI73.js} +1 -1
- package/dist/run-DKJW7qwy.js +2 -0
- package/dist/run-DkYzyUnp.js +5 -0
- package/dist/run-LCE1XiyU.js +2 -0
- package/dist/runner-CxtzTgVq.js +1 -0
- package/dist/runner-Dnu1Vx_i.js +1 -0
- package/dist/runner.json +1 -0
- package/dist/runner.tgz +0 -0
- package/dist/runners-vsoGeyuc.js +36 -0
- package/dist/schema-Brm7WIKd.js +8 -0
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +1 -1
- package/dist/{sdk-4Vjo5Q6R.d.ts → sdk-CKTCrtGe.d.ts} +649 -365
- package/dist/sdk.d.ts +4 -5
- package/dist/sdk.js +1 -1
- package/dist/serve-C1zag2nr.js +1 -0
- package/dist/{serve-BoTW4P2G.js → serve-C6tsUF0D.js} +2 -2
- package/dist/serve-CCxSxXgv.js +1 -0
- package/dist/serve-D8J-sEqm.js +12 -0
- package/dist/{server-B1x8gx33.js → server-B4SRYM2L.js} +1 -1
- package/dist/setup-host-EaP4GPKB.js +6 -0
- package/dist/show-CjUG_aIp.js +1 -0
- package/dist/show-xdsqD6de.js +1 -0
- package/dist/slack-Kpj-G9FE.js +5 -0
- package/dist/{status-ZN0HYtLa.js → status-BxV_ITeF.js} +1 -1
- package/dist/steer-DZ3nkHfC.js +4 -0
- package/dist/{stop-DTzpTbg1.js → stop-DGTUYxd6.js} +2 -2
- package/dist/stop-qDw_DjOB.js +1 -0
- package/dist/task-C506SkPR.js +1 -0
- package/dist/task-CQmx_2SI.js +7 -0
- package/dist/task-Ls_-kcSx.js +1 -0
- package/dist/test-DF_qVK6S.js +1 -0
- package/dist/tools-S3eRQOVm.js +1 -0
- package/dist/{types-BktBEKW5.d.ts → types-8zO5Tc9c.d.ts} +86 -21
- package/dist/{types-B42Oh0zF.js → types-D_xnfP7m.js} +1 -1
- package/dist/unalias-CklkAN1B.js +1 -0
- package/dist/update-CZaFjwOJ.js +2 -0
- package/dist/upgrade-CUhFmPhl.js +2 -0
- package/dist/usage-DTAlb2rC.js +1 -0
- package/dist/views-LmbLfqpu.js +5 -0
- package/dist/watch-CJruitc6.js +5 -0
- package/dist/watch-p0j69fVA.js +9 -0
- package/dist/wire-DshFMRsS.js +1 -0
- package/dist/worker-BHXjDzRp.js +1 -0
- package/dist/worker-nyRZuq4g.js +2 -0
- package/dist/{workflow-CcC-xbfp.js → workflow-CJJUiSfv.js} +1 -1
- package/docs/agents/coder.md +7 -7
- package/docs/agents/index.md +17 -19
- package/docs/agents/prompt.md +220 -0
- package/docs/cli.md +2 -2
- package/docs/config.md +5 -3
- package/docs/mcp.md +1 -1
- package/docs/review.md +1 -1
- package/docs/sdk.md +1 -1
- package/docs/self-host.md +7 -9
- package/package.json +2 -1
- package/dist/actions-5TDwmn_z.js +0 -20
- package/dist/adapter-sKt1J1Cm.js +0 -1
- package/dist/add-BDBCRqKN.js +0 -1
- package/dist/add-Df1Ezy3y.js +0 -2
- package/dist/add-yIlNqPSu.js +0 -1
- package/dist/agent-C1HI4JlI.js +0 -3
- package/dist/alias-DghaKDbh.js +0 -2
- package/dist/approvals-BziBKWgU.js +0 -2
- package/dist/approve-DKrTnZfk.js +0 -2
- package/dist/apps-aj_JtpAm.js +0 -242
- package/dist/archive-DxWYJ7Zi.js +0 -4
- package/dist/archive-sweep-CqTQUafj.js +0 -1
- package/dist/args-CxsMr9Un.js +0 -1
- package/dist/ask-B_si1yM4.js +0 -4
- package/dist/auth-B3RiDPMI.js +0 -1
- package/dist/auth-Cx4ePjWG.js +0 -1
- package/dist/chat-Bbzlea60.js +0 -1
- package/dist/chat-DLolwsuq.js +0 -13
- package/dist/chat-bridge-CvspGKBc.js +0 -2
- package/dist/cli-D5hyqGq0.js +0 -9
- package/dist/config-BdeKsCPh.js +0 -3
- package/dist/config-D2FxHWwi.js +0 -14
- package/dist/connection-wq0CJZKh.js +0 -1
- package/dist/create-8_XbAnHs.js +0 -1
- package/dist/credentials-BOAy2_-6.js +0 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/sign-out.1ee9b7f1343376e9.js +0 -13
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/agent-menu.79e38c6e4139b9de.js +0 -12
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/loading.2fa9e225a5c42496.js +0 -29
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/loading.38715a27e2d25ebd.js +0 -30
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/credentials-list.41ce6eb622300bb3.js +0 -540
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/range-bar.884e58b044238e98.js +0 -60
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/zone.dbc84f981415d8f7.js +0 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/heads.20414ddcb2d08bcd.js +0 -51
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/loading-card.df3717186948c93f.js +0 -64
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/badge.3d9163a51e6f6d6e.js +0 -43
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/confirm.fe133a074c2743af.js +0 -26
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/select.32a95ad31c0436ad.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/toolbar.40284b41c03c5dcb.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/static/assets/chunks/action-df9907c7a10bf826.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agent-pills-106a518bef96408e.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-d1aa82950d30d829.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agent-toggle-44667051d8be2040.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agents-grid-69fabb48962a282a.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/back-e02e04679467c05b.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/badge-b302b4d707908367.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/card-31a2cdcfeda5254f.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/combo-fd495e7fa91b69ed.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-10f0a825a16e1fc7.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-8c1198d45f700738.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/confirm-7b6112578a1c4877.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/connect-apps-bd95a6cbdc89a438.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/connections-list-5bbf7321d9bfd08f.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/copy-f057128db8aefd1b.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-6f6e6b87e46f67c8.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/credentials-list-8fc72c0331289ac6.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/custom-range-d06cd17fcc05183d.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/defaults-dcc0eccad4e8585b.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/editor-b5a9659f85edea17.js +0 -7
- package/dist/dash/standalone/static/assets/chunks/engines-list-c10ca5e7410b790f.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/filter-966a9aae3b0b6d77.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/format-b19b8eec331414f4.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-c9e1097c4e1b352a.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/instructions-e969d4439f6676c9.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/list-5db1dd782965a5fc.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/model-options-3a57918eaa4a2a82.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/models-list-b6237067c9a39f97.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-c4f75d37645035b8.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/paged-c44eccacea100110.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-6004e96f54953935.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-d8dd016336a3d768.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/runners-list-0b288b2b79de8968.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/secrets-list-64650cb827e93322.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/segmented-5423dcc766dc7abc.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/select-53722330d2e3f1c6.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-35a0e9007eeca198.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/shared-init-37175329f2865f15-2.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-a7f2e71a718bc285.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/shared-init-b8184e0e554d5aa4.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-e0aa7cbf9ac680b5.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/side-toggle-34ee3bbe5ac64a60.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/tail-7dece33a58f72850.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-6ae2bb4f1b384140.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-actions-b36dc5fcd9b2b2c5.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-view-1696d47594c6dbfa.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/tasks-list-7c70210e7121b95a.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/versions-list-26475f0d05e2d434.js +0 -1
- package/dist/dash/standalone/static/assets/connect-b73a327c12fa5c63.css +0 -1
- package/dist/dash/standalone/static/assets/create-param-id-d679f8832eafd7e8.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-14abc8f62d04dc4c.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-account-aba6d7e7f99c97cb.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-570ddee6de22492e.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-new-9fa9b19084b3cd2f.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-0e7e591f05cbddf5.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-f16fb90321952887.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-5cf30b084239d643.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-1c84b31df8c64b88.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-7da323ffa5be29aa.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-4900a42b805e90cb.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-operator-2f4e497a01a78f29.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-settings-0ea983332482dbc6.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-e1c1f81610bb925f.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-setup-6824fce3862dbb43.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-f914c28afa705d66.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-65c8bb06f94ff868.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-usage-5dbb2aa369c46eed.css +0 -1
- package/dist/dash/standalone/static/assets/global-eecd2b20d5e4b08d.css +0 -1
- package/dist/dash/standalone/static/assets/login-ca4c0cd7d65b3269.css +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-0bcd0cbf2549bdf2.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-22414b6c8a870c92.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-2a02ab5209cae1ea.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-46d843cfdabf3e71.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-5a50a2a4da7e870e.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-5b6ea850cead1482.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-5b94497ba23568a8.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-6686f1714e481293.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-67155accb837a12a.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-7db5d810ee904f4b.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-8d779b89650f4b7a.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-9d7a7a634c9be6ac.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-9edebc462604c881.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-aa5a424e38b430a5.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-b983cd476c808b15.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-bdf1cb75a3de35ea.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-c5177dd613b27b84.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-d998d7077d159f68.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-f01c6d0c6beb582b.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-fd4c0f3ecbcc461c.js +0 -1
- package/dist/default-CNhVH61w.js +0 -1
- package/dist/default-dQC33jLt.js +0 -1
- package/dist/delete-BDOtztW_.js +0 -2
- package/dist/disable-VvU6oDku.js +0 -1
- package/dist/discover-CBP4Uw0N.js +0 -1
- package/dist/dispatch-D3Dqxijf.js +0 -8
- package/dist/docs-3SW1O9iS.js +0 -2
- package/dist/env-C_DoQYl5.js +0 -1
- package/dist/exec-BsXFIdTl.js +0 -11
- package/dist/executor-5j-Ewzzb.js +0 -11
- package/dist/flow-4Rr-2NUz.js +0 -1
- package/dist/http-BYMXT_p6.js +0 -1
- package/dist/init-kZdO2PF5.js +0 -1
- package/dist/integrations-35T26qmP.js +0 -1
- package/dist/integrations-D3OgJk6Y.js +0 -1
- package/dist/list-CLqNS8_q.js +0 -4
- package/dist/list-CbN2giPy.js +0 -1
- package/dist/list-ChFFjT_a.js +0 -2
- package/dist/list-D0NK3Iqu.js +0 -3
- package/dist/list-D3LCULQt.js +0 -1
- package/dist/list-P2Ztf1bQ.js +0 -4
- package/dist/load-CRmQB1LD.js +0 -2
- package/dist/local-XNsjb-UM.js +0 -1
- package/dist/log-view-DB4nXHXO.js +0 -3
- package/dist/login-BoOBMH4y.js +0 -1
- package/dist/match-Kt3vFTl1.js +0 -1
- package/dist/mcp-C13n4A3y.js +0 -12
- package/dist/mcp-YhyTUMIM.js +0 -11
- package/dist/mcp-server-DGzme0YX.js +0 -1
- package/dist/model-0sxp5GdI.js +0 -1
- package/dist/models-CdvmuaLv.js +0 -1
- package/dist/prompt-C--TI1qn.js +0 -8
- package/dist/push-IpLeKMp-.js +0 -1
- package/dist/reconnect-CR3RaXX0.js +0 -1
- package/dist/refresh-D0YjtXBD.js +0 -1
- package/dist/remote-oQs6My_3.js +0 -1
- package/dist/remove-B01SXfEq.js +0 -1
- package/dist/remove-C9eahMDh.js +0 -1
- package/dist/remove-D1UOd48O.js +0 -1
- package/dist/remove-D65xtbw5.js +0 -1
- package/dist/rename-Qwr_XDxD.js +0 -1
- package/dist/result-DXL9N9Ip.js +0 -18
- package/dist/review-D-U_2KyT.d.ts +0 -157
- package/dist/run-CoTg7SkY.js +0 -2
- package/dist/run-CvdayZfK.js +0 -5
- package/dist/run-VOuS-hHe.js +0 -2
- package/dist/runner-D0TLZrrO.js +0 -1
- package/dist/runner-DME7ohjt.js +0 -1
- package/dist/runners-UNKPlmYE.js +0 -36
- package/dist/schema-BSlHRFSP.js +0 -8
- package/dist/serve-BQsv2KZs.js +0 -1
- package/dist/serve-ByWMT5Gm.js +0 -1
- package/dist/serve-HNXk3HMY.js +0 -9
- package/dist/setup-host-DExG-bWZ.js +0 -6
- package/dist/show-BeacgzZ0.js +0 -1
- package/dist/show-D3OC0c35.js +0 -1
- package/dist/slack-C_RlVDz7.js +0 -3
- package/dist/steer-DwSC8AO4.js +0 -4
- package/dist/stop-CEEiI1RA.js +0 -1
- package/dist/task-4gw9OZun.js +0 -1
- package/dist/task-CB-j4EO8.js +0 -5
- package/dist/task-IoBYe7ok.js +0 -1
- package/dist/test-BnGF24Hg.js +0 -1
- package/dist/tools-ar-D3jOh.js +0 -1
- package/dist/unalias-9AwJnbpE.js +0 -1
- package/dist/update-DoJEPBvm.js +0 -2
- package/dist/upgrade-DRPBwDYe.js +0 -2
- package/dist/usage-CItBLFFE.js +0 -1
- package/dist/views-BhsnL0nr.js +0 -5
- package/dist/watch-BMuVZorc.js +0 -9
- package/dist/watch-Bl_pCGfq.js +0 -5
- package/dist/wire-B5rc5Av6.js +0 -1
- package/dist/worker-BFGETvid.js +0 -1
- package/dist/worker-BiJ7jiOr.js +0 -9
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{errors.5954bd9bd05e8230.js → errors.0a735590a5412ea6.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.76589c15dee1732d.css.pnext-asset.js → page.cf7460a024706f75.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.3ffef848a0b0dda3.css.pnext-asset.js → page.c811938ae8a8f1df.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.2d19ea3a4d380e0d.css.pnext-asset.js → agent-settings-form.ca926c58d15044aa.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.13019680f38b0630.css.pnext-asset.js → hero.1bef5dca89b5942c.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.d2e3bc878dcb47da.css.pnext-asset.js → editor.c496247a81ed832c.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.3827c440c6421a06.css.pnext-asset.js → layout.a4efa8d807fe5416.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{operator/page.9002a449f872a10e.css.pnext-asset.js → settings/[tab]/connections-list.46786fe36b121a43.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connections-list.f742847e4887f072.css.pnext-asset.js → credentials-list.f7c27f170ec1e868.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.1236d6680ec02696.css.pnext-asset.js → list.8cbee173a5aff98d.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{list.e0ce46919b75ef76.css.pnext-asset.js → runners-list.53c7ea80b6fb734c.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{settings/[tab]/runners-list.a835c9a264cf8903.css.pnext-asset.js → tasks/[id]/task-view.57990cfd2bdf5c11.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{[id]/task-view.38b1b7ef3976ba71.css.pnext-asset.js → composer.5b8687662e1629fa.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.360b393e5938c60b.css.pnext-asset.js → list/tasks-list.abbbc9ace4d866e5.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{tasks/list/tasks-list.2282a7cef8b15bd8.css.pnext-asset.js → usage/range-bar.476c059123ef6c23.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{dash/[org]/usage/range-bar.1da88d087e3b5302.css.pnext-asset.js → globals.c8fd2b8b01e7077b.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{dash/[org]/usage/usage.775df2f43187c487.css.pnext-asset.js → login/page.586a41a7ab9988e0.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{globals.76731787d2a1aa3b.css.pnext-asset.js → responsive.ebc5f7d77b4b86a0.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/{app/login/page.57e5198339e9ca28.css.pnext-asset.js → comps/frame/drawer.0b0220d1edabce29.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/{app/responsive.82549d958fae8f00.css.pnext-asset.js → comps/frame/task-toasts.d13d9f628e530552.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/{frame/@/comps/ui/toast.a4c3e977997216cf.css.pnext-asset.js → ui/button.d7f4433f4e7faa80.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/{frame/drawer.e8201d78154045bc.css.pnext-asset.js → ui/card.f80288cc42f9bcae.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{card.15f7435f202831c3.css.pnext-asset.js → copy.fb3240de6c9479cd.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{confirm.d18497f656702a16.css.pnext-asset.js → filter.b53f21acc3e2cfef.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{copy.991f1efa061e71d6.css.pnext-asset.js → menu.25b184f68cba7b46.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{filter.e20fbd035f24ed01.css.pnext-asset.js → select.419208bb34700af2.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{menu.1d42c8d0493e2221.css.pnext-asset.js → toolbar.19e1ce5224a23acf.css.pnext-asset.js} +0 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import "./filter.
|
|
1
|
+
import "./filter.b53f21acc3e2cfef.css.pnext-asset.js";
|
|
2
2
|
import { Fragment } from "../../../../../../../node_modules/preact/dist/preact.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
|
-
import { FILTER_ROWS } from "../../utils/paged.
|
|
5
|
-
import { iLeft, iRight,
|
|
4
|
+
import { FILTER_ROWS } from "../../utils/paged.0e54c3044f8ca567.js";
|
|
5
|
+
import { iLeft, iRight, iX } from "./icons.e36c72f54750663a.js";
|
|
6
|
+
import { Chip } from "./badge.c0bc352791a95fd6.js";
|
|
6
7
|
import { Icon } from "./icon.0874ca2f58f7db14.js";
|
|
7
|
-
import { Menu
|
|
8
|
+
import { Menu } from "./menu.ee45bace979944b6.js";
|
|
9
|
+
import { LoadingMenu, MenuItem, MenuLabel, MenuNote, MenuRadio } from "./menu-items.1d082ac4dae8f3d4.js";
|
|
10
|
+
import { Search } from "./toolbar.24036899654de6df.js";
|
|
8
11
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
9
12
|
const RECENT = "coder:filters";
|
|
10
13
|
/** From this many options a facet's full list gets a find box. */
|
|
@@ -90,9 +93,7 @@ export function Filter({ name, facets, values, onChange }) {
|
|
|
90
93
|
})
|
|
91
94
|
}), /* @__PURE__ */ _jsx("span", {
|
|
92
95
|
class: "filter-chips",
|
|
93
|
-
children: chips.map((chip) => /* @__PURE__ */ _jsxs(
|
|
94
|
-
type: "button",
|
|
95
|
-
class: "chip",
|
|
96
|
+
children: chips.map((chip) => /* @__PURE__ */ _jsxs(Chip, {
|
|
96
97
|
title: chip.text,
|
|
97
98
|
"aria-label": `Clear ${chip.text}`,
|
|
98
99
|
onClick: () => onChange(chip.key, ""),
|
|
@@ -103,6 +104,12 @@ export function Filter({ name, facets, values, onChange }) {
|
|
|
103
104
|
}, chip.key))
|
|
104
105
|
})] });
|
|
105
106
|
}
|
|
107
|
+
/** The Filter button while its list loads, inert. */
|
|
108
|
+
export const LoadingFilter = () => /* @__PURE__ */ _jsx(LoadingMenu, {
|
|
109
|
+
class: "filter-more",
|
|
110
|
+
summaryClass: "field-btn",
|
|
111
|
+
summary: "Filter"
|
|
112
|
+
});
|
|
106
113
|
/** The menu's facets; a long facet opens its own list in place, and Escape steps back out of it. */
|
|
107
114
|
function FilterPanel({ name, facets, values, seen, onFound, onPick }) {
|
|
108
115
|
const root = useRef(null);
|
|
@@ -122,7 +129,7 @@ function FilterPanel({ name, facets, values, seen, onFound, onPick }) {
|
|
|
122
129
|
useEffect(() => {
|
|
123
130
|
const pop = root.current.closest("[popover]");
|
|
124
131
|
const toggle = (event) => {
|
|
125
|
-
if (event.newState === "open") focus("
|
|
132
|
+
if (event.newState === "open") focus("button");
|
|
126
133
|
else show();
|
|
127
134
|
};
|
|
128
135
|
pop.addEventListener("toggle", toggle);
|
|
@@ -149,7 +156,7 @@ function FilterPanel({ name, facets, values, seen, onFound, onPick }) {
|
|
|
149
156
|
};
|
|
150
157
|
const searching = Boolean(open?.search && typed && !found);
|
|
151
158
|
const onKeyDown = (event) => {
|
|
152
|
-
const items = [...root.current.querySelectorAll("input,
|
|
159
|
+
const items = [...root.current.querySelectorAll("input, button")];
|
|
153
160
|
const at = items.indexOf(document.activeElement);
|
|
154
161
|
const target = event.target;
|
|
155
162
|
const key = event.key;
|
|
@@ -169,26 +176,17 @@ function FilterPanel({ name, facets, values, seen, onFound, onPick }) {
|
|
|
169
176
|
class: "filter-panel",
|
|
170
177
|
onKeyDown,
|
|
171
178
|
children: open ? /* @__PURE__ */ _jsxs(_Fragment, { children: [
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
type: "button",
|
|
174
|
-
class: "pop-item",
|
|
179
|
+
/* @__PURE__ */ _jsx(MenuItem, {
|
|
175
180
|
"data-keep": true,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
children: open.label
|
|
180
|
-
})]
|
|
181
|
+
icon: iLeft,
|
|
182
|
+
title: open.label,
|
|
183
|
+
onClick: () => show()
|
|
181
184
|
}),
|
|
182
|
-
findable(open) ? /* @__PURE__ */
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
placeholder: `Find ${open.label.toLowerCase()}`,
|
|
188
|
-
"aria-label": `Find ${open.label.toLowerCase()}`,
|
|
189
|
-
autocomplete: "off",
|
|
190
|
-
onInput: (event) => setQ(event.currentTarget.value)
|
|
191
|
-
})]
|
|
185
|
+
findable(open) ? /* @__PURE__ */ _jsx(Search, {
|
|
186
|
+
value: q,
|
|
187
|
+
label: `Find ${open.label.toLowerCase()}`,
|
|
188
|
+
autocomplete: "off",
|
|
189
|
+
onInput: setQ
|
|
192
190
|
}) : null,
|
|
193
191
|
/* @__PURE__ */ _jsx("div", {
|
|
194
192
|
role: "group",
|
|
@@ -201,22 +199,13 @@ function FilterPanel({ name, facets, values, seen, onFound, onPick }) {
|
|
|
201
199
|
children: label
|
|
202
200
|
}, value))
|
|
203
201
|
}),
|
|
204
|
-
list.more ? /* @__PURE__ */ _jsx("
|
|
205
|
-
class: "pop-note",
|
|
206
|
-
children: "Type to find more."
|
|
207
|
-
}) : !list.shown.length && !searching ? /* @__PURE__ */ _jsx("p", {
|
|
208
|
-
class: "pop-note",
|
|
209
|
-
children: "Nothing matches."
|
|
210
|
-
}) : null
|
|
202
|
+
list.more ? /* @__PURE__ */ _jsx(MenuNote, { children: "Type to find more." }) : !list.shown.length && !searching ? /* @__PURE__ */ _jsx(MenuNote, { children: "Nothing matches." }) : null
|
|
211
203
|
] }) : facets.map((facet) => {
|
|
212
204
|
const picks = facet.options.filter(([value]) => facet.inline || value);
|
|
213
205
|
if (!picks.length) return null;
|
|
214
206
|
const shown = inlineRows(picks, values[facet.key]);
|
|
215
207
|
return /* @__PURE__ */ _jsxs(Fragment, { children: [
|
|
216
|
-
/* @__PURE__ */ _jsx(
|
|
217
|
-
class: "pop-label",
|
|
218
|
-
children: facet.label
|
|
219
|
-
}),
|
|
208
|
+
/* @__PURE__ */ _jsx(MenuLabel, { children: facet.label }),
|
|
220
209
|
/* @__PURE__ */ _jsx("div", {
|
|
221
210
|
role: "group",
|
|
222
211
|
"aria-label": facet.label,
|
|
@@ -227,24 +216,16 @@ function FilterPanel({ name, facets, values, seen, onFound, onPick }) {
|
|
|
227
216
|
children: label
|
|
228
217
|
}, value))
|
|
229
218
|
}),
|
|
230
|
-
picks.length > shown.length ? /* @__PURE__ */
|
|
231
|
-
type: "button",
|
|
232
|
-
class: "pop-item",
|
|
219
|
+
picks.length > shown.length ? /* @__PURE__ */ _jsx(MenuItem, {
|
|
233
220
|
"data-keep": true,
|
|
234
221
|
"data-facet": facet.key,
|
|
235
222
|
"aria-haspopup": "true",
|
|
236
|
-
|
|
237
|
-
children: [
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
/* @__PURE__ */ _jsx("span", {
|
|
243
|
-
class: "muted",
|
|
244
|
-
children: picks.length - shown.length
|
|
245
|
-
}),
|
|
246
|
-
/* @__PURE__ */ _jsx(Icon, { d: iRight })
|
|
247
|
-
]
|
|
223
|
+
title: "More",
|
|
224
|
+
end: /* @__PURE__ */ _jsxs(_Fragment, { children: [/* @__PURE__ */ _jsx("span", {
|
|
225
|
+
class: "muted",
|
|
226
|
+
children: picks.length - shown.length
|
|
227
|
+
}), /* @__PURE__ */ _jsx(Icon, { d: iRight })] }),
|
|
228
|
+
onClick: () => show(facet)
|
|
248
229
|
}) : null
|
|
249
230
|
] }, facet.key);
|
|
250
231
|
})
|
|
@@ -13,6 +13,7 @@ export const iMonitor = "M4 4h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V
|
|
|
13
13
|
export const iKey = "M2 15.5a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0M21 2l-9.6 9.6M15.5 7.5l3 3L22 7l-3-3";
|
|
14
14
|
export const iUsers = "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8";
|
|
15
15
|
export const iUser = "M8 8a4 4 0 1 0 8 0a4 4 0 1 0 -8 0M4 21a8 8 0 0 1 16 0";
|
|
16
|
+
export const iExternal = "M7 17 17 7M8 7h9v9";
|
|
16
17
|
export const iOut = "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9";
|
|
17
18
|
export const iSpark = "m12 3 1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9ZM19 3v4M17 5h4";
|
|
18
19
|
export const iGit = "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.7-.9l-.8-1.2A2 2 0 0 0 7.9 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2ZM10 13a2 2 0 1 0 4 0a2 2 0 1 0 -4 0M14 13h3M7 13h3";
|
|
@@ -27,7 +28,6 @@ export const iPlus = "M12 5v14M5 12h14";
|
|
|
27
28
|
export const iPencil = "M4 20h4L19 9l-4-4L4 16v4ZM13 7l4 4";
|
|
28
29
|
export const iMessage = "M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12Z";
|
|
29
30
|
export const iSteer = "M4 12h12M12 6l6 6-6 6";
|
|
30
|
-
export const iAsk = "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .8-1 1.5M12 17h.01";
|
|
31
31
|
export const iShuffle = "M16 4h4v4M20 4l-7 7M4 20l6-6M16 20h4v-4M20 20l-5-5M4 4l5 5";
|
|
32
32
|
export const iSearch = "M4 11a7 7 0 1 0 14 0a7 7 0 1 0 -14 0M20 20l-3.5-3.5";
|
|
33
33
|
export const iAlert = "m21.7 18-8-14a2 2 0 0 0-3.4 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3M12 9v4M12 17h.01";
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import "./menu.25b184f68cba7b46.css.pnext-asset.js";
|
|
2
|
+
import { Link } from "../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
3
|
+
import { iCheck } from "./icons.e36c72f54750663a.js";
|
|
4
|
+
import { Icon } from "./icon.0874ca2f58f7db14.js";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
6
|
+
const classOf = (...names) => ["pop-item", ...names].filter(Boolean).join(" ");
|
|
7
|
+
function Content({ icon, sub, end, children }) {
|
|
8
|
+
return /* @__PURE__ */ _jsxs(_Fragment, { children: [
|
|
9
|
+
typeof icon === "string" ? /* @__PURE__ */ _jsx(Icon, { d: icon }) : icon,
|
|
10
|
+
/* @__PURE__ */ _jsxs("span", {
|
|
11
|
+
class: "grow",
|
|
12
|
+
children: [children, sub ? /* @__PURE__ */ _jsx("small", { children: sub }) : null]
|
|
13
|
+
}),
|
|
14
|
+
end
|
|
15
|
+
] });
|
|
16
|
+
}
|
|
17
|
+
/** A menu row that acts; with `sub` it aligns to its top. */
|
|
18
|
+
export function MenuItem({ icon, title, sub, end, href, type = "button", disabled, danger, ...rest }) {
|
|
19
|
+
const cls = classOf(sub ? "rich" : false, danger && "danger");
|
|
20
|
+
const content = /* @__PURE__ */ _jsx(Content, {
|
|
21
|
+
icon,
|
|
22
|
+
sub,
|
|
23
|
+
end,
|
|
24
|
+
children: title
|
|
25
|
+
});
|
|
26
|
+
if (disabled) return /* @__PURE__ */ _jsx("div", {
|
|
27
|
+
class: cls,
|
|
28
|
+
"aria-disabled": "true",
|
|
29
|
+
children: content
|
|
30
|
+
});
|
|
31
|
+
if (href) return /* @__PURE__ */ _jsx("a", {
|
|
32
|
+
...rest,
|
|
33
|
+
class: cls,
|
|
34
|
+
href,
|
|
35
|
+
children: content
|
|
36
|
+
});
|
|
37
|
+
return /* @__PURE__ */ _jsx("button", {
|
|
38
|
+
...rest,
|
|
39
|
+
type,
|
|
40
|
+
class: cls,
|
|
41
|
+
children: content
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/** A `MenuItem` that links to an in-app page, with `Link`'s typed route and params. */
|
|
45
|
+
export function MenuLink({ icon, sub, end, class: cls, children, ...link }) {
|
|
46
|
+
return /* @__PURE__ */ _jsx(Link, {
|
|
47
|
+
...link,
|
|
48
|
+
class: classOf(sub ? "rich" : false, cls),
|
|
49
|
+
children: /* @__PURE__ */ _jsx(Content, {
|
|
50
|
+
icon,
|
|
51
|
+
sub,
|
|
52
|
+
end,
|
|
53
|
+
children
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/** One choice in a menu section; the picked one shows its check. */
|
|
58
|
+
export function MenuRadio({ on, onPick, href, disabled, icon, sub, end, children }) {
|
|
59
|
+
const props = {
|
|
60
|
+
role: "menuitemradio",
|
|
61
|
+
"aria-checked": on,
|
|
62
|
+
class: classOf(on && "on", sub ? "rich" : false)
|
|
63
|
+
};
|
|
64
|
+
const content = /* @__PURE__ */ _jsx(Content, {
|
|
65
|
+
icon,
|
|
66
|
+
sub,
|
|
67
|
+
end: /* @__PURE__ */ _jsxs(_Fragment, { children: [end, /* @__PURE__ */ _jsx(Icon, { d: iCheck })] }),
|
|
68
|
+
children
|
|
69
|
+
});
|
|
70
|
+
if (disabled) return /* @__PURE__ */ _jsx("div", {
|
|
71
|
+
...props,
|
|
72
|
+
"aria-disabled": "true",
|
|
73
|
+
children: content
|
|
74
|
+
});
|
|
75
|
+
if (href) return /* @__PURE__ */ _jsx("a", {
|
|
76
|
+
href,
|
|
77
|
+
...props,
|
|
78
|
+
children: content
|
|
79
|
+
});
|
|
80
|
+
return /* @__PURE__ */ _jsx("button", {
|
|
81
|
+
type: "button",
|
|
82
|
+
...props,
|
|
83
|
+
onClick: onPick,
|
|
84
|
+
children: content
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/** One option of a listbox; `active` follows the pointer and arrows, `check` marks the selected one. */
|
|
88
|
+
export function MenuOption({ active, selected, check, icon, sub, end, class: cls, children, ...rest }) {
|
|
89
|
+
return /* @__PURE__ */ _jsx("div", {
|
|
90
|
+
...rest,
|
|
91
|
+
role: "option",
|
|
92
|
+
"aria-selected": selected,
|
|
93
|
+
class: classOf(active && "on", cls),
|
|
94
|
+
children: /* @__PURE__ */ _jsx(Content, {
|
|
95
|
+
icon,
|
|
96
|
+
sub,
|
|
97
|
+
end: /* @__PURE__ */ _jsxs(_Fragment, { children: [end, check ? /* @__PURE__ */ _jsx(Icon, { d: iCheck }) : null] }),
|
|
98
|
+
children
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/** A section title in a menu. */
|
|
103
|
+
export const MenuLabel = ({ children, ...rest }) => /* @__PURE__ */ _jsx("p", {
|
|
104
|
+
...rest,
|
|
105
|
+
class: "pop-label",
|
|
106
|
+
children
|
|
107
|
+
});
|
|
108
|
+
/** A muted line in a menu, like an empty list's explanation. */
|
|
109
|
+
export const MenuNote = ({ children }) => /* @__PURE__ */ _jsx("p", {
|
|
110
|
+
class: "pop-note",
|
|
111
|
+
children
|
|
112
|
+
});
|
|
113
|
+
/** Who or what the menu is about, above its sections. */
|
|
114
|
+
export const MenuHead = ({ icon, title, sub }) => /* @__PURE__ */ _jsxs("div", {
|
|
115
|
+
class: "pop-head",
|
|
116
|
+
children: [icon, /* @__PURE__ */ _jsxs("div", {
|
|
117
|
+
class: "grow",
|
|
118
|
+
children: [/* @__PURE__ */ _jsx("b", { children: title }), /* @__PURE__ */ _jsx("small", { children: sub })]
|
|
119
|
+
})]
|
|
120
|
+
});
|
|
121
|
+
/** An item with a control beside it, like a chevron that opens more under it. */
|
|
122
|
+
export const MenuRow = ({ children }) => /* @__PURE__ */ _jsx("div", {
|
|
123
|
+
class: "pop-row",
|
|
124
|
+
children
|
|
125
|
+
});
|
|
126
|
+
/** A menu's button before its page arrives, inert; a client `Menu` there would hydrate for nothing. */
|
|
127
|
+
export const LoadingMenu = ({ summary, summaryClass, class: cls }) => /* @__PURE__ */ _jsx("span", {
|
|
128
|
+
class: cls ? `menu ${cls}` : "menu",
|
|
129
|
+
children: /* @__PURE__ */ _jsx("button", {
|
|
130
|
+
type: "button",
|
|
131
|
+
class: summaryClass,
|
|
132
|
+
disabled: true,
|
|
133
|
+
tabIndex: -1,
|
|
134
|
+
children: summary
|
|
135
|
+
})
|
|
136
|
+
});
|
|
137
|
+
/** A menu's panel that its own code opens, like a select's list; `panelRef` reaches the element. */
|
|
138
|
+
export function MenuPanel({ panelRef, class: cls, children, ...rest }) {
|
|
139
|
+
return /* @__PURE__ */ _jsx("div", {
|
|
140
|
+
...rest,
|
|
141
|
+
ref: panelRef,
|
|
142
|
+
class: cls ? `pop ${cls}` : "pop",
|
|
143
|
+
children
|
|
144
|
+
});
|
|
145
|
+
}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./menu.
|
|
2
|
+
import "./menu.25b184f68cba7b46.css.pnext-asset.js";
|
|
3
3
|
import { useId, useRef } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { Button, IconButton } from "./button.ce9e6cdb08ca86db.js";
|
|
5
|
+
import { iInfo } from "./icons.e36c72f54750663a.js";
|
|
5
6
|
import { Icon } from "./icon.0874ca2f58f7db14.js";
|
|
6
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
7
8
|
/** A button and its popover panel, placed at the button; picking an item, an outside click or Escape closes it. */
|
|
8
|
-
export function Menu({ summary, summaryClass, label, tip, align = "right", wide, class: cls, children }) {
|
|
9
|
+
export function Menu({ summary, summaryClass, button, label, tip, align = "right", wide, class: cls, children }) {
|
|
9
10
|
const id = useId();
|
|
10
11
|
return /* @__PURE__ */ _jsxs("span", {
|
|
11
12
|
class: `menu ${align}${cls ? ` ${cls}` : ""}`,
|
|
12
|
-
children: [/* @__PURE__ */ _jsx(
|
|
13
|
+
children: [button === "icon" ? /* @__PURE__ */ _jsx(IconButton, {
|
|
14
|
+
popovertarget: id,
|
|
15
|
+
label: label ?? "",
|
|
16
|
+
children: summary
|
|
17
|
+
}) : button ? /* @__PURE__ */ _jsx(Button, {
|
|
18
|
+
...button,
|
|
19
|
+
popovertarget: id,
|
|
20
|
+
"aria-label": label,
|
|
21
|
+
title: tip ? undefined : label,
|
|
22
|
+
children: summary
|
|
23
|
+
}) : /* @__PURE__ */ _jsx("button", {
|
|
13
24
|
popovertarget: id,
|
|
14
25
|
type: "button",
|
|
15
26
|
class: summaryClass,
|
|
@@ -44,28 +55,6 @@ export function Menu({ summary, summaryClass, label, tip, align = "right", wide,
|
|
|
44
55
|
})]
|
|
45
56
|
});
|
|
46
57
|
}
|
|
47
|
-
export function MenuItem({ icon, title, sub, href, onClick, danger }) {
|
|
48
|
-
const inner = /* @__PURE__ */ _jsxs(_Fragment, { children: [icon ? /* @__PURE__ */ _jsx(Icon, { d: icon }) : null, /* @__PURE__ */ _jsxs("span", {
|
|
49
|
-
class: "grow",
|
|
50
|
-
children: [title, sub ? /* @__PURE__ */ _jsx("small", { children: sub }) : null]
|
|
51
|
-
})] });
|
|
52
|
-
const cls = `pop-item${sub ? " rich" : ""}${danger ? " danger" : ""}`;
|
|
53
|
-
if (href) return /* @__PURE__ */ _jsx("a", {
|
|
54
|
-
class: cls,
|
|
55
|
-
href,
|
|
56
|
-
.../^https?:\/\//.test(href) ? {
|
|
57
|
-
target: "_blank",
|
|
58
|
-
rel: "noreferrer"
|
|
59
|
-
} : {},
|
|
60
|
-
children: inner
|
|
61
|
-
});
|
|
62
|
-
return /* @__PURE__ */ _jsx("button", {
|
|
63
|
-
type: "button",
|
|
64
|
-
class: cls,
|
|
65
|
-
onClick,
|
|
66
|
-
children: inner
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
58
|
/** A fixed "+n more" that opens the rest in a scrolling list, on hover or click; `title` names an icon-only trigger. */
|
|
70
59
|
export function MoreList({ label, title, class: cls, children }) {
|
|
71
60
|
const id = useId();
|
|
@@ -103,21 +92,3 @@ export const InfoTip = ({ label, children }) => /* @__PURE__ */ _jsx(MoreList, {
|
|
|
103
92
|
class: "info",
|
|
104
93
|
children
|
|
105
94
|
});
|
|
106
|
-
/** One choice in a menu section; the picked one shows a check. */
|
|
107
|
-
export function MenuRadio({ on, onPick, icon, children }) {
|
|
108
|
-
return /* @__PURE__ */ _jsxs("button", {
|
|
109
|
-
type: "button",
|
|
110
|
-
role: "menuitemradio",
|
|
111
|
-
"aria-checked": on,
|
|
112
|
-
class: on ? "pop-item on" : "pop-item",
|
|
113
|
-
onClick: onPick,
|
|
114
|
-
children: [
|
|
115
|
-
typeof icon === "string" ? /* @__PURE__ */ _jsx(Icon, { d: icon }) : icon,
|
|
116
|
-
/* @__PURE__ */ _jsx("span", {
|
|
117
|
-
class: "grow",
|
|
118
|
-
children
|
|
119
|
-
}),
|
|
120
|
-
on ? /* @__PURE__ */ _jsx(Icon, { d: iCheck }) : null
|
|
121
|
-
]
|
|
122
|
-
});
|
|
123
|
-
}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
import "./modal.9db07d368dcf5981.css.pnext-asset.js";
|
|
3
3
|
import { toChildArray } from "../../../../../../../node_modules/preact/dist/preact.mjs";
|
|
4
4
|
import { useEffect, useId, useRef } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { Button, IconButton } from "./button.ce9e6cdb08ca86db.js";
|
|
6
|
+
import { iX } from "./icons.e36c72f54750663a.js";
|
|
6
7
|
import { Icon } from "./icon.0874ca2f58f7db14.js";
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
8
9
|
/** A modal with a title, a body and its actions after a cancel button; Escape, Cancel or a backdrop click closes it, never while busy. */
|
|
9
|
-
export function Modal({ open = true, class: className, tone, title, icon, dismiss, busy, cancel = "Cancel", focus = "cancel", actions, onSubmit, onClose, children }) {
|
|
10
|
+
export function Modal({ open = true, class: className, tone, title, icon, dismiss, busy, cancel = "Cancel", cancelDanger, focus = "cancel", actions, onSubmit, onClose, children }) {
|
|
10
11
|
const dialog = useRef(null);
|
|
11
12
|
const id = useId();
|
|
12
13
|
useEffect(() => {
|
|
@@ -41,20 +42,18 @@ export function Modal({ open = true, class: className, tone, title, icon, dismis
|
|
|
41
42
|
id,
|
|
42
43
|
children: title
|
|
43
44
|
}),
|
|
44
|
-
dismiss ? /* @__PURE__ */ _jsx(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
onClick: close,
|
|
49
|
-
children: /* @__PURE__ */ _jsx(Icon, { d: iX })
|
|
45
|
+
dismiss ? /* @__PURE__ */ _jsx(IconButton, {
|
|
46
|
+
icon: iX,
|
|
47
|
+
label: "Close",
|
|
48
|
+
onClick: close
|
|
50
49
|
}) : null
|
|
51
50
|
] }),
|
|
52
51
|
children,
|
|
53
52
|
/* @__PURE__ */ _jsxs("div", {
|
|
54
53
|
class: "actions",
|
|
55
|
-
children: [/* @__PURE__ */ _jsx(
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
children: [/* @__PURE__ */ _jsx(Button, {
|
|
55
|
+
variant: alone ? "primary" : "ghost",
|
|
56
|
+
danger: !alone && cancelDanger,
|
|
58
57
|
disabled: busy,
|
|
59
58
|
autofocus: focus === "cancel",
|
|
60
59
|
onClick: close,
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import "./segmented.0bd8652fdbc05eb0.css.pnext-asset.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Link } from "../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
3
4
|
/** One-click choices in a row, a radio group to the keyboard: arrows move and pick, Enter submits the form. */
|
|
4
|
-
export function Segmented({ label, options, value, onChange, class: cls, disabled }) {
|
|
5
|
+
export function Segmented({ label, options, value, onChange, link, class: cls, disabled, children }) {
|
|
6
|
+
if (!onChange) return /* @__PURE__ */ _jsxs("div", {
|
|
7
|
+
class: cls ? `seg-btns ${cls}` : "seg-btns",
|
|
8
|
+
role: "group",
|
|
9
|
+
"aria-label": label,
|
|
10
|
+
children: [options.map(([key, text]) => link ? /* @__PURE__ */ _jsx(Link, {
|
|
11
|
+
...link(key),
|
|
12
|
+
"aria-current": key === value ? "page" : undefined,
|
|
13
|
+
children: text
|
|
14
|
+
}, key) : /* @__PURE__ */ _jsx("a", { children: text }, key)), children]
|
|
15
|
+
});
|
|
5
16
|
const at = Math.max(0, options.findIndex(([key]) => key === value));
|
|
6
17
|
return /* @__PURE__ */ _jsx("div", {
|
|
7
18
|
class: cls ? `seg-btns ${cls}` : "seg-btns",
|
|
@@ -1,10 +1,35 @@
|
|
|
1
|
-
import "./select.
|
|
1
|
+
import "./select.419208bb34700af2.css.pnext-asset.js";
|
|
2
2
|
import { Fragment } from "../../../../../../../node_modules/preact/dist/preact.mjs";
|
|
3
3
|
import { useId, useLayoutEffect, useRef, useState } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { iDown, iPlus } from "./icons.e36c72f54750663a.js";
|
|
5
5
|
import { Icon } from "./icon.0874ca2f58f7db14.js";
|
|
6
|
+
import { MenuLabel, MenuOption, MenuPanel } from "./menu-items.1d082ac4dae8f3d4.js";
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
7
8
|
const PAGE = 10;
|
|
9
|
+
/** A top-layer list's place at `anchor`, flipped up near the bottom, following scrolls and resizes; a dialog or scroll box never clips it. */
|
|
10
|
+
export function usePlace(anchor, list, open, max, deps = []) {
|
|
11
|
+
const [place, setPlace] = useState("");
|
|
12
|
+
useLayoutEffect(() => {
|
|
13
|
+
if (!open) return;
|
|
14
|
+
list.current?.showPopover();
|
|
15
|
+
const position = () => {
|
|
16
|
+
const box = anchor.current?.getBoundingClientRect();
|
|
17
|
+
const menu = list.current;
|
|
18
|
+
if (!box || !menu) return;
|
|
19
|
+
const below = innerHeight - box.bottom - 12;
|
|
20
|
+
const up = below < Math.min(menu.scrollHeight, 240) && box.top > below;
|
|
21
|
+
setPlace(`left:${Math.round(Math.min(box.left, innerWidth - menu.offsetWidth - 8))}px;min-width:${Math.round(box.width)}px;` + (up ? `bottom:${Math.round(innerHeight - box.top + 4)}px;max-height:${Math.round(Math.min(max, box.top - 12))}px` : `top:${Math.round(box.bottom + 4)}px;max-height:${Math.round(Math.min(max, below))}px`));
|
|
22
|
+
};
|
|
23
|
+
position();
|
|
24
|
+
addEventListener("resize", position);
|
|
25
|
+
addEventListener("scroll", position, true);
|
|
26
|
+
return () => {
|
|
27
|
+
removeEventListener("resize", position);
|
|
28
|
+
removeEventListener("scroll", position, true);
|
|
29
|
+
};
|
|
30
|
+
}, [open, ...deps]);
|
|
31
|
+
return place;
|
|
32
|
+
}
|
|
8
33
|
/** A select in the menu style, with keyboard, type-ahead and touch; `name` posts its value. */
|
|
9
34
|
export function Select({ label, options, value, defaultValue, onChange, onFocus, name, disabled, headings, subs, icons, action }) {
|
|
10
35
|
const [own, setOwn] = useState(defaultValue ?? options[0]?.[0] ?? "");
|
|
@@ -13,9 +38,9 @@ export function Select({ label, options, value, defaultValue, onChange, onFocus,
|
|
|
13
38
|
const current = options[selected]?.[0] ?? "";
|
|
14
39
|
const [open, setOpen] = useState(false);
|
|
15
40
|
const [active, setActive] = useState(selected);
|
|
16
|
-
const [place, setPlace] = useState("");
|
|
17
41
|
const button = useRef(null);
|
|
18
42
|
const list = useRef(null);
|
|
43
|
+
const place = usePlace(button, list, open, 560);
|
|
19
44
|
const typed = useRef({
|
|
20
45
|
text: "",
|
|
21
46
|
at: 0
|
|
@@ -97,31 +122,14 @@ export function Select({ label, options, value, defaultValue, onChange, onFocus,
|
|
|
97
122
|
} else return;
|
|
98
123
|
event.preventDefault();
|
|
99
124
|
};
|
|
100
|
-
// In the top layer, so a dialog or scroll box never clips it; flips up near the bottom.
|
|
101
125
|
useLayoutEffect(() => {
|
|
102
126
|
if (!open) return;
|
|
103
|
-
list.current?.showPopover();
|
|
104
|
-
const position = () => {
|
|
105
|
-
const box = button.current?.getBoundingClientRect();
|
|
106
|
-
const menu = list.current;
|
|
107
|
-
if (!box || !menu) return;
|
|
108
|
-
const below = innerHeight - box.bottom - 12;
|
|
109
|
-
const up = below < Math.min(menu.scrollHeight, 240) && box.top > below;
|
|
110
|
-
setPlace(`left:${Math.round(Math.min(box.left, innerWidth - menu.offsetWidth - 8))}px;min-width:${Math.round(box.width)}px;` + (up ? `bottom:${Math.round(innerHeight - box.top + 4)}px;max-height:${Math.round(Math.min(560, box.top - 12))}px` : `top:${Math.round(box.bottom + 4)}px;max-height:${Math.round(Math.min(560, below))}px`));
|
|
111
|
-
};
|
|
112
|
-
position();
|
|
113
127
|
const outside = (event) => {
|
|
114
128
|
const target = event.target;
|
|
115
129
|
if (!button.current?.contains(target) && !list.current?.contains(target)) close(false);
|
|
116
130
|
};
|
|
117
|
-
addEventListener("resize", position);
|
|
118
|
-
addEventListener("scroll", position, true);
|
|
119
131
|
document.addEventListener("pointerdown", outside);
|
|
120
|
-
return () =>
|
|
121
|
-
removeEventListener("resize", position);
|
|
122
|
-
removeEventListener("scroll", position, true);
|
|
123
|
-
document.removeEventListener("pointerdown", outside);
|
|
124
|
-
};
|
|
132
|
+
return () => document.removeEventListener("pointerdown", outside);
|
|
125
133
|
}, [open]);
|
|
126
134
|
useLayoutEffect(() => {
|
|
127
135
|
if (open) list.current?.querySelector(`[data-index="${active}"]`)?.scrollIntoView({ block: "nearest" });
|
|
@@ -166,63 +174,56 @@ export function Select({ label, options, value, defaultValue, onChange, onFocus,
|
|
|
166
174
|
name,
|
|
167
175
|
value: current
|
|
168
176
|
}) : null,
|
|
169
|
-
open ? /* @__PURE__ */ _jsxs(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"aria-label": label,
|
|
176
|
-
style: place || "visibility:hidden",
|
|
177
|
-
onMouseDown: (event) => event.preventDefault(),
|
|
178
|
-
children: [options.map(([key, text], index) => /* @__PURE__ */ _jsxs(Fragment, { children: [headings?.[key] ? /* @__PURE__ */ _jsx("p", {
|
|
179
|
-
class: "pop-label",
|
|
180
|
-
children: headings[key]
|
|
181
|
-
}) : null, /* @__PURE__ */ _jsxs("div", {
|
|
177
|
+
open ? /* @__PURE__ */ _jsxs(SelectList, {
|
|
178
|
+
id,
|
|
179
|
+
label,
|
|
180
|
+
listRef: list,
|
|
181
|
+
place,
|
|
182
|
+
children: [options.map(([key, text], index) => /* @__PURE__ */ _jsxs(Fragment, { children: [headings?.[key] ? /* @__PURE__ */ _jsx(MenuLabel, { children: headings[key] }) : null, /* @__PURE__ */ _jsx(MenuOption, {
|
|
182
183
|
id: `${id}-${index}`,
|
|
183
184
|
"data-index": index,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
active: index === active,
|
|
186
|
+
selected: index === selected,
|
|
187
|
+
check: true,
|
|
188
|
+
icon: icons?.[key],
|
|
189
|
+
sub: subs?.[key] ? /* @__PURE__ */ _jsx("bdi", {
|
|
190
|
+
dir: "ltr",
|
|
191
|
+
children: subs[key]
|
|
192
|
+
}) : null,
|
|
187
193
|
onPointerMove: () => index !== active && setActive(index),
|
|
188
194
|
// Picks without letting a wrapping label re-open the list.
|
|
189
195
|
onClick: (event) => {
|
|
190
196
|
event.preventDefault();
|
|
191
197
|
pick(index);
|
|
192
198
|
},
|
|
193
|
-
children:
|
|
194
|
-
|
|
195
|
-
/* @__PURE__ */ _jsxs("span", {
|
|
196
|
-
class: "grow",
|
|
197
|
-
children: [text, subs?.[key] ? /* @__PURE__ */ _jsx("small", {
|
|
198
|
-
class: "pop-path",
|
|
199
|
-
children: /* @__PURE__ */ _jsx("bdi", {
|
|
200
|
-
dir: "ltr",
|
|
201
|
-
children: subs[key]
|
|
202
|
-
})
|
|
203
|
-
}) : null]
|
|
204
|
-
}),
|
|
205
|
-
/* @__PURE__ */ _jsx(Icon, { d: iCheck })
|
|
206
|
-
]
|
|
207
|
-
})] }, key)), action ? /* @__PURE__ */ _jsxs("div", {
|
|
199
|
+
children: text
|
|
200
|
+
})] }, key)), action ? /* @__PURE__ */ _jsx(MenuOption, {
|
|
208
201
|
id: `${id}-${options.length}`,
|
|
209
202
|
"data-index": options.length,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
class:
|
|
203
|
+
active: active === options.length,
|
|
204
|
+
selected: false,
|
|
205
|
+
class: "action",
|
|
206
|
+
icon: action.icon ?? iPlus,
|
|
213
207
|
onPointerMove: () => active !== options.length && setActive(options.length),
|
|
214
208
|
onClick: (event) => {
|
|
215
209
|
event.preventDefault();
|
|
216
210
|
pick(options.length);
|
|
217
211
|
},
|
|
218
|
-
children:
|
|
219
|
-
class: "grow",
|
|
220
|
-
children: action.label
|
|
221
|
-
})]
|
|
212
|
+
children: action.label
|
|
222
213
|
}) : null]
|
|
223
214
|
}) : null
|
|
224
215
|
]
|
|
225
216
|
});
|
|
226
217
|
}
|
|
227
|
-
/**
|
|
228
|
-
export const
|
|
218
|
+
/** A select's list in the top layer at `place`; the field keeps focus, so the mouse never takes it. */
|
|
219
|
+
export const SelectList = ({ id, label, listRef, place, children }) => /* @__PURE__ */ _jsx(MenuPanel, {
|
|
220
|
+
panelRef: listRef,
|
|
221
|
+
id: `${id}-list`,
|
|
222
|
+
class: "select-pop",
|
|
223
|
+
popover: "manual",
|
|
224
|
+
role: "listbox",
|
|
225
|
+
"aria-label": label,
|
|
226
|
+
style: place || "visibility:hidden",
|
|
227
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
228
|
+
children
|
|
229
|
+
});
|