@limetech/lime-elements 40.12.2 → 40.13.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 (115) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/{checkbox.template-_WUgtMJy.js → checkbox.template-CNJ29zDR.js} +1 -1
  3. package/dist/cjs/drag-to-reorder-BP5YkPuu.js +3092 -0
  4. package/dist/cjs/lime-elements.cjs.js +1 -1
  5. package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
  6. package/dist/cjs/limel-chip-set.cjs.entry.js +5 -2
  7. package/dist/cjs/{limel-scroller.cjs.entry.js → limel-drag-handle_2.cjs.entry.js} +38 -0
  8. package/dist/cjs/limel-file-viewer.cjs.entry.js +64 -55
  9. package/dist/cjs/limel-form.cjs.entry.js +539 -3171
  10. package/dist/cjs/limel-list-item.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-select.cjs.entry.js +2 -2
  12. package/dist/cjs/limel-slider.cjs.entry.js +4 -4
  13. package/dist/cjs/limel-switch.cjs.entry.js +1 -1
  14. package/dist/cjs/limel-tab-bar.cjs.entry.js +120 -16
  15. package/dist/cjs/limel-tab-panel.cjs.entry.js +7 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/collection/components/checkbox/checkbox.template.js +1 -1
  18. package/dist/collection/components/chip-set/chip-set.js +5 -2
  19. package/dist/collection/components/form/form.css +59 -0
  20. package/dist/collection/components/form/form.js +49 -2
  21. package/dist/collection/components/form/show-field.js +116 -0
  22. package/dist/collection/components/form/templates/array-field-collapsible-item.js +1 -0
  23. package/dist/collection/components/form/templates/array-field-item.js +5 -0
  24. package/dist/collection/components/form/templates/array-field.js +20 -158
  25. package/dist/collection/components/form/templates/field.js +17 -0
  26. package/dist/collection/components/select/select.template.js +2 -2
  27. package/dist/collection/components/slider/slider.js +4 -4
  28. package/dist/collection/components/switch/switch.js +1 -1
  29. package/dist/collection/components/tab-bar/tab-bar.css +68 -22
  30. package/dist/collection/components/tab-bar/tab-bar.js +131 -4
  31. package/dist/collection/components/tab-bar/tabs.js +23 -0
  32. package/dist/collection/components/tab-panel/tab-panel.js +54 -1
  33. package/dist/collection/util/drag-to-reorder.js +116 -0
  34. package/dist/esm/{_baseForOwn-D5j7fHlv.js → _baseForOwn-vKFWmmaS.js} +1 -1
  35. package/dist/esm/{_baseIsEqual-CyF4P8uM.js → _baseIsEqual-B_JRErB0.js} +1 -1
  36. package/dist/esm/{_baseIteratee-CpbczHY1.js → _baseIteratee-CVz7aes3.js} +1 -1
  37. package/dist/esm/{_baseSet-Cw2IE6ZF.js → _baseSet-BUAq8NGm.js} +1 -1
  38. package/dist/esm/{checkbox.template-BFL4SMzl.js → checkbox.template-CAja2LKZ.js} +1 -1
  39. package/dist/esm/{cloneDeep-DAbOtbs8.js → cloneDeep-Bcll-3f8.js} +1 -1
  40. package/dist/esm/drag-to-reorder-BXmXIwCa.js +3086 -0
  41. package/dist/esm/{isEqual-CE83yS8T.js → isEqual-C-pK6AAU.js} +1 -1
  42. package/dist/esm/lime-elements.js +1 -1
  43. package/dist/esm/limel-checkbox.entry.js +1 -1
  44. package/dist/esm/limel-chip-set.entry.js +7 -4
  45. package/dist/esm/limel-dialog.entry.js +2 -2
  46. package/dist/esm/{limel-scroller.entry.js → limel-drag-handle_2.entry.js} +38 -1
  47. package/dist/esm/limel-file-dropzone_2.entry.js +3 -3
  48. package/dist/esm/limel-file-viewer.entry.js +64 -55
  49. package/dist/esm/limel-form.entry.js +536 -3168
  50. package/dist/esm/limel-list-item.entry.js +1 -1
  51. package/dist/esm/limel-prosemirror-adapter.entry.js +3 -3
  52. package/dist/esm/limel-select.entry.js +2 -2
  53. package/dist/esm/limel-slider.entry.js +4 -4
  54. package/dist/esm/limel-switch.entry.js +1 -1
  55. package/dist/esm/limel-tab-bar.entry.js +117 -13
  56. package/dist/esm/limel-tab-panel.entry.js +7 -1
  57. package/dist/esm/limel-table.entry.js +4 -4
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/lime-elements/lime-elements.esm.js +1 -1
  60. package/dist/lime-elements/{p-35bc5ed2.entry.js → p-13f2afc9.entry.js} +1 -1
  61. package/dist/lime-elements/{p-43c36a02.entry.js → p-268b4da1.entry.js} +1 -1
  62. package/dist/lime-elements/p-3b6d4934.entry.js +1 -0
  63. package/dist/lime-elements/p-55b56742.entry.js +1 -0
  64. package/dist/lime-elements/p-67767276.entry.js +1 -0
  65. package/dist/lime-elements/{p-fb15f608.entry.js → p-6d65ee35.entry.js} +1 -1
  66. package/dist/lime-elements/p-714ab66d.entry.js +16 -0
  67. package/dist/lime-elements/p-7ae71c13.entry.js +1 -0
  68. package/dist/lime-elements/{p-c492af1b.entry.js → p-828558cf.entry.js} +1 -1
  69. package/dist/lime-elements/p-95322502.entry.js +1 -0
  70. package/dist/lime-elements/p-BAqAt5It.js +1 -0
  71. package/dist/lime-elements/{p-1qqvOwzC.js → p-Cadm4-WZ.js} +1 -1
  72. package/dist/lime-elements/p-Cu9Ji1iJ.js +1 -0
  73. package/dist/lime-elements/{p-BY5NjPj8.js → p-D9Ezd43A.js} +1 -1
  74. package/dist/lime-elements/{p-nVemxylR.js → p-DFu1q54T.js} +1 -1
  75. package/dist/lime-elements/p-DdnBHYb-.js +7 -0
  76. package/dist/lime-elements/{p-B6-3WXAv.js → p-DeIIlp6m.js} +1 -1
  77. package/dist/lime-elements/p-Dq0uNStc.js +1 -0
  78. package/dist/lime-elements/p-b5bb124f.entry.js +1 -0
  79. package/dist/lime-elements/{p-9168793f.entry.js → p-bd58c761.entry.js} +1 -1
  80. package/dist/lime-elements/{p-458c131f.entry.js → p-c7e34502.entry.js} +1 -1
  81. package/dist/lime-elements/p-f4c9940e.entry.js +23 -0
  82. package/dist/lime-elements/p-fb526a05.entry.js +1 -0
  83. package/dist/types/components/chip-set/chip-set.d.ts +1 -0
  84. package/dist/types/components/form/form.d.ts +15 -0
  85. package/dist/types/components/form/show-field.d.ts +9 -0
  86. package/dist/types/components/form/templates/array-context.d.ts +4 -0
  87. package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +5 -0
  88. package/dist/types/components/form/templates/array-field.d.ts +3 -13
  89. package/dist/types/components/form/templates/field.d.ts +1 -0
  90. package/dist/types/components/form/templates/object-field.d.ts +2 -2
  91. package/dist/types/components/tab-bar/tab-bar.d.ts +25 -0
  92. package/dist/types/components/tab-bar/tab.types.d.ts +18 -0
  93. package/dist/types/components/tab-bar/tabs.d.ts +12 -1
  94. package/dist/types/components/tab-panel/tab-panel.d.ts +18 -1
  95. package/dist/types/components.d.ts +80 -2
  96. package/dist/types/util/drag-to-reorder.d.ts +65 -0
  97. package/package.json +4 -4
  98. package/dist/cjs/isArrayLikeObject-U2Ddbw4n.js +0 -326
  99. package/dist/cjs/limel-drag-handle.cjs.entry.js +0 -42
  100. package/dist/esm/isArrayLikeObject-CJB8HbtH.js +0 -321
  101. package/dist/esm/limel-drag-handle.entry.js +0 -40
  102. package/dist/lime-elements/p-06850418.entry.js +0 -1
  103. package/dist/lime-elements/p-262a3d66.entry.js +0 -1
  104. package/dist/lime-elements/p-49eb2f64.entry.js +0 -13
  105. package/dist/lime-elements/p-646731b6.entry.js +0 -1
  106. package/dist/lime-elements/p-89d75e9c.entry.js +0 -1
  107. package/dist/lime-elements/p-8d567e42.entry.js +0 -1
  108. package/dist/lime-elements/p-92fab922.entry.js +0 -23
  109. package/dist/lime-elements/p-BQeIv4aA.js +0 -1
  110. package/dist/lime-elements/p-COdirXg1.js +0 -1
  111. package/dist/lime-elements/p-ORUNaKm-.js +0 -1
  112. package/dist/lime-elements/p-a5246373.entry.js +0 -1
  113. package/dist/lime-elements/p-b609552e.entry.js +0 -1
  114. package/dist/lime-elements/p-bf849dc9.entry.js +0 -1
  115. package/dist/lime-elements/p-pk5KIdKH.js +0 -1
