@limetech/lime-crm-building-blocks 1.120.0 → 1.121.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 (99) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/{_MapCache-De1Fwe0H.js → _MapCache-DHOVMBKi.js} +341 -3
  3. package/dist/cjs/{_getTag-CdUodI28.js → _Uint8Array-CXHKqIsu.js} +375 -30
  4. package/dist/cjs/{_baseIsEqual-BtwicGmu.js → _baseIsEqual-Ba8g_ag_.js} +11 -13
  5. package/dist/cjs/{_defineProperty-eImBwVFM.js → _defineProperty-Bl_qu8Vn.js} +2 -2
  6. package/dist/cjs/{get-BRGtX379.js → get-D1lIKhWp.js} +6 -7
  7. package/dist/cjs/{isSymbol-D8S28StA.js → isSymbol-BJj6FNl6.js} +2 -2
  8. package/dist/cjs/limebb-component-config.cjs.entry.js +3 -4
  9. package/dist/cjs/limebb-info-tile.cjs.entry.js +134 -135
  10. package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +5 -7
  11. package/dist/cjs/limebb-locale-picker.cjs.entry.js +18 -20
  12. package/dist/cjs/limebb-object-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +3 -3
  14. package/dist/cjs/limebb-property-selector.cjs.entry.js +1 -1
  15. package/dist/cjs/limebb-text-editor.cjs.entry.js +23 -25
  16. package/dist/cjs/limebb-trend-indicator.cjs.entry.js +2 -2
  17. package/dist/cjs/{limetype-TVwQ2eby.js → limetype-C7_hrzhN.js} +46 -0
  18. package/dist/collection/components/info-tile/info-tile.js +30 -67
  19. package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +3 -3
  20. package/dist/collection/components/text-editor/text-editor.js +1 -1
  21. package/dist/collection/components/trend-indicator/trend-indicator.js +2 -2
  22. package/dist/collection/util/explorer-link.js +68 -0
  23. package/dist/collection/util/find-filter.js +16 -0
  24. package/dist/collection/util/limetype.js +45 -0
  25. package/dist/collection/util/localize-record.js +21 -0
  26. package/dist/components/_MapCache.js +1 -1
  27. package/dist/components/_Uint8Array.js +1 -1
  28. package/dist/components/_baseIsEqual.js +1 -1
  29. package/dist/components/_defineProperty.js +1 -1
  30. package/dist/components/get.js +1 -1
  31. package/dist/components/isSymbol.js +1 -1
  32. package/dist/components/limebb-info-tile.js +1 -1
  33. package/dist/components/limebb-locale-picker.js +1 -1
  34. package/dist/components/limebb-text-editor.js +1 -1
  35. package/dist/components/limebb-trend-indicator.js +1 -1
  36. package/dist/components/limetype-field.js +1 -1
  37. package/dist/components/limetype.js +1 -1
  38. package/dist/components/percentage-visualizer.js +1 -1
  39. package/dist/esm/{_MapCache-C_kVhYUl.js → _MapCache-BgAfMcRA.js} +329 -2
  40. package/dist/esm/{_getTag-DZlkp9mJ.js → _Uint8Array-CUI8uY-p.js} +351 -11
  41. package/dist/esm/{_baseIsEqual-DB13O4pD.js → _baseIsEqual-C-Mrg4RA.js} +2 -4
  42. package/dist/esm/{_defineProperty-DSmG08hO.js → _defineProperty-DZ483KPn.js} +1 -1
  43. package/dist/esm/{get-Bo260bSC.js → get-Cq4rshNg.js} +2 -3
  44. package/dist/esm/{isSymbol-Ci8cASb6.js → isSymbol-_IkM6xCs.js} +1 -1
  45. package/dist/esm/limebb-component-config.entry.js +3 -4
  46. package/dist/esm/limebb-info-tile.entry.js +135 -136
  47. package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +4 -6
  48. package/dist/esm/limebb-locale-picker.entry.js +6 -8
  49. package/dist/esm/limebb-object-chip.entry.js +1 -1
  50. package/dist/esm/limebb-percentage-visualizer.entry.js +3 -3
  51. package/dist/esm/limebb-property-selector.entry.js +1 -1
  52. package/dist/esm/limebb-text-editor.entry.js +5 -7
  53. package/dist/esm/limebb-trend-indicator.entry.js +2 -2
  54. package/dist/esm/{limetype-BCEsb4WT.js → limetype-C4AY5lRw.js} +46 -1
  55. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  56. package/dist/lime-crm-building-blocks/p--IuhN2yx.js +1 -0
  57. package/dist/lime-crm-building-blocks/{p-c663afd2.entry.js → p-0cac0e56.entry.js} +1 -1
  58. package/dist/lime-crm-building-blocks/{p-5f1a4341.entry.js → p-34ad8e75.entry.js} +1 -1
  59. package/dist/lime-crm-building-blocks/p-37bab931.entry.js +1 -0
  60. package/dist/lime-crm-building-blocks/p-4163a0c0.entry.js +1 -0
  61. package/dist/lime-crm-building-blocks/p-49edd4fe.entry.js +1 -0
  62. package/dist/lime-crm-building-blocks/p-6PYziigk.js +1 -0
  63. package/dist/lime-crm-building-blocks/p-7a983aca.entry.js +1 -0
  64. package/dist/lime-crm-building-blocks/p-9019ca6f.entry.js +1 -0
  65. package/dist/lime-crm-building-blocks/p-BgAfMcRA.js +1 -0
  66. package/dist/lime-crm-building-blocks/p-BsH0YW6Z.js +1 -0
  67. package/dist/lime-crm-building-blocks/p-CKEnwX6j.js +1 -0
  68. package/dist/lime-crm-building-blocks/p-Ceen0vzd.js +1 -0
  69. package/dist/lime-crm-building-blocks/p-CtcTT7BK.js +1 -0
  70. package/dist/lime-crm-building-blocks/p-aa9b7af3.entry.js +1 -0
  71. package/dist/lime-crm-building-blocks/p-f397b288.entry.js +1 -0
  72. package/dist/types/components/info-tile/info-tile.d.ts +0 -3
  73. package/dist/types/util/explorer-link.d.ts +52 -0
  74. package/dist/types/util/find-filter.d.ts +13 -0
  75. package/dist/types/util/limetype.d.ts +35 -0
  76. package/dist/types/util/localize-record.d.ts +17 -0
  77. package/package.json +2 -2
  78. package/dist/cjs/_Map-BlpAtLvq.js +0 -342
  79. package/dist/cjs/_Uint8Array-C_lvn5HO.js +0 -352
  80. package/dist/components/_Map.js +0 -1
  81. package/dist/components/_getTag.js +0 -1
  82. package/dist/esm/_Map-ByjZfyP_.js +0 -330
  83. package/dist/esm/_Uint8Array-DVXPnoWk.js +0 -345
  84. package/dist/lime-crm-building-blocks/p-25700afb.entry.js +0 -1
  85. package/dist/lime-crm-building-blocks/p-3622d9b7.entry.js +0 -1
  86. package/dist/lime-crm-building-blocks/p-44347a69.entry.js +0 -1
  87. package/dist/lime-crm-building-blocks/p-60a09d6b.entry.js +0 -1
  88. package/dist/lime-crm-building-blocks/p-7cbec456.entry.js +0 -1
  89. package/dist/lime-crm-building-blocks/p-B8RiYkLS.js +0 -1
  90. package/dist/lime-crm-building-blocks/p-BJ8HvfgI.js +0 -1
  91. package/dist/lime-crm-building-blocks/p-BoVsXNfL.js +0 -1
  92. package/dist/lime-crm-building-blocks/p-ByjZfyP_.js +0 -1
  93. package/dist/lime-crm-building-blocks/p-CQ-z_HTt.js +0 -1
  94. package/dist/lime-crm-building-blocks/p-V3xfp9dg.js +0 -1
  95. package/dist/lime-crm-building-blocks/p-e2a6b9d2.entry.js +0 -1
  96. package/dist/lime-crm-building-blocks/p-e70a5298.entry.js +0 -1
  97. package/dist/lime-crm-building-blocks/p-mljVfXwO.js +0 -1
  98. package/dist/lime-crm-building-blocks/p-wbuFLk-j.js +0 -1
  99. package/dist/lime-crm-building-blocks/p-yc--7_7T.js +0 -1
