@genesislcap/foundation-ui 15.22.0 → 15.22.1-GENC-1582.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1493,37 +1493,6 @@
1493
1493
  }
1494
1494
  ]
1495
1495
  },
1496
- {
1497
- "kind": "javascript-module",
1498
- "path": "src/_config/index.ts",
1499
- "declarations": [],
1500
- "exports": [
1501
- {
1502
- "kind": "js",
1503
- "name": "*",
1504
- "declaration": {
1505
- "name": "*",
1506
- "package": "./styles"
1507
- }
1508
- },
1509
- {
1510
- "kind": "js",
1511
- "name": "*",
1512
- "declaration": {
1513
- "name": "*",
1514
- "package": "./tokens"
1515
- }
1516
- },
1517
- {
1518
- "kind": "js",
1519
- "name": "*",
1520
- "declaration": {
1521
- "name": "*",
1522
- "package": "./values"
1523
- }
1524
- }
1525
- ]
1526
- },
1527
1496
  {
1528
1497
  "kind": "javascript-module",
1529
1498
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -3547,6 +3516,37 @@
3547
3516
  }
3548
3517
  ]
3549
3518
  },
3519
+ {
3520
+ "kind": "javascript-module",
3521
+ "path": "src/_config/index.ts",
3522
+ "declarations": [],
3523
+ "exports": [
3524
+ {
3525
+ "kind": "js",
3526
+ "name": "*",
3527
+ "declaration": {
3528
+ "name": "*",
3529
+ "package": "./styles"
3530
+ }
3531
+ },
3532
+ {
3533
+ "kind": "js",
3534
+ "name": "*",
3535
+ "declaration": {
3536
+ "name": "*",
3537
+ "package": "./tokens"
3538
+ }
3539
+ },
3540
+ {
3541
+ "kind": "js",
3542
+ "name": "*",
3543
+ "declaration": {
3544
+ "name": "*",
3545
+ "package": "./values"
3546
+ }
3547
+ }
3548
+ ]
3549
+ },
3550
3550
  {
3551
3551
  "kind": "javascript-module",
3552
3552
  "path": "src/accordion/accordion.styles.ts",
@@ -59158,6 +59158,25 @@
59158
59158
  }
59159
59159
  ]
59160
59160
  },
59161
+ {
59162
+ "kind": "function",
59163
+ "name": "resolveByValueCriteriaBuilder",
59164
+ "parameters": [
59165
+ {
59166
+ "name": "datasource",
59167
+ "type": {
59168
+ "text": "OptionsDatasource | MultiselectDatasource"
59169
+ }
59170
+ },
59171
+ {
59172
+ "name": "value",
59173
+ "type": {
59174
+ "text": "string | number"
59175
+ }
59176
+ }
59177
+ ],
59178
+ "description": "Resolves a known field value (e.g. a bound `initialSelectedValue`) by exact match on\n`valueField`, as opposed to dataserverCriteriaBuilder, which treats `value` as\ntyped search text and matches it against `labelField`. Using the label-based search to\nresolve an initial value only works by coincidence: an id like `\"CP123\"` will not be found\nby searching a `NAME`/label column for that same string."
59179
+ },
59161
59180
  {
59162
59181
  "kind": "function",
59163
59182
  "name": "requestServerCriteriaBuilder",
@@ -59186,6 +59205,14 @@
59186
59205
  "module": "src/utils/options-datasource-utils.ts"
59187
59206
  }
59188
59207
  },
59208
+ {
59209
+ "kind": "js",
59210
+ "name": "resolveByValueCriteriaBuilder",
59211
+ "declaration": {
59212
+ "name": "resolveByValueCriteriaBuilder",
59213
+ "module": "src/utils/options-datasource-utils.ts"
59214
+ }
59215
+ },
59189
59216
  {
59190
59217
  "kind": "js",
59191
59218
  "name": "requestServerCriteriaBuilder",
@@ -60093,6 +60120,197 @@
60093
60120
  }
60094
60121
  ]
60095
60122
  },
