@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.
Files changed (119) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/{_baseEach-Bygi-un6.js → _baseForOwn-8jMPwf3X.js} +1 -43
  3. package/dist/cjs/{_baseIsEqual-CQZKiKbe.js → _baseIsEqual-zzV9DKMv.js} +0 -1
  4. package/dist/cjs/{_baseIteratee-DDklwtn9.js → _baseIteratee-BIMRm4nq.js} +1 -3
  5. package/dist/cjs/_baseSet-DykMx7uF.js +92 -0
  6. package/dist/cjs/_getPrototype-CCLHkBHj.js +8 -0
  7. package/dist/cjs/{cloneDeep-hE40Q8aw.js → cloneDeep-D2immmwT.js} +16 -160
  8. package/dist/cjs/{index-ETPz91V5.js → index-zZvs6xK-.js} +9382 -9504
  9. package/dist/cjs/{difference-B543MGsY.js → isArrayLikeObject-U2Ddbw4n.js} +5 -93
  10. package/dist/cjs/{isEqual-Cd9J8a5-.js → isEqual-D3eFkhqd.js} +1 -1
  11. package/dist/cjs/lime-elements.cjs.js +1 -1
  12. package/dist/cjs/limel-action-bar_3.cjs.entry.js +1 -1
  13. package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
  14. package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
  15. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +45 -6
  16. package/dist/cjs/limel-file-viewer.cjs.entry.js +511 -71
  17. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +73 -11
  18. package/dist/cjs/limel-form.cjs.entry.js +1857 -1919
  19. package/dist/cjs/limel-markdown.cjs.entry.js +28 -4
  20. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +328 -264
  21. package/dist/cjs/limel-tab-bar.cjs.entry.js +83 -4
  22. package/dist/cjs/limel-table.cjs.entry.js +598 -199
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/cjs/markdown-exporter-9p7d3Q76.js +6210 -0
  25. package/dist/cjs/{markdown-parser-YH5HSSgF.js → markdown-parser-Cgv5Y9Z4.js} +579 -848
  26. package/dist/collection/components/action-bar/action-bar-item/action-bar-item.css +1 -1
  27. package/dist/collection/components/form/fields/schema-field.js +8 -0
  28. package/dist/collection/components/form/form.js +1 -0
  29. package/dist/collection/components/form/form.test-schemas.js +47 -0
  30. package/dist/collection/components/form/templates/array-field-collapsible-item.js +38 -11
  31. package/dist/collection/components/markdown/markdown-exporter.js +186 -0
  32. package/dist/collection/components/markdown/markdown-parser.js +2 -3
  33. package/dist/collection/components/markdown/markdown.js +54 -2
  34. package/dist/collection/components/table/table.css +1 -2
  35. package/dist/esm/{_baseEach-lvj-g1Zj.js → _baseForOwn-D5j7fHlv.js} +2 -42
  36. package/dist/esm/{_baseIsEqual-B6bIeexY.js → _baseIsEqual-CyF4P8uM.js} +2 -2
  37. package/dist/esm/{_baseIteratee-CEZRuq23.js → _baseIteratee-CpbczHY1.js} +3 -3
  38. package/dist/esm/_baseSet-Cw2IE6ZF.js +89 -0
  39. package/dist/esm/_getPrototype-B0kMNv1F.js +6 -0
  40. package/dist/esm/{_getTag-CMJL-6hk.js → _getTag-BiAaLWvH.js} +1 -1
  41. package/dist/esm/{cloneDeep-CL7UD3mR.js → cloneDeep-DAbOtbs8.js} +18 -154
  42. package/dist/esm/{index-CbciMfiU.js → index-BN64nlbO.js} +9369 -9505
  43. package/dist/esm/{difference-DND5tWiA.js → isArrayLikeObject-CJB8HbtH.js} +7 -91
  44. package/dist/esm/{isEmpty-DHgukT5k.js → isEmpty-BGVZ12Ea.js} +1 -1
  45. package/dist/esm/{isEqual-4tbMaaf_.js → isEqual-CE83yS8T.js} +1 -1
  46. package/dist/esm/lime-elements.js +1 -1
  47. package/dist/esm/limel-action-bar_3.entry.js +1 -1
  48. package/dist/esm/limel-chip-set.entry.js +3 -3
  49. package/dist/esm/limel-chip_2.entry.js +2 -2
  50. package/dist/esm/limel-dialog.entry.js +3 -3
  51. package/dist/esm/limel-file-dropzone_2.entry.js +45 -6
  52. package/dist/esm/limel-file-viewer.entry.js +511 -71
  53. package/dist/esm/limel-flatpickr-adapter.entry.js +69 -7
  54. package/dist/esm/limel-form.entry.js +1854 -1916
  55. package/dist/esm/limel-markdown.entry.js +28 -4
  56. package/dist/esm/limel-prosemirror-adapter.entry.js +329 -265
  57. package/dist/esm/limel-tab-bar.entry.js +83 -4
  58. package/dist/esm/limel-table.entry.js +595 -196
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/esm/markdown-exporter--3_MaqwD.js +6208 -0
  61. package/dist/esm/{markdown-parser-DrxxGLF5.js → markdown-parser-DCf-3dKZ.js} +506 -791
  62. package/dist/lime-elements/lime-elements.esm.js +1 -1
  63. package/dist/lime-elements/p-0fba64eb.entry.js +16 -0
  64. package/dist/lime-elements/p-19344984.entry.js +13 -0
  65. package/dist/lime-elements/p-20658306.entry.js +1 -0
  66. package/dist/lime-elements/p-26c5c6b9.entry.js +1 -0
  67. package/dist/lime-elements/{p-11a96a8c.entry.js → p-36ce4fbc.entry.js} +1 -1
  68. package/dist/lime-elements/{p-955292eb.entry.js → p-4aae63bd.entry.js} +1 -1
  69. package/dist/lime-elements/{p-b8c76487.entry.js → p-5d974afa.entry.js} +1 -1
  70. package/dist/lime-elements/p-B6-3WXAv.js +1 -0
  71. package/dist/lime-elements/p-BPzhuHcl.js +1 -0
  72. package/dist/lime-elements/p-BQeIv4aA.js +1 -0
  73. package/dist/lime-elements/p-BY5NjPj8.js +1 -0
  74. package/dist/lime-elements/p-CC4Usa-Q.js +7 -0
  75. package/dist/lime-elements/p-COdirXg1.js +1 -0
  76. package/dist/lime-elements/p-CW2-jhzP.js +1 -0
  77. package/dist/lime-elements/p-D2VFSWDU.js +1 -0
  78. package/dist/lime-elements/{p-D4RdItCq.js → p-DK0pjX-Y.js} +1 -1
  79. package/dist/lime-elements/p-ORUNaKm-.js +1 -0
  80. package/dist/lime-elements/p-_UXAljNc.js +1 -0
  81. package/dist/lime-elements/{p-5b371d6b.entry.js → p-a71f6e87.entry.js} +4 -4
  82. package/dist/lime-elements/p-cef66e53.entry.js +1 -0
  83. package/dist/lime-elements/{p-02812dc8.entry.js → p-d3bd4b80.entry.js} +1 -1
  84. package/dist/lime-elements/p-dc9cd793.entry.js +1 -0
  85. package/dist/lime-elements/p-dd62042a.entry.js +1 -0
  86. package/dist/lime-elements/p-nVemxylR.js +1 -0
  87. package/dist/lime-elements/p-pk5KIdKH.js +1 -0
  88. package/dist/types/components/form/form.test-schemas.d.ts +3 -0
  89. package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +0 -1
  90. package/dist/types/components/markdown/markdown-exporter.d.ts +15 -0
  91. package/dist/types/components/markdown/markdown.d.ts +19 -0
  92. package/dist/types/components.d.ts +10 -0
  93. package/dist/types/global/shared-types/custom-element.types.d.ts +25 -0
  94. package/package.json +17 -11
  95. package/dist/cjs/_getAllKeysIn-BJsgUTAt.js +0 -119
  96. package/dist/cjs/_isIterateeCall-BUGt9SrH.js +0 -73
  97. package/dist/cjs/pickBy-D-X6S5kg.js +0 -201
  98. package/dist/esm/_getAllKeysIn-kT3KizYN.js +0 -114
  99. package/dist/esm/_isIterateeCall-Bb4gUZLK.js +0 -70
  100. package/dist/esm/pickBy-C4C3CM4m.js +0 -195
  101. package/dist/lime-elements/p-1e085bbe.entry.js +0 -13
  102. package/dist/lime-elements/p-56bkn1D-.js +0 -1
  103. package/dist/lime-elements/p-67f02b69.entry.js +0 -1
  104. package/dist/lime-elements/p-6d5b23ad.entry.js +0 -1
  105. package/dist/lime-elements/p-867681aa.entry.js +0 -1
  106. package/dist/lime-elements/p-9d3437ac.entry.js +0 -16
  107. package/dist/lime-elements/p-B8yl2MCT.js +0 -1
  108. package/dist/lime-elements/p-BAR6am-7.js +0 -1
  109. package/dist/lime-elements/p-BE1Efiuj.js +0 -1
  110. package/dist/lime-elements/p-BsX7ma3n.js +0 -1
  111. package/dist/lime-elements/p-C9xHOCE_.js +0 -7
  112. package/dist/lime-elements/p-CR7u-m0b.js +0 -1
  113. package/dist/lime-elements/p-CVzgpz9P.js +0 -1
  114. package/dist/lime-elements/p-D8H5afYg.js +0 -1
  115. package/dist/lime-elements/p-DMNtoJ8I.js +0 -1
  116. package/dist/lime-elements/p-DtrvybFR.js +0 -1
  117. package/dist/lime-elements/p-f309ceb8.entry.js +0 -1
  118. package/dist/lime-elements/p-f3c108c9.entry.js +0 -1
  119. package/dist/lime-elements/p-mmkVLOjW.js +0 -1