@@ -2,75 +2,7 @@
2
2
 
3
3
  var index = require('./index-C_OnxXhP.js');
4
4
  var index_esm = require('./index.esm-iA818ZYg.js');
5
- var _getTag = require('./_getTag-CdUodI28.js');
6
- var _Map = require('./_Map-BlpAtLvq.js');
7
-
8
- /** `Object#toString` result references. */
9
- var mapTag = '[object Map]',
10
- setTag = '[object Set]';
11
-
12
- /** Used for built-in method references. */
13
- var objectProto = Object.prototype;
14
-
15
- /** Used to check objects for own properties. */
16
- var hasOwnProperty = objectProto.hasOwnProperty;
17
-
18
- /**
19
- * Checks if `value` is an empty object, collection, map, or set.
20
- *
21
- * Objects are considered empty if they have no own enumerable string keyed
22
- * properties.
23
- *
24
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
25
- * jQuery-like collections are considered empty if they have a `length` of `0`.
26
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
27
- *
28
- * @static
29
- * @memberOf _
30
- * @since 0.1.0
31
- * @category Lang
32
- * @param {*} value The value to check.
33
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
34
- * @example
35
- *
36
- * _.isEmpty(null);
37
- * // => true
38
- *
39
- * _.isEmpty(true);
40
- * // => true
41
- *
42
- * _.isEmpty(1);
43
- * // => true
44
- *
45
- * _.isEmpty([1, 2, 3]);
46
- * // => false
47
- *
48
- * _.isEmpty({ 'a': 1 });
49
- * // => false
50
- */
51
- function isEmpty(value) {
52
- if (value == null) {
53
- return true;
54
- }
55
- if (_getTag.isArrayLike(value) &&
56
- (_Map.isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
57
- _getTag.isBuffer(value) || _getTag.isTypedArray(value) || _getTag.isArguments(value))) {
58
- return !value.length;
59
- }
60
- var tag = _getTag.getTag(value);
61
- if (tag == mapTag || tag == setTag) {
62
- return !value.size;
63
- }
64
- if (_getTag.isPrototype(value)) {
65
- return !_getTag.baseKeys(value).length;
66
- }
67
- for (var key in value) {
68
- if (hasOwnProperty.call(value, key)) {
69
- return false;
70
- }
71
- }
72
- return true;
73
- }
5
+ var limetype = require('./limetype-C7_hrzhN.js');
74
6
 