60123
+ {
60124
+ "kind": "javascript-module",
60125
+ "path": "src/ai-criteria-search/validation/criteria-ir.ts",
60126
+ "declarations": [],
60127
+ "exports": []
60128
+ },
60129
+ {
60130
+ "kind": "javascript-module",
60131
+ "path": "src/ai-criteria-search/validation/operator-map.ts",
60132
+ "declarations": [
60133
+ {
60134
+ "kind": "function",
60135
+ "name": "groupsToCriteria",
60136
+ "return": {
60137
+ "type": {
60138
+ "text": "string"
60139
+ }
60140
+ },
60141
+ "parameters": [
60142
+ {
60143
+ "name": "groups",
60144
+ "type": {
60145
+ "text": "CriteriaGroup[]"
60146
+ }
60147
+ }
60148
+ ],
60149
+ "description": "Converts validated CriteriaGroup[] to a Groovy criteria string using CriteriaBuilder.\nGroups are AND-ed at top level. Within each group, clauses use group.logic (and/or).\nIf group.negated is true, the group's combined expression is wrapped in NOT."
60150
+ },
60151
+ {
60152
+ "kind": "variable",
60153
+ "name": "STRING_OPERATORS",
60154
+ "type": {
60155
+ "text": "CriteriaOperator[]"
60156
+ },
60157
+ "default": "[\n 'contains',\n 'equals',\n 'startsWith',\n 'endsWith',\n 'notEqual',\n]"
60158
+ },
60159
+ {
60160
+ "kind": "variable",
60161
+ "name": "NUMERIC_OPERATORS",
60162
+ "type": {
60163
+ "text": "CriteriaOperator[]"
60164
+ },
60165
+ "default": "[\n 'equals',\n 'greaterThan',\n 'lessThan',\n 'greaterThanOrEqual',\n 'lessThanOrEqual',\n 'notEqual',\n]"
60166
+ },
60167
+ {
60168
+ "kind": "variable",
60169
+ "name": "DATE_OPERATORS",
60170
+ "type": {
60171
+ "text": "CriteriaOperator[]"
60172
+ },
60173
+ "default": "[\n 'dateIsToday',\n 'dateIsAfter',\n 'dateIsBefore',\n 'dateIsEqual',\n 'dateIsGreaterEqual',\n 'dateIsLessEqual',\n]"
60174
+ },
60175
+ {
60176
+ "kind": "variable",
60177
+ "name": "DATETIME_OPERATORS",
60178
+ "type": {
60179
+ "text": "CriteriaOperator[]"
60180
+ },
60181
+ "default": "[\n 'dateTimeIsAfter',\n 'dateTimeIsBefore',\n 'dateTimeIsGreaterEqual',\n 'dateTimeIsLessEqual',\n]"
60182
+ },
60183
+ {
60184
+ "kind": "variable",
60185
+ "name": "OPERATOR_DISPLAY_LABEL",
60186
+ "type": {
60187
+ "text": "Record<CriteriaOperator, string>"
60188
+ },
60189
+ "default": "{\n contains: 'contains',\n equals: '=',\n startsWith: 'starts with',\n endsWith: 'ends with',\n notEqual: '≠',\n greaterThan: '>',\n lessThan: '<',\n greaterThanOrEqual: '≥',\n lessThanOrEqual: '≤',\n dateIsToday: 'is today',\n dateIsAfter: 'after',\n dateIsBefore: 'before',\n dateIsEqual: '=',\n dateIsGreaterEqual: '≥',\n dateIsLessEqual: '≤',\n dateTimeIsAfter: 'after',\n dateTimeIsBefore: 'before',\n dateTimeIsGreaterEqual: '≥',\n dateTimeIsLessEqual: '≤',\n}"
60190
+ }
60191
+ ],
60192
+ "exports": [
60193
+ {
60194
+ "kind": "js",
60195
+ "name": "groupsToCriteria",
60196
+ "declaration": {
60197
+ "name": "groupsToCriteria",
60198
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60199
+ }
60200
+ },
60201
+ {
60202
+ "kind": "js",
60203
+ "name": "STRING_OPERATORS",
60204
+ "declaration": {
60205
+ "name": "STRING_OPERATORS",
60206
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60207
+ }
60208
+ },
60209
+ {
60210
+ "kind": "js",
60211
+ "name": "NUMERIC_OPERATORS",
60212
+ "declaration": {
60213
+ "name": "NUMERIC_OPERATORS",
60214
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60215
+ }
60216
+ },
60217
+ {
60218
+ "kind": "js",
60219
+ "name": "DATE_OPERATORS",
60220
+ "declaration": {
60221
+ "name": "DATE_OPERATORS",
60222
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60223
+ }
60224
+ },
60225
+ {
60226
+ "kind": "js",
60227
+ "name": "DATETIME_OPERATORS",
60228
+ "declaration": {
60229
+ "name": "DATETIME_OPERATORS",
60230
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60231
+ }
60232
+ },
60233
+ {
60234
+ "kind": "js",
60235
+ "name": "OPERATOR_DISPLAY_LABEL",
60236
+ "declaration": {
60237
+ "name": "OPERATOR_DISPLAY_LABEL",
60238
+ "module": "src/ai-criteria-search/validation/operator-map.ts"
60239
+ }
60240
+ }
60241
+ ]
60242
+ },
60243
+ {
60244
+ "kind": "javascript-module",
60245
+ "path": "src/ai-criteria-search/validation/schema-validator.ts",
60246
+ "declarations": [
60247
+ {
60248
+ "kind": "function",
60249
+ "name": "validateClauses",
60250
+ "return": {
60251
+ "type": {
60252
+ "text": "ValidationResult"
60253
+ }
60254
+ },
60255
+ "parameters": [
60256
+ {
60257
+ "name": "clauses",
60258
+ "type": {
60259
+ "text": "CriteriaClause[]"
60260
+ }
60261
+ },
60262
+ {
60263
+ "name": "fieldMetadata",
60264
+ "type": {
60265
+ "text": "MetadataDetail[] | string[]"
60266
+ }
60267
+ }
60268
+ ]
60269
+ },
60270
+ {
60271
+ "kind": "function",
60272
+ "name": "validateGroups",
60273
+ "return": {
60274
+ "type": {
60275
+ "text": "GroupsValidationResult"
60276
+ }
60277
+ },
60278
+ "parameters": [
60279
+ {
60280
+ "name": "groups",
60281
+ "type": {
60282
+ "text": "CriteriaGroup[]"
60283
+ }
60284
+ },
60285
+ {
60286
+ "name": "fieldMetadata",
60287
+ "type": {
60288
+ "text": "MetadataDetail[] | string[]"
60289
+ }
60290
+ }
60291
+ ],
60292
+ "description": "Validates groups of criteria clauses. Each group's clauses are validated\nusing the same per-clause logic as validateClauses."
60293
+ }
60294
+ ],
60295
+ "exports": [
60296
+ {
60297
+ "kind": "js",
60298
+ "name": "validateClauses",
60299
+ "declaration": {
60300
+ "name": "validateClauses",
60301
+ "module": "src/ai-criteria-search/validation/schema-validator.ts"
60302
+ }
60303
+ },
60304
+ {
60305
+ "kind": "js",
60306
+ "name": "validateGroups",
60307
+ "declaration": {
60308
+ "name": "validateGroups",
60309
+ "module": "src/ai-criteria-search/validation/schema-validator.ts"
60310
+ }
60311
+ }
60312
+ ]
60313
+ },
60096
60314
  {
60097
60315
  "kind": "javascript-module",
60098
60316
  "path": "src/_config/styles/colors.ts",
@@ -61465,197 +61683,6 @@
61465
61683
  "declarations": [],
61466
61684
  "exports": []
61467
61685
  },