@@ -1,114 +0,0 @@
1
- import { h as arrayLikeKeys, i as stubArray, f as arrayPush, g as getSymbols, j as baseGetAllKeys } from './_baseIsEqual-B6bIeexY.js';
2
- import { d as isPrototype, o as overArg } from './_getTag-CMJL-6hk.js';
3
- import { i as isObject } from './isObject-BJQylLSL.js';
4
- import { i as isArrayLike } from './isArrayLike-CyVGB489.js';
5
-
6
- /**
7
- * This function is like
8
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
9
- * except that it includes inherited enumerable properties.
10
- *
11
- * @private
12
- * @param {Object} object The object to query.
13
- * @returns {Array} Returns the array of property names.
14
- */
15
- function nativeKeysIn(object) {
16
- var result = [];
17
- if (object != null) {
18
- for (var key in Object(object)) {
19
- result.push(key);
20
- }
21
- }
22
- return result;
23
- }
24
-
25
- /** Used for built-in method references. */
26
- var objectProto = Object.prototype;
27
-
28
- /** Used to check objects for own properties. */
29
- var hasOwnProperty = objectProto.hasOwnProperty;
30
-
31
- /**
32
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
33
- *
34
- * @private
35
- * @param {Object} object The object to query.
36
- * @returns {Array} Returns the array of property names.
37
- */
38
- function baseKeysIn(object) {
39
- if (!isObject(object)) {
40
- return nativeKeysIn(object);
41
- }
42
- var isProto = isPrototype(object),
43
- result = [];
44
-
45
- for (var key in object) {
46
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
47
- result.push(key);
48
- }
49
- }
50
- return result;
51
- }
52
-
53
- /**
54
- * Creates an array of the own and inherited enumerable property names of `object`.
55
- *
56
- * **Note:** Non-object values are coerced to objects.
57
- *
58
- * @static
59
- * @memberOf _
60
- * @since 3.0.0
61
- * @category Object
62
- * @param {Object} object The object to query.
63
- * @returns {Array} Returns the array of property names.
64
- * @example
65
- *
66
- * function Foo() {
67
- * this.a = 1;
68
- * this.b = 2;
69
- * }
70
- *
71
- * Foo.prototype.c = 3;
72
- *
73
- * _.keysIn(new Foo);
74
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
75
- */
76
- function keysIn(object) {
77
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
78
- }
79
-
80
- /** Built-in value references. */
81
- var getPrototype = overArg(Object.getPrototypeOf, Object);
82
-
83
- /* Built-in method references for those with the same name as other `lodash` methods. */
84
- var nativeGetSymbols = Object.getOwnPropertySymbols;
85
-
86
- /**
87
- * Creates an array of the own and inherited enumerable symbols of `object`.
88
- *
89
- * @private
90
- * @param {Object} object The object to query.
91
- * @returns {Array} Returns the array of symbols.
92
- */
93
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
94
- var result = [];
95
- while (object) {
96
- arrayPush(result, getSymbols(object));
97
- object = getPrototype(object);
98
- }
99
- return result;
100
- };
101
-
102
- /**
103
- * Creates an array of own and inherited enumerable property names and
104
- * symbols of `object`.
105
- *
106
- * @private
107
- * @param {Object} object The object to query.
108
- * @returns {Array} Returns the array of property names and symbols.
109
- */
110
- function getAllKeysIn(object) {
111
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
112
- }
113
-
114
- export { getAllKeysIn as a, getSymbolsIn as b, getPrototype as g, keysIn as k };
@@ -1,70 +0,0 @@
1
- import { t as toNumber } from './toNumber-D6JYpQI9.js';
2
- import { e as eq } from './eq-CZ30nDJE.js';
3
- import { i as isArrayLike } from './isArrayLike-CyVGB489.js';
4
- import { i as isIndex } from './_isIndex-B--C3qwe.js';
5
- import { i as isObject } from './isObject-BJQylLSL.js';
6
-
7
- /** Used as references for various `Number` constants. */
8
- var INFINITY = 1 / 0,
9
- MAX_INTEGER = 1.7976931348623157e+308;
10
-
11
- /**
12
- * Converts `value` to a finite number.
13
- *
14
- * @static
15
- * @memberOf _
16
- * @since 4.12.0
17
- * @category Lang
18
- * @param {*} value The value to convert.
19
- * @returns {number} Returns the converted number.
20
- * @example
21
- *
22
- * _.toFinite(3.2);
23
- * // => 3.2
24
- *
25
- * _.toFinite(Number.MIN_VALUE);
26
- * // => 5e-324
27
- *
28
- * _.toFinite(Infinity);
29
- * // => 1.7976931348623157e+308
30
- *
31
- * _.toFinite('3.2');
32
- * // => 3.2
33
- */
34
- function toFinite(value) {
35
- if (!value) {
36
- return value === 0 ? value : 0;
37
- }
38
- value = toNumber(value);
39
- if (value === INFINITY || value === -INFINITY) {
40
- var sign = (value < 0 ? -1 : 1);
41
- return sign * MAX_INTEGER;
42
- }
43
- return value === value ? value : 0;
44
- }
45
-
46
- /**
47
- * Checks if the given arguments are from an iteratee call.
48
- *
49
- * @private
50
- * @param {*} value The potential iteratee value argument.
51
- * @param {*} index The potential iteratee index or key argument.
52
- * @param {*} object The potential iteratee object argument.
53
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
54
- * else `false`.
55
- */
56
- function isIterateeCall(value, index, object) {
57
- if (!isObject(object)) {
58
- return false;
59
- }
60
- var type = typeof index;
61
- if (type == 'number'
62
- ? (isArrayLike(object) && isIndex(index, object.length))
63
- : (type == 'string' && index in object)
64
- ) {
65
- return eq(object[index], value);
66
- }
67
- return false;
68
- }
69
-
70
- export { isIterateeCall as i, toFinite as t };
@@ -1,195 +0,0 @@
1
- import { f as hasPath, d as castPath, e as toKey, b as baseGet, a as arrayMap, c as baseIteratee } from './_baseIteratee-CEZRuq23.js';
2
- import { a as assignValue } from './_assignValue-CEFvyZxO.js';
3
- import { i as isIndex } from './_isIndex-B--C3qwe.js';
4
- import { i as isObject } from './isObject-BJQylLSL.js';
5
- import { a as getAllKeysIn } from './_getAllKeysIn-kT3KizYN.js';
6
-
7
- /** Used for built-in method references. */
8
- var objectProto = Object.prototype;
9
-
10
- /** Used to check objects for own properties. */
11
- var hasOwnProperty = objectProto.hasOwnProperty;
12
-
13
- /**
14
- * The base implementation of `_.has` without support for deep paths.
15
- *
16
- * @private
17
- * @param {Object} [object] The object to query.
18
- * @param {Array|string} key The key to check.
19
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
20
- */
21
- function baseHas(object, key) {
22
- return object != null && hasOwnProperty.call(object, key);
23
- }
24
-
25
- /**
26
- * Checks if `path` is a direct property of `object`.
27
- *
28
- * @static
29
- * @since 0.1.0
30
- * @memberOf _
31
- * @category Object
32
- * @param {Object} object The object to query.
33
- * @param {Array|string} path The path to check.
34
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
35
- * @example
36
- *
37
- * var object = { 'a': { 'b': 2 } };
38
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
39
- *
40
- * _.has(object, 'a');
41
- * // => true
42
- *
43
- * _.has(object, 'a.b');
44
- * // => true
45
- *
46
- * _.has(object, ['a', 'b']);
47
- * // => true
48
- *
49
- * _.has(other, 'a');
50
- * // => false
51
- */
52
- function has(object, path) {
53
- return object != null && hasPath(object, path, baseHas);
54
- }
55
-
56
- /** Error message constants. */
57
- var FUNC_ERROR_TEXT = 'Expected a function';
58
-
59
- /**
60
- * Creates a function that negates the result of the predicate `func`. The
61
- * `func` predicate is invoked with the `this` binding and arguments of the
62
- * created function.
63
- *
64
- * @static
65
- * @memberOf _
66
- * @since 3.0.0
67
- * @category Function
68
- * @param {Function} predicate The predicate to negate.
69
- * @returns {Function} Returns the new negated function.
70
- * @example
71
- *
72
- * function isEven(n) {
73
- * return n % 2 == 0;
74
- * }
75
- *
76
- * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
77
- * // => [1, 3, 5]
78
- */
79
- function negate(predicate) {
80
- if (typeof predicate != 'function') {
81
- throw new TypeError(FUNC_ERROR_TEXT);
82
- }
83
- return function() {
84
- var args = arguments;
85
- switch (args.length) {
86
- case 0: return !predicate.call(this);
87
- case 1: return !predicate.call(this, args[0]);
88
- case 2: return !predicate.call(this, args[0], args[1]);
89
- case 3: return !predicate.call(this, args[0], args[1], args[2]);
90
- }
91
- return !predicate.apply(this, args);
92
- };
93
- }
94
-
95
- /**
96
- * The base implementation of `_.set`.
97
- *
98
- * @private
99
- * @param {Object} object The object to modify.
100
- * @param {Array|string} path The path of the property to set.
101
- * @param {*} value The value to set.
102
- * @param {Function} [customizer] The function to customize path creation.
103
- * @returns {Object} Returns `object`.
104
- */
105
- function baseSet(object, path, value, customizer) {
106
- if (!isObject(object)) {
107
- return object;
108
- }
109
- path = castPath(path, object);
110
-
111
- var index = -1,
112
- length = path.length,
113
- lastIndex = length - 1,
114
- nested = object;
115
-
116
- while (nested != null && ++index < length) {
117
- var key = toKey(path[index]),
118
- newValue = value;
119
-
120
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
121
- return object;
122
- }
123
-
124
- if (index != lastIndex) {
125
- var objValue = nested[key];
126
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
127
- if (newValue === undefined) {
128
- newValue = isObject(objValue)
129
- ? objValue
130
- : (isIndex(path[index + 1]) ? [] : {});
131
- }
132
- }
133
- assignValue(nested, key, newValue);
134
- nested = nested[key];
135
- }
136
- return object;
137
- }
138
-
139
- /**
140
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
141
- *
142
- * @private
143
- * @param {Object} object The source object.
144
- * @param {string[]} paths The property paths to pick.
145
- * @param {Function} predicate The function invoked per property.
146
- * @returns {Object} Returns the new object.
147
- */
148
- function basePickBy(object, paths, predicate) {
149
- var index = -1,
150
- length = paths.length,
151
- result = {};
152
-
153
- while (++index < length) {
154
- var path = paths[index],
155
- value = baseGet(object, path);
156
-
157
- if (predicate(value, path)) {
158
- baseSet(result, castPath(path, object), value);
159
- }
160
- }
161
- return result;
162
- }
163
-
164
- /**
165
- * Creates an object composed of the `object` properties `predicate` returns
166
- * truthy for. The predicate is invoked with two arguments: (value, key).
167
- *
168
- * @static
169
- * @memberOf _
170
- * @since 4.0.0
171
- * @category Object
172
- * @param {Object} object The source object.
173
- * @param {Function} [predicate=_.identity] The function invoked per property.
174
- * @returns {Object} Returns the new object.
175
- * @example
176
- *
177
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
178
- *
179
- * _.pickBy(object, _.isNumber);
180
- * // => { 'a': 1, 'c': 3 }
181
- */
182
- function pickBy(object, predicate) {
183
- if (object == null) {
184
- return {};
185
- }
186
- var props = arrayMap(getAllKeysIn(object), function(prop) {
187
- return [prop];
188
- });
189
- predicate = baseIteratee(predicate);
190
- return basePickBy(object, props, function(value, path) {
191
- return predicate(value, path[0]);
192
- });
193
- }
194
-
195
- export { baseSet as a, basePickBy as b, has as h, negate as n, pickBy as p };