@agridea/suibi-module 0.1.0-preview.8 → 0.1.0-preview.87d1ce6

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.
Files changed (69) hide show
  1. package/dist/elements/browser/main.js +75 -64
  2. package/dist/elements/browser/styles.css +1 -1
  3. package/dist/elements/browser/suibi-module-latest.css +1 -1
  4. package/dist/elements/browser/suibi-module-latest.js +75 -64
  5. package/dist/elements/browser/{suibi-module.v0.1.0-preview.8.css → suibi-module.v0.1.0-preview.87d1ce6.css} +1 -1
  6. package/dist/elements/browser/suibi-module.v0.1.0-preview.87d1ce6.js +78 -0
  7. package/dist/elements/browser/suibi-theme-dark.css +1 -1
  8. package/dist/elements/browser/version.txt +1 -1
  9. package/dist/elements/browser/wc-global-utilities.css +1 -0
  10. package/dist/types/app/app.d.ts +14 -6
  11. package/dist/types/app/components/add-dashed-button/add-dashed-button.component.d.ts +9 -0
  12. package/dist/types/app/components/data-preview/data-preview.component.d.ts +12 -0
  13. package/dist/types/app/components/empty-state/empty-state.component.d.ts +12 -0
  14. package/dist/types/app/components/module-placeholder-page/module-placeholder-page.component.d.ts +6 -0
  15. package/dist/types/app/components/planning-result/planning-result.component.d.ts +46 -0
  16. package/dist/types/app/components/planning-result/planning-trigger.component.d.ts +13 -0
  17. package/dist/types/app/components/results-page/results-page.component.d.ts +4 -0
  18. package/dist/types/app/components/suissebilanz-dashboard/gauge-arc.component.d.ts +47 -0
  19. package/dist/types/app/components/suissebilanz-dashboard/suissebilanz-dashboard.component.d.ts +24 -0
  20. package/dist/types/app/components/suissebilanz-dashboard/suissebilanz-metrics.service.d.ts +21 -0
  21. package/dist/types/app/components/suissebilanz-dashboard/suissebilanz-minibar.component.d.ts +19 -0
  22. package/dist/types/app/components/validation-page/validation-page.component.d.ts +17 -0
  23. package/dist/types/app/components/welcome-page/metadata.types.d.ts +1 -0
  24. package/dist/types/app/components/welcome-page/welcome-page.component.d.ts +28 -0
  25. package/dist/types/app/components/workflow-stepper/workflow-stepper.component.d.ts +52 -0
  26. package/dist/types/app/core/data/naebi-data.service.d.ts +28 -7
  27. package/dist/types/app/core/error/global-error-handler.d.ts +6 -0
  28. package/dist/types/app/core/events/suibi-data-emitter.service.d.ts +13 -0
  29. package/dist/types/app/core/events/suibi-data-event.d.ts +26 -0
  30. package/dist/types/app/core/master-data/master-data.service.d.ts +13 -1
  31. package/dist/types/app/core/metadata/suibi-metadata.service.d.ts +6 -0
  32. package/dist/types/app/core/metadata/suibi-metadata.types.d.ts +8 -0
  33. package/dist/types/app/core/navigation/navigation.service.d.ts +26 -5
  34. package/dist/types/app/core/planning/planning-balance.service.d.ts +37 -0
  35. package/dist/types/app/core/planning/planning-balance.types.d.ts +206 -0
  36. package/dist/types/app/core/planning/planning-balance.utils.d.ts +10 -0
  37. package/dist/types/app/core/schemas/schema-localization.util.d.ts +18 -0
  38. package/dist/types/app/core/telemetry/telemetry.service.d.ts +12 -0
  39. package/dist/types/app/core/utils/object.util.d.ts +24 -0
  40. package/dist/types/app/core/validation/capabilities.d.ts +5 -5
  41. package/dist/types/app/core/validation/global-validation.service.d.ts +13 -4
  42. package/dist/types/app/header-bar.d.ts +2 -7
  43. package/dist/types/app/jsonforms/registry/renderers.registry.d.ts +8 -0
  44. package/dist/types/app/jsonforms/renderers/controls/selects/code-list/code-list-select.renderer.d.ts +8 -0
  45. package/dist/types/app/jsonforms/renderers/layout/array/array-layout.renderer.d.ts +43 -0
  46. package/dist/types/app/jsonforms/renderers/layout/categorization/selected-category-categorization.renderer.d.ts +34 -0
  47. package/dist/types/app/{animal-stock → nutrient-cycle/animal-stock}/animal-stock-detail.component.d.ts +1 -1
  48. package/dist/types/app/{animal-stock → nutrient-cycle/animal-stock}/animal-stock-master-detail.component.d.ts +4 -1
  49. package/dist/types/app/{animal-stock → nutrient-cycle/animal-stock}/animal-stock.types.d.ts +6 -6
  50. package/dist/types/app/nutrient-cycle/animal-stock/index.d.ts +4 -0
  51. package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading-detail.component.d.ts +27 -0
  52. package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading-list.component.d.ts +23 -0
  53. package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading-master-detail.component.d.ts +25 -0
  54. package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading.types.d.ts +27 -0
  55. package/dist/types/app/nutrient-cycle/farm-manure-trading/index.d.ts +4 -0
  56. package/dist/types/app/nutrient-cycle/farm-manure-trading/transaction-unit.util.d.ts +1 -0
  57. package/dist/types/app/nutrient-cycle/field-spreading/field-spreading.component.d.ts +21 -0
  58. package/dist/types/app/nutrient-cycle/field-spreading/field-spreading.types.d.ts +43 -0
  59. package/dist/types/app/nutrient-cycle/field-spreading/index.d.ts +2 -0
  60. package/dist/types/app/nutrient-cycle/lifetime-performance/lifetime-performance-form.component.d.ts +27 -0
  61. package/dist/types/app/nutrient-cycle/lifetime-performance/lifetime-performance.types.d.ts +5 -0
  62. package/dist/types/environments/environment.d.ts +11 -0
  63. package/dist/types/public-api.d.ts +2 -0
  64. package/dist/types/shared/material-icons.d.ts +3 -3
  65. package/package.json +2 -1
  66. package/dist/elements/browser/suibi-module.v0.1.0-preview.8.js +0 -67
  67. package/dist/types/app/data-preview.d.ts +0 -7
  68. package/dist/types/app/welcome-page.d.ts +0 -4
  69. /package/dist/types/app/{animal-stock → nutrient-cycle/animal-stock}/animal-stock-list.component.d.ts +0 -0
