@limetech/lime-crm-building-blocks 1.26.2 → 1.27.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 (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
  3. package/dist/cjs/limebb-currency-picker.cjs.entry.js +1 -1
  4. package/dist/cjs/limebb-date-picker.cjs.entry.js +1 -1
  5. package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +3 -3
  6. package/dist/cjs/limebb-feed.cjs.entry.js +70 -75
  7. package/dist/cjs/limebb-icon-picker.cjs.entry.js +10 -0
  8. package/dist/cjs/limebb-locale-picker.cjs.entry.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{types-350bd795.js → types-5327b47f.js} +45 -42
  11. package/dist/collection/components/currency-picker/currency-picker.js +2 -4
  12. package/dist/collection/components/feed/feed-item/feed-timeline-item.js +3 -3
  13. package/dist/collection/components/feed/feed.js +1 -1
  14. package/dist/components/feed-timeline-item.js +2 -2
  15. package/dist/components/limebb-currency-picker.js +1 -1
  16. package/dist/components/limebb-feed.js +69 -74
  17. package/dist/components/limebb-icon-picker.js +10 -0
  18. package/dist/components/types.js +45 -42
  19. package/dist/esm/lime-crm-building-blocks.js +1 -1
  20. package/dist/esm/limebb-currency-picker.entry.js +1 -1
  21. package/dist/esm/limebb-date-picker.entry.js +1 -1
  22. package/dist/esm/limebb-feed-timeline-item.entry.js +3 -3
  23. package/dist/esm/limebb-feed.entry.js +70 -75
  24. package/dist/esm/limebb-icon-picker.entry.js +10 -0
  25. package/dist/esm/limebb-locale-picker.entry.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/{types-8be89d46.js → types-737832ab.js} +45 -42
  28. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  29. package/dist/lime-crm-building-blocks/{p-ef95b216.entry.js → p-03d8633c.entry.js} +1 -1
  30. package/dist/lime-crm-building-blocks/{p-13fa32df.entry.js → p-0ca85b0a.entry.js} +1 -1
  31. package/dist/lime-crm-building-blocks/{p-07a0993a.entry.js → p-317858e2.entry.js} +1 -1
  32. package/dist/lime-crm-building-blocks/{p-f34f91c6.js → p-39d48976.js} +1 -1
  33. package/dist/lime-crm-building-blocks/p-95a6f8b8.entry.js +1 -0
  34. package/dist/lime-crm-building-blocks/p-c6bd4f98.entry.js +1 -0
  35. package/dist/lime-crm-building-blocks/p-f9ef68c6.entry.js +1 -0
  36. package/dist/types/components/feed/feed-item/feed-timeline-item.d.ts +1 -1
  37. package/dist/types/components.d.ts +4 -4
  38. package/package.json +12 -12
  39. package/dist/lime-crm-building-blocks/p-44a09a10.entry.js +0 -1
  40. package/dist/lime-crm-building-blocks/p-e8ebd568.entry.js +0 -1
  41. package/dist/lime-crm-building-blocks/p-ef0a0587.entry.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.27.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.26.2...v1.27.0) (2024-01-24)
