@kosdev-code/kos-ddk-cli 0.1.0-dev.72 → 0.1.0-dev.75

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.
@@ -15599,7 +15599,38 @@
15599
15599
  "package": "@kosdev-code/kos-ddk-model-components",
15600
15600
  "file": "src/styles/actions.tsx",
15601
15601
  "styled": true,
15602
- "props": [],
15602
+ "props": [
15603
+ {
15604
+ "name": "active",
15605
+ "type": "boolean",
15606
+ "optional": true
15607
+ },
15608
+ {
15609
+ "name": "children",
15610
+ "type": "ReactNode",
15611
+ "optional": false
15612
+ },
15613
+ {
15614
+ "name": "disabled",
15615
+ "type": "boolean",
15616
+ "optional": true
15617
+ },
15618
+ {
15619
+ "name": "mode",
15620
+ "type": "\"primary\"",
15621
+ "optional": true
15622
+ },
15623
+ {
15624
+ "name": "shadow",
15625
+ "type": "boolean",
15626
+ "optional": true
15627
+ },
15628
+ {
15629
+ "name": "state",
15630
+ "type": "string",
15631
+ "optional": true
15632
+ }
15633
+ ],
15603
15634
  "renders": [],
15604
15635
  "hooks": [],
15605
15636
  "styles": [
@@ -15721,6 +15752,16 @@
15721
15752
  "type": "HolderModel<FreestyleHolderExt>",
15722
15753
  "optional": false
15723
15754
  },