@@ -1 +1 @@
1
- :host,suibi-module{color-scheme:dark;--mat-sys-background: #121410;--mat-sys-error: #ffb4ab;--mat-sys-error-container: #93000a;--mat-sys-inverse-on-surface: #2f312d;--mat-sys-inverse-primary: #e722ff;--mat-sys-inverse-surface: #e2e3dc;--mat-sys-on-background: #e2e3dc;--mat-sys-on-error: #690005;--mat-sys-on-error-container: #ffdad6;--mat-sys-on-primary: #013a00;--mat-sys-on-primary-container: #77ff61;--mat-sys-on-primary-fixed: #002200;--mat-sys-on-primary-fixed-variant: #015300;--mat-sys-on-secondary: #263422;--mat-sys-on-secondary-container: #d7e8cd;--mat-sys-on-secondary-fixed: #121f0e;--mat-sys-on-secondary-fixed-variant: #3c4b37;--mat-sys-on-surface: #e2e3dc;--mat-sys-on-surface-variant: #dfe4d7;--mat-sys-on-tertiary: #013a00;--mat-sys-on-tertiary-container: #77ff61;--mat-sys-on-tertiary-fixed: #002200;--mat-sys-on-tertiary-fixed-variant: #015300;--mat-sys-outline: #8d9387;--mat-sys-outline-variant: #43483f;--mat-sys-primary: #02e600;--mat-sys-primary-container: #015300;--mat-sys-primary-fixed: #77ff61;--mat-sys-primary-fixed-dim: #02e600;--mat-sys-scrim: #000000;--mat-sys-secondary: #bbcbb2;--mat-sys-secondary-container: #3c4b37;--mat-sys-secondary-fixed: #d7e8cd;--mat-sys-secondary-fixed-dim: #bbcbb2;--mat-sys-shadow: #000000;--mat-sys-surface: #121410;--mat-sys-surface-bright: #383a35;--mat-sys-surface-container: #1e201c;--mat-sys-surface-container-high: #282b26;--mat-sys-surface-container-highest: #333531;--mat-sys-surface-container-low: #1a1c18;--mat-sys-surface-container-lowest: #0c0f0b;--mat-sys-surface-dim: #121410;--mat-sys-surface-tint: #02e600;--mat-sys-surface-variant: #43483f;--mat-sys-tertiary: #02e600;--mat-sys-tertiary-container: #015300;--mat-sys-tertiary-fixed: #77ff61;--mat-sys-tertiary-fixed-dim: #02e600;--mat-sys-neutral-variant20: #2c3229;--mat-sys-neutral10: #1a1c18;--mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-sys-body-large: 300 1rem / 1.5rem Serif;--mat-sys-body-large-font: Serif;--mat-sys-body-large-line-height: 1.5rem;--mat-sys-body-large-size: 1rem;--mat-sys-body-large-tracking: .031rem;--mat-sys-body-large-weight: 300;--mat-sys-body-medium: 300 .875rem / 1.25rem Serif;--mat-sys-body-medium-font: Serif;--mat-sys-body-medium-line-height: 1.25rem;--mat-sys-body-medium-size: .875rem;--mat-sys-body-medium-tracking: .016rem;--mat-sys-body-medium-weight: 300;--mat-sys-body-small: 300 .75rem / 1rem Serif;--mat-sys-body-small-font: Serif;--mat-sys-body-small-line-height: 1rem;--mat-sys-body-small-size: .75rem;--mat-sys-body-small-tracking: .025rem;--mat-sys-body-small-weight: 300;--mat-sys-display-large: 300 3.562rem / 4rem Serif;--mat-sys-display-large-font: Serif;--mat-sys-display-large-line-height: 4rem;--mat-sys-display-large-size: 3.562rem;--mat-sys-display-large-tracking: -.016rem;--mat-sys-display-large-weight: 300;--mat-sys-display-medium: 300 2.812rem / 3.25rem Serif;--mat-sys-display-medium-font: Serif;--mat-sys-display-medium-line-height: 3.25rem;--mat-sys-display-medium-size: 2.812rem;--mat-sys-display-medium-tracking: 0;--mat-sys-display-medium-weight: 300;--mat-sys-display-small: 300 2.25rem / 2.75rem Serif;--mat-sys-display-small-font: Serif;--mat-sys-display-small-line-height: 2.75rem;--mat-sys-display-small-size: 2.25rem;--mat-sys-display-small-tracking: 0;--mat-sys-display-small-weight: 300;--mat-sys-headline-large: 300 2rem / 2.5rem Serif;--mat-sys-headline-large-font: Serif;--mat-sys-headline-large-line-height: 2.5rem;--mat-sys-headline-large-size: 2rem;--mat-sys-headline-large-tracking: 0;--mat-sys-headline-large-weight: 300;--mat-sys-headline-medium: 300 1.75rem / 2.25rem Serif;--mat-sys-headline-medium-font: Serif;--mat-sys-headline-medium-line-height: 2.25rem;--mat-sys-headline-medium-size: 1.75rem;--mat-sys-headline-medium-tracking: 0;--mat-sys-headline-medium-weight: 300;--mat-sys-headline-small: 300 1.5rem / 2rem Serif;--mat-sys-headline-small-font: Serif;--mat-sys-headline-small-line-height: 2rem;--mat-sys-headline-small-size: 1.5rem;--mat-sys-headline-small-tracking: 0;--mat-sys-headline-small-weight: 300;--mat-sys-label-large: 600 .875rem / 1.25rem Serif;--mat-sys-label-large-font: Serif;--mat-sys-label-large-line-height: 1.25rem;--mat-sys-label-large-size: .875rem;--mat-sys-label-large-tracking: .006rem;--mat-sys-label-large-weight: 600;--mat-sys-label-large-weight-prominent: 800;--mat-sys-label-medium: 600 .75rem / 1rem Serif;--mat-sys-label-medium-font: Serif;--mat-sys-label-medium-line-height: 1rem;--mat-sys-label-medium-size: .75rem;--mat-sys-label-medium-tracking: .031rem;--mat-sys-label-medium-weight: 600;--mat-sys-label-medium-weight-prominent: 800;--mat-sys-label-small: 600 .688rem / 1rem Serif;--mat-sys-label-small-font: Serif;--mat-sys-label-small-line-height: 1rem;--mat-sys-label-small-size: .688rem;--mat-sys-label-small-tracking: .031rem;--mat-sys-label-small-weight: 600;--mat-sys-title-large: 300 1.375rem / 1.75rem Serif;--mat-sys-title-large-font: Serif;--mat-sys-title-large-line-height: 1.75rem;--mat-sys-title-large-size: 1.375rem;--mat-sys-title-large-tracking: 0;--mat-sys-title-large-weight: 300;--mat-sys-title-medium: 600 1rem / 1.5rem Serif;--mat-sys-title-medium-font: Serif;--mat-sys-title-medium-line-height: 1.5rem;--mat-sys-title-medium-size: 1rem;--mat-sys-title-medium-tracking: .009rem;--mat-sys-title-medium-weight: 600;--mat-sys-title-small: 600 .875rem / 1.25rem Serif;--mat-sys-title-small-font: Serif;--mat-sys-title-small-line-height: 1.25rem;--mat-sys-title-small-size: .875rem;--mat-sys-title-small-tracking: .006rem;--mat-sys-title-small-weight: 600;--mat-sys-corner-extra-large: 28px;--mat-sys-corner-extra-large-top: 28px 28px 0 0;--mat-sys-corner-extra-small: 4px;--mat-sys-corner-extra-small-top: 4px 4px 0 0;--mat-sys-corner-full: 9999px;--mat-sys-corner-large: 16px;--mat-sys-corner-large-end: 0 16px 16px 0;--mat-sys-corner-large-start: 16px 0 0 16px;--mat-sys-corner-large-top: 16px 16px 0 0;--mat-sys-corner-medium: 12px;--mat-sys-corner-none: 0;--mat-sys-corner-small: 8px;--mat-sys-dragged-state-layer-opacity: .16;--mat-sys-focus-state-layer-opacity: .12;--mat-sys-hover-state-layer-opacity: .08;--mat-sys-pressed-state-layer-opacity: .12;--mat-sys-surface: #121212;--mat-form-field-filled-container-color: #2a2a2a;--mat-card-elevated-container-color: #1e1e1e;font-family:Roboto Thin,Roboto,Arial,sans-serif;display:block;line-height:1.4;box-sizing:border-box;background:var(--mat-sys-surface, #121212);color:var(--mat-sys-on-surface, #e0e0e0)}*,*:before,*:after{box-sizing:inherit}.suibi-surface{background:var(--mat-sys-surface-container-low, #1e1e1e);border:1px solid var(--mat-sys-outline-variant, #2a2a2a);border-radius:8px;padding:16px}pre{background:#1d1f21;color:#c5c8c6;padding:8px 16px;border-radius:4px}:host .mat-mdc-form-field-error,suibi-module .mat-mdc-form-field-error{color:#e72200}.group-layout.mat-mdc-card-outlined{border:0;--mdc-outlined-card-outline-color: transparent;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:8px}.horizontal-layout>div:has([style*="display: none"]){display:none!important}
1
+ :host,suibi-module{color-scheme:dark;--mat-sys-background: #121410;--mat-sys-error: #ffb4ab;--mat-sys-error-container: #93000a;--mat-sys-inverse-on-surface: #2f312d;--mat-sys-inverse-primary: #e722ff;--mat-sys-inverse-surface: #e2e3dc;--mat-sys-on-background: #e2e3dc;--mat-sys-on-error: #690005;--mat-sys-on-error-container: #ffdad6;--mat-sys-on-primary: #013a00;--mat-sys-on-primary-container: #77ff61;--mat-sys-on-primary-fixed: #002200;--mat-sys-on-primary-fixed-variant: #015300;--mat-sys-on-secondary: #263422;--mat-sys-on-secondary-container: #d7e8cd;--mat-sys-on-secondary-fixed: #121f0e;--mat-sys-on-secondary-fixed-variant: #3c4b37;--mat-sys-on-surface: #e2e3dc;--mat-sys-on-surface-variant: #dfe4d7;--mat-sys-on-tertiary: #013a00;--mat-sys-on-tertiary-container: #77ff61;--mat-sys-on-tertiary-fixed: #002200;--mat-sys-on-tertiary-fixed-variant: #015300;--mat-sys-outline: #8d9387;--mat-sys-outline-variant: #43483f;--mat-sys-primary: #02e600;--mat-sys-primary-container: #015300;--mat-sys-primary-fixed: #77ff61;--mat-sys-primary-fixed-dim: #02e600;--mat-sys-scrim: #000000;--mat-sys-secondary: #bbcbb2;--mat-sys-secondary-container: #3c4b37;--mat-sys-secondary-fixed: #d7e8cd;--mat-sys-secondary-fixed-dim: #bbcbb2;--mat-sys-shadow: #000000;--mat-sys-surface: #121410;--mat-sys-surface-bright: #383a35;--mat-sys-surface-container: #1e201c;--mat-sys-surface-container-high: #282b26;--mat-sys-surface-container-highest: #333531;--mat-sys-surface-container-low: #1a1c18;--mat-sys-surface-container-lowest: #0c0f0b;--mat-sys-surface-dim: #121410;--mat-sys-surface-tint: #02e600;--mat-sys-surface-variant: #43483f;--mat-sys-tertiary: #02e600;--mat-sys-tertiary-container: #015300;--mat-sys-tertiary-fixed: #77ff61;--mat-sys-tertiary-fixed-dim: #02e600;--mat-sys-neutral-variant20: #2c3229;--mat-sys-neutral10: #1a1c18;--mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-sys-body-large: 300 1rem / 1.5rem Serif;--mat-sys-body-large-font: Serif;--mat-sys-body-large-line-height: 1.5rem;--mat-sys-body-large-size: 1rem;--mat-sys-body-large-tracking: .031rem;--mat-sys-body-large-weight: 300;--mat-sys-body-medium: 300 .875rem / 1.25rem Serif;--mat-sys-body-medium-font: Serif;--mat-sys-body-medium-line-height: 1.25rem;--mat-sys-body-medium-size: .875rem;--mat-sys-body-medium-tracking: .016rem;--mat-sys-body-medium-weight: 300;--mat-sys-body-small: 300 .75rem / 1rem Serif;--mat-sys-body-small-font: Serif;--mat-sys-body-small-line-height: 1rem;--mat-sys-body-small-size: .75rem;--mat-sys-body-small-tracking: .025rem;--mat-sys-body-small-weight: 300;--mat-sys-display-large: 300 3.562rem / 4rem Serif;--mat-sys-display-large-font: Serif;--mat-sys-display-large-line-height: 4rem;--mat-sys-display-large-size: 3.562rem;--mat-sys-display-large-tracking: -.016rem;--mat-sys-display-large-weight: 300;--mat-sys-display-medium: 300 2.812rem / 3.25rem Serif;--mat-sys-display-medium-font: Serif;--mat-sys-display-medium-line-height: 3.25rem;--mat-sys-display-medium-size: 2.812rem;--mat-sys-display-medium-tracking: 0;--mat-sys-display-medium-weight: 300;--mat-sys-display-small: 300 2.25rem / 2.75rem Serif;--mat-sys-display-small-font: Serif;--mat-sys-display-small-line-height: 2.75rem;--mat-sys-display-small-size: 2.25rem;--mat-sys-display-small-tracking: 0;--mat-sys-display-small-weight: 300;--mat-sys-headline-large: 300 2rem / 2.5rem Serif;--mat-sys-headline-large-font: Serif;--mat-sys-headline-large-line-height: 2.5rem;--mat-sys-headline-large-size: 2rem;--mat-sys-headline-large-tracking: 0;--mat-sys-headline-large-weight: 300;--mat-sys-headline-medium: 300 1.75rem / 2.25rem Serif;--mat-sys-headline-medium-font: Serif;--mat-sys-headline-medium-line-height: 2.25rem;--mat-sys-headline-medium-size: 1.75rem;--mat-sys-headline-medium-tracking: 0;--mat-sys-headline-medium-weight: 300;--mat-sys-headline-small: 300 1.5rem / 2rem Serif;--mat-sys-headline-small-font: Serif;--mat-sys-headline-small-line-height: 2rem;--mat-sys-headline-small-size: 1.5rem;--mat-sys-headline-small-tracking: 0;--mat-sys-headline-small-weight: 300;--mat-sys-label-large: 600 .875rem / 1.25rem Serif;--mat-sys-label-large-font: Serif;--mat-sys-label-large-line-height: 1.25rem;--mat-sys-label-large-size: .875rem;--mat-sys-label-large-tracking: .006rem;--mat-sys-label-large-weight: 600;--mat-sys-label-large-weight-prominent: 800;--mat-sys-label-medium: 600 .75rem / 1rem Serif;--mat-sys-label-medium-font: Serif;--mat-sys-label-medium-line-height: 1rem;--mat-sys-label-medium-size: .75rem;--mat-sys-label-medium-tracking: .031rem;--mat-sys-label-medium-weight: 600;--mat-sys-label-medium-weight-prominent: 800;--mat-sys-label-small: 600 .688rem / 1rem Serif;--mat-sys-label-small-font: Serif;--mat-sys-label-small-line-height: 1rem;--mat-sys-label-small-size: .688rem;--mat-sys-label-small-tracking: .031rem;--mat-sys-label-small-weight: 600;--mat-sys-title-large: 300 1.375rem / 1.75rem Serif;--mat-sys-title-large-font: Serif;--mat-sys-title-large-line-height: 1.75rem;--mat-sys-title-large-size: 1.375rem;--mat-sys-title-large-tracking: 0;--mat-sys-title-large-weight: 300;--mat-sys-title-medium: 600 1rem / 1.5rem Serif;--mat-sys-title-medium-font: Serif;--mat-sys-title-medium-line-height: 1.5rem;--mat-sys-title-medium-size: 1rem;--mat-sys-title-medium-tracking: .009rem;--mat-sys-title-medium-weight: 600;--mat-sys-title-small: 600 .875rem / 1.25rem Serif;--mat-sys-title-small-font: Serif;--mat-sys-title-small-line-height: 1.25rem;--mat-sys-title-small-size: .875rem;--mat-sys-title-small-tracking: .006rem;--mat-sys-title-small-weight: 600;--mat-sys-corner-extra-large: 28px;--mat-sys-corner-extra-large-top: 28px 28px 0 0;--mat-sys-corner-extra-small: 4px;--mat-sys-corner-extra-small-top: 4px 4px 0 0;--mat-sys-corner-full: 9999px;--mat-sys-corner-large: 16px;--mat-sys-corner-large-end: 0 16px 16px 0;--mat-sys-corner-large-start: 16px 0 0 16px;--mat-sys-corner-large-top: 16px 16px 0 0;--mat-sys-corner-medium: 12px;--mat-sys-corner-none: 0;--mat-sys-corner-small: 8px;--mat-sys-dragged-state-layer-opacity: .16;--mat-sys-focus-state-layer-opacity: .12;--mat-sys-hover-state-layer-opacity: .08;--mat-sys-pressed-state-layer-opacity: .12;--mat-sys-surface: #121212;--mat-form-field-filled-container-color: #2a2a2a;--mat-card-elevated-container-color: #1e1e1e;--mat-card-elevated-container-shape: 12px;--mat-card-filled-container-shape: 12px;--mat-card-outlined-container-shape: 12px;--mat-card-outlined-outline-width: 0px;--mat-card-outlined-outline-color: transparent;--mat-card-elevated-container-elevation: 0 2px 12px rgba(0, 0, 0, .35);--mat-card-outlined-container-elevation: 0 2px 12px rgba(0, 0, 0, .35);--mat-card-filled-container-elevation: 0 2px 12px rgba(0, 0, 0, .35);font-family:Roboto Thin,Roboto,Arial,sans-serif;display:block;line-height:1.4;box-sizing:border-box;background:var(--mat-sys-surface, #121212);color:var(--mat-sys-on-surface, #e0e0e0)}*,*:before,*:after{box-sizing:inherit}mat-card.welcome-card,mat-card.metadata-card,mat-card.data-preview-card,mat-card.summary-card,mat-card.results-card,mat-card.placeholder-card,mat-card.minibar-card,mat-card.dashboard-card:not(.dashboard-card--embedded),mat-card.planning-result-card:not(.planning-result-card--embedded){background:var(--mat-sys-surface-container-low, #1e1e1e)}.suibi-surface{background:var(--mat-sys-surface-container-low, #1e1e1e);border:1px solid var(--mat-sys-outline-variant, #2a2a2a);border-radius:8px;padding:16px}pre{background:#1d1f21;color:#c5c8c6;padding:8px 16px;border-radius:4px}:host .mat-mdc-form-field-error,suibi-module .mat-mdc-form-field-error{color:#e72200}.horizontal-layout>div:has([style*="display: none"]){display:none!important}
@@ -1 +1 @@
1
- 0.1.0-preview.8 c276491
1
+ 0.1.0-preview.87d1ce6 87d1ce6
@@ -0,0 +1 @@
1
+ .cdk-overlay-container{position:fixed;inset:0;z-index:1200;pointer-events:none}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center;pointer-events:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1200;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1200}.cdk-overlay-backdrop{position:fixed;inset:0;z-index:1199;pointer-events:auto}.cdk-overlay-transparent-backdrop{background:transparent}.cdk-overlay-dark-backdrop{background:#00000052}.mat-mdc-select-panel.mdc-menu-surface{background:#fff;--mdc-theme-surface: #fff;--mdc-menu-container-color: #fff;--mat-select-panel-background-color: #fff;box-shadow:0 4px 16px #00000040;border-radius:4px;outline:0;opacity:1!important;filter:none!important}
@@ -1,26 +1,34 @@
1
1
  import { Locale } from './core/i18n/i18n.service';
2
+ import { SuibiDataEventDetail } from './core/events/suibi-data-event';
2
3
  import { EnrichedValidationError } from './core/validation/global-validation.service';
3
4
  import { PageId } from './core/navigation/navigation.service';
4
5
  import { ErrorObject } from 'ajv';
5
6
  export declare class App {
6
- localeInput: import("@angular/core").InputSignal<Locale>;
7
+ private readonly autosaveIntervalMs;
8
+ locale: import("@angular/core").InputSignal<Locale>;
7
9
  themeSrc: import("@angular/core").InputSignal<string | null>;
8
- pageInput: import("@angular/core").InputSignal<PageId>;
9
- naebiDataInput: import("@angular/core").InputSignal<any>;
10
+ page: import("@angular/core").InputSignal<PageId>;
11
+ suibiData: import("@angular/core").InputSignal<string | SuibiDataEventDetail | null>;
12
+ telemetryInput: import("@angular/core").InputSignal<string | boolean>;
10
13
  private readonly i18n;
11
14
  private readonly hostEl;
12
15
  private readonly destroyRef;
13
16
  private readonly naebi;
17
+ private readonly metadataSvc;
14
18
  private readonly globalValidation;
15
19
  private readonly navigationSvc;
20
+ private readonly dataEmitter;
21
+ private readonly telemetryService;
16
22
  private readonly isCustomElement;
17
- readonly locale: import("@angular/core").Signal<Locale>;
23
+ readonly activeLocale: import("@angular/core").Signal<Locale>;
18
24
  readonly validationErrors: import("@angular/core").Signal<EnrichedValidationError[]>;
25
+ readonly isDirty: import("@angular/core").Signal<boolean>;
19
26
  constructor();
20
27
  readonly currentPage: import("@angular/core").WritableSignal<PageId>;
21
- private lastPageInput;
22
- private readonly syncPageEffect;
23
28
  go(page: PageId): void;
24
29
  setLocale(locale: Locale): void;
30
+ emitData(): void;
31
+ private emitDataIfDirty;
32
+ private initAutosave;
25
33
  onValidationErrorSelected(error: ErrorObject): void;
26
34
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * AddDashedButtonComponent
3
+ * Full-width dashed call-to-action button used as the primary add action in list views.
4
+ * Styled with the brand primary colour; works in both empty and non-empty list states.
5
+ */
6
+ export declare class AddDashedButtonComponent {
7
+ label: import("@angular/core").InputSignal<string>;
8
+ clicked: import("@angular/core").OutputEmitterRef<void>;
9
+ }
@@ -0,0 +1,12 @@
1
+ import { NaebiDataService } from '../../core/data/naebi-data.service';
2
+ import { PlanningBalanceService } from '../../core/planning/planning-balance.service';
3
+ export declare class DataPreviewComponent {
4
+ readonly naebi: NaebiDataService;
5
+ private readonly host;
6
+ private readonly emitter;
7
+ readonly planning: PlanningBalanceService;
8
+ readonly metadataPreview: import("@angular/core").Signal<import("../../../public-api").SuibiDataEventMetadata>;
9
+ constructor(naebi: NaebiDataService);
10
+ setPlanningEndpoint(value: string | null): void;
11
+ emitData(): void;
12
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * EmptyStateComponent
3
+ * Reusable centered placeholder shown when a list has no entries.
4
+ * Displays a faded icon, a primary message, and an optional hint line.
5
+ */
6
+ export declare class EmptyStateComponent {
7
+ fontSet: import("@angular/core").InputSignal<string>;
8
+ icon: import("@angular/core").InputSignal<string>;
9
+ primaryText: import("@angular/core").InputSignal<string>;
10
+ /** Optional hint displayed below the primary message. */
11
+ secondaryText: import("@angular/core").InputSignal<string>;
12
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generic page wrapper for workflow steps that are present in navigation but not implemented yet.
3
+ */
4
+ export declare class ModulePlaceholderPageComponent {
5
+ readonly titleKey: import("@angular/core").InputSignal<string>;
6
+ }
@@ -0,0 +1,46 @@
1
+ import { PlanningBalanceService } from '../../core/planning/planning-balance.service';
2
+ import { MasterDataService } from '../../core/master-data/master-data.service';
3
+ import type { CropRequirementRow, NutrientEntry, ValidationMessage } from '../../core/planning/planning-balance.types';
4
+ export declare class PlanningResultComponent {
5
+ readonly embedded: import("@angular/core").InputSignal<boolean>;
6
+ readonly planning: PlanningBalanceService;
7
+ readonly masterData: MasterDataService;
8
+ private readonly result;
9
+ readonly validationMessages: import("@angular/core").Signal<ValidationMessage[]>;
10
+ /** Fodder net balance (positive = surplus, negative = deficit). */
11
+ readonly fodderTotal: import("@angular/core").Signal<import("../../core/planning/planning-balance.types").FodderQuantity | null>;
12
+ readonly animalStockTotals: import("@angular/core").Signal<import("../../core/planning/planning-balance.types").AnimalStock | null>;
13
+ /** Housing-type segments for the A2 table, pre-built to avoid dynamic key access in template. */
14
+ readonly animalStockSegments: import("@angular/core").Signal<{
15
+ label: string;
16
+ data: import("../../core/planning/planning-balance.types").TotalNutrientSet;
17
+ }[]>;
18
+ /** A3 equivalent: manure trading balance per product. */
19
+ readonly manureTradingBalance: import("@angular/core").Signal<import("../../core/planning/planning-balance.types").FarmManureTrading | null>;
20
+ /** A4 equivalent: manure storage totals. */
21
+ readonly storageBalance: import("@angular/core").Signal<import("../../core/planning/planning-balance.types").TotalNutrientSet | null>;
22
+ /** A5 equivalent: field spreading totals for key nutrients. */
23
+ readonly fieldSpreadingBalance: import("@angular/core").Signal<import("../../core/planning/planning-balance.types").TotalNutrientSet | null>;
24
+ readonly requirementPerCultivationCategory: import("@angular/core").Signal<import("../../core/planning/planning-balance.types").NutrientRequirementEntry[]>;
25
+ readonly totalRequirement: import("@angular/core").Signal<NutrientEntry[]>;
26
+ /**
27
+ * Merge area/yield data from fieldCultivation with nutrient requirements so
28
+ * each row has everything needed to display Section C of the PDF report.
29
+ */
30
+ readonly cropRequirementRows: import("@angular/core").Signal<CropRequirementRow[]>;
31
+ readonly fodderDetail: import("@angular/core").Signal<import("../../core/planning/planning-balance.types").RequiredEffectiveYieldFromFodderCropland | null>;
32
+ readonly fodderEffectiveYield: import("@angular/core").Signal<import("../../core/planning/planning-balance.types").FodderQuantity | null>;
33
+ /** Human-readable label for a molecular formula symbol. */
34
+ formulaLabel(f: string): string;
35
+ /** Returns the quantity for a given formula from a nutrient entry list, or 0 if absent. */
36
+ reqValue(requirement: NutrientEntry[], formula: string): number;
37
+ /**
38
+ * Sums entries by formula for the given ordered formula list (kg unit only).
39
+ * Multiple per-product rows with the same formula are aggregated into one.
40
+ */
41
+ sumNutrients(entries: NutrientEntry[], formulas: readonly string[]): NutrientEntry[];
42
+ /** Summary chips for Sections A1–A5 (Ntot / P₂O₅ / K₂O / Mg). */
43
+ sumStockNutrients(entries: NutrientEntry[]): NutrientEntry[];
44
+ /** Summary chips for Sections C & D (N avail. / P₂O₅ / K₂O / Mg). */
45
+ sumKeyNutrients(entries: NutrientEntry[]): NutrientEntry[];
46
+ }
@@ -0,0 +1,13 @@
1
+ import { PlanningBalanceService } from '../../core/planning/planning-balance.service';
2
+ /**
3
+ * Extracted trigger UI for running the planning balance calculation.
4
+ * Contains: submit button and progress bar.
5
+ * Delegates actual HTTP call to `PlanningBalanceService`.
6
+ */
7
+ export declare class PlanningTriggerComponent {
8
+ readonly planning: PlanningBalanceService;
9
+ private readonly naebi;
10
+ /** When true, the submit button is disabled regardless of loading state. */
11
+ readonly hasErrors: import("@angular/core").InputSignal<boolean>;
12
+ runPlanning(): void;
13
+ }
@@ -0,0 +1,4 @@
1
+ import { PlanningBalanceService } from '../../core/planning/planning-balance.service';
2
+ export declare class ResultsPageComponent {
3
+ protected readonly planning: PlanningBalanceService;
4
+ }
@@ -0,0 +1,47 @@
1
+ /** Visual status driving arc colour and icon in the gauge. */
2
+ export type GaugeStatus = 'ok' | 'tolerated' | 'over' | 'under' | 'empty';
3
+ /** View-model for a single metric card in the SuisseBilanz dashboard. */
4
+ export interface GaugeMetric {
5
+ /** Stable key used for `@for` tracking (nutrient formula or 'rendement'). */
6
+ key: string;
7
+ /** Short display label — chemical formula or translated metric name. */
8
+ label: string;
9
+ /** Human-readable sub-label (nutrient description). */
10
+ sublabel: string;
11
+ /** Numeric value to display; `null` indicates no result yet. */
12
+ value: number | null;
13
+ /** Unit appended to the value inside the arc (e.g. '%' or ''). */
14
+ unit: string;
15
+ /** Derived status controlling arc colour and badge. */
16
+ status: GaugeStatus;
17
+ /** Upper bound of the gauge arc scale. */
18
+ maxGauge: number;
19
+ /** Short range description shown below the arc (e.g. '< 100 %'). */
20
+ rangeLabel: string;
21
+ }
22
+ /**
23
+ * Reusable semicircular SVG arc gauge.
24
+ *
25
+ * Renders a 180° arc gauge using pure inline SVG — no third-party library.
26
+ * All geometry is derived via `computed()` signals so the component is
27
+ * fully zoneless-safe and works without Zone.js triggers.
28
+ *
29
+ * The arc uses `pathLength="1"` so `stroke-dasharray` fractions map
30
+ * directly to 0–1 without floating-point arc-length estimation.
31
+ */
32
+ export declare class GaugeArcComponent {
33
+ readonly value: import("@angular/core").InputSignal<number>;
34
+ readonly max: import("@angular/core").InputSignal<number>;
35
+ readonly status: import("@angular/core").InputSignal<GaugeStatus>;
36
+ protected readonly pct: import("@angular/core").Signal<number>;
37
+ protected readonly dashArray: import("@angular/core").Signal<string>;
38
+ protected readonly tickCoords: import("@angular/core").Signal<{
39
+ x1: number;
40
+ y1: number;
41
+ x2: number;
42
+ y2: number;
43
+ }>;
44
+ protected readonly fillColor: import("@angular/core").Signal<string>;
45
+ protected readonly displayValue: import("@angular/core").Signal<string>;
46
+ protected readonly ariaLabel: import("@angular/core").Signal<string>;
47
+ }
@@ -0,0 +1,24 @@
1
+ import { SafeUrl } from '@angular/platform-browser';
2
+ import { PlanningBalanceService } from '../../core/planning/planning-balance.service';
3
+ import { GaugeStatus } from './gauge-arc.component';
4
+ import { SuisseBilanzMetricsService } from './suissebilanz-metrics.service';
5
+ /**
6
+ * Dashboard card displaying the 5 main SuisseBilanz metrics as semicircular
7
+ * SVG gauges. Derives all display data from `PlanningBalanceService` via
8
+ * computed signals — fully zoneless-safe, `OnPush`.
9
+ *
10
+ * Shows an empty-state panel when no planning result is available yet.
11
+ */
12
+ export declare class SuisseBilanzDashboardComponent {
13
+ readonly embedded: import("@angular/core").InputSignal<boolean>;
14
+ protected readonly planning: PlanningBalanceService;
15
+ private readonly sanitizer;
16
+ protected readonly metricsService: SuisseBilanzMetricsService;
17
+ private readonly result;
18
+ protected readonly metrics: import("@angular/core").Signal<import("./gauge-arc.component").GaugeMetric[]>;
19
+ protected readonly officialPdfUrl: import("@angular/core").Signal<SafeUrl | null>;
20
+ private prevBlobUrl;
21
+ private readonly blobCleanup;
22
+ /** Maps a `GaugeStatus` to its Material icon name for the status badge. */
23
+ protected statusIcon(status: GaugeStatus): string;
24
+ }
@@ -0,0 +1,21 @@
1
+ import { GaugeMetric } from './gauge-arc.component';
2
+ /**
3
+ * Shared source of truth for all SuisseBilanz metric view-models.
4
+ *
5
+ * Both the full dashboard card and the slim minibar consume this service so
6
+ * the derivation logic lives in exactly one place. Metrics re-compute via
7
+ * `computed()` when either the planning result or the locale signal changes.
8
+ */
9
+ export declare class SuisseBilanzMetricsService {
10
+ private readonly planning;
11
+ private readonly i18n;
12
+ /** Wall-clock time of the most recent successful planning result. */
13
+ readonly lastUpdated: import("@angular/core").WritableSignal<Date | null>;
14
+ constructor();
15
+ /**
16
+ * Five gauge view-models for N avail., P₂O₅, K₂O, Mg and Rendement prairies.
17
+ * Returns placeholder 'empty' metrics until the first planning result arrives.
18
+ */
19
+ readonly metrics: import("@angular/core").Signal<GaugeMetric[]>;
20
+ private emptyMetric;
21
+ }
@@ -0,0 +1,19 @@
1
+ import { GaugeMetric, GaugeStatus } from './gauge-arc.component';
2
+ import { SuisseBilanzMetricsService } from './suissebilanz-metrics.service';
3
+ /**
4
+ * Slim, always-visible metrics card placed above the workflow stepper.
5
+ *
6
+ * Shows the same 5 SuisseBilanz metrics as the full dashboard card but in a
7
+ * compact single-row layout: metric label → bold coloured value → thin
8
+ * progress bar. Shares all data logic via `SuisseBilanzMetricsService`.
9
+ */
10
+ export declare class SuisseBilanzMinibarComponent {
11
+ protected readonly metricsService: SuisseBilanzMetricsService;
12
+ /** Returns the status colour for a given metric status. */
13
+ protected statusColor(status: GaugeStatus): string;
14
+ /**
15
+ * Maps the metric value to a 0–100 fill percentage for the progress bar,
16
+ * clamped so bars never overflow the track.
17
+ */
18
+ protected fillPct(metric: GaugeMetric): number;
19
+ }
@@ -0,0 +1,17 @@
1
+ import { ErrorObject } from 'ajv';
2
+ import { PlanningBalanceService } from '../../core/planning/planning-balance.service';
3
+ /**
4
+ * Final submission step: review validation status and submit the planning balance.
5
+ */
6
+ export declare class ValidationPageComponent {
7
+ /** Navigation callback for validation error clicks — provided by App to keep routing logic centralised. */
8
+ readonly onErrorSelected: import("@angular/core").InputSignal<(error: ErrorObject) => void>;
9
+ /** Navigation callback triggered after a fresh successful planning submission. */
10
+ readonly onSubmitSuccess: import("@angular/core").InputSignal<() => void>;
11
+ protected readonly planning: PlanningBalanceService;
12
+ private readonly globalValidation;
13
+ private lastHandledSuccessRequestId;
14
+ constructor();
15
+ protected readonly validationErrors: import("@angular/core").Signal<import("../../../public-api").EnrichedValidationError[]>;
16
+ protected readonly errorCount: import("@angular/core").Signal<number>;
17
+ }
@@ -0,0 +1 @@
1
+ export { DEFAULT_SUIBI_METADATA, type SubmissionStatus, type SuibiVersion, type SuibiMetadata } from '../../core/metadata/suibi-metadata.types';
@@ -0,0 +1,28 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { JsonSchema, UISchemaElement } from '@jsonforms/core';
3
+ import { SuibiMetadata } from '../../core/metadata/suibi-metadata.types';
4
+ export declare class WelcomePageComponent implements OnInit {
5
+ private readonly i18n;
6
+ private readonly metadataSvc;
7
+ startEvent: import("@angular/core").OutputEmitterRef<void>;
8
+ metadataChange: import("@angular/core").OutputEmitterRef<SuibiMetadata>;
9
+ private readonly baseSchema;
10
+ private readonly baseUiSchema;
11
+ readonly suibiAjv: import("ajv").Ajv;
12
+ readonly renderers: {
13
+ tester: import("@jsonforms/core").RankedTester;
14
+ renderer: any;
15
+ }[];
16
+ readonly metadata: import("@angular/core").Signal<SuibiMetadata>;
17
+ readonly localizedSchema: import("@angular/core").Signal<JsonSchema>;
18
+ readonly localizedUi: import("@angular/core").Signal<UISchemaElement>;
19
+ readonly jsonFormsData: import("@angular/core").Signal<{}>;
20
+ ngOnInit(): void;
21
+ start(): void;
22
+ onMetadataChange(newValue: unknown): void;
23
+ private normalizeJsonFormsPayload;
24
+ private toMetadata;
25
+ private isSuibiVersion;
26
+ private isSubmissionStatus;
27
+ private isSameMetadata;
28
+ }
@@ -0,0 +1,52 @@
1
+ import { PageId } from '../../core/navigation/navigation.service';
2
+ /**
3
+ * WorkflowStepperComponent
4
+ * Horizontal navigation stepper for the main data-entry workflow.
5
+ *
6
+ * Design contract:
7
+ * - Uses mat-stepper as a header-only nav bar (step content is empty; content
8
+ * area is hidden via CSS so the stepper acts as a pure navigation indicator).
9
+ * - [selectedIndex] is driven by the currentPage input — no internal routing state.
10
+ * - Navigation is delegated back to App via the onNavigate callback, preserving
11
+ * the custom-element page-attribute reflection.
12
+ * - Error indicators: any page with at least one enriched validation error shows
13
+ * the error ring on its step circle. Requires STEPPER_GLOBAL_OPTIONS { showError: true }.
14
+ * - Non-workflow pages (e.g. data_preview): mat-stepper rejects out-of-bounds selectedIndex,
15
+ * so we clamp to 0; the no-active-step CSS class neutralises the visual active indicator,
16
+ * and onStepperClick delegates clicks for all headers (bypassing the stepper's
17
+ * "no-change" guard that suppresses selectedIndexChange for the currently selected step).
18
+ *
19
+ * Extension points:
20
+ * - Completed state: replace the hardcoded `false` on [completed] with a per-page
21
+ * computed once domain completion rules are defined (e.g. all required fields valid).
22
+ * - New pages: add an entry to WORKFLOW_STEPS and extend PageId.
23
+ */
24
+ export declare class WorkflowStepperComponent {
25
+ protected readonly steps: readonly {
26
+ readonly pageId: PageId;
27
+ readonly labelKey: string;
28
+ }[];
29
+ /**
30
+ * Current page from the parent. Controls which step circle is highlighted.
31
+ * Non-workflow pages (e.g. data_preview) use index 0 as a valid CDK fallback;
32
+ * the no-active-step CSS class removes the visual active indicator for those pages.
33
+ */
34
+ readonly currentPage: import("@angular/core").InputSignal<PageId>;
35
+ /**
36
+ * Navigation callback provided by App.
37
+ * Using a callback (instead of an output EventEmitter) matches the existing
38
+ * header-bar pattern and ensures the custom-element page-attribute is reflected.
39
+ */
40
+ readonly onNavigate: import("@angular/core").InputSignal<(page: PageId) => void>;
41
+ private readonly validationSvc;
42
+ private readonly planningSvc;
43
+ protected readonly pagesWithErrors: import("@angular/core").Signal<Set<PageId>>;
44
+ protected readonly isOnWorkflowPage: import("@angular/core").Signal<boolean>;
45
+ protected readonly hasPlanningResult: import("@angular/core").Signal<boolean>;
46
+ protected readonly isResultsStepDisabled: import("@angular/core").Signal<boolean>;
47
+ protected readonly clampedStepIndex: import("@angular/core").Signal<number>;
48
+ protected onSelectedIndexChange(index: number): void;
49
+ protected onStepperClick(event: MouseEvent): void;
50
+ private navigateTo;
51
+ private isStepDisabled;
52
+ }
@@ -1,5 +1,7 @@
1
- import naebiExample from '../../../../assets/example-data/example-naebi-data.json';
2
- export type NaebiData = typeof naebiExample;
1
+ import exampleDetail from '../../../../assets/example-data/example-naebi-data.json';
2
+ type SampleEvent = typeof exampleDetail;
3
+ type SampleData = SampleEvent['payload']['data'];
4
+ export type NaebiData = SampleData;
3
5
  /**
4
6
  * Calculation mode determines which validation rules and features are active.
5
7
  */
@@ -27,7 +29,7 @@ export declare class NaebiDataService {
27
29
  hoursPerDay: number;
28
30
  };
29
31
  stall: {
30
- stableSystem: number;
32
+ stableSystem: string;
31
33
  stableCapacity: number;
32
34
  stableVentilationType: number;
33
35
  stableAirPurification: number;
@@ -99,6 +101,10 @@ export declare class NaebiDataService {
99
101
  quantity: number;
100
102
  typeOfManureRecyclingProduct: string;
101
103
  transactionUnit: string;
104
+ manureDerivation: {
105
+ zoologicalAnimal: string;
106
+ percentageAllocation: number;
107
+ }[];
102
108
  ingredient: {
103
109
  quantity: number;
104
110
  molecularFormula: string;
@@ -113,6 +119,11 @@ export declare class NaebiDataService {
113
119
  zoologicalAnimal: string;
114
120
  percentageAllocation: number;
115
121
  }[];
122
+ ingredient: {
123
+ quantity: number;
124
+ molecularFormula: string;
125
+ unit: string;
126
+ }[];
116
127
  }[];
117
128
  };
118
129
  fieldSpreading: {
@@ -125,14 +136,18 @@ export declare class NaebiDataService {
125
136
  proportionOfArea: number;
126
137
  }[];
127
138
  applicationDuringWarmDays: number;
139
+ proportionAppliedSummerMonths: number;
140
+ proportionAppliedOtherMonths: number;
128
141
  proportionAppliedAfter6PM: number;
129
142
  dragHoseAreaSize: number;
130
143
  };
131
144
  manure: {
132
145
  applicationIncorporationTime: number;
133
146
  proportionAppliedSummerMonths: number;
147
+ proportionAppliedOtherMonths: number;
134
148
  };
135
149
  fertiliser: {
150
+ descriptor: string;
136
151
  fertiliserProductCategory: string;
137
152
  quantity: number;
138
153
  transactionUnit: string;
@@ -154,8 +169,6 @@ export declare class NaebiDataService {
154
169
  }[];
155
170
  };
156
171
  lifetimePerformance: {
157
- dailyGain: number;
158
- liveWeight: number;
159
172
  milkProductionReport: number;
160
173
  };
161
174
  fodder: {
@@ -209,19 +222,26 @@ export declare class NaebiDataService {
209
222
  userSpecificPlantName: string;
210
223
  isMainCrop: boolean;
211
224
  areaSize: number;
212
- yieldPerSquareMeasure: number;
213
225
  }[];
214
226
  };
215
227
  generateReport: boolean;
216
228
  };
229
+ calculationVersion: {
230
+ version: string;
231
+ };
217
232
  }>;
233
+ private readonly _lastEmitted;
234
+ private readonly _dirty;
235
+ readonly dirty: import("@angular/core").Signal<boolean>;
218
236
  private readonly _calculationMode;
219
237
  readonly calculationMode: import("@angular/core").Signal<CalculationMode>;
220
238
  /**
221
239
  * Set new data value; accepts plain object (already parsed) matching NaebiData shape.
222
- * Silent no-op if value is structurally equal reference to avoid unnecessary updates (cheap ref check only).
240
+ * Silent no-op if value is structurally equal after normalization to avoid unnecessary updates.
223
241
  */
224
242
  setData(value: NaebiData): void;
243
+ /** Mark current data as saved (clears dirty state and updates snapshot). */
244
+ markSaved(): void;
225
245
  /**
226
246
  * Set calculation mode (SuiBi or ExBi).
227
247
  * Can affect which validation rules are active or which features are enabled.
@@ -230,3 +250,4 @@ export declare class NaebiDataService {
230
250
  /** Reset to bundled example */
231
251
  reset(): void;
232
252
  }
253
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ErrorHandler, Injector } from '@angular/core';
2
+ export declare class GlobalErrorHandler implements ErrorHandler {
3
+ private injector;
4
+ constructor(injector: Injector);
5
+ handleError(error: any): void;
6
+ }
@@ -0,0 +1,13 @@
1
+ import { SuibiDataEventDetail, SuibiDataEventMetadata } from './suibi-data-event';
2
+ /**
3
+ * Centralizes construction + dispatch of the `suibi-data-emitted` payload so multiple UI entry points can reuse it.
4
+ */
5
+ export declare class SuibiDataEmitterService {
6
+ private readonly i18n;
7
+ private readonly validation;
8
+ private readonly metadataSvc;
9
+ private readonly naebi;
10
+ buildMetadata(): SuibiDataEventMetadata;
11
+ buildDetail(): SuibiDataEventDetail;
12
+ emitFrom(target: HTMLElement): void;
13
+ }
@@ -0,0 +1,26 @@
1
+ import { Locale } from '../i18n/i18n.service';
2
+ import { NaebiData } from '../data/naebi-data.service';
3
+ import { SuibiMetadata } from '../metadata/suibi-metadata.types';
4
+ /**
5
+ * Increment when the payload contract changes in a backwards-incompatible way.
6
+ */
7
+ export declare const SUIBI_DATA_EVENT_VERSION = "suibi-data.v1";
8
+ /** Detail object emitted with the `suibi-data` CustomEvent. */
9
+ export interface SuibiDataEventDetail {
10
+ version: typeof SUIBI_DATA_EVENT_VERSION;
11
+ payload: SuibiDataEventPayload;
12
+ }
13
+ /** Top-level payload structure delivered to host applications. */
14
+ export interface SuibiDataEventPayload {
15
+ metadata: SuibiDataEventMetadata;
16
+ data: NaebiData;
17
+ }
18
+ /**
19
+ * Metadata describing the dataset at the moment of emission so hosts can audit and reason about it.
20
+ */
21
+ export type SuibiDataEventMetadata = SuibiMetadata & {
22
+ emittedAt: string;
23
+ locale: Locale;
24
+ isValid: boolean;
25
+ errorCount: number;
26
+ };
@@ -1,5 +1,12 @@
1
1
  import { Locale } from '../i18n/i18n.service';
2
- declare const MASTER_DATA: Record<string, any[]>;
2
+ /** The property name of the primary key in a master-data catalog entry. */
3
+ type MasterDataKeyField = string;
4
+ interface MasterDataCatalog {
5
+ entries: any[];
6
+ /** Property name to use as the lookup key; 'id' entries are coerced to Number. */
7
+ key: MasterDataKeyField;
8
+ }
9
+ declare const MASTER_DATA: Record<string, MasterDataCatalog>;
3
10
  export type MasterDataKind = keyof typeof MASTER_DATA;
4
11
  export declare class MasterDataService {
5
12
  private readonly i18n;
@@ -14,5 +21,10 @@ export declare class MasterDataService {
14
21
  designation(kind: MasterDataKind, id: number | string | null | undefined, locale?: Locale): string;
15
22
  resolveAnimalCategory(id: number | string | null | undefined, locale?: Locale): string;
16
23
  resolveUtilisation(id: number | string | null | undefined, locale?: Locale): string;
24
+ resolveManureProduct(code: string | null | undefined, locale?: Locale): string;
25
+ resolveZoologicalAnimal(code: string | null | undefined, locale?: Locale): string;
26
+ resolveCultivationCategory(code: string | null | undefined, locale?: Locale): string;
27
+ resolveAgronomicCropCategory(code: string | null | undefined, locale?: Locale): string;
28
+ resolveFeedstuffProduct(code: string | null | undefined, locale?: Locale): string;
17
29
  }
18
30
  export {};
@@ -0,0 +1,6 @@
1
+ import { SuibiMetadata } from './suibi-metadata.types';
2
+ export declare class SuibiMetadataService {
3
+ private readonly metadataSignal;
4
+ readonly metadata: import("@angular/core").Signal<SuibiMetadata>;
5
+ setMetadata(next: SuibiMetadata): void;
6
+ }
@@ -0,0 +1,8 @@
1
+ export type SuibiVersion = '1.19' | '1.20';
2
+ export type SubmissionStatus = 'draft' | 'submitted' | 'final';
3
+ export interface SuibiMetadata {
4
+ title: string;
5
+ suibiVersion: SuibiVersion;
6
+ status: SubmissionStatus;
7
+ }
8
+ export declare const DEFAULT_SUIBI_METADATA: SuibiMetadata;