@theseam/ui-common 1.0.2-beta.83 → 1.0.2-beta.84

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.
@@ -29,6 +29,7 @@ import { ComponentPortal } from '@angular/cdk/portal';
29
29
  import * as i1$4 from '@theseam/ui-common/dynamic-component-loader';
30
30
  import { CdkTableModule } from '@angular/cdk/table';
31
31
  import { RouterModule } from '@angular/router';
32
+ import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
32
33
 
33
34
  function extendStyles(dest, source) {
34
35
  for (const key in source) {
@@ -1432,9 +1433,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
1432
1433
  }]
1433
1434
  }] });
1434
1435
 
1436
+ class TheSeamWidgetHarness extends ContentContainerComponentHarness {
1437
+ /** The selector for the host element of a `WidgetComponent` instance. */
1438
+ static hostSelector = 'seam-widget';
1439
+ /**
1440
+ * Gets a `HarnessPredicate` that can be used to search for a menu item with specific attributes.
1441
+ * @param options Options for filtering which menu item instances are considered a match.
1442
+ * @return a `HarnessPredicate` configured with the given options.
1443
+ */
1444
+ static with(options = {}) {
1445
+ return new HarnessPredicate(this, options);
1446
+ // .addOption('text', options.text, (harness, text) =>
1447
+ // HarnessPredicate.stringMatches(harness.getText(), text),
1448
+ // )
1449
+ // .addOption(
1450
+ // 'hasSubmenu',
1451
+ // options.hasSubmenu,
1452
+ // async (harness, hasSubmenu) => (await harness.hasSubmenu()) === hasSubmenu,
1453
+ // )
1454
+ }
1455
+ }
1456
+
1435
1457
  /**
1436
1458
  * Generated bundle index. Do not edit.
1437
1459
  */
1438
1460
 
1439
- export { CURRENT_WIDGET_PREFERENCES_VERSION, EMPTY_WIDGET_PREFERENCES, THESEAM_WIDGETS, THESEAM_WIDGET_ACCESSOR, THESEAM_WIDGET_DATA, THESEAM_WIDGET_DEFAULTS, THESEAM_WIDGET_PREFERENCES_ACCESSOR, TheSeamWidgetButtonGroupModule, TheSeamWidgetContentHeaderModule, TheSeamWidgetDescriptionModule, TheSeamWidgetEmptyLabelModule, TheSeamWidgetFooterLinkModule, TheSeamWidgetFooterTextModule, TheSeamWidgetHeaderBadgeModule, TheSeamWidgetListGroupModule, TheSeamWidgetModule, TheSeamWidgetTableModule, TheSeamWidgetTileListModule, TheSeamWidgetTileModule, WidgetButtonGroupComponent, WidgetComponent, WidgetContentHeaderComponent, WidgetDescriptionComponent, WidgetDragHandleDirective, WidgetEmptyLabelComponent, WidgetFooterComponent, WidgetFooterLinkComponent, WidgetFooterTextComponent, WidgetHeaderBadgeComponent, WidgetIconTplDirective, WidgetListGroupComponent, WidgetListGroupItemAnchorComponent, WidgetListGroupItemButtonComponent, WidgetListGroupItemComponent, WidgetListGroupItemIconTplDirective, WidgetPreferencesService, WidgetRegistryService, WidgetTableComponent, WidgetTileComponent, WidgetTileFooterComponent, WidgetTileFooterItemComponent, WidgetTileGroupComponent, WidgetTileListComponent, WidgetTileSecondaryIconDirective, WidgetTitleTplDirective, extendStyles, toggleNativeDragInteractions };
1461
+ export { CURRENT_WIDGET_PREFERENCES_VERSION, EMPTY_WIDGET_PREFERENCES, THESEAM_WIDGETS, THESEAM_WIDGET_ACCESSOR, THESEAM_WIDGET_DATA, THESEAM_WIDGET_DEFAULTS, THESEAM_WIDGET_PREFERENCES_ACCESSOR, TheSeamWidgetButtonGroupModule, TheSeamWidgetContentHeaderModule, TheSeamWidgetDescriptionModule, TheSeamWidgetEmptyLabelModule, TheSeamWidgetFooterLinkModule, TheSeamWidgetFooterTextModule, TheSeamWidgetHarness, TheSeamWidgetHeaderBadgeModule, TheSeamWidgetListGroupModule, TheSeamWidgetModule, TheSeamWidgetTableModule, TheSeamWidgetTileListModule, TheSeamWidgetTileModule, WidgetButtonGroupComponent, WidgetComponent, WidgetContentHeaderComponent, WidgetDescriptionComponent, WidgetDragHandleDirective, WidgetEmptyLabelComponent, WidgetFooterComponent, WidgetFooterLinkComponent, WidgetFooterTextComponent, WidgetHeaderBadgeComponent, WidgetIconTplDirective, WidgetListGroupComponent, WidgetListGroupItemAnchorComponent, WidgetListGroupItemButtonComponent, WidgetListGroupItemComponent, WidgetListGroupItemIconTplDirective, WidgetPreferencesService, WidgetRegistryService, WidgetTableComponent, WidgetTileComponent, WidgetTileFooterComponent, WidgetTileFooterItemComponent, WidgetTileGroupComponent, WidgetTileListComponent, WidgetTileSecondaryIconDirective, WidgetTitleTplDirective, extendStyles, toggleNativeDragInteractions };
1440
1462
  //# sourceMappingURL=theseam-ui-common-widget.mjs.map