@cratis/event-models 0.350.2 → 0.350.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.
@@ -6,5 +6,6 @@ export interface SliceHeaderAction {
6
6
  tooltip: string;
7
7
  when?: (slice: SliceHeaderSlice) => boolean;
8
8
  disabled?: boolean;
9
+ readOnlySafe?: boolean;
9
10
  onActivate: (sliceId: Guid, host: DOMRect) => void;
10
11
  }
package/dist/index.js CHANGED
@@ -9322,7 +9322,7 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
9322
9322
  className: "event-modeling-grid-add-button event-modeling-grid-add-button--small event-modeling-grid-add-button--no-circle",
9323
9323
  title: A.tooltip,
9324
9324
  "aria-label": A.tooltip,
9325
- disabled: p || A.disabled,
9325
+ disabled: p && !A.readOnlySafe || A.disabled,
9326
9326
  onClick: (V) => A.onActivate(e.id, V.currentTarget.getBoundingClientRect()),
9327
9327
  children: A.icon
9328
9328
  }, A.tooltip)),