@api-client/ui 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@api-client/ui",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Internal UI component library for the API Client ecosystem.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "build/src/index.js",
@@ -45,7 +45,8 @@ import { CategoryTaxonomy } from '../dialogs/CategoryTaxonomy.js'
45
45
  /**
46
46
  * An element that specializes in editing properties of a domain association.
47
47
  *
48
- * @fires startactivityforresult - Dispatched when the user clicks on the "pick" button.
48
+ * @fires domainbrowserbrowse - Dispatched when the user clicks on the "pick" button. The detail object
49
+ * has the full intent configuration.
49
50
  * @fires change - Dispatched when the user changes the value of one of the inputs.
50
51
  * @fires DomainAssociationEditor#openentity - A custom event with the `key` and `type` when a property was selected.
51
52
  * @fires DomainAssociationEditor#delete - A custom event with the `key` and `type` when a property was selected.
@@ -177,7 +178,7 @@ export default class DomainAssociationEditor extends ModelingElement {
177
178
  allowed: [DomainEntityKind],
178
179
  withRecent: true,
179
180
  }
180
- const result = await Events.Domain.Browse.browse(data)
181
+ const result = await Events.Domain.Browse.browse(data, this)
181
182
  if (!result) {
182
183
  return
183
184
  }
@@ -332,7 +332,10 @@ export default class DomainBrowser extends ModelingElement {
332
332
  }
333
333
  this.setupAllowedSelection(state)
334
334
  this.requestUpdate()
335
- this.notifySelected(state.selected)
335
+ if (this.hasAllowedSelection) {
336
+ // We only notify the selection if it is allowed.
337
+ this.notifySelected(state.selected)
338
+ }
336
339
  }
337
340
 
338
341
  notifySelected(selected: DomainBrowseSelectedItem | undefined): void {
@@ -50,6 +50,9 @@ import { openAutoFieldsDialog } from '../domain-auto-fields-dialog.js'
50
50
  * An element that provides an editor interface for a domain entity.
51
51
  * @fires DomainEntityEditor#select - A custom event with the `key` and `type` when a property was selected.
52
52
  * @fires DomainEntityEditor#openentity - A custom event with the `key` and `type` when a property was selected.
53
+ * @fires domainbrowserbrowse - Dispatched when the user clicks on the "choose parent" button. The detail object
54
+ * has the full intent configuration.
55
+ * @fires domainrename - Dispatched when the user renames the entity.
53
56
  */
54
57
  export default class DomainEntityEditor extends ModelingElement {
55
58
  protected domainElement: DomainEntity | undefined
@@ -283,7 +286,7 @@ export default class DomainEntityEditor extends ModelingElement {
283
286
  allowed: [DomainEntityKind],
284
287
  withRecent: true,
285
288
  }
286
- const result = await Events.Domain.Browse.browse(data)
289
+ const result = await Events.Domain.Browse.browse(data, this)
287
290
  if (!result) {
288
291
  return
289
292
  }