15755
+ {
15756
+ "name": "onComplete",
15757
+ "type": "() => void",
15758
+ "optional": false
15759
+ },
15760
+ {
15761
+ "name": "onSkip",
15762
+ "type": "() => void",
15763
+ "optional": true
15764
+ },
15724
15765
  {
15725
15766
  "name": "pump",
15726
15767
  "type": "PumpModel<any>",
@@ -15839,6 +15880,16 @@
15839
15880
  "file": "src/components/calibrate-modal/calibrate-modal.tsx",
15840
15881
  "styled": false,
15841
15882
  "props": [
15883
+ {
15884
+ "name": "onComplete",
15885
+ "type": "() => void",
15886
+ "optional": false
15887
+ },
15888
+ {
15889
+ "name": "onSkip",
15890
+ "type": "() => void",
15891
+ "optional": true
15892
+ },
15842
15893
  {
15843
15894
  "name": "pump",
15844
15895
  "type": "FcmPumpModel",
@@ -15979,20 +16030,95 @@
15979
16030
  "file": "src/components/config-prop-input-card/config-prop-input-card.tsx",
15980
16031
  "styled": false,
15981
16032
  "props": [
16033
+ {
16034
+ "name": "children",
16035
+ "type": "ReactNode",
16036
+ "optional": true
16037
+ },
16038
+ {
16039
+ "name": "className",
16040
+ "type": "string",
16041
+ "optional": true
16042
+ },
16043
+ {
16044
+ "name": "closeButtonLabel",
16045
+ "type": "string",
16046
+ "optional": true
16047
+ },
16048
+ {
16049
+ "name": "collapse",
16050
+ "type": "boolean",
16051
+ "optional": true
16052
+ },
15982
16053
  {
15983
16054
  "name": "configProperty",
15984
16055
  "type": "KosConfigProperty<any> & (KosConfigProperty<string> | KosConfigProperty<number>)",
15985
16056
  "optional": false
15986
16057
  },
16058
+ {
16059
+ "name": "description",
16060
+ "type": "string",
16061
+ "optional": true
16062
+ },
16063
+ {
16064
+ "name": "disabled",
16065
+ "type": "boolean",
16066
+ "optional": true
16067
+ },
16068
+ {
16069
+ "name": "float",
16070
+ "type": "boolean",
16071
+ "optional": true
16072
+ },
15987
16073
  {
15988
16074
  "name": "hideUnits",
15989
16075
  "type": "boolean",
15990
16076
  "optional": true
15991
16077
  },
16078
+ {
16079
+ "name": "isInputValid",
16080
+ "type": "(input?: string) => boolean",
16081
+ "optional": true
16082
+ },
16083
+ {
16084
+ "name": "isValid",
16085
+ "type": "(input?: string) => string",
16086
+ "optional": true
16087
+ },
16088
+ {
16089
+ "name": "label",
16090
+ "type": "string",
16091
+ "optional": false
16092
+ },
16093
+ {
16094
+ "name": "layout",
16095
+ "type": "\"default\" | \"hex\" | \"num\" | \"alphanumeric\"",
16096
+ "optional": true
16097
+ },
16098
+ {
16099
+ "name": "maxLength",
16100
+ "type": "number",
16101
+ "optional": true
16102
+ },
15992
16103
  {
15993
16104
  "name": "onChange",
15994
16105
  "type": "(value: any) => void",
15995
16106
  "optional": true
16107
+ },
16108
+ {
16109
+ "name": "padding",
16110
+ "type": "\"small\" | \"large\" | \"x-large\"",
16111
+ "optional": true
16112
+ },
16113
+ {
16114
+ "name": "submitLabel",
16115
+ "type": "ReactNode",
16116
+ "optional": true
16117
+ },
16118
+ {
16119
+ "name": "unitStyle",
16120
+ "type": "UnitStyle",
16121
+ "optional": true
15996
16122
  }
15997
16123
  ],
15998
16124
  "renders": [],
@@ -16009,19 +16135,109 @@
16009
16135
  "file": "src/components/config-prop-input-range-card/config-prop-input-range-card.tsx",
16010
16136
  "styled": false,
16011
16137
  "props": [
16138
+ {
16139
+ "name": "children",
16140
+ "type": "ReactNode",
16141
+ "optional": true
16142
+ },
16143
+ {
16144
+ "name": "className",
16145
+ "type": "string",
16146
+ "optional": true
16147
+ },
16148
+ {
16149
+ "name": "closeButtonLabel",
16150
+ "type": "string",
16151
+ "optional": true
16152
+ },
16153
+ {
16154
+ "name": "collapse",
16155
+ "type": "boolean",
16156
+ "optional": true
16157
+ },
16012
16158
  {
16013
16159
  "name": "configProperty",
16014
16160
  "type": "KosConfigProperty<any>",
16015
16161
  "optional": false
16016
16162
  },
16163
+ {
16164
+ "name": "description",
16165
+ "type": "string",
16166
+ "optional": true
16167
+ },
16168
+ {
16169
+ "name": "disabled",
16170
+ "type": "boolean",
16171
+ "optional": true
16172
+ },
16173
+ {
16174
+ "name": "float",
16175
+ "type": "boolean",
16176
+ "optional": true
16177
+ },
16178
+ {
16179
+ "name": "isInputValid",
16180
+ "type": "(input?: string) => boolean",
16181
+ "optional": true
16182
+ },
16183
+ {
16184
+ "name": "isValid",
16185
+ "type": "(input?: string) => string",
16186
+ "optional": true
16187
+ },
16017
16188
  {
16018
16189
  "name": "label",
16019
16190
  "type": "string",
16020
16191
  "optional": true
16021
16192
  },
16193
+ {
16194
+ "name": "layout",
16195
+ "type": "\"default\" | \"hex\" | \"num\" | \"alphanumeric\"",
16196
+ "optional": true
16197
+ },
16198
+ {
16199
+ "name": "maxLength",
16200
+ "type": "number",
16201
+ "optional": true
16202
+ },
16203
+ {
16204
+ "name": "maxValueValidationText",
16205
+ "type": "string",
16206
+ "optional": true
16207
+ },
16208
+ {
16209
+ "name": "minValueValidationText",
16210
+ "type": "string",
16211
+ "optional": true
16212
+ },
16022
16213
  {
16023
16214
  "name": "onChange",
16024
- "type": "(value: any) => void",
16215
+ "type": "((value: any) => void) & ((value?: string) => void)",
16216
+ "optional": true
16217
+ },
16218
+ {
16219
+ "name": "padding",
16220
+ "type": "\"small\" | \"large\" | \"x-large\"",
16221
+ "optional": true
16222
+ },
16223
+ {
16224
+ "name": "submitLabel",
16225
+ "type": "ReactNode",
16226
+ "optional": true
16227
+ },
16228
+ {
16229
+ "name": "unitStyle",
16230
+ "type": "UnitStyle",
16231
+ "optional": true
16232
+ },
16233
+ {
16234
+ "name": "unitValue",
16235
+ "type": "string",
16236
+ "optional": true
16237
+ },
16238
+ {
16239
+ "name": "value",
16240
+ "type": "string",
16025
16241
  "optional": true
16026
16242
  }
16027
16243
  ],
@@ -16126,6 +16342,16 @@
16126
16342
  "file": "src/components/config-prop-picker-card/config-prop-picker-card.tsx",
16127
16343
  "styled": false,
16128
16344
  "props": [
16345
+ {
16346
+ "name": "cancelButtonLabel",
16347
+ "type": "string",
16348
+ "optional": true
16349
+ },
16350
+ {
16351
+ "name": "closeButtonLabel",
16352
+ "type": "string",
16353
+ "optional": true
16354
+ },
16129
16355
  {
16130
16356
  "name": "collapse",
16131
16357
  "type": "boolean",
@@ -16136,26 +16362,81 @@
16136
16362
  "type": "KosConfigProperty<any>",
16137
16363
  "optional": false
16138
16364
  },
16365
+ {
16366
+ "name": "disabled",
16367
+ "type": "boolean",
16368
+ "optional": true
16369
+ },
16139
16370
  {
16140
16371
  "name": "displayMode",
16141
16372
  "type": "\"raw\" | \"formatted\"",
16142
16373
  "optional": true
16143
16374
  },
16375
+ {
16376
+ "name": "displayValue",
16377
+ "type": "string",
16378
+ "optional": true
16379
+ },
16380
+ {
16381
+ "name": "enableAnimation",
16382
+ "type": "boolean",
16383
+ "optional": true
16384
+ },
16144
16385
  {
16145
16386
  "name": "float",
16146
16387
  "type": "boolean",
16147
16388
  "optional": true
16148
16389
  },
16390
+ {
16391
+ "name": "items",
16392
+ "type": "PickerItem<any>[]",
16393
+ "optional": true
16394
+ },
16149
16395
  {
16150
16396
  "name": "label",
16151
16397
  "type": "string",
16152
16398
  "optional": true
16153
16399
  },
16400
+ {
16401
+ "name": "loop",
16402
+ "type": "boolean",
16403
+ "optional": true
16404
+ },
16405
+ {
16406
+ "name": "numberOfVisibleItems",
16407
+ "type": "number",
16408
+ "optional": true
16409
+ },
16154
16410
  {
16155
16411
  "name": "onChange",
16156
16412
  "type": "(value: any) => void",
16157
16413
  "optional": true
16158
- }
16414
+ },
16415
+ {
16416
+ "name": "onSave",
16417
+ "type": "(id: any) => void",
16418
+ "optional": true
16419
+ },
16420
+ {
16421
+ "name": "proceedButtonLabel",
16422
+ "type": "string",
16423
+ "optional": true
16424
+ },
16425
+ {
16426
+ "name": "selectedItemId",
16427
+ "type": "any",
16428
+ "optional": true
16429
+ },
16430
+ {
16431
+ "name": "selectedItemOffset",
16432
+ "type": "number",
16433
+ "optional": true
16434
+ },
16435
+ {
16436
+ "name": "unitValue",
16437
+ "type": "string",
16438
+ "optional": true
16439
+ }
16159
16440
  ],
16160
16441
  "renders": [],
16161
16442
  "hooks": [
@@ -16209,6 +16490,31 @@
16209
16490
  "name": "configProperty",
16210
16491
  "type": "KosConfigProperty<string>",
16211
16492
  "optional": true
16493
+ },
16494
+ {
16495
+ "name": "disabled",
16496
+ "type": "boolean",
16497
+ "optional": true
16498
+ },
16499
+ {
16500
+ "name": "label",
16501
+ "type": "string",
16502
+ "optional": false
16503
+ },
16504
+ {
16505
+ "name": "onChange",
16506
+ "type": "(value: string) => void",
16507
+ "optional": true
16508
+ },
16509
+ {
16510
+ "name": "options",
16511
+ "type": "SwitchOptions",
16512
+ "optional": false
16513
+ },
16514
+ {
16515
+ "name": "value",
16516
+ "type": "string",
16517
+ "optional": true
16212
16518
  }
16213
16519
  ],
16214
16520
  "renders": [],
@@ -16223,15 +16529,85 @@
16223
16529
  "file": "src/components/config-prop-time-picker-card/config-prop-time-picker-card.tsx",
16224
16530
  "styled": false,
16225
16531
  "props": [
16532
+ {
16533
+ "name": "cancelButtonLabel",
16534
+ "type": "string",
16535
+ "optional": true
16536
+ },
16537
+ {
16538
+ "name": "className",
16539
+ "type": "string",
16540
+ "optional": true
16541
+ },
16542
+ {
16543
+ "name": "closeButtonLabel",
16544
+ "type": "string",
16545
+ "optional": true
16546
+ },
16226
16547
  {
16227
16548
  "name": "configProperty",
16228
16549
  "type": "KosConfigProperty<any>",
16229
16550
  "optional": false
16230
16551
  },
16552
+ {
16553
+ "name": "description",
16554
+ "type": "string",
16555
+ "optional": true
16556
+ },
16557
+ {
16558
+ "name": "descriptionAsError",
16559
+ "type": "boolean",
16560
+ "optional": true
16561
+ },
16562
+ {
16563
+ "name": "disabled",
16564
+ "type": "boolean",
16565
+ "optional": true
16566
+ },
16567
+ {
16568
+ "name": "displayValue",
16569
+ "type": "string",
16570
+ "optional": true
16571
+ },
16572
+ {
16573
+ "name": "enableAnimation",
16574
+ "type": "boolean",
16575
+ "optional": true
16576
+ },
16577
+ {
16578
+ "name": "float",
16579
+ "type": "boolean",
16580
+ "optional": true
16581
+ },
16582
+ {
16583
+ "name": "label",
16584
+ "type": "string",
16585
+ "optional": true
16586
+ },
16587
+ {
16588
+ "name": "modalTitle",
16589
+ "type": "string",
16590
+ "optional": true
16591
+ },
16231
16592
  {
16232
16593
  "name": "onChange",
16233
16594
  "type": "(value: any) => void",
16234
16595
  "optional": true
16596
+ },
16597
+ {
16598
+ "name": "onDiscard",
16599
+ "type": "() => void",
16600
+ "optional": true
16601
+ },
16602
+ {
16603
+ "name": "proceedButtonLabel",
16604
+ "type": "string",
16605
+ "optional": true
16606
+ },
16607
+ {
16608
+ "name": "selectedItemOffset",
16609
+ "type": "number",
16610
+ "optional": true
16235
16611
  }
16236
16612
  ],
16237
16613
  "renders": [
@@ -16249,11 +16625,46 @@
16249
16625
  "file": "src/components/config-prop-toggle-card/config-prop-toggle-card.tsx",
16250
16626
  "styled": false,
16251
16627
  "props": [
16628
+ {
16629
+ "name": "active",
16630
+ "type": "boolean",
16631
+ "optional": true
16632
+ },
16633
+ {
16634
+ "name": "alwaysShowLabel",
16635
+ "type": "boolean",
16636
+ "optional": true
16637
+ },
16638
+ {
16639
+ "name": "className",
16640
+ "type": "string",
16641
+ "optional": true
16642
+ },
16643
+ {
16644
+ "name": "collapse",
16645
+ "type": "boolean",
16646
+ "optional": true
16647
+ },
16252
16648
  {
16253
16649
  "name": "configProperty",
16254
16650
  "type": "KosConfigProperty<any> & KosConfigProperty<boolean>",
16255
16651
  "optional": false
16256
16652
  },
16653
+ {
16654
+ "name": "disabled",
16655
+ "type": "boolean",
16656
+ "optional": true
16657
+ },
16658
+ {
16659
+ "name": "float",
16660
+ "type": "boolean",
16661
+ "optional": true
16662
+ },
16663
+ {
16664
+ "name": "label",
16665
+ "type": "string",
16666
+ "optional": true
16667
+ },
16257
16668
  {
16258
16669
  "name": "onChange",
16259
16670
  "type": "(value: any) => void",
@@ -16263,6 +16674,21 @@
16263
16674
  "name": "overrideChecked",
16264
16675
  "type": "boolean",
16265
16676
  "optional": true
16677
+ },
16678
+ {
16679
+ "name": "shadow",
16680
+ "type": "boolean",
16681
+ "optional": true
16682
+ },
16683
+ {
16684
+ "name": "stretch",
16685
+ "type": "boolean",
16686
+ "optional": true
16687
+ },
16688
+ {
16689
+ "name": "toggleLabel",
16690
+ "type": "string",
16691
+ "optional": true
16266
16692
  }
16267
16693
  ],
16268
16694
  "renders": [],
@@ -16292,21 +16718,101 @@
16292
16718
  "file": "src/components/date-picker-card/date-picker-card.tsx",
16293
16719
  "styled": false,
16294
16720
  "props": [
16721
+ {
16722
+ "name": "cancelButtonLabel",
16723
+ "type": "string",
16724
+ "optional": true
16725
+ },
16726
+ {
16727
+ "name": "className",
16728
+ "type": "string",
16729
+ "optional": true
16730
+ },
16731
+ {
16732
+ "name": "closeButtonLabel",
16733
+ "type": "string",
16734
+ "optional": true
16735
+ },
16295
16736
  {
16296
16737
  "name": "day",
16297
16738
  "type": "number",
16298
16739
  "optional": true
16299
16740
  },
16741
+ {
16742
+ "name": "description",
16743
+ "type": "string",
16744
+ "optional": true
16745
+ },
16746
+ {
16747
+ "name": "descriptionAsError",
16748
+ "type": "boolean",
16749
+ "optional": true
16750
+ },
16751
+ {
16752
+ "name": "disabled",
16753
+ "type": "boolean",
16754
+ "optional": true
16755
+ },
16756
+ {
16757
+ "name": "displayValue",
16758
+ "type": "string",
16759
+ "optional": true
16760
+ },
16761
+ {
16762
+ "name": "enableAnimation",
16763
+ "type": "boolean",
16764
+ "optional": true
16765
+ },
16766
+ {
16767
+ "name": "float",
16768
+ "type": "boolean",
16769
+ "optional": true
16770
+ },
16771
+ {
16772
+ "name": "icon",
16773
+ "type": "FunctionComponent<{}>",
16774
+ "optional": true
16775
+ },
16776
+ {
16777
+ "name": "label",
16778
+ "type": "string",
16779
+ "optional": true
16780
+ },
16781
+ {
16782
+ "name": "modalTitle",
16783
+ "type": "string",
16784
+ "optional": true
16785
+ },
16300
16786
  {
16301
16787
  "name": "month",
16302
16788
  "type": "number",
16303
16789
  "optional": true
16304
16790
  },
16791
+ {
16792
+ "name": "onChange",
16793
+ "type": "(id: string, pickerItem: MultiPickerItem<number>) => void",
16794
+ "optional": true
16795
+ },
16796
+ {
16797
+ "name": "onDiscard",
16798
+ "type": "() => void",
16799
+ "optional": true
16800
+ },
16305
16801
  {
16306
16802
  "name": "onSave",
16307
16803
  "type": "(date: DatePickerCardDate) => void",
16308
16804
  "optional": false
16309
16805
  },
16806
+ {
16807
+ "name": "proceedButtonLabel",
16808
+ "type": "string",
16809
+ "optional": true
16810
+ },
16811
+ {
16812
+ "name": "selectedItemOffset",
16813
+ "type": "number",
16814
+ "optional": true
16815
+ },
16310
16816
  {
16311
16817
  "name": "year",
16312
16818
  "type": "number",
@@ -16330,12 +16836,22 @@
16330
16836
  "styled": false,
16331
16837
  "props": [
16332
16838
  {
16333
- "name": "pump",
16334
- "type": "FcmPumpModel",
16839
+ "name": "onComplete",
16840
+ "type": "() => void",
16335
16841
  "optional": false
16336
- }
16337
- ],
16338
- "renders": [],
16842
+ },
16843
+ {
16844
+ "name": "onSkip",
16845
+ "type": "() => void",
16846
+ "optional": true
16847
+ },
16848
+ {
16849
+ "name": "pump",
16850
+ "type": "FcmPumpModel",
16851
+ "optional": false
16852
+ }
16853
+ ],
16854
+ "renders": [],
16339
16855
  "hooks": [
16340
16856
  "useCallback",
16341
16857
  "useKosTranslation",
@@ -17215,6 +17731,21 @@
17215
17731
  "file": "src/components/hold-to-pour-button/hold-to-pour-button.tsx",
17216
17732
  "styled": false,
17217
17733
  "props": [
17734
+ {
17735
+ "name": "active",
17736
+ "type": "boolean",
17737
+ "optional": true
17738
+ },
17739
+ {
17740
+ "name": "disabled",
17741
+ "type": "boolean",
17742
+ "optional": true
17743
+ },
17744
+ {
17745
+ "name": "mode",
17746
+ "type": "\"primary\"",
17747
+ "optional": true
17748
+ },
17218
17749
  {
17219
17750
  "name": "model",
17220
17751
  "type": "IntentAware",
@@ -17229,8 +17760,21 @@
17229
17760
  "name": "onPourCancel",
17230
17761
  "type": "() => void",
17231
17762
  "optional": true
17763
+ },
17764
+ {
17765
+ "name": "shadow",
17766
+ "type": "boolean",
17767
+ "optional": true
17768
+ },
17769
+ {
17770
+ "name": "state",
17771
+ "type": "string",
17772
+ "optional": true
17232
17773
  }
17233
17774
  ],
17775
+ "inherits": [
17776
+ "Omit<ButtonProps, \"children\">"
17777
+ ],
17234
17778
  "renders": [],
17235
17779
  "hooks": [
17236
17780
  "useCallback",
@@ -17913,6 +18457,11 @@
17913
18457
  "file": "src/components/plugin-tabs/plugin-tabs.tsx",
17914
18458
  "styled": false,
17915
18459
  "props": [
18460
+ {
18461
+ "name": "baseRoute",
18462
+ "type": "string",
18463
+ "optional": false
18464
+ },
17916
18465
  {
17917
18466
  "name": "extensionPointId",
17918
18467
  "type": "string",
@@ -17923,6 +18472,11 @@
17923
18472
  "type": "string[]",
17924
18473
  "optional": true
17925
18474
  },
18475
+ {
18476
+ "name": "tabs",
18477
+ "type": "Tab[]",
18478
+ "optional": false
18479
+ },
17926
18480
  {
17927
18481
  "name": "viewContainerId",
17928
18482
  "type": "string",
@@ -18014,12 +18568,48 @@
18014
18568
  ],
18015
18569
  "tokens": []
18016
18570
  },
18571
+ {
18572
+ "name": "RebootView",
18573
+ "package": "@kosdev-code/kos-ddk-model-components",
18574
+ "file": "src/components/reboot-view/reboot-view.tsx",
18575
+ "styled": false,
18576
+ "props": [
18577
+ {
18578
+ "name": "onComplete",
18579
+ "type": "() => void",
18580
+ "optional": false
18581
+ },
18582
+ {
18583
+ "name": "onSkip",
18584
+ "type": "() => void",
18585
+ "optional": true
18586
+ }
18587
+ ],
18588
+ "renders": [],
18589
+ "hooks": [
18590
+ "useComponentConfigurationContext",
18591
+ "useKosTranslation",
18592
+ "useReboot",
18593
+ "useState"
18594
+ ],
18595
+ "tokens": []
18596
+ },
18017
18597
  {
18018
18598
  "name": "RemoteNNSModal",
18019
18599
  "package": "@kosdev-code/kos-ddk-model-components",
18020
18600
  "file": "src/components/remote-nns-modal/remote-nns-modal.tsx",
18021
18601
  "styled": false,
18022
18602
  "props": [
18603
+ {
18604
+ "name": "onComplete",
18605
+ "type": "() => void",
18606
+ "optional": false
18607
+ },
18608
+ {
18609
+ "name": "onSkip",
18610
+ "type": "() => void",
18611
+ "optional": true
18612
+ },
18023
18613
  {
18024
18614
  "name": "remoteTray",
18025
18615
  "type": "RemoteTrayModel",
@@ -18106,6 +18696,16 @@
18106
18696
  "name": "holder",
18107
18697
  "type": "HolderModel<any>",
18108
18698
  "optional": false
18699
+ },
18700
+ {
18701
+ "name": "onComplete",
18702
+ "type": "() => void",
18703
+ "optional": false
18704
+ },
18705
+ {
18706
+ "name": "onSkip",
18707
+ "type": "() => void",
18708
+ "optional": true
18109
18709
  }
18110
18710
  ],
18111
18711
  "renders": [
@@ -18125,6 +18725,16 @@
18125
18725
  "file": "src/components/replace-pump/replace-pump.tsx",
18126
18726
  "styled": false,
18127
18727
  "props": [
18728
+ {
18729
+ "name": "onComplete",
18730
+ "type": "() => void",
18731
+ "optional": false
18732
+ },
18733
+ {
18734
+ "name": "onSkip",
18735
+ "type": "() => void",
18736
+ "optional": true
18737
+ },
18128
18738
  {
18129
18739
  "name": "pump",
18130
18740
  "type": "PumpModel<any>",
@@ -18154,6 +18764,16 @@
18154
18764
  "type": "HolderModel<FreestyleHolderExt>",
18155
18765
  "optional": false
18156
18766
  },
18767
+ {
18768
+ "name": "onComplete",
18769
+ "type": "() => void",
18770
+ "optional": false
18771
+ },
18772
+ {
18773
+ "name": "onSkip",
18774
+ "type": "() => void",
18775
+ "optional": true
18776
+ },
18157
18777
  {
18158
18778
  "name": "pump",
18159
18779
  "type": "PumpModel<any>",
@@ -18187,7 +18807,33 @@
18187
18807
  "package": "@kosdev-code/kos-ddk-model-components",
18188
18808
  "file": "src/components/setup-sidebar/setup-sidebar.tsx",
18189
18809
  "styled": false,
18190
- "props": [],
18810
+ "props": [
18811
+ {
18812
+ "name": "enableAnimation",
18813
+ "type": "boolean",
18814
+ "optional": true
18815
+ },
18816
+ {
18817
+ "name": "onClose",
18818
+ "type": "() => void",
18819
+ "optional": false
18820
+ },
18821
+ {
18822
+ "name": "onStepSelected",
18823
+ "type": "(stepId: string) => void",
18824
+ "optional": false
18825
+ },
18826
+ {
18827
+ "name": "show",
18828
+ "type": "boolean",
18829
+ "optional": false
18830
+ },
18831
+ {
18832
+ "name": "title",
18833
+ "type": "string",
18834
+ "optional": false
18835
+ }
18836
+ ],
18191
18837
  "renders": [
18192
18838
  "StepItem",
18193
18839
  "StepTitle"
@@ -18251,7 +18897,38 @@
18251
18897
  "package": "@kosdev-code/kos-ddk-model-components",
18252
18898
  "file": "src/components/setup-sidebar/setup-sidebar.tsx",
18253
18899
  "styled": false,
18254
- "props": [],
18900
+ "props": [
18901
+ {
18902
+ "name": "enableAnimation",
18903
+ "type": "boolean",
18904
+ "optional": true
18905
+ },
18906
+ {
18907
+ "name": "onClose",
18908
+ "type": "() => void",
18909
+ "optional": false
18910
+ },
18911
+ {
18912
+ "name": "onStepSelected",
18913
+ "type": "(stepId: string) => void",
18914
+ "optional": false
18915
+ },
18916
+ {
18917
+ "name": "setupStepContainer",
18918
+ "type": "SetupStepContainerModel",
18919
+ "optional": false
18920
+ },
18921
+ {
18922
+ "name": "show",
18923
+ "type": "boolean",
18924
+ "optional": false
18925
+ },
18926
+ {
18927
+ "name": "title",
18928
+ "type": "string",
18929
+ "optional": false
18930
+ }
18931
+ ],
18255
18932
  "renders": [
18256
18933
  "StepItem",
18257
18934
  "StepTitle"
@@ -18362,6 +19039,16 @@
18362
19039
  "file": "src/components/spm-field-calibration/spm-field-calibration-modal.tsx",
18363
19040
  "styled": false,
18364
19041
  "props": [
19042
+ {
19043
+ "name": "onComplete",
19044
+ "type": "() => void",
19045
+ "optional": false
19046
+ },
19047
+ {
19048
+ "name": "onSkip",
19049
+ "type": "() => void",
19050
+ "optional": true
19051
+ },
18365
19052
  {
18366
19053
  "name": "pump",
18367
19054
  "type": "SpmPumpModel",
@@ -18762,11 +19449,81 @@
18762
19449
  "file": "src/components/time-picker-card/time-picker-card.tsx",
18763
19450
  "styled": false,
18764
19451
  "props": [
19452
+ {
19453
+ "name": "cancelButtonLabel",
19454
+ "type": "string",
19455
+ "optional": true
19456
+ },
19457
+ {
19458
+ "name": "className",
19459
+ "type": "string",
19460
+ "optional": true
19461
+ },
19462
+ {
19463
+ "name": "closeButtonLabel",
19464
+ "type": "string",
19465
+ "optional": true
19466
+ },
19467
+ {
19468
+ "name": "description",
19469
+ "type": "string",
19470
+ "optional": true
19471
+ },
19472
+ {
19473
+ "name": "descriptionAsError",
19474
+ "type": "boolean",
19475
+ "optional": true
19476
+ },
19477
+ {
19478
+ "name": "disabled",
19479
+ "type": "boolean",
19480
+ "optional": true
19481
+ },
19482
+ {
19483
+ "name": "displayValue",
19484
+ "type": "string",
19485
+ "optional": true
19486
+ },
19487
+ {
19488
+ "name": "enableAnimation",
19489
+ "type": "boolean",
19490
+ "optional": true
19491
+ },
19492
+ {
19493
+ "name": "float",
19494
+ "type": "boolean",
19495
+ "optional": true
19496
+ },
19497
+ {
19498
+ "name": "label",
19499
+ "type": "string",
19500
+ "optional": true
19501
+ },
19502
+ {
19503
+ "name": "modalTitle",
19504
+ "type": "string",
19505
+ "optional": true
19506
+ },
19507
+ {
19508
+ "name": "onDiscard",
19509
+ "type": "() => void",
19510
+ "optional": true
19511
+ },
18765
19512
  {
18766
19513
  "name": "onSave",
18767
19514
  "type": "({ hours, minutes }: { hours: Hours; minutes: Minutes; }) => void",
18768
19515
  "optional": false
18769
19516
  },
19517
+ {
19518
+ "name": "proceedButtonLabel",
19519
+ "type": "string",
19520
+ "optional": true
19521
+ },
19522
+ {
19523
+ "name": "selectedItemOffset",
19524
+ "type": "number",
19525
+ "optional": true
19526
+ },
18770
19527
  {
18771
19528
  "name": "time",
18772
19529
  "type": "Date",
@@ -18813,14 +19570,95 @@
18813
19570
  "package": "@kosdev-code/kos-ddk-model-components",
18814
19571
  "file": "src/components/time-zone-picker-card/time-zone-picker-card.tsx",
18815
19572
  "styled": false,
18816
- "props": [],
18817
- "renders": [],
18818
- "hooks": [
18819
- "useKosRegions",
18820
- "useKosTime",
18821
- "useKosTranslation"
18822
- ],
18823
- "tokens": []
19573
+ "props": [
19574
+ {
19575
+ "name": "cancelButtonLabel",
19576
+ "type": "string",
19577
+ "optional": true
19578
+ },
19579
+ {
19580
+ "name": "className",
19581
+ "type": "string",
19582
+ "optional": true
19583
+ },
19584
+ {
19585
+ "name": "closeButtonLabel",
19586
+ "type": "string",
19587
+ "optional": true
19588
+ },
19589
+ {
19590
+ "name": "description",
19591
+ "type": "string",
19592
+ "optional": true
19593
+ },
19594
+ {
19595
+ "name": "descriptionAsError",
19596
+ "type": "boolean",
19597
+ "optional": true
19598
+ },
19599
+ {
19600
+ "name": "disabled",
19601
+ "type": "boolean",
19602
+ "optional": true
19603
+ },
19604
+ {
19605
+ "name": "displayValue",
19606
+ "type": "string",
19607
+ "optional": true
19608
+ },
19609
+ {
19610
+ "name": "enableAnimation",
19611
+ "type": "boolean",
19612
+ "optional": true
19613
+ },
19614
+ {
19615
+ "name": "float",
19616
+ "type": "boolean",
19617
+ "optional": true
19618
+ },
19619
+ {
19620
+ "name": "icon",
19621
+ "type": "FunctionComponent<{}>",
19622
+ "optional": true
19623
+ },
19624
+ {
19625
+ "name": "label",
19626
+ "type": "string",
19627
+ "optional": true
19628
+ },
19629
+ {
19630
+ "name": "modalTitle",
19631
+ "type": "string",
19632
+ "optional": true
19633
+ },
19634
+ {
19635
+ "name": "onChange",
19636
+ "type": "(id: string, pickerItem: MultiPickerItem<number>) => void",
19637
+ "optional": true
19638
+ },
19639
+ {
19640
+ "name": "onDiscard",
19641
+ "type": "() => void",
19642
+ "optional": true
19643
+ },
19644
+ {
19645
+ "name": "proceedButtonLabel",
19646
+ "type": "string",
19647
+ "optional": true
19648
+ },
19649
+ {
19650
+ "name": "selectedItemOffset",
19651
+ "type": "number",
19652
+ "optional": true
19653
+ }
19654
+ ],
19655
+ "renders": [],
19656
+ "hooks": [
19657
+ "useKosRegions",
19658
+ "useKosTime",
19659
+ "useKosTranslation"
19660
+ ],
19661
+ "tokens": []
18824
19662
  },
18825
19663
  {
18826
19664
  "name": "UtilitiesContainerProvider",
@@ -18925,292 +19763,1065 @@
18925
19763
  {
18926
19764
  "name": "useAbbreviation",
18927
19765
  "package": "@kosdev-code/kos-ddk-components",
18928
- "file": "src/hooks/text/useAbbreviation.tsx"
19766
+ "file": "src/hooks/text/useAbbreviation.tsx",
19767
+ "signature": "(str: string, enabled?: boolean): string",
19768
+ "params": [
19769
+ {
19770
+ "name": "str",
19771
+ "type": "string",
19772
+ "optional": false
19773
+ },
19774
+ {
19775
+ "name": "enabled",
19776
+ "type": "boolean",
19777
+ "optional": true
19778
+ }
19779
+ ],
19780
+ "returnType": "string"
18929
19781
  },
18930
19782
  {
18931
19783
  "name": "useComponentConfigurationContext",
18932
19784
  "package": "@kosdev-code/kos-ddk-components",
18933
- "file": "src/core/configuration/component-configuration-context.tsx"
19785
+ "file": "src/core/configuration/component-configuration-context.tsx",
19786
+ "signature": "(): ComponentConfigurationOptions",
19787
+ "params": [],
19788
+ "returnType": "ComponentConfigurationOptions",
19789
+ "returns": [
19790
+ {
19791
+ "name": "componentModeOverride",
19792
+ "type": "ComponentMode",
19793
+ "optional": true
19794
+ },
19795
+ {
19796
+ "name": "enableDialAnimation",
19797
+ "type": "boolean",
19798
+ "optional": true
19799
+ },
19800
+ {
19801
+ "name": "enableModalAnimation",
19802
+ "type": "boolean",
19803
+ "optional": true
19804
+ },
19805
+ {
19806
+ "name": "enableSidebarAnimation",
19807
+ "type": "boolean",
19808
+ "optional": true
19809
+ },
19810
+ {
19811
+ "name": "modalModeOverride",
19812
+ "type": "ModalMode",
19813
+ "optional": true
19814
+ }
19815
+ ]
18934
19816
  },
18935
19817
  {
18936
19818
  "name": "useExperience",
18937
19819
  "package": "@kosdev-code/kos-ddk-components",
18938
- "file": "src/core/experience/experience.tsx"
19820
+ "file": "src/core/experience/experience.tsx",
19821
+ "signature": "(id: string, experienceMap: ExperienceMap): Experience<Record<string, any>>",
19822
+ "params": [
19823
+ {
19824
+ "name": "id",
19825
+ "type": "string",
19826
+ "optional": false
19827
+ },
19828
+ {
19829
+ "name": "experienceMap",
19830
+ "type": "ExperienceMap",
19831
+ "optional": false
19832
+ }
19833
+ ],
19834
+ "returnType": "Experience<Record<string, any>>"
18939
19835
  },
18940
19836
  {
18941
19837
  "name": "useKeyboardToggle",
18942
19838
  "package": "@kosdev-code/kos-ddk-components",
18943
- "file": "src/tools/useKeyboardToggle.ts"
19839
+ "file": "src/tools/useKeyboardToggle.ts",
19840
+ "signature": "<T>({ defaultValue, key, modifiers, values, }: KeyboardToggleProps<T>): T",
19841
+ "params": [
19842
+ {
19843
+ "name": "options",
19844
+ "type": "KeyboardToggleProps<T>",
19845
+ "optional": false,
19846
+ "fields": [
19847
+ {
19848
+ "name": "defaultValue",
19849
+ "type": "T",
19850
+ "optional": false
19851
+ },
19852
+ {
19853
+ "name": "key",
19854
+ "type": "string",
19855
+ "optional": true
19856
+ },
19857
+ {
19858
+ "name": "modifiers",
19859
+ "type": "{ altKey?: boolean; ctrlKey?: boolean; shiftKey?: boolean; }",
19860
+ "optional": true
19861
+ },
19862
+ {
19863
+ "name": "values",
19864
+ "type": "T[]",
19865
+ "optional": false
19866
+ }
19867
+ ]
19868
+ }
19869
+ ],
19870
+ "returnType": "T"
18944
19871
  },
18945
19872
  {
18946
19873
  "name": "useNavigate",
18947
19874
  "package": "@kosdev-code/kos-ddk-components",
18948
- "file": "src/hooks/router/useNavigate.tsx"
19875
+ "file": "src/hooks/router/useNavigate.tsx",
19876
+ "signature": "(): NavigateFunction",
19877
+ "params": [],
19878
+ "returnType": "NavigateFunction"
18949
19879
  },
18950
19880
  {
18951
19881
  "name": "useUtilityModal",
18952
19882
  "package": "@kosdev-code/kos-ddk-components",
18953
- "file": "src/components/modal/utility-modal/use-utility-modal.tsx"
19883
+ "file": "src/components/modal/utility-modal/use-utility-modal.tsx",
19884
+ "description": "The modal a utility experience renders in, for the component mode the DDK host\nruns in: the props for `Modal` and `Header`, and the closing mechanics.",
19885
+ "signature": "({ onComplete, onClose, layout, onBack, showBack, backButtonLabel, closeButtonLabel, }?: UseUtilityModalOptions): UtilityModal",
19886
+ "params": [
19887
+ {
19888
+ "name": "options",
19889
+ "type": "UseUtilityModalOptions",
19890
+ "optional": true,
19891
+ "fields": [
19892
+ {
19893
+ "name": "backButtonLabel",
19894
+ "type": "string",
19895
+ "optional": true
19896
+ },
19897
+ {
19898
+ "name": "closeButtonLabel",
19899
+ "type": "string",
19900
+ "optional": true
19901
+ },
19902
+ {
19903
+ "name": "layout",
19904
+ "type": "UtilityModalLayout",
19905
+ "optional": true
19906
+ },
19907
+ {
19908
+ "name": "onBack",
19909
+ "type": "() => void",
19910
+ "optional": true,
19911
+ "description": "Steps back inside the utility: the header's back button in standard mode."
19912
+ },
19913
+ {
19914
+ "name": "onClose",
19915
+ "type": "() => void",
19916
+ "optional": true,
19917
+ "description": "Runs when the modal starts to close, before `onComplete` (reset models here)."
19918
+ },
19919
+ {
19920
+ "name": "onComplete",
19921
+ "type": "() => void",
19922
+ "optional": true,
19923
+ "description": "The utility experience's `onComplete`: called once the modal has closed."
19924
+ },
19925
+ {
19926
+ "name": "showBack",
19927
+ "type": "boolean",
19928
+ "optional": true,
19929
+ "description": "Whether the utility can step back now; defaults to whether `onBack` is set."
19930
+ }
19931
+ ]
19932
+ }
19933
+ ],
19934
+ "returnType": "UtilityModal",
19935
+ "returns": [
19936
+ {
19937
+ "name": "close",
19938
+ "type": "() => void",
19939
+ "optional": false,
19940
+ "description": "Closes the modal; `onComplete` runs when its exit transition ends."
19941
+ },
19942
+ {
19943
+ "name": "headerProps",
19944
+ "type": "Omit<HeaderProps, \"title\" | \"subtitle\">",
19945
+ "optional": false,
19946
+ "description": "Spread on `Header`, then set its `title` and `subtitle`."
19947
+ },
19948
+ {
19949
+ "name": "isCompact",
19950
+ "type": "boolean",
19951
+ "optional": false
19952
+ },
19953
+ {
19954
+ "name": "modalProps",
19955
+ "type": "Omit<ModalProps, \"children\">",
19956
+ "optional": false,
19957
+ "description": "Spread on `Modal`."
19958
+ },
19959
+ {
19960
+ "name": "showFooterBack",
19961
+ "type": "boolean",
19962
+ "optional": false,
19963
+ "description": "Compact mode has no header back button: render a Back button in the footer."
19964
+ }
19965
+ ]
18954
19966
  },
18955
19967
  {
18956
19968
  "name": "useViewExperience",
18957
19969
  "package": "@kosdev-code/kos-ddk-components",
18958
- "file": "src/core/experience/view-experience.ts"
19970
+ "file": "src/core/experience/view-experience.ts",
19971
+ "signature": "(id?: string, experienceMap?: ViewExperienceMap): Experience",
19972
+ "params": [
19973
+ {
19974
+ "name": "id",
19975
+ "type": "string",
19976
+ "optional": true
19977
+ },
19978
+ {
19979
+ "name": "experienceMap",
19980
+ "type": "ViewExperienceMap",
19981
+ "optional": true
19982
+ }
19983
+ ],
19984
+ "returnType": "Experience"
18959
19985
  },
18960
19986
  {
18961
19987
  "name": "useViewExperienceListMap",
18962
19988
  "package": "@kosdev-code/kos-ddk-components",
18963
- "file": "src/core/experience/view-experience.ts"
19989
+ "file": "src/core/experience/view-experience.ts",
19990
+ "signature": "(viewExperienceList: ViewExperience[]): ViewExperienceMap",
19991
+ "params": [
19992
+ {
19993
+ "name": "viewExperienceList",
19994
+ "type": "ViewExperience[]",
19995
+ "optional": false
19996
+ }
19997
+ ],
19998
+ "returnType": "ViewExperienceMap"
18964
19999
  },
18965
20000
  {
18966
20001
  "name": "useAgitationControl",
18967
20002
  "package": "@kosdev-code/kos-ddk-model-components",
18968
- "file": "src/hooks/agitation-control/use-agitation-control.ts"
20003
+ "file": "src/hooks/agitation-control/use-agitation-control.ts",
20004
+ "signature": "(): { model: AgitationControlModel; ready: boolean; error: string; status: { model: AgitationControlModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20005
+ "params": [],
20006
+ "returnType": "{ model: AgitationControlModel; ready: boolean; error: string; status: { model: AgitationControlModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
18969
20007
  },
18970
20008
  {
18971
20009
  "name": "useAnimation",
18972
20010
  "package": "@kosdev-code/kos-ddk-model-components",
18973
- "file": "src/hooks/animation/use-animation.ts"
20011
+ "file": "src/hooks/animation/use-animation.ts",
20012
+ "signature": "(): { model: AnimationModel; ready: boolean; error: string; status: { model: AnimationModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20013
+ "params": [],
20014
+ "returnType": "{ model: AnimationModel; ready: boolean; error: string; status: { model: AnimationModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
18974
20015
  },
18975
20016
  {
18976
20017
  "name": "useAnimationContext",
18977
20018
  "package": "@kosdev-code/kos-ddk-model-components",
18978
- "file": "src/contexts/animation/animation-provider.tsx"
20019
+ "file": "src/contexts/animation/animation-provider.tsx",
20020
+ "signature": "(): AnimationType",
20021
+ "params": [],
20022
+ "returnType": "AnimationType",
20023
+ "returns": [
20024
+ {
20025
+ "name": "model",
20026
+ "type": "AnimationModel",
20027
+ "optional": true
20028
+ }
20029
+ ]
18979
20030
  },
18980
20031
  {
18981
20032
  "name": "useApplication",
18982
20033
  "package": "@kosdev-code/kos-ddk-model-components",
18983
- "file": "src/hooks/application/use-application.ts"
20034
+ "file": "src/hooks/application/use-application.ts",
20035
+ "signature": "(): { model: ApplicationModel; ready: boolean; error: string; status: { model: ApplicationModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20036
+ "params": [],
20037
+ "returnType": "{ model: ApplicationModel; ready: boolean; error: string; status: { model: ApplicationModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
18984
20038
  },
18985
20039
  {
18986
20040
  "name": "useApplicationContext",
18987
20041
  "package": "@kosdev-code/kos-ddk-model-components",
18988
- "file": "src/contexts/application/application-provider.tsx"
20042
+ "file": "src/contexts/application/application-provider.tsx",
20043
+ "signature": "(): ApplicationType",
20044
+ "params": [],
20045
+ "returnType": "ApplicationType",
20046
+ "returns": [
20047
+ {
20048
+ "name": "model",
20049
+ "type": "ApplicationModel",
20050
+ "optional": true
20051
+ }
20052
+ ]
18989
20053
  },
18990
20054
  {
18991
20055
  "name": "useCarbWater",
18992
20056
  "package": "@kosdev-code/kos-ddk-model-components",
18993
- "file": "src/hooks/carb-water/use-carb-water.ts"
20057
+ "file": "src/hooks/carb-water/use-carb-water.ts",
20058
+ "signature": "(): { model: CarbWaterModel; ready: boolean; error: string; status: { model: CarbWaterModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20059
+ "params": [],
20060
+ "returnType": "{ model: CarbWaterModel; ready: boolean; error: string; status: { model: CarbWaterModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
18994
20061
  },
18995
20062
  {
18996
20063
  "name": "useCombinedActions",
18997
20064
  "package": "@kosdev-code/kos-ddk-model-components",
18998
- "file": "src/hooks/actions/use-combined-actions.ts"
20065
+ "file": "src/hooks/actions/use-combined-actions.ts",
20066
+ "signature": "(actions: CombinedAction[]): (Action | ActionLabels)[]",
20067
+ "params": [
20068
+ {
20069
+ "name": "actions",
20070
+ "type": "CombinedAction[]",
20071
+ "optional": false
20072
+ }
20073
+ ],
20074
+ "returnType": "(Action | ActionLabels)[]"
18999
20075
  },
19000
20076
  {
19001
20077
  "name": "useCopyLogs",
19002
20078
  "package": "@kosdev-code/kos-ddk-model-components",
19003
- "file": "src/hooks/copy-logs/use-copy-logs.ts"
20079
+ "file": "src/hooks/copy-logs/use-copy-logs.ts",
20080
+ "signature": "(): { model: CopyLogsModel; ready: boolean; error: string; status: { model: CopyLogsModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20081
+ "params": [],
20082
+ "returnType": "{ model: CopyLogsModel; ready: boolean; error: string; status: { model: CopyLogsModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19004
20083
  },
19005
20084
  {
19006
20085
  "name": "useDashboardOperations",
19007
20086
  "package": "@kosdev-code/kos-ddk-model-components",
19008
- "file": "src/hooks/dashboard-operations/use-dashboard-operations.ts"
20087
+ "file": "src/hooks/dashboard-operations/use-dashboard-operations.ts",
20088
+ "signature": "(): { model: DashboardOperationsModel; ready: boolean; error: string; status: { model: DashboardOperationsModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20089
+ "params": [],
20090
+ "returnType": "{ model: DashboardOperationsModel; ready: boolean; error: string; status: { model: DashboardOperationsModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19009
20091
  },
19010
20092
  {
19011
20093
  "name": "useDashboardOperationsContext",
19012
20094
  "package": "@kosdev-code/kos-ddk-model-components",
19013
- "file": "src/contexts/dashboard-operations/dashboard-operations-provider.tsx"
20095
+ "file": "src/contexts/dashboard-operations/dashboard-operations-provider.tsx",
20096
+ "signature": "(): DashboardOperationsType",
20097
+ "params": [],
20098
+ "returnType": "DashboardOperationsType",
20099
+ "returns": [
20100
+ {
20101
+ "name": "model",
20102
+ "type": "DashboardOperationsModel",
20103
+ "optional": true
20104
+ }
20105
+ ]
19014
20106
  },
19015
20107
  {
19016
20108
  "name": "useDispenserInfo",
19017
20109
  "package": "@kosdev-code/kos-ddk-model-components",
19018
- "file": "src/hooks/dispenser-info/use-dispenser-info.ts"
20110
+ "file": "src/hooks/dispenser-info/use-dispenser-info.ts",
20111
+ "signature": "(): { model: DispenserInfoModel; ready: boolean; error: string; status: { model: DispenserInfoModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20112
+ "params": [],
20113
+ "returnType": "{ model: DispenserInfoModel; ready: boolean; error: string; status: { model: DispenserInfoModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19019
20114
  },
19020
20115
  {
19021
20116
  "name": "useDispenserInfoContext",
19022
20117
  "package": "@kosdev-code/kos-ddk-model-components",
19023
- "file": "src/contexts/dispenser-info/dispenser-info-provider.tsx"
20118
+ "file": "src/contexts/dispenser-info/dispenser-info-provider.tsx",
20119
+ "signature": "(): DispenserInfoType",
20120
+ "params": [],
20121
+ "returnType": "DispenserInfoType",
20122
+ "returns": [
20123
+ {
20124
+ "name": "model",
20125
+ "type": "DispenserInfoModel",
20126
+ "optional": true
20127
+ }
20128
+ ]
19024
20129
  },
19025
20130
  {
19026
20131
  "name": "useDoor",
19027
20132
  "package": "@kosdev-code/kos-ddk-model-components",
19028
- "file": "src/hooks/door/use-door.ts"
20133
+ "file": "src/hooks/door/use-door.ts",
20134
+ "signature": "(id: string): { model: DoorModel; ready: boolean; error: string; status: { model: DoorModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20135
+ "params": [
20136
+ {
20137
+ "name": "id",
20138
+ "type": "string",
20139
+ "optional": false
20140
+ }
20141
+ ],
20142
+ "returnType": "{ model: DoorModel; ready: boolean; error: string; status: { model: DoorModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19029
20143
  },
19030
20144
  {
19031
20145
  "name": "useFutureContainer",
19032
20146
  "package": "@kosdev-code/kos-ddk-model-components",
19033
- "file": "src/hooks/future/use-future-container.ts"
20147
+ "file": "src/hooks/future/use-future-container.ts",
20148
+ "signature": "<T extends Record<string, any> = any>(futureContainer?: FutureContainer<T>): { future: IFutureModel<T>; clearFuture: () => void; success: boolean; failure: boolean; }",
20149
+ "params": [
20150
+ {
20151
+ "name": "futureContainer",
20152
+ "type": "FutureContainer<T>",
20153
+ "optional": true
20154
+ }
20155
+ ],
20156
+ "returnType": "{ future: IFutureModel<T>; clearFuture: () => void; success: boolean; failure: boolean; }",
20157
+ "returns": [
20158
+ {
20159
+ "name": "clearFuture",
20160
+ "type": "() => void",
20161
+ "optional": false
20162
+ },
20163
+ {
20164
+ "name": "failure",
20165
+ "type": "boolean",
20166
+ "optional": false
20167
+ },
20168
+ {
20169
+ "name": "future",
20170
+ "type": "IFutureModel<T>",
20171
+ "optional": false
20172
+ },
20173
+ {
20174
+ "name": "success",
20175
+ "type": "boolean",
20176
+ "optional": false
20177
+ }
20178
+ ]
19034
20179
  },
19035
20180
  {
19036
20181
  "name": "useHolderContent",
19037
20182
  "package": "@kosdev-code/kos-ddk-model-components",
19038
- "file": "src/hooks/holders/use-holder-content.tsx"
20183
+ "file": "src/hooks/holders/use-holder-content.tsx",
20184
+ "signature": "(holder: HolderModel<any>, actionFactory?: HolderContentFactory): { HolderContent: FunctionComponent<Props>; modalOptions?: Omit<ModalProps, \"children\">; }",
20185
+ "params": [
20186
+ {
20187
+ "name": "holder",
20188
+ "type": "HolderModel<any>",
20189
+ "optional": false
20190
+ },
20191
+ {
20192
+ "name": "actionFactory",
20193
+ "type": "HolderContentFactory",
20194
+ "optional": true
20195
+ }
20196
+ ],
20197
+ "returnType": "{ HolderContent: FunctionComponent<Props>; modalOptions?: Omit<ModalProps, \"children\">; }",
20198
+ "returns": [
20199
+ {
20200
+ "name": "HolderContent",
20201
+ "type": "FunctionComponent<Props>",
20202
+ "optional": false
20203
+ },
20204
+ {
20205
+ "name": "modalOptions",
20206
+ "type": "Omit<ModalProps, \"children\">",
20207
+ "optional": true
20208
+ }
20209
+ ]
19039
20210
  },
19040
20211
  {
19041
20212
  "name": "useHolderExperience",
19042
20213
  "package": "@kosdev-code/kos-ddk-model-components",
19043
- "file": "src/hooks/holder-experience/holder-experience.tsx"
20214
+ "file": "src/hooks/holder-experience/holder-experience.tsx",
20215
+ "signature": "(holder: HolderModel<any>, pump?: PumpModel<any>): { holderExperience: Element; setHolderExperience: Dispatch<SetStateAction<\"agitate\" | \"calibrate\" | \"calibrateSPM\" | \"diagnostics\" | \"replace-pump\" | \"rfid-override\" | \"replace-line\">>; currentExperienceId: \"agitate\" | \"calibrate\" | \"calibrateSPM\" | \"diagnostics\" | \"replace-pump\" | \"rfid-override\" | \"replace-line\"; }",
20216
+ "params": [
20217
+ {
20218
+ "name": "holder",
20219
+ "type": "HolderModel<any>",
20220
+ "optional": false
20221
+ },
20222
+ {
20223
+ "name": "pump",
20224
+ "type": "PumpModel<any>",
20225
+ "optional": true
20226
+ }
20227
+ ],
20228
+ "returnType": "{ holderExperience: Element; setHolderExperience: Dispatch<SetStateAction<\"agitate\" | \"calibrate\" | \"calibrateSPM\" | \"diagnostics\" | \"replace-pump\" | \"rfid-override\" | \"replace-line\">>; currentExperienceId: \"agitate\" | \"calibrate\" | \"calibrateSPM\" | \"diagnostics\" | \"replace-pump\" | \"rfid-override\" | \"replace-line\"; }",
20229
+ "returns": [
20230
+ {
20231
+ "name": "currentExperienceId",
20232
+ "type": "\"agitate\" | \"calibrate\" | \"calibrateSPM\" | \"diagnostics\" | \"replace-pump\" | \"rfid-override\" | \"replace-line\"",
20233
+ "optional": false
20234
+ },
20235
+ {
20236
+ "name": "holderExperience",
20237
+ "type": "Element",
20238
+ "optional": false
20239
+ },
20240
+ {
20241
+ "name": "setHolderExperience",
20242
+ "type": "Dispatch<SetStateAction<\"agitate\" | \"calibrate\" | \"calibrateSPM\" | \"diagnostics\" | \"replace-pump\" | \"rfid-override\" | \"replace-line\">>",
20243
+ "optional": false
20244
+ }
20245
+ ]
19044
20246
  },
19045
20247
  {
19046
20248
  "name": "useIngredientSummary",
19047
20249
  "package": "@kosdev-code/kos-ddk-model-components",
19048
- "file": "src/hooks/ingredient-summary/use-ingredient-summary.ts"
20250
+ "file": "src/hooks/ingredient-summary/use-ingredient-summary.ts",
20251
+ "signature": "(): { model: IngredientSummaryModel; ready: boolean; error: string; status: { model: IngredientSummaryModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20252
+ "params": [],
20253
+ "returnType": "{ model: IngredientSummaryModel; ready: boolean; error: string; status: { model: IngredientSummaryModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19049
20254
  },
19050
20255
  {
19051
20256
  "name": "useIngredientSummaryContext",
19052
20257
  "package": "@kosdev-code/kos-ddk-model-components",
19053
- "file": "src/contexts/ingredient-summary/ingredient-summary-provider.tsx"
20258
+ "file": "src/contexts/ingredient-summary/ingredient-summary-provider.tsx",
20259
+ "signature": "(): IngredientSummaryType",
20260
+ "params": [],
20261
+ "returnType": "IngredientSummaryType",
20262
+ "returns": [
20263
+ {
20264
+ "name": "model",
20265
+ "type": "IngredientSummaryModel",
20266
+ "optional": true
20267
+ }
20268
+ ]
19054
20269
  },
19055
20270
  {
19056
20271
  "name": "useMacroAssignment",
19057
20272
  "package": "@kosdev-code/kos-ddk-model-components",
19058
- "file": "src/hooks/macro-assignment/use-macro-assignment.ts"
20273
+ "file": "src/hooks/macro-assignment/use-macro-assignment.ts",
20274
+ "signature": "(): { model: MacroAssignmentModel; ready: boolean; error: string; status: { model: MacroAssignmentModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20275
+ "params": [],
20276
+ "returnType": "{ model: MacroAssignmentModel; ready: boolean; error: string; status: { model: MacroAssignmentModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19059
20277
  },
19060
20278
  {
19061
20279
  "name": "useMacroAssignmentContext",
19062
20280
  "package": "@kosdev-code/kos-ddk-model-components",
19063
- "file": "src/contexts/macro-assignment/macro-assignment-provider.tsx"
20281
+ "file": "src/contexts/macro-assignment/macro-assignment-provider.tsx",
20282
+ "signature": "(): MacroAssignmentType",
20283
+ "params": [],
20284
+ "returnType": "MacroAssignmentType",
20285
+ "returns": [
20286
+ {
20287
+ "name": "model",
20288
+ "type": "MacroAssignmentModel",
20289
+ "optional": true
20290
+ }
20291
+ ]
19064
20292
  },
19065
20293
  {
19066
20294
  "name": "useNetworkTest",
19067
20295
  "package": "@kosdev-code/kos-ddk-model-components",
19068
- "file": "src/hooks/network-test/use-network-test.ts"
20296
+ "file": "src/hooks/network-test/use-network-test.ts",
20297
+ "signature": "(id: string): { model: NetworkTestModel; ready: boolean; error: string; status: { model: NetworkTestModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20298
+ "params": [
20299
+ {
20300
+ "name": "id",
20301
+ "type": "string",
20302
+ "optional": false
20303
+ }
20304
+ ],
20305
+ "returnType": "{ model: NetworkTestModel; ready: boolean; error: string; status: { model: NetworkTestModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19069
20306
  },
19070
20307
  {
19071
20308
  "name": "useNetworkTestContainer",
19072
20309
  "package": "@kosdev-code/kos-ddk-model-components",
19073
- "file": "src/hooks/network-test-container/use-network-test-container.ts"
20310
+ "file": "src/hooks/network-test-container/use-network-test-container.ts",
20311
+ "signature": "(): { model: NetworkTestContainerModel; ready: boolean; error: string; status: { model: NetworkTestContainerModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20312
+ "params": [],
20313
+ "returnType": "{ model: NetworkTestContainerModel; ready: boolean; error: string; status: { model: NetworkTestContainerModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19074
20314
  },
19075
20315
  {
19076
20316
  "name": "useNetworkTestContainerContext",
19077
20317
  "package": "@kosdev-code/kos-ddk-model-components",
19078
- "file": "src/contexts/network-test-container/network-test-container-provider.tsx"
20318
+ "file": "src/contexts/network-test-container/network-test-container-provider.tsx",
20319
+ "signature": "(): NetworkTestContainerType",
20320
+ "params": [],
20321
+ "returnType": "NetworkTestContainerType",
20322
+ "returns": [
20323
+ {
20324
+ "name": "model",
20325
+ "type": "NetworkTestContainerModel",
20326
+ "optional": true
20327
+ }
20328
+ ]
19079
20329
  },
19080
20330
  {
19081
20331
  "name": "useNetworkTestContext",
19082
20332
  "package": "@kosdev-code/kos-ddk-model-components",
19083
- "file": "src/contexts/network-test/network-test-provider.tsx"
20333
+ "file": "src/contexts/network-test/network-test-provider.tsx",
20334
+ "signature": "(): NetworkTestType",
20335
+ "params": [],
20336
+ "returnType": "NetworkTestType",
20337
+ "returns": [
20338
+ {
20339
+ "name": "model",
20340
+ "type": "NetworkTestModel",
20341
+ "optional": true
20342
+ }
20343
+ ]
19084
20344
  },
19085
20345
  {
19086
20346
  "name": "useNutritiveSweetener",
19087
20347
  "package": "@kosdev-code/kos-ddk-model-components",
19088
- "file": "src/hooks/nutritive-sweetener/use-nutritive-sweetener.ts"
20348
+ "file": "src/hooks/nutritive-sweetener/use-nutritive-sweetener.ts",
20349
+ "signature": "(): { model: NutritiveSweetenerModel; ready: boolean; error: string; status: { model: NutritiveSweetenerModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20350
+ "params": [],
20351
+ "returnType": "{ model: NutritiveSweetenerModel; ready: boolean; error: string; status: { model: NutritiveSweetenerModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19089
20352
  },
19090
20353
  {
19091
20354
  "name": "usePlainWater",
19092
20355
  "package": "@kosdev-code/kos-ddk-model-components",
19093
- "file": "src/hooks/plain-water/use-plain-water.ts"
20356
+ "file": "src/hooks/plain-water/use-plain-water.ts",
20357
+ "signature": "(): { model: PlainWaterModel; ready: boolean; error: string; status: { model: PlainWaterModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20358
+ "params": [],
20359
+ "returnType": "{ model: PlainWaterModel; ready: boolean; error: string; status: { model: PlainWaterModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19094
20360
  },
19095
20361
  {
19096
20362
  "name": "usePluginExtensions",
19097
20363
  "package": "@kosdev-code/kos-ddk-model-components",
19098
- "file": "src/hooks/plugin-extensions/use-plugin-extensions.ts"
20364
+ "file": "src/hooks/plugin-extensions/use-plugin-extensions.ts",
20365
+ "signature": "<T extends Record<string, any> = Record<string, any>>(context?: T): { getExtensions: (extensionPointId: string) => PluginExtension[]; }",
20366
+ "params": [
20367
+ {
20368
+ "name": "context",
20369
+ "type": "T",
20370
+ "optional": true
20371
+ }
20372
+ ],
20373
+ "returnType": "{ getExtensions: (extensionPointId: string) => PluginExtension[]; }",
20374
+ "returns": [
20375
+ {
20376
+ "name": "getExtensions",
20377
+ "type": "(extensionPointId: string) => PluginExtension[]",
20378
+ "optional": false
20379
+ }
20380
+ ]
19099
20381
  },
19100
20382
  {
19101
20383
  "name": "usePumpAction",
19102
20384
  "package": "@kosdev-code/kos-ddk-model-components",
19103
- "file": "src/hooks/actions/use-pump-action.ts"
20385
+ "file": "src/hooks/actions/use-pump-action.ts",
20386
+ "description": "React hook for executing pump maintenance and diagnostic actions.\n\nThis hook provides a unified interface for triggering various pump operations\nincluding calibration, priming, purging, and flow tests. It manages action\nstate, progress tracking via KOS Futures, and internationalized labels.\n\nThe hook supports optional intent containers, returning safe defaults when\nno container is provided. This allows components to render UI before models\nare fully loaded, supporting progressive enhancement patterns.\n\nAvailable pump actions:\n- `calibrate` - Calibrate pump flow rate\n- `prime` - Prime the pump line\n- `purge` - Purge the pump line\n- `flush` - Flush the system\n- `low-flow-test` - Run low flow rate test\n- `high-flow-test` - Run high flow rate test\n- `fixed-45` - Fixed 45oz pour test\n- `hold-to-pour` - Hold-to-pour operation\n- `manual-override` - Manual pump override\n- `msv-reset` - MSV reset operation",
20387
+ "signature": "(intentContainer?: IntentAware, actionFactory?: Factory): PumpActionResponse",
20388
+ "params": [
20389
+ {
20390
+ "name": "intentContainer",
20391
+ "type": "IntentAware",
20392
+ "optional": true
20393
+ },
20394
+ {
20395
+ "name": "actionFactory",
20396
+ "type": "Factory",
20397
+ "optional": true
20398
+ }
20399
+ ],
20400
+ "returnType": "PumpActionResponse"
19104
20401
  },
19105
20402
  {
19106
20403
  "name": "usePumpCalibration",
19107
20404
  "package": "@kosdev-code/kos-ddk-model-components",
19108
- "file": "src/hooks/calibration/use-pump-calibration.ts"
20405
+ "file": "src/hooks/calibration/use-pump-calibration.ts",
20406
+ "description": "React hook for managing pump calibration operations and state.\n\nThis hook retrieves the calibration volume from the device, tracks whether\ncalibration is possible, and provides an action handler for triggering\ncalibration operations. It combines volume resolution with the pump action\npattern for a complete calibration workflow.\n\nThe hook automatically:\n- Resolves the appropriate calibration volume from the device based on ingredient type\n- Updates the volume when the ingredient assignment changes\n- Tracks calibration readiness state (requires volume > 0 and assigned ingredient)\n- Provides action handlers integrated with the KOS Future system for progress tracking",
20407
+ "signature": "(intentContainer?: IntentAwareContainer): { calibrateVolume: number; canCalibrate: boolean; action: IntentAwareAction; handleAction: (actionId: PumpAction) => Promise<void>; }",
20408
+ "params": [
20409
+ {
20410
+ "name": "intentContainer",
20411
+ "type": "IntentAwareContainer",
20412
+ "optional": true
20413
+ }
20414
+ ],
20415
+ "returnType": "{ calibrateVolume: number; canCalibrate: boolean; action: IntentAwareAction; handleAction: (actionId: PumpAction) => Promise<void>; }",
20416
+ "returns": [
20417
+ {
20418
+ "name": "action",
20419
+ "type": "IntentAwareAction",
20420
+ "optional": false
20421
+ },
20422
+ {
20423
+ "name": "calibrateVolume",
20424
+ "type": "number",
20425
+ "optional": false
20426
+ },
20427
+ {
20428
+ "name": "canCalibrate",
20429
+ "type": "boolean",
20430
+ "optional": false
20431
+ },
20432
+ {
20433
+ "name": "handleAction",
20434
+ "type": "(actionId: PumpAction) => Promise<void>",
20435
+ "optional": false
20436
+ }
20437
+ ]
19109
20438
  },
19110
20439
  {
19111
20440
  "name": "useReboot",
19112
20441
  "package": "@kosdev-code/kos-ddk-model-components",
19113
- "file": "src/hooks/reboot/use-reboot.ts"
20442
+ "file": "src/hooks/reboot/use-reboot.ts",
20443
+ "signature": "(): { model: RebootModel; ready: boolean; error: string; status: { model: RebootModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20444
+ "params": [],
20445
+ "returnType": "{ model: RebootModel; ready: boolean; error: string; status: { model: RebootModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19114
20446
  },
19115
20447
  {
19116
20448
  "name": "useRebootContext",
19117
20449
  "package": "@kosdev-code/kos-ddk-model-components",
19118
- "file": "src/contexts/reboot/reboot-provider.tsx"
20450
+ "file": "src/contexts/reboot/reboot-provider.tsx",
20451
+ "signature": "(): RebootType",
20452
+ "params": [],
20453
+ "returnType": "RebootType",
20454
+ "returns": [
20455
+ {
20456
+ "name": "model",
20457
+ "type": "RebootModel",
20458
+ "optional": true
20459
+ }
20460
+ ]
19119
20461
  },
19120
20462
  {
19121
20463
  "name": "useSettings",
19122
20464
  "package": "@kosdev-code/kos-ddk-model-components",
19123
- "file": "src/hooks/settings/use-settings.ts"
20465
+ "file": "src/hooks/settings/use-settings.ts",
20466
+ "signature": "(): { model: SettingsModel; ready: boolean; error: string; status: { model: SettingsModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20467
+ "params": [],
20468
+ "returnType": "{ model: SettingsModel; ready: boolean; error: string; status: { model: SettingsModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19124
20469
  },
19125
20470
  {
19126
20471
  "name": "useSettingsContext",
19127
20472
  "package": "@kosdev-code/kos-ddk-model-components",
19128
- "file": "src/contexts/settings/settings-provider.tsx"
20473
+ "file": "src/contexts/settings/settings-provider.tsx",
20474
+ "signature": "(): SettingsType",
20475
+ "params": [],
20476
+ "returnType": "SettingsType",
20477
+ "returns": [
20478
+ {
20479
+ "name": "model",
20480
+ "type": "SettingsModel",
20481
+ "optional": true
20482
+ }
20483
+ ]
19129
20484
  },
19130
20485
  {
19131
20486
  "name": "useSetupStep",
19132
20487
  "package": "@kosdev-code/kos-ddk-model-components",
19133
- "file": "src/hooks/setup-step/use-setup-step.ts"
20488
+ "file": "src/hooks/setup-step/use-setup-step.ts",
20489
+ "signature": "(id: string): { model: SetupStepModel; ready: boolean; error: string; status: { model: SetupStepModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20490
+ "params": [
20491
+ {
20492
+ "name": "id",
20493
+ "type": "string",
20494
+ "optional": false
20495
+ }
20496
+ ],
20497
+ "returnType": "{ model: SetupStepModel; ready: boolean; error: string; status: { model: SetupStepModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19134
20498
  },
19135
20499
  {
19136
20500
  "name": "useSetupStepContainer",
19137
20501
  "package": "@kosdev-code/kos-ddk-model-components",
19138
- "file": "src/hooks/setup-step-container/use-setup-step-container.ts"
20502
+ "file": "src/hooks/setup-step-container/use-setup-step-container.ts",
20503
+ "signature": "(): { model: SetupStepContainerModel; ready: boolean; error: string; status: { model: SetupStepContainerModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20504
+ "params": [],
20505
+ "returnType": "{ model: SetupStepContainerModel; ready: boolean; error: string; status: { model: SetupStepContainerModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19139
20506
  },
19140
20507
  {
19141
20508
  "name": "useSetupStepContainerContext",
19142
20509
  "package": "@kosdev-code/kos-ddk-model-components",
19143
- "file": "src/contexts/setup-step-container/setup-step-container-provider.tsx"
20510
+ "file": "src/contexts/setup-step-container/setup-step-container-provider.tsx",
20511
+ "signature": "(): SetupStepContainerType",
20512
+ "params": [],
20513
+ "returnType": "SetupStepContainerType",
20514
+ "returns": [
20515
+ {
20516
+ "name": "model",
20517
+ "type": "SetupStepContainerModel",
20518
+ "optional": true
20519
+ }
20520
+ ]
19144
20521
  },
19145
20522
  {
19146
20523
  "name": "useSetupStepContext",
19147
20524
  "package": "@kosdev-code/kos-ddk-model-components",
19148
- "file": "src/contexts/setup-step/setup-step-provider.tsx"
20525
+ "file": "src/contexts/setup-step/setup-step-provider.tsx",
20526
+ "signature": "(): SetupStepType",
20527
+ "params": [],
20528
+ "returnType": "SetupStepType",
20529
+ "returns": [
20530
+ {
20531
+ "name": "model",
20532
+ "type": "SetupStepModel",
20533
+ "optional": true
20534
+ }
20535
+ ]
19149
20536
  },
19150
20537
  {
19151
20538
  "name": "useStagedChanges",
19152
20539
  "package": "@kosdev-code/kos-ddk-model-components",
19153
- "file": "src/components/config-prop-context/StagedChanges.tsx"
20540
+ "file": "src/components/config-prop-context/StagedChanges.tsx",
20541
+ "signature": "(): StagedChangesContextProps",
20542
+ "params": [],
20543
+ "returnType": "StagedChangesContextProps",
20544
+ "returns": [
20545
+ {
20546
+ "name": "clearStagedChanges",
20547
+ "type": "() => void",
20548
+ "optional": true
20549
+ },
20550
+ {
20551
+ "name": "getStagedChange",
20552
+ "type": "(key: string) => StagedChange",
20553
+ "optional": true
20554
+ },
20555
+ {
20556
+ "name": "saveChanges",
20557
+ "type": "() => Promise<void>",
20558
+ "optional": true
20559
+ },
20560
+ {
20561
+ "name": "updateStagedChange",
20562
+ "type": "(key: string, value: StagedChange) => void",
20563
+ "optional": true
20564
+ }
20565
+ ]
19154
20566
  },
19155
20567
  {
19156
20568
  "name": "useStart",
19157
20569
  "package": "@kosdev-code/kos-ddk-model-components",
19158
- "file": "src/hooks/start/use-start.ts"
20570
+ "file": "src/hooks/start/use-start.ts",
20571
+ "signature": "(): { model: StartModel; ready: boolean; error: string; status: { model: StartModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20572
+ "params": [],
20573
+ "returnType": "{ model: StartModel; ready: boolean; error: string; status: { model: StartModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19159
20574
  },
19160
20575
  {
19161
20576
  "name": "useTroubleAction",
19162
20577
  "package": "@kosdev-code/kos-ddk-model-components",
19163
- "file": "src/hooks/actions/use-trouble-action.ts"
20578
+ "file": "src/hooks/actions/use-trouble-action.ts",
20579
+ "signature": "(troubleAware: TroubleAware, troubleKey: string, actionFactory?: Factory): TroubleActionResponse",
20580
+ "params": [
20581
+ {
20582
+ "name": "troubleAware",
20583
+ "type": "TroubleAware",
20584
+ "optional": false
20585
+ },
20586
+ {
20587
+ "name": "troubleKey",
20588
+ "type": "string",
20589
+ "optional": false
20590
+ },
20591
+ {
20592
+ "name": "actionFactory",
20593
+ "type": "Factory",
20594
+ "optional": true
20595
+ }
20596
+ ],
20597
+ "returnType": "TroubleActionResponse"
19164
20598
  },
19165
20599
  {
19166
20600
  "name": "useTroubleActionState",
19167
20601
  "package": "@kosdev-code/kos-ddk-model-components",
19168
- "file": "src/hooks/trouble-action/use-trouble-action.ts"
20602
+ "file": "src/hooks/trouble-action/use-trouble-action.ts",
20603
+ "signature": "(): { model: TroubleActionModel; ready: boolean; error: string; status: { model: TroubleActionModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20604
+ "params": [],
20605
+ "returnType": "{ model: TroubleActionModel; ready: boolean; error: string; status: { model: TroubleActionModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19169
20606
  },
19170
20607
  {
19171
20608
  "name": "useTroubleData",
19172
20609
  "package": "@kosdev-code/kos-ddk-model-components",
19173
- "file": "src/hooks/troubles/use-trouble-data.ts"
20610
+ "file": "src/hooks/troubles/use-trouble-data.ts",
20611
+ "signature": "(trouble?: TroubleModel<any>): Record<string, any>",
20612
+ "params": [
20613
+ {
20614
+ "name": "trouble",
20615
+ "type": "TroubleModel<any>",
20616
+ "optional": true
20617
+ }
20618
+ ],
20619
+ "returnType": "Record<string, any>"
19174
20620
  },
19175
20621
  {
19176
20622
  "name": "useTroubleDecoration",
19177
20623
  "package": "@kosdev-code/kos-ddk-model-components",
19178
- "file": "src/hooks/troubles/use-trouble-decoration.ts"
20624
+ "file": "src/hooks/troubles/use-trouble-decoration.ts",
20625
+ "description": "Hook for applying visual decorations based on trouble states in KOS models.\n\nThis hook analyzes trouble states associated with a KOS data model and returns\nstyling properties that can be applied to UI components to visually indicate\ntrouble severity and status. It automatically determines appropriate background\nand text colors based on the highest priority trouble.",
20626
+ "signature": "(model?: IKosDataModel): { backgroundColor?: string; fontColor?: string; highestTrouble?: any; initialized?: boolean; troubleCount?: number; hasTroubles?: boolean; }",
20627
+ "params": [
20628
+ {
20629
+ "name": "model",
20630
+ "type": "IKosDataModel",
20631
+ "optional": true
20632
+ }
20633
+ ],
20634
+ "returnType": "{ backgroundColor?: string; fontColor?: string; highestTrouble?: any; initialized?: boolean; troubleCount?: number; hasTroubles?: boolean; }",
20635
+ "returns": [
20636
+ {
20637
+ "name": "backgroundColor",
20638
+ "type": "string",
20639
+ "optional": true,
20640
+ "description": "Background color derived from the highest priority trouble, undefined if no troubles"
20641
+ },
20642
+ {
20643
+ "name": "fontColor",
20644
+ "type": "string",
20645
+ "optional": true,
20646
+ "description": "Text color optimized for contrast against backgroundColor (white for dark backgrounds)"
20647
+ },
20648
+ {
20649
+ "name": "hasTroubles",
20650
+ "type": "boolean",
20651
+ "optional": true,
20652
+ "description": "Boolean flag indicating if any troubles are present"
20653
+ },
20654
+ {
20655
+ "name": "highestTrouble",
20656
+ "type": "any",
20657
+ "optional": true,
20658
+ "description": "Reference to the highest priority trouble model instance"
20659
+ },
20660
+ {
20661
+ "name": "initialized",
20662
+ "type": "boolean",
20663
+ "optional": true,
20664
+ "description": "Whether trouble data has been loaded and initialized"
20665
+ },
20666
+ {
20667
+ "name": "troubleCount",
20668
+ "type": "number",
20669
+ "optional": true,
20670
+ "description": "Total count of visible troubles after role-based filtering"
20671
+ }
20672
+ ]
19179
20673
  },
19180
20674
  {
19181
20675
  "name": "useTroubleVisibility",
19182
20676
  "package": "@kosdev-code/kos-ddk-model-components",
19183
- "file": "src/hooks/troubles/use-trouble-visibility.ts"
20677
+ "file": "src/hooks/troubles/use-trouble-visibility.ts",
20678
+ "signature": "({ troubleType, condition, }: Props): TroubleVisibility",
20679
+ "params": [
20680
+ {
20681
+ "name": "options",
20682
+ "type": "Props",
20683
+ "optional": false,
20684
+ "fields": [
20685
+ {
20686
+ "name": "condition",
20687
+ "type": "(trouble: TroubleModel<any>) => boolean",
20688
+ "optional": true
20689
+ },
20690
+ {
20691
+ "name": "troubleType",
20692
+ "type": "string",
20693
+ "optional": true
20694
+ }
20695
+ ]
20696
+ }
20697
+ ],
20698
+ "returnType": "TroubleVisibility"
19184
20699
  },
19185
20700
  {
19186
20701
  "name": "useUtilities",
19187
20702
  "package": "@kosdev-code/kos-ddk-model-components",
19188
- "file": "src/hooks/utilities/use-utilities.ts"
20703
+ "file": "src/hooks/utilities/use-utilities.ts",
20704
+ "signature": "(id: string): { model: UtilitiesModel; ready: boolean; error: string; status: { model: UtilitiesModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20705
+ "params": [
20706
+ {
20707
+ "name": "id",
20708
+ "type": "string",
20709
+ "optional": false
20710
+ }
20711
+ ],
20712
+ "returnType": "{ model: UtilitiesModel; ready: boolean; error: string; status: { model: UtilitiesModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19189
20713
  },
19190
20714
  {
19191
20715
  "name": "useUtilitiesContainer",
19192
20716
  "package": "@kosdev-code/kos-ddk-model-components",
19193
- "file": "src/hooks/utilities-container/use-utilities-container.ts"
20717
+ "file": "src/hooks/utilities-container/use-utilities-container.ts",
20718
+ "signature": "(): { model: UtilitiesContainerModel; ready: boolean; error: string; status: { model: UtilitiesContainerModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }",
20719
+ "params": [],
20720
+ "returnType": "{ model: UtilitiesContainerModel; ready: boolean; error: string; status: { model: UtilitiesContainerModel; ready: boolean; error: string; }; KosModelLoader: FunctionComponent<PropsWithChildren<ErrorBoundaryProps & KosModelLoaderProps>>; }"
19194
20721
  },
19195
20722
  {
19196
20723
  "name": "useUtilitiesContainerContext",
19197
20724
  "package": "@kosdev-code/kos-ddk-model-components",
19198
- "file": "src/contexts/utilities-container/utilities-container-provider.tsx"
20725
+ "file": "src/contexts/utilities-container/utilities-container-provider.tsx",
20726
+ "signature": "(): UtilitiesContainerType",
20727
+ "params": [],
20728
+ "returnType": "UtilitiesContainerType",
20729
+ "returns": [
20730
+ {
20731
+ "name": "model",
20732
+ "type": "UtilitiesContainerModel",
20733
+ "optional": true
20734
+ }
20735
+ ]
19199
20736
  },
19200
20737
  {
19201
20738
  "name": "useUtilitiesContext",
19202
20739
  "package": "@kosdev-code/kos-ddk-model-components",
19203
- "file": "src/contexts/utilities/utilities-provider.tsx"
20740
+ "file": "src/contexts/utilities/utilities-provider.tsx",
20741
+ "signature": "(): UtilitiesType",
20742
+ "params": [],
20743
+ "returnType": "UtilitiesType",
20744
+ "returns": [
20745
+ {
20746
+ "name": "model",
20747
+ "type": "UtilitiesModel",
20748
+ "optional": true
20749
+ }
20750
+ ]
19204
20751
  },
19205
20752
  {
19206
20753
  "name": "useViewExtensions",
19207
20754
  "package": "@kosdev-code/kos-ddk-model-components",
19208
- "file": "src/hooks/extensions/use-view-extensions.ts"
20755
+ "file": "src/hooks/extensions/use-view-extensions.ts",
20756
+ "signature": "({ defaultNamespace, extensionPoint, }: Props): { namespaces: any[]; t: TFunction; labelMap: {}; contributionMap: Record<string, any>; }",
20757
+ "params": [
20758
+ {
20759
+ "name": "options",
20760
+ "type": "Props",
20761
+ "optional": false,
20762
+ "fields": [
20763
+ {
20764
+ "name": "defaultNamespace",
20765
+ "type": "string",
20766
+ "optional": false
20767
+ },
20768
+ {
20769
+ "name": "extensionPoint",
20770
+ "type": "string",
20771
+ "optional": false
20772
+ }
20773
+ ]
20774
+ }
20775
+ ],
20776
+ "returnType": "{ namespaces: any[]; t: TFunction; labelMap: {}; contributionMap: Record<string, any>; }",
20777
+ "returns": [
20778
+ {
20779
+ "name": "contributionMap",
20780
+ "type": "Record<string, any>",
20781
+ "optional": false
20782
+ },
20783
+ {
20784
+ "name": "labelMap",
20785
+ "type": "{}",
20786
+ "optional": false
20787
+ },
20788
+ {
20789
+ "name": "namespaces",
20790
+ "type": "any[]",
20791
+ "optional": false
20792
+ },
20793
+ {
20794
+ "name": "t",
20795
+ "type": "TFunction",
20796
+ "optional": false
20797
+ }
20798
+ ]
19209
20799
  },
19210
20800
  {
19211
20801
  "name": "useVisibleTroubles",
19212
20802
  "package": "@kosdev-code/kos-ddk-model-components",
19213
- "file": "src/components/holders/use-visible-troubles.ts"
20803
+ "file": "src/components/holders/use-visible-troubles.ts",
20804
+ "signature": "(holder: TroubleAware): { visibleTroubles: TroubleModel<any>[]; initialized: boolean; }",
20805
+ "params": [
20806
+ {
20807
+ "name": "holder",
20808
+ "type": "TroubleAware",
20809
+ "optional": false
20810
+ }
20811
+ ],
20812
+ "returnType": "{ visibleTroubles: TroubleModel<any>[]; initialized: boolean; }",
20813
+ "returns": [
20814
+ {
20815
+ "name": "initialized",
20816
+ "type": "boolean",
20817
+ "optional": false
20818
+ },
20819
+ {
20820
+ "name": "visibleTroubles",
20821
+ "type": "TroubleModel<any>[]",
20822
+ "optional": false
20823
+ }
20824
+ ]
19214
20825
  }
19215
20826
  ],
19216
20827
  "resources": [
@@ -19219,14 +20830,14 @@
19219
20830
  "name": "ddk-index",
19220
20831
  "title": "KOS DDK reference index",
19221
20832
  "description": "Start here: the DDK extension points, component libraries and design system, and which tool or resource covers each.",
19222
- "body": "# KOS DDK reference\n\nA DDK plugin contributes to extension points in its `.kos.json` and renders DDK components inside them. Plugins compose components; the design tokens belong to the DDK app and its themes.\n\n## Extension points\n\n- ddk://extension-point/ddk.cui — CUI (Consumer User Interface), `contributes.cui`\n- ddk://extension-point/ddk.dashboard.detail — Dashboard Detail, `contributes.dashboardDetail`\n- ddk://extension-point/ddk.dashboard.macro-summary — Dashboard Macro Summary, `contributes.dashboardMacroSummary`\n- ddk://extension-point/ddk.dashboard.pump-detail — Dashboard Pump Detail, `contributes.dashboardPumpDetail`\n- ddk://extension-point/ddk.dashboard.pump-summary — Dashboard Pump Summary, `contributes.dashboardPumpSummary`\n- ddk://extension-point/ddk.dashboard.summary — Dashboard Summary, `contributes.dashboardSummary`\n- ddk://extension-point/ddk.nav.view — Navigation Views, `contributes.navViews`\n- ddk://extension-point/ddk.ncui.utilities — Utilities, `contributes.utilities`\n- ddk://extension-point/ddk.setup — Setup Steps, `contributes.setupStep`\n- ddk://extension-point/ddk.trouble.action — Trouble Actions, `contributes.troubleActions`\n\n## Components\n\n- `@kosdev-code/kos-ddk-components`: 161 components and styled parts\n- `@kosdev-code/kos-ddk-model-components`: 89 components and styled parts\n\nlist_ddk_components finds them; describe_ddk_component gives one's props, the components and hooks it uses, and every token it reads.\n\n## Design system\n\n- ddk://design/base — DDK DESIGN.md\n- ddk://design/flex-eu — DDK Flex EU DESIGN.md\n- ddk://design/compact — DDK Compact DESIGN.md\n\nChange tokens only to create a new component (component tokens) or a theme (semantic tokens).\n\n## Guides\n\n- ddk://guide/config-property-cards — Configuration property cards\n- ddk://guide/ddk-dev — Testing plugins against a running DDK\n- ddk://guide/getting-started — Getting started with the DDK CLI\n- ddk://guide/storybook — Developing DDK contributions in Storybook\n- ddk://guide/descriptor-project — NCUI descriptor projects\n\nfind_ddk_capability maps a need to the extension point, the component and the tool."
20833
+ "body": "# KOS DDK reference\n\nA DDK plugin contributes to extension points in its `.kos.json` and renders DDK components inside them. Plugins compose components; the design tokens belong to the DDK app and its themes.\n\n## Extension points\n\n- ddk://extension-point/ddk.cui — CUI (Consumer User Interface), `contributes.cui`\n- ddk://extension-point/ddk.dashboard.detail — Dashboard Detail, `contributes.dashboardDetail`\n- ddk://extension-point/ddk.dashboard.macro-summary — Dashboard Macro Summary, `contributes.dashboardMacroSummary`\n- ddk://extension-point/ddk.dashboard.pump-detail — Dashboard Pump Detail, `contributes.dashboardPumpDetail`\n- ddk://extension-point/ddk.dashboard.pump-summary — Dashboard Pump Summary, `contributes.dashboardPumpSummary`\n- ddk://extension-point/ddk.dashboard.summary — Dashboard Summary, `contributes.dashboardSummary`\n- ddk://extension-point/ddk.nav.view — Navigation Views, `contributes.navViews`\n- ddk://extension-point/ddk.ncui.utilities — Utilities, `contributes.utilities`\n- ddk://extension-point/ddk.setup — Setup Steps, `contributes.setupStep`\n- ddk://extension-point/ddk.trouble.action — Trouble Actions, `contributes.troubleActions`\n\n## Components\n\n- `@kosdev-code/kos-ddk-components`: 161 components and styled parts\n- `@kosdev-code/kos-ddk-model-components`: 90 components and styled parts\n\nlist_ddk_components finds them; describe_ddk_component gives one's props, the components and hooks it uses, and every token it reads.\n\n## Design system\n\n- ddk://design/base — DDK DESIGN.md\n- ddk://design/flex-eu — DDK Flex EU DESIGN.md\n- ddk://design/compact — DDK Compact DESIGN.md\n\nChange tokens only to create a new component (component tokens) or a theme (semantic tokens).\n\n## Guides\n\n- ddk://guide/config-property-cards — Configuration property cards\n- ddk://guide/ddk-dev — Testing plugins against a running DDK\n- ddk://guide/getting-started — Getting started with the DDK CLI\n- ddk://guide/storybook — Developing DDK contributions in Storybook\n- ddk://guide/descriptor-project — NCUI descriptor projects\n\nfind_ddk_capability maps a need to the extension point, the component and the tool."
19223
20834
  },
19224
20835
  {
19225
20836
  "uri": "ddk://guide/config-property-cards",
19226
20837
  "name": "ddk-guide-config-property-cards",
19227
20838
  "title": "Configuration property cards",
19228
- "description": "The ConfigProp* cards in kos-ddk-model-components that show and edit a KosConfigProperty, ConfigPropertyInput choosing a card from the schema type, and when cards write (immediately, or batched with StagedChangesProvider).",
19229
- "body": "# Configuration property cards\n\n`@kosdev-code/kos-ddk-model-components` has one card per kind of configuration value.\nEach takes a `configProperty` (a `KosConfigProperty`), reads its value with\n`useConfigProperty`, and writes it back with `configProperty.updateProperty`.\n\n| Card | Property | Renders |\n| ---- | -------- | ------- |\n| `ConfigPropToggleCard` | boolean | a toggle, Enabled / Disabled |\n| `ConfigPropSwitchCard` | string | a segmented switch (`SwitchCard`) over the `options` you pass |\n| `ConfigPropPickerCard` | enum, or a property with options | a picker (`PickerCard`) of the property's options |\n| `ConfigPropInputCard` | string or number | a text input with the property's unit; `displayOptions` `min`/`max` validate it |\n| `ConfigPropInputRangeCard` | int or double | a number input within its range |\n| `ConfigPropTimePickerCard` | a time of day, in seconds | a time picker |\n| `ConfigPropInfoCard` | string | the value, read-only |\n| `ConfigPropSingleInputEnableCard` | any, plus a boolean | one input that a toggle (`enabledConfigProperty`) enables |\n| `ConfigPropMultiInputEnableCard` | several, plus a boolean | several inputs behind one enabling toggle |\n\nThe cards take the props of the DDK card they wrap (`label`, `float`, `collapse` and so\non). Lay them out in a `TabContainer`, with a `SettingsSubheading` per group.\n\n## Letting the schema choose: ConfigPropertyInput\n\n`ConfigPropertyInput` renders the card for the property's `schemaType`: boolean → toggle,\nint and double → input range, String → input, enum → picker. Without a `label` it\ntranslates the property id in the `config-properties` namespace. In compact mode the input\nand picker cards take the compact style. Pass `factory` to map types to other cards.\n\n## When a card writes\n\nEach card writes its property as soon as it changes.\n\nFor an interaction whose edits must be applied together, wrap the page in\n`StagedChangesProvider` (or `withStagedChanges`). Cards that support staging then keep\nthe new value instead of writing it; `useStagedChanges()` gives `saveChanges()` to write\nevery staged value and `clearStagedChanges()` to drop them. `ConfigPropToggleCard` and\n`ConfigPropTimePickerCard` stage; the other cards write straight away even inside the\nprovider."
20839
+ "description": "The ConfigProp* cards in kos-ddk-model-components that show and edit a KosConfigProperty, which card fits each schema type (including an int with no min/max), and when cards write (immediately, or batched with StagedChangesProvider).",
20840
+ "body": "# Configuration property cards\n\n`@kosdev-code/kos-ddk-model-components` has one card per kind of configuration value.\nEach takes a `configProperty` (a `KosConfigProperty`), reads its value with\n`useConfigProperty`, and writes it back with `configProperty.updateProperty`.\n\n| Card | Property | Renders |\n| ---- | -------- | ------- |\n| `ConfigPropToggleCard` | boolean | a toggle, Enabled / Disabled |\n| `ConfigPropSwitchCard` | string | a segmented switch (`SwitchCard`) over the `options` you pass |\n| `ConfigPropPickerCard` | enum, or a property with options | a picker (`PickerCard`) of the property's options |\n| `ConfigPropInputCard` | string or number | a text input with the property's unit; `displayOptions` `min`/`max` validate it |\n| `ConfigPropInputRangeCard` | int or double | a number input within its range |\n| `ConfigPropTimePickerCard` | a time of day, in seconds | a time picker |\n| `ConfigPropInfoCard` | string | the value, read-only |\n| `ConfigPropSingleInputEnableCard` | any, plus a boolean | one input that a toggle (`enabledConfigProperty`) enables |\n| `ConfigPropMultiInputEnableCard` | several, plus a boolean | several inputs behind one enabling toggle |\n\nThe cards take the props of the DDK card they wrap (`describe_ddk_component` lists them,\ninherited ones included, and which are required). Pass a translated `label` to every\ncard; `ConfigPropInputCard` requires it, and only `ConfigPropInputRangeCard` falls back\nto translating the property id in the `config-properties` namespace. Lay them\nout in a `TabContainer`, with a `SettingsSubheading` per group.\n\n## Choosing a card from the schema\n\nRead the attribute's schema first (`describe_config_path` on the kos-device server): its\ntype and whether it declares `displayOptions` `min`/`max`.\n\n| Schema | Card |\n| ------ | ---- |\n| `boolean` | `ConfigPropToggleCard` |\n| enum, or a value with options | `ConfigPropPickerCard` |\n| `String` | `ConfigPropInputCard` with `hideUnits` |\n| `int` / `double` with `displayOptions` `min` and `max` | `ConfigPropInputRangeCard`, or `ConfigPropInputCard layout=\"num\"` |\n| `int` / `double` with no `min`/`max`, e.g. `{\"type\":\"int\"}` | `ConfigPropInputCard layout=\"num\"` with an `isValid` for the bounds |\n\n`ConfigPropInputRangeCard` passes the schema's `min`/`max` to `InputRangeCard`, which\nreplaces any `isValid` you pass and rejects an out-of-range value only when\n`minValueValidationText` and `maxValueValidationText` are set; with no `min`/`max` in the\nschema it accepts any number.\n\n`ConfigPropInputCard` runs your `isValid` first, then the schema's `min`/`max` (with the\nDDK's translated messages). `isValid` returns the error text to show, or `undefined`\nwhen the value is valid:\n\n <ConfigPropInputCard\n configProperty={shelf.ledRed}\n label={t(\"led.red\")}\n layout=\"num\"\n hideUnits\n isValid={(v) => (v && Number(v) > 255 ? t(\"led.invalidColour\") : undefined)}\n />\n\n`hideUnits` drops the unit the property carries; leave it off for values with a unit\n(ml, seconds). Use `layout=\"num\"` for numbers so the keypad is numeric.\n\n`ConfigPropertyInput`, which picks a card from the schema type, is not exported from the\npackage; choose the card yourself from the table above.\n\n## When a card writes\n\nEach card writes its property as soon as it changes.\n\nFor an interaction whose edits must be applied together, wrap the page in\n`StagedChangesProvider` (or `withStagedChanges`). Cards that support staging then keep\nthe new value instead of writing it; `useStagedChanges()` gives `saveChanges()` to write\nevery staged value and `clearStagedChanges()` to drop them. `ConfigPropToggleCard` and\n`ConfigPropTimePickerCard` stage; the other cards write straight away even inside the\nprovider."
19230
20841
  },
19231
20842
  {
19232
20843
  "uri": "ddk://guide/ddk-dev",
@@ -19240,14 +20851,14 @@
19240
20851
  "name": "ddk-guide-getting-started",
19241
20852
  "title": "Getting started with the DDK CLI",
19242
20853
  "description": "Installing kos-ddk-cli in a workspace or globally, checking kosui loads it, working from a repo root, and installing the kos-ddk agent plugin and MCP server.",
19243
- "body": "# Getting started with the DDK CLI\n\n`@kosdev-code/kos-ddk-cli` is a `kosui` extension: it adds the `ddk:*` commands to the\n`kosui` CLI and ships the `kos-ddk-tools` agent plugin. It has no CLI of its own.\n\n## 1. kosui\n\n`kosui` (`@kosdev-code/kos-ui-cli`) is installed globally, at 3.0.31 or later.\n\n```sh\nnpm install -g @kosdev-code/kos-ui-cli\nkosui cli:update\n```\n\n## 2. Install the extension\n\nEither in the workspace, which pins the version with the project:\n\n```sh\ncd <repo>/ui\nnpm install -D @kosdev-code/kos-ddk-cli\n```\n\nor globally, beside `kosui`, which adds the commands in every workspace:\n\n```sh\nnpm install -g @kosdev-code/kos-ddk-cli\n```\n\n`kosui` looks in the workspace's `package.json` dependencies first, then beside its own\nglobal install. When both have it, the workspace copy is used.\n\n`latest` is the released version. `@dev` is the build of the DDK's `main` branch, published\non every push:\n\n```sh\nnpm install -D @kosdev-code/kos-ddk-cli@dev\n```\n\nThe DDK libraries' dev builds depend on each other at one exact version, so install them\ntogether; `--no-save` keeps `package.json` and the lockfile on the release ranges:\n\n```sh\nnpm install --no-save @kosdev-code/kos-ddk@dev @kosdev-code/kos-ddk-components@dev \\\n @kosdev-code/kos-ddk-model-components@dev @kosdev-code/kos-ddk-models@dev \\\n @kosdev-code/kos-ddk-story-containers@dev @kosdev-code/kos-ddk-styles@dev\n```\n\n## 3. Check kosui loads it\n\n```sh\nkosui extensions\nkosui help\n```\n\n`kosui extensions` names the package, its version, where it came from (`[workspace]` or\n`[global]`), its status and the commands it adds. `kosui help` lists them under `ddk:`.\n\nA workspace can turn it off in its `.kos.json`:\n\n```json\n{ \"cli\": { \"disabledExtensions\": [\"@kosdev-code/kos-ddk-cli\"] } }\n```\n\n## 4. Repo root or ui workspace\n\nEvery command and the MCP server work from the ui workspace (the directory with\n`nx.json`) and from a polyglot repo root: when the repo root's `.kos.json` (written by\n`kosui repo`) names a ui workspace in `workspaces.ui`, `kosui` and the server use that\nworkspace. An agent started at the repo root, to work across the backend and the UI,\ngets the same commands and tools.\n\n## 5. Agent plugin and MCP server\n\n```sh\nkosui ddk:agent-install --client claude --scope user\n```\n\nThis registers the package's `kos-ddk-tools` plugin with the agent client and installs\nit; the plugin runs the `kos-ddk` MCP server. `--scope user` installs it for every repo,\n`--scope repo` for the current checkout only. Without `--client` it detects the client.\n\nThe server is one self-contained file inside the package, so it does not depend on the\nworkspace's `node_modules`. It is registered from wherever the package is installed, in\nthe workspace or globally.\n\nRun `ddk:agent-install` again after upgrading or reinstalling the package: the client\nkeeps its copy of the plugin until the registration is refreshed.\n\n## 6. Next\n\n- `kosui ddk:plugin-project --name my-plugin` creates a DDK plugin project under\n `plugins/` (`--directory` changes the folder). It tests against the `kosdev.ddk`\n plugin context and registers with the workspace host serving that context, or with\n `--host`; a workspace without a DDK host registers it with none. The contribution\n commands in the README add to it.\n- `kosui ddk:descriptor-project --name my-ncui --layout standard --ice true` (or `compact`) creates the\n NCUI descriptor project a new utility, setup step or navigation view is listed in;\n pass `--descriptorProject my-ncui` to `ddk:utility`, `ddk:setup` and `ddk:nav`. `ddk://guide/descriptor-project` lists what each layout and option writes.\n- `ddk://guide/storybook` for developing contributions in Storybook.\n- `ddk://guide/ddk-dev` for loading plugins into a running DDK.\n\n## Upgrading\n\n```sh\nkosui cli:update # kosui\nnpm install -D @kosdev-code/kos-ddk-cli@latest # workspace install\nnpm install -g @kosdev-code/kos-ddk-cli@latest # global install\nkosui ddk:agent-install --client claude --scope user\n```\n\n## When the ddk commands are missing\n\n- `kosui extensions` does not list the package: it is in neither the workspace's\n `package.json` nor the global install beside the `kosui` on your `PATH`\n (`npm ls -g @kosdev-code/kos-ddk-cli`).\n- It is listed as `incompatible`: `kosui` is older than the extension needs; update it.\n- It is listed as `disabled`: the workspace `.kos.json` names it in\n `cli.disabledExtensions`."
20854
+ "body": "# Getting started with the DDK CLI\n\n`@kosdev-code/kos-ddk-cli` is a `kosui` extension: it adds the `ddk:*` commands to the\n`kosui` CLI and ships the `kos-ddk-tools` agent plugin. It has no CLI of its own.\n\n## 1. kosui\n\n`kosui` (`@kosdev-code/kos-ui-cli`) is installed globally, at 3.0.31 or later.\n\n```sh\nnpm install -g @kosdev-code/kos-ui-cli\nkosui cli:update\n```\n\n## 2. Install the extension\n\nEither in the workspace, which pins the version with the project:\n\n```sh\ncd <repo>/ui\nnpm install -D @kosdev-code/kos-ddk-cli\n```\n\nor globally, beside `kosui`, which adds the commands in every workspace:\n\n```sh\nnpm install -g @kosdev-code/kos-ddk-cli\n```\n\n`kosui` looks in the workspace's `package.json` dependencies first, then beside its own\nglobal install. When both have it, the workspace copy is used.\n\n`latest` is the released version. `@dev` is the build of the DDK's `main` branch, published\non every push:\n\n```sh\nnpm install -D @kosdev-code/kos-ddk-cli@dev\n```\n\nThe DDK libraries' dev builds depend on each other at one exact version, so install them\ntogether; `--no-save` keeps `package.json` and the lockfile on the release ranges:\n\n```sh\nnpm install --no-save @kosdev-code/kos-ddk@dev @kosdev-code/kos-ddk-components@dev \\\n @kosdev-code/kos-ddk-model-components@dev @kosdev-code/kos-ddk-models@dev \\\n @kosdev-code/kos-ddk-story-containers@dev @kosdev-code/kos-ddk-styles@dev\n```\n\n## 3. Check kosui loads it\n\n```sh\nkosui extensions\nkosui help\n```\n\n`kosui extensions` names the package, its version, where it came from (`[workspace]` or\n`[global]`), its status and the commands it adds. `kosui help` lists them under `ddk:`.\n\nA workspace can turn it off in its `.kos.json`:\n\n```json\n{ \"cli\": { \"disabledExtensions\": [\"@kosdev-code/kos-ddk-cli\"] } }\n```\n\n## 4. Repo root or ui workspace\n\nEvery command and the MCP server work from the ui workspace (the directory with\n`nx.json`) and from a polyglot repo root: when the repo root's `.kos.json` (written by\n`kosui repo`) names a ui workspace in `workspaces.ui`, `kosui` and the server use that\nworkspace. An agent started at the repo root, to work across the backend and the UI,\ngets the same commands and tools.\n\n## 5. Agent plugin and MCP server\n\n```sh\nkosui plugin install --client claude --scope user\n```\n\nThis installs the SDK's `kos-tools` plugin and, beside it, the package's `kos-ddk-tools`\nplugin, which runs the `kos-ddk` MCP server. `--scope user` installs them for every repo,\n`--scope repo` for the current checkout only. Without `--client` it detects the client.\n`kosui ddk:agent-install` installs `kos-ddk-tools` alone, with the same flags.\n\nThe server is one self-contained file inside the package, so it does not depend on the\nworkspace's `node_modules`. It is registered from wherever the package is installed, in\nthe workspace or globally.\n\nRun `kosui plugin install` again after upgrading the CLIs (`kosui cli:update`): the\nclient keeps its copy of each plugin until the registration is refreshed.\n\n## 6. Next\n\n- `kosui ddk:plugin-project --name my-plugin` creates a DDK plugin project under\n `plugins/` (`--directory` changes the folder). It tests against the `kosdev.ddk`\n plugin context and registers with the workspace host serving that context, or with\n `--host`; a workspace without a DDK host registers it with none. The contribution\n commands in the README add to it.\n- `kosui ddk:descriptor-project --name my-ncui --layout standard --ice true` (or `compact`) creates the\n NCUI descriptor project a new utility, setup step or navigation view is listed in;\n pass `--descriptorProject my-ncui` to `ddk:utility`, `ddk:setup` and `ddk:nav`. `ddk://guide/descriptor-project` lists what each layout and option writes.\n- `ddk://guide/storybook` for developing contributions in Storybook.\n- `ddk://guide/ddk-dev` for loading plugins into a running DDK.\n\n## Upgrading\n\n```sh\nkosui cli:update # kosui, and a global kos-ddk-cli\nnpm install -D @kosdev-code/kos-ddk-cli@latest # a workspace install\nkosui plugin install --client claude --scope user # both agent plugins\n```\n\n## When the ddk commands are missing\n\n- `kosui extensions` does not list the package: it is in neither the workspace's\n `package.json` nor the global install beside the `kosui` on your `PATH`\n (`npm ls -g @kosdev-code/kos-ddk-cli`).\n- It is listed as `incompatible`: `kosui` is older than the extension needs; update it.\n- It is listed as `disabled`: the workspace `.kos.json` names it in\n `cli.disabledExtensions`."
19244
20855
  },
19245
20856
  {
19246
20857
  "uri": "ddk://guide/storybook",
19247
20858
  "name": "ddk-guide-storybook",
19248
20859
  "title": "Developing DDK contributions in Storybook",
19249
20860
  "description": "Running a plugin's Storybook against a simulator or with KosMock story mocks, where model data comes from, the story container per contribution command, render modes and overrides.",
19250
- "body": "# Developing DDK contributions in Storybook\n\nEvery `ddk:*` contribution command writes a story next to the component, so a contribution\ncan be developed in isolation before the plugin is loaded into a running DDK. Stories render\nagainst live models from a running simulator.\n\n## Run it\n\n```sh\nnpx nx run <plugin>:storybook\n```\n\nStorybook serves on port 4400. The plugin's `serve` target is the module federation dev\nserver used by `kosui ddk:dev`; Storybook has its own `storybook` target.\n\n## Where model data comes from\n\nThe preview (`.storybook/preview.tsx`) wraps every story in the providers the DDK hosts use:\nKosCore, translations (`app/system`, `app/kosdev.ddk`), `AssemblyProvider`,\n`ApplicationProvider` and `ApplicationComponentConfigurationProvider`. KosCore connects to the\nfirst of:\n\n1. the `?host=` query parameter on the Storybook URL;\n2. `KOS_HOST` and `KOS_PORT` in the plugin's `.env` (the generated `.env` sets\n `KOS_PORT=8081`, the simulator's default);\n3. the page's own origin.\n\nTranslations come from the same device: the DDK's namespaces (`app/system`,\n`app/kosdev.ddk`) from its files, and the plugin's own namespace from the plugin's\n`src/assets/locales`, since the device lists it only once the KAB is installed. Each\ncontribution command adds its title key, and the keys its component calls, to\n`src/assets/locales/en/<plugin>.json`.\n\nStart the simulator before Storybook. A story shows what the simulator has: a dashboard card\nneeds an active model at its `dashboardKey`, a trouble action needs an active trouble of its\n`troubleType`.\n\n## Mocking what the simulator lacks\n\nA story can bring its own data with KosMock, the SDK's transport-level mocks\n(`kos://guide/mocking`), instead of waiting for the simulator to reach a state: an active\ntrouble, setup mode, a descriptor entry. It names the mocks as `parameters.kosMock`, and\nthe preview's outermost decorator reloads the page into those boot switches\n(`ensureKosMockBoot`):\n\n```tsx\nexport const ActiveTrouble: Story = {\n parameters: { kosMock: { setups: [\"daily-cleaning-trouble\"] } },\n};\n```\n\n`kosMock` takes `setups` (setup modules in `fixtures/setups/`), `fixture` (a recorded\nfixture), `mode` and `fixtureServer`:\n\n- `mode: \"on\"` (the default) mocks only the named endpoints over the running simulator.\n- `mode: \"standalone\"` boots with no device at all; every endpoint the story reads must\n be mocked.\n\nServe the fixtures beside Storybook:\n\n```sh\nkosui fixtures serve\n```\n\nA story without `kosMock` reloads without switches, so mocks never carry over between\nstories. Every generated story has a commented `kosMock` line to start from.\n\n## Story containers\n\nEach story renders the component inside the container for its extension point, from\n`@kosdev-code/kos-ddk-story-containers`:\n\n| Command | Container | Gives the component |\n| -------------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |\n| `ddk:utility` | `UtilityStoryContainer` | nothing: the utility opens its own `Modal` |\n| `ddk:setup` | `SetupStepStoryContainer` | the setup step frame |\n| `ddk:nav` | `NavStoryContainer` | the navigation view frame |\n| `ddk:cui` | `CUIStoryContainer` | the CUI frame |\n| `ddk:dashboard-card` | `DashboardSummaryStoryContainer`, `DashboardDetailStoryContainer` | `dashboardKey`, `assembly`, `cardModel`, `onComplete` |\n| `ddk:pump-detail` | `PumpDetailStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:pump-card` | `PumpSummaryStoryContainer`, `PumpDetailStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:macro-summary` | `MacroSummaryStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:trouble-action` | `TroubleActionStoryContainer` | the active `trouble` of the `troubleType` |\n\nWhen the simulator has no matching model, holder or trouble, the container says so in place\nof the story.\n\nA utility story has an `open` control. Closing the utility turns it off and logs\n`onComplete` in the Actions panel; the **Open** button behind the modal, or the\ncontrol, opens it again.\n\n## Standard and compact modes\n\nThe **Render Mode** toolbar switches between `standard` and `compact`. It changes the DDK\nstyles and the component mode; in `compact`, modals render full screen.\n\n## Overrides\n\nA story renders the override on its own, so an override of a standard contribution can be\ndeveloped here first. To see it replace the standard contribution, load the plugin into a\nrunning DDK with `kosui ddk:dev` (see the package README)."
20861
+ "body": "# Developing DDK contributions in Storybook\n\nEvery `ddk:*` contribution command writes a story next to the component, so a contribution\ncan be developed in isolation before the plugin is loaded into a running DDK. Stories render\nagainst live models from a running simulator.\n\n## Run it\n\n```sh\nnpx nx run <plugin>:storybook\n```\n\nStorybook serves on port 4400. The plugin's `serve` target is the module federation dev\nserver used by `kosui ddk:dev`; Storybook has its own `storybook` target.\n\n## Where model data comes from\n\nThe preview (`.storybook/preview.tsx`) wraps every story in the providers the DDK hosts use:\nKosCore, translations (`app/system`, `app/kosdev.ddk`), `AssemblyProvider`,\n`ApplicationProvider` and `ApplicationComponentConfigurationProvider`. KosCore connects to the\nfirst of:\n\n1. the `?host=` query parameter on the Storybook URL;\n2. `KOS_HOST` and `KOS_PORT` in the plugin's `.env` (the generated `.env` sets\n `KOS_PORT=8081`, the simulator's default);\n3. the page's own origin.\n\nTranslations come from the same device: the DDK's namespaces (`app/system`,\n`app/kosdev.ddk`) from its files, and the plugin's own namespace from the plugin's\n`src/assets/locales`, since the device lists it only once the KAB is installed. Each\ncontribution command adds its title key, and the keys its component calls, to\n`src/assets/locales/en/<plugin>.json`.\n\n## Plugin models in Storybook\n\nThe DDK host registers a plugin's models by loading its `./InitPlugin`\n(`src/app/init.ts`); Storybook does not. `.storybook/registration.ts` runs the same\ninit itself, before `initDDKRegistration()`, because that call creates KosCore and a\nmodel registered afterwards is not seen:\n\n```ts\nimport { initDDKRegistration } from \"@kosdev-code/kos-ddk-model-components\";\nimport InitPlugin from \"../src/app/init\";\n\nnew InitPlugin().register();\n\nconst { KosCoreContextProvider } = initDDKRegistration();\n```\n\n`register_model` with the plugin as `app` writes both files.\n\nStart the simulator before Storybook. A story shows what the simulator has: a dashboard card\nneeds an active model at its `dashboardKey`, a trouble action needs an active trouble of its\n`troubleType`.\n\n## Mocking what the simulator lacks\n\nA story can bring its own data with KosMock, the SDK's transport-level mocks\n(`kos://guide/mocking`), instead of waiting for the simulator to reach a state: an active\ntrouble, setup mode, a descriptor entry. It names the mocks as `parameters.kosMock`, and\nthe preview's outermost decorator reloads the page into those boot switches\n(`ensureKosMockBoot`):\n\n```tsx\nexport const ActiveTrouble: Story = {\n parameters: { kosMock: { setups: [\"daily-cleaning-trouble\"] } },\n};\n```\n\n`kosMock` takes `setups` (setup modules in `fixtures/setups/`), `fixture` (a recorded\nfixture), `mode` and `fixtureServer`:\n\n- `mode: \"on\"` (the default) mocks only the named endpoints over the running simulator.\n- `mode: \"standalone\"` boots with no device at all; every endpoint the story reads must\n be mocked.\n\nServe the fixtures beside Storybook:\n\n```sh\nkosui fixtures serve\n```\n\nA story without `kosMock` reloads without switches, so mocks never carry over between\nstories. Every generated story has a commented `kosMock` line to start from.\n\n## Story containers\n\nEach story renders the component inside the container for its extension point, from\n`@kosdev-code/kos-ddk-story-containers`:\n\n| Command | Container | Gives the component |\n| -------------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |\n| `ddk:utility` | `UtilityStoryContainer` | nothing: the utility opens its own `Modal` |\n| `ddk:setup` | `SetupStepStoryContainer` | the setup step frame |\n| `ddk:nav` | `NavStoryContainer` | the navigation view frame |\n| `ddk:cui` | `CUIStoryContainer` | the CUI frame |\n| `ddk:dashboard-card` | `DashboardSummaryStoryContainer`, `DashboardDetailStoryContainer` | `dashboardKey`, `assembly`, `cardModel`, `onComplete` |\n| `ddk:pump-detail` | `PumpDetailStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:pump-card` | `PumpSummaryStoryContainer`, `PumpDetailStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:macro-summary` | `MacroSummaryStoryContainer` | the first `holder` with the `dashboardKey` |\n| `ddk:trouble-action` | `TroubleActionStoryContainer` | the active `trouble` of the `troubleType` |\n\nWhen the simulator has no matching model, holder or trouble, the container says so in place\nof the story.\n\nA utility story has an `open` control. Closing the utility turns it off and logs\n`onComplete` in the Actions panel; the **Open** button behind the modal, or the\ncontrol, opens it again.\n\n## Standard and compact modes\n\nThe **Render Mode** toolbar switches between `standard` and `compact`. It changes the DDK\nstyles and the component mode; in `compact`, modals render full screen.\n\n## Overrides\n\nA story renders the override on its own, so an override of a standard contribution can be\ndeveloped here first. To see it replace the standard contribution, load the plugin into a\nrunning DDK with `kosui ddk:dev` (see the package README)."
19251
20862
  },
19252
20863
  {
19253
20864
  "uri": "ddk://guide/descriptor-project",