@lingk/sync 0.1.19 → 0.1.20

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.
@@ -85,14 +85,13 @@ body{
85
85
  text-overflow: ellipsis;
86
86
  overflow: hidden;
87
87
  }
88
-
89
88
  .accordion-panel-header:hover{
90
89
  text-decoration: underline;
91
90
  }
92
91
  .accordion-panel-close{
93
92
  width: 32px;
94
93
  height: 32px;
95
- padding-top:7px;
94
+ padding-top:6px;
96
95
  text-align: center;
97
96
  display: inline-block;
98
97
  float: right;
@@ -102,6 +101,22 @@ body{
102
101
  .accordion-panel-close:hover{
103
102
  background: rgba(255,255,255,0.5);
104
103
  }
104
+ .accordion-panel-close svg path{
105
+ stroke:white;
106
+ }
107
+ .accordion-panel-close-disabled{
108
+ width: 32px;
109
+ height: 32px;
110
+ padding-top:6px;
111
+ text-align: center;
112
+ display: inline-block;
113
+ float: right;
114
+ border-radius: 50%;
115
+ pointer-events: none;
116
+ }
117
+ .accordion-panel-close-disabled svg path{
118
+ stroke:rgba(255,255,255,0.5);
119
+ }
105
120
  .accordion-panel-collapse{
106
121
  -webkit-transition: all 0.2s;
107
122
  transition: all 0.2s;
@@ -1139,8 +1139,7 @@ module.exports =
1139
1139
  type: type, required: true, menuAlign: menuAlign, label: label,
1140
1140
  className: 'select-dropdown-button' + extraClassy,
1141
1141
  menuStyle: { maxHeight: 273, overflowY: 'scroll', marginBottom: 5,
1142
- boxShadow: '0 2px 3px 0 rgba(0, 0, 0, 0.36)', zIndex: 9001, minWidth: minWidth ? minWidth : '15rem' }
1143
- },
1142
+ boxShadow: '0 2px 3px 0 rgba(0, 0, 0, 0.36)', zIndex: 9001, minWidth: minWidth ? minWidth : '15rem' } },
1144
1143
  !sectionLabels ? vals && vals.map(function (val, i) {
1145
1144
  return _react2.default.createElement(
1146
1145
  _reactLightningDesignSystem.MenuItem,
@@ -1151,13 +1150,16 @@ module.exports =
1151
1150
  );
1152
1151
  }) : vals && vals.map(function (val, i) {
1153
1152
  if (!val[fieldPropLabel]) {
1153
+ // section titles
1154
1154
  return _react2.default.createElement(
1155
1155
  _reactLightningDesignSystem.MenuItem,
1156
1156
  { key: i, value: '', disabled: true, icon: 'none',
1157
1157
  style: { background: '#EEEEEE', color: '#AAAAAA', fontWeight: 'bold' } },
1158
1158
  val + ' ' + sectionLabelSuffix
1159
1159
  );
1160
- } else return val.object ? _react2.default.createElement(
1160
+ } else return val.object ?
1161
+ // field with children
1162
+ _react2.default.createElement(
1161
1163
  _reactLightningDesignSystem.MenuItem,
1162
1164
  { key: i, icon: 'none',
1163
1165
  onClick: function onClick(e) {
@@ -1174,12 +1176,17 @@ module.exports =
1174
1176
  { style: { textDecoration: 'underline', color: '#999999', fontWeight: 'bold' } },
1175
1177
  val.title
1176
1178
  )
1177
- ) : _react2.default.createElement(
1179
+ ) :
1180
+ // normal field
1181
+ _react2.default.createElement(
1178
1182
  _reactLightningDesignSystem.MenuItem,
1179
1183
  { value: val[fieldPropLabel], key: i, onClick: function onClick() {
1180
- onSelect(val[fieldPropLabel], i, val.recordTypeId ? val.recordTypeId : null, val.section, val.parents);
1184
+ onSelect(val[fieldPropLabel], i, val.recordTypeId ? val.recordTypeId : null, val.section, val.parents, val.parentRefList);
1181
1185
  }, icon: val.isSelected ? 'check' : 'none',
1182
- style: { paddingLeft: 8 + val.iteration * 15 || 8, marginLeft: val.isSelected ? 0 : 'initial' } },
1186
+ style: {
1187
+ paddingLeft: 8 + val.iteration * 15 + (val.parentRefList ? val.parentRefList.length * 15 + 8 : 8),
1188
+ marginLeft: val.isSelected ? 0 : 'initial'
1189
+ } },
1183
1190
  val[fieldPropLabel]
1184
1191
  );
1185
1192
  })