@lingk/sync 0.1.19 → 0.1.21
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/build/css/main.css +17 -2
- package/build/lightning.js +47 -40
- package/build/lightning.js.map +1 -1
- package/build/lightningStyles.js.map +1 -1
- package/build/lingk.js +3 -2
- package/build/lingk.js.map +1 -1
- package/build/lingkStyles.js.map +1 -1
- package/build/main.js +283 -174
- package/build/main.js.map +1 -1
- package/build/reducer.js +146 -7
- package/build/reducer.js.map +1 -1
- package/package.json +1 -1
package/build/css/main.css
CHANGED
|
@@ -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:
|
|
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;
|
package/build/lightning.js
CHANGED
|
@@ -107,7 +107,7 @@ module.exports =
|
|
|
107
107
|
/* 13 */
|
|
108
108
|
/***/ function(module, exports, __webpack_require__) {
|
|
109
109
|
|
|
110
|
-
var dP = __webpack_require__(
|
|
110
|
+
var dP = __webpack_require__(19)
|
|
111
111
|
, createDesc = __webpack_require__(33);
|
|
112
112
|
module.exports = __webpack_require__(10) ? function(object, key, value){
|
|
113
113
|
return dP.f(object, key, createDesc(1, value));
|
|
@@ -125,7 +125,8 @@ module.exports =
|
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
/***/ },
|
|
128
|
-
/* 15
|
|
128
|
+
/* 15 */,
|
|
129
|
+
/* 16 */
|
|
129
130
|
/***/ function(module, exports, __webpack_require__) {
|
|
130
131
|
|
|
131
132
|
var isObject = __webpack_require__(14);
|
|
@@ -135,7 +136,7 @@ module.exports =
|
|
|
135
136
|
};
|
|
136
137
|
|
|
137
138
|
/***/ },
|
|
138
|
-
/*
|
|
139
|
+
/* 17 */
|
|
139
140
|
/***/ function(module, exports) {
|
|
140
141
|
|
|
141
142
|
// 7.2.1 RequireObjectCoercible(argument)
|
|
@@ -145,7 +146,7 @@ module.exports =
|
|
|
145
146
|
};
|
|
146
147
|
|
|
147
148
|
/***/ },
|
|
148
|
-
/*
|
|
149
|
+
/* 18 */
|
|
149
150
|
/***/ function(module, exports) {
|
|
150
151
|
|
|
151
152
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
@@ -154,10 +155,10 @@ module.exports =
|
|
|
154
155
|
};
|
|
155
156
|
|
|
156
157
|
/***/ },
|
|
157
|
-
/*
|
|
158
|
+
/* 19 */
|
|
158
159
|
/***/ function(module, exports, __webpack_require__) {
|
|
159
160
|
|
|
160
|
-
var anObject = __webpack_require__(
|
|
161
|
+
var anObject = __webpack_require__(16)
|
|
161
162
|
, IE8_DOM_DEFINE = __webpack_require__(44)
|
|
162
163
|
, toPrimitive = __webpack_require__(48)
|
|
163
164
|
, dP = Object.defineProperty;
|
|
@@ -175,7 +176,7 @@ module.exports =
|
|
|
175
176
|
};
|
|
176
177
|
|
|
177
178
|
/***/ },
|
|
178
|
-
/*
|
|
179
|
+
/* 20 */
|
|
179
180
|
/***/ function(module, exports) {
|
|
180
181
|
|
|
181
182
|
// 7.1.4 ToInteger
|
|
@@ -186,18 +187,18 @@ module.exports =
|
|
|
186
187
|
};
|
|
187
188
|
|
|
188
189
|
/***/ },
|
|
189
|
-
/*
|
|
190
|
+
/* 21 */
|
|
190
191
|
/***/ function(module, exports, __webpack_require__) {
|
|
191
192
|
|
|
192
193
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
193
194
|
var IObject = __webpack_require__(30)
|
|
194
|
-
, defined = __webpack_require__(
|
|
195
|
+
, defined = __webpack_require__(17);
|
|
195
196
|
module.exports = function(it){
|
|
196
197
|
return IObject(defined(it));
|
|
197
198
|
};
|
|
198
199
|
|
|
199
200
|
/***/ },
|
|
200
|
-
/*
|
|
201
|
+
/* 22 */
|
|
201
202
|
/***/ function(module, exports, __webpack_require__) {
|
|
202
203
|
|
|
203
204
|
var store = __webpack_require__(34)('wks')
|
|
@@ -213,7 +214,6 @@ module.exports =
|
|
|
213
214
|
$exports.store = store;
|
|
214
215
|
|
|
215
216
|
/***/ },
|
|
216
|
-
/* 22 */,
|
|
217
217
|
/* 23 */
|
|
218
218
|
/***/ function(module, exports, __webpack_require__) {
|
|
219
219
|
|
|
@@ -379,7 +379,7 @@ module.exports =
|
|
|
379
379
|
/***/ function(module, exports, __webpack_require__) {
|
|
380
380
|
|
|
381
381
|
// 7.1.13 ToObject(argument)
|
|
382
|
-
var defined = __webpack_require__(
|
|
382
|
+
var defined = __webpack_require__(17);
|
|
383
383
|
module.exports = function(it){
|
|
384
384
|
return Object(defined(it));
|
|
385
385
|
};
|
|
@@ -466,7 +466,7 @@ module.exports =
|
|
|
466
466
|
|
|
467
467
|
// false -> Array#indexOf
|
|
468
468
|
// true -> Array#includes
|
|
469
|
-
var toIObject = __webpack_require__(
|
|
469
|
+
var toIObject = __webpack_require__(21)
|
|
470
470
|
, toLength = __webpack_require__(47)
|
|
471
471
|
, toIndex = __webpack_require__(46);
|
|
472
472
|
module.exports = function(IS_INCLUDES){
|
|
@@ -523,8 +523,8 @@ module.exports =
|
|
|
523
523
|
/* 45 */
|
|
524
524
|
/***/ function(module, exports, __webpack_require__) {
|
|
525
525
|
|
|
526
|
-
var has = __webpack_require__(
|
|
527
|
-
, toIObject = __webpack_require__(
|
|
526
|
+
var has = __webpack_require__(18)
|
|
527
|
+
, toIObject = __webpack_require__(21)
|
|
528
528
|
, arrayIndexOf = __webpack_require__(42)(false)
|
|
529
529
|
, IE_PROTO = __webpack_require__(24)('IE_PROTO');
|
|
530
530
|
|
|
@@ -545,7 +545,7 @@ module.exports =
|
|
|
545
545
|
/* 46 */
|
|
546
546
|
/***/ function(module, exports, __webpack_require__) {
|
|
547
547
|
|
|
548
|
-
var toInteger = __webpack_require__(
|
|
548
|
+
var toInteger = __webpack_require__(20)
|
|
549
549
|
, max = Math.max
|
|
550
550
|
, min = Math.min;
|
|
551
551
|
module.exports = function(index, length){
|
|
@@ -558,7 +558,7 @@ module.exports =
|
|
|
558
558
|
/***/ function(module, exports, __webpack_require__) {
|
|
559
559
|
|
|
560
560
|
// 7.1.15 ToLength
|
|
561
|
-
var toInteger = __webpack_require__(
|
|
561
|
+
var toInteger = __webpack_require__(20)
|
|
562
562
|
, min = Math.min;
|
|
563
563
|
module.exports = function(it){
|
|
564
564
|
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
|
@@ -595,12 +595,12 @@ module.exports =
|
|
|
595
595
|
, $export = __webpack_require__(23)
|
|
596
596
|
, redefine = __webpack_require__(255)
|
|
597
597
|
, hide = __webpack_require__(13)
|
|
598
|
-
, has = __webpack_require__(
|
|
598
|
+
, has = __webpack_require__(18)
|
|
599
599
|
, Iterators = __webpack_require__(31)
|
|
600
600
|
, $iterCreate = __webpack_require__(245)
|
|
601
601
|
, setToStringTag = __webpack_require__(55)
|
|
602
602
|
, getPrototypeOf = __webpack_require__(252)
|
|
603
|
-
, ITERATOR = __webpack_require__(
|
|
603
|
+
, ITERATOR = __webpack_require__(22)('iterator')
|
|
604
604
|
, BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`
|
|
605
605
|
, FF_ITERATOR = '@@iterator'
|
|
606
606
|
, KEYS = 'keys'
|
|
@@ -665,9 +665,9 @@ module.exports =
|
|
|
665
665
|
/* 55 */
|
|
666
666
|
/***/ function(module, exports, __webpack_require__) {
|
|
667
667
|
|
|
668
|
-
var def = __webpack_require__(
|
|
669
|
-
, has = __webpack_require__(
|
|
670
|
-
, TAG = __webpack_require__(
|
|
668
|
+
var def = __webpack_require__(19).f
|
|
669
|
+
, has = __webpack_require__(18)
|
|
670
|
+
, TAG = __webpack_require__(22)('toStringTag');
|
|
671
671
|
|
|
672
672
|
module.exports = function(it, tag, stat){
|
|
673
673
|
if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
|
|
@@ -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 ?
|
|
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
|
-
) :
|
|
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: {
|
|
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
|
})
|
|
@@ -2047,7 +2054,7 @@ module.exports =
|
|
|
2047
2054
|
|
|
2048
2055
|
// getting tag from 19.1.3.6 Object.prototype.toString()
|
|
2049
2056
|
var cof = __webpack_require__(27)
|
|
2050
|
-
, TAG = __webpack_require__(
|
|
2057
|
+
, TAG = __webpack_require__(22)('toStringTag')
|
|
2051
2058
|
// ES3 wrong here
|
|
2052
2059
|
, ARG = cof(function(){ return arguments; }()) == 'Arguments';
|
|
2053
2060
|
|
|
@@ -2086,7 +2093,7 @@ module.exports =
|
|
|
2086
2093
|
, IteratorPrototype = {};
|
|
2087
2094
|
|
|
2088
2095
|
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
|
2089
|
-
__webpack_require__(13)(IteratorPrototype, __webpack_require__(
|
|
2096
|
+
__webpack_require__(13)(IteratorPrototype, __webpack_require__(22)('iterator'), function(){ return this; });
|
|
2090
2097
|
|
|
2091
2098
|
module.exports = function(Constructor, NAME, next){
|
|
2092
2099
|
Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)});
|
|
@@ -2113,7 +2120,7 @@ module.exports =
|
|
|
2113
2120
|
/***/ function(module, exports, __webpack_require__) {
|
|
2114
2121
|
|
|
2115
2122
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
2116
|
-
var anObject = __webpack_require__(
|
|
2123
|
+
var anObject = __webpack_require__(16)
|
|
2117
2124
|
, dPs = __webpack_require__(250)
|
|
2118
2125
|
, enumBugKeys = __webpack_require__(29)
|
|
2119
2126
|
, IE_PROTO = __webpack_require__(24)('IE_PROTO')
|
|
@@ -2159,8 +2166,8 @@ module.exports =
|
|
|
2159
2166
|
/* 250 */
|
|
2160
2167
|
/***/ function(module, exports, __webpack_require__) {
|
|
2161
2168
|
|
|
2162
|
-
var dP = __webpack_require__(
|
|
2163
|
-
, anObject = __webpack_require__(
|
|
2169
|
+
var dP = __webpack_require__(19)
|
|
2170
|
+
, anObject = __webpack_require__(16)
|
|
2164
2171
|
, getKeys = __webpack_require__(32);
|
|
2165
2172
|
|
|
2166
2173
|
module.exports = __webpack_require__(10) ? Object.defineProperties : function defineProperties(O, Properties){
|
|
@@ -2179,7 +2186,7 @@ module.exports =
|
|
|
2179
2186
|
/***/ function(module, exports, __webpack_require__) {
|
|
2180
2187
|
|
|
2181
2188
|
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
|
|
2182
|
-
var has = __webpack_require__(
|
|
2189
|
+
var has = __webpack_require__(18)
|
|
2183
2190
|
, toObject = __webpack_require__(35)
|
|
2184
2191
|
, IE_PROTO = __webpack_require__(24)('IE_PROTO')
|
|
2185
2192
|
, ObjectProto = Object.prototype;
|
|
@@ -2218,8 +2225,8 @@ module.exports =
|
|
|
2218
2225
|
/* 256 */
|
|
2219
2226
|
/***/ function(module, exports, __webpack_require__) {
|
|
2220
2227
|
|
|
2221
|
-
var toInteger = __webpack_require__(
|
|
2222
|
-
, defined = __webpack_require__(
|
|
2228
|
+
var toInteger = __webpack_require__(20)
|
|
2229
|
+
, defined = __webpack_require__(17);
|
|
2223
2230
|
// true -> String#at
|
|
2224
2231
|
// false -> String#codePointAt
|
|
2225
2232
|
module.exports = function(TO_STRING){
|
|
@@ -2241,7 +2248,7 @@ module.exports =
|
|
|
2241
2248
|
/***/ function(module, exports, __webpack_require__) {
|
|
2242
2249
|
|
|
2243
2250
|
var classof = __webpack_require__(243)
|
|
2244
|
-
, ITERATOR = __webpack_require__(
|
|
2251
|
+
, ITERATOR = __webpack_require__(22)('iterator')
|
|
2245
2252
|
, Iterators = __webpack_require__(31);
|
|
2246
2253
|
module.exports = __webpack_require__(9).getIteratorMethod = function(it){
|
|
2247
2254
|
if(it != undefined)return it[ITERATOR]
|
|
@@ -2253,7 +2260,7 @@ module.exports =
|
|
|
2253
2260
|
/* 258 */
|
|
2254
2261
|
/***/ function(module, exports, __webpack_require__) {
|
|
2255
2262
|
|
|
2256
|
-
var anObject = __webpack_require__(
|
|
2263
|
+
var anObject = __webpack_require__(16)
|
|
2257
2264
|
, get = __webpack_require__(257);
|
|
2258
2265
|
module.exports = __webpack_require__(9).getIterator = function(it){
|
|
2259
2266
|
var iterFn = get(it);
|
|
@@ -2269,7 +2276,7 @@ module.exports =
|
|
|
2269
2276
|
var addToUnscopables = __webpack_require__(242)
|
|
2270
2277
|
, step = __webpack_require__(246)
|
|
2271
2278
|
, Iterators = __webpack_require__(31)
|
|
2272
|
-
, toIObject = __webpack_require__(
|
|
2279
|
+
, toIObject = __webpack_require__(21);
|
|
2273
2280
|
|
|
2274
2281
|
// 22.1.3.4 Array.prototype.entries()
|
|
2275
2282
|
// 22.1.3.13 Array.prototype.keys()
|
|
@@ -2346,7 +2353,7 @@ module.exports =
|
|
|
2346
2353
|
var global = __webpack_require__(7)
|
|
2347
2354
|
, hide = __webpack_require__(13)
|
|
2348
2355
|
, Iterators = __webpack_require__(31)
|
|
2349
|
-
, TO_STRING_TAG = __webpack_require__(
|
|
2356
|
+
, TO_STRING_TAG = __webpack_require__(22)('toStringTag');
|
|
2350
2357
|
|
|
2351
2358
|
for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){
|
|
2352
2359
|
var NAME = collections[i]
|