@descope/web-components-ui 2.2.14 → 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.
package/dist/index.esm.js CHANGED
@@ -18182,6 +18182,9 @@ const ListClass = compose$1(
18182
18182
  selector: () => '::slotted(:not([slot]))',
18183
18183
  property: 'min-width',
18184
18184
  },
18185
+ maxRowItems: {
18186
+ property: 'max-row-items',
18187
+ },
18185
18188
  itemsHorizontalAlign: {
18186
18189
  selector: () => '::slotted(*)',
18187
18190
  property: 'justify-self',
@@ -21943,6 +21946,14 @@ const avatar = {
21943
21946
  [compVars$4.hostWidth]: '98px',
21944
21947
  [compVars$4.hostHeight]: '98px',
21945
21948
  },
21949
+ xl: {
21950
+ [compVars$4.hostWidth]: '120px',
21951
+ [compVars$4.hostHeight]: '120px',
21952
+ },
21953
+ '2xl': {
21954
+ [compVars$4.hostWidth]: '140px',
21955
+ [compVars$4.hostHeight]: '140px',
21956
+ },
21946
21957
  },
21947
21958
  };
21948
21959
 
@@ -22461,7 +22472,7 @@ var dateField$1 = /*#__PURE__*/Object.freeze({
22461
22472
  const componentName$d = getComponentName$1('apps-list');
22462
22473
 
22463
22474
  const itemRenderer$3 = ({ name, icon, url }, _, ref) => `
22464
- <a ${url ? `href="${url}" title="${url}"` : ''} target="_blank">
22475
+ <a ${url ? `href="${url}" title="${url}"` : ''} ${ref.openInSameWindow ? '' : 'target="_blank"'}>
22465
22476
  <descope-list-item>
22466
22477
  <div class="avatar-wrapper">
22467
22478
  <descope-avatar
@@ -22492,6 +22503,10 @@ const customMixin$2 = (superclass) =>
22492
22503
  get logoSize() {
22493
22504
  return this.getAttribute('logo-size');
22494
22505
  }
22506
+
22507
+ get openInSameWindow() {
22508
+ return this.getAttribute('open-in-same-window') === 'true';
22509
+ }
22495
22510
  };
22496
22511
 
22497
22512
  const AppsListClass = compose$1(
@@ -22500,6 +22515,14 @@ const AppsListClass = compose$1(
22500
22515
  maxHeight: { selector: () => ':host' },
22501
22516
  minHeight: { selector: () => ':host' },
22502
22517
  hostDirection: { selector: () => ':host', property: 'direction' },
22518
+ gap: {
22519
+ selector: ListClass.componentName,
22520
+ property: ListClass.cssVarList.gap,
22521
+ },
22522
+ maxRowItems: {
22523
+ selector: ListClass.componentName,
22524
+ property: ListClass.cssVarList.maxRowItems,
22525
+ },
22503
22526
  itemsFontWeight: {
22504
22527
  selector: TextClass.componentName,
22505
22528
  property: TextClass.cssVarList.fontWeightOverride,
@@ -22516,6 +22539,10 @@ const AppsListClass = compose$1(
22516
22539
  selector: ListItemClass.componentName,
22517
22540
  property: ListItemClass.cssVarList.backgroundColor,
22518
22541
  },
22542
+ itemHoverBackgroundColor: {
22543
+ selector: `${ListItemClass.componentName}:hover`,
22544
+ property: ListItemClass.cssVarList.backgroundColor,
22545
+ },
22519
22546
  backgroundColor: {
22520
22547
  selector: ListClass.componentName,
22521
22548
  property: ListClass.cssVarList.backgroundColorOverride,
@@ -22542,14 +22569,25 @@ const AppsListClass = compose$1(
22542
22569
  },
22543
22570
  itemAlignment: [
22544
22571
  { selector: () => '.avatar-wrapper', property: 'text-align' },
22545
- { selector: TextClass.componentName, property: TextClass.cssVarList.textAlign },
22546
- ]
22572
+ {
22573
+ selector: TextClass.componentName,
22574
+ property: TextClass.cssVarList.textAlign,
22575
+ },
22576
+ ],
22547
22577
  },
22548
22578
  }),
22549
- createDynamicDataMixin$1({ itemRenderer: itemRenderer$3, rerenderAttrsList: ['size', 'item-text-variant', 'logo-size'] }),
22579
+ createDynamicDataMixin$1({
22580
+ itemRenderer: itemRenderer$3,
22581
+ rerenderAttrsList: [
22582
+ 'size',
22583
+ 'item-text-variant',
22584
+ 'logo-size',
22585
+ 'open-in-same-window',
22586
+ ],
22587
+ }),
22550
22588
  draggableMixin$1,
22551
22589
  componentNameValidationMixin$1,
22552
- customMixin$2
22590
+ customMixin$2,
22553
22591
  )(
22554
22592
  createProxy$1({
22555
22593
  slots: ['empty-state'],
@@ -22587,7 +22625,7 @@ const AppsListClass = compose$1(
22587
22625
  width: 100%;
22588
22626
  }
22589
22627
  `,
22590
- })
22628
+ }),
22591
22629
  );
22592
22630
 
22593
22631
  const vars$l = AppsListClass.cssVarList;
@@ -22599,6 +22637,7 @@ const appsList = {
22599
22637
  [vars$l.itemsTextAlign]: 'start',
22600
22638
  [vars$l.hostDirection]: globalRefs$b.direction,
22601
22639
  [vars$l.maxHeight]: defaultHeight,
22640
+ [vars$l.itemHoverBackgroundColor]: globalRefs$b.colors.surface.highlight,
22602
22641
 
22603
22642
  _empty: {
22604
22643
  [vars$l.minHeight]: defaultHeight,
@@ -22659,7 +22698,7 @@ const compVars$3 = ListClass.cssVarList;
22659
22698
 
22660
22699
  const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars$1(
22661
22700
  { shadowColor: '#00000020' },
22662
- componentName$n
22701
+ componentName$n,
22663
22702
  );
22664
22703
 
22665
22704
  const { shadowColor: shadowColor$2 } = helperRefs$2;
@@ -22681,6 +22720,7 @@ const list = {
22681
22720
  [compVars$3.maxHeight]: '100%',
22682
22721
  [compVars$3.hostDirection]: globalRefs$a.direction,
22683
22722
  [compVars$3.minItemsWidth]: '150px',
22723
+ [compVars$3.maxRowItems]: '1000', // effectively no limit
22684
22724
 
22685
22725
  _empty: {
22686
22726
  [compVars$3.minHeight]: '150px',
@@ -22690,13 +22730,33 @@ const list = {
22690
22730
 
22691
22731
  variant: {
22692
22732
  tiles: {
22693
- [compVars$3.gridTemplateColumns]: `repeat(auto-fit, minmax(min(${useVar$1(
22694
- compVars$3.minItemsWidth
22695
- )}, 100%), 1fr))`,
22733
+ [compVars$3.gridTemplateColumns]: `repeat(auto-fit, minmax(
22734
+ max(
22735
+ min(${useVar$1(compVars$3.minItemsWidth)}, 100%),
22736
+ calc((100% - (${useVar$1(compVars$3.maxRowItems)} - 1) * ${useVar$1(compVars$3.gap)}) / ${useVar$1(compVars$3.maxRowItems)})),
22737
+ 1fr))`,
22696
22738
  [compVars$3.maxItemsWidth]: '200px',
22697
22739
  [compVars$3.itemsHorizontalAlign]: 'center',
22698
22740
  },
22699
22741
  },
22742
+
22743
+ gap: {
22744
+ xs: {
22745
+ [compVars$3.gap]: globalRefs$a.spacing.xs,
22746
+ },
22747
+ sm: {
22748
+ [compVars$3.gap]: globalRefs$a.spacing.sm,
22749
+ },
22750
+ md: {
22751
+ [compVars$3.gap]: globalRefs$a.spacing.md,
22752
+ },
22753
+ lg: {
22754
+ [compVars$3.gap]: globalRefs$a.spacing.lg,
22755
+ },
22756
+ xl: {
22757
+ [compVars$3.gap]: globalRefs$a.spacing.xl,
22758
+ },
22759
+ },
22700
22760
  };
22701
22761
 
22702
22762
  const vars$k = {
@@ -26107,6 +26167,7 @@ const [helperTheme, helperRefs, helperVars] = createHelperVars$1(
26107
26167
  );
26108
26168
 
26109
26169
  const { shadowColor } = helperRefs;
26170
+ const defaultShadow = `${globalRefs.shadow.wide.sm} ${shadowColor}, ${globalRefs.shadow.narrow.sm} ${shadowColor}`;
26110
26171
 
26111
26172
  const tooltip = {
26112
26173
  ...helperTheme,
@@ -26122,10 +26183,11 @@ const tooltip = {
26122
26183
  [vars$1.borderRadius]: globalRefs.radius.xs,
26123
26184
  [vars$1.horizontalPadding]: globalRefs.spacing.md,
26124
26185
  [vars$1.verticalPadding]: globalRefs.spacing.sm,
26186
+ [vars$1.boxShadow]: defaultShadow,
26125
26187
 
26126
26188
  shadow: {
26127
26189
  sm: {
26128
- [vars$1.boxShadow]: `${globalRefs.shadow.wide.sm} ${shadowColor}, ${globalRefs.shadow.narrow.sm} ${shadowColor}`,
26190
+ [vars$1.boxShadow]: defaultShadow,
26129
26191
  },
26130
26192
  md: {
26131
26193
  [vars$1.boxShadow]: `${globalRefs.shadow.wide.md} ${shadowColor}, ${globalRefs.shadow.narrow.md} ${shadowColor}`,