@limetech/lime-elements 40.5.2 → 40.6.0
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/CHANGELOG.md +25 -0
- package/dist/cjs/{_baseEach-Bygi-un6.js → _baseForOwn-8jMPwf3X.js} +1 -43
- package/dist/cjs/{_baseIsEqual-CQZKiKbe.js → _baseIsEqual-zzV9DKMv.js} +0 -1
- package/dist/cjs/{_baseIteratee-DDklwtn9.js → _baseIteratee-BIMRm4nq.js} +1 -3
- package/dist/cjs/_baseSet-DykMx7uF.js +92 -0
- package/dist/cjs/_getPrototype-CCLHkBHj.js +8 -0
- package/dist/cjs/{cloneDeep-hE40Q8aw.js → cloneDeep-D2immmwT.js} +16 -160
- package/dist/cjs/{index-ETPz91V5.js → index-zZvs6xK-.js} +9382 -9504
- package/dist/cjs/{difference-B543MGsY.js → isArrayLikeObject-U2Ddbw4n.js} +5 -93
- package/dist/cjs/{isEqual-Cd9J8a5-.js → isEqual-D3eFkhqd.js} +1 -1
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
- package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +45 -6
- package/dist/cjs/limel-file-viewer.cjs.entry.js +511 -71
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +73 -11
- package/dist/cjs/limel-form.cjs.entry.js +1857 -1919
- package/dist/cjs/limel-markdown.cjs.entry.js +28 -4
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +328 -264
- package/dist/cjs/limel-tab-bar.cjs.entry.js +83 -4
- package/dist/cjs/limel-table.cjs.entry.js +598 -199
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/markdown-exporter-9p7d3Q76.js +6210 -0
- package/dist/cjs/{markdown-parser-YH5HSSgF.js → markdown-parser-Cgv5Y9Z4.js} +579 -848
- package/dist/collection/components/action-bar/action-bar-item/action-bar-item.css +1 -1
- package/dist/collection/components/form/fields/schema-field.js +8 -0
- package/dist/collection/components/form/form.js +1 -0
- package/dist/collection/components/form/form.test-schemas.js +47 -0
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +38 -11
- package/dist/collection/components/markdown/markdown-exporter.js +186 -0
- package/dist/collection/components/markdown/markdown-parser.js +2 -3
- package/dist/collection/components/markdown/markdown.js +54 -2
- package/dist/collection/components/table/table.css +1 -2
- package/dist/esm/{_baseEach-lvj-g1Zj.js → _baseForOwn-D5j7fHlv.js} +2 -42
- package/dist/esm/{_baseIsEqual-B6bIeexY.js → _baseIsEqual-CyF4P8uM.js} +2 -2
- package/dist/esm/{_baseIteratee-CEZRuq23.js → _baseIteratee-CpbczHY1.js} +3 -3
- package/dist/esm/_baseSet-Cw2IE6ZF.js +89 -0
- package/dist/esm/_getPrototype-B0kMNv1F.js +6 -0
- package/dist/esm/{_getTag-CMJL-6hk.js → _getTag-BiAaLWvH.js} +1 -1
- package/dist/esm/{cloneDeep-CL7UD3mR.js → cloneDeep-DAbOtbs8.js} +18 -154
- package/dist/esm/{index-CbciMfiU.js → index-BN64nlbO.js} +9369 -9505
- package/dist/esm/{difference-DND5tWiA.js → isArrayLikeObject-CJB8HbtH.js} +7 -91
- package/dist/esm/{isEmpty-DHgukT5k.js → isEmpty-BGVZ12Ea.js} +1 -1
- package/dist/esm/{isEqual-4tbMaaf_.js → isEqual-CE83yS8T.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-action-bar_3.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +3 -3
- package/dist/esm/limel-chip_2.entry.js +2 -2
- package/dist/esm/limel-dialog.entry.js +3 -3
- package/dist/esm/limel-file-dropzone_2.entry.js +45 -6
- package/dist/esm/limel-file-viewer.entry.js +511 -71
- package/dist/esm/limel-flatpickr-adapter.entry.js +69 -7
- package/dist/esm/limel-form.entry.js +1854 -1916
- package/dist/esm/limel-markdown.entry.js +28 -4
- package/dist/esm/limel-prosemirror-adapter.entry.js +329 -265
- package/dist/esm/limel-tab-bar.entry.js +83 -4
- package/dist/esm/limel-table.entry.js +595 -196
- package/dist/esm/loader.js +1 -1
- package/dist/esm/markdown-exporter--3_MaqwD.js +6208 -0
- package/dist/esm/{markdown-parser-DrxxGLF5.js → markdown-parser-DCf-3dKZ.js} +506 -791
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-0fba64eb.entry.js +16 -0
- package/dist/lime-elements/p-19344984.entry.js +13 -0
- package/dist/lime-elements/p-20658306.entry.js +1 -0
- package/dist/lime-elements/p-26c5c6b9.entry.js +1 -0
- package/dist/lime-elements/{p-11a96a8c.entry.js → p-36ce4fbc.entry.js} +1 -1
- package/dist/lime-elements/{p-955292eb.entry.js → p-4aae63bd.entry.js} +1 -1
- package/dist/lime-elements/{p-b8c76487.entry.js → p-5d974afa.entry.js} +1 -1
- package/dist/lime-elements/p-B6-3WXAv.js +1 -0
- package/dist/lime-elements/p-BPzhuHcl.js +1 -0
- package/dist/lime-elements/p-BQeIv4aA.js +1 -0
- package/dist/lime-elements/p-BY5NjPj8.js +1 -0
- package/dist/lime-elements/p-CC4Usa-Q.js +7 -0
- package/dist/lime-elements/p-COdirXg1.js +1 -0
- package/dist/lime-elements/p-CW2-jhzP.js +1 -0
- package/dist/lime-elements/p-D2VFSWDU.js +1 -0
- package/dist/lime-elements/{p-D4RdItCq.js → p-DK0pjX-Y.js} +1 -1
- package/dist/lime-elements/p-ORUNaKm-.js +1 -0
- package/dist/lime-elements/p-_UXAljNc.js +1 -0
- package/dist/lime-elements/{p-5b371d6b.entry.js → p-a71f6e87.entry.js} +4 -4
- package/dist/lime-elements/p-cef66e53.entry.js +1 -0
- package/dist/lime-elements/{p-02812dc8.entry.js → p-d3bd4b80.entry.js} +1 -1
- package/dist/lime-elements/p-dc9cd793.entry.js +1 -0
- package/dist/lime-elements/p-dd62042a.entry.js +1 -0
- package/dist/lime-elements/p-nVemxylR.js +1 -0
- package/dist/lime-elements/p-pk5KIdKH.js +1 -0
- package/dist/types/components/form/form.test-schemas.d.ts +3 -0
- package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +0 -1
- package/dist/types/components/markdown/markdown-exporter.d.ts +15 -0
- package/dist/types/components/markdown/markdown.d.ts +19 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/types/global/shared-types/custom-element.types.d.ts +25 -0
- package/package.json +17 -11
- package/dist/cjs/_getAllKeysIn-BJsgUTAt.js +0 -119
- package/dist/cjs/_isIterateeCall-BUGt9SrH.js +0 -73
- package/dist/cjs/pickBy-D-X6S5kg.js +0 -201
- package/dist/esm/_getAllKeysIn-kT3KizYN.js +0 -114
- package/dist/esm/_isIterateeCall-Bb4gUZLK.js +0 -70
- package/dist/esm/pickBy-C4C3CM4m.js +0 -195
- package/dist/lime-elements/p-1e085bbe.entry.js +0 -13
- package/dist/lime-elements/p-56bkn1D-.js +0 -1
- package/dist/lime-elements/p-67f02b69.entry.js +0 -1
- package/dist/lime-elements/p-6d5b23ad.entry.js +0 -1
- package/dist/lime-elements/p-867681aa.entry.js +0 -1
- package/dist/lime-elements/p-9d3437ac.entry.js +0 -16
- package/dist/lime-elements/p-B8yl2MCT.js +0 -1
- package/dist/lime-elements/p-BAR6am-7.js +0 -1
- package/dist/lime-elements/p-BE1Efiuj.js +0 -1
- package/dist/lime-elements/p-BsX7ma3n.js +0 -1
- package/dist/lime-elements/p-C9xHOCE_.js +0 -7
- package/dist/lime-elements/p-CR7u-m0b.js +0 -1
- package/dist/lime-elements/p-CVzgpz9P.js +0 -1
- package/dist/lime-elements/p-D8H5afYg.js +0 -1
- package/dist/lime-elements/p-DMNtoJ8I.js +0 -1
- package/dist/lime-elements/p-DtrvybFR.js +0 -1
- package/dist/lime-elements/p-f309ceb8.entry.js +0 -1
- package/dist/lime-elements/p-f3c108c9.entry.js +0 -1
- package/dist/lime-elements/p-mmkVLOjW.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as isObject,
|
|
5
|
-
import {
|
|
1
|
+
import { U as Uint8Array, a as Stack, g as getAllKeys } from './_baseIsEqual-CyF4P8uM.js';
|
|
2
|
+
import { a as assignValue } from './_assignValue-CEFvyZxO.js';
|
|
3
|
+
import { d as isPrototype, g as getTag, e as baseUnary, n as nodeUtil, a as isBuffer } from './_getTag-BiAaLWvH.js';
|
|
4
|
+
import { i as isObject, S as Symbol } from './isObject-BJQylLSL.js';
|
|
5
|
+
import { g as getPrototype } from './_getPrototype-B0kMNv1F.js';
|
|
6
6
|
import { i as isArray } from './isArray-B8VKuhvH.js';
|
|
7
7
|
import { i as isObjectLike } from './isObjectLike-oiMYqRQ0.js';
|
|
8
8
|
|
|
@@ -33,25 +33,6 @@ var baseCreate = (function() {
|
|
|
33
33
|
};
|
|
34
34
|
}());
|
|
35
35
|
|
|
36
|
-
/**
|
|
37
|
-
* Copies the values of `source` to `array`.
|
|
38
|
-
*
|
|
39
|
-
* @private
|
|
40
|
-
* @param {Array} source The array to copy values from.
|
|
41
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
42
|
-
* @returns {Array} Returns `array`.
|
|
43
|
-
*/
|
|
44
|
-
function copyArray(source, array) {
|
|
45
|
-
var index = -1,
|
|
46
|
-
length = source.length;
|
|
47
|
-
|
|
48
|
-
array || (array = Array(length));
|
|
49
|
-
while (++index < length) {
|
|
50
|
-
array[index] = source[index];
|
|
51
|
-
}
|
|
52
|
-
return array;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
36
|
/**
|
|
56
37
|
* A specialized version of `_.forEach` for arrays without support for
|
|
57
38
|
* iteratee shorthands.
|
|
@@ -73,78 +54,11 @@ function arrayEach(array, iteratee) {
|
|
|
73
54
|
return array;
|
|
74
55
|
}
|
|
75
56
|
|
|
76
|
-
/**
|
|
77
|
-
* Copies properties of `source` to `object`.
|
|
78
|
-
*
|
|
79
|
-
* @private
|
|
80
|
-
* @param {Object} source The object to copy properties from.
|
|
81
|
-
* @param {Array} props The property identifiers to copy.
|
|
82
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
83
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
84
|
-
* @returns {Object} Returns `object`.
|
|
85
|
-
*/
|
|
86
|
-
function copyObject(source, props, object, customizer) {
|
|
87
|
-
var isNew = !object;
|
|
88
|
-
object || (object = {});
|
|
89
|
-
|
|
90
|
-
var index = -1,
|
|
91
|
-
length = props.length;
|
|
92
|
-
|
|
93
|
-
while (++index < length) {
|
|
94
|
-
var key = props[index];
|
|
95
|
-
|
|
96
|
-
var newValue = undefined;
|
|
97
|
-
|
|
98
|
-
if (newValue === undefined) {
|
|
99
|
-
newValue = source[key];
|
|
100
|
-
}
|
|
101
|
-
if (isNew) {
|
|
102
|
-
baseAssignValue(object, key, newValue);
|
|
103
|
-
} else {
|
|
104
|
-
assignValue(object, key, newValue);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return object;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The base implementation of `_.assign` without support for multiple sources
|
|
112
|
-
* or `customizer` functions.
|
|
113
|
-
*
|
|
114
|
-
* @private
|
|
115
|
-
* @param {Object} object The destination object.
|
|
116
|
-
* @param {Object} source The source object.
|
|
117
|
-
* @returns {Object} Returns `object`.
|
|
118
|
-
*/
|
|
119
|
-
function baseAssign(object, source) {
|
|
120
|
-
return object && copyObject(source, keys(source), object);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* The base implementation of `_.assignIn` without support for multiple sources
|
|
125
|
-
* or `customizer` functions.
|
|
126
|
-
*
|
|
127
|
-
* @private
|
|
128
|
-
* @param {Object} object The destination object.
|
|
129
|
-
* @param {Object} source The source object.
|
|
130
|
-
* @returns {Object} Returns `object`.
|
|
131
|
-
*/
|
|
132
|
-
function baseAssignIn(object, source) {
|
|
133
|
-
return object && copyObject(source, keysIn(source), object);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
57
|
/** Detect free variable `exports`. */
|
|
137
58
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
138
59
|
|
|
139
60
|
/** Detect free variable `module`. */
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
143
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
144
|
-
|
|
145
|
-
/** Built-in value references. */
|
|
146
|
-
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
147
|
-
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
61
|
+
freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
148
62
|
|
|
149
63
|
/**
|
|
150
64
|
* Creates a clone of `buffer`.
|
|
@@ -155,38 +69,9 @@ var Buffer = moduleExports ? root.Buffer : undefined,
|
|
|
155
69
|
* @returns {Buffer} Returns the cloned buffer.
|
|
156
70
|
*/
|
|
157
71
|
function cloneBuffer(buffer, isDeep) {
|
|
158
|
-
|
|
72
|
+
{
|
|
159
73
|
return buffer.slice();
|
|
160
74
|
}
|
|
161
|
-
var length = buffer.length,
|
|
162
|
-
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
163
|
-
|
|
164
|
-
buffer.copy(result);
|
|
165
|
-
return result;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Copies own symbols of `source` to `object`.
|
|
170
|
-
*
|
|
171
|
-
* @private
|
|
172
|
-
* @param {Object} source The object to copy symbols from.
|
|
173
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
174
|
-
* @returns {Object} Returns `object`.
|
|
175
|
-
*/
|
|
176
|
-
function copySymbols(source, object) {
|
|
177
|
-
return copyObject(source, getSymbols(source), object);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Copies own and inherited symbols of `source` to `object`.
|
|
182
|
-
*
|
|
183
|
-
* @private
|
|
184
|
-
* @param {Object} source The object to copy symbols from.
|
|
185
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
186
|
-
* @returns {Object} Returns `object`.
|
|
187
|
-
*/
|
|
188
|
-
function copySymbolsIn(source, object) {
|
|
189
|
-
return copyObject(source, getSymbolsIn(source), object);
|
|
190
75
|
}
|
|
191
76
|
|
|
192
77
|
/** Used for built-in method references. */
|
|
@@ -236,7 +121,7 @@ function cloneArrayBuffer(arrayBuffer) {
|
|
|
236
121
|
* @returns {Object} Returns the cloned data view.
|
|
237
122
|
*/
|
|
238
123
|
function cloneDataView(dataView, isDeep) {
|
|
239
|
-
var buffer =
|
|
124
|
+
var buffer = cloneArrayBuffer(dataView.buffer) ;
|
|
240
125
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
241
126
|
}
|
|
242
127
|
|
|
@@ -280,7 +165,7 @@ function cloneSymbol(symbol) {
|
|
|
280
165
|
* @returns {Object} Returns the cloned typed array.
|
|
281
166
|
*/
|
|
282
167
|
function cloneTypedArray(typedArray, isDeep) {
|
|
283
|
-
var buffer =
|
|
168
|
+
var buffer = cloneArrayBuffer(typedArray.buffer) ;
|
|
284
169
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
285
170
|
}
|
|
286
171
|
|
|
@@ -329,12 +214,12 @@ function initCloneByTag(object, tag, isDeep) {
|
|
|
329
214
|
return new Ctor(+object);
|
|
330
215
|
|
|
331
216
|
case dataViewTag$1:
|
|
332
|
-
return cloneDataView(object
|
|
217
|
+
return cloneDataView(object);
|
|
333
218
|
|
|
334
219
|
case float32Tag$1: case float64Tag$1:
|
|
335
220
|
case int8Tag$1: case int16Tag$1: case int32Tag$1:
|
|
336
221
|
case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
|
|
337
|
-
return cloneTypedArray(object
|
|
222
|
+
return cloneTypedArray(object);
|
|
338
223
|
|
|
339
224
|
case mapTag$2:
|
|
340
225
|
return new Ctor;
|
|
@@ -439,11 +324,6 @@ var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
|
439
324
|
*/
|
|
440
325
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
441
326
|
|
|
442
|
-
/** Used to compose bitmasks for cloning. */
|
|
443
|
-
var CLONE_DEEP_FLAG$1 = 1,
|
|
444
|
-
CLONE_FLAT_FLAG = 2,
|
|
445
|
-
CLONE_SYMBOLS_FLAG$1 = 4;
|
|
446
|
-
|
|
447
327
|
/** `Object#toString` result references. */
|
|
448
328
|
var argsTag = '[object Arguments]',
|
|
449
329
|
arrayTag = '[object Array]',
|
|
@@ -506,14 +386,7 @@ cloneableTags[weakMapTag] = false;
|
|
|
506
386
|
* @returns {*} Returns the cloned value.
|
|
507
387
|
*/
|
|
508
388
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
509
|
-
var result
|
|
510
|
-
isDeep = bitmask & CLONE_DEEP_FLAG$1,
|
|
511
|
-
isFlat = bitmask & CLONE_FLAT_FLAG,
|
|
512
|
-
isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
513
|
-
|
|
514
|
-
if (customizer) {
|
|
515
|
-
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
516
|
-
}
|
|
389
|
+
var result;
|
|
517
390
|
if (result !== undefined) {
|
|
518
391
|
return result;
|
|
519
392
|
}
|
|
@@ -523,28 +396,20 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
523
396
|
var isArr = isArray(value);
|
|
524
397
|
if (isArr) {
|
|
525
398
|
result = initCloneArray(value);
|
|
526
|
-
if (!isDeep) {
|
|
527
|
-
return copyArray(value, result);
|
|
528
|
-
}
|
|
529
399
|
} else {
|
|
530
400
|
var tag = getTag(value),
|
|
531
401
|
isFunc = tag == funcTag || tag == genTag;
|
|
532
402
|
|
|
533
403
|
if (isBuffer(value)) {
|
|
534
|
-
return cloneBuffer(value
|
|
404
|
+
return cloneBuffer(value);
|
|
535
405
|
}
|
|
536
406
|
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
|
537
|
-
result = (
|
|
538
|
-
if (!isDeep) {
|
|
539
|
-
return isFlat
|
|
540
|
-
? copySymbolsIn(value, baseAssignIn(result, value))
|
|
541
|
-
: copySymbols(value, baseAssign(result, value));
|
|
542
|
-
}
|
|
407
|
+
result = (isFunc) ? {} : initCloneObject(value);
|
|
543
408
|
} else {
|
|
544
409
|
if (!cloneableTags[tag]) {
|
|
545
410
|
return object ? value : {};
|
|
546
411
|
}
|
|
547
|
-
result = initCloneByTag(value, tag
|
|
412
|
+
result = initCloneByTag(value, tag);
|
|
548
413
|
}
|
|
549
414
|
}
|
|
550
415
|
// Check for circular references and return its corresponding clone.
|
|
@@ -565,9 +430,8 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
|
565
430
|
});
|
|
566
431
|
}
|
|
567
432
|
|
|
568
|
-
var keysFunc =
|
|
569
|
-
|
|
570
|
-
: (isFlat ? keysIn : keys);
|
|
433
|
+
var keysFunc = (getAllKeys)
|
|
434
|
+
;
|
|
571
435
|
|
|
572
436
|
var props = isArr ? undefined : keysFunc(value);
|
|
573
437
|
arrayEach(props || value, function(subValue, key) {
|
|
@@ -607,4 +471,4 @@ function cloneDeep(value) {
|
|
|
607
471
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
608
472
|
}
|
|
609
473
|
|
|
610
|
-
export {
|
|
474
|
+
export { cloneDeep as c };
|