75
7
  /**
76
8
  * Context provider for the info-tile component.
@@ -180,6 +112,113 @@ class InfoTileLoader {
180
112
  }
181
113
  }
182
114
 
115
+ /**
116
+ * Picks a localized string from a record keyed by locale code.
117
+ *
118
+ * Looks up the value for `language` first, then falls back to `en` and
119
+ * `en_us`. Returns an empty string when none of those keys carry a
120
+ * non-empty value, even if other locales are present in the record —
121
+ * matching the behavior consumers rely on today.
122
+ *
123
+ * Useful for resolving values such as `Filter.name`, where strings are
124
+ * provided per locale.
125
+ *
126
+ * @param strings - Record where keys are locale codes and values are
127
+ * the localized strings.
128
+ * @param language - The preferred locale code.
129
+ */
130
+ function localizeRecord(strings, language) {
131
+ if (!strings) {
132
+ return '';
133
+ }
134
+ return strings[language] || strings.en || strings.en_us || '';
135
+ }
136
+
137
+ /**
138
+ * Finds a filter set by id in an array of filter sets.
139
+ *
140
+ * Returns `undefined` when either `filters` or `filterId` is missing or
141
+ * when no filter matches — safe to call with optional inputs without a
142
+ * guard.
143
+ *
144
+ * @param filters - The filter sets to search.
145
+ * @param filterId - The id of the filter set to find.
146
+ */
147
+ function findFilter(filters, filterId) {
148
+ if (!filters || !filterId) {
149
+ return undefined;
150
+ }
151
+ return filters.find((filter) => filter.id === filterId);
152
+ }
153
+
154
+ /**
155
+ * Build a parsed explorer destination for a filter, optionally
156
+ * narrowing it with extra expressions AND-combined onto the filter's
157
+ * own expression. Use this when navigating imperatively via the
158
+ * `Navigator` service so the host SPA stays on the page (no full
159
+ * reload).
160
+ * @param filter - the filter set whose limetype and id form the
161
+ * explorer path. When `undefined`, the function returns
162
+ * `{ path: '#' }` so callers can wire it into a link without a
163
+ * special-case branch.
164
+ * @param extraExpressions - expressions to AND onto the filter's own
165
+ * expression. The chart passes `{ key: groupBy, op: '=', exp: item }`
166
+ * here, info-tile passes a back-reference constraint when the widget
167
+ * is on an object card. Order matters in the resulting AND: extras
168
+ * come before the filter's own expression.
169
+ * @returns `path` plus, when there's any filter expression to apply,
170
+ * `query.filter` holding the combined expression as a raw object (the
171
+ * navigator stringifies and URL-encodes it when generating the URL).
172
+ */
173
+ function buildExplorerLocation(filter, extraExpressions = []) {
174
+ if (!filter) {
175
+ return { path: '#' };
176
+ }
177
+ const path = ['explorer', filter.limetype, filter.id].join('/');
178
+ const combined = combineExpressions(filter.filter, extraExpressions);
179
+ return combined ? { path, query: { filter: combined } } : { path };
180
+ }
181
+ /**
182
+ * Build a Lime CRM explorer href for a filter, optionally narrowing it
183
+ * with extra expressions AND-combined onto the filter's own expression.
184
+ *
185
+ * Used by widgets like `limebb-info-tile` to render anchor `<a>` links
186
+ * to a filtered list. For imperative navigation prefer
187
+ * {@link buildExplorerLocation} together with the `Navigator` service.
188
+ * @param filter - the filter set whose limetype and id form the
189
+ * explorer href. When `undefined`, the function returns `'#'` so
190
+ * callers can wire it into a link without a special-case branch.
191
+ * @param extraExpressions - expressions to AND onto the filter's own
192
+ * expression, with the same ordering and use-cases as
193
+ * {@link buildExplorerLocation}.
194
+ * @returns an explorer href such as
195
+ * `explorer/{limetype}/{filterId}?filter=<URL-encoded JSON>`, or
196
+ * `'#'` when `filter` is `undefined`.
197
+ */
198
+ function buildExplorerHref(filter, extraExpressions = []) {
199
+ const { path, query } = buildExplorerLocation(filter, extraExpressions);
200
+ if (!query) {
201
+ return path;
202
+ }
203
+ const search = Object.entries(query)
204
+ .map(([key, value]) => `${key}=${encodeURIComponent(JSON.stringify(value))}`)
205
+ .join('&');
206
+ return `${path}?${search}`;
207
+ }
208
+ function combineExpressions(filter, extras) {
209
+ const all = [...extras, filter].filter((exp) => exp !== undefined);
210
+ if (all.length === 0) {
211
+ return undefined;
212
+ }
213
+ if (all.length === 1) {
214
+ return all[0];
215
+ }
216
+ return {
217
+ op: index_esm.Xe.AND,
218
+ exp: all,
219
+ };
220
+ }
221
+
183
222
  class BasicFormatter {
184
223
  constructor(locale) {
185
224
  this.locale = locale;
@@ -434,7 +473,7 @@ const InfoTile = class {
434
473
  const errorProps = Object.assign(Object.assign({}, baseProps), { icon: 'error', prefix: 'ERROR', loading: true, label: this.getLabel(filter) });
435
474
  const normalProps = Object.assign(Object.assign({}, baseProps), { label: this.getLabel(filter), link: this.getLink(filter), loading: this.loading, value: value === null || value === void 0 ? void 0 : value.value.trim() });
436
475
  const props = !filter || this.error ? errorProps : normalProps;
437
- return (index.h("limel-info-tile", Object.assign({ key: '163c9aa74b485cb28ae56735a9643dd7e6579465', class: { error: !filter || this.error } }, props)));
476
+ return (index.h("limel-info-tile", Object.assign({ key: '540d2ccbd5c4e3d09fb736e260b3ec5c02d42415', class: { error: !filter || this.error } }, props)));
438
477
  }
439
478
  getFormattedValue() {
440
479
  if (!this.value && this.value !== 0) {
@@ -458,79 +497,39 @@ const InfoTile = class {
458
497
  return this.translator.get(this.label);
459
498
  }
460
499
  if (this.label && typeof this.label === 'object') {
461
- return this.getLocalizedString(this.label);
500
+ return localizeRecord(this.label, this.language);
462
501
  }
463
- return this.getLocalizedString(filter.name);
464
- }
465
- getLocalizedString(strings) {
466
- if (isEmpty(strings)) {
467
- return '';
468
- }
469
- let localizedString = strings[this.language];
470
- if (!localizedString) {
471
- localizedString =
472
- strings.en ||
473
- strings.en_us ||
474
- Object.values(localizedString !== null && localizedString !== void 0 ? localizedString : {}).find((name) => !!name);
475
- }
476
- return localizedString !== null && localizedString !== void 0 ? localizedString : '';
502
+ return localizeRecord(filter.name, this.language);
477
503
  }
478
504
  getLink(filter) {
479
- if (!filter) {
480
- return { href: '#' };
481
- }
482
- const baseHref = ['explorer', filter.limetype, filter.id].join('/');
483
- const relationPropertyName = this.getRelationPropertyName(this.limetypes[filter.limetype]);
484
- const contextAwareFilter = this.buildContextAwareFilter(filter.filter, relationPropertyName);
485
- if (!contextAwareFilter) {
486
- return { href: baseHref };
487
- }
488
- const filterQuery = encodeURIComponent(JSON.stringify(contextAwareFilter));
489
- return { href: `${baseHref}?filter=${filterQuery}` };
490
- }
491
- buildContextAwareFilter(filter, relationPropertyName) {
492
- if (!relationPropertyName) {
493
- return filter;
494
- }
495
- const relationFilter = {
496
- key: relationPropertyName,
497
- op: index_esm.Xe.EQUALS,
498
- exp: this.context.id,
499
- };
500
- if (!filter) {
501
- return {
502
- relationFilter,
503
- };
504
- }
505
- return {
506
- op: index_esm.Xe.AND,
507
- exp: [relationFilter, filter],
508
- };
505
+ const relationPropertyName = limetype.getRelationPropertyName({
506
+ targetLimetype: filter
507
+ ? this.limetypes[filter.limetype]
508
+ : undefined,
509
+ currentLimetype: this.context.limetype
510
+ ? this.limetypes[this.context.limetype]
511
+ : undefined,
512
+ contextLimetypeName: this.context.limetype,
513
+ contextId: this.context.id,
514
+ propertyName: this.propertyName,
515
+ });
516
+ const extras = relationPropertyName && this.context.id
517
+ ? [
518
+ {
519
+ key: relationPropertyName,
520
+ op: index_esm.Xe.EQUALS,
521
+ exp: this.context.id,
522
+ },
523
+ ]
524
+ : [];
525
+ return { href: buildExplorerHref(filter, extras) };
509
526
  }
510
527
  getFilter() {
511
- var _a;
512
- return (_a = this.filters) === null || _a === void 0 ? void 0 : _a.find((filter) => filter.id === this.filterId);
528
+ return findFilter(this.filters, this.filterId);
513
529
  }
514
530
  getFormatter(value) {
515
531
  return new InfoTileFormatterFactory(this.language).createFormatter(this.format, value);
516
532
  }
517
- getRelationPropertyName(limetype) {
518
- var _a, _b, _c;
519
- if (!limetype || !this.context.limetype || !this.context.id) {
520
- return;
521
- }
522
- if (this.propertyName) {
523
- const currentLimeType = this.limetypes[this.context.limetype];
524
- const backReference = (_b = (_a = currentLimeType === null || currentLimeType === void 0 ? void 0 : currentLimeType.getProperty(this.propertyName)) === null || _a === void 0 ? void 0 : _a.relation) === null || _b === void 0 ? void 0 : _b.getBackreference();
525
- if (backReference) {
526
- return backReference.name;
527
- }
528
- }
529
- return (_c = Object.values(limetype.properties).find((property) => {
530
- var _a;
531
- return (((_a = property.relation) === null || _a === void 0 ? void 0 : _a.getLimetype().name) === this.context.limetype);
532
- })) === null || _c === void 0 ? void 0 : _c.name;
533
- }
534
533
  get translator() {
535
534
  return this.platform.get(index_esm.n.Translate);
536
535
  }
@@ -551,7 +550,7 @@ const InfoTile = class {
551
550
  limetype: filter === null || filter === void 0 ? void 0 : filter.limetype,
552
551
  filterId: this.filterId,
553
552
  filterName: filter
554
- ? this.getLocalizedString(filter.name)
553
+ ? localizeRecord(filter.name, this.language)
555
554
  : undefined,
556
555
  aggregateOperator: this.aggregateOperator,
557
556
  propertyName: this.propertyName,
@@ -2,13 +2,11 @@
2
2
 
3
3
  var index = require('./index-C_OnxXhP.js');
4
4
  var index_esm = require('./index.esm-iA818ZYg.js');
5
- var limetype = require('./limetype-TVwQ2eby.js');
5
+ var limetype = require('./limetype-C7_hrzhN.js');
6
6
  var nonNull = require('./non-null-BMnREsqJ.js');
7
- var _baseIsEqual = require('./_baseIsEqual-BtwicGmu.js');
8
- var _Map = require('./_Map-BlpAtLvq.js');
9
- require('./_Uint8Array-C_lvn5HO.js');
10
- require('./_MapCache-De1Fwe0H.js');
11
- require('./_getTag-CdUodI28.js');
7
+ var _baseIsEqual = require('./_baseIsEqual-Ba8g_ag_.js');
8
+ var _MapCache = require('./_MapCache-DHOVMBKi.js');
9
+ require('./_Uint8Array-CXHKqIsu.js');
12
10
 
13
11
  /** `Object#toString` result references. */
14
12
  var stringTag = '[object String]';
@@ -32,7 +30,7 @@ var stringTag = '[object String]';
32
30
  */
33
31
  function isString(value) {
34
32
  return typeof value == 'string' ||
35
- (!_Map.isArray(value) && _Map.isObjectLike(value) && _Map.baseGetTag(value) == stringTag);
33
+ (!_MapCache.isArray(value) && _MapCache.isObjectLike(value) && _MapCache.baseGetTag(value) == stringTag);
36
34
  }
37
35
 
38
36
  /**
@@ -2,14 +2,12 @@
2
2
 
3
3
  var index = require('./index-C_OnxXhP.js');
4
4
  var index_esm = require('./index.esm-iA818ZYg.js');
5
- var get = require('./get-BRGtX379.js');
6
- var _Uint8Array = require('./_Uint8Array-C_lvn5HO.js');
7
- var _Map = require('./_Map-BlpAtLvq.js');
8
- var _getTag = require('./_getTag-CdUodI28.js');
9
- var _baseIsEqual = require('./_baseIsEqual-BtwicGmu.js');
10
- var isSymbol = require('./isSymbol-D8S28StA.js');
11
- var _defineProperty = require('./_defineProperty-eImBwVFM.js');
12
- var _MapCache = require('./_MapCache-De1Fwe0H.js');
5
+ var get = require('./get-D1lIKhWp.js');
6
+ var _Uint8Array = require('./_Uint8Array-CXHKqIsu.js');
7
+ var _MapCache = require('./_MapCache-DHOVMBKi.js');
8
+ var _baseIsEqual = require('./_baseIsEqual-Ba8g_ag_.js');
9
+ var isSymbol = require('./isSymbol-BJj6FNl6.js');
10
+ var _defineProperty = require('./_defineProperty-Bl_qu8Vn.js');
13
11
 
14
12
  /**
15
13
  * This method returns the first argument it receives.
@@ -195,12 +193,12 @@ function baseRest(func, start) {
195
193
  * else `false`.
196
194
  */
197
195
  function isIterateeCall(value, index, object) {
198
- if (!_Map.isObject(object)) {
196
+ if (!_MapCache.isObject(object)) {
199
197
  return false;
200
198
  }
201
199
  var type = typeof index;
202
200
  if (type == 'number'
203
- ? (_getTag.isArrayLike(object) && _Uint8Array.isIndex(index, object.length))
201
+ ? (_Uint8Array.isArrayLike(object) && _Uint8Array.isIndex(index, object.length))
204
202
  : (type == 'string' && index in object)
205
203
  ) {
206
204
  return _MapCache.eq(object[index], value);
@@ -209,7 +207,7 @@ function isIterateeCall(value, index, object) {
209
207
  }
210
208
 
211
209
  /** Built-in value references. */
212
- var spreadableSymbol = _Map.Symbol ? _Map.Symbol.isConcatSpreadable : undefined;
210
+ var spreadableSymbol = _MapCache.Symbol ? _MapCache.Symbol.isConcatSpreadable : undefined;
213
211
 
214
212
  /**
215
213
  * Checks if `value` is a flattenable `arguments` object or array.
@@ -219,7 +217,7 @@ var spreadableSymbol = _Map.Symbol ? _Map.Symbol.isConcatSpreadable : undefined;
219
217
  * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
220
218
  */
221
219
  function isFlattenable(value) {
222
- return _Map.isArray(value) || _getTag.isArguments(value) ||
220
+ return _MapCache.isArray(value) || _Uint8Array.isArguments(value) ||
223
221
  !!(spreadableSymbol && value && value[spreadableSymbol]);
224
222
  }
225
223
 
@@ -516,7 +514,7 @@ function baseIsMatch(object, source, matchData, customizer) {
516
514
  * equality comparisons, else `false`.
517
515
  */
518
516
  function isStrictComparable(value) {
519
- return value === value && !_Map.isObject(value);
517
+ return value === value && !_MapCache.isObject(value);
520
518
  }
521
519
 
522
520
  /**
@@ -614,8 +612,8 @@ function hasPath(object, path, hasFunc) {
614
612
  return result;
615
613
  }
616
614
  length = object == null ? 0 : object.length;
617
- return !!length && _getTag.isLength(length) && _Uint8Array.isIndex(key, length) &&
618
- (_Map.isArray(object) || _getTag.isArguments(object));
615
+ return !!length && _Uint8Array.isLength(length) && _Uint8Array.isIndex(key, length) &&
616
+ (_MapCache.isArray(object) || _Uint8Array.isArguments(object));
619
617
  }
620
618
 
621
619
  /**
@@ -741,7 +739,7 @@ function baseIteratee(value) {
741
739
  return identity;
742
740
  }
743
741
  if (typeof value == 'object') {
744
- return _Map.isArray(value)
742
+ return _MapCache.isArray(value)
745
743
  ? baseMatchesProperty(value[0], value[1])
746
744
  : baseMatches(value);
747
745
  }
@@ -810,7 +808,7 @@ function createBaseEach(eachFunc, fromRight) {
810
808
  if (collection == null) {
811
809
  return collection;
812
810
  }
813
- if (!_getTag.isArrayLike(collection)) {
811
+ if (!_Uint8Array.isArrayLike(collection)) {
814
812
  return eachFunc(collection, iteratee);
815
813
  }
816
814
  var length = collection.length,
@@ -846,7 +844,7 @@ var baseEach = createBaseEach(baseForOwn);
846
844
  */
847
845
  function baseMap(collection, iteratee) {
848
846
  var index = -1,
849
- result = _getTag.isArrayLike(collection) ? Array(collection.length) : [];
847
+ result = _Uint8Array.isArrayLike(collection) ? Array(collection.length) : [];
850
848
 
851
849
  baseEach(collection, function(value, key, collection) {
852
850
  result[++index] = iteratee(value, key, collection);
@@ -965,7 +963,7 @@ function compareMultiple(object, other, orders) {
965
963
  function baseOrderBy(collection, iteratees, orders) {
966
964
  if (iteratees.length) {
967
965
  iteratees = get.arrayMap(iteratees, function(iteratee) {
968
- if (_Map.isArray(iteratee)) {
966
+ if (_MapCache.isArray(iteratee)) {
969
967
  return function(value) {
970
968
  return get.baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
971
969
  };
@@ -977,7 +975,7 @@ function baseOrderBy(collection, iteratees, orders) {
977
975
  }
978
976
 
979
977
  var index = -1;
980
- iteratees = get.arrayMap(iteratees, _getTag.baseUnary(baseIteratee));
978
+ iteratees = get.arrayMap(iteratees, _Uint8Array.baseUnary(baseIteratee));
981
979
 
982
980
  var result = baseMap(collection, function(value, key, collection) {
983
981
  var criteria = get.arrayMap(iteratees, function(iteratee) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C_OnxXhP.js');
4
- var limetype = require('./limetype-TVwQ2eby.js');
4
+ var limetype = require('./limetype-C7_hrzhN.js');
5
5
  var dom = require('./dom--t_vVnyU.js');
6
6
  var index_esm = require('./index.esm-iA818ZYg.js');
7
7
 
@@ -70,7 +70,7 @@ const PercentageVisualizer = class {
70
70
  this.numberFormat = new Intl.NumberFormat(this.locale);
71
71
  }
72
72
  catch (_a) {
73
- console.error(`Could not get user's locale (${this.locale}), falling back to 'en'.`);
73
+ console.warn(`Could not get user's locale (${this.locale}), falling back to 'en'.`);
74
74
  this.locale = 'en';
75
75
  this.numberFormat = new Intl.NumberFormat('en');
76
76
  }
@@ -90,11 +90,11 @@ const PercentageVisualizer = class {
90
90
  render() {
91
91
  const normalizedValue = this.getNormalizedValue();
92
92
  const zeroPoint = this.getZeroPointPosition();
93
- return (index.h(index.Host, { key: 'e3ff49b03b4703e06dbe85edc26421d95ed3974d', class: this.getContainerClassList(), style: {
93
+ return (index.h(index.Host, { key: '11b3795adc2f38c75866292070edc9f89bd7c099', class: this.getContainerClassList(), style: {
94
94
  '--limebb-percentage-visualizer-zero-point-position': `${zeroPoint}%`,
95
95
  '--limebb-percentage-visualizer-width': `${Math.abs(normalizedValue)}%`,
96
96
  '--limebb-percentage-visualizer-rotate': `${normalizedValue >= 0 ? '0deg' : '180deg'}`,
97
- } }, index.h("limel-notched-outline", { key: '308a71d2427118515f5a7bfbb3dbe20a7b310461', tabIndex: 0, role: "meter", "aria-valuemin": this.rangeMin, "aria-valuemax": this.rangeMax, "aria-valuenow": this.numValue, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-controls": this.helperTextId }, index.h("div", { key: '80bdd6e8423cc62ba4298d1f3af48cc77e662e72', slot: "content" }, this.renderVisualization())), this.renderHelperLine()));
97
+ } }, index.h("limel-notched-outline", { key: '2c3000f41ba01de424c3cb18dcb2f71799800449', tabIndex: 0, role: "meter", "aria-valuemin": this.rangeMin, "aria-valuemax": this.rangeMax, "aria-valuenow": this.numValue, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-controls": this.helperTextId }, index.h("div", { key: 'b0b064361c57341342344e7ecfe29818413737ee', slot: "content" }, this.renderVisualization())), this.renderHelperLine()));
98
98
  }
99
99
  renderVisualization() {
100
100
  if (this.reducePresence && (this.numValue === 0 || !this.hasValue())) {
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-C_OnxXhP.js');
4
4
  var index_esm = require('./index.esm-iA818ZYg.js');
5
5
  var propertyResolution = require('./property-resolution-Bz1zPcfq.js');
6
- var limetype = require('./limetype-TVwQ2eby.js');
6
+ var limetype = require('./limetype-C7_hrzhN.js');
7
7
 
8
8
  const propertySelectorCss = () => `:host(limebb-property-selector){display:block}limel-menu{display:block;width:100%}`;
9
9
 
@@ -3,15 +3,13 @@
3
3
  var index = require('./index-C_OnxXhP.js');
4
4
  var index_esm = require('./index.esm-iA818ZYg.js');
5
5
  var keycodes = require('./keycodes-BCQoLEdB.js');
6
- var _Uint8Array = require('./_Uint8Array-C_lvn5HO.js');
7
- var _defineProperty = require('./_defineProperty-eImBwVFM.js');
8
- var _MapCache = require('./_MapCache-De1Fwe0H.js');
9
- var _getTag = require('./_getTag-CdUodI28.js');
10
- var _Map = require('./_Map-BlpAtLvq.js');
6
+ var _Uint8Array = require('./_Uint8Array-CXHKqIsu.js');
7
+ var _defineProperty = require('./_defineProperty-Bl_qu8Vn.js');
8
+ var _MapCache = require('./_MapCache-DHOVMBKi.js');
11
9
  var randomString = require('./random-string-BdZGIsGg.js');
12
- var limetype = require('./limetype-TVwQ2eby.js');
10
+ var limetype = require('./limetype-C7_hrzhN.js');
13
11
  var nonNull = require('./non-null-BMnREsqJ.js');
14
- var isSymbol = require('./isSymbol-D8S28StA.js');
12
+ var isSymbol = require('./isSymbol-BJj6FNl6.js');
15
13
 
16
14
  /** Used to match a single whitespace character. */
17
15
  var reWhitespace = /\s/;
@@ -92,9 +90,9 @@ function toNumber(value) {
92
90
  if (isSymbol.isSymbol(value)) {
93
91
  return NAN;
94
92
  }
95
- if (_Map.isObject(value)) {
93
+ if (_MapCache.isObject(value)) {
96
94
  var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
97
- value = _Map.isObject(other) ? (other + '') : other;
95
+ value = _MapCache.isObject(other) ? (other + '') : other;
98
96
  }
99
97
  if (typeof value != 'string') {
100
98
  return value === 0 ? value : +value;
@@ -120,7 +118,7 @@ var objectCreate = Object.create;
120
118
  var baseCreate = (function() {
121
119
  function object() {}
122
120
  return function(proto) {
123
- if (!_Map.isObject(proto)) {
121
+ if (!_MapCache.isObject(proto)) {
124
122
  return {};
125
123
  }
126
124
  if (objectCreate) {
@@ -201,7 +199,7 @@ function assignValue(object, key, value) {
201
199
  }
202
200
 
203
201
  /** Built-in value references. */
204
- var getPrototype = _getTag.overArg(Object.getPrototypeOf, Object);
202
+ var getPrototype = _Uint8Array.overArg(Object.getPrototypeOf, Object);
205
203
 
206
204
  /** Detect free variable `exports`. */
207
205
  var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
@@ -291,7 +289,7 @@ function cloneRegExp(regexp) {
291
289
  }
292
290
 
293
291
  /** Used to convert symbols to primitives and strings. */
294
- var symbolProto = _Map.Symbol ? _Map.Symbol.prototype : undefined,
292
+ var symbolProto = _MapCache.Symbol ? _MapCache.Symbol.prototype : undefined,
295
293
  symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
296
294
 
297
295
  /**
@@ -396,7 +394,7 @@ function initCloneByTag(object, tag, isDeep) {
396
394
  * @returns {Object} Returns the initialized clone.
397
395
  */
398
396
  function initCloneObject(object) {
399
- return (typeof object.constructor == 'function' && !_getTag.isPrototype(object))
397
+ return (typeof object.constructor == 'function' && !_Uint8Array.isPrototype(object))
400
398
  ? baseCreate(getPrototype(object))
401
399
  : {};
402
400
  }
@@ -412,11 +410,11 @@ var mapTag$1 = '[object Map]';
412
410
  * @returns {boolean} Returns `true` if `value` is a map, else `false`.
413
411
  */
414
412
  function baseIsMap(value) {
415
- return _Map.isObjectLike(value) && _getTag.getTag(value) == mapTag$1;
413
+ return _MapCache.isObjectLike(value) && _Uint8Array.getTag(value) == mapTag$1;
416
414
  }
417
415
 
418
416
  /* Node.js helper references. */
419
- var nodeIsMap = _getTag.nodeUtil && _getTag.nodeUtil.isMap;
417
+ var nodeIsMap = _Uint8Array.nodeUtil && _Uint8Array.nodeUtil.isMap;
420
418
 
421
419
  /**
422
420
  * Checks if `value` is classified as a `Map` object.
@@ -435,7 +433,7 @@ var nodeIsMap = _getTag.nodeUtil && _getTag.nodeUtil.isMap;
435
433
  * _.isMap(new WeakMap);
436
434
  * // => false
437
435
  */
438
- var isMap = nodeIsMap ? _getTag.baseUnary(nodeIsMap) : baseIsMap;
436
+ var isMap = nodeIsMap ? _Uint8Array.baseUnary(nodeIsMap) : baseIsMap;
439
437
 
440
438
  /** `Object#toString` result references. */
441
439
  var setTag$1 = '[object Set]';
@@ -448,11 +446,11 @@ var setTag$1 = '[object Set]';
448
446
  * @returns {boolean} Returns `true` if `value` is a set, else `false`.
449
447
  */
450
448
  function baseIsSet(value) {
451
- return _Map.isObjectLike(value) && _getTag.getTag(value) == setTag$1;
449
+ return _MapCache.isObjectLike(value) && _Uint8Array.getTag(value) == setTag$1;
452
450
  }
453
451
 
454
452
  /* Node.js helper references. */
455
- var nodeIsSet = _getTag.nodeUtil && _getTag.nodeUtil.isSet;
453
+ var nodeIsSet = _Uint8Array.nodeUtil && _Uint8Array.nodeUtil.isSet;
456
454
 
457
455
  /**
458
456
  * Checks if `value` is classified as a `Set` object.
@@ -471,7 +469,7 @@ var nodeIsSet = _getTag.nodeUtil && _getTag.nodeUtil.isSet;
471
469
  * _.isSet(new WeakSet);
472
470
  * // => false
473
471
  */
474
- var isSet = nodeIsSet ? _getTag.baseUnary(nodeIsSet) : baseIsSet;
472
+ var isSet = nodeIsSet ? _Uint8Array.baseUnary(nodeIsSet) : baseIsSet;
475
473
 
476
474
  /** `Object#toString` result references. */
477
475
  var argsTag = '[object Arguments]',
@@ -539,17 +537,17 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
539
537
  if (result !== undefined) {
540
538
  return result;
541
539
  }
542
- if (!_Map.isObject(value)) {
540
+ if (!_MapCache.isObject(value)) {
543
541
  return value;
544
542
  }
545
- var isArr = _Map.isArray(value);
543
+ var isArr = _MapCache.isArray(value);
546
544
  if (isArr) {
547
545
  result = initCloneArray(value);
548
546
  } else {
549
- var tag = _getTag.getTag(value),
547
+ var tag = _Uint8Array.getTag(value),
550
548
  isFunc = tag == funcTag || tag == genTag;
551
549
 
552
- if (_getTag.isBuffer(value)) {
550
+ if (_Uint8Array.isBuffer(value)) {
553
551
  return cloneBuffer(value);
554
552
  }
555
553
  if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
@@ -637,7 +635,7 @@ function cloneDeep(value) {
637
635
  * // => Logs the number of milliseconds it took for the deferred invocation.
638
636
  */
639
637
  var now = function() {
640
- return _Map.root.Date.now();
638
+ return _MapCache.root.Date.now();
641
639
  };
642
640
 
643
641
  /** Error message constants. */
@@ -717,7 +715,7 @@ function debounce(func, wait, options) {
717
715
  throw new TypeError(FUNC_ERROR_TEXT);
718
716
  }
719
717
  wait = toNumber(wait) || 0;
720
- if (_Map.isObject(options)) {
718
+ if (_MapCache.isObject(options)) {
721
719
  leading = !!options.leading;
722
720
  maxing = 'maxWait' in options;
723
721
  maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
@@ -44,14 +44,14 @@ const TrendIndicator = class {
44
44
  this.numberFormat = new Intl.NumberFormat(this.locale);
45
45
  }
46
46
  catch (_a) {
47
- console.error(`Could not get user's locale (${this.locale}), falling back to 'en'.`);
47
+ console.warn(`Could not get user's locale (${this.locale}), falling back to 'en'.`);
48
48
  this.locale = 'en';
49
49
  this.numberFormat = new Intl.NumberFormat('en');
50
50
  }
51
51
  this.numValue = this.parseValue(this.value);
52
52
  }
53
53
  render() {
54
- return (index.h(index.Host, { key: 'c1d0e3cbfbfe0da3d821817b3986773ea7af13de', class: this.getContainerClassList() }, index.h("limel-notched-outline", { key: 'd32675f77f9a6bc700d566acc9f59b3575f03ff1', id: this.tooltipId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, "aria-controls": this.helperTextId }, index.h("div", { key: '558eac3631f2daced6d6e4f246912140ceb65268', slot: "content", tabIndex: 0 }, this.renderVisualization())), this.renderHelperLine(), this.renderTooltip()));
54
+ return (index.h(index.Host, { key: '4dc77e741406e9b51fdde5744b8c46bf70fd8cab', class: this.getContainerClassList() }, index.h("limel-notched-outline", { key: '3a0209effdb1ef52d8109e420162e0675e40178f', id: this.tooltipId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, "aria-controls": this.helperTextId }, index.h("div", { key: 'fcf81af972393a538a65e6014afa581935fcf837', slot: "content", tabIndex: 0 }, this.renderVisualization())), this.renderHelperLine(), this.renderTooltip()));
55
55
  }
56
56
  renderVisualization() {
57
57
  if (this.reducePresence && (this.numValue === 0 || !this.hasValue())) {