@overvis/hmi-workspace-ui 0.0.0-stage → 0.1.1
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/LICENSE +28 -0
- package/README.md +84 -2
- package/THIRD_PARTY_NOTICES +151 -0
- package/dist/OFL-1.1.txt +93 -0
- package/dist/alarm-list-sheAq-pb.js +414 -0
- package/dist/alarm-rule-dialog-D_ml7V0v.js +417 -0
- package/dist/alarm-rule-lists-DaA4soF4.js +342 -0
- package/dist/alarm-rules-page-OFjOQ-dm.js +118 -0
- package/dist/alert-dialog-B60PF7S9.js +891 -0
- package/dist/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/base-revision-DYCOZS0R.js +103 -0
- package/dist/breadcrumbs-D2u8KZQo.js +20 -0
- package/dist/catalog-list-LXuRix0-.js +75 -0
- package/dist/code-editor-BMSyzAxu.js +142 -0
- package/dist/dashboard-bindings.js +25 -0
- package/dist/dashboards-page-wnmmLpVC.js +1040 -0
- package/dist/de-hkEr2usK.js +4577 -0
- package/dist/diagnostic-text-CsbENUNI.js +116 -0
- package/dist/dialogs-AtIYlNSy.js +722 -0
- package/dist/dialogs-DsHbKgZD.js +7753 -0
- package/dist/display-DSyEwQt8.js +77 -0
- package/dist/editor-language-CTfJBXMs.js +435 -0
- package/dist/editor-page-BWbVGJvU.js +1337 -0
- package/dist/en-UW_k-Bd6.js +4577 -0
- package/dist/entity-controls-BCuRx882.js +71 -0
- package/dist/errors-Cawve9yD.js +25 -0
- package/dist/footer-B9XdpVzq.js +10564 -0
- package/dist/host.js +8991 -0
- package/dist/i18n-Dt6xbSK6.js +388 -0
- package/dist/i18n.js +1 -0
- package/dist/index.js +18922 -0
- package/dist/lat-lng-Bl77AGSO.js +10 -0
- package/dist/list-page-agHupfNb.js +356 -0
- package/dist/location-map-renderer-kxU6cgFl.js +145 -0
- package/dist/location-picker-renderer-B1_-n8lf.js +104 -0
- package/dist/model-tpg_xpFB.js +8 -0
- package/dist/notice-card-CH28rYUt.js +242 -0
- package/dist/page-CZPHJUmz.js +296 -0
- package/dist/page-DpdkOGGb.js +449 -0
- package/dist/page-HCGXXGjy.js +507 -0
- package/dist/panel-BCwBlB_h.js +949 -0
- package/dist/parameter-values.js +202 -0
- package/dist/pl-BokvsP3J.js +4577 -0
- package/dist/presence-code-cT6wxlTg.js +73 -0
- package/dist/query-gate-DqmHsZ07.js +33 -0
- package/dist/quick-report-DEqqwQxR.js +33336 -0
- package/dist/retention-DZ0reGGe.js +60 -0
- package/dist/retention-note-nequESpo.js +40 -0
- package/dist/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/ru-DZSlsRHq.js +4577 -0
- package/dist/run-text-DneX9rWh.js +112 -0
- package/dist/search-DP9_alSQ.js +262 -0
- package/dist/sections-BU7NKUOQ.js +76 -0
- package/dist/select-Te6Qv1Zu.js +533 -0
- package/dist/spinner-BRcNKwjH.js +511 -0
- package/dist/src/audit/checkpoint-presentation.d.ts +2 -0
- package/dist/src/audit/checkpoints.d.ts +23 -0
- package/dist/src/audit/history-model.d.ts +3 -0
- package/dist/src/audit/history-page.d.ts +13 -0
- package/dist/src/audit/history-presentation.d.ts +21 -0
- package/dist/src/audit/history-search.d.ts +6 -0
- package/dist/src/audit/revert-checkpoint-dialog.d.ts +29 -0
- package/dist/src/audit/revert-device-confirmation.d.ts +20 -0
- package/dist/src/audit/setup-change-list.d.ts +5 -0
- package/dist/src/brand/brand-link.d.ts +7 -0
- package/dist/src/brand/local-brand-link.d.ts +11 -0
- package/dist/src/brand/overvis-logo.d.ts +10 -0
- package/dist/src/brand/workspace-brand-link.d.ts +10 -0
- package/dist/src/brand/workspace-favicon.d.ts +4 -0
- package/dist/src/chrome/language-switcher.d.ts +3 -0
- package/dist/src/chrome/mode-toggle.d.ts +1 -0
- package/dist/src/chrome/text-link.d.ts +8 -0
- package/dist/src/code-editor/code-editor.d.ts +55 -0
- package/dist/src/code-editor/formula-input.d.ts +20 -0
- package/dist/src/code-editor/json-positions.d.ts +26 -0
- package/dist/src/code-editor/language-features.d.ts +122 -0
- package/dist/src/code-editor/taskfile-language.d.ts +10 -0
- package/dist/src/dev-fatal/error-boundary.d.ts +10 -0
- package/dist/src/dev-fatal/format-console-error.d.ts +5 -0
- package/dist/src/dev-fatal/install.d.ts +6 -0
- package/dist/src/dev-fatal/is-enabled.d.ts +7 -0
- package/dist/src/dev-fatal/overlay.d.ts +8 -0
- package/dist/src/dev-fatal/report-render-error.d.ts +6 -0
- package/dist/src/dev-fatal/should-ignore.d.ts +5 -0
- package/dist/src/entry/host/index.d.ts +43 -0
- package/dist/src/entry/ui/index.d.ts +80 -0
- package/dist/src/form/api-error.d.ts +11 -0
- package/dist/src/form/fields/checkbox-field.d.ts +9 -0
- package/dist/src/form/fields/dashboard-picker-field.d.ts +13 -0
- package/dist/src/form/fields/formula-field.d.ts +11 -0
- package/dist/src/form/fields/otp-field.d.ts +14 -0
- package/dist/src/form/fields/parameter-picker-field.d.ts +3 -0
- package/dist/src/form/fields/text-field.d.ts +9 -0
- package/dist/src/form/fields/textarea-field.d.ts +6 -0
- package/dist/src/form/focus-first-invalid-field.d.ts +4 -0
- package/dist/src/form/form-contexts.d.ts +1 -0
- package/dist/src/form/form-error-banner.d.ts +4 -0
- package/dist/src/form/form-root.d.ts +18 -0
- package/dist/src/form/format-field-errors.d.ts +10 -0
- package/dist/src/form/index.d.ts +36 -0
- package/dist/src/form/map-trpc-to-form-errors.d.ts +34 -0
- package/dist/src/form/message.d.ts +5 -0
- package/dist/src/form/mutation-form-validators.d.ts +41 -0
- package/dist/src/form/submit-button.d.ts +13 -0
- package/dist/src/form/trpc-error-data.d.ts +19 -0
- package/dist/src/form/use-app-form.d.ts +89 -0
- package/dist/src/hooks/use-closed-minute.d.ts +6 -0
- package/dist/src/hooks/use-media-query.d.ts +2 -0
- package/dist/src/hooks/use-mobile.d.ts +1 -0
- package/dist/src/hooks/use-now.d.ts +5 -0
- package/dist/src/i18n/catalogs/de/action.d.ts +14 -0
- package/dist/src/i18n/catalogs/de/alarm.d.ts +79 -0
- package/dist/src/i18n/catalogs/de/api-error.d.ts +261 -0
- package/dist/src/i18n/catalogs/de/audit.d.ts +133 -0
- package/dist/src/i18n/catalogs/de/automation-editor.d.ts +220 -0
- package/dist/src/i18n/catalogs/de/automation-language.d.ts +249 -0
- package/dist/src/i18n/catalogs/de/automation.d.ts +59 -0
- package/dist/src/i18n/catalogs/de/brand.d.ts +4 -0
- package/dist/src/i18n/catalogs/de/cold-room.d.ts +26 -0
- package/dist/src/i18n/catalogs/de/copyable.d.ts +6 -0
- package/dist/src/i18n/catalogs/de/dashboard.d.ts +92 -0
- package/dist/src/i18n/catalogs/de/device-preset.d.ts +71 -0
- package/dist/src/i18n/catalogs/de/document.d.ts +52 -0
- package/dist/src/i18n/catalogs/de/edge-program-language.d.ts +165 -0
- package/dist/src/i18n/catalogs/de/edge-program.d.ts +238 -0
- package/dist/src/i18n/catalogs/de/endpoint.d.ts +112 -0
- package/dist/src/i18n/catalogs/de/error.d.ts +34 -0
- package/dist/src/i18n/catalogs/de/fleet.d.ts +247 -0
- package/dist/src/i18n/catalogs/de/formula.d.ts +35 -0
- package/dist/src/i18n/catalogs/de/graphics.d.ts +417 -0
- package/dist/src/i18n/catalogs/de/language.d.ts +10 -0
- package/dist/src/i18n/catalogs/de/messages.d.ts +19 -0
- package/dist/src/i18n/catalogs/de/parameter.d.ts +373 -0
- package/dist/src/i18n/catalogs/de/pull.d.ts +11 -0
- package/dist/src/i18n/catalogs/de/report.d.ts +377 -0
- package/dist/src/i18n/catalogs/de/setup.d.ts +65 -0
- package/dist/src/i18n/catalogs/de/starter.d.ts +38 -0
- package/dist/src/i18n/catalogs/de/storage.d.ts +124 -0
- package/dist/src/i18n/catalogs/de/symbols-hvac.d.ts +142 -0
- package/dist/src/i18n/catalogs/de/symbols-power.d.ts +122 -0
- package/dist/src/i18n/catalogs/de/symbols-quarry.d.ts +81 -0
- package/dist/src/i18n/catalogs/de/symbols.d.ts +676 -0
- package/dist/src/i18n/catalogs/de/theme.d.ts +4 -0
- package/dist/src/i18n/catalogs/de/ui.d.ts +37 -0
- package/dist/src/i18n/catalogs/de/workspace.d.ts +19 -0
- package/dist/src/i18n/catalogs/de.d.ts +4510 -0
- package/dist/src/i18n/catalogs/en/action.d.ts +14 -0
- package/dist/src/i18n/catalogs/en/alarm.d.ts +79 -0
- package/dist/src/i18n/catalogs/en/api-error.d.ts +261 -0
- package/dist/src/i18n/catalogs/en/audit.d.ts +133 -0
- package/dist/src/i18n/catalogs/en/automation-editor.d.ts +220 -0
- package/dist/src/i18n/catalogs/en/automation-language.d.ts +249 -0
- package/dist/src/i18n/catalogs/en/automation.d.ts +59 -0
- package/dist/src/i18n/catalogs/en/brand.d.ts +4 -0
- package/dist/src/i18n/catalogs/en/cold-room.d.ts +26 -0
- package/dist/src/i18n/catalogs/en/copyable.d.ts +6 -0
- package/dist/src/i18n/catalogs/en/dashboard.d.ts +92 -0
- package/dist/src/i18n/catalogs/en/device-preset.d.ts +71 -0
- package/dist/src/i18n/catalogs/en/document.d.ts +52 -0
- package/dist/src/i18n/catalogs/en/edge-program-language.d.ts +165 -0
- package/dist/src/i18n/catalogs/en/edge-program.d.ts +238 -0
- package/dist/src/i18n/catalogs/en/endpoint.d.ts +112 -0
- package/dist/src/i18n/catalogs/en/error.d.ts +34 -0
- package/dist/src/i18n/catalogs/en/fleet.d.ts +247 -0
- package/dist/src/i18n/catalogs/en/formula.d.ts +35 -0
- package/dist/src/i18n/catalogs/en/graphics.d.ts +417 -0
- package/dist/src/i18n/catalogs/en/language.d.ts +10 -0
- package/dist/src/i18n/catalogs/en/messages.d.ts +19 -0
- package/dist/src/i18n/catalogs/en/parameter.d.ts +373 -0
- package/dist/src/i18n/catalogs/en/pull.d.ts +11 -0
- package/dist/src/i18n/catalogs/en/report.d.ts +377 -0
- package/dist/src/i18n/catalogs/en/setup.d.ts +65 -0
- package/dist/src/i18n/catalogs/en/starter.d.ts +38 -0
- package/dist/src/i18n/catalogs/en/storage.d.ts +124 -0
- package/dist/src/i18n/catalogs/en/symbols-hvac.d.ts +142 -0
- package/dist/src/i18n/catalogs/en/symbols-power.d.ts +122 -0
- package/dist/src/i18n/catalogs/en/symbols-quarry.d.ts +81 -0
- package/dist/src/i18n/catalogs/en/symbols.d.ts +676 -0
- package/dist/src/i18n/catalogs/en/theme.d.ts +4 -0
- package/dist/src/i18n/catalogs/en/ui.d.ts +37 -0
- package/dist/src/i18n/catalogs/en/workspace.d.ts +19 -0
- package/dist/src/i18n/catalogs/en.d.ts +4510 -0
- package/dist/src/i18n/catalogs/pl/action.d.ts +14 -0
- package/dist/src/i18n/catalogs/pl/alarm.d.ts +79 -0
- package/dist/src/i18n/catalogs/pl/api-error.d.ts +261 -0
- package/dist/src/i18n/catalogs/pl/audit.d.ts +133 -0
- package/dist/src/i18n/catalogs/pl/automation-editor.d.ts +220 -0
- package/dist/src/i18n/catalogs/pl/automation-language.d.ts +249 -0
- package/dist/src/i18n/catalogs/pl/automation.d.ts +59 -0
- package/dist/src/i18n/catalogs/pl/brand.d.ts +4 -0
- package/dist/src/i18n/catalogs/pl/cold-room.d.ts +26 -0
- package/dist/src/i18n/catalogs/pl/copyable.d.ts +6 -0
- package/dist/src/i18n/catalogs/pl/dashboard.d.ts +92 -0
- package/dist/src/i18n/catalogs/pl/device-preset.d.ts +71 -0
- package/dist/src/i18n/catalogs/pl/document.d.ts +52 -0
- package/dist/src/i18n/catalogs/pl/edge-program-language.d.ts +165 -0
- package/dist/src/i18n/catalogs/pl/edge-program.d.ts +238 -0
- package/dist/src/i18n/catalogs/pl/endpoint.d.ts +112 -0
- package/dist/src/i18n/catalogs/pl/error.d.ts +34 -0
- package/dist/src/i18n/catalogs/pl/fleet.d.ts +247 -0
- package/dist/src/i18n/catalogs/pl/formula.d.ts +35 -0
- package/dist/src/i18n/catalogs/pl/graphics.d.ts +417 -0
- package/dist/src/i18n/catalogs/pl/language.d.ts +10 -0
- package/dist/src/i18n/catalogs/pl/messages.d.ts +19 -0
- package/dist/src/i18n/catalogs/pl/parameter.d.ts +373 -0
- package/dist/src/i18n/catalogs/pl/pull.d.ts +11 -0
- package/dist/src/i18n/catalogs/pl/report.d.ts +377 -0
- package/dist/src/i18n/catalogs/pl/setup.d.ts +65 -0
- package/dist/src/i18n/catalogs/pl/starter.d.ts +38 -0
- package/dist/src/i18n/catalogs/pl/storage.d.ts +124 -0
- package/dist/src/i18n/catalogs/pl/symbols-hvac.d.ts +142 -0
- package/dist/src/i18n/catalogs/pl/symbols-power.d.ts +122 -0
- package/dist/src/i18n/catalogs/pl/symbols-quarry.d.ts +81 -0
- package/dist/src/i18n/catalogs/pl/symbols.d.ts +676 -0
- package/dist/src/i18n/catalogs/pl/theme.d.ts +4 -0
- package/dist/src/i18n/catalogs/pl/ui.d.ts +37 -0
- package/dist/src/i18n/catalogs/pl/workspace.d.ts +19 -0
- package/dist/src/i18n/catalogs/pl.d.ts +4510 -0
- package/dist/src/i18n/catalogs/ru/action.d.ts +14 -0
- package/dist/src/i18n/catalogs/ru/alarm.d.ts +79 -0
- package/dist/src/i18n/catalogs/ru/api-error.d.ts +261 -0
- package/dist/src/i18n/catalogs/ru/audit.d.ts +133 -0
- package/dist/src/i18n/catalogs/ru/automation-editor.d.ts +220 -0
- package/dist/src/i18n/catalogs/ru/automation-language.d.ts +249 -0
- package/dist/src/i18n/catalogs/ru/automation.d.ts +59 -0
- package/dist/src/i18n/catalogs/ru/brand.d.ts +4 -0
- package/dist/src/i18n/catalogs/ru/cold-room.d.ts +26 -0
- package/dist/src/i18n/catalogs/ru/copyable.d.ts +6 -0
- package/dist/src/i18n/catalogs/ru/dashboard.d.ts +92 -0
- package/dist/src/i18n/catalogs/ru/device-preset.d.ts +71 -0
- package/dist/src/i18n/catalogs/ru/document.d.ts +52 -0
- package/dist/src/i18n/catalogs/ru/edge-program-language.d.ts +165 -0
- package/dist/src/i18n/catalogs/ru/edge-program.d.ts +238 -0
- package/dist/src/i18n/catalogs/ru/endpoint.d.ts +112 -0
- package/dist/src/i18n/catalogs/ru/error.d.ts +34 -0
- package/dist/src/i18n/catalogs/ru/fleet.d.ts +247 -0
- package/dist/src/i18n/catalogs/ru/formula.d.ts +35 -0
- package/dist/src/i18n/catalogs/ru/graphics.d.ts +417 -0
- package/dist/src/i18n/catalogs/ru/language.d.ts +10 -0
- package/dist/src/i18n/catalogs/ru/messages.d.ts +19 -0
- package/dist/src/i18n/catalogs/ru/parameter.d.ts +373 -0
- package/dist/src/i18n/catalogs/ru/pull.d.ts +11 -0
- package/dist/src/i18n/catalogs/ru/report.d.ts +377 -0
- package/dist/src/i18n/catalogs/ru/setup.d.ts +65 -0
- package/dist/src/i18n/catalogs/ru/starter.d.ts +38 -0
- package/dist/src/i18n/catalogs/ru/storage.d.ts +124 -0
- package/dist/src/i18n/catalogs/ru/symbols-hvac.d.ts +142 -0
- package/dist/src/i18n/catalogs/ru/symbols-power.d.ts +122 -0
- package/dist/src/i18n/catalogs/ru/symbols-quarry.d.ts +81 -0
- package/dist/src/i18n/catalogs/ru/symbols.d.ts +676 -0
- package/dist/src/i18n/catalogs/ru/theme.d.ts +4 -0
- package/dist/src/i18n/catalogs/ru/ui.d.ts +37 -0
- package/dist/src/i18n/catalogs/ru/workspace.d.ts +19 -0
- package/dist/src/i18n/catalogs/ru.d.ts +4510 -0
- package/dist/src/i18n/catalogs/uk/action.d.ts +14 -0
- package/dist/src/i18n/catalogs/uk/alarm.d.ts +79 -0
- package/dist/src/i18n/catalogs/uk/api-error.d.ts +261 -0
- package/dist/src/i18n/catalogs/uk/audit.d.ts +133 -0
- package/dist/src/i18n/catalogs/uk/automation-editor.d.ts +220 -0
- package/dist/src/i18n/catalogs/uk/automation-language.d.ts +249 -0
- package/dist/src/i18n/catalogs/uk/automation.d.ts +59 -0
- package/dist/src/i18n/catalogs/uk/brand.d.ts +4 -0
- package/dist/src/i18n/catalogs/uk/cold-room.d.ts +26 -0
- package/dist/src/i18n/catalogs/uk/copyable.d.ts +6 -0
- package/dist/src/i18n/catalogs/uk/dashboard.d.ts +92 -0
- package/dist/src/i18n/catalogs/uk/device-preset.d.ts +71 -0
- package/dist/src/i18n/catalogs/uk/document.d.ts +52 -0
- package/dist/src/i18n/catalogs/uk/edge-program-language.d.ts +165 -0
- package/dist/src/i18n/catalogs/uk/edge-program.d.ts +238 -0
- package/dist/src/i18n/catalogs/uk/endpoint.d.ts +112 -0
- package/dist/src/i18n/catalogs/uk/error.d.ts +34 -0
- package/dist/src/i18n/catalogs/uk/fleet.d.ts +247 -0
- package/dist/src/i18n/catalogs/uk/formula.d.ts +35 -0
- package/dist/src/i18n/catalogs/uk/graphics.d.ts +417 -0
- package/dist/src/i18n/catalogs/uk/language.d.ts +10 -0
- package/dist/src/i18n/catalogs/uk/messages.d.ts +19 -0
- package/dist/src/i18n/catalogs/uk/parameter.d.ts +373 -0
- package/dist/src/i18n/catalogs/uk/pull.d.ts +11 -0
- package/dist/src/i18n/catalogs/uk/report.d.ts +377 -0
- package/dist/src/i18n/catalogs/uk/setup.d.ts +65 -0
- package/dist/src/i18n/catalogs/uk/starter.d.ts +38 -0
- package/dist/src/i18n/catalogs/uk/storage.d.ts +124 -0
- package/dist/src/i18n/catalogs/uk/symbols-hvac.d.ts +142 -0
- package/dist/src/i18n/catalogs/uk/symbols-power.d.ts +122 -0
- package/dist/src/i18n/catalogs/uk/symbols-quarry.d.ts +81 -0
- package/dist/src/i18n/catalogs/uk/symbols.d.ts +676 -0
- package/dist/src/i18n/catalogs/uk/theme.d.ts +4 -0
- package/dist/src/i18n/catalogs/uk/ui.d.ts +37 -0
- package/dist/src/i18n/catalogs/uk/workspace.d.ts +19 -0
- package/dist/src/i18n/catalogs/uk.d.ts +4510 -0
- package/dist/src/i18n/index.d.ts +4 -0
- package/dist/src/i18n/locale.d.ts +11 -0
- package/dist/src/i18n/messages.d.ts +12 -0
- package/dist/src/i18n/use-language-change.d.ts +5 -0
- package/dist/src/i18n/use-locale.d.ts +1 -0
- package/dist/src/index.d.ts +151 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/src/theme-provider.d.ts +16 -0
- package/dist/src/trpc.d.ts +37 -0
- package/dist/src/ui/accordion.d.ts +6 -0
- package/dist/src/ui/alert-dialog.d.ts +20 -0
- package/dist/src/ui/alert.d.ts +10 -0
- package/dist/src/ui/aspect-ratio.d.ts +6 -0
- package/dist/src/ui/attachment.d.ts +23 -0
- package/dist/src/ui/avatar.d.ts +11 -0
- package/dist/src/ui/badge.d.ts +6 -0
- package/dist/src/ui/breadcrumb.d.ts +10 -0
- package/dist/src/ui/bubble.d.ts +16 -0
- package/dist/src/ui/button-group.d.ts +10 -0
- package/dist/src/ui/button.d.ts +8 -0
- package/dist/src/ui/calendar.d.ts +10 -0
- package/dist/src/ui/card.d.ts +11 -0
- package/dist/src/ui/carousel.d.ts +28 -0
- package/dist/src/ui/chart.d.ts +60 -0
- package/dist/src/ui/checkbox.d.ts +3 -0
- package/dist/src/ui/collapsible.d.ts +5 -0
- package/dist/src/ui/combobox.d.ts +24 -0
- package/dist/src/ui/command.d.ts +19 -0
- package/dist/src/ui/content-overlay/dismiss.d.ts +10 -0
- package/dist/src/ui/content-overlay/region.d.ts +37 -0
- package/dist/src/ui/content-overlay/root.d.ts +3 -0
- package/dist/src/ui/content-overlay/tab-wrap.d.ts +6 -0
- package/dist/src/ui/context-menu.d.ts +28 -0
- package/dist/src/ui/data-table.d.ts +38 -0
- package/dist/src/ui/date-time-picker.d.ts +30 -0
- package/dist/src/ui/dialog.d.ts +19 -0
- package/dist/src/ui/direction.d.ts +3 -0
- package/dist/src/ui/drawer.d.ts +18 -0
- package/dist/src/ui/dropdown-menu.d.ts +29 -0
- package/dist/src/ui/empty.d.ts +11 -0
- package/dist/src/ui/field.d.ts +24 -0
- package/dist/src/ui/gauge-bar.d.ts +43 -0
- package/dist/src/ui/gauge.d.ts +24 -0
- package/dist/src/ui/hover-card.d.ts +5 -0
- package/dist/src/ui/input-group.d.ts +18 -0
- package/dist/src/ui/input-otp.d.ts +11 -0
- package/dist/src/ui/input.d.ts +3 -0
- package/dist/src/ui/item.d.ts +22 -0
- package/dist/src/ui/kbd.d.ts +3 -0
- package/dist/src/ui/label.d.ts +3 -0
- package/dist/src/ui/marker.d.ts +10 -0
- package/dist/src/ui/menubar.d.ts +28 -0
- package/dist/src/ui/message-history/context.d.ts +51 -0
- package/dist/src/ui/message-history/emit.d.ts +27 -0
- package/dist/src/ui/message-history/legacy-content.d.ts +6 -0
- package/dist/src/ui/message-history/legacy.d.ts +7 -0
- package/dist/src/ui/message-history/model.d.ts +22 -0
- package/dist/src/ui/message-history/panel.d.ts +6 -0
- package/dist/src/ui/message-history/store.d.ts +26 -0
- package/dist/src/ui/message-history/toast.d.ts +7 -0
- package/dist/src/ui/message-scroller.d.ts +20 -0
- package/dist/src/ui/message.d.ts +10 -0
- package/dist/src/ui/native-select.d.ts +8 -0
- package/dist/src/ui/navigation-menu.d.ts +11 -0
- package/dist/src/ui/notice-card.d.ts +61 -0
- package/dist/src/ui/page-header.d.ts +21 -0
- package/dist/src/ui/page-title.d.ts +5 -0
- package/dist/src/ui/pagination.d.ts +17 -0
- package/dist/src/ui/popover.d.ts +9 -0
- package/dist/src/ui/progress.d.ts +7 -0
- package/dist/src/ui/questionnaire.d.ts +19 -0
- package/dist/src/ui/radio-group.d.ts +5 -0
- package/dist/src/ui/resizable.d.ts +7 -0
- package/dist/src/ui/scroll-area.d.ts +5 -0
- package/dist/src/ui/select.d.ts +11 -0
- package/dist/src/ui/separator.d.ts +3 -0
- package/dist/src/ui/sheet.d.ts +14 -0
- package/dist/src/ui/sidebar.d.ts +63 -0
- package/dist/src/ui/skeleton.d.ts +7 -0
- package/dist/src/ui/slider.d.ts +3 -0
- package/dist/src/ui/sonner.d.ts +9 -0
- package/dist/src/ui/sparkline.d.ts +31 -0
- package/dist/src/ui/spinner.d.ts +2 -0
- package/dist/src/ui/svg-diagram/dom.d.ts +6 -0
- package/dist/src/ui/svg-diagram/types.d.ts +13 -0
- package/dist/src/ui/svg-diagram.d.ts +8 -0
- package/dist/src/ui/switch.d.ts +5 -0
- package/dist/src/ui/table.d.ts +10 -0
- package/dist/src/ui/tabs.d.ts +11 -0
- package/dist/src/ui/textarea.d.ts +3 -0
- package/dist/src/ui/theme-scope.d.ts +11 -0
- package/dist/src/ui/toggle-group.d.ts +11 -0
- package/dist/src/ui/toggle.d.ts +8 -0
- package/dist/src/ui/tooltip.d.ts +6 -0
- package/dist/src/version.d.ts +2 -0
- package/dist/src/workspace/access-label.d.ts +2 -0
- package/dist/src/workspace/alarms/actions.d.ts +19 -0
- package/dist/src/workspace/alarms/alarm-list.d.ts +65 -0
- package/dist/src/workspace/alarms/history.d.ts +17 -0
- package/dist/src/workspace/alarms/model.d.ts +29 -0
- package/dist/src/workspace/alarms/nav.d.ts +15 -0
- package/dist/src/workspace/alarms/page.d.ts +10 -0
- package/dist/src/workspace/alarms/provider.d.ts +30 -0
- package/dist/src/workspace/alarms/search.d.ts +8 -0
- package/dist/src/workspace/alarms/sound.d.ts +9 -0
- package/dist/src/workspace/automations/diagnostic-text.d.ts +6 -0
- package/dist/src/workspace/automations/editor-language.d.ts +13 -0
- package/dist/src/workspace/automations/item-descriptions.d.ts +3 -0
- package/dist/src/workspace/automations/parameter-names.d.ts +2 -0
- package/dist/src/workspace/automations/run-text.d.ts +18 -0
- package/dist/src/workspace/automations/trace-view.d.ts +24 -0
- package/dist/src/workspace/automations/use-catalog.d.ts +10 -0
- package/dist/src/workspace/caches.d.ts +41 -0
- package/dist/src/workspace/context.d.ts +71 -0
- package/dist/src/workspace/copyable-id.d.ts +4 -0
- package/dist/src/workspace/dashboards/actions-menu.d.ts +4 -0
- package/dist/src/workspace/dashboards/anchor-scroll.d.ts +11 -0
- package/dist/src/workspace/dashboards/bindings.d.ts +26 -0
- package/dist/src/workspace/dashboards/configuration-rename-dialog.d.ts +10 -0
- package/dist/src/workspace/dashboards/configuration-required.d.ts +10 -0
- package/dist/src/workspace/dashboards/configuration-update-queue.d.ts +2 -0
- package/dist/src/workspace/dashboards/copy-dialog.d.ts +7 -0
- package/dist/src/workspace/dashboards/document/blocks.d.ts +42 -0
- package/dist/src/workspace/dashboards/document/chart-data.d.ts +13 -0
- package/dist/src/workspace/dashboards/document/chart.d.ts +10 -0
- package/dist/src/workspace/dashboards/document/layout.d.ts +29 -0
- package/dist/src/workspace/dashboards/document/markdown.d.ts +7 -0
- package/dist/src/workspace/dashboards/document/sources.d.ts +32 -0
- package/dist/src/workspace/dashboards/document/tiles/chart.d.ts +23 -0
- package/dist/src/workspace/dashboards/document/tiles/context.d.ts +23 -0
- package/dist/src/workspace/dashboards/document/tiles/controls.d.ts +23 -0
- package/dist/src/workspace/dashboards/document/tiles/frame.d.ts +28 -0
- package/dist/src/workspace/dashboards/document/tiles/gauge-model.d.ts +4 -0
- package/dist/src/workspace/dashboards/document/tiles/gauge.d.ts +11 -0
- package/dist/src/workspace/dashboards/document/tiles/presentation.d.ts +29 -0
- package/dist/src/workspace/dashboards/document/tiles/reading.d.ts +14 -0
- package/dist/src/workspace/dashboards/document/tiles/sparkline.d.ts +7 -0
- package/dist/src/workspace/dashboards/document/tiles/tile.d.ts +8 -0
- package/dist/src/workspace/dashboards/document/tiles/tones.d.ts +44 -0
- package/dist/src/workspace/dashboards/document/tiles/use-tile-tone.d.ts +19 -0
- package/dist/src/workspace/dashboards/document/tiles/value.d.ts +8 -0
- package/dist/src/workspace/dashboards/document/view.d.ts +16 -0
- package/dist/src/workspace/dashboards/enabled-switch.d.ts +10 -0
- package/dist/src/workspace/dashboards/entrypoint.d.ts +15 -0
- package/dist/src/workspace/dashboards/icon.d.ts +6 -0
- package/dist/src/workspace/dashboards/load-module.d.ts +40 -0
- package/dist/src/workspace/dashboards/locale.d.ts +8 -0
- package/dist/src/workspace/dashboards/module-cache.d.ts +9 -0
- package/dist/src/workspace/dashboards/mount-diagnostics.d.ts +23 -0
- package/dist/src/workspace/dashboards/mount.d.ts +39 -0
- package/dist/src/workspace/dashboards/name.d.ts +11 -0
- package/dist/src/workspace/dashboards/navigation.d.ts +51 -0
- package/dist/src/workspace/dashboards/page-paths.d.ts +7 -0
- package/dist/src/workspace/dashboards/page-tabs.d.ts +23 -0
- package/dist/src/workspace/dashboards/page.d.ts +4 -0
- package/dist/src/workspace/dashboards/rotation.d.ts +26 -0
- package/dist/src/workspace/dashboards/search-params.d.ts +7 -0
- package/dist/src/workspace/dashboards/sortable-grid.d.ts +79 -0
- package/dist/src/workspace/dashboards/stylesheet.d.ts +9 -0
- package/dist/src/workspace/dashboards/use-configuration-mutation.d.ts +40 -0
- package/dist/src/workspace/device-api/errors.d.ts +6 -0
- package/dist/src/workspace/device-api/use-device-api.d.ts +75 -0
- package/dist/src/workspace/device-presets/cold-room-card.d.ts +17 -0
- package/dist/src/workspace/device-presets/cold-room-commands.d.ts +19 -0
- package/dist/src/workspace/device-presets/cold-room-labels.d.ts +5 -0
- package/dist/src/workspace/device-presets/cold-room-model.d.ts +141 -0
- package/dist/src/workspace/device-presets/command-button.d.ts +34 -0
- package/dist/src/workspace/device-presets/endpoint-unavailable.d.ts +15 -0
- package/dist/src/workspace/device-presets/gauge-scale.d.ts +23 -0
- package/dist/src/workspace/device-presets/gauges.d.ts +52 -0
- package/dist/src/workspace/device-presets/header.d.ts +14 -0
- package/dist/src/workspace/device-presets/layout.d.ts +52 -0
- package/dist/src/workspace/device-presets/overview.d.ts +103 -0
- package/dist/src/workspace/device-presets/quantity.d.ts +5 -0
- package/dist/src/workspace/device-presets/relay-test-panel.d.ts +37 -0
- package/dist/src/workspace/device-presets/relay-test.d.ts +164 -0
- package/dist/src/workspace/device-presets/series-colors.d.ts +58 -0
- package/dist/src/workspace/device-presets/settings-choice.d.ts +20 -0
- package/dist/src/workspace/device-presets/settings-fields.d.ts +39 -0
- package/dist/src/workspace/device-presets/settings-form.d.ts +35 -0
- package/dist/src/workspace/device-presets/settings-page.d.ts +29 -0
- package/dist/src/workspace/device-presets/settings-rows.d.ts +25 -0
- package/dist/src/workspace/device-presets/settings-section.d.ts +78 -0
- package/dist/src/workspace/device-presets/settings-text.d.ts +5 -0
- package/dist/src/workspace/device-presets/settings-types.d.ts +122 -0
- package/dist/src/workspace/device-presets/settings-write-dialog.d.ts +27 -0
- package/dist/src/workspace/device-presets/settings-write.d.ts +73 -0
- package/dist/src/workspace/device-presets/state-text.d.ts +17 -0
- package/dist/src/workspace/device-presets/trend-chart.d.ts +51 -0
- package/dist/src/workspace/device-presets/trend-model.d.ts +45 -0
- package/dist/src/workspace/device-presets/unsupported.d.ts +14 -0
- package/dist/src/workspace/device-presets/values.d.ts +56 -0
- package/dist/src/workspace/edge-programs/deploy-status.d.ts +12 -0
- package/dist/src/workspace/edge-programs/diagnostic-text.d.ts +9 -0
- package/dist/src/workspace/edge-programs/editor-language.d.ts +15 -0
- package/dist/src/workspace/edge-programs/item-descriptions.d.ts +3 -0
- package/dist/src/workspace/edge-programs/live-state.d.ts +12 -0
- package/dist/src/workspace/endpoint-status/provider.d.ts +16 -0
- package/dist/src/workspace/endpoint-status/store.d.ts +18 -0
- package/dist/src/workspace/errors.d.ts +1 -0
- package/dist/src/workspace/fleet/alarms.d.ts +27 -0
- package/dist/src/workspace/fleet/binding-editor.d.ts +65 -0
- package/dist/src/workspace/fleet/board-editor.d.ts +118 -0
- package/dist/src/workspace/fleet/command-buttons.d.ts +19 -0
- package/dist/src/workspace/fleet/command-entry.d.ts +25 -0
- package/dist/src/workspace/fleet/command-steps.d.ts +65 -0
- package/dist/src/workspace/fleet/control-mode.d.ts +30 -0
- package/dist/src/workspace/fleet/counter-bars.d.ts +109 -0
- package/dist/src/workspace/fleet/counter-notices.d.ts +23 -0
- package/dist/src/workspace/fleet/counter-period.d.ts +35 -0
- package/dist/src/workspace/fleet/counter-shares.d.ts +34 -0
- package/dist/src/workspace/fleet/counter-total.d.ts +43 -0
- package/dist/src/workspace/fleet/counter-totals.d.ts +77 -0
- package/dist/src/workspace/fleet/due-dates.d.ts +18 -0
- package/dist/src/workspace/fleet/duplicate-dialog.d.ts +63 -0
- package/dist/src/workspace/fleet/editor-dialog.d.ts +26 -0
- package/dist/src/workspace/fleet/equipment-setup.d.ts +44 -0
- package/dist/src/workspace/fleet/equipment-view.d.ts +31 -0
- package/dist/src/workspace/fleet/figure.d.ts +18 -0
- package/dist/src/workspace/fleet/form-types.d.ts +15 -0
- package/dist/src/workspace/fleet/group-command-dialogs.d.ts +43 -0
- package/dist/src/workspace/fleet/group-command.d.ts +83 -0
- package/dist/src/workspace/fleet/indicator-lights.d.ts +23 -0
- package/dist/src/workspace/fleet/map.d.ts +41 -0
- package/dist/src/workspace/fleet/mode-badge.d.ts +7 -0
- package/dist/src/workspace/fleet/operations.d.ts +23 -0
- package/dist/src/workspace/fleet/order-editor.d.ts +13 -0
- package/dist/src/workspace/fleet/overview-model.d.ts +43 -0
- package/dist/src/workspace/fleet/overview.d.ts +93 -0
- package/dist/src/workspace/fleet/page-header.d.ts +27 -0
- package/dist/src/workspace/fleet/parameters.d.ts +65 -0
- package/dist/src/workspace/fleet/period-settings.d.ts +66 -0
- package/dist/src/workspace/fleet/placement-fields.d.ts +104 -0
- package/dist/src/workspace/fleet/position.d.ts +13 -0
- package/dist/src/workspace/fleet/readings.d.ts +64 -0
- package/dist/src/workspace/fleet/section.d.ts +7 -0
- package/dist/src/workspace/fleet/site-page.d.ts +150 -0
- package/dist/src/workspace/fleet/slot-fields.d.ts +53 -0
- package/dist/src/workspace/fleet/starter-fields.d.ts +63 -0
- package/dist/src/workspace/fleet/status-badge.d.ts +23 -0
- package/dist/src/workspace/fleet/status.d.ts +85 -0
- package/dist/src/workspace/formulas/diagnostic-text.d.ts +7 -0
- package/dist/src/workspace/graphics/actions/details.d.ts +49 -0
- package/dist/src/workspace/graphics/actions/dialog.d.ts +12 -0
- package/dist/src/workspace/graphics/actions/selection.d.ts +1352 -0
- package/dist/src/workspace/graphics/binding-value.d.ts +19 -0
- package/dist/src/workspace/graphics/bindings.d.ts +847 -0
- package/dist/src/workspace/graphics/canvas.d.ts +47 -0
- package/dist/src/workspace/graphics/commands/fields.d.ts +7 -0
- package/dist/src/workspace/graphics/commands/model.d.ts +10 -0
- package/dist/src/workspace/graphics/commands/provider.d.ts +285 -0
- package/dist/src/workspace/graphics/dashboard-graphics.d.ts +12 -0
- package/dist/src/workspace/graphics/editor-session.d.ts +47 -0
- package/dist/src/workspace/graphics/framing.d.ts +28 -0
- package/dist/src/workspace/graphics/generated-drawing.d.ts +47 -0
- package/dist/src/workspace/graphics/geometry.d.ts +41 -0
- package/dist/src/workspace/graphics/image-cache.d.ts +18 -0
- package/dist/src/workspace/graphics/image-dialog.d.ts +5 -0
- package/dist/src/workspace/graphics/image-picker.d.ts +5 -0
- package/dist/src/workspace/graphics/inspector/bindings.d.ts +17 -0
- package/dist/src/workspace/graphics/inspector/element.d.ts +10 -0
- package/dist/src/workspace/graphics/inspector/fields.d.ts +69 -0
- package/dist/src/workspace/graphics/inspector/item.d.ts +862 -0
- package/dist/src/workspace/graphics/inspector/multi.d.ts +10 -0
- package/dist/src/workspace/graphics/inspector/panel.d.ts +27 -0
- package/dist/src/workspace/graphics/inspector/ports.d.ts +2 -0
- package/dist/src/workspace/graphics/inspector/section.d.ts +14 -0
- package/dist/src/workspace/graphics/inspector/slots.d.ts +7 -0
- package/dist/src/workspace/graphics/inspector/symbol.d.ts +11 -0
- package/dist/src/workspace/graphics/line-geometry.d.ts +26 -0
- package/dist/src/workspace/graphics/lines.d.ts +14 -0
- package/dist/src/workspace/graphics/node-memo.d.ts +3 -0
- package/dist/src/workspace/graphics/node.d.ts +3 -0
- package/dist/src/workspace/graphics/placement.d.ts +23 -0
- package/dist/src/workspace/graphics/quality-indicator.d.ts +6 -0
- package/dist/src/workspace/graphics/resize-handles.d.ts +8 -0
- package/dist/src/workspace/graphics/source-picker.d.ts +35 -0
- package/dist/src/workspace/graphics/symbol-issues.d.ts +26 -0
- package/dist/src/workspace/graphics/symbols/agriculture/fertigation.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/agriculture/index.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/agriculture/soil-sensor.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/agriculture/soil.d.ts +9 -0
- package/dist/src/workspace/graphics/symbols/agriculture/sprinkler.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/agriculture/zone.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/bindings.d.ts +34 -0
- package/dist/src/workspace/graphics/symbols/browser.d.ts +28 -0
- package/dist/src/workspace/graphics/symbols/builtins.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/button.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/catalog.d.ts +41 -0
- package/dist/src/workspace/graphics/symbols/compressed-air/compressor.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/compressed-air/drain.d.ts +15 -0
- package/dist/src/workspace/graphics/symbols/compressed-air/index.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/compressed-air/receiver.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/compressed-air/treatment.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/definition.d.ts +115 -0
- package/dist/src/workspace/graphics/symbols/electrical/breaker.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/electrical/compensation.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/electrical/index.d.ts +5 -0
- package/dist/src/workspace/graphics/symbols/electrical/loads.d.ts +3 -0
- package/dist/src/workspace/graphics/symbols/electrical/machines.d.ts +3 -0
- package/dist/src/workspace/graphics/symbols/electrical/metering.d.ts +8 -0
- package/dist/src/workspace/graphics/symbols/electrical/presentation.d.ts +132 -0
- package/dist/src/workspace/graphics/symbols/electrical/renewables.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/electrical/storage.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/electrical/supply.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/electrical/switchgear.d.ts +61 -0
- package/dist/src/workspace/graphics/symbols/food/filling.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/food/index.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/food/vessel.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/fuel-gas/gas-detector.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/fuel-gas/index.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/handles.d.ts +6 -0
- package/dist/src/workspace/graphics/symbols/hvac/air-handling.d.ts +4 -0
- package/dist/src/workspace/graphics/symbols/hvac/air-section.d.ts +60 -0
- package/dist/src/workspace/graphics/symbols/hvac/air-terminals.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/hvac/air-treatment.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/hvac/circuit.d.ts +45 -0
- package/dist/src/workspace/graphics/symbols/hvac/cooling-plant.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/hvac/firing.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/hvac/hydronic.d.ts +5 -0
- package/dist/src/workspace/graphics/symbols/hvac/index.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/hvac/instruments.d.ts +5 -0
- package/dist/src/workspace/graphics/symbols/hvac/presentation.d.ts +162 -0
- package/dist/src/workspace/graphics/symbols/manufacturing/actuators.d.ts +20 -0
- package/dist/src/workspace/graphics/symbols/manufacturing/conveyor.d.ts +26 -0
- package/dist/src/workspace/graphics/symbols/manufacturing/index.d.ts +3 -0
- package/dist/src/workspace/graphics/symbols/manufacturing/indicators.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/manufacturing/stations.d.ts +3 -0
- package/dist/src/workspace/graphics/symbols/ports.d.ts +12 -0
- package/dist/src/workspace/graphics/symbols/preferences.d.ts +27 -0
- package/dist/src/workspace/graphics/symbols/preview.d.ts +8 -0
- package/dist/src/workspace/graphics/symbols/properties.d.ts +46 -0
- package/dist/src/workspace/graphics/symbols/provider.d.ts +12 -0
- package/dist/src/workspace/graphics/symbols/pump-status-icon.d.ts +5 -0
- package/dist/src/workspace/graphics/symbols/pump.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/quality.d.ts +63 -0
- package/dist/src/workspace/graphics/symbols/quarry/belt-scale.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/quarry/chute.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/quarry/crusher.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/quarry/diverter-gate.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/quarry/dust-collector.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/quarry/feeder.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/quarry/hopper.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/quarry/index.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/quarry/parts.d.ts +18 -0
- package/dist/src/workspace/graphics/symbols/quarry/screen.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/quarry/spray-suppression.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/quarry/stockpile.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/quarry/trommel.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/reading.d.ts +3 -0
- package/dist/src/workspace/graphics/symbols/render.d.ts +12 -0
- package/dist/src/workspace/graphics/symbols/reservoir.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/serialize.d.ts +7 -0
- package/dist/src/workspace/graphics/symbols/status.d.ts +47 -0
- package/dist/src/workspace/graphics/symbols/thermal/furnace.d.ts +28 -0
- package/dist/src/workspace/graphics/symbols/thermal/heater.d.ts +6 -0
- package/dist/src/workspace/graphics/symbols/thermal/index.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/thermal/kiln.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/upright.d.ts +68 -0
- package/dist/src/workspace/graphics/symbols/variant-field.d.ts +17 -0
- package/dist/src/workspace/graphics/symbols/variants.d.ts +30 -0
- package/dist/src/workspace/graphics/symbols/viewport.d.ts +43 -0
- package/dist/src/workspace/graphics/symbols/warehouse/agv.d.ts +4 -0
- package/dist/src/workspace/graphics/symbols/warehouse/cold-room.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/warehouse/cooling-unit.d.ts +19 -0
- package/dist/src/workspace/graphics/symbols/warehouse/door.d.ts +61 -0
- package/dist/src/workspace/graphics/symbols/warehouse/index.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/warehouse/loading-dock.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/warehouse/pallet.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/warehouse/rack.d.ts +25 -0
- package/dist/src/workspace/graphics/symbols/warehouse/stacker-crane.d.ts +12 -0
- package/dist/src/workspace/graphics/symbols/warehouse/storage-zone.d.ts +34 -0
- package/dist/src/workspace/graphics/symbols/waste/baler.d.ts +5 -0
- package/dist/src/workspace/graphics/symbols/waste/compactor.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/waste/container.d.ts +7 -0
- package/dist/src/workspace/graphics/symbols/waste/index.d.ts +2 -0
- package/dist/src/workspace/graphics/symbols/waste/parts.d.ts +32 -0
- package/dist/src/workspace/graphics/symbols/waste/separator.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/waste/shredder.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/waste/vehicle.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/waste/weighbridge.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/water/aeration.d.ts +8 -0
- package/dist/src/workspace/graphics/symbols/water/artwork.d.ts +42 -0
- package/dist/src/workspace/graphics/symbols/water/clarifier.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/water/disinfection.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/water/dosing.d.ts +30 -0
- package/dist/src/workspace/graphics/symbols/water/filter.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/water/index.d.ts +8 -0
- package/dist/src/workspace/graphics/symbols/water/instruments.d.ts +3 -0
- package/dist/src/workspace/graphics/symbols/water/pumps.d.ts +7 -0
- package/dist/src/workspace/graphics/symbols/water/tank.d.ts +1 -0
- package/dist/src/workspace/graphics/symbols/water/treatment-state.d.ts +15 -0
- package/dist/src/workspace/graphics/symbols/water/valves.d.ts +8 -0
- package/dist/src/workspace/graphics/symbols/well.d.ts +2 -0
- package/dist/src/workspace/graphics/toolbar.d.ts +58 -0
- package/dist/src/workspace/graphics/use-images.d.ts +13 -0
- package/dist/src/workspace/graphics/view-frame.d.ts +31 -0
- package/dist/src/workspace/graphics/viewport-passthrough.d.ts +8 -0
- package/dist/src/workspace/index-page.d.ts +3 -0
- package/dist/src/workspace/layout.d.ts +3 -0
- package/dist/src/workspace/live-changes.d.ts +16 -0
- package/dist/src/workspace/local-message-identity.d.ts +2 -0
- package/dist/src/workspace/local-setup-link.d.ts +16 -0
- package/dist/src/workspace/local-workspace-app.d.ts +21 -0
- package/dist/src/workspace/maps/auth-failure.d.ts +5 -0
- package/dist/src/workspace/maps/error-boundary.d.ts +21 -0
- package/dist/src/workspace/maps/lat-lng.d.ts +8 -0
- package/dist/src/workspace/maps/location-map-renderer.d.ts +10 -0
- package/dist/src/workspace/maps/location-map.d.ts +40 -0
- package/dist/src/workspace/maps/location-picker-renderer.d.ts +20 -0
- package/dist/src/workspace/maps/location-picker.d.ts +31 -0
- package/dist/src/workspace/maps/use-browser-config.d.ts +11 -0
- package/dist/src/workspace/maps/use-reverse-geocode.d.ts +15 -0
- package/dist/src/workspace/mobile-nav.d.ts +13 -0
- package/dist/src/workspace/mutations.d.ts +10634 -0
- package/dist/src/workspace/no-access.d.ts +1 -0
- package/dist/src/workspace/page-navigation.d.ts +67 -0
- package/dist/src/workspace/page-state/branch-path.d.ts +7 -0
- package/dist/src/workspace/page-state/context.d.ts +14 -0
- package/dist/src/workspace/page-state/dashboard-context.d.ts +37 -0
- package/dist/src/workspace/page-state/dashboard.d.ts +65 -0
- package/dist/src/workspace/page-state/model.d.ts +48 -0
- package/dist/src/workspace/page-state/parameters.d.ts +11 -0
- package/dist/src/workspace/page-state/report.d.ts +16 -0
- package/dist/src/workspace/page-state/store.d.ts +10 -0
- package/dist/src/workspace/parameters/defaults.d.ts +7 -0
- package/dist/src/workspace/parameters/display.d.ts +28 -0
- package/dist/src/workspace/parameters/distinct-names.d.ts +12 -0
- package/dist/src/workspace/parameters/errors.d.ts +15 -0
- package/dist/src/workspace/parameters/form/shared-fields.d.ts +49 -0
- package/dist/src/workspace/parameters/form/values.d.ts +33 -0
- package/dist/src/workspace/parameters/geo-value.d.ts +9 -0
- package/dist/src/workspace/parameters/icon.d.ts +8 -0
- package/dist/src/workspace/parameters/inventory-options.d.ts +9 -0
- package/dist/src/workspace/parameters/live/condition.d.ts +4 -0
- package/dist/src/workspace/parameters/live/control-button.d.ts +13 -0
- package/dist/src/workspace/parameters/live/controls.d.ts +14 -0
- package/dist/src/workspace/parameters/live/coordinator.d.ts +87 -0
- package/dist/src/workspace/parameters/live/deadline.d.ts +13 -0
- package/dist/src/workspace/parameters/live/diagnostic-copy.d.ts +26 -0
- package/dist/src/workspace/parameters/live/diagnostic-links.d.ts +5 -0
- package/dist/src/workspace/parameters/live/diagnostics.d.ts +9 -0
- package/dist/src/workspace/parameters/live/history-windows.d.ts +53 -0
- package/dist/src/workspace/parameters/live/metric.d.ts +29 -0
- package/dist/src/workspace/parameters/live/model.d.ts +133 -0
- package/dist/src/workspace/parameters/live/provider.d.ts +49 -0
- package/dist/src/workspace/parameters/live/read-once.d.ts +13 -0
- package/dist/src/workspace/parameters/live/stale-note.d.ts +8 -0
- package/dist/src/workspace/parameters/live/use-history.d.ts +30 -0
- package/dist/src/workspace/parameters/live/use-stored-history.d.ts +85 -0
- package/dist/src/workspace/parameters/live/value-display.d.ts +25 -0
- package/dist/src/workspace/parameters/live/value-editor.d.ts +24 -0
- package/dist/src/workspace/parameters/live/write-review-dialog.d.ts +41 -0
- package/dist/src/workspace/parameters/live/write-review-form.d.ts +18 -0
- package/dist/src/workspace/parameters/live/write-sequence-dialog.d.ts +80 -0
- package/dist/src/workspace/parameters/metadata.d.ts +37 -0
- package/dist/src/workspace/parameters/option-labels.d.ts +14 -0
- package/dist/src/workspace/parameters/picker/browser.d.ts +41 -0
- package/dist/src/workspace/parameters/picker/model.d.ts +91 -0
- package/dist/src/workspace/parameters/picker/picker.d.ts +380 -0
- package/dist/src/workspace/parameters/runtime-errors.d.ts +23 -0
- package/dist/src/workspace/parameters/source-fields.d.ts +22 -0
- package/dist/src/workspace/parameters/value/cells.d.ts +21 -0
- package/dist/src/workspace/parameters/value/edit-draft.d.ts +24 -0
- package/dist/src/workspace/parameters/value/reads.d.ts +54 -0
- package/dist/src/workspace/parameters/value/state.d.ts +96 -0
- package/dist/src/workspace/parameters/value/type/datetime-parts.d.ts +12 -0
- package/dist/src/workspace/parameters/value/type/fields.d.ts +5 -0
- package/dist/src/workspace/parameters/value/type/geo.d.ts +10 -0
- package/dist/src/workspace/parameters/value/type/int-repr.d.ts +9 -0
- package/dist/src/workspace/parameters/writability.d.ts +26 -0
- package/dist/src/workspace/pull-instructions.d.ts +4 -0
- package/dist/src/workspace/query-gate.d.ts +40 -0
- package/dist/src/workspace/reports/aggregate-fetch.d.ts +25 -0
- package/dist/src/workspace/reports/bar-legend.d.ts +12 -0
- package/dist/src/workspace/reports/bar-path.d.ts +25 -0
- package/dist/src/workspace/reports/cadence-fetch.d.ts +25 -0
- package/dist/src/workspace/reports/calendar/demand.d.ts +46 -0
- package/dist/src/workspace/reports/calendar/layout.d.ts +98 -0
- package/dist/src/workspace/reports/calendar/representation.d.ts +7 -0
- package/dist/src/workspace/reports/cell-title.d.ts +11 -0
- package/dist/src/workspace/reports/chart/axes.d.ts +17 -0
- package/dist/src/workspace/reports/chart/build.d.ts +208 -0
- package/dist/src/workspace/reports/chart/caches.d.ts +57 -0
- package/dist/src/workspace/reports/chart/colors.d.ts +17 -0
- package/dist/src/workspace/reports/chart/comment-gutter.d.ts +44 -0
- package/dist/src/workspace/reports/chart/demand.d.ts +50 -0
- package/dist/src/workspace/reports/chart/paint.d.ts +17 -0
- package/dist/src/workspace/reports/chart/pan-zoom.d.ts +19 -0
- package/dist/src/workspace/reports/chart/payload.d.ts +57 -0
- package/dist/src/workspace/reports/chart/plot-interactions.d.ts +13 -0
- package/dist/src/workspace/reports/chart/plot-tooltip.d.ts +10 -0
- package/dist/src/workspace/reports/chart/plot.d.ts +29 -0
- package/dist/src/workspace/reports/chart/realtime.d.ts +96 -0
- package/dist/src/workspace/reports/chart/representation.d.ts +40 -0
- package/dist/src/workspace/reports/chart/tooltip.d.ts +36 -0
- package/dist/src/workspace/reports/chart/use-realtime.d.ts +44 -0
- package/dist/src/workspace/reports/color/cascade.d.ts +3 -0
- package/dist/src/workspace/reports/color/css.d.ts +5 -0
- package/dist/src/workspace/reports/color/select.d.ts +11 -0
- package/dist/src/workspace/reports/comments/author.d.ts +2 -0
- package/dist/src/workspace/reports/comments/errors.d.ts +11 -0
- package/dist/src/workspace/reports/comments/footer.d.ts +1 -0
- package/dist/src/workspace/reports/comments/use-comments.d.ts +9 -0
- package/dist/src/workspace/reports/csv/build.d.ts +29 -0
- package/dist/src/workspace/reports/csv/columns.d.ts +18 -0
- package/dist/src/workspace/reports/csv/fetch.d.ts +29 -0
- package/dist/src/workspace/reports/csv/use-export.d.ts +7 -0
- package/dist/src/workspace/reports/data/context.d.ts +79 -0
- package/dist/src/workspace/reports/data/extent.d.ts +40 -0
- package/dist/src/workspace/reports/data/provider.d.ts +20 -0
- package/dist/src/workspace/reports/data/report-caches.d.ts +56 -0
- package/dist/src/workspace/reports/data/specs.d.ts +38 -0
- package/dist/src/workspace/reports/demand-cache.d.ts +76 -0
- package/dist/src/workspace/reports/element-size.d.ts +7 -0
- package/dist/src/workspace/reports/generated.d.ts +46 -0
- package/dist/src/workspace/reports/histogram/build.d.ts +1 -0
- package/dist/src/workspace/reports/histogram/demand.d.ts +26 -0
- package/dist/src/workspace/reports/histogram/plot.d.ts +42 -0
- package/dist/src/workspace/reports/histogram/representation.d.ts +8 -0
- package/dist/src/workspace/reports/histogram/slots.d.ts +19 -0
- package/dist/src/workspace/reports/hourly-matrix/demand.d.ts +28 -0
- package/dist/src/workspace/reports/hourly-matrix/layout.d.ts +36 -0
- package/dist/src/workspace/reports/hourly-matrix/model.d.ts +66 -0
- package/dist/src/workspace/reports/hourly-matrix/representation.d.ts +7 -0
- package/dist/src/workspace/reports/html/build.d.ts +57 -0
- package/dist/src/workspace/reports/html/cache-clone.d.ts +36 -0
- package/dist/src/workspace/reports/html/calendar.d.ts +15 -0
- package/dist/src/workspace/reports/html/comments.d.ts +13 -0
- package/dist/src/workspace/reports/html/css.d.ts +2 -0
- package/dist/src/workspace/reports/html/document.d.ts +5 -0
- package/dist/src/workspace/reports/html/escape.d.ts +6 -0
- package/dist/src/workspace/reports/html/matrix.d.ts +13 -0
- package/dist/src/workspace/reports/html/mounted.d.ts +19 -0
- package/dist/src/workspace/reports/html/png.d.ts +39 -0
- package/dist/src/workspace/reports/html/ready.d.ts +56 -0
- package/dist/src/workspace/reports/html/table.d.ts +3 -0
- package/dist/src/workspace/reports/html/use-render.d.ts +8 -0
- package/dist/src/workspace/reports/html/widgets.d.ts +31 -0
- package/dist/src/workspace/reports/page.d.ts +4 -0
- package/dist/src/workspace/reports/preset/errors.d.ts +5 -0
- package/dist/src/workspace/reports/preset/form-helpers.d.ts +65 -0
- package/dist/src/workspace/reports/preset/submit.d.ts +43 -0
- package/dist/src/workspace/reports/quick-report.d.ts +17 -0
- package/dist/src/workspace/reports/readings-client.d.ts +23 -0
- package/dist/src/workspace/reports/runtime-chrome.d.ts +15 -0
- package/dist/src/workspace/reports/sankey/demand.d.ts +47 -0
- package/dist/src/workspace/reports/sankey/graph.d.ts +28 -0
- package/dist/src/workspace/reports/sankey/layout.d.ts +80 -0
- package/dist/src/workspace/reports/sankey/representation.d.ts +7 -0
- package/dist/src/workspace/reports/sankey/use-caches.d.ts +16 -0
- package/dist/src/workspace/reports/session/init.d.ts +9 -0
- package/dist/src/workspace/reports/session/storage.d.ts +24 -0
- package/dist/src/workspace/reports/state-duration/demand.d.ts +39 -0
- package/dist/src/workspace/reports/state-duration/reduce.d.ts +27 -0
- package/dist/src/workspace/reports/state-duration/representation.d.ts +7 -0
- package/dist/src/workspace/reports/state-duration/use-caches.d.ts +15 -0
- package/dist/src/workspace/reports/table/cache-fetch.d.ts +8 -0
- package/dist/src/workspace/reports/table/chunk.d.ts +31 -0
- package/dist/src/workspace/reports/table/demand.d.ts +83 -0
- package/dist/src/workspace/reports/table/fetch.d.ts +42 -0
- package/dist/src/workspace/reports/table/format.d.ts +7 -0
- package/dist/src/workspace/reports/table/representation.d.ts +10 -0
- package/dist/src/workspace/reports/table/rows.d.ts +31 -0
- package/dist/src/workspace/reports/table/snapshot.d.ts +40 -0
- package/dist/src/workspace/reports/table/totals.d.ts +4 -0
- package/dist/src/workspace/reports/time-buckets/build.d.ts +40 -0
- package/dist/src/workspace/reports/time-buckets/demand.d.ts +52 -0
- package/dist/src/workspace/reports/time-buckets/navigate.d.ts +26 -0
- package/dist/src/workspace/reports/time-buckets/plot.d.ts +58 -0
- package/dist/src/workspace/reports/time-buckets/representation.d.ts +8 -0
- package/dist/src/workspace/reports/time-buckets/slots.d.ts +23 -0
- package/dist/src/workspace/reports/time-nav.d.ts +1 -0
- package/dist/src/workspace/reports/use-demand-cache.d.ts +29 -0
- package/dist/src/workspace/reports/use-quick-report.d.ts +45 -0
- package/dist/src/workspace/reports/view.d.ts +6 -0
- package/dist/src/workspace/routes.d.ts +23 -0
- package/dist/src/workspace/setup/automations/alarm-rule-dialog.d.ts +7 -0
- package/dist/src/workspace/setup/automations/alarm-rule-lists.d.ts +61 -0
- package/dist/src/workspace/setup/automations/alarm-rules-page.d.ts +4 -0
- package/dist/src/workspace/setup/automations/document.d.ts +39 -0
- package/dist/src/workspace/setup/automations/dry-run.d.ts +12 -0
- package/dist/src/workspace/setup/automations/editor-form.d.ts +22 -0
- package/dist/src/workspace/setup/automations/editor-page.d.ts +14 -0
- package/dist/src/workspace/setup/automations/editor-tab.d.ts +6 -0
- package/dist/src/workspace/setup/automations/entity-controls.d.ts +22 -0
- package/dist/src/workspace/setup/automations/history.d.ts +15 -0
- package/dist/src/workspace/setup/automations/list-page.d.ts +28 -0
- package/dist/src/workspace/setup/automations/starter-dialog.d.ts +10 -0
- package/dist/src/workspace/setup/automations/starter-handoff.d.ts +17 -0
- package/dist/src/workspace/setup/base-revision.d.ts +64 -0
- package/dist/src/workspace/setup/breadcrumbs.d.ts +10 -0
- package/dist/src/workspace/setup/catalog-list.d.ts +21 -0
- package/dist/src/workspace/setup/dashboards-order.d.ts +10 -0
- package/dist/src/workspace/setup/dashboards-page.d.ts +24 -0
- package/dist/src/workspace/setup/dashboards-reorder-queue.d.ts +13 -0
- package/dist/src/workspace/setup/dashboards-sortable-list.d.ts +6 -0
- package/dist/src/workspace/setup/endpoints/connection-error.d.ts +3 -0
- package/dist/src/workspace/setup/endpoints/connection-indicator.d.ts +4 -0
- package/dist/src/workspace/setup/endpoints/device-log-clock.d.ts +7 -0
- package/dist/src/workspace/setup/endpoints/display.d.ts +12 -0
- package/dist/src/workspace/setup/endpoints/edit-dialog.d.ts +5 -0
- package/dist/src/workspace/setup/endpoints/enabled-switch.d.ts +10 -0
- package/dist/src/workspace/setup/endpoints/form-problem.d.ts +5 -0
- package/dist/src/workspace/setup/endpoints/page.d.ts +11 -0
- package/dist/src/workspace/setup/endpoints/presence-challenge.d.ts +34 -0
- package/dist/src/workspace/setup/endpoints/presence-code.d.ts +6 -0
- package/dist/src/workspace/setup/endpoints/programs/deploy-status-bar.d.ts +13 -0
- package/dist/src/workspace/setup/endpoints/programs/device-log.d.ts +15 -0
- package/dist/src/workspace/setup/endpoints/programs/dialogs.d.ts +16 -0
- package/dist/src/workspace/setup/endpoints/programs/live-state-pane.d.ts +7 -0
- package/dist/src/workspace/setup/endpoints/programs/program-editor.d.ts +79 -0
- package/dist/src/workspace/setup/endpoints/programs/programs-tab.d.ts +14 -0
- package/dist/src/workspace/setup/endpoints/programs/settings-dialog.d.ts +9 -0
- package/dist/src/workspace/setup/endpoints/programs/starter-dialog.d.ts +17 -0
- package/dist/src/workspace/setup/endpoints/programs/tasks-table.d.ts +5 -0
- package/dist/src/workspace/setup/endpoints/sharing.d.ts +9 -0
- package/dist/src/workspace/setup/endpoints/status-connection.d.ts +8 -0
- package/dist/src/workspace/setup/endpoints/status-device-ui-progress.d.ts +9 -0
- package/dist/src/workspace/setup/endpoints/status-device-ui.d.ts +8 -0
- package/dist/src/workspace/setup/endpoints/status-page.d.ts +14 -0
- package/dist/src/workspace/setup/endpoints/status-recorded.d.ts +13 -0
- package/dist/src/workspace/setup/endpoints/status-tab.d.ts +12 -0
- package/dist/src/workspace/setup/endpoints/wireguard-docs.d.ts +11 -0
- package/dist/src/workspace/setup/files/errors.d.ts +1 -0
- package/dist/src/workspace/setup/files/http.d.ts +21 -0
- package/dist/src/workspace/setup/files/page.d.ts +3 -0
- package/dist/src/workspace/setup/menu.d.ts +14 -0
- package/dist/src/workspace/setup/nav.d.ts +11 -0
- package/dist/src/workspace/setup/parameters/dialogs.d.ts +32 -0
- package/dist/src/workspace/setup/parameters/edit/create-branch-form.d.ts +10 -0
- package/dist/src/workspace/setup/parameters/edit/dialog-body.d.ts +13 -0
- package/dist/src/workspace/setup/parameters/edit/form.d.ts +22 -0
- package/dist/src/workspace/setup/parameters/page.d.ts +3 -0
- package/dist/src/workspace/setup/parameters/recorded.d.ts +14 -0
- package/dist/src/workspace/setup/parameters/selection.d.ts +45 -0
- package/dist/src/workspace/setup/parameters/stamp-from-template-form.d.ts +10 -0
- package/dist/src/workspace/setup/parameters/toolbar.d.ts +32 -0
- package/dist/src/workspace/setup/parameters/tree/expand.d.ts +10 -0
- package/dist/src/workspace/setup/parameters/tree/model.d.ts +61 -0
- package/dist/src/workspace/setup/parameters/tree/rows.d.ts +38 -0
- package/dist/src/workspace/setup/parameters/tree/storage.d.ts +13 -0
- package/dist/src/workspace/setup/parameters/use-tree-selection.d.ts +21 -0
- package/dist/src/workspace/setup/parameters/use-tree-view.d.ts +22 -0
- package/dist/src/workspace/setup/report/add-parameters-dialog.d.ts +8 -0
- package/dist/src/workspace/setup/report/calendar-editor.d.ts +9 -0
- package/dist/src/workspace/setup/report/chart-editor.d.ts +14 -0
- package/dist/src/workspace/setup/report/edit/confirm-removal-dialog.d.ts +9 -0
- package/dist/src/workspace/setup/report/edit/dialog-body.d.ts +10 -0
- package/dist/src/workspace/setup/report/edit/form.d.ts +14 -0
- package/dist/src/workspace/setup/report/edit/representations-section.d.ts +11 -0
- package/dist/src/workspace/setup/report/edit/sections.d.ts +23 -0
- package/dist/src/workspace/setup/report/edit/state.d.ts +29 -0
- package/dist/src/workspace/setup/report/foldable-item-card.d.ts +47 -0
- package/dist/src/workspace/setup/report/histogram-editor.d.ts +9 -0
- package/dist/src/workspace/setup/report/hourly-matrix-editor.d.ts +9 -0
- package/dist/src/workspace/setup/report/includes-literal.d.ts +1 -0
- package/dist/src/workspace/setup/report/layout-editor.d.ts +6 -0
- package/dist/src/workspace/setup/report/number-draft-input.d.ts +23 -0
- package/dist/src/workspace/setup/report/page.d.ts +3 -0
- package/dist/src/workspace/setup/report/sankey-editor.d.ts +9 -0
- package/dist/src/workspace/setup/report/state-duration-editor.d.ts +9 -0
- package/dist/src/workspace/setup/report/table-editor.d.ts +9 -0
- package/dist/src/workspace/setup/report/time-buckets-editor.d.ts +9 -0
- package/dist/src/workspace/setup/route/dialog.d.ts +33 -0
- package/dist/src/workspace/setup/route/dialogs.d.ts +41 -0
- package/dist/src/workspace/setup/sections.d.ts +17 -0
- package/dist/src/workspace/setup/starters/starter-fields.d.ts +45 -0
- package/dist/src/workspace/setup/starters/starter-form.d.ts +50 -0
- package/dist/src/workspace/setup/storage/dialogs.d.ts +77 -0
- package/dist/src/workspace/setup/storage/format.d.ts +6 -0
- package/dist/src/workspace/setup/storage/page.d.ts +3 -0
- package/dist/src/workspace/setup/storage/retention-note.d.ts +11 -0
- package/dist/src/workspace/setup/storage/retention.d.ts +21 -0
- package/dist/src/workspace/shell.d.ts +21 -0
- package/dist/src/workspace/sidebar-nav-link.d.ts +13 -0
- package/dist/src/workspace/suspended.d.ts +8 -0
- package/dist/starter-fields-yM4B49nd.js +583 -0
- package/dist/starter-handoff-BaK8Ss8I.js +18 -0
- package/dist/styles-reference.css +54 -0
- package/dist/styles.css +2 -0
- package/dist/ui.js +2134 -0
- package/dist/uk-CjXPq9Lk.js +4577 -0
- package/dist/wireguard-docs-CC8XKBR7.js +78 -0
- package/package.json +155 -3
|
@@ -0,0 +1,1040 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
+
import { $r as t, Bn as n, Fr as r, Ft as i, Gt as a, Hn as o, Kn as s, Mr as c, Qn as l, Wn as u, Wt as d, c as f, ii as p, kt as m, o as h, zn as g } from "./quick-report-DEqqwQxR.js";
|
|
3
|
+
import { f as _, h as v, m as y, n as b } from "./i18n-Dt6xbSK6.js";
|
|
4
|
+
import { $ as x, B as S, H as C, K as w, R as T, U as E, V as D, X as O, Y as ee, jt as k, xt as A } from "./alert-dialog-B60PF7S9.js";
|
|
5
|
+
import { A as te, B as j, H as M, L as N, M as P, V as F, z as I } from "./spinner-BRcNKwjH.js";
|
|
6
|
+
import { b as ne } from "./panel-BCwBlB_h.js";
|
|
7
|
+
import { n as re, r as L, t as ie } from "./query-gate-DqmHsZ07.js";
|
|
8
|
+
import { t as ae } from "./breadcrumbs-D2u8KZQo.js";
|
|
9
|
+
import { n as oe, t as se } from "./base-revision-DYCOZS0R.js";
|
|
10
|
+
import { a as ce, c as le, d as R, i as ue, l as de, n as fe, o as pe, r as me, s as he, t as ge, u as _e } from "./catalog-list-LXuRix0-.js";
|
|
11
|
+
import { useQuery as ve } from "@tanstack/react-query";
|
|
12
|
+
import { createElement as ye, useRef as be, useState as z } from "react";
|
|
13
|
+
import { DASHBOARD_ABI_VERSION as xe, DASHBOARD_ICON_IDS as Se, DASHBOARD_MANIFEST_FILE as Ce, DEFAULT_DASHBOARD_ICON_ID as B, DEFAULT_DASHBOARD_TEMPLATE_ID as V, dashboardConfigurationIssues as we, dashboardCopyFormSchema as Te, dashboardCopyFormToInput as Ee, dashboardCreateFormToInput as De, dashboardCreateFromReportFormSchema as Oe, dashboardCreateFromReportFormToInput as ke, dashboardEntrypointUrl as Ae, dashboardManifestSchema as je, dashboardNameFormSchema as Me, dashboardSettingsFormSchema as Ne, dashboardSettingsFormToInput as Pe, dashboardSettingsFormValues as Fe, dashboardSupportedLocalesType as Ie, formatDashboardConfigurationIssues as Le, isDashboardConfigType as Re } from "@overvis/hmi-shared/dashboard";
|
|
14
|
+
import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
|
|
15
|
+
import { Compile as ze } from "typebox/compile";
|
|
16
|
+
import { CopyIcon as Be, GripVerticalIcon as Ve, LayoutDashboardIcon as He, PencilIcon as Ue, PlusIcon as We, Trash2Icon as Ge, icons as G } from "lucide-react";
|
|
17
|
+
import { formatAppDateTime as Ke, resolveLocalized as K } from "@overvis/hmi-shared";
|
|
18
|
+
import { useNavigate as q } from "@tanstack/react-router";
|
|
19
|
+
import { Accessibility as qe } from "@dnd-kit/dom";
|
|
20
|
+
import { DragDropProvider as Je } from "@dnd-kit/react";
|
|
21
|
+
import { isSortable as J, useSortable as Ye } from "@dnd-kit/react/sortable";
|
|
22
|
+
import { builtinGraphicsSymbolPrefix as Xe } from "@overvis/hmi-shared/graphics";
|
|
23
|
+
// src/workspace/dashboards/icon.tsx
|
|
24
|
+
function Ze(e) {
|
|
25
|
+
return e.split("-").map((e) => e.length === 0 ? "" : e.charAt(0).toUpperCase() + e.slice(1)).join("");
|
|
26
|
+
}
|
|
27
|
+
function Qe(e) {
|
|
28
|
+
return typeof e == "function" || typeof e == "object" && !!e && "$$typeof" in e;
|
|
29
|
+
}
|
|
30
|
+
function $e(e) {
|
|
31
|
+
let t = Ze(e);
|
|
32
|
+
if (!Object.hasOwn(G, t)) return;
|
|
33
|
+
let n = Reflect.get(G, t);
|
|
34
|
+
return Qe(n) ? n : void 0;
|
|
35
|
+
}
|
|
36
|
+
var et = $e(B) ?? G.LayoutDashboard;
|
|
37
|
+
function tt(e) {
|
|
38
|
+
if (e != null) {
|
|
39
|
+
let t = e.trim();
|
|
40
|
+
if (t.length > 0) {
|
|
41
|
+
let e = $e(t);
|
|
42
|
+
if (e) return e;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return et;
|
|
46
|
+
}
|
|
47
|
+
function Y({ icon: e, className: t, strokeWidth: n }) {
|
|
48
|
+
return ye(tt(e), {
|
|
49
|
+
className: t,
|
|
50
|
+
strokeWidth: n,
|
|
51
|
+
"aria-hidden": !0
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
// src/workspace/dashboards/copy-dialog.tsx
|
|
55
|
+
function nt(e, t) {
|
|
56
|
+
let n = q(), r = be(null);
|
|
57
|
+
return {
|
|
58
|
+
record: (e) => {
|
|
59
|
+
r.current = e;
|
|
60
|
+
},
|
|
61
|
+
onSubmit: () => {
|
|
62
|
+
let i = r.current;
|
|
63
|
+
i != null && (t(), n({
|
|
64
|
+
to: "/workspace/$workspaceId/d/$dashboardId",
|
|
65
|
+
params: {
|
|
66
|
+
workspaceId: e,
|
|
67
|
+
dashboardId: i
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function rt({ workspaceId: e, dashboard: t, onClose: n }) {
|
|
74
|
+
let r = y(), a = v(), o = nt(e, n), c = i(e).copy, u = Array.from(K(t.name, a)), d = r("dashboard_copy_default_name", { name: u.join("") });
|
|
75
|
+
for (; u.length > 0 && Te["~standard"].validate({ name: d }).issues?.some((e) => e.keyword === "maxLength");) u.pop(), d = r("dashboard_copy_default_name", { name: u.join("") });
|
|
76
|
+
let f = s({
|
|
77
|
+
defaultValues: { name: d },
|
|
78
|
+
validators: g({
|
|
79
|
+
schema: Te,
|
|
80
|
+
submit: async (e) => {
|
|
81
|
+
let n = await c.mutateAsync(Ee(e, t.id));
|
|
82
|
+
return o.record(n.id), null;
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
85
|
+
onSubmitInvalid: l,
|
|
86
|
+
onSubmit: o.onSubmit
|
|
87
|
+
});
|
|
88
|
+
return /* @__PURE__ */ U(T, {
|
|
89
|
+
open: !0,
|
|
90
|
+
onOpenChange: (e) => {
|
|
91
|
+
e || n();
|
|
92
|
+
},
|
|
93
|
+
children: /* @__PURE__ */ U(S, { children: /* @__PURE__ */ U(f.AppForm, { children: /* @__PURE__ */ W(f.FormRoot, {
|
|
94
|
+
layout: "dialog",
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(w, { children: r("dashboard_copy_title") }), /* @__PURE__ */ U(D, { children: r("dashboard_copy_description") })] }),
|
|
97
|
+
/* @__PURE__ */ U(F, { children: /* @__PURE__ */ U(f.AppField, {
|
|
98
|
+
name: "name",
|
|
99
|
+
children: (e) => /* @__PURE__ */ U(e.TextField, {
|
|
100
|
+
label: r("dashboard_field_name"),
|
|
101
|
+
autoFocus: !0
|
|
102
|
+
})
|
|
103
|
+
}) }),
|
|
104
|
+
/* @__PURE__ */ W(C, { children: [/* @__PURE__ */ U(k, {
|
|
105
|
+
type: "button",
|
|
106
|
+
variant: "outline",
|
|
107
|
+
onClick: n,
|
|
108
|
+
children: r("action_cancel")
|
|
109
|
+
}), /* @__PURE__ */ U(f.SubmitButton, {
|
|
110
|
+
label: r("dashboard_copy_action"),
|
|
111
|
+
pendingLabel: r("dashboard_copy_pending")
|
|
112
|
+
})] })
|
|
113
|
+
]
|
|
114
|
+
}) }) })
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
// src/workspace/dashboards/load-module.ts
|
|
118
|
+
var it = [
|
|
119
|
+
"en",
|
|
120
|
+
"pl",
|
|
121
|
+
"uk",
|
|
122
|
+
"ru"
|
|
123
|
+
], at = ze(Ie);
|
|
124
|
+
function ot(e) {
|
|
125
|
+
return e.supportedLocales.includes(e.locale) ? e.locale : "en";
|
|
126
|
+
}
|
|
127
|
+
function st(e, t) {
|
|
128
|
+
if (!e.ok) return e.reason === "rebuild_required" ? { kind: "rebuild_required" } : { kind: "load_failed" };
|
|
129
|
+
let n = we(e.module.dashboardConfigType, t);
|
|
130
|
+
return n.length > 0 ? {
|
|
131
|
+
kind: "issues",
|
|
132
|
+
text: Le(n)
|
|
133
|
+
} : null;
|
|
134
|
+
}
|
|
135
|
+
function ct(e) {
|
|
136
|
+
return typeof e == "function";
|
|
137
|
+
}
|
|
138
|
+
function lt(e) {
|
|
139
|
+
if (typeof e != "object" || !e) return {
|
|
140
|
+
ok: !1,
|
|
141
|
+
reason: "invalid_module"
|
|
142
|
+
};
|
|
143
|
+
if (!("default" in e)) return {
|
|
144
|
+
ok: !1,
|
|
145
|
+
reason: "no_default"
|
|
146
|
+
};
|
|
147
|
+
let t = Reflect.get(e, "default");
|
|
148
|
+
if (!ct(t)) return {
|
|
149
|
+
ok: !1,
|
|
150
|
+
reason: "no_default"
|
|
151
|
+
};
|
|
152
|
+
if (!("dashboardConfigType" in e)) return {
|
|
153
|
+
ok: !1,
|
|
154
|
+
reason: "no_config_type"
|
|
155
|
+
};
|
|
156
|
+
let n = Reflect.get(e, "dashboardConfigType");
|
|
157
|
+
if (!Re(n)) return {
|
|
158
|
+
ok: !1,
|
|
159
|
+
reason: "no_config_type"
|
|
160
|
+
};
|
|
161
|
+
let r = "supportedLocales" in e ? e.supportedLocales : it;
|
|
162
|
+
if (!at.Check(r)) return {
|
|
163
|
+
ok: !1,
|
|
164
|
+
reason: "invalid_module"
|
|
165
|
+
};
|
|
166
|
+
let i = "graphicsSymbols" in e ? e.graphicsSymbols : [];
|
|
167
|
+
return !Array.isArray(i) || !i.every(h) || i.some((e) => e.id.startsWith(Xe)) || new Set([...f, ...i].map((e) => e.id)).size !== i.length + f.length ? {
|
|
168
|
+
ok: !1,
|
|
169
|
+
reason: "invalid_module"
|
|
170
|
+
} : {
|
|
171
|
+
ok: !0,
|
|
172
|
+
module: {
|
|
173
|
+
component: t,
|
|
174
|
+
dashboardConfigType: n,
|
|
175
|
+
graphicsSymbols: i,
|
|
176
|
+
supportedLocales: r
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
var ut = /\/static\/dashboard\/[^/]+\/index\.js$/;
|
|
181
|
+
function dt(e) {
|
|
182
|
+
let t = e.search(/[?#]/), n = t < 0 ? e : e.slice(0, t), r = t < 0 ? "" : e.slice(t);
|
|
183
|
+
return ut.test(n) ? `${n.slice(0, -8)}${Ce}${r}` : null;
|
|
184
|
+
}
|
|
185
|
+
async function ft(e) {
|
|
186
|
+
let t = await fetch(e, { headers: { Accept: "application/json" } });
|
|
187
|
+
if (t.status === 404) return !1;
|
|
188
|
+
if (!t.ok) throw Error(`Dashboard manifest request failed with HTTP ${String(t.status)}`);
|
|
189
|
+
let n;
|
|
190
|
+
try {
|
|
191
|
+
n = await t.json();
|
|
192
|
+
} catch {
|
|
193
|
+
return !1;
|
|
194
|
+
}
|
|
195
|
+
let r = je["~standard"].validate(n);
|
|
196
|
+
return r.issues == null && r.value.abi === xe;
|
|
197
|
+
}
|
|
198
|
+
async function pt(e) {
|
|
199
|
+
let t = dt(e);
|
|
200
|
+
return t != null && !await ft(t) ? {
|
|
201
|
+
ok: !1,
|
|
202
|
+
reason: "rebuild_required"
|
|
203
|
+
} : lt(await import(
|
|
204
|
+
/* @vite-ignore */
|
|
205
|
+
e
|
|
206
|
+
));
|
|
207
|
+
}
|
|
208
|
+
// src/workspace/dashboards/entrypoint.ts
|
|
209
|
+
async function mt(e) {
|
|
210
|
+
try {
|
|
211
|
+
let t = await fetch(e, {
|
|
212
|
+
method: "GET",
|
|
213
|
+
headers: { Accept: "text/javascript" }
|
|
214
|
+
});
|
|
215
|
+
if (!t.ok) return !1;
|
|
216
|
+
let n = t.headers.get("content-type") ?? "";
|
|
217
|
+
return n.includes("javascript") || n.includes("typescript");
|
|
218
|
+
} catch {
|
|
219
|
+
return !1;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async function ht(e) {
|
|
223
|
+
return e.mode !== "local" || await mt(e.preferredUrl) ? {
|
|
224
|
+
url: e.preferredUrl,
|
|
225
|
+
usingRemoteFallback: !1
|
|
226
|
+
} : {
|
|
227
|
+
url: Ae(e.dashboardId),
|
|
228
|
+
usingRemoteFallback: !0
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
function gt(e) {
|
|
232
|
+
let { mode: t, getDashboardEntrypointUrl: n } = r();
|
|
233
|
+
return ve({
|
|
234
|
+
queryKey: [
|
|
235
|
+
a,
|
|
236
|
+
t,
|
|
237
|
+
e
|
|
238
|
+
],
|
|
239
|
+
queryFn: () => ht({
|
|
240
|
+
mode: t,
|
|
241
|
+
dashboardId: e,
|
|
242
|
+
preferredUrl: n(e)
|
|
243
|
+
}),
|
|
244
|
+
staleTime: 3e4,
|
|
245
|
+
retry: !1
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
// src/workspace/dashboards/stylesheet.ts
|
|
249
|
+
var _t = "data-overvis-dashboard-css", vt = 0;
|
|
250
|
+
function yt() {
|
|
251
|
+
return vt += 1, String(vt);
|
|
252
|
+
}
|
|
253
|
+
function X(e, t) {
|
|
254
|
+
return `${e}${e.includes("?") ? "&" : "?"}v=${t}`;
|
|
255
|
+
}
|
|
256
|
+
function bt(e, t) {
|
|
257
|
+
let n = X(e, t), r = new AbortController(), i = !1, a = null;
|
|
258
|
+
return {
|
|
259
|
+
href: n,
|
|
260
|
+
settled: new Promise((e) => {
|
|
261
|
+
if (r.signal.aborted) {
|
|
262
|
+
e("missing");
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
let t = document.createElement("link");
|
|
266
|
+
t.rel = "stylesheet", t.href = n, t.setAttribute(_t, n), a = t;
|
|
267
|
+
let o = (n) => {
|
|
268
|
+
r.signal.removeEventListener("abort", l), t.removeEventListener("load", s), t.removeEventListener("error", c), e(n);
|
|
269
|
+
}, s = () => {
|
|
270
|
+
i ? (t.remove(), o("missing")) : o("ok");
|
|
271
|
+
}, c = () => {
|
|
272
|
+
t.remove(), a === t && (a = null), o("missing");
|
|
273
|
+
}, l = () => {
|
|
274
|
+
t.remove(), a === t && (a = null), o("missing");
|
|
275
|
+
};
|
|
276
|
+
t.addEventListener("load", s), t.addEventListener("error", c), r.signal.addEventListener("abort", l), document.head.appendChild(t);
|
|
277
|
+
}).then((e) => (i && (a?.remove(), a = null), e)),
|
|
278
|
+
stop: () => {
|
|
279
|
+
i = !0, r.abort(), a?.remove(), a = null;
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
// src/workspace/dashboards/enabled-switch.tsx
|
|
284
|
+
function Z({ workspaceId: e, dashboard: t, compact: n = !1, className: r }) {
|
|
285
|
+
let a = y(), o = b(), { enable: s, disable: c } = i(e), l = (e) => ({
|
|
286
|
+
onSuccess: () => {
|
|
287
|
+
o.success(e);
|
|
288
|
+
},
|
|
289
|
+
onError: (e) => {
|
|
290
|
+
o.error(u(e));
|
|
291
|
+
}
|
|
292
|
+
}), d = t.disabledSince == null, f = c.isPending || s.isPending;
|
|
293
|
+
return /* @__PURE__ */ W("div", {
|
|
294
|
+
className: r,
|
|
295
|
+
onClick: (e) => {
|
|
296
|
+
e.stopPropagation();
|
|
297
|
+
},
|
|
298
|
+
onKeyDown: (e) => {
|
|
299
|
+
e.stopPropagation();
|
|
300
|
+
},
|
|
301
|
+
children: [/* @__PURE__ */ W("div", {
|
|
302
|
+
className: "flex items-center gap-2",
|
|
303
|
+
children: [/* @__PURE__ */ U(x, {
|
|
304
|
+
checked: d,
|
|
305
|
+
disabled: f,
|
|
306
|
+
size: "sm",
|
|
307
|
+
"aria-label": a("dashboard_enabled_label"),
|
|
308
|
+
onCheckedChange: (e) => {
|
|
309
|
+
e ? s.mutate({
|
|
310
|
+
id: t.id,
|
|
311
|
+
baseRevision: t.revision
|
|
312
|
+
}, l(a("dashboard_enable_toast"))) : c.mutate({
|
|
313
|
+
id: t.id,
|
|
314
|
+
baseRevision: t.revision
|
|
315
|
+
}, l(a("dashboard_disable_toast")));
|
|
316
|
+
}
|
|
317
|
+
}), n ? null : /* @__PURE__ */ U("span", {
|
|
318
|
+
className: "text-sm text-muted-foreground",
|
|
319
|
+
children: a("dashboard_enabled_label")
|
|
320
|
+
})]
|
|
321
|
+
}), !n && t.disabledSince != null ? /* @__PURE__ */ U("p", {
|
|
322
|
+
className: "mt-1 text-xs text-muted-foreground",
|
|
323
|
+
children: a("dashboard_disabled_since", { since: Ke(t.disabledSince) })
|
|
324
|
+
}) : null]
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function xt({ dashboard: e }) {
|
|
328
|
+
let t = y();
|
|
329
|
+
return e.disabledSince == null ? null : /* @__PURE__ */ U("span", {
|
|
330
|
+
className: "\n inline-flex shrink-0 items-center rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium\n text-muted-foreground\n ",
|
|
331
|
+
children: t("dashboard_disabled_badge")
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
// src/workspace/setup/dashboards-order.ts
|
|
335
|
+
function St(e) {
|
|
336
|
+
let { ids: t, fromIndex: n, toIndex: r } = e;
|
|
337
|
+
if (!Number.isInteger(n) || !Number.isInteger(r) || n < 0 || r < 0 || n >= t.length || r >= t.length || n === r) return null;
|
|
338
|
+
let i = [...t], [a] = i.splice(n, 1);
|
|
339
|
+
return a == null ? null : (i.splice(r, 0, a), i);
|
|
340
|
+
}
|
|
341
|
+
function Ct(e, t) {
|
|
342
|
+
let n = new Map(e.map((e) => [e.id, e])), r = [], i = /* @__PURE__ */ new Set();
|
|
343
|
+
for (let e of t) {
|
|
344
|
+
if (i.has(e)) continue;
|
|
345
|
+
let t = n.get(e);
|
|
346
|
+
t != null && (r.push(t), i.add(e));
|
|
347
|
+
}
|
|
348
|
+
for (let t of e) i.has(t.id) || (r.push(t), i.add(t.id));
|
|
349
|
+
return r;
|
|
350
|
+
}
|
|
351
|
+
// src/workspace/setup/dashboards-reorder-queue.ts
|
|
352
|
+
function wt() {
|
|
353
|
+
let e = 0, t = null, n = !1;
|
|
354
|
+
async function r() {
|
|
355
|
+
if (!n) {
|
|
356
|
+
n = !0;
|
|
357
|
+
try {
|
|
358
|
+
for (; t != null;) {
|
|
359
|
+
let { order: n, seq: r, handlers: i } = t;
|
|
360
|
+
t = null;
|
|
361
|
+
try {
|
|
362
|
+
let t = await i.send(n);
|
|
363
|
+
r === e && i.onLatestSuccess(t);
|
|
364
|
+
} catch (t) {
|
|
365
|
+
r === e && i.onLatestFailure(t);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
} finally {
|
|
369
|
+
n = !1, t != null && r();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return { enqueue(n, i) {
|
|
374
|
+
e += 1, t = {
|
|
375
|
+
order: n,
|
|
376
|
+
seq: e,
|
|
377
|
+
handlers: i
|
|
378
|
+
}, r();
|
|
379
|
+
} };
|
|
380
|
+
}
|
|
381
|
+
// src/workspace/setup/dashboards-sortable-list.tsx
|
|
382
|
+
function Q(e) {
|
|
383
|
+
let t = e.data;
|
|
384
|
+
return typeof t == "object" && t && "name" in t && typeof t.name == "string" ? t.name : "";
|
|
385
|
+
}
|
|
386
|
+
function Tt({ workspaceId: e, dashboards: t, onDelete: n }) {
|
|
387
|
+
return t.length >= 2 ? /* @__PURE__ */ U(Et, {
|
|
388
|
+
workspaceId: e,
|
|
389
|
+
dashboards: t,
|
|
390
|
+
onDelete: n
|
|
391
|
+
}) : /* @__PURE__ */ U(ce, { children: t.map((t) => /* @__PURE__ */ U(Ot, {
|
|
392
|
+
workspaceId: e,
|
|
393
|
+
dashboard: t,
|
|
394
|
+
onDelete: n
|
|
395
|
+
}, t.id)) });
|
|
396
|
+
}
|
|
397
|
+
function Et({ workspaceId: e, dashboards: t, onDelete: n }) {
|
|
398
|
+
let r = y(), i = b(), a = p.useUtils(), o = p.dashboard.reorder.useMutation(), [s, c] = z(null), l = s ?? t, f = l.length, [m] = z(() => wt());
|
|
399
|
+
return /* @__PURE__ */ U(Je, {
|
|
400
|
+
plugins: (e) => [...e, qe.configure({
|
|
401
|
+
screenReaderInstructions: { draggable: r("dashboard_reorder_keyboard_instructions") },
|
|
402
|
+
announcements: {
|
|
403
|
+
dragstart(e) {
|
|
404
|
+
let t = e.operation.source;
|
|
405
|
+
if (J(t)) return r("dashboard_reorder_announcement_start", {
|
|
406
|
+
name: Q(t),
|
|
407
|
+
position: t.index + 1,
|
|
408
|
+
total: f
|
|
409
|
+
});
|
|
410
|
+
},
|
|
411
|
+
dragover(e) {
|
|
412
|
+
let t = e.operation.source;
|
|
413
|
+
if (J(t)) return r("dashboard_reorder_announcement_move", {
|
|
414
|
+
name: Q(t),
|
|
415
|
+
position: t.index + 1,
|
|
416
|
+
total: f
|
|
417
|
+
});
|
|
418
|
+
},
|
|
419
|
+
dragend(e) {
|
|
420
|
+
let t = e.operation.source;
|
|
421
|
+
if (J(t)) return e.canceled ? r("dashboard_reorder_announcement_cancel", {
|
|
422
|
+
name: Q(t),
|
|
423
|
+
position: t.initialIndex + 1,
|
|
424
|
+
total: f
|
|
425
|
+
}) : r("dashboard_reorder_announcement_drop", {
|
|
426
|
+
name: Q(t),
|
|
427
|
+
position: t.index + 1,
|
|
428
|
+
total: f
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
})],
|
|
433
|
+
onDragStart: () => {
|
|
434
|
+
c(t);
|
|
435
|
+
},
|
|
436
|
+
onDragEnd: (n) => {
|
|
437
|
+
let r = s ?? t;
|
|
438
|
+
if (c(null), n.canceled) return;
|
|
439
|
+
let { source: l } = n.operation;
|
|
440
|
+
if (!J(l)) return;
|
|
441
|
+
let f = St({
|
|
442
|
+
ids: r.map((e) => e.id),
|
|
443
|
+
fromIndex: l.initialIndex,
|
|
444
|
+
toIndex: l.index
|
|
445
|
+
});
|
|
446
|
+
f != null && (a.dashboard.list.setData({ workspaceId: e }, (e) => ({ dashboards: Ct(e?.dashboards ?? r, f) })), m.enqueue(f, {
|
|
447
|
+
send: (t) => o.mutateAsync({
|
|
448
|
+
workspaceId: e,
|
|
449
|
+
ids: t
|
|
450
|
+
}),
|
|
451
|
+
onLatestSuccess: (t) => {
|
|
452
|
+
let n = t.dashboards.map((e) => e.id);
|
|
453
|
+
a.dashboard.list.setData({ workspaceId: e }, (e) => e == null ? t : { dashboards: Ct(e.dashboards, n) });
|
|
454
|
+
},
|
|
455
|
+
onLatestFailure: (t) => {
|
|
456
|
+
i.error(u(t)), d(a, {
|
|
457
|
+
entity: "dashboard",
|
|
458
|
+
workspaceId: e
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
}));
|
|
462
|
+
},
|
|
463
|
+
children: /* @__PURE__ */ U(ce, { children: l.map((t, r) => /* @__PURE__ */ U(Dt, {
|
|
464
|
+
workspaceId: e,
|
|
465
|
+
dashboard: t,
|
|
466
|
+
index: r,
|
|
467
|
+
onDelete: n
|
|
468
|
+
}, t.id)) })
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
function Dt({ workspaceId: e, dashboard: t, index: n, onDelete: r }) {
|
|
472
|
+
let i = v(), a = K(t.name, i), { ref: o, handleRef: s, isDragging: c } = Ye({
|
|
473
|
+
id: t.id,
|
|
474
|
+
index: n,
|
|
475
|
+
data: { name: a }
|
|
476
|
+
});
|
|
477
|
+
return /* @__PURE__ */ U(Ot, {
|
|
478
|
+
workspaceId: e,
|
|
479
|
+
dashboard: t,
|
|
480
|
+
onDelete: r,
|
|
481
|
+
sortableRef: o,
|
|
482
|
+
handleRef: s,
|
|
483
|
+
isDragging: c
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
function Ot({ workspaceId: e, dashboard: t, onDelete: n, sortableRef: r, handleRef: i, isDragging: a = !1 }) {
|
|
487
|
+
let o = y(), s = v(), l = q(), u = c(), [d, f] = z(!1), p = t.description == null ? "" : K(t.description, s);
|
|
488
|
+
return /* @__PURE__ */ W(_e, {
|
|
489
|
+
ref: r,
|
|
490
|
+
"data-context-dashboard-id": t.id,
|
|
491
|
+
className: `
|
|
492
|
+
${i == null ? "" : "gap-2"}
|
|
493
|
+
${a ? "border-b-transparent" : ""}
|
|
494
|
+
`,
|
|
495
|
+
children: [
|
|
496
|
+
i == null ? null : /* @__PURE__ */ U("button", {
|
|
497
|
+
type: "button",
|
|
498
|
+
"aria-label": o("dashboard_reorder_handle"),
|
|
499
|
+
className: "\n -ml-1 flex h-7 w-4 shrink-0 cursor-grab touch-none items-center justify-center\n text-muted-foreground/50 transition-colors outline-none\n hover:text-muted-foreground\n focus-visible:rounded-sm focus-visible:ring-2 focus-visible:ring-ring\n active:cursor-grabbing\n [&_svg]:size-3.5\n ",
|
|
500
|
+
ref: i,
|
|
501
|
+
children: /* @__PURE__ */ U(Ve, {})
|
|
502
|
+
}),
|
|
503
|
+
/* @__PURE__ */ W(le, {
|
|
504
|
+
to: "/workspace/$workspaceId/d/$dashboardId",
|
|
505
|
+
params: {
|
|
506
|
+
workspaceId: e,
|
|
507
|
+
dashboardId: t.id
|
|
508
|
+
},
|
|
509
|
+
className: "\n flex-row items-center gap-2.5\n sm:items-center\n ",
|
|
510
|
+
children: [/* @__PURE__ */ U(Y, {
|
|
511
|
+
icon: t.icon,
|
|
512
|
+
className: "size-4 shrink-0 text-muted-foreground",
|
|
513
|
+
strokeWidth: 1.75
|
|
514
|
+
}), /* @__PURE__ */ W("div", {
|
|
515
|
+
className: "min-w-0",
|
|
516
|
+
children: [/* @__PURE__ */ W("div", {
|
|
517
|
+
className: "flex min-w-0 items-center gap-2",
|
|
518
|
+
children: [/* @__PURE__ */ U(he, { children: K(t.name, s) }), /* @__PURE__ */ U(xt, { dashboard: t })]
|
|
519
|
+
}), p.length > 0 ? /* @__PURE__ */ U(pe, { children: p }) : null]
|
|
520
|
+
})]
|
|
521
|
+
}),
|
|
522
|
+
/* @__PURE__ */ W(ge, { children: [/* @__PURE__ */ U(Z, {
|
|
523
|
+
workspaceId: e,
|
|
524
|
+
dashboard: t,
|
|
525
|
+
compact: !0
|
|
526
|
+
}), /* @__PURE__ */ W(ue, { children: [
|
|
527
|
+
u ? /* @__PURE__ */ U(R, {
|
|
528
|
+
"aria-label": o("dashboard_copy_action"),
|
|
529
|
+
onClick: () => {
|
|
530
|
+
f(!0);
|
|
531
|
+
},
|
|
532
|
+
children: /* @__PURE__ */ U(Be, {})
|
|
533
|
+
}) : null,
|
|
534
|
+
/* @__PURE__ */ U(R, {
|
|
535
|
+
"aria-label": o("dashboard_edit_settings"),
|
|
536
|
+
onClick: () => {
|
|
537
|
+
l({
|
|
538
|
+
to: "/workspace/$workspaceId/setup/dashboards/$dashboardId",
|
|
539
|
+
params: {
|
|
540
|
+
workspaceId: e,
|
|
541
|
+
dashboardId: t.id
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
},
|
|
545
|
+
children: /* @__PURE__ */ U(Ue, {})
|
|
546
|
+
}),
|
|
547
|
+
/* @__PURE__ */ U(R, {
|
|
548
|
+
tone: "destructive",
|
|
549
|
+
"aria-label": o("dashboard_delete_action"),
|
|
550
|
+
onClick: () => {
|
|
551
|
+
n(t);
|
|
552
|
+
},
|
|
553
|
+
children: /* @__PURE__ */ U(Ge, {})
|
|
554
|
+
})
|
|
555
|
+
] })] }),
|
|
556
|
+
d ? /* @__PURE__ */ U(rt, {
|
|
557
|
+
workspaceId: e,
|
|
558
|
+
dashboard: t,
|
|
559
|
+
onClose: () => {
|
|
560
|
+
f(!1);
|
|
561
|
+
}
|
|
562
|
+
}) : null
|
|
563
|
+
]
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
// src/workspace/setup/dashboards-page.tsx
|
|
567
|
+
var kt = /* @__PURE__ */ e({
|
|
568
|
+
CreateDashboardForm: () => Nt,
|
|
569
|
+
CreateDashboardFromReportForm: () => jt,
|
|
570
|
+
DashboardTemplateDescription: () => Mt,
|
|
571
|
+
SetupDashboardSettingsDialogBody: () => $,
|
|
572
|
+
SetupDashboardsPage: () => At
|
|
573
|
+
});
|
|
574
|
+
function At({ workspaceId: e }) {
|
|
575
|
+
let t = y(), n = b(), r = q(), i = p.dashboard.list.useQuery({ workspaceId: e }), [a, o] = z(null);
|
|
576
|
+
return /* @__PURE__ */ W(de, { children: [
|
|
577
|
+
/* @__PURE__ */ U(ne, {
|
|
578
|
+
icon: /* @__PURE__ */ U(He, {}),
|
|
579
|
+
breadcrumbs: /* @__PURE__ */ U(ae, { workspaceId: e }),
|
|
580
|
+
title: t("setup_dashboards_title"),
|
|
581
|
+
description: t("setup_dashboards_description"),
|
|
582
|
+
actions: /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W(k, {
|
|
583
|
+
type: "button",
|
|
584
|
+
size: "sm",
|
|
585
|
+
variant: "outline",
|
|
586
|
+
onClick: () => {
|
|
587
|
+
r({
|
|
588
|
+
to: "/workspace/$workspaceId/setup/dashboards/new-from-report",
|
|
589
|
+
params: { workspaceId: e }
|
|
590
|
+
});
|
|
591
|
+
},
|
|
592
|
+
children: [/* @__PURE__ */ U(We, { "data-icon": "inline-start" }), t("dashboard_create_from_report_action")]
|
|
593
|
+
}), /* @__PURE__ */ W(k, {
|
|
594
|
+
type: "button",
|
|
595
|
+
size: "sm",
|
|
596
|
+
onClick: () => {
|
|
597
|
+
r({
|
|
598
|
+
to: "/workspace/$workspaceId/setup/dashboards/new",
|
|
599
|
+
params: { workspaceId: e }
|
|
600
|
+
});
|
|
601
|
+
},
|
|
602
|
+
children: [/* @__PURE__ */ U(We, { "data-icon": "inline-start" }), t("dashboard_create_action")]
|
|
603
|
+
})] })
|
|
604
|
+
}),
|
|
605
|
+
/* @__PURE__ */ U(fe, { children: /* @__PURE__ */ U(L, {
|
|
606
|
+
query: i,
|
|
607
|
+
loading: /* @__PURE__ */ W("div", {
|
|
608
|
+
className: "space-y-2",
|
|
609
|
+
children: [/* @__PURE__ */ U(A, { className: "h-10 w-full" }), /* @__PURE__ */ U(A, { className: "h-10 w-4/5" })]
|
|
610
|
+
}),
|
|
611
|
+
error: (e) => /* @__PURE__ */ U(ie, { message: u(e) }),
|
|
612
|
+
isEmpty: (e) => e.dashboards.length === 0,
|
|
613
|
+
empty: /* @__PURE__ */ U(me, { children: t("setup_dashboards_empty") }),
|
|
614
|
+
children: ({ dashboards: t }) => /* @__PURE__ */ U(Tt, {
|
|
615
|
+
workspaceId: e,
|
|
616
|
+
dashboards: t,
|
|
617
|
+
onDelete: o
|
|
618
|
+
})
|
|
619
|
+
}) }),
|
|
620
|
+
/* @__PURE__ */ U(T, {
|
|
621
|
+
open: a != null,
|
|
622
|
+
onOpenChange: (e) => {
|
|
623
|
+
e || o(null);
|
|
624
|
+
},
|
|
625
|
+
children: /* @__PURE__ */ U(S, { children: a ? /* @__PURE__ */ U(It, {
|
|
626
|
+
workspaceId: e,
|
|
627
|
+
dashboardId: a.id,
|
|
628
|
+
baseRevision: a.revision,
|
|
629
|
+
onCancel: () => {
|
|
630
|
+
o(null);
|
|
631
|
+
},
|
|
632
|
+
onDeleted: () => {
|
|
633
|
+
o(null), n.success(t("dashboard_delete_toast"));
|
|
634
|
+
}
|
|
635
|
+
}) : null })
|
|
636
|
+
})
|
|
637
|
+
] });
|
|
638
|
+
}
|
|
639
|
+
function jt({ workspaceId: e, onCancel: n, onCreated: r }) {
|
|
640
|
+
let a = y(), o = b(), c = v(), u = p.report.preset.list.useQuery({ workspaceId: e }), d = u.data?.reportPresets ?? [], f = u.isLoading, m = u.isError, h = !f && !m && d.length === 0, _ = f || m || h, x = i(e).create, S = s({
|
|
641
|
+
defaultValues: {
|
|
642
|
+
name: "",
|
|
643
|
+
presetId: ""
|
|
644
|
+
},
|
|
645
|
+
validators: g({
|
|
646
|
+
schema: Oe,
|
|
647
|
+
submit: async (t) => (await x.mutateAsync(ke(t, {
|
|
648
|
+
workspaceId: e,
|
|
649
|
+
report: d.find((e) => e.id === t.presetId),
|
|
650
|
+
locale: c
|
|
651
|
+
})), null)
|
|
652
|
+
}),
|
|
653
|
+
onSubmitInvalid: l,
|
|
654
|
+
onSubmit: () => {
|
|
655
|
+
o.success(a("dashboard_create_toast")), r();
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
return /* @__PURE__ */ U(S.AppForm, { children: /* @__PURE__ */ W(S.FormRoot, {
|
|
659
|
+
layout: "dialog",
|
|
660
|
+
children: [
|
|
661
|
+
/* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(w, { children: a("dashboard_create_from_report_title") }), /* @__PURE__ */ U(D, { children: a("dashboard_create_from_report_description") })] }),
|
|
662
|
+
/* @__PURE__ */ W(F, { children: [/* @__PURE__ */ U(S.AppField, {
|
|
663
|
+
name: "presetId",
|
|
664
|
+
children: (e) => {
|
|
665
|
+
let n = !e.state.meta.isValid, r = t(e.state.meta.errors, e.name);
|
|
666
|
+
return /* @__PURE__ */ W(N, {
|
|
667
|
+
"data-invalid": n ? !0 : void 0,
|
|
668
|
+
children: [
|
|
669
|
+
/* @__PURE__ */ U(M, {
|
|
670
|
+
htmlFor: "setup-dashboard-from-report-preset",
|
|
671
|
+
children: a("dashboard_create_from_report_field_preset")
|
|
672
|
+
}),
|
|
673
|
+
/* @__PURE__ */ U(te, {
|
|
674
|
+
id: "setup-dashboard-from-report-preset",
|
|
675
|
+
className: "w-full",
|
|
676
|
+
value: e.state.value,
|
|
677
|
+
disabled: _,
|
|
678
|
+
onBlur: e.handleBlur,
|
|
679
|
+
onChange: (t) => {
|
|
680
|
+
let n = t.target.value;
|
|
681
|
+
e.handleChange(n);
|
|
682
|
+
let r = d.find((e) => e.id === n);
|
|
683
|
+
r != null && S.setFieldValue("name", K(r.title, c));
|
|
684
|
+
},
|
|
685
|
+
"aria-invalid": n || void 0,
|
|
686
|
+
children: f ? /* @__PURE__ */ U(P, {
|
|
687
|
+
value: "",
|
|
688
|
+
children: a("dashboard_create_from_report_preset_loading")
|
|
689
|
+
}) : m ? /* @__PURE__ */ U(P, {
|
|
690
|
+
value: "",
|
|
691
|
+
children: a("dashboard_create_from_report_preset_error")
|
|
692
|
+
}) : h ? /* @__PURE__ */ U(P, {
|
|
693
|
+
value: "",
|
|
694
|
+
children: a("dashboard_create_from_report_preset_empty")
|
|
695
|
+
}) : /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(P, {
|
|
696
|
+
value: "",
|
|
697
|
+
children: a("dashboard_create_from_report_preset_placeholder")
|
|
698
|
+
}), d.map((e) => /* @__PURE__ */ U(P, {
|
|
699
|
+
value: e.id,
|
|
700
|
+
children: K(e.title, c)
|
|
701
|
+
}, e.id))] })
|
|
702
|
+
}),
|
|
703
|
+
/* @__PURE__ */ U(j, { errors: r })
|
|
704
|
+
]
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
}), /* @__PURE__ */ U(S.AppField, {
|
|
708
|
+
name: "name",
|
|
709
|
+
children: (e) => /* @__PURE__ */ U(e.TextField, {
|
|
710
|
+
label: a("dashboard_field_name"),
|
|
711
|
+
id: "setup-dashboard-from-report-name"
|
|
712
|
+
})
|
|
713
|
+
})] }),
|
|
714
|
+
/* @__PURE__ */ W(C, { children: [/* @__PURE__ */ U(k, {
|
|
715
|
+
type: "button",
|
|
716
|
+
variant: "outline",
|
|
717
|
+
onClick: () => {
|
|
718
|
+
n();
|
|
719
|
+
},
|
|
720
|
+
children: a("action_cancel")
|
|
721
|
+
}), /* @__PURE__ */ U(S.SubmitButton, {
|
|
722
|
+
label: a("dashboard_create_from_report_submit"),
|
|
723
|
+
pendingLabel: a("action_creating"),
|
|
724
|
+
disabled: _
|
|
725
|
+
})] })
|
|
726
|
+
]
|
|
727
|
+
}) });
|
|
728
|
+
}
|
|
729
|
+
function Mt({ workspaceId: e, templateId: t }) {
|
|
730
|
+
let n = y(), r = v(), i = p.templates.dashboard.get.useQuery({
|
|
731
|
+
workspaceId: e,
|
|
732
|
+
templateId: t
|
|
733
|
+
});
|
|
734
|
+
if (i.isPending) return /* @__PURE__ */ W("div", {
|
|
735
|
+
className: "grid gap-1.5",
|
|
736
|
+
"aria-busy": "true",
|
|
737
|
+
"data-testid": "dashboard-template-description",
|
|
738
|
+
children: [/* @__PURE__ */ U(A, { className: "h-4 w-full" }), /* @__PURE__ */ U(A, { className: "h-4 w-2/3" })]
|
|
739
|
+
});
|
|
740
|
+
if (i.isError) return /* @__PURE__ */ U(I, {
|
|
741
|
+
className: "text-destructive",
|
|
742
|
+
role: "alert",
|
|
743
|
+
"data-testid": "dashboard-template-description",
|
|
744
|
+
children: n("dashboard_create_template_description_error")
|
|
745
|
+
});
|
|
746
|
+
let a = i.data.description;
|
|
747
|
+
return a == null ? null : /* @__PURE__ */ U(I, {
|
|
748
|
+
"data-testid": "dashboard-template-description",
|
|
749
|
+
children: K(a, r)
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
function Nt({ workspaceId: e, onCancel: n, onCreated: r }) {
|
|
753
|
+
let a = y(), o = b(), c = v(), u = i(e).create, d = p.templates.dashboard.list.useQuery({ workspaceId: e }), f = d.data?.templates ?? [], m = d.isLoading, h = d.isError, x = !m && !h && f.length === 0, S = s({
|
|
754
|
+
defaultValues: {
|
|
755
|
+
name: a("dashboard_default_name"),
|
|
756
|
+
template: V
|
|
757
|
+
},
|
|
758
|
+
validators: g({
|
|
759
|
+
schema: Me,
|
|
760
|
+
submit: async (t) => (await u.mutateAsync(De(t, {
|
|
761
|
+
workspaceId: e,
|
|
762
|
+
defaultName: _("dashboard_default_name")
|
|
763
|
+
})), null)
|
|
764
|
+
}),
|
|
765
|
+
onSubmitInvalid: l,
|
|
766
|
+
onSubmit: () => {
|
|
767
|
+
o.success(a("dashboard_create_toast")), r();
|
|
768
|
+
}
|
|
769
|
+
}), T = c, D = m || h || x;
|
|
770
|
+
return /* @__PURE__ */ U(S.AppForm, { children: /* @__PURE__ */ W(S.FormRoot, {
|
|
771
|
+
layout: "dialog",
|
|
772
|
+
children: [
|
|
773
|
+
/* @__PURE__ */ U(E, { children: /* @__PURE__ */ U(w, { children: a("dashboard_create_title") }) }),
|
|
774
|
+
/* @__PURE__ */ W(F, { children: [/* @__PURE__ */ U(S.AppField, {
|
|
775
|
+
name: "template",
|
|
776
|
+
children: (n) => {
|
|
777
|
+
let r = f.find((e) => e.id === n.state.value);
|
|
778
|
+
return /* @__PURE__ */ W(N, { children: [
|
|
779
|
+
/* @__PURE__ */ U(M, {
|
|
780
|
+
htmlFor: "setup-dashboard-template",
|
|
781
|
+
children: a("dashboard_create_field_template")
|
|
782
|
+
}),
|
|
783
|
+
/* @__PURE__ */ U(te, {
|
|
784
|
+
id: "setup-dashboard-template",
|
|
785
|
+
value: n.state.value,
|
|
786
|
+
disabled: D,
|
|
787
|
+
onBlur: n.handleBlur,
|
|
788
|
+
onChange: (e) => {
|
|
789
|
+
n.handleChange(e.target.value);
|
|
790
|
+
},
|
|
791
|
+
children: m ? /* @__PURE__ */ U(P, {
|
|
792
|
+
value: V,
|
|
793
|
+
disabled: !0,
|
|
794
|
+
children: a("dashboard_create_template_loading")
|
|
795
|
+
}) : h ? /* @__PURE__ */ U(P, {
|
|
796
|
+
value: V,
|
|
797
|
+
disabled: !0,
|
|
798
|
+
children: a("dashboard_create_template_error")
|
|
799
|
+
}) : x ? /* @__PURE__ */ U(P, {
|
|
800
|
+
value: V,
|
|
801
|
+
disabled: !0,
|
|
802
|
+
children: a("dashboard_create_template_empty")
|
|
803
|
+
}) : f.map((e) => /* @__PURE__ */ U(P, {
|
|
804
|
+
value: e.id,
|
|
805
|
+
children: K(e.name, T)
|
|
806
|
+
}, e.id))
|
|
807
|
+
}),
|
|
808
|
+
r == null ? null : /* @__PURE__ */ U(Mt, {
|
|
809
|
+
workspaceId: e,
|
|
810
|
+
templateId: r.id
|
|
811
|
+
}),
|
|
812
|
+
/* @__PURE__ */ U(j, { errors: t(n.state.meta.errors, n.name) })
|
|
813
|
+
] });
|
|
814
|
+
}
|
|
815
|
+
}), /* @__PURE__ */ U(S.AppField, {
|
|
816
|
+
name: "name",
|
|
817
|
+
children: (e) => /* @__PURE__ */ U(e.TextField, {
|
|
818
|
+
label: a("dashboard_field_name"),
|
|
819
|
+
id: "setup-dashboard-name",
|
|
820
|
+
autoFocus: !0
|
|
821
|
+
})
|
|
822
|
+
})] }),
|
|
823
|
+
/* @__PURE__ */ W(C, { children: [/* @__PURE__ */ U(k, {
|
|
824
|
+
type: "button",
|
|
825
|
+
variant: "outline",
|
|
826
|
+
onClick: () => {
|
|
827
|
+
n();
|
|
828
|
+
},
|
|
829
|
+
children: a("action_cancel")
|
|
830
|
+
}), /* @__PURE__ */ U(S.SubmitButton, {
|
|
831
|
+
label: a("dashboard_create_submit"),
|
|
832
|
+
pendingLabel: a("action_creating"),
|
|
833
|
+
disabled: D
|
|
834
|
+
})] })
|
|
835
|
+
]
|
|
836
|
+
}) });
|
|
837
|
+
}
|
|
838
|
+
function $({ workspaceId: e, dashboardId: t, onClose: n }) {
|
|
839
|
+
let r = y(), i = v(), a = p.dashboard.get.useQuery({ id: t }), o = p.useUtils(), s = gt(t), c = a.data, l = s.data, [u, d] = z(0);
|
|
840
|
+
return /* @__PURE__ */ U(L, {
|
|
841
|
+
query: {
|
|
842
|
+
isLoading: a.isLoading || s.isLoading || l == null,
|
|
843
|
+
isError: a.isError,
|
|
844
|
+
error: a.error,
|
|
845
|
+
data: c != null && l != null ? {
|
|
846
|
+
dashboard: c,
|
|
847
|
+
entrypoint: l
|
|
848
|
+
} : void 0
|
|
849
|
+
},
|
|
850
|
+
loading: /* @__PURE__ */ W("div", {
|
|
851
|
+
className: "flex flex-col gap-4 p-4",
|
|
852
|
+
children: [/* @__PURE__ */ U(A, { className: "h-8 w-48" }), /* @__PURE__ */ U(A, { className: "h-40 w-full" })]
|
|
853
|
+
}),
|
|
854
|
+
error: () => /* @__PURE__ */ U(re, {
|
|
855
|
+
className: "p-4",
|
|
856
|
+
message: r("error_request_failed"),
|
|
857
|
+
onRetry: () => a.refetch()
|
|
858
|
+
}),
|
|
859
|
+
children: ({ dashboard: r, entrypoint: a }) => /* @__PURE__ */ U(Ft, {
|
|
860
|
+
workspaceId: e,
|
|
861
|
+
dashboardId: r.id,
|
|
862
|
+
entrypointUrl: a.url,
|
|
863
|
+
initialConfiguration: r.configuration,
|
|
864
|
+
initialRevision: r.revision,
|
|
865
|
+
defaultValues: Fe(r, i),
|
|
866
|
+
onDone: n,
|
|
867
|
+
onReload: async () => {
|
|
868
|
+
let e = await o.client.dashboard.get.query({ id: t });
|
|
869
|
+
o.dashboard.get.setData({ id: t }, e), d((e) => e + 1);
|
|
870
|
+
}
|
|
871
|
+
}, `${r.id}-${String(u)}`)
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
function Pt({ problem: e }) {
|
|
875
|
+
switch (e) {
|
|
876
|
+
case "configuration_invalid_json": return _("dashboard_config_invalid_json");
|
|
877
|
+
case "configuration_must_be_object": return _("dashboard_config_must_be_object");
|
|
878
|
+
case "name_required": return _("error_field_required");
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
function Ft({ workspaceId: e, dashboardId: t, entrypointUrl: r, initialConfiguration: a, initialRevision: c, defaultValues: u, onDone: d, onReload: f }) {
|
|
882
|
+
let h = y(), v = b(), [x, S] = z(() => a), C = oe(c), w = p.useUtils(), T = async () => {
|
|
883
|
+
let e = await w.client.dashboard.get.query({ id: t });
|
|
884
|
+
S(e.configuration), C.rebase(e.revision);
|
|
885
|
+
}, E = p.dashboard.getSourceFile.useQuery({
|
|
886
|
+
id: t,
|
|
887
|
+
path: "config.schema.json"
|
|
888
|
+
}), D = i(e).update, A = s({
|
|
889
|
+
defaultValues: u,
|
|
890
|
+
validators: g({
|
|
891
|
+
schema: Ne,
|
|
892
|
+
submit: async (e) => {
|
|
893
|
+
let i = Pe(e, {
|
|
894
|
+
id: t,
|
|
895
|
+
expectedConfiguration: x
|
|
896
|
+
});
|
|
897
|
+
if (!i.ok) return n(i, Pt);
|
|
898
|
+
try {
|
|
899
|
+
let e = st(await pt(X(r, yt())), i.input.configuration);
|
|
900
|
+
if (e?.kind === "load_failed") return { fields: { configurationText: () => _("dashboard_config_schema_load_failed") } };
|
|
901
|
+
if (e?.kind === "rebuild_required") return { fields: { configurationText: () => _("dashboard_rebuild_required_description") } };
|
|
902
|
+
if (e?.kind === "issues") return { fields: { configurationText: e.text } };
|
|
903
|
+
} catch {
|
|
904
|
+
return { fields: { configurationText: () => _("dashboard_config_schema_load_failed") } };
|
|
905
|
+
}
|
|
906
|
+
return await D.mutateAsync({
|
|
907
|
+
...i.input,
|
|
908
|
+
...C.baseRevision === void 0 ? {} : { baseRevision: C.baseRevision }
|
|
909
|
+
}), null;
|
|
910
|
+
},
|
|
911
|
+
mapError: C.mapError((e, t) => o(e, t, { fieldMap: { configuration: "configurationText" } })),
|
|
912
|
+
onError: C.onError
|
|
913
|
+
}),
|
|
914
|
+
onSubmitInvalid: l,
|
|
915
|
+
onSubmit: () => {
|
|
916
|
+
d(), v.success(h("dashboard_update_toast"));
|
|
917
|
+
}
|
|
918
|
+
});
|
|
919
|
+
return /* @__PURE__ */ U(A.AppForm, { children: /* @__PURE__ */ U(A.FormRoot, {
|
|
920
|
+
layout: "dialog-fill",
|
|
921
|
+
children: /* @__PURE__ */ U(m, {
|
|
922
|
+
notice: /* @__PURE__ */ U(se, {
|
|
923
|
+
base: C,
|
|
924
|
+
onReload: f,
|
|
925
|
+
onKeepMine: T
|
|
926
|
+
}),
|
|
927
|
+
footer: /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(k, {
|
|
928
|
+
type: "button",
|
|
929
|
+
variant: "outline",
|
|
930
|
+
onClick: () => {
|
|
931
|
+
d();
|
|
932
|
+
},
|
|
933
|
+
children: h("action_cancel")
|
|
934
|
+
}), /* @__PURE__ */ U(A.SubmitButton, {
|
|
935
|
+
label: h("dashboard_settings_save"),
|
|
936
|
+
pendingLabel: h("action_saving")
|
|
937
|
+
})] }),
|
|
938
|
+
children: /* @__PURE__ */ W(F, { children: [
|
|
939
|
+
/* @__PURE__ */ U(A.AppField, {
|
|
940
|
+
name: "name",
|
|
941
|
+
children: (e) => /* @__PURE__ */ U(e.TextField, {
|
|
942
|
+
label: h("dashboard_field_name"),
|
|
943
|
+
id: "setup-edit-dashboard-name"
|
|
944
|
+
})
|
|
945
|
+
}),
|
|
946
|
+
/* @__PURE__ */ U(A.AppField, {
|
|
947
|
+
name: "description",
|
|
948
|
+
children: (e) => /* @__PURE__ */ U(e.TextAreaField, {
|
|
949
|
+
label: h("dashboard_field_description"),
|
|
950
|
+
id: "setup-edit-dashboard-description",
|
|
951
|
+
rows: 3
|
|
952
|
+
})
|
|
953
|
+
}),
|
|
954
|
+
/* @__PURE__ */ U(A.AppField, {
|
|
955
|
+
name: "icon",
|
|
956
|
+
children: (e) => {
|
|
957
|
+
let t = e.state.value, n = t === "" || t === B ? B : t;
|
|
958
|
+
return /* @__PURE__ */ W(N, { children: [/* @__PURE__ */ U(M, { children: h("dashboard_field_icon") }), /* @__PURE__ */ W(ee, {
|
|
959
|
+
variant: "outline",
|
|
960
|
+
size: "sm",
|
|
961
|
+
spacing: 2,
|
|
962
|
+
value: [n],
|
|
963
|
+
onValueChange: (t) => {
|
|
964
|
+
let n = t[0];
|
|
965
|
+
n != null && e.handleChange(n === B ? "" : n);
|
|
966
|
+
},
|
|
967
|
+
className: "grid w-full grid-cols-8",
|
|
968
|
+
children: [/* @__PURE__ */ U(O, {
|
|
969
|
+
value: B,
|
|
970
|
+
"aria-label": h("dashboard_field_icon_default"),
|
|
971
|
+
className: "size-8 min-w-8 p-0 text-muted-foreground",
|
|
972
|
+
children: /* @__PURE__ */ U(Y, {
|
|
973
|
+
icon: null,
|
|
974
|
+
className: "size-4",
|
|
975
|
+
strokeWidth: 1.75
|
|
976
|
+
})
|
|
977
|
+
}), Se.filter((e) => e !== B).map((e) => /* @__PURE__ */ U(O, {
|
|
978
|
+
value: e,
|
|
979
|
+
"aria-label": e,
|
|
980
|
+
className: "size-8 min-w-8 p-0 text-muted-foreground",
|
|
981
|
+
children: /* @__PURE__ */ U(Y, {
|
|
982
|
+
icon: e,
|
|
983
|
+
className: "size-4",
|
|
984
|
+
strokeWidth: 1.75
|
|
985
|
+
})
|
|
986
|
+
}, e))]
|
|
987
|
+
})] });
|
|
988
|
+
}
|
|
989
|
+
}),
|
|
990
|
+
/* @__PURE__ */ U(A.AppField, {
|
|
991
|
+
name: "configurationText",
|
|
992
|
+
children: (e) => /* @__PURE__ */ U(e.TextAreaField, {
|
|
993
|
+
label: h("dashboard_field_configuration"),
|
|
994
|
+
id: "setup-edit-dashboard-config",
|
|
995
|
+
spellCheck: !1,
|
|
996
|
+
className: "\n min-h-40 font-mono\n md:text-xs\n "
|
|
997
|
+
})
|
|
998
|
+
}),
|
|
999
|
+
/* @__PURE__ */ W(N, { children: [/* @__PURE__ */ U(M, { children: h("dashboard_config_schema_title") }), /* @__PURE__ */ U(L, {
|
|
1000
|
+
query: E,
|
|
1001
|
+
loading: /* @__PURE__ */ U(I, { children: h("dashboard_config_schema_loading") }),
|
|
1002
|
+
error: () => /* @__PURE__ */ U(I, { children: h("dashboard_config_schema_missing") }),
|
|
1003
|
+
children: (e) => /* @__PURE__ */ U("pre", {
|
|
1004
|
+
className: "\n max-h-48 overflow-auto rounded-md border bg-muted/30 p-3 font-mono text-xs\n ",
|
|
1005
|
+
children: e
|
|
1006
|
+
})
|
|
1007
|
+
})] })
|
|
1008
|
+
] })
|
|
1009
|
+
})
|
|
1010
|
+
}) });
|
|
1011
|
+
}
|
|
1012
|
+
function It({ workspaceId: e, dashboardId: t, baseRevision: n, onCancel: r, onDeleted: a }) {
|
|
1013
|
+
let o = y(), c = i(e).remove, u = s({
|
|
1014
|
+
defaultValues: {},
|
|
1015
|
+
validators: g({ submit: async () => (await c.mutateAsync({
|
|
1016
|
+
id: t,
|
|
1017
|
+
baseRevision: n
|
|
1018
|
+
}), null) }),
|
|
1019
|
+
onSubmitInvalid: l,
|
|
1020
|
+
onSubmit: () => {
|
|
1021
|
+
a();
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
return /* @__PURE__ */ U(u.AppForm, { children: /* @__PURE__ */ W(u.FormRoot, {
|
|
1025
|
+
layout: "dialog",
|
|
1026
|
+
children: [/* @__PURE__ */ W(E, { children: [/* @__PURE__ */ U(w, { children: o("dashboard_delete_confirm_title") }), /* @__PURE__ */ U(D, { children: o("dashboard_delete_confirm_description") })] }), /* @__PURE__ */ W(C, { children: [/* @__PURE__ */ U(k, {
|
|
1027
|
+
type: "button",
|
|
1028
|
+
variant: "outline",
|
|
1029
|
+
onClick: () => {
|
|
1030
|
+
r();
|
|
1031
|
+
},
|
|
1032
|
+
children: o("action_cancel")
|
|
1033
|
+
}), /* @__PURE__ */ U(u.SubmitButton, {
|
|
1034
|
+
label: o("dashboard_delete_confirm_submit"),
|
|
1035
|
+
pendingLabel: o("action_deleting"),
|
|
1036
|
+
variant: "destructive"
|
|
1037
|
+
})] })]
|
|
1038
|
+
}) });
|
|
1039
|
+
}
|
|
1040
|
+
export { kt as a, yt as c, gt as d, pt as f, Y as h, At as i, bt as l, rt as m, jt as n, xt as o, ot as p, $ as r, Z as s, Nt as t, X as u };
|