@@ -1,326 +0,0 @@
1
- 'use strict';
2
-
3
- var identity = require('./identity-Dz5mxHaJ.js');
4
- var _defineProperty = require('./_defineProperty-Csu6P9HT.js');
5
- var _baseIsEqual = require('./_baseIsEqual-zzV9DKMv.js');
6
- var isObject = require('./isObject-B6Osvvqp.js');
7
- var _getTag = require('./_getTag-BC28Za7d.js');
8
- var isArray = require('./isArray-BuFVIU_i.js');
9
- var isArrayLike = require('./isArrayLike-C2RwZMG4.js');
10
- var isObjectLike = require('./isObjectLike-Dlpn-j-1.js');
11
-
12
- /**
13
- * A faster alternative to `Function#apply`, this function invokes `func`
14
- * with the `this` binding of `thisArg` and the arguments of `args`.
15
- *
16
- * @private
17
- * @param {Function} func The function to invoke.
18
- * @param {*} thisArg The `this` binding of `func`.
19
- * @param {Array} args The arguments to invoke `func` with.
20
- * @returns {*} Returns the result of `func`.
21
- */
22
- function apply(func, thisArg, args) {
23
- switch (args.length) {
24
- case 0: return func.call(thisArg);
25
- case 1: return func.call(thisArg, args[0]);
26
- case 2: return func.call(thisArg, args[0], args[1]);
27
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
28
- }
29
- return func.apply(thisArg, args);
30
- }
31
-
32
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
33
- var HOT_COUNT = 800,
34
- HOT_SPAN = 16;
35
-
36
- /* Built-in method references for those with the same name as other `lodash` methods. */
37
- var nativeNow = Date.now;
38
-
39
- /**
40
- * Creates a function that'll short out and invoke `identity` instead
41
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
42
- * milliseconds.
43
- *
44
- * @private
45
- * @param {Function} func The function to restrict.
46
- * @returns {Function} Returns the new shortable function.
47
- */
48
- function shortOut(func) {
49
- var count = 0,
50
- lastCalled = 0;
51
-
52
- return function() {
53
- var stamp = nativeNow(),
54
- remaining = HOT_SPAN - (stamp - lastCalled);
55
-
56
- lastCalled = stamp;
57
- if (remaining > 0) {
58
- if (++count >= HOT_COUNT) {
59
- return arguments[0];
60
- }
61
- } else {
62
- count = 0;
63
- }
64
- return func.apply(undefined, arguments);
65
- };
66
- }
67
-
68
- /**
69
- * Creates a function that returns `value`.
70
- *
71
- * @static
72
- * @memberOf _
73
- * @since 2.4.0
74
- * @category Util
75
- * @param {*} value The value to return from the new function.
76
- * @returns {Function} Returns the new constant function.
77
- * @example
78
- *
79
- * var objects = _.times(2, _.constant({ 'a': 1 }));
80
- *
81
- * console.log(objects);
82
- * // => [{ 'a': 1 }, { 'a': 1 }]
83
- *
84
- * console.log(objects[0] === objects[1]);
85
- * // => true
86
- */
87
- function constant(value) {
88
- return function() {
89
- return value;
90
- };
91
- }
92
-
93
- /**
94
- * The base implementation of `setToString` without support for hot loop shorting.
95
- *
96
- * @private
97
- * @param {Function} func The function to modify.
98
- * @param {Function} string The `toString` result.
99
- * @returns {Function} Returns `func`.
100
- */
101
- var baseSetToString = !_defineProperty.defineProperty ? identity.identity : function(func, string) {
102
- return _defineProperty.defineProperty(func, 'toString', {
103
- 'configurable': true,
104
- 'enumerable': false,
105
- 'value': constant(string),
106
- 'writable': true
107
- });
108
- };
109
-
110
- /**
111
- * Sets the `toString` method of `func` to return `string`.
112
- *
113
- * @private
114
- * @param {Function} func The function to modify.
115
- * @param {Function} string The `toString` result.
116
- * @returns {Function} Returns `func`.
117
- */
118
- var setToString = shortOut(baseSetToString);
119
-
120
- /**
121
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
122
- * support for iteratee shorthands.
123
- *
124
- * @private
125
- * @param {Array} array The array to inspect.
126
- * @param {Function} predicate The function invoked per iteration.
127
- * @param {number} fromIndex The index to search from.
128
- * @param {boolean} [fromRight] Specify iterating from right to left.
129
- * @returns {number} Returns the index of the matched value, else `-1`.
130
- */
131
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
132
- var length = array.length,
133
- index = fromIndex + (-1);
134
-
135
- while ((++index < length)) {
136
- if (predicate(array[index], index, array)) {
137
- return index;
138
- }
139
- }
140
- return -1;
141
- }
142
-
143
- /**
144
- * The base implementation of `_.isNaN` without support for number objects.
145
- *
146
- * @private
147
- * @param {*} value The value to check.
148
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
149
- */
150
- function baseIsNaN(value) {
151
- return value !== value;
152
- }
153
-
154
- /**
155
- * A specialized version of `_.indexOf` which performs strict equality
156
- * comparisons of values, i.e. `===`.
157
- *
158
- * @private
159
- * @param {Array} array The array to inspect.
160
- * @param {*} value The value to search for.
161
- * @param {number} fromIndex The index to search from.
162
- * @returns {number} Returns the index of the matched value, else `-1`.
163
- */
164
- function strictIndexOf(array, value, fromIndex) {
165
- var index = fromIndex - 1,
166
- length = array.length;
167
-
168
- while (++index < length) {
169
- if (array[index] === value) {
170
- return index;
171
- }
172
- }
173
- return -1;
174
- }
175
-
176
- /**
177
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
178
- *
179
- * @private
180
- * @param {Array} array The array to inspect.
181
- * @param {*} value The value to search for.
182
- * @param {number} fromIndex The index to search from.
183
- * @returns {number} Returns the index of the matched value, else `-1`.
184
- */
185
- function baseIndexOf(array, value, fromIndex) {
186
- return value === value
187
- ? strictIndexOf(array, value, fromIndex)
188
- : baseFindIndex(array, baseIsNaN, fromIndex);
189
- }
190
-
191
- /**
192
- * A specialized version of `_.includes` for arrays without support for
193
- * specifying an index to search from.
194
- *
195
- * @private
196
- * @param {Array} [array] The array to inspect.
197
- * @param {*} target The value to search for.
198
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
199
- */
200
- function arrayIncludes(array, value) {
201
- var length = array == null ? 0 : array.length;
202
- return !!length && baseIndexOf(array, value, 0) > -1;
203
- }
204
-
205
- /* Built-in method references for those with the same name as other `lodash` methods. */
206
- var nativeMax = Math.max;
207
-
208
- /**
209
- * A specialized version of `baseRest` which transforms the rest array.
210
- *
211
- * @private
212
- * @param {Function} func The function to apply a rest parameter to.
213
- * @param {number} [start=func.length-1] The start position of the rest parameter.
214
- * @param {Function} transform The rest array transform.
215
- * @returns {Function} Returns the new function.
216
- */
217
- function overRest(func, start, transform) {
218
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
219
- return function() {
220
- var args = arguments,
221
- index = -1,
222
- length = nativeMax(args.length - start, 0),
223
- array = Array(length);
224
-
225
- while (++index < length) {
226
- array[index] = args[start + index];
227
- }
228
- index = -1;
229
- var otherArgs = Array(start + 1);
230
- while (++index < start) {
231
- otherArgs[index] = args[index];
232
- }
233
- otherArgs[start] = transform(array);
234
- return apply(func, this, otherArgs);
235
- };
236
- }
237
-
238
- /**
239
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
240
- *
241
- * @private
242
- * @param {Function} func The function to apply a rest parameter to.
243
- * @param {number} [start=func.length-1] The start position of the rest parameter.
244
- * @returns {Function} Returns the new function.
245
- */
246
- function baseRest(func, start) {
247
- return setToString(overRest(func, start, identity.identity), func + '');
248
- }
249
-
250
- /** Built-in value references. */
251
- var spreadableSymbol = isObject.Symbol ? isObject.Symbol.isConcatSpreadable : undefined;
252
-
253
- /**
254
- * Checks if `value` is a flattenable `arguments` object or array.
255
- *
256
- * @private
257
- * @param {*} value The value to check.
258
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
259
- */
260
- function isFlattenable(value) {
261
- return isArray.isArray(value) || _getTag.isArguments(value) ||
262
- !!(spreadableSymbol && value && value[spreadableSymbol]);
263
- }
264
-
265
- /**
266
- * The base implementation of `_.flatten` with support for restricting flattening.
267
- *
268
- * @private
269
- * @param {Array} array The array to flatten.
270
- * @param {number} depth The maximum recursion depth.
271
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
272
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
273
- * @param {Array} [result=[]] The initial result value.
274
- * @returns {Array} Returns the new flattened array.
275
- */
276
- function baseFlatten(array, depth, predicate, isStrict, result) {
277
- var index = -1,
278
- length = array.length;
279
-
280
- predicate || (predicate = isFlattenable);
281
- result || (result = []);
282
-
283
- while (++index < length) {
284
- var value = array[index];
285
- if (predicate(value)) {
286
- {
287
- _baseIsEqual.arrayPush(result, value);
288
- }
289
- }
290
- }
291
- return result;
292
- }
293
-
294
- /**
295
- * This method is like `_.isArrayLike` except that it also checks if `value`
296
- * is an object.
297
- *
298
- * @static
299
- * @memberOf _
300
- * @since 4.0.0
301
- * @category Lang
302
- * @param {*} value The value to check.
303
- * @returns {boolean} Returns `true` if `value` is an array-like object,
304
- * else `false`.
305
- * @example
306
- *
307
- * _.isArrayLikeObject([1, 2, 3]);
308
- * // => true
309
- *
310
- * _.isArrayLikeObject(document.body.children);
311
- * // => true
312
- *
313
- * _.isArrayLikeObject('abc');
314
- * // => false
315
- *
316
- * _.isArrayLikeObject(_.noop);
317
- * // => false
318
- */
319
- function isArrayLikeObject(value) {
320
- return isObjectLike.isObjectLike(value) && isArrayLike.isArrayLike(value);
321
- }
322
-
323
- exports.arrayIncludes = arrayIncludes;
324
- exports.baseFlatten = baseFlatten;
325
- exports.baseRest = baseRest;
326
- exports.isArrayLikeObject = isArrayLikeObject;
@@ -1,42 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-BlsqxTB1.js');
4
- var translations = require('./translations-DDyw5Zzz.js');
5
- require('./language-v-MMS6ym.js');
6
-
7
- const dragHandleCss = () => `@charset "UTF-8";limel-drag-handle{display:inline-flex;align-items:center;justify-content:center}button.limel-drag-handle{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit}button.limel-drag-handle:focus{outline:none}button.limel-drag-handle:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}button.limel-drag-handle{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}button.limel-drag-handle:hover,button.limel-drag-handle:focus,button.limel-drag-handle:focus-visible{will-change:color, background-color, box-shadow, transform}button.limel-drag-handle:hover,button.limel-drag-handle:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--mdc-theme-primary);background-color:transparent}button.limel-drag-handle:hover{box-shadow:var(--button-shadow-hovered)}button.limel-drag-handle:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}button.limel-drag-handle:hover,button.limel-drag-handle:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}button.limel-drag-handle{touch-action:none;cursor:grab}button.limel-drag-handle:active{cursor:grabbing}button.limel-drag-handle:active,button.limel-drag-handle:hover{box-shadow:none !important}button.limel-drag-handle{display:inline-flex;align-items:center;justify-content:center;border-radius:0.4rem;padding:0.5rem;max-height:2.25rem;max-width:2.25rem;color:rgb(var(--contrast-900))}button.limel-drag-handle .drag-icon{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0.2rem}limel-drag-handle[drag-direction=horizontal] button.limel-drag-handle .drag-icon{grid-template-columns:1fr 1fr}button.limel-drag-handle .drag-icon div{transition:transform 0.2s ease, background-color 0.2s ease;height:0.125rem;width:0.125rem;border-radius:1rem;background-color:currentColor;transform:scale(1)}.is-being-dragged button.limel-drag-handle .drag-icon div,button.limel-drag-handle:active .drag-icon div,button.limel-drag-handle:focus .drag-icon div,button.limel-drag-handle:hover .drag-icon div,button.limel-drag-handle:focus-visible .drag-icon div{background-color:var(--mdc-theme-primary);transform:scale(1.5)}`;
8
-
9
- const DragHandleComponent = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /**
13
- * The direction in which the drag handle can be used to reorder items.
14
- */
15
- this.dragDirection = 'vertical';
16
- /**
17
- * The preferred direction for the tooltip to open.
18
- * Defaults to 'left', as our recommended placement for a drag handle
19
- * in the UI is on the far right side of draggable elements.
20
- */
21
- this.tooltipOpenDirection = 'left';
22
- /**
23
- * Language to use for translations.
24
- */
25
- this.language = 'en';
26
- this.dragHandleId = 'drag-handle-' + crypto.randomUUID();
27
- this.handleClick = (event) => {
28
- // Prevent bubbling so the parent item does not treat the pointer click as
29
- // a toggle or reorder action.
30
- event.preventDefault();
31
- event.stopPropagation();
32
- };
33
- }
34
- render() {
35
- const tooltipLabel = translations.translations.get('drag-handle.drag-to-reorder', this.language);
36
- const ariaLabel = translations.translations.get('drag-handle.drag-handle', this.language);
37
- return (index.h(index.Host, { key: '7ec003311284f01a8ab6fcfa681b859d80c751c9' }, index.h("button", { key: '6c8eecad5a1ee902f8cde0d582a7f61881186516', "data-drag-handle": true, type: "button", class: "limel-drag-handle", tabindex: -1, "aria-label": ariaLabel, id: this.dragHandleId, onClick: this.handleClick }, index.h("div", { key: 'ff1b68465914660147a3813950ca89e8aefd3579', class: "drag-icon", role: "presentation", "aria-hidden": "true" }, index.h("div", { key: "1" }), index.h("div", { key: "2" }), index.h("div", { key: "3" }), index.h("div", { key: "4" }), index.h("div", { key: "5" }), index.h("div", { key: "6" })), index.h("limel-tooltip", { key: '6e4858827eaf55787d5a30a1842c4ec8f106b158', openDirection: this.tooltipOpenDirection, elementId: this.dragHandleId, label: tooltipLabel }))));
38
- }
39
- };
40
- DragHandleComponent.style = dragHandleCss();
41
-
42
- exports.limel_drag_handle = DragHandleComponent;
@@ -1,321 +0,0 @@
1
- import { i as identity } from './identity-CK4jS9_E.js';
2
- import { d as defineProperty } from './_defineProperty-C69Btzid.js';
3
- import { d as arrayPush } from './_baseIsEqual-CyF4P8uM.js';
4
- import { S as Symbol } from './isObject-BJQylLSL.js';
5
- import { i as isArguments } from './_getTag-BiAaLWvH.js';
6
- import { i as isArray } from './isArray-B8VKuhvH.js';
7
- import { i as isArrayLike } from './isArrayLike-CyVGB489.js';
8
- import { i as isObjectLike } from './isObjectLike-oiMYqRQ0.js';
9
-
10
- /**
11
- * A faster alternative to `Function#apply`, this function invokes `func`
12
- * with the `this` binding of `thisArg` and the arguments of `args`.
13
- *
14
- * @private
15
- * @param {Function} func The function to invoke.
16
- * @param {*} thisArg The `this` binding of `func`.
17
- * @param {Array} args The arguments to invoke `func` with.
18
- * @returns {*} Returns the result of `func`.
19
- */
20
- function apply(func, thisArg, args) {
21
- switch (args.length) {
22
- case 0: return func.call(thisArg);
23
- case 1: return func.call(thisArg, args[0]);
24
- case 2: return func.call(thisArg, args[0], args[1]);
25
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
26
- }
27
- return func.apply(thisArg, args);
28
- }
29
-
30
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
31
- var HOT_COUNT = 800,
32
- HOT_SPAN = 16;
33
-
34
- /* Built-in method references for those with the same name as other `lodash` methods. */
35
- var nativeNow = Date.now;
36
-
37
- /**
38
- * Creates a function that'll short out and invoke `identity` instead
39
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
40
- * milliseconds.
41
- *
42
- * @private
43
- * @param {Function} func The function to restrict.
44
- * @returns {Function} Returns the new shortable function.
45
- */
46
- function shortOut(func) {
47
- var count = 0,
48
- lastCalled = 0;
49
-
50
- return function() {
51
- var stamp = nativeNow(),
52
- remaining = HOT_SPAN - (stamp - lastCalled);
53
-
54
- lastCalled = stamp;
55
- if (remaining > 0) {
56
- if (++count >= HOT_COUNT) {
57
- return arguments[0];
58
- }
59
- } else {
60
- count = 0;
61
- }
62
- return func.apply(undefined, arguments);
63
- };
64
- }
65
-
66
- /**
67
- * Creates a function that returns `value`.
68
- *
69
- * @static
70
- * @memberOf _
71
- * @since 2.4.0
72
- * @category Util
73
- * @param {*} value The value to return from the new function.
74
- * @returns {Function} Returns the new constant function.
75
- * @example
76
- *
77
- * var objects = _.times(2, _.constant({ 'a': 1 }));
78
- *
79
- * console.log(objects);
80
- * // => [{ 'a': 1 }, { 'a': 1 }]
81
- *
82
- * console.log(objects[0] === objects[1]);
83
- * // => true
84
- */
85
- function constant(value) {
86
- return function() {
87
- return value;
88
- };
89
- }
90
-
91
- /**
92
- * The base implementation of `setToString` without support for hot loop shorting.
93
- *
94
- * @private
95
- * @param {Function} func The function to modify.
96
- * @param {Function} string The `toString` result.
97
- * @returns {Function} Returns `func`.
98
- */
99
- var baseSetToString = !defineProperty ? identity : function(func, string) {
100
- return defineProperty(func, 'toString', {
101
- 'configurable': true,
102
- 'enumerable': false,
103
- 'value': constant(string),
104
- 'writable': true
105
- });
106
- };
107
-
108
- /**
109
- * Sets the `toString` method of `func` to return `string`.
110
- *
111
- * @private
112
- * @param {Function} func The function to modify.
113
- * @param {Function} string The `toString` result.
114
- * @returns {Function} Returns `func`.
115
- */
116
- var setToString = shortOut(baseSetToString);
117
-
118
- /**
119
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
120
- * support for iteratee shorthands.
121
- *
122
- * @private
123
- * @param {Array} array The array to inspect.
124
- * @param {Function} predicate The function invoked per iteration.
125
- * @param {number} fromIndex The index to search from.
126
- * @param {boolean} [fromRight] Specify iterating from right to left.
127
- * @returns {number} Returns the index of the matched value, else `-1`.
128
- */
129
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
130
- var length = array.length,
131
- index = fromIndex + (-1);
132
-
133
- while ((++index < length)) {
134
- if (predicate(array[index], index, array)) {
135
- return index;
136
- }
137
- }
138
- return -1;
139
- }
140
-
141
- /**
142
- * The base implementation of `_.isNaN` without support for number objects.
143
- *
144
- * @private
145
- * @param {*} value The value to check.
146
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
147
- */
148
- function baseIsNaN(value) {
149
- return value !== value;
150
- }
151
-
152
- /**
153
- * A specialized version of `_.indexOf` which performs strict equality
154
- * comparisons of values, i.e. `===`.
155
- *
156
- * @private
157
- * @param {Array} array The array to inspect.
158
- * @param {*} value The value to search for.
159
- * @param {number} fromIndex The index to search from.
160
- * @returns {number} Returns the index of the matched value, else `-1`.
161
- */
162
- function strictIndexOf(array, value, fromIndex) {
163
- var index = fromIndex - 1,
164
- length = array.length;
165
-
166
- while (++index < length) {
167
- if (array[index] === value) {
168
- return index;
169
- }
170
- }
171
- return -1;
172
- }
173
-
174
- /**
175
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
176
- *
177
- * @private
178
- * @param {Array} array The array to inspect.
179
- * @param {*} value The value to search for.
180
- * @param {number} fromIndex The index to search from.
181
- * @returns {number} Returns the index of the matched value, else `-1`.
182
- */
183
- function baseIndexOf(array, value, fromIndex) {
184
- return value === value
185
- ? strictIndexOf(array, value, fromIndex)
186
- : baseFindIndex(array, baseIsNaN, fromIndex);
187
- }
188
-
189
- /**
190
- * A specialized version of `_.includes` for arrays without support for
191
- * specifying an index to search from.
192
- *
193
- * @private
194
- * @param {Array} [array] The array to inspect.
195
- * @param {*} target The value to search for.
196
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
197
- */
198
- function arrayIncludes(array, value) {
199
- var length = array == null ? 0 : array.length;
200
- return !!length && baseIndexOf(array, value, 0) > -1;
201
- }
202
-
203
- /* Built-in method references for those with the same name as other `lodash` methods. */
204
- var nativeMax = Math.max;
205
-
206
- /**
207
- * A specialized version of `baseRest` which transforms the rest array.
208
- *
209
- * @private
210
- * @param {Function} func The function to apply a rest parameter to.
211
- * @param {number} [start=func.length-1] The start position of the rest parameter.
212
- * @param {Function} transform The rest array transform.
213
- * @returns {Function} Returns the new function.
214
- */
215
- function overRest(func, start, transform) {
216
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
217
- return function() {
218
- var args = arguments,
219
- index = -1,
220
- length = nativeMax(args.length - start, 0),
221
- array = Array(length);
222
-
223
- while (++index < length) {
224
- array[index] = args[start + index];
225
- }
226
- index = -1;
227
- var otherArgs = Array(start + 1);
228
- while (++index < start) {
229
- otherArgs[index] = args[index];
230
- }
231
- otherArgs[start] = transform(array);
232
- return apply(func, this, otherArgs);
233
- };
234
- }
235
-
236
- /**
237
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
238
- *
239
- * @private
240
- * @param {Function} func The function to apply a rest parameter to.
241
- * @param {number} [start=func.length-1] The start position of the rest parameter.
242
- * @returns {Function} Returns the new function.
243
- */
244
- function baseRest(func, start) {
245
- return setToString(overRest(func, start, identity), func + '');
246
- }
247
-
248
- /** Built-in value references. */
249
- var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
250
-
251
- /**
252
- * Checks if `value` is a flattenable `arguments` object or array.
253
- *
254
- * @private
255
- * @param {*} value The value to check.
256
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
257
- */
258
- function isFlattenable(value) {
259
- return isArray(value) || isArguments(value) ||
260
- !!(spreadableSymbol && value && value[spreadableSymbol]);
261
- }
262
-
263
- /**
264
- * The base implementation of `_.flatten` with support for restricting flattening.
265
- *
266
- * @private
267
- * @param {Array} array The array to flatten.
268
- * @param {number} depth The maximum recursion depth.
269
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
270
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
271
- * @param {Array} [result=[]] The initial result value.
272
- * @returns {Array} Returns the new flattened array.
273
- */
274
- function baseFlatten(array, depth, predicate, isStrict, result) {
275
- var index = -1,
276
- length = array.length;
277
-
278
- predicate || (predicate = isFlattenable);
279
- result || (result = []);
280
-
281
- while (++index < length) {
282
- var value = array[index];
283
- if (predicate(value)) {
284
- {
285
- arrayPush(result, value);
286
- }
287
- }
288
- }
289
- return result;
290
- }
291
-
292
- /**
293
- * This method is like `_.isArrayLike` except that it also checks if `value`
294
- * is an object.
295
- *
296
- * @static
297
- * @memberOf _
298
- * @since 4.0.0
299
- * @category Lang
300
- * @param {*} value The value to check.
301
- * @returns {boolean} Returns `true` if `value` is an array-like object,
302
- * else `false`.
303
- * @example
304
- *
305
- * _.isArrayLikeObject([1, 2, 3]);
306
- * // => true
307
- *
308
- * _.isArrayLikeObject(document.body.children);
309
- * // => true
310
- *
311
- * _.isArrayLikeObject('abc');
312
- * // => false
313
- *
314
- * _.isArrayLikeObject(_.noop);
315
- * // => false
316
- */
317
- function isArrayLikeObject(value) {
318
- return isObjectLike(value) && isArrayLike(value);
319
- }
320
-
321
- export { arrayIncludes as a, baseRest as b, baseFlatten as c, isArrayLikeObject as i };