@descope/web-components-ui 2.2.15 → 2.2.16

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.
@@ -14409,6 +14409,14 @@ const avatar = {
14409
14409
  [compVars$4.hostWidth]: '98px',
14410
14410
  [compVars$4.hostHeight]: '98px',
14411
14411
  },
14412
+ xl: {
14413
+ [compVars$4.hostWidth]: '120px',
14414
+ [compVars$4.hostHeight]: '120px',
14415
+ },
14416
+ '2xl': {
14417
+ [compVars$4.hostWidth]: '140px',
14418
+ [compVars$4.hostHeight]: '140px',
14419
+ },
14412
14420
  },
14413
14421
  };
14414
14422
 
@@ -18461,6 +18469,9 @@ const ListClass = compose(
18461
18469
  selector: () => '::slotted(:not([slot]))',
18462
18470
  property: 'min-width',
18463
18471
  },
18472
+ maxRowItems: {
18473
+ property: 'max-row-items',
18474
+ },
18464
18475
  itemsHorizontalAlign: {
18465
18476
  selector: () => '::slotted(*)',
18466
18477
  property: 'justify-self',
@@ -18482,7 +18493,7 @@ const ListClass = compose(
18482
18493
  const componentName$m = getComponentName('apps-list');
18483
18494
 
18484
18495
  const itemRenderer$4 = ({ name, icon, url }, _, ref) => `
18485
- <a ${url ? `href="${url}" title="${url}"` : ''} target="_blank">
18496
+ <a ${url ? `href="${url}" title="${url}"` : ''} ${ref.openInSameWindow ? '' : 'target="_blank"'}>
18486
18497
  <descope-list-item>
18487
18498
  <div class="avatar-wrapper">
18488
18499
  <descope-avatar
@@ -18513,6 +18524,10 @@ const customMixin$2 = (superclass) =>
18513
18524
  get logoSize() {
18514
18525
  return this.getAttribute('logo-size');
18515
18526
  }
18527
+
18528
+ get openInSameWindow() {
18529
+ return this.getAttribute('open-in-same-window') === 'true';
18530
+ }
18516
18531
  };
18517
18532
 
18518
18533
  const AppsListClass = compose(
@@ -18521,6 +18536,14 @@ const AppsListClass = compose(
18521
18536
  maxHeight: { selector: () => ':host' },
18522
18537
  minHeight: { selector: () => ':host' },
18523
18538
  hostDirection: { selector: () => ':host', property: 'direction' },
18539
+ gap: {
18540
+ selector: ListClass.componentName,
18541
+ property: ListClass.cssVarList.gap,
18542
+ },
18543
+ maxRowItems: {
18544
+ selector: ListClass.componentName,
18545
+ property: ListClass.cssVarList.maxRowItems,
18546
+ },
18524
18547
  itemsFontWeight: {
18525
18548
  selector: TextClass.componentName,
18526
18549
  property: TextClass.cssVarList.fontWeightOverride,
@@ -18537,6 +18560,10 @@ const AppsListClass = compose(
18537
18560
  selector: ListItemClass.componentName,
18538
18561
  property: ListItemClass.cssVarList.backgroundColor,
18539
18562
  },
18563
+ itemHoverBackgroundColor: {
18564
+ selector: `${ListItemClass.componentName}:hover`,
18565
+ property: ListItemClass.cssVarList.backgroundColor,
18566
+ },
18540
18567
  backgroundColor: {
18541
18568
  selector: ListClass.componentName,
18542
18569
  property: ListClass.cssVarList.backgroundColorOverride,
@@ -18563,14 +18590,25 @@ const AppsListClass = compose(
18563
18590
  },
18564
18591
  itemAlignment: [
18565
18592
  { selector: () => '.avatar-wrapper', property: 'text-align' },
18566
- { selector: TextClass.componentName, property: TextClass.cssVarList.textAlign },
18567
- ]
18593
+ {
18594
+ selector: TextClass.componentName,
18595
+ property: TextClass.cssVarList.textAlign,
18596
+ },
18597
+ ],
18568
18598
  },
18569
18599
  }),
18570
- createDynamicDataMixin$1({ itemRenderer: itemRenderer$4, rerenderAttrsList: ['size', 'item-text-variant', 'logo-size'] }),
18600
+ createDynamicDataMixin$1({
18601
+ itemRenderer: itemRenderer$4,
18602
+ rerenderAttrsList: [
18603
+ 'size',
18604
+ 'item-text-variant',
18605
+ 'logo-size',
18606
+ 'open-in-same-window',
18607
+ ],
18608
+ }),
18571
18609
  draggableMixin$1,
18572
18610
  componentNameValidationMixin$1,
18573
- customMixin$2
18611
+ customMixin$2,
18574
18612
  )(
18575
18613
  createProxy$1({
18576
18614
  slots: ['empty-state'],
@@ -18608,7 +18646,7 @@ const AppsListClass = compose(
18608
18646
  width: 100%;
18609
18647
  }
18610
18648
  `,
18611
- })
18649
+ }),
18612
18650
  );
