@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.
- package/dist/elements/browser/main.js +75 -64
- package/dist/elements/browser/styles.css +1 -1
- package/dist/elements/browser/suibi-module-latest.css +1 -1
- package/dist/elements/browser/suibi-module-latest.js +75 -64
- package/dist/elements/browser/{suibi-module.v0.1.0-preview.8.css → suibi-module.v0.1.0-preview.87d1ce6.css} +1 -1
- package/dist/elements/browser/suibi-module.v0.1.0-preview.87d1ce6.js +78 -0
- package/dist/elements/browser/suibi-theme-dark.css +1 -1
- package/dist/elements/browser/version.txt +1 -1
- package/dist/elements/browser/wc-global-utilities.css +1 -0
- package/dist/types/app/app.d.ts +14 -6
- package/dist/types/app/components/add-dashed-button/add-dashed-button.component.d.ts +9 -0
- package/dist/types/app/components/data-preview/data-preview.component.d.ts +12 -0
- package/dist/types/app/components/empty-state/empty-state.component.d.ts +12 -0
- package/dist/types/app/components/module-placeholder-page/module-placeholder-page.component.d.ts +6 -0
- package/dist/types/app/components/planning-result/planning-result.component.d.ts +46 -0
- package/dist/types/app/components/planning-result/planning-trigger.component.d.ts +13 -0
- package/dist/types/app/components/results-page/results-page.component.d.ts +4 -0
- package/dist/types/app/components/suissebilanz-dashboard/gauge-arc.component.d.ts +47 -0
- package/dist/types/app/components/suissebilanz-dashboard/suissebilanz-dashboard.component.d.ts +24 -0
- package/dist/types/app/components/suissebilanz-dashboard/suissebilanz-metrics.service.d.ts +21 -0
- package/dist/types/app/components/suissebilanz-dashboard/suissebilanz-minibar.component.d.ts +19 -0
- package/dist/types/app/components/validation-page/validation-page.component.d.ts +17 -0
- package/dist/types/app/components/welcome-page/metadata.types.d.ts +1 -0
- package/dist/types/app/components/welcome-page/welcome-page.component.d.ts +28 -0
- package/dist/types/app/components/workflow-stepper/workflow-stepper.component.d.ts +52 -0
- package/dist/types/app/core/data/naebi-data.service.d.ts +28 -7
- package/dist/types/app/core/error/global-error-handler.d.ts +6 -0
- package/dist/types/app/core/events/suibi-data-emitter.service.d.ts +13 -0
- package/dist/types/app/core/events/suibi-data-event.d.ts +26 -0
- package/dist/types/app/core/master-data/master-data.service.d.ts +13 -1
- package/dist/types/app/core/metadata/suibi-metadata.service.d.ts +6 -0
- package/dist/types/app/core/metadata/suibi-metadata.types.d.ts +8 -0
- package/dist/types/app/core/navigation/navigation.service.d.ts +26 -5
- package/dist/types/app/core/planning/planning-balance.service.d.ts +37 -0
- package/dist/types/app/core/planning/planning-balance.types.d.ts +206 -0
- package/dist/types/app/core/planning/planning-balance.utils.d.ts +10 -0
- package/dist/types/app/core/schemas/schema-localization.util.d.ts +18 -0
- package/dist/types/app/core/telemetry/telemetry.service.d.ts +12 -0
- package/dist/types/app/core/utils/object.util.d.ts +24 -0
- package/dist/types/app/core/validation/capabilities.d.ts +5 -5
- package/dist/types/app/core/validation/global-validation.service.d.ts +13 -4
- package/dist/types/app/header-bar.d.ts +2 -7
- package/dist/types/app/jsonforms/registry/renderers.registry.d.ts +8 -0
- package/dist/types/app/jsonforms/renderers/controls/selects/code-list/code-list-select.renderer.d.ts +8 -0
- package/dist/types/app/jsonforms/renderers/layout/array/array-layout.renderer.d.ts +43 -0
- package/dist/types/app/jsonforms/renderers/layout/categorization/selected-category-categorization.renderer.d.ts +34 -0
- package/dist/types/app/{animal-stock → nutrient-cycle/animal-stock}/animal-stock-detail.component.d.ts +1 -1
- package/dist/types/app/{animal-stock → nutrient-cycle/animal-stock}/animal-stock-master-detail.component.d.ts +4 -1
- package/dist/types/app/{animal-stock → nutrient-cycle/animal-stock}/animal-stock.types.d.ts +6 -6
- package/dist/types/app/nutrient-cycle/animal-stock/index.d.ts +4 -0
- package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading-detail.component.d.ts +27 -0
- package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading-list.component.d.ts +23 -0
- package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading-master-detail.component.d.ts +25 -0
- package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading.types.d.ts +27 -0
- package/dist/types/app/nutrient-cycle/farm-manure-trading/index.d.ts +4 -0
- package/dist/types/app/nutrient-cycle/farm-manure-trading/transaction-unit.util.d.ts +1 -0
- package/dist/types/app/nutrient-cycle/field-spreading/field-spreading.component.d.ts +21 -0
- package/dist/types/app/nutrient-cycle/field-spreading/field-spreading.types.d.ts +43 -0
- package/dist/types/app/nutrient-cycle/field-spreading/index.d.ts +2 -0
- package/dist/types/app/nutrient-cycle/lifetime-performance/lifetime-performance-form.component.d.ts +27 -0
- package/dist/types/app/nutrient-cycle/lifetime-performance/lifetime-performance.types.d.ts +5 -0
- package/dist/types/environments/environment.d.ts +11 -0
- package/dist/types/public-api.d.ts +2 -0
- package/dist/types/shared/material-icons.d.ts +3 -3
- package/package.json +2 -1
- package/dist/elements/browser/suibi-module.v0.1.0-preview.8.js +0 -67
- package/dist/types/app/data-preview.d.ts +0 -7
- package/dist/types/app/welcome-page.d.ts +0 -4
- /package/dist/types/app/{animal-stock → nutrient-cycle/animal-stock}/animal-stock-list.component.d.ts +0 -0
package/dist/types/app/nutrient-cycle/farm-manure-trading/farm-manure-trading-list.component.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter, Signal } from '@angular/core';
|
|
2
|
+
import { FarmManureTradingSupply, FarmManureTradingDispense } from './farm-manure-trading.types';
|
|
3
|
+
import { FarmManureTradingMode } from '../../core/navigation/navigation.service';
|
|
4
|
+
export type TradingMode = FarmManureTradingMode;
|
|
5
|
+
type TradingRow = FarmManureTradingSupply | FarmManureTradingDispense;
|
|
6
|
+
export declare class FarmManureTradingListComponent {
|
|
7
|
+
private readonly masterData;
|
|
8
|
+
private readonly i18n;
|
|
9
|
+
rows: Signal<TradingRow[]>;
|
|
10
|
+
selectedIndex: Signal<number | null>;
|
|
11
|
+
mode: TradingMode;
|
|
12
|
+
select: EventEmitter<number>;
|
|
13
|
+
add: EventEmitter<void>;
|
|
14
|
+
delete: EventEmitter<number>;
|
|
15
|
+
readonly displayedColumns: string[];
|
|
16
|
+
resolveProduct(code: string | null | undefined): string;
|
|
17
|
+
emptyLabel(): string;
|
|
18
|
+
emptyHintLabel(): string;
|
|
19
|
+
addLabel(): string;
|
|
20
|
+
headerLabel(): string;
|
|
21
|
+
onDelete(index: number, event: Event): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TradingMode } from './farm-manure-trading-list.component';
|
|
2
|
+
import { FarmManureTradingSupply, FarmManureTradingDispense } from './farm-manure-trading.types';
|
|
3
|
+
export declare class FarmManureTradingMasterDetailComponent {
|
|
4
|
+
private readonly dataSvc;
|
|
5
|
+
private readonly navigationSvc;
|
|
6
|
+
constructor();
|
|
7
|
+
readonly supplyRows: import("@angular/core").Signal<FarmManureTradingSupply[]>;
|
|
8
|
+
readonly dispenseRows: import("@angular/core").Signal<FarmManureTradingDispense[]>;
|
|
9
|
+
readonly activeTab: import("@angular/core").WritableSignal<import("../../core/navigation/navigation.service").FarmManureTradingMode>;
|
|
10
|
+
readonly selectedSupplyIndex: import("@angular/core").WritableSignal<number | null>;
|
|
11
|
+
readonly selectedDispenseIndex: import("@angular/core").WritableSignal<number | null>;
|
|
12
|
+
readonly currentDetail: import("@angular/core").Signal<FarmManureTradingSupply | null>;
|
|
13
|
+
readonly currentIndex: import("@angular/core").Signal<number | null>;
|
|
14
|
+
readonly detailOpen: import("@angular/core").Signal<boolean>;
|
|
15
|
+
readonly activeTabIndex: import("@angular/core").Signal<0 | 1>;
|
|
16
|
+
onTabChange(index: number): void;
|
|
17
|
+
openDetail(mode: TradingMode, index: number): void;
|
|
18
|
+
closeDetail(): void;
|
|
19
|
+
addEntry(mode: TradingMode): void;
|
|
20
|
+
deleteEntry(mode: TradingMode, index: number): void;
|
|
21
|
+
onDetailChange(payload: FarmManureTradingSupply | FarmManureTradingDispense): void;
|
|
22
|
+
private createEmptyEntry;
|
|
23
|
+
private patchRows;
|
|
24
|
+
private cloneTrading;
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ManureIngredient {
|
|
2
|
+
quantity?: number;
|
|
3
|
+
molecularFormula?: string;
|
|
4
|
+
unit?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ManureDerivation {
|
|
7
|
+
zoologicalAnimal?: string;
|
|
8
|
+
percentageAllocation?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface FarmManureTradingSupply {
|
|
11
|
+
quantity?: number;
|
|
12
|
+
typeOfManureRecyclingProduct?: string;
|
|
13
|
+
transactionUnit?: string;
|
|
14
|
+
manureDerivation?: ManureDerivation[];
|
|
15
|
+
ingredient?: ManureIngredient[];
|
|
16
|
+
}
|
|
17
|
+
export interface FarmManureTradingDispense {
|
|
18
|
+
quantity?: number;
|
|
19
|
+
typeOfManureRecyclingProduct?: string;
|
|
20
|
+
transactionUnit?: string;
|
|
21
|
+
manureDerivation?: ManureDerivation[];
|
|
22
|
+
ingredient?: ManureIngredient[];
|
|
23
|
+
}
|
|
24
|
+
export interface FarmManureTradingData {
|
|
25
|
+
supply?: FarmManureTradingSupply[];
|
|
26
|
+
dispense?: FarmManureTradingDispense[];
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deriveTransactionUnit(productCode: string | null | undefined): string | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
2
|
+
import { FieldSpreadingData } from './field-spreading.types';
|
|
3
|
+
export declare class FieldSpreadingComponent {
|
|
4
|
+
private readonly dataSvc;
|
|
5
|
+
private readonly navigationSvc;
|
|
6
|
+
private readonly i18n;
|
|
7
|
+
constructor();
|
|
8
|
+
readonly schema: import("@angular/core").Signal<JsonSchema>;
|
|
9
|
+
readonly localizedUi: import("@angular/core").Signal<UISchemaElement>;
|
|
10
|
+
readonly renderers: {
|
|
11
|
+
tester: import("@jsonforms/core").RankedTester;
|
|
12
|
+
renderer: any;
|
|
13
|
+
}[];
|
|
14
|
+
readonly ajv: import("ajv").Ajv;
|
|
15
|
+
private readonly normalizedFieldSpreading;
|
|
16
|
+
readonly jsonFormsData: import("@angular/core").Signal<(FieldSpreadingData & import("../../core/schemas/ui-helper-registry").UiHelperDefinitions) | null>;
|
|
17
|
+
onDataChange(event: unknown): void;
|
|
18
|
+
private patchFieldSpreading;
|
|
19
|
+
private normalizeFieldSpreading;
|
|
20
|
+
private areFieldSpreadingEqual;
|
|
21
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface FieldSpreadingOtherApplicationTechnology {
|
|
2
|
+
applicationTechnologyType?: number | null;
|
|
3
|
+
proportionOfArea?: number | null;
|
|
4
|
+
}
|
|
5
|
+
export interface FieldSpreadingSlurry {
|
|
6
|
+
quantity?: number | null;
|
|
7
|
+
dilutionRatio?: number | null;
|
|
8
|
+
applicationDuringWarmDays?: number | null;
|
|
9
|
+
proportionAppliedSummerMonths?: number | null;
|
|
10
|
+
proportionAppliedOtherMonths?: number | null;
|
|
11
|
+
proportionAppliedAfter6PM?: number | null;
|
|
12
|
+
dragHoseAreaSize?: number | null;
|
|
13
|
+
otherApplicationTechnologies?: FieldSpreadingOtherApplicationTechnology[];
|
|
14
|
+
}
|
|
15
|
+
export interface FieldSpreadingManure {
|
|
16
|
+
applicationIncorporationTime?: number | null;
|
|
17
|
+
proportionAppliedSummerMonths?: number | null;
|
|
18
|
+
proportionAppliedOtherMonths?: number | null;
|
|
19
|
+
}
|
|
20
|
+
export interface FieldSpreadingIngredient {
|
|
21
|
+
molecularFormula?: string | null;
|
|
22
|
+
quantity?: number | null;
|
|
23
|
+
unit?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface FieldSpreadingFertiliserEntry {
|
|
26
|
+
fertiliserProductCategory?: string | null;
|
|
27
|
+
quantity?: number | null;
|
|
28
|
+
transactionUnit?: string | null;
|
|
29
|
+
ingredient?: FieldSpreadingIngredient[];
|
|
30
|
+
}
|
|
31
|
+
export interface FieldSpreadingRecyclingEntry {
|
|
32
|
+
typeOfManureRecyclingProduct?: string | null;
|
|
33
|
+
quantity?: number | null;
|
|
34
|
+
transactionUnit?: string | null;
|
|
35
|
+
ingredient?: FieldSpreadingIngredient[];
|
|
36
|
+
}
|
|
37
|
+
export interface FieldSpreadingData {
|
|
38
|
+
soilPh?: number | null;
|
|
39
|
+
slurry?: FieldSpreadingSlurry;
|
|
40
|
+
manure?: FieldSpreadingManure;
|
|
41
|
+
fertiliser?: FieldSpreadingFertiliserEntry[];
|
|
42
|
+
recycling?: FieldSpreadingRecyclingEntry[];
|
|
43
|
+
}
|
package/dist/types/app/nutrient-cycle/lifetime-performance/lifetime-performance-form.component.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
2
|
+
import { AnimalStockRow } from '../animal-stock/animal-stock.types';
|
|
3
|
+
import { LifetimePerformance } from './lifetime-performance.types';
|
|
4
|
+
export declare class LifetimePerformanceFormComponent {
|
|
5
|
+
private readonly i18n;
|
|
6
|
+
private readonly masterData;
|
|
7
|
+
rows: import("@angular/core").InputSignal<AnimalStockRow[]>;
|
|
8
|
+
lifetimePerformance: import("@angular/core").InputSignal<LifetimePerformance | null | undefined>;
|
|
9
|
+
dataChange: import("@angular/core").OutputEmitterRef<LifetimePerformance>;
|
|
10
|
+
readonly renderers: {
|
|
11
|
+
tester: import("@jsonforms/core").RankedTester;
|
|
12
|
+
renderer: any;
|
|
13
|
+
}[];
|
|
14
|
+
readonly suibiAjv: import("ajv").Ajv;
|
|
15
|
+
private readonly beefFields;
|
|
16
|
+
private readonly dairyFields;
|
|
17
|
+
private readonly hasBeefRows;
|
|
18
|
+
private readonly hasDairyRows;
|
|
19
|
+
private readonly activeFields;
|
|
20
|
+
readonly shouldRender: import("@angular/core").Signal<boolean>;
|
|
21
|
+
readonly schema: import("@angular/core").Signal<JsonSchema>;
|
|
22
|
+
readonly localizedUi: import("@angular/core").Signal<UISchemaElement>;
|
|
23
|
+
readonly jsonFormsData: import("@angular/core").Signal<LifetimePerformance & import("../../core/schemas/ui-helper-registry").UiHelperDefinitions>;
|
|
24
|
+
private readonly pruneDisallowedEffect;
|
|
25
|
+
onDataChange(newValue: unknown): void;
|
|
26
|
+
private hasFlag;
|
|
27
|
+
}
|
|
@@ -2,3 +2,5 @@ export type { NaebiData } from './app/core/data/naebi-data.service';
|
|
|
2
2
|
export type { Locale } from './app/core/i18n/i18n.service';
|
|
3
3
|
export type { PageId, AnimalStockCategory } from './app/core/navigation/navigation.service';
|
|
4
4
|
export type { EnrichedValidationError } from './app/core/validation/global-validation.service';
|
|
5
|
+
export type { SuibiDataEventDetail, SuibiDataEventPayload, SuibiDataEventMetadata } from './app/core/events/suibi-data-event';
|
|
6
|
+
export { SUIBI_DATA_EVENT_VERSION } from './app/core/events/suibi-data-event';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Ensure the Material
|
|
2
|
+
* Ensure the Material icon stylesheets exist in the document <head> (SPA / non-shadow usage).
|
|
3
3
|
* Idempotent: returns immediately if DOM unavailable (SSR) or link already present.
|
|
4
4
|
*
|
|
5
5
|
* @param doc Optional document for testing / dependency injection.
|
|
6
6
|
*/
|
|
7
7
|
export declare function ensureMaterialIconsInHead(doc?: Document): void;
|
|
8
8
|
/**
|
|
9
|
-
* Ensure the Material
|
|
9
|
+
* Ensure the Material icon stylesheets are available inside a ShadowRoot so that
|
|
10
10
|
* icon ligatures render when the component is embedded as a Web Component.
|
|
11
11
|
* We prepend so icons load early without disturbing existing adopted stylesheets.
|
|
12
|
-
* Idempotent: guarded by
|
|
12
|
+
* Idempotent: each font link is guarded by its own custom attribute selector.
|
|
13
13
|
*
|
|
14
14
|
* @param shadow Target ShadowRoot; silently no-ops if null/undefined or DOM unavailable.
|
|
15
15
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agridea/suibi-module",
|
|
3
|
-
"version": "0.1.0-preview.
|
|
3
|
+
"version": "0.1.0-preview.87d1ce6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"ng": "ng",
|
|
6
6
|
"start": "ng serve --host 0.0.0.0",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"@jsonforms/angular": "^3.6.0",
|
|
69
69
|
"@jsonforms/angular-material": "^3.6.0",
|
|
70
70
|
"@jsonforms/core": "^3.6.0",
|
|
71
|
+
"@microsoft/applicationinsights-web": "^3.3.10",
|
|
71
72
|
"rxjs": "~7.8.0",
|
|
72
73
|
"tslib": "^2.3.0"
|
|
73
74
|
},
|