61468
- {
61469
- "kind": "javascript-module",
61470
- "path": "src/ai-criteria-search/validation/criteria-ir.ts",
61471
- "declarations": [],
61472
- "exports": []
61473
- },
61474
- {
61475
- "kind": "javascript-module",
61476
- "path": "src/ai-criteria-search/validation/operator-map.ts",
61477
- "declarations": [
61478
- {
61479
- "kind": "function",
61480
- "name": "groupsToCriteria",
61481
- "return": {
61482
- "type": {
61483
- "text": "string"
61484
- }
61485
- },
61486
- "parameters": [
61487
- {
61488
- "name": "groups",
61489
- "type": {
61490
- "text": "CriteriaGroup[]"
61491
- }
61492
- }
61493
- ],
61494
- "description": "Converts validated CriteriaGroup[] to a Groovy criteria string using CriteriaBuilder.\nGroups are AND-ed at top level. Within each group, clauses use group.logic (and/or).\nIf group.negated is true, the group's combined expression is wrapped in NOT."
61495
- },
61496
- {
61497
- "kind": "variable",
61498
- "name": "STRING_OPERATORS",
61499
- "type": {
61500
- "text": "CriteriaOperator[]"
61501
- },
61502
- "default": "[\n 'contains',\n 'equals',\n 'startsWith',\n 'endsWith',\n 'notEqual',\n]"
61503
- },
61504
- {
61505
- "kind": "variable",
61506
- "name": "NUMERIC_OPERATORS",
61507
- "type": {
61508
- "text": "CriteriaOperator[]"
61509
- },
61510
- "default": "[\n 'equals',\n 'greaterThan',\n 'lessThan',\n 'greaterThanOrEqual',\n 'lessThanOrEqual',\n 'notEqual',\n]"
61511
- },
61512
- {
61513
- "kind": "variable",
61514
- "name": "DATE_OPERATORS",
61515
- "type": {
61516
- "text": "CriteriaOperator[]"
61517
- },
61518
- "default": "[\n 'dateIsToday',\n 'dateIsAfter',\n 'dateIsBefore',\n 'dateIsEqual',\n 'dateIsGreaterEqual',\n 'dateIsLessEqual',\n]"
61519
- },
61520
- {
61521
- "kind": "variable",
61522
- "name": "DATETIME_OPERATORS",
61523
- "type": {
61524
- "text": "CriteriaOperator[]"
61525
- },
61526
- "default": "[\n 'dateTimeIsAfter',\n 'dateTimeIsBefore',\n 'dateTimeIsGreaterEqual',\n 'dateTimeIsLessEqual',\n]"
61527
- },
61528
- {
61529
- "kind": "variable",
61530
- "name": "OPERATOR_DISPLAY_LABEL",
61531
- "type": {
61532
- "text": "Record<CriteriaOperator, string>"
61533
- },
61534
- "default": "{\n contains: 'contains',\n equals: '=',\n startsWith: 'starts with',\n endsWith: 'ends with',\n notEqual: '≠',\n greaterThan: '>',\n lessThan: '<',\n greaterThanOrEqual: '≥',\n lessThanOrEqual: '≤',\n dateIsToday: 'is today',\n dateIsAfter: 'after',\n dateIsBefore: 'before',\n dateIsEqual: '=',\n dateIsGreaterEqual: '≥',\n dateIsLessEqual: '≤',\n dateTimeIsAfter: 'after',\n dateTimeIsBefore: 'before',\n dateTimeIsGreaterEqual: '≥',\n dateTimeIsLessEqual: '≤',\n}"
61535
- }
61536
- ],
61537
- "exports": [
61538
- {
61539
- "kind": "js",
61540
- "name": "groupsToCriteria",
61541
- "declaration": {
61542
- "name": "groupsToCriteria",
61543
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61544
- }
61545
- },
61546
- {
61547
- "kind": "js",
61548
- "name": "STRING_OPERATORS",
61549
- "declaration": {
61550
- "name": "STRING_OPERATORS",
61551
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61552
- }
61553
- },
61554
- {
61555
- "kind": "js",
61556
- "name": "NUMERIC_OPERATORS",
61557
- "declaration": {
61558
- "name": "NUMERIC_OPERATORS",
61559
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61560
- }
61561
- },
61562
- {
61563
- "kind": "js",
61564
- "name": "DATE_OPERATORS",
61565
- "declaration": {
61566
- "name": "DATE_OPERATORS",
61567
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61568
- }
61569
- },
61570
- {
61571
- "kind": "js",
61572
- "name": "DATETIME_OPERATORS",
61573
- "declaration": {
61574
- "name": "DATETIME_OPERATORS",
61575
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61576
- }
61577
- },
61578
- {
61579
- "kind": "js",
61580
- "name": "OPERATOR_DISPLAY_LABEL",
61581
- "declaration": {
61582
- "name": "OPERATOR_DISPLAY_LABEL",
61583
- "module": "src/ai-criteria-search/validation/operator-map.ts"
61584
- }
61585
- }
61586
- ]
61587
- },
61588
- {
61589
- "kind": "javascript-module",
61590
- "path": "src/ai-criteria-search/validation/schema-validator.ts",
61591
- "declarations": [
61592
- {
61593
- "kind": "function",
61594
- "name": "validateClauses",
61595
- "return": {
61596
- "type": {
61597
- "text": "ValidationResult"
61598
- }
61599
- },
61600
- "parameters": [
61601
- {
61602
- "name": "clauses",
61603
- "type": {
61604
- "text": "CriteriaClause[]"
61605
- }
61606
- },
61607
- {
61608
- "name": "fieldMetadata",
61609
- "type": {
61610
- "text": "MetadataDetail[] | string[]"
61611
- }
61612
- }
61613
- ]
61614
- },
61615
- {
61616
- "kind": "function",
61617
- "name": "validateGroups",
61618
- "return": {
61619
- "type": {
61620
- "text": "GroupsValidationResult"
61621
- }
61622
- },
61623
- "parameters": [
61624
- {
61625
- "name": "groups",
61626
- "type": {
61627
- "text": "CriteriaGroup[]"
61628
- }
61629
- },
61630
- {
61631
- "name": "fieldMetadata",
61632
- "type": {
61633
- "text": "MetadataDetail[] | string[]"
61634
- }
61635
- }
61636
- ],
61637
- "description": "Validates groups of criteria clauses. Each group's clauses are validated\nusing the same per-clause logic as validateClauses."
61638
- }
61639
- ],
61640
- "exports": [
61641
- {
61642
- "kind": "js",
61643
- "name": "validateClauses",
61644
- "declaration": {
61645
- "name": "validateClauses",
61646
- "module": "src/ai-criteria-search/validation/schema-validator.ts"
61647
- }
61648
- },
61649
- {
61650
- "kind": "js",
61651
- "name": "validateGroups",
61652
- "declaration": {
61653
- "name": "validateGroups",
61654
- "module": "src/ai-criteria-search/validation/schema-validator.ts"
61655
- }
61656
- }
61657
- ]
61658
- },
61659
61686
  {
61660
61687
  "kind": "javascript-module",
61661
61688
  "path": "src/environment-indicator/utils/configure.ts",
@@ -1 +1 @@
1
- {"version":3,"file":"options-datasource.d.ts","sourceRoot":"","sources":["../../../src/options-datasource/options-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,+BAA+B,CAAC;AAY/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAA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oB,CAO1B;YAEY,YAAY;IAoB1B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,sBAAsB,CAI5B;IAEF,mBAAmB,GAAI,MAAC,UAQtB;IAEF,SAAS;IAcH,sBAAsB;IAe5B,SAAS,IAAI,IAAI;IAmBjB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,WAAW;IAcnB,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,qBAAqB;IAO7B,iBAAiB,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE;IA6DtC,eAAe;IAIf,OAAO,CAAC,kBAAkB;IAS1B,aAAa;IAMb;;;OAGG;IACH,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE,GAAG,IAAI;IA4B9C;;;;;;OAMG;IACH,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE,GAAG,IAAI;IAI7C;;;OAGG;IACH,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE,GAAG,IAAI;CAG9C"}
@@ -1,4 +1,12 @@
1
1
  import type { MultiselectDatasource, OptionsDatasource } from '../options-datasource';
2
2
  export declare function dataserverCriteriaBuilder(datasource: OptionsDatasource | MultiselectDatasource, value: string | number): void;
3
+ /**
4
+ * Resolves a known field value (e.g. a bound `initialSelectedValue`) by exact match on
5
+ * `valueField`, as opposed to {@link dataserverCriteriaBuilder}, which treats `value` as
6
+ * typed search text and matches it against `labelField`. Using the label-based search to
7
+ * resolve an initial value only works by coincidence: an id like `"CP123"` will not be found
8
+ * by searching a `NAME`/label column for that same string.
9
+ */
10
+ export declare function resolveByValueCriteriaBuilder(datasource: OptionsDatasource | MultiselectDatasource, value: string | number): void;
3
11
  export declare function requestServerCriteriaBuilder(datasource: OptionsDatasource | MultiselectDatasource, value: string | number): void;
4
12
  //# sourceMappingURL=options-datasource-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options-datasource-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/options-datasource-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,iBAAiB,GAAG,qBAAqB,EACrD,KAAK,EAAE,MAAM,GAAG,MAAM,QAgBvB;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,iBAAiB,GAAG,qBAAqB,EACrD,KAAK,EAAE,MAAM,GAAG,MAAM,QAOvB"}
1
+ {"version":3,"file":"options-datasource-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/options-datasource-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,iBAAiB,GAAG,qBAAqB,EACrD,KAAK,EAAE,MAAM,GAAG,MAAM,QAgBvB;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,iBAAiB,GAAG,qBAAqB,EACrD,KAAK,EAAE,MAAM,GAAG,MAAM,QAgBvB;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,iBAAiB,GAAG,qBAAqB,EACrD,KAAK,EAAE,MAAM,GAAG,MAAM,QAOvB"}
@@ -3,7 +3,7 @@ import { __awaiter, __decorate } from "tslib";
3
3
  import { GenesisResources, ResourceType } from '@genesislcap/foundation-comms';
4
4
  import { Combobox as FASTComboBox, } from '@microsoft/fast-components';
5
5
  import { attr, customElement, DOM, nullableNumberConverter, observable, } from '@microsoft/fast-element';
6
- import { BaseDatasource, getPrefix, logger, dataserverCriteriaBuilder as criteriaMatchBuilder, } from '../utils';
6
+ import { BaseDatasource, getPrefix, logger, resolveByValueCriteriaBuilder, } from '../utils';
7
7
  /**
8
8
  * Datasource element for select/combobox option loading.
9
9
  * @public
@@ -84,8 +84,24 @@ let OptionsDatasource = OptionsDatasource_1 = class OptionsDatasource extends Ba
84
84
  };
85
85
  }
86
86
  initialSelectedValueChanged(oldValue, newValue) {
87
- if (!newValue || newValue === oldValue)
87
+ if (newValue === oldValue)
88
88
  return;
89
+ if (!newValue) {
90
+ // The bound value was cleared (e.g. a dependent field like counterparty changed,
91
+ // clearing the trader that no longer applies) - reset the datasource so the combobox
92
+ // doesn't keep displaying the previous selection's stale text. clearData() drops the
93
+ // stale options/rows; resetCombobox() clears the combobox's own selectedIndex/
94
+ // selectedOptions/value, which slottedOptionsChanged would otherwise re-derive back to
95
+ // the removed selection once the child-removal mutation is observed. A separate
96
+ // `request`/`datasourceConfig` change (if any) re-scopes and refetches the option list
97
+ // on its own via `requestChanged`.
98
+ if (this.select) {
99
+ this.initalSelectedValueInitialized = false;
100
+ this.clearData();
101
+ this.resetCombobox();
102
+ }
103
+ return;
104
+ }
89
105
  // Skip reset when already displaying this value (avoids clearing user selections
90
106
  // when parent re-passes the value, e.g. ConnectedSelectControlRenderer)
91
107
  if (this.select && this.getDisplayForValue(newValue) === String(this.select.value || '')) {
@@ -247,7 +263,9 @@ let OptionsDatasource = OptionsDatasource_1 = class OptionsDatasource extends Ba
247
263
  });
248
264
  return;
249
265
  }
250
- criteriaMatchBuilder(this, this.initialSelectedValue);
266
+ // Resolve by value-field equality, not by searching label text for the raw value —
267
+ // the two are never the same string except by coincidence (see resolveByValueCriteriaBuilder).
268
+ resolveByValueCriteriaBuilder(this, this.initialSelectedValue);
251
269
  });
252
270
  }
253
271
  clearData() {
@@ -14,6 +14,27 @@ export function dataserverCriteriaBuilder(datasource, value) {
14
14
  datasource.criteria = criteriaBuilder.build();
15
15
  }
16
16
  }
17
+ /**
18
+ * Resolves a known field value (e.g. a bound `initialSelectedValue`) by exact match on
19
+ * `valueField`, as opposed to {@link dataserverCriteriaBuilder}, which treats `value` as
20
+ * typed search text and matches it against `labelField`. Using the label-based search to
21
+ * resolve an initial value only works by coincidence: an id like `"CP123"` will not be found
22
+ * by searching a `NAME`/label column for that same string.
23
+ */
24
+ export function resolveByValueCriteriaBuilder(datasource, value) {
25
+ const criteriaBuilder = new CriteriaBuilder();
26
+ criteriaBuilder.withExpression(new ExpressionBuilder()
27
+ .withField(datasource.valueField)
28
+ .withValue(value)
29
+ .withSerialiser(Serialisers.equals)
30
+ .build());
31
+ if (datasource.baseCriteria) {
32
+ datasource.criteria = `${datasource.baseCriteria} && ${criteriaBuilder.build()}`;
33
+ }
34
+ else {
35
+ datasource.criteria = criteriaBuilder.build();
36
+ }
37
+ }
17
38
  export function requestServerCriteriaBuilder(datasource, value) {
18
39
  var _a;
19
40
  const requestFieldName = (_a = datasource.labelField) !== null && _a !== void 0 ? _a : datasource.valueField;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "15.22.0",
4
+ "version": "15.22.1-GENC-1582.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -85,13 +85,13 @@
85
85
  }
86
86
  },
87
87
  "devDependencies": {
88
- "@genesislcap/foundation-testing": "15.22.0",
89
- "@genesislcap/genx": "15.22.0",
90
- "@genesislcap/rollup-builder": "15.22.0",
91
- "@genesislcap/ts-builder": "15.22.0",
92
- "@genesislcap/uvu-playwright-builder": "15.22.0",
93
- "@genesislcap/vite-builder": "15.22.0",
94
- "@genesislcap/webpack-builder": "15.22.0",
88
+ "@genesislcap/foundation-testing": "15.22.1-GENC-1582.1",
89
+ "@genesislcap/genx": "15.22.1-GENC-1582.1",
90
+ "@genesislcap/rollup-builder": "15.22.1-GENC-1582.1",
91
+ "@genesislcap/ts-builder": "15.22.1-GENC-1582.1",
92
+ "@genesislcap/uvu-playwright-builder": "15.22.1-GENC-1582.1",
93
+ "@genesislcap/vite-builder": "15.22.1-GENC-1582.1",
94
+ "@genesislcap/webpack-builder": "15.22.1-GENC-1582.1",
95
95
  "copyfiles": "^2.4.1"
96
96
  },
97
97
  "dependencies": {
@@ -100,16 +100,16 @@
100
100
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
101
101
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
102
102
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
103
- "@genesislcap/expression-builder": "15.22.0",
104
- "@genesislcap/foundation-ai": "15.22.0",
105
- "@genesislcap/foundation-comms": "15.22.0",
106
- "@genesislcap/foundation-criteria": "15.22.0",
107
- "@genesislcap/foundation-errors": "15.22.0",
108
- "@genesislcap/foundation-events": "15.22.0",
109
- "@genesislcap/foundation-logger": "15.22.0",
110
- "@genesislcap/foundation-notifications": "15.22.0",
111
- "@genesislcap/foundation-user": "15.22.0",
112
- "@genesislcap/foundation-utils": "15.22.0",
103
+ "@genesislcap/expression-builder": "15.22.1-GENC-1582.1",
104
+ "@genesislcap/foundation-ai": "15.22.1-GENC-1582.1",
105
+ "@genesislcap/foundation-comms": "15.22.1-GENC-1582.1",
106
+ "@genesislcap/foundation-criteria": "15.22.1-GENC-1582.1",
107
+ "@genesislcap/foundation-errors": "15.22.1-GENC-1582.1",
108
+ "@genesislcap/foundation-events": "15.22.1-GENC-1582.1",
109
+ "@genesislcap/foundation-logger": "15.22.1-GENC-1582.1",
110
+ "@genesislcap/foundation-notifications": "15.22.1-GENC-1582.1",
111
+ "@genesislcap/foundation-user": "15.22.1-GENC-1582.1",
112
+ "@genesislcap/foundation-utils": "15.22.1-GENC-1582.1",
113
113
  "@microsoft/fast-colors": "5.3.1",
114
114
  "@microsoft/fast-components": "2.30.6",
115
115
  "@microsoft/fast-element": "1.14.0",