2
+
3
+
4
+ ### Features
5
+
6
+
7
+ * **feed-timeline-item:** rename the event itemSelected to unpromotedActionSelected ([ccc260a](https://github.com/Lundalogik/lime-crm-building-blocks/commit/ccc260a2112d69a562d924111b03f8af4c60c01a))
8
+
1
9
  ### [1.26.2](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.26.1...v1.26.2) (2024-01-15)
2
10
 
3
11
 
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["limebb-date-range.cjs",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["limebb-feed.cjs",[[1,"limebb-feed",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"minutesOfProximity":[2,"minutes-of-proximity"],"totalCount":[2,"total-count"]}]]],["limebb-currency-picker.cjs",[[1,"limebb-currency-picker",{"label":[513],"platform":[16],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"value":[8]}]]],["limebb-dashboard-widget.cjs",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-icon-picker.cjs",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-locale-picker.cjs",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["limebb-navigation-button.cjs",[[1,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-date-picker.cjs",[[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]],["limebb-feed-timeline-item.cjs",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"isBundled":[516,"is-bundled"],"showMore":[32],"isTall":[32]}]]]], options);
18
+ return index.bootstrapLazy([["limebb-date-range.cjs",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["limebb-feed.cjs",[[1,"limebb-feed",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"minutesOfProximity":[2,"minutes-of-proximity"],"totalCount":[2,"total-count"]}]]],["limebb-currency-picker.cjs",[[1,"limebb-currency-picker",{"label":[513],"platform":[16],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"value":[16]}]]],["limebb-dashboard-widget.cjs",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-icon-picker.cjs",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-locale-picker.cjs",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["limebb-navigation-button.cjs",[[1,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-date-picker.cjs",[[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]],["limebb-feed-timeline-item.cjs",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"isBundled":[516,"is-bundled"],"showMore":[32],"isTall":[32]}]]]], options);
19
19
  });
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0ceb2726.js');
6
- const types = require('./types-350bd795.js');
6
+ const types = require('./types-5327b47f.js');
7
7
 
8
8
  const nordicMarketCurrencies = [
9
9
  { secondaryText: 'Euro', text: 'EUR', icon: 'euro' },
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0ceb2726.js');
6
- const types = require('./types-350bd795.js');
6
+ const types = require('./types-5327b47f.js');
7
7
 
8
8
  /**
9
9
  * Create a UTC date with the same values for year, month and day as the given
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0ceb2726.js');
6
- const types = require('./types-350bd795.js');
6
+ const types = require('./types-5327b47f.js');
7
7
 
8
8
  const feedTimelineItemCss = "@charset \"UTF-8\";*{box-sizing:border-box}:host(limebb-feed-timeline-item){--limebb-feed-item-paddings:0.75rem;display:flex;gap:0.75rem;position:relative;isolation:isolate}:host(limebb-feed-timeline-item:hover) .timestamp{color:rgb(var(--contrast-1100))}:host(limebb-feed-timeline-item[is-bundled]:hover){--limebb-feed-item-timestamp-opacity-delay:0.5s}:host(limebb-feed-timeline-item[is-bundled]:hover) .timestamp{opacity:1}:host(limebb-feed-timeline-item[is-bundled]) .timestamp{opacity:0}.left:before{content:\"\";position:absolute;z-index:0;top:-0.25rem;bottom:-0.25rem;left:1rem;width:1px;background-color:rgb(var(--contrast-600));z-index:-1}.info{position:sticky;top:0.5rem;display:flex;flex-direction:column;align-items:center;gap:0.25rem}.right,.content{display:flex;flex-direction:column;flex-grow:1;min-width:0}.content{border-radius:1rem;gap:0.25rem;padding:var(--limebb-feed-item-paddings)}.header{display:flex;align-items:center;gap:0.25rem;padding-bottom:0.25rem;margin-top:-0.25rem;color:rgb(var(--contrast-900));font-size:0.875rem}:host(.has-unpromoted-actions) .header{padding-right:2rem}.heading{flex-grow:1;overflow:hidden;white-space:nowrap}.unpromoted-actions-menu{position:absolute;top:0;right:0}.timestamp{transition:color 0.4s ease, opacity 0.2s ease;transition-delay:var(--limebb-feed-item-timestamp-opacity-delay, 0s);font-size:0.75rem;text-align:center;color:rgb(var(--contrast-800));background-color:var(--limebb-feed-background-color);padding:0.125rem 0}.icon{--icon-background-color:var(--limebb-feed-background-color);width:2rem;padding:0.125rem}:host(.has-author-picture) .icon{width:1.5rem}img{border-radius:50%;width:2rem;height:2rem;object-fit:cover;box-shadow:0 0 0 1px rgb(var(--contrast-600))}.author{font-weight:bold;text-decoration:none;white-space:nowrap}a.author{position:relative;cursor:pointer;transition:color 0.2s ease;color:rgb(var(--color-blue-default))}a.author:before{transition:opacity 0.2s ease, transform 0.3s ease-out;content:\"\";position:absolute;inset:auto 0 0 0;width:calc(100% - 0.5rem);margin:auto;height:0.125rem;border-radius:1rem;background-color:currentColor;opacity:0;transform:scale(0.6)}a.author:hover{color:rgb(var(--color-blue-default))}a.author:hover:before{opacity:0.3;transform:scale(1)}limel-chip-set{margin-left:-1rem;margin-bottom:-0.5rem}limel-action-bar{--action-bar-item-height:1.75rem;transition:opacity 0.2s ease;justify-content:flex-start;opacity:0.8}.action-bar{display:grid;transition:grid-template-rows var(--limebb-feed-item-action-bar-grid-template-rows-transition-speed, 0.2s) cubic-bezier(1, 0.09, 0, 0.89) var(--limebb-feed-item-action-bar-grid-template-rows-transition-delay, 0s);grid-template-rows:var(--limebb-feed-item-action-bar-grid-template-rows, 1fr)}.action-bar-hider{overflow:hidden}limel-action-bar{transition:padding var(--limebb-feed-item-action-bar-grid-template-rows-transition-speed) cubic-bezier(1, 0.09, 0, 0.89) var(--limebb-feed-item-action-bar-grid-template-rows-transition-delay);padding-bottom:0.5rem}:host(limebb-feed-timeline-item:hover) .action-bar,:host(limebb-feed-timeline-item:focus-within) .action-bar,:host(limebb-feed-timeline-item:focus-visible) .action-bar{--limebb-feed-item-action-bar-grid-template-rows:1fr;will-change:grid-template-rows}:host(limebb-feed-timeline-item:hover) limel-action-bar,:host(limebb-feed-timeline-item:focus-within) limel-action-bar,:host(limebb-feed-timeline-item:focus-visible) limel-action-bar{will-change:opacity;opacity:1}:host(limebb-feed-timeline-item:hover){--limebb-feed-item-action-bar-grid-template-rows-transition-speed:0.46s;--limebb-feed-item-action-bar-grid-template-rows-transition-delay:0.5s}:host(limebb-feed-timeline-item.is-tall) .markdown-container{margin-bottom:0.5rem}:host(limebb-feed-timeline-item.is-tall) .body-text{min-height:10.25rem}:host(limebb-feed-timeline-item.is-tall) .body-text:after{transition:opacity 0.6s ease;content:\"\";opacity:0.26;pointer-events:none;position:absolute;bottom:-0.125rem;right:-0.125rem;left:-0.125rem;height:2.5rem;background:radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0)) 0 100%, linear-gradient(to bottom, rgb(var(--limebb-feed-item-background-color), 0) 0%, rgb(var(--limebb-feed-item-background-color), 90%) 100%);background-repeat:no-repeat;background-size:100% 0.5rem, 100% 100%}:host(limebb-feed-timeline-item.is-tall.shows-less) .markdown-container{grid-template-rows:0fr}:host(limebb-feed-timeline-item.is-tall.shows-less) .body-text:after{opacity:1}:host(limebb-feed-timeline-item.is-tall.shows-more) .markdown-container{grid-template-rows:1fr}:host(limebb-feed-timeline-item.is-tall.shows-more) #show-more-button limel-icon{rotate:180deg}.markdown-container{transition:grid-template-rows calc(var(--body-text-height) * 1.2ms) cubic-bezier(1, 0.09, 0, 0.89);position:relative;display:grid}.body-text{display:block;overflow:hidden}#show-more-button{all:unset;transition:color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;cursor:pointer;color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-normal);z-index:1;position:absolute;right:0;bottom:-0.6rem;left:0;margin:0 auto;display:flex;align-items:center;justify-content:center;border-radius:3rem;width:2rem;height:1rem}#show-more-button:hover{color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}#show-more-button:active{box-shadow:var(--button-shadow-pressed);transform:translate3d(0, 0.08rem, 0)}#show-more-button:focus{outline:none}#show-more-button:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}#show-more-button limel-icon{transition:rotate 0.2s ease 0.5s;color:var(--mdc-theme-primary);width:0.75rem}:host(limebb-feed-timeline-item[ui=standard]) .content{background-color:rgb(var(--limebb-feed-item-background-color))}:host(limebb-feed-timeline-item[ui=emphasized]) .content{border:1px dashed rgb(var(--contrast-800))}:host(limebb-feed-timeline-item[ui=minimal]) limel-markdown{--markdown-hyperlink-color:rgb(var(--contrast-900))}:host(limebb-feed-timeline-item[ui=minimal]) limel-markdown:hover{--markdown-hyperlink-color:rgb(var(--color-blue-default))}:host(limebb-feed-timeline-item[ui=minimal]) a.author{color:rgb(var(--contrast-900))}:host(limebb-feed-timeline-item[ui=minimal]) .header:hover a.author{color:rgb(var(--color-blue-default))}:host(limebb-feed-timeline-item[ui=minimal]) .icon{color:rgb(var(--contrast-900)) !important}:host(limebb-feed-timeline-item[ui=minimal]) .body-text{color:rgb(var(--contrast-900))}:host(limebb-feed-timeline-item[ui=minimal]) .body-text:hover{color:rgb(var(--contrast-1100))}.content{position:relative}.content:before,.content:after{content:\"\";position:absolute;top:1rem;bottom:1rem;left:-0.125rem;width:0.25rem;border-radius:0.25rem}.content:before{background-color:var(--color-code)}:host(limebb-feed-timeline-item[type=external]) .content:before,:host(limebb-feed-timeline-item[type=external]) .content:after{left:calc(-0.125rem - 0.5px)}:host(limebb-feed-timeline-item[type=system]) .content:before{opacity:0.25}:host(limebb-feed-timeline-item[type=system]) .content:after{opacity:0.5;background:repeating-linear-gradient(45deg, var(--color-code), var(--color-code) 0.5rem, transparent 0.5rem, transparent 1rem);background-size:0.25rem 100%;background-repeat:repeat-y;background-position:left;rotate:180deg}";
9
9
 
10
10
  const FeedTimelineItem = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
- this.itemSelected = index.createEvent(this, "itemSelected", 7);
13
+ this.unpromotedActionSelected = index.createEvent(this, "unpromotedActionSelected", 7);
14
14
  this.promotedActionSelected = index.createEvent(this, "promotedActionSelected", 7);
15
15
  /**
16
16
  * Defines the visualization and features of the feed item.
@@ -70,7 +70,7 @@ const FeedTimelineItem = class {
70
70
  };
71
71
  this.handleMenuItemSelect = (event) => {
72
72
  event.stopPropagation();
73
- this.itemSelected.emit(event.detail);
73
+ this.unpromotedActionSelected.emit(event.detail);
74
74
  };
75
75
  this.handleActionBarItemSelect = (event) => {
76
76
  event.stopPropagation();
@@ -3,23 +3,40 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0ceb2726.js');
6
- const types = require('./types-350bd795.js');
6
+ const types = require('./types-5327b47f.js');
7
7
 
8
- function _typeof(obj) {
9
- "@babel/helpers - typeof";
10
-
11
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
12
- return typeof obj;
13
- } : function (obj) {
14
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
15
- }, _typeof(obj);
8
+ function getRoundingMethod(method) {
9
+ return (number) => {
10
+ const round = method ? Math[method] : Math.trunc;
11
+ const result = round(number);
12
+ // Prevent negative zero
13
+ return result === 0 ? 0 : result;
14
+ };
16
15
  }
17
16
 
18
- function requiredArgs(required, args) {
19
- if (args.length < required) {
20
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
21
- }
22
- }
17
+ /**
18
+ * @module constants
19
+ * @summary Useful constants
20
+ * @description
21
+ * Collection of useful date constants.
22
+ *
23
+ * The constants could be imported from `date-fns/constants`:
24
+ *
25
+ * ```ts
26
+ * import { maxTime, minTime } from "./constants/date-fns/constants";
27
+ *
28
+ * function isAllowedTime(time) {
29
+ * return time <= maxTime && time >= minTime;
30
+ * }
31
+ * ```
32
+ */
33
+
34
+ /**
35
+ * @constant
36
+ * @name millisecondsInMinute
37
+ * @summary Milliseconds in 1 minute
38
+ */
39
+ const millisecondsInMinute = 60000;
23
40
 
24
41
  /**
25
42
  * @name toDate
@@ -37,9 +54,11 @@ function requiredArgs(required, args) {
37
54
  *
38
55
  * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
39
56
  *
40
- * @param {Date|Number} argument - the value to convert
41
- * @returns {Date} the parsed date in the local time zone
42
- * @throws {TypeError} 1 argument required
57
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
58
+ *
59
+ * @param argument - The value to convert
60
+ *
61
+ * @returns The parsed date in the local time zone
43
62
  *
44
63
  * @example
45
64
  * // Clone the date:
@@ -52,45 +71,29 @@ function requiredArgs(required, args) {
52
71
  * //=> Tue Feb 11 2014 11:30:30
53
72
  */
54
73
  function toDate(argument) {
55
- requiredArgs(1, arguments);
56
- var argStr = Object.prototype.toString.call(argument);
74
+ const argStr = Object.prototype.toString.call(argument);
57
75
 
58
76
  // Clone the date
59
- if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
77
+ if (
78
+ argument instanceof Date ||
79
+ (typeof argument === "object" && argStr === "[object Date]")
80
+ ) {
60
81
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
61
- return new Date(argument.getTime());
62
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
82
+ return new argument.constructor(+argument);
83
+ } else if (
84
+ typeof argument === "number" ||
85
+ argStr === "[object Number]" ||
86
+ typeof argument === "string" ||
87
+ argStr === "[object String]"
88
+ ) {
89
+ // TODO: Can we get rid of as?
63
90
  return new Date(argument);
64
91
  } else {
65
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
66
- // eslint-disable-next-line no-console
67
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
68
- // eslint-disable-next-line no-console
69
- console.warn(new Error().stack);
70
- }
92
+ // TODO: Can we get rid of as?
71
93
  return new Date(NaN);
72
94
  }
73
95
  }
74
96
 
75
- /**
76
- * Days in 1 week.
77
- *
78
- * @name daysInWeek
79
- * @constant
80
- * @type {number}
81
- * @default
82
- */
83
-
84
- /**
85
- * Milliseconds in 1 minute
86
- *
87
- * @name millisecondsInMinute
88
- * @constant
89
- * @type {number}
90
- * @default
91
- */
92
- var millisecondsInMinute = 60000;
93
-
94
97
  /**
95
98
  * @name differenceInMilliseconds
96
99
  * @category Millisecond Helpers
@@ -99,10 +102,12 @@ var millisecondsInMinute = 60000;
99
102
  * @description
100
103
  * Get the number of milliseconds between the given dates.
101
104
  *
102
- * @param {Date|Number} dateLeft - the later date
103
- * @param {Date|Number} dateRight - the earlier date
104
- * @returns {Number} the number of milliseconds
105
- * @throws {TypeError} 2 arguments required
105
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
106
+ *
107
+ * @param dateLeft - The later date
108
+ * @param dateRight - The earlier date
109
+ *
110
+ * @returns The number of milliseconds
106
111
  *
107
112
  * @example
108
113
  * // How many milliseconds are between
@@ -114,23 +119,12 @@ var millisecondsInMinute = 60000;
114
119
  * //=> 1100
115
120
  */
116
121
  function differenceInMilliseconds(dateLeft, dateRight) {
117
- requiredArgs(2, arguments);
118
- return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
122
+ return +toDate(dateLeft) - +toDate(dateRight);
119
123
  }
120
124
 
121
- var roundingMap = {
122
- ceil: Math.ceil,
123
- round: Math.round,
124
- floor: Math.floor,
125
- trunc: function trunc(value) {
126
- return value < 0 ? Math.ceil(value) : Math.floor(value);
127
- } // Math.trunc is not supported by IE
128
- };
129
-
130
- var defaultRoundingMethod = 'trunc';
131
- function getRoundingMethod(method) {
132
- return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
133
- }
125
+ /**
126
+ * The {@link differenceInMinutes} function options.
127
+ */
134
128
 
135
129
  /**
136
130
  * @name differenceInMinutes
@@ -140,12 +134,13 @@ function getRoundingMethod(method) {
140
134
  * @description
141
135
  * Get the signed number of full (rounded towards 0) minutes between the given dates.
142
136
  *
143
- * @param {Date|Number} dateLeft - the later date
144
- * @param {Date|Number} dateRight - the earlier date
145
- * @param {Object} [options] - an object with options.
146
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
147
- * @returns {Number} the number of minutes
148
- * @throws {TypeError} 2 arguments required
137
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
138
+ *
139
+ * @param dateLeft - The later date
140
+ * @param dateRight - The earlier date
141
+ * @param options - An object with options.
142
+ *
143
+ * @returns The number of minutes
149
144
  *
150
145
  * @example
151
146
  * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00?
@@ -164,9 +159,9 @@ function getRoundingMethod(method) {
164
159
  * //=> -1
165
160
  */
166
161
  function differenceInMinutes(dateLeft, dateRight, options) {
167
- requiredArgs(2, arguments);
168
- var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute;
169
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
162
+ const diff =
163
+ differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute;
164
+ return getRoundingMethod(options?.roundingMethod)(diff);
170
165
  }
171
166
 
172
167
  const feedCss = ":host(limebb-feed){--limebb-feed-background-color:var(\n --feed-background-color,\n rgb(var(--contrast-100))\n );--limebb-feed-item-background-color:var(--contrast-300);display:flex;flex-direction:column;gap:0.25rem;max-width:45rem;background-color:var(--limebb-feed-background-color)}.empty-state{text-align:center}limel-spinner{align-self:center;justify-self:center;margin:auto}.date-heading{font-weight:600;font-size:0.875rem;margin:1.25rem 0 0.5rem 0;color:rgb(var(--contrast-900))}limebb-feed-timeline-item:has(+limebb-feed-timeline-item[is-bundled]){--limebb-feed-item-action-bar-grid-template-rows:0fr}";
@@ -1900,6 +1900,16 @@ const icons = [
1900
1900
  tags: [
1901
1901
  ]
1902
1902
  },
1903
+ {
1904
+ id: "bankid_copyrighted.svg",
1905
+ tags: [
1906
+ ]
1907
+ },
1908
+ {
1909
+ id: "bankid_copyrighted-colored.svg",
1910
+ tags: [
1911
+ ]
1912
+ },
1903
1913
  {
1904
1914
  id: "banknotes.svg",
1905
1915
  tags: [
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0ceb2726.js');
6
- const types = require('./types-350bd795.js');
6
+ const types = require('./types-5327b47f.js');
7
7
 
8
8
  /** Detect free variable `global` from Node.js. */
9
9
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["limebb-date-range.cjs",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["limebb-feed.cjs",[[1,"limebb-feed",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"minutesOfProximity":[2,"minutes-of-proximity"],"totalCount":[2,"total-count"]}]]],["limebb-currency-picker.cjs",[[1,"limebb-currency-picker",{"label":[513],"platform":[16],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"value":[8]}]]],["limebb-dashboard-widget.cjs",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-icon-picker.cjs",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-locale-picker.cjs",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["limebb-navigation-button.cjs",[[1,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-date-picker.cjs",[[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]],["limebb-feed-timeline-item.cjs",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"isBundled":[516,"is-bundled"],"showMore":[32],"isTall":[32]}]]]], options);
17
+ return index.bootstrapLazy([["limebb-date-range.cjs",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["limebb-feed.cjs",[[1,"limebb-feed",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"minutesOfProximity":[2,"minutes-of-proximity"],"totalCount":[2,"total-count"]}]]],["limebb-currency-picker.cjs",[[1,"limebb-currency-picker",{"label":[513],"platform":[16],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"value":[16]}]]],["limebb-dashboard-widget.cjs",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-icon-picker.cjs",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-locale-picker.cjs",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["limebb-navigation-button.cjs",[[1,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-date-picker.cjs",[[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]],["limebb-feed-timeline-item.cjs",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"isBundled":[516,"is-bundled"],"showMore":[32],"isTall":[32]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -9,8 +9,8 @@ const PlatformServiceName = {
9
9
  Route: 'route',
10
10
  };
11
11
 
12
- const SERVICE_NAME$k = 'state.limetypes';
13
- PlatformServiceName.LimeTypeRepository = SERVICE_NAME$k;
12
+ const SERVICE_NAME$l = 'state.limetypes';
13
+ PlatformServiceName.LimeTypeRepository = SERVICE_NAME$l;
14
14
 
15
15
  /******************************************************************************
16
16
  Copyright (c) Microsoft Corporation.
@@ -39,8 +39,8 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
39
39
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
40
40
  };
41
41
 
42
- const SERVICE_NAME$j = 'state.limeobjects';
43
- PlatformServiceName.LimeObjectRepository = SERVICE_NAME$j;
42
+ const SERVICE_NAME$k = 'state.limeobjects';
43
+ PlatformServiceName.LimeObjectRepository = SERVICE_NAME$k;
44
44
 
45
45
  /**
46
46
  * Events dispatched by the commandbus event middleware
@@ -138,8 +138,8 @@ function getCommandIds(value) {
138
138
  return Array.from(new Set(ids));
139
139
  }
140
140
 
141
- const SERVICE_NAME$i = 'commandBus';
142
- PlatformServiceName.CommandBus = SERVICE_NAME$i;
141
+ const SERVICE_NAME$j = 'commandBus';
142
+ PlatformServiceName.CommandBus = SERVICE_NAME$j;
143
143
 
144
144
  /**
145
145
  * Open a dialog for bulk creating limeobjects
@@ -290,26 +290,26 @@ var Operator;
290
290
  Operator["ENDS"] = "=$";
291
291
  })(Operator || (Operator = {}));
292
292
 
293
- const SERVICE_NAME$h = 'query';
294
- PlatformServiceName.Query = SERVICE_NAME$h;
293
+ const SERVICE_NAME$i = 'query';
294
+ PlatformServiceName.Query = SERVICE_NAME$i;
295
295
 
296
- const SERVICE_NAME$g = 'http';
297
- PlatformServiceName.Http = SERVICE_NAME$g;
296
+ const SERVICE_NAME$h = 'http';
297
+ PlatformServiceName.Http = SERVICE_NAME$h;
298
298
 
299
- const SERVICE_NAME$f = 'eventDispatcher';
300
- PlatformServiceName.EventDispatcher = SERVICE_NAME$f;
299
+ const SERVICE_NAME$g = 'eventDispatcher';
300
+ PlatformServiceName.EventDispatcher = SERVICE_NAME$g;
301
301
 
302
- const SERVICE_NAME$e = 'translate';
303
- PlatformServiceName.Translate = SERVICE_NAME$e;
302
+ const SERVICE_NAME$f = 'translate';
303
+ PlatformServiceName.Translate = SERVICE_NAME$f;
304
304
 
305
- const SERVICE_NAME$d = 'dialog';
306
- PlatformServiceName.Dialog = SERVICE_NAME$d;
305
+ const SERVICE_NAME$e = 'dialog';
306
+ PlatformServiceName.Dialog = SERVICE_NAME$e;
307
307
 
308
- const SERVICE_NAME$c = 'keybindingRegistry';
309
- PlatformServiceName.KeybindingRegistry = SERVICE_NAME$c;
308
+ const SERVICE_NAME$d = 'keybindingRegistry';
309
+ PlatformServiceName.KeybindingRegistry = SERVICE_NAME$d;
310
310
 
311
- const SERVICE_NAME$b = 'navigator';
312
- PlatformServiceName.Navigator = SERVICE_NAME$b;
311
+ const SERVICE_NAME$c = 'navigator';
312
+ PlatformServiceName.Navigator = SERVICE_NAME$c;
313
313
 
314
314
  /**
315
315
  * Navigates to a new location
@@ -326,11 +326,11 @@ NavigateCommand = __decorate([
326
326
  })
327
327
  ], NavigateCommand);
328
328
 
329
- const SERVICE_NAME$a = 'notifications';
330
- PlatformServiceName.Notification = SERVICE_NAME$a;
329
+ const SERVICE_NAME$b = 'notifications';
330
+ PlatformServiceName.Notification = SERVICE_NAME$b;
331
331
 
332
- const SERVICE_NAME$9 = 'routeRegistry';
333
- PlatformServiceName.RouteRegistry = SERVICE_NAME$9;
332
+ const SERVICE_NAME$a = 'routeRegistry';
333
+ PlatformServiceName.RouteRegistry = SERVICE_NAME$a;
334
334
 
335
335
  /**
336
336
  * @public
@@ -386,31 +386,34 @@ var TaskEventType;
386
386
  TaskEventType["Failed"] = "task.failed";
387
387
  })(TaskEventType || (TaskEventType = {}));
388
388
 
389
- const SERVICE_NAME$8 = 'state.tasks';
390
- PlatformServiceName.TaskRepository = SERVICE_NAME$8;
389
+ const SERVICE_NAME$9 = 'state.tasks';
390
+ PlatformServiceName.TaskRepository = SERVICE_NAME$9;
391
391
 
392
- const SERVICE_NAME$7 = 'state.configs';
393
- PlatformServiceName.ConfigRepository = SERVICE_NAME$7;
392
+ const SERVICE_NAME$8 = 'state.configs';
393
+ PlatformServiceName.ConfigRepository = SERVICE_NAME$8;
394
394
 
395
- const SERVICE_NAME$6 = 'state.device';
396
- PlatformServiceName.Device = SERVICE_NAME$6;
395
+ const SERVICE_NAME$7 = 'state.device';
396
+ PlatformServiceName.Device = SERVICE_NAME$7;
397
397
 
398
- const SERVICE_NAME$5 = 'state.filters';
399
- PlatformServiceName.FilterRepository = SERVICE_NAME$5;
398
+ const SERVICE_NAME$6 = 'state.filters';
399
+ PlatformServiceName.FilterRepository = SERVICE_NAME$6;
400
400
 
401
- const SERVICE_NAME$4 = 'state.user-data';
402
- PlatformServiceName.UserDataRepository = SERVICE_NAME$4;
401
+ const SERVICE_NAME$5 = 'state.user-data';
402
+ PlatformServiceName.UserDataRepository = SERVICE_NAME$5;
403
403
 
404
- const SERVICE_NAME$3 = 'state.application';
405
- PlatformServiceName.Application = SERVICE_NAME$3;
404
+ const SERVICE_NAME$4 = 'state.application';
405
+ PlatformServiceName.Application = SERVICE_NAME$4;
406
406
 
407
- const SERVICE_NAME$2 = 'userPreferences';
408
- PlatformServiceName.UserPreferencesRepository = SERVICE_NAME$2;
407
+ const SERVICE_NAME$3 = 'userPreferences';
408
+ PlatformServiceName.UserPreferencesRepository = SERVICE_NAME$3;
409
409
 
410
- const SERVICE_NAME$1 = 'datetimeformatter';
411
- PlatformServiceName.DateTimeFormatter = SERVICE_NAME$1;
410
+ const SERVICE_NAME$2 = 'datetimeformatter';
411
+ PlatformServiceName.DateTimeFormatter = SERVICE_NAME$2;
412
412
 
413
- const SERVICE_NAME = 'conditionRegistry';
414
- PlatformServiceName.ConditionRegistry = SERVICE_NAME;
413
+ const SERVICE_NAME$1 = 'conditionRegistry';
414
+ PlatformServiceName.ConditionRegistry = SERVICE_NAME$1;
415
+
416
+ const SERVICE_NAME = 'viewFactoryRegistry';
417
+ PlatformServiceName.ViewFactoryRegistry = SERVICE_NAME;
415
418
 
416
419
  exports.PlatformServiceName = PlatformServiceName;
@@ -236,7 +236,7 @@ export class CurrencyPicker {
236
236
  "defaultValue": "false"
237
237
  },
238
238
  "value": {
239
- "type": "any",
239
+ "type": "unknown",
240
240
  "mutable": false,
241
241
  "complexType": {
242
242
  "original": "ListItem<string>",
@@ -253,9 +253,7 @@ export class CurrencyPicker {
253
253
  "docs": {
254
254
  "tags": [],
255
255
  "text": "The value of the current property"
256
- },
257
- "attribute": "value",
258
- "reflect": false
256
+ }
259
257
  }
260
258
  };
261
259
  }
@@ -65,7 +65,7 @@ export class FeedTimelineItem {
65
65
  };
66
66
  this.handleMenuItemSelect = (event) => {
67
67
  event.stopPropagation();
68
- this.itemSelected.emit(event.detail);
68
+ this.unpromotedActionSelected.emit(event.detail);
69
69
  };
70
70
  this.handleActionBarItemSelect = (event) => {
71
71
  event.stopPropagation();
@@ -343,8 +343,8 @@ export class FeedTimelineItem {
343
343
  }
344
344
  static get events() {
345
345
  return [{
346
- "method": "itemSelected",
347
- "name": "itemSelected",
346
+ "method": "unpromotedActionSelected",
347
+ "name": "unpromotedActionSelected",
348
348
  "bubbles": true,
349
349
  "cancelable": true,
350
350
  "composed": true,
@@ -1,6 +1,6 @@
1
1
  import { h } from '@stencil/core';
2
2
  import { PlatformServiceName, } from '@limetech/lime-web-components';
3
- import { differenceInMinutes } from 'date-fns';
3
+ import { differenceInMinutes } from 'date-fns/differenceInMinutes.mjs';
4
4
  const MINUTES_OF_PROXIMITY = 5;
5
5
  /**
6
6
  * Feed
@@ -8,7 +8,7 @@ const FeedTimelineItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
8
8
  super();
9
9
  this.__registerHost();
10
10
  this.__attachShadow();
11
- this.itemSelected = createEvent(this, "itemSelected", 7);
11
+ this.unpromotedActionSelected = createEvent(this, "unpromotedActionSelected", 7);
12
12
  this.promotedActionSelected = createEvent(this, "promotedActionSelected", 7);
13
13
  /**
14
14
  * Defines the visualization and features of the feed item.
@@ -68,7 +68,7 @@ const FeedTimelineItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
68
68
  };
69
69
  this.handleMenuItemSelect = (event) => {
70
70
  event.stopPropagation();
71
- this.itemSelected.emit(event.detail);
71
+ this.unpromotedActionSelected.emit(event.detail);
72
72
  };
73
73
  this.handleActionBarItemSelect = (event) => {
74
74
  event.stopPropagation();
@@ -229,7 +229,7 @@ const CurrencyPicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
229
229
  "readonly": [516],
230
230
  "invalid": [516],
231
231
  "disabled": [516],
232
- "value": [8]
232
+ "value": [16]
233
233
  }]);
234
234
  function defineCustomElement$1() {
235
235
  if (typeof customElements === "undefined") {