18613
18651
 
18614
18652
  const vars$l = AppsListClass.cssVarList;
@@ -18620,6 +18658,7 @@ const appsList = {
18620
18658
  [vars$l.itemsTextAlign]: 'start',
18621
18659
  [vars$l.hostDirection]: globalRefs$b.direction,
18622
18660
  [vars$l.maxHeight]: defaultHeight,
18661
+ [vars$l.itemHoverBackgroundColor]: globalRefs$b.colors.surface.highlight,
18623
18662
 
18624
18663
  _empty: {
18625
18664
  [vars$l.minHeight]: defaultHeight,
@@ -18680,7 +18719,7 @@ const compVars$3 = ListClass.cssVarList;
18680
18719
 
18681
18720
  const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars$1(
18682
18721
  { shadowColor: '#00000020' },
18683
- componentName$n
18722
+ componentName$n,
18684
18723
  );
18685
18724
 
18686
18725
  const { shadowColor: shadowColor$2 } = helperRefs$2;
@@ -18702,6 +18741,7 @@ const list = {
18702
18741
  [compVars$3.maxHeight]: '100%',
18703
18742
  [compVars$3.hostDirection]: globalRefs$a.direction,
18704
18743
  [compVars$3.minItemsWidth]: '150px',
18744
+ [compVars$3.maxRowItems]: '1000', // effectively no limit
18705
18745
 
18706
18746
  _empty: {
18707
18747
  [compVars$3.minHeight]: '150px',
@@ -18711,13 +18751,33 @@ const list = {
18711
18751
 
18712
18752
  variant: {
18713
18753
  tiles: {
18714
- [compVars$3.gridTemplateColumns]: `repeat(auto-fit, minmax(min(${useVar$1(
18715
- compVars$3.minItemsWidth
18716
- )}, 100%), 1fr))`,
18754
+ [compVars$3.gridTemplateColumns]: `repeat(auto-fit, minmax(
18755
+ max(
18756
+ min(${useVar$1(compVars$3.minItemsWidth)}, 100%),
18757
+ calc((100% - (${useVar$1(compVars$3.maxRowItems)} - 1) * ${useVar$1(compVars$3.gap)}) / ${useVar$1(compVars$3.maxRowItems)})),
18758
+ 1fr))`,
18717
18759
  [compVars$3.maxItemsWidth]: '200px',
18718
18760
  [compVars$3.itemsHorizontalAlign]: 'center',
18719
18761
  },
18720
18762
  },
18763
+
18764
+ gap: {
18765
+ xs: {
18766
+ [compVars$3.gap]: globalRefs$a.spacing.xs,
18767
+ },
18768
+ sm: {
18769
+ [compVars$3.gap]: globalRefs$a.spacing.sm,
18770
+ },
18771
+ md: {
18772
+ [compVars$3.gap]: globalRefs$a.spacing.md,
18773
+ },
18774
+ lg: {
18775
+ [compVars$3.gap]: globalRefs$a.spacing.lg,
18776
+ },
18777
+ xl: {
18778
+ [compVars$3.gap]: globalRefs$a.spacing.xl,
18779
+ },
18780
+ },
18721
18781
  };
18722
18782
 
18723
18783
  const vars$k = {