@descope/web-components-ui 1.0.286 → 1.0.287

Sign up to get free protection for your applications and to get access to all the features.
@@ -10059,9 +10059,6 @@ createBaseInputClass({ componentName: componentName$3, baseSelector: 'div' });
10059
10059
 
10060
10060
  const componentName$2 = getComponentName('mappings-field');
10061
10061
 
10062
- const SEPARATOR_WIDTH = '80px';
10063
- const REMOVE_BUTTON_WIDTH = '60px';
10064
-
10065
10062
  const customMixin = (superclass) =>
10066
10063
  class MappingsFieldMixinClass extends superclass {
10067
10064
  get defaultValues() {
@@ -10118,7 +10115,17 @@ const customMixin = (superclass) =>
10118
10115
  }
10119
10116
  };
10120
10117
 
10121
- const { host, helperText, errorMessage, mappingItem, labels, valueLabel, attrLabel, separator } = {
10118
+ const {
10119
+ host,
10120
+ helperText,
10121
+ errorMessage,
10122
+ mappingItem,
10123
+ labels,
10124
+ valueLabel,
10125
+ attrLabel,
10126
+ separator,
10127
+ labelsContainer,
10128
+ } = {
10122
10129
  host: { selector: () => ':host' },
10123
10130
  helperText: { selector: '::part(helper-text)' },
10124
10131
  errorMessage: { selector: '::part(error-message)' },
@@ -10127,6 +10134,7 @@ const { host, helperText, errorMessage, mappingItem, labels, valueLabel, attrLab
10127
10134
  valueLabel: { selector: 'descope-mappings-field-internal [part="labels"] [part="value-label"]' },
10128
10135
  attrLabel: { selector: 'descope-mappings-field-internal [part="labels"] [part="attr-label"]' },
10129
10136
  separator: { selector: 'descope-mapping-item::part(separator)' },
10137
+ labelsContainer: { selector: 'descope-mappings-field-internal [part="labels"]' },
10130
10138
  };
10131
10139
 
10132
10140
  const MappingsFieldClass = compose(
@@ -10142,6 +10150,9 @@ const MappingsFieldClass = compose(
10142
10150
  itemMarginBottom: { ...mappingItem, property: 'margin-bottom' },
10143
10151
  valueLabelMinWidth: { ...valueLabel, property: 'min-width' },
10144
10152
  attrLabelMinWidth: { ...attrLabel, property: 'min-width' },
10153
+ labelsMarginBottom: { ...labelsContainer, property: 'margin-bottom' },
10154
+ separatorWidth: {},
10155
+ removeButtonWidth: {},
10145
10156
  },
10146
10157
  }),
10147
10158
  draggableMixin,
@@ -10168,9 +10179,8 @@ const MappingsFieldClass = compose(
10168
10179
  }
10169
10180
 
10170
10181
  descope-mappings-field-internal [part="labels"] {
10171
- margin-bottom: 0.5em;
10172
- display: grid;
10173
- grid-template-columns: 1fr ${SEPARATOR_WIDTH} 1fr ${REMOVE_BUTTON_WIDTH};
10182
+ display: none;
10183
+ grid-template-columns: 1fr var(${MappingsFieldClass.cssVarList.separatorWidth}) 1fr var(${MappingsFieldClass.cssVarList.removeButtonWidth});
10174
10184
  }
10175
10185
 
10176
10186
  descope-mappings-field-internal [part="labels"] [part="value-label"],
@@ -10188,7 +10198,7 @@ const MappingsFieldClass = compose(
10188
10198
 
10189
10199
  descope-mapping-item::part(wrapper) {
10190
10200
  display: grid;
10191
- grid-template-columns: 1fr ${SEPARATOR_WIDTH} 1fr ${REMOVE_BUTTON_WIDTH};
10201
+ grid-template-columns: 1fr var(${MappingsFieldClass.cssVarList.separatorWidth}) 1fr var(${MappingsFieldClass.cssVarList.removeButtonWidth});
10192
10202
  }
10193
10203
  `,
10194
10204
  excludeAttrsSync: [
@@ -10219,6 +10229,9 @@ const mappingsField = {
10219
10229
  [vars$1.valueLabelMinWidth]: refs.minWidth,
10220
10230
  // To be positioned correctly, the min width has to match the combo box field min width
10221
10231
  [vars$1.attrLabelMinWidth]: `calc(12em + 2 * ${globalRefs.border.xs})`,
10232
+ [vars$1.labelsMarginBottom]: `calc(${globalRefs.typography.body2.size} / 2)`,
10233
+ [vars$1.separatorWidth]: '70px',
10234
+ [vars$1.removeButtonWidth]: '60px',
10222
10235
  };
10223
10236
 
10224
10237
  var mappingsField$1 = /*#__PURE__*/Object.freeze({