@limetech/lime-crm-building-blocks 1.54.3 → 1.54.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/{decorator-6732648c.js → decorator-d3d8a4bb.js} +1 -1
- package/dist/cjs/limebb-browser.cjs.entry.js +1 -1
- package/dist/cjs/limebb-component-config.cjs.entry.js +1 -1
- package/dist/cjs/limebb-component-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-currency-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-empty-state_2.cjs.entry.js +1 -1
- package/dist/cjs/limebb-feed.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limebb-kanban-column.cjs.entry.js +1 -1
- package/dist/cjs/limebb-kanban-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-mention.cjs.entry.js +1 -1
- package/dist/cjs/limebb-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/limebb-text-editor.cjs.entry.js +16 -35
- package/dist/cjs/{types-58398272.js → types-55a8dfb7.js} +2 -2
- package/dist/collection/components/text-editor/text-editor.js +15 -34
- package/dist/components/limebb-text-editor.js +15 -34
- package/dist/components/types.js +1 -1
- package/dist/esm/{decorator-b89b5c4c.js → decorator-d3dbf340.js} +1 -1
- package/dist/esm/limebb-browser.entry.js +1 -1
- package/dist/esm/limebb-component-config.entry.js +1 -1
- package/dist/esm/limebb-component-picker.entry.js +1 -1
- package/dist/esm/limebb-currency-picker.entry.js +1 -1
- package/dist/esm/limebb-date-picker.entry.js +1 -1
- package/dist/esm/limebb-empty-state_2.entry.js +1 -1
- package/dist/esm/limebb-feed.entry.js +1 -1
- package/dist/esm/limebb-info-tile.entry.js +1 -1
- package/dist/esm/limebb-kanban-column.entry.js +1 -1
- package/dist/esm/limebb-kanban-item.entry.js +1 -1
- package/dist/esm/limebb-limeobject-file-viewer.entry.js +2 -2
- package/dist/esm/limebb-locale-picker.entry.js +1 -1
- package/dist/esm/limebb-mention.entry.js +1 -1
- package/dist/esm/limebb-notification-item.entry.js +1 -1
- package/dist/esm/limebb-notification-list.entry.js +1 -1
- package/dist/esm/limebb-text-editor.entry.js +16 -35
- package/dist/esm/{types-1545a0e8.js → types-4d6d1350.js} +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-929cd29d.entry.js → p-0b662fa5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9cb21d99.entry.js → p-1953001c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-468bd2f5.entry.js → p-3f66a22e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-c46ae048.entry.js → p-43810f23.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e341a633.js → p-4506e883.js} +1 -1
- package/dist/lime-crm-building-blocks/p-49c535cd.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-7e90ea8a.entry.js → p-4b389d50.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-145a8111.entry.js → p-56654f3d.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-52d448c8.entry.js → p-58416605.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-34228436.entry.js → p-8c471dcf.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-44981dd1.entry.js → p-931bfc20.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-ad2c2bae.entry.js → p-99a45f29.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-92a5b712.entry.js → p-9c2a8a0e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e7eac781.entry.js → p-9e9e54f3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-11afef73.entry.js → p-a5c21e07.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-0a3a0de5.entry.js → p-bf3dfc8b.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-aacf77ae.js → p-db4425f5.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-5d203bcc.entry.js → p-fd6bc5af.entry.js} +1 -1
- package/dist/types/components/text-editor/text-editor.d.ts +2 -4
- package/package.json +2 -2
- package/dist/lime-crm-building-blocks/p-7882dd3f.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.54.4](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.54.3...v1.54.4) (2024-11-29)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* **text-editor:** allow mentions by prop in basic example ([fe3189d](https://github.com/Lundalogik/lime-crm-building-blocks/commit/fe3189d803f61aa965e23f79c2193a4d2a671fda))
|
|
7
|
+
* **text-editor:** order mentions by search hits ([556e2be](https://github.com/Lundalogik/lime-crm-building-blocks/commit/556e2be572611c2b0fca688d2111bdb5f7ff9b9f))
|
|
8
|
+
* **text-editor:** remove unused list separator type ([39da046](https://github.com/Lundalogik/lime-crm-building-blocks/commit/39da04648cb82db95e8a7dd553bda0f15dc2266c))
|
|
9
|
+
|
|
1
10
|
## [1.54.3](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.54.2...v1.54.3) (2024-11-28)
|
|
2
11
|
|
|
3
12
|
### Bug Fixes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
const keycodes = require('./keycodes-a6c36f6d.js');
|
|
8
8
|
const negate = require('./negate-14a67e26.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
const get = require('./get-a5ed6f0a.js');
|
|
8
8
|
require('./_Map-7b4a3fd8.js');
|
|
9
9
|
require('./isObject-437a6bfd.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
const componentPickerCss = ":host(limebb-component-picker){position:relative;display:flex;align-items:center}:host(limebb-component-picker) limel-picker{flex-grow:1;min-width:0}:host(limebb-component-picker) limel-icon-button{position:absolute;right:0.25rem}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
const nonNull = require('./non-null-45e885d5.js');
|
|
8
8
|
|
|
9
9
|
function createCommonjsModule(fn, basedir, module) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Create a UTC date with the same values for year, month and day as the given
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
const emptyStateCss = ":host(limebb-empty-state){display:flex;flex-direction:column;align-items:center;gap:0.25rem;padding:0.5rem;opacity:0;animation:fade-in 0.3s ease forwards;animation-delay:0.5s}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}*{box-sizing:border-box}h2{color:rgb(var(--contrast-1100));margin:0}limel-markdown{color:rgb(var(--contrast-1000));text-align:center;line-height:1.4}limel-icon{width:2.5rem}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
function getRoundingMethod(method) {
|
|
9
9
|
return (number) => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
const factory = require('./factory-310afac1.js');
|
|
8
8
|
const _getTag = require('./_getTag-9b35d8fd.js');
|
|
9
9
|
const _Map = require('./_Map-7b4a3fd8.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
const kanbanColumnCss = "@charset \"UTF-8\";:host(limebb-kanban-column){--header-top-right-left-border-radius:0.5rem;scroll-snap-align:start;box-sizing:border-box;display:flex;flex-direction:column;border-radius:0.5rem;min-width:20rem;background-color:rgb(var(--contrast-500))}:host(limebb-kanban-column.ungrouped-column){border:1px dashed rgb(var(--contrast-700));background-color:rgb(var(--contrast-300))}:host(limebb-kanban-column.ungrouped-column) limebb-kanban-item{border:1px dashed rgb(var(--contrast-700))}limel-header{flex-shrink:0}.items{flex-grow:1;display:flex;flex-direction:column;gap:0.5rem;padding:0.5rem;overflow-y:auto;-webkit-overflow-scrolling:touch}limebb-kanban-item{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(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color)}limebb-kanban-item:hover,limebb-kanban-item:focus,limebb-kanban-item:focus-visible{will-change:color, background-color, box-shadow, transform}limebb-kanban-item:hover{transform:translate3d(0, 0.01rem, 0);color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}limebb-kanban-item:active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}limebb-kanban-item:hover,limebb-kanban-item:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
const kanbanItemCss = "@charset \"UTF-8\";:host(limebb-kanban-item){box-sizing:border-box;display:flex;flex-direction:column;border-radius:0.5rem}.header{display:flex;align-items:center;gap:0.5rem;padding:0.25rem;border-radius:0.5rem 0.5rem 0 0;background-color:rgb(var(--contrast-200))}.header .icon{flex-shrink:0;width:1.25rem}.header img{border-radius:50%;width:1.25rem;height:1.25rem;object-fit:cover;box-shadow:0 0 0 1px rgb(var(--contrast-800))}.header a{position:relative;cursor:pointer;transition:color 0.2s ease;color:var(--mdc-theme-primary);text-decoration:none}.header a: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)}.header a:hover{color:rgb(var(--color-teal-light))}.header a:hover:before{opacity:0.3;transform:scale(1)}.header limel-markdown{--markdown-hyperlink-color:var(--mdc-theme-primary);--markdown-hyperlink-color--hovered:rgb(var(--color-teal-light))}.unpromoted-actions-menu{margin:-0.25rem -0.25rem -0.25rem auto}.body{padding:0.5rem}limel-chip-set{display:block;margin-left:-0.5rem;margin-bottom:-0.5rem}.footer{position:relative;display:flex;align-items:center;justify-content:flex-end;padding:0.25rem 0.5rem;border-top:1px dashed rgb(var(--contrast-300))}.footer:after{content:\"\";display:block;position:absolute;top:0.25rem;bottom:0.25rem;left:0.125rem;width:0.25rem;border-radius:0.25rem;background-color:var(--color-code)}.timestamp{font-size:0.75rem;color:rgb(var(--contrast-800))}";
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
7
|
-
const decorator = require('./decorator-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
|
+
const decorator = require('./decorator-d3d8a4bb.js');
|
|
8
8
|
const factory = require('./factory-310afac1.js');
|
|
9
9
|
const negate = require('./negate-14a67e26.js');
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
const get = require('./get-a5ed6f0a.js');
|
|
8
8
|
const isObject = require('./isObject-437a6bfd.js');
|
|
9
9
|
const _getTag = require('./_getTag-9b35d8fd.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Find the closest parent element matching the given predicate
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
const notificationItemCss = "@charset \"UTF-8\";*{box-sizing:border-box}:host(limebb-notification-item){isolation:isolate;padding:0 0.5rem}.notification-item{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:0.25rem;border-radius:0.75rem;border:1px solid rgb(var(--contrast-500))}.notification-item:before{content:\"\";display:block;position:absolute;left:-1rem;top:0.85rem;border-radius:50%;height:0.5rem;width:0.5rem;transition:background-color 0.2s ease;background-color:var(--limebb-notification-item-unread-badge-color, transparent)}:host(limebb-notification-item.is-clickable) .notification-item{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(--mdc-theme-on-surface);background-color:transparent}:host(limebb-notification-item.is-clickable) .notification-item:hover,:host(limebb-notification-item.is-clickable) .notification-item:focus,:host(limebb-notification-item.is-clickable) .notification-item:focus-visible{will-change:color, background-color, box-shadow, transform}:host(limebb-notification-item.is-clickable) .notification-item:hover{transform:translate3d(0, 0.01rem, 0);color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}:host(limebb-notification-item.is-clickable) .notification-item:active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}:host(limebb-notification-item.is-clickable) .notification-item:hover,:host(limebb-notification-item.is-clickable) .notification-item:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(limebb-notification-item.is-read) .notification-item{border-color:rgb(var(--contrast-600));background-color:rgb(var(--contrast-500))}:host(limebb-notification-item.is-clickable) .notification-item:hover{border-color:transparent}:host(limebb-notification-item:not(.is-read)) .notification-item{--limebb-notification-item-unread-badge-color:rgb(\n var(--color-red-default)\n );background-color:rgb(var(--contrast-100))}:host(limebb-notification-item:hover) .timestamp{color:rgb(var(--contrast-1100))}:host(limebb-notification-item:hover) .body-text{opacity:1}.header{display:flex;align-items:center;gap:0.25rem;min-height:2rem;padding:0 0 0 0.25rem;margin-bottom:0.25rem}.header:not(:has(.icon)){padding-left:0.75rem}.header:not(:has(.unpromoted-actions-menu)){padding-right:0.5rem}.caption,.timestamp{font-size:0.75rem}.caption{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;flex-grow:1;font-weight:600;color:rgb(var(--contrast-900))}.timestamp{flex-shrink:0;margin-left:auto;transition:color 0.4s ease, opacity 0.2s ease;color:rgb(var(--contrast-900))}.headline{display:flex;gap:0.25rem;align-items:center}.content{display:flex;min-width:0;gap:0.5rem;padding:0 0.75rem 0.5rem 0.75rem}.heading{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.5rem;font-size:0.875rem;--markdown-hyperlink-color:var(--mdc-theme-primary);--markdown-hyperlink-color--hovered:rgb(var(--color-teal-light))}.body{display:flex;flex-direction:column;gap:0.5rem}.body-text{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:4.25rem;transition:opacity 0.2s ease;opacity:0.7}.icon{--icon-background-color:var(--limebb-feed-background-color);flex-shrink:0;width:1.5rem;padding:0.125rem}.author-avatar{border-radius:50%;width:2rem;height:2rem;object-fit:cover;margin-top:auto;margin-right:-0.25rem;margin-left:auto;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:var(--mdc-theme-primary)}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-teal-light))}a.author:hover:before{opacity:0.3;transform:scale(1)}limel-chip-set{--button-shadow-normal:none;margin-left:-1rem;margin-bottom:-0.5rem}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Processes a list of notifications by adding date headers and a "new items" indicator.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-dd1aef9e.js');
|
|
6
|
-
const types = require('./types-
|
|
7
|
-
const decorator = require('./decorator-
|
|
6
|
+
const types = require('./types-55a8dfb7.js');
|
|
7
|
+
const decorator = require('./decorator-d3d8a4bb.js');
|
|
8
8
|
const keycodes = require('./keycodes-a6c36f6d.js');
|
|
9
9
|
const nonNull = require('./non-null-45e885d5.js');
|
|
10
10
|
const isObject = require('./isObject-437a6bfd.js');
|
|
@@ -615,49 +615,30 @@ const LimeBBTextEditor = class {
|
|
|
615
615
|
this.items = [];
|
|
616
616
|
return;
|
|
617
617
|
}
|
|
618
|
-
this.items =
|
|
618
|
+
this.items = this.createSearchListItems(objects);
|
|
619
619
|
}
|
|
620
620
|
catch (e) {
|
|
621
621
|
console.error('Failed search for user', e);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
|
|
625
|
-
const
|
|
626
|
-
return
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
key: '_id',
|
|
635
|
-
op: types.Operator.IN,
|
|
636
|
-
exp: ids,
|
|
637
|
-
},
|
|
638
|
-
};
|
|
639
|
-
const { objects: loadedObjects } = await this.limeObjectService.loadObjects(limetype.name, options);
|
|
640
|
-
return this.createListItems(limetype, loadedObjects);
|
|
641
|
-
}
|
|
642
|
-
createListItems(limetype, objects) {
|
|
643
|
-
return objects
|
|
644
|
-
.map((object) => this.createListItem(limetype, object))
|
|
624
|
+
createSearchListItems(searchObjects = []) {
|
|
625
|
+
const createSearchItem = this.viewFactoryRegistry.getFactory('search');
|
|
626
|
+
return searchObjects
|
|
627
|
+
.map((object) => {
|
|
628
|
+
const limeobject = this.limeObjectService.getObject(object._limetype, object._id);
|
|
629
|
+
if (!limeobject) {
|
|
630
|
+
return null;
|
|
631
|
+
}
|
|
632
|
+
return createSearchItem(limeobject, this.context);
|
|
633
|
+
})
|
|
645
634
|
.filter(nonNull.isNonNull);
|
|
646
635
|
}
|
|
647
|
-
createListItem(limetype, object) {
|
|
648
|
-
const limeobject = this.limeObjectService.getObject(limetype.name, object._id);
|
|
649
|
-
if (!limeobject) {
|
|
650
|
-
return null;
|
|
651
|
-
}
|
|
652
|
-
return {
|
|
653
|
-
text: limeobject.descriptive,
|
|
654
|
-
secondaryText: limetype.name,
|
|
655
|
-
value: object._id,
|
|
656
|
-
};
|
|
657
|
-
}
|
|
658
636
|
get limeObjectService() {
|
|
659
637
|
return this.platform.get(types.PlatformServiceName.LimeObjectRepository);
|
|
660
638
|
}
|
|
639
|
+
get viewFactoryRegistry() {
|
|
640
|
+
return this.platform.get(types.PlatformServiceName.ViewFactoryRegistry);
|
|
641
|
+
}
|
|
661
642
|
get textEditorElement() { return index.getElement(this); }
|
|
662
643
|
static get watchers() { return {
|
|
663
644
|
"isPickerOpen": ["watchOpen"],
|
|
@@ -273,7 +273,7 @@ SaveLimeObjectCommand = __decorate([
|
|
|
273
273
|
* @public
|
|
274
274
|
* @group Query
|
|
275
275
|
*/
|
|
276
|
-
|
|
276
|
+
var Operator;
|
|
277
277
|
(function (Operator) {
|
|
278
278
|
Operator["AND"] = "AND";
|
|
279
279
|
Operator["OR"] = "OR";
|
|
@@ -288,7 +288,7 @@ exports.Operator = void 0;
|
|
|
288
288
|
Operator["LESS_OR_EQUAL"] = "<=";
|
|
289
289
|
Operator["GREATER_OR_EQUAL"] = ">=";
|
|
290
290
|
Operator["ENDS"] = "=$";
|
|
291
|
-
})(
|
|
291
|
+
})(Operator || (Operator = {}));
|
|
292
292
|
/**
|
|
293
293
|
*
|
|
294
294
|
* @beta
|
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { PlatformServiceName, SelectLimeTypes, } from '@limetech/lime-web-components';
|
|
12
12
|
import { h, } from '@stencil/core';
|
|
13
13
|
import { BACKSPACE, ENTER, ESCAPE, TAB } from '../../util/keycodes';
|
|
14
14
|
import { createRandomString } from '../../util/random-string';
|
|
@@ -265,49 +265,30 @@ export class LimeBBTextEditor {
|
|
|
265
265
|
this.items = [];
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
|
-
this.items =
|
|
268
|
+
this.items = this.createSearchListItems(objects);
|
|
269
269
|
}
|
|
270
270
|
catch (e) {
|
|
271
271
|
console.error('Failed search for user', e);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
return
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
key: '_id',
|
|
285
|
-
op: Operator.IN,
|
|
286
|
-
exp: ids,
|
|
287
|
-
},
|
|
288
|
-
};
|
|
289
|
-
const { objects: loadedObjects } = await this.limeObjectService.loadObjects(limetype.name, options);
|
|
290
|
-
return this.createListItems(limetype, loadedObjects);
|
|
291
|
-
}
|
|
292
|
-
createListItems(limetype, objects) {
|
|
293
|
-
return objects
|
|
294
|
-
.map((object) => this.createListItem(limetype, object))
|
|
274
|
+
createSearchListItems(searchObjects = []) {
|
|
275
|
+
const createSearchItem = this.viewFactoryRegistry.getFactory('search');
|
|
276
|
+
return searchObjects
|
|
277
|
+
.map((object) => {
|
|
278
|
+
const limeobject = this.limeObjectService.getObject(object._limetype, object._id);
|
|
279
|
+
if (!limeobject) {
|
|
280
|
+
return null;
|
|
281
|
+
}
|
|
282
|
+
return createSearchItem(limeobject, this.context);
|
|
283
|
+
})
|
|
295
284
|
.filter(isNonNull);
|
|
296
285
|
}
|
|
297
|
-
createListItem(limetype, object) {
|
|
298
|
-
const limeobject = this.limeObjectService.getObject(limetype.name, object._id);
|
|
299
|
-
if (!limeobject) {
|
|
300
|
-
return null;
|
|
301
|
-
}
|
|
302
|
-
return {
|
|
303
|
-
text: limeobject.descriptive,
|
|
304
|
-
secondaryText: limetype.name,
|
|
305
|
-
value: object._id,
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
286
|
get limeObjectService() {
|
|
309
287
|
return this.platform.get(PlatformServiceName.LimeObjectRepository);
|
|
310
288
|
}
|
|
289
|
+
get viewFactoryRegistry() {
|
|
290
|
+
return this.platform.get(PlatformServiceName.ViewFactoryRegistry);
|
|
291
|
+
}
|
|
311
292
|
static get is() { return "limebb-text-editor"; }
|
|
312
293
|
static get encapsulation() { return "shadow"; }
|
|
313
294
|
static get properties() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { P as PlatformServiceName
|
|
2
|
+
import { P as PlatformServiceName } from './types.js';
|
|
3
3
|
import { a as SelectLimeTypes } from './decorator.js';
|
|
4
4
|
import { a as ESCAPE, B as BACKSPACE, E as ENTER, T as TAB } from './keycodes.js';
|
|
5
5
|
import { i as isNonNull } from './non-null.js';
|
|
@@ -613,49 +613,30 @@ const LimeBBTextEditor = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
613
613
|
this.items = [];
|
|
614
614
|
return;
|
|
615
615
|
}
|
|
616
|
-
this.items =
|
|
616
|
+
this.items = this.createSearchListItems(objects);
|
|
617
617
|
}
|
|
618
618
|
catch (e) {
|
|
619
619
|
console.error('Failed search for user', e);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
|
|
623
|
-
const
|
|
624
|
-
return
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
key: '_id',
|
|
633
|
-
op: Operator.IN,
|
|
634
|
-
exp: ids,
|
|
635
|
-
},
|
|
636
|
-
};
|
|
637
|
-
const { objects: loadedObjects } = await this.limeObjectService.loadObjects(limetype.name, options);
|
|
638
|
-
return this.createListItems(limetype, loadedObjects);
|
|
639
|
-
}
|
|
640
|
-
createListItems(limetype, objects) {
|
|
641
|
-
return objects
|
|
642
|
-
.map((object) => this.createListItem(limetype, object))
|
|
622
|
+
createSearchListItems(searchObjects = []) {
|
|
623
|
+
const createSearchItem = this.viewFactoryRegistry.getFactory('search');
|
|
624
|
+
return searchObjects
|
|
625
|
+
.map((object) => {
|
|
626
|
+
const limeobject = this.limeObjectService.getObject(object._limetype, object._id);
|
|
627
|
+
if (!limeobject) {
|
|
628
|
+
return null;
|
|
629
|
+
}
|
|
630
|
+
return createSearchItem(limeobject, this.context);
|
|
631
|
+
})
|
|
643
632
|
.filter(isNonNull);
|
|
644
633
|
}
|
|
645
|
-
createListItem(limetype, object) {
|
|
646
|
-
const limeobject = this.limeObjectService.getObject(limetype.name, object._id);
|
|
647
|
-
if (!limeobject) {
|
|
648
|
-
return null;
|
|
649
|
-
}
|
|
650
|
-
return {
|
|
651
|
-
text: limeobject.descriptive,
|
|
652
|
-
secondaryText: limetype.name,
|
|
653
|
-
value: object._id,
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
634
|
get limeObjectService() {
|
|
657
635
|
return this.platform.get(PlatformServiceName.LimeObjectRepository);
|
|
658
636
|
}
|
|
637
|
+
get viewFactoryRegistry() {
|
|
638
|
+
return this.platform.get(PlatformServiceName.ViewFactoryRegistry);
|
|
639
|
+
}
|
|
659
640
|
get textEditorElement() { return this; }
|
|
660
641
|
static get watchers() { return {
|
|
661
642
|
"isPickerOpen": ["watchOpen"],
|
package/dist/components/types.js
CHANGED
|
@@ -434,4 +434,4 @@ PlatformServiceName.NotificationRepository = SERVICE_NAME$1;
|
|
|
434
434
|
const SERVICE_NAME = 'pollerFactory';
|
|
435
435
|
PlatformServiceName.PollerFactory = SERVICE_NAME;
|
|
436
436
|
|
|
437
|
-
export { AggregateOperator as A,
|
|
437
|
+
export { AggregateOperator as A, PlatformServiceName as P };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
import { E as ENTER } from './keycodes-7f4bac6f.js';
|
|
4
4
|
import { n as negate } from './negate-a980a4fe.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
import { g as get } from './get-bb007d5d.js';
|
|
4
4
|
import './_Map-62ad6821.js';
|
|
5
5
|
import './isObject-895b7b45.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
const componentPickerCss = ":host(limebb-component-picker){position:relative;display:flex;align-items:center}:host(limebb-component-picker) limel-picker{flex-grow:1;min-width:0}:host(limebb-component-picker) limel-icon-button{position:absolute;right:0.25rem}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
import { i as isNonNull } from './non-null-f3e62427.js';
|
|
4
4
|
|
|
5
5
|
function createCommonjsModule(fn, basedir, module) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a UTC date with the same values for year, month and day as the given
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
const emptyStateCss = ":host(limebb-empty-state){display:flex;flex-direction:column;align-items:center;gap:0.25rem;padding:0.5rem;opacity:0;animation:fade-in 0.3s ease forwards;animation-delay:0.5s}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}*{box-sizing:border-box}h2{color:rgb(var(--contrast-1100));margin:0}limel-markdown{color:rgb(var(--contrast-1000));text-align:center;line-height:1.4}limel-icon{width:2.5rem}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
function getRoundingMethod(method) {
|
|
5
5
|
return (number) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName, A as AggregateOperator } from './types-
|
|
2
|
+
import { P as PlatformServiceName, A as AggregateOperator } from './types-4d6d1350.js';
|
|
3
3
|
import { c as createStateDecorator } from './factory-babd3a98.js';
|
|
4
4
|
import { i as isArrayLike, a as isBuffer, b as isTypedArray, c as isArguments, g as getTag, d as isPrototype, e as baseKeys } from './_getTag-86f08bee.js';
|
|
5
5
|
import { i as isArray } from './_Map-62ad6821.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
const kanbanColumnCss = "@charset \"UTF-8\";:host(limebb-kanban-column){--header-top-right-left-border-radius:0.5rem;scroll-snap-align:start;box-sizing:border-box;display:flex;flex-direction:column;border-radius:0.5rem;min-width:20rem;background-color:rgb(var(--contrast-500))}:host(limebb-kanban-column.ungrouped-column){border:1px dashed rgb(var(--contrast-700));background-color:rgb(var(--contrast-300))}:host(limebb-kanban-column.ungrouped-column) limebb-kanban-item{border:1px dashed rgb(var(--contrast-700))}limel-header{flex-shrink:0}.items{flex-grow:1;display:flex;flex-direction:column;gap:0.5rem;padding:0.5rem;overflow-y:auto;-webkit-overflow-scrolling:touch}limebb-kanban-item{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(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color)}limebb-kanban-item:hover,limebb-kanban-item:focus,limebb-kanban-item:focus-visible{will-change:color, background-color, box-shadow, transform}limebb-kanban-item:hover{transform:translate3d(0, 0.01rem, 0);color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}limebb-kanban-item:active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}limebb-kanban-item:hover,limebb-kanban-item:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
const kanbanItemCss = "@charset \"UTF-8\";:host(limebb-kanban-item){box-sizing:border-box;display:flex;flex-direction:column;border-radius:0.5rem}.header{display:flex;align-items:center;gap:0.5rem;padding:0.25rem;border-radius:0.5rem 0.5rem 0 0;background-color:rgb(var(--contrast-200))}.header .icon{flex-shrink:0;width:1.25rem}.header img{border-radius:50%;width:1.25rem;height:1.25rem;object-fit:cover;box-shadow:0 0 0 1px rgb(var(--contrast-800))}.header a{position:relative;cursor:pointer;transition:color 0.2s ease;color:var(--mdc-theme-primary);text-decoration:none}.header a: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)}.header a:hover{color:rgb(var(--color-teal-light))}.header a:hover:before{opacity:0.3;transform:scale(1)}.header limel-markdown{--markdown-hyperlink-color:var(--mdc-theme-primary);--markdown-hyperlink-color--hovered:rgb(var(--color-teal-light))}.unpromoted-actions-menu{margin:-0.25rem -0.25rem -0.25rem auto}.body{padding:0.5rem}limel-chip-set{display:block;margin-left:-0.5rem;margin-bottom:-0.5rem}.footer{position:relative;display:flex;align-items:center;justify-content:flex-end;padding:0.25rem 0.5rem;border-top:1px dashed rgb(var(--contrast-300))}.footer:after{content:\"\";display:block;position:absolute;top:0.25rem;bottom:0.25rem;left:0.125rem;width:0.25rem;border-radius:0.25rem;background-color:var(--color-code)}.timestamp{font-size:0.75rem;color:rgb(var(--contrast-800))}";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
3
|
-
import { S as SelectCurrentLimeType } from './decorator-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
|
+
import { S as SelectCurrentLimeType } from './decorator-d3dbf340.js';
|
|
4
4
|
import { c as createStateDecorator } from './factory-babd3a98.js';
|
|
5
5
|
import { n as negate } from './negate-a980a4fe.js';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
import { e as eq, t as toString, L as ListCache, M as MapCache, c as castPath, a as toKey, i as isKey, g as get, b as baseGet, d as arrayMap } from './get-bb007d5d.js';
|
|
4
4
|
import { i as isObject, S as Symbol, r as root, a as isObjectLike } from './isObject-895b7b45.js';
|
|
5
5
|
import { i as isArrayLike, c as isArguments, a as isBuffer, b as isTypedArray, e as baseKeys, g as getTag, f as isLength, h as baseUnary } from './_getTag-86f08bee.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Find the closest parent element matching the given predicate
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
const notificationItemCss = "@charset \"UTF-8\";*{box-sizing:border-box}:host(limebb-notification-item){isolation:isolate;padding:0 0.5rem}.notification-item{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:0.25rem;border-radius:0.75rem;border:1px solid rgb(var(--contrast-500))}.notification-item:before{content:\"\";display:block;position:absolute;left:-1rem;top:0.85rem;border-radius:50%;height:0.5rem;width:0.5rem;transition:background-color 0.2s ease;background-color:var(--limebb-notification-item-unread-badge-color, transparent)}:host(limebb-notification-item.is-clickable) .notification-item{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(--mdc-theme-on-surface);background-color:transparent}:host(limebb-notification-item.is-clickable) .notification-item:hover,:host(limebb-notification-item.is-clickable) .notification-item:focus,:host(limebb-notification-item.is-clickable) .notification-item:focus-visible{will-change:color, background-color, box-shadow, transform}:host(limebb-notification-item.is-clickable) .notification-item:hover{transform:translate3d(0, 0.01rem, 0);color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}:host(limebb-notification-item.is-clickable) .notification-item:active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}:host(limebb-notification-item.is-clickable) .notification-item:hover,:host(limebb-notification-item.is-clickable) .notification-item:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(limebb-notification-item.is-read) .notification-item{border-color:rgb(var(--contrast-600));background-color:rgb(var(--contrast-500))}:host(limebb-notification-item.is-clickable) .notification-item:hover{border-color:transparent}:host(limebb-notification-item:not(.is-read)) .notification-item{--limebb-notification-item-unread-badge-color:rgb(\n var(--color-red-default)\n );background-color:rgb(var(--contrast-100))}:host(limebb-notification-item:hover) .timestamp{color:rgb(var(--contrast-1100))}:host(limebb-notification-item:hover) .body-text{opacity:1}.header{display:flex;align-items:center;gap:0.25rem;min-height:2rem;padding:0 0 0 0.25rem;margin-bottom:0.25rem}.header:not(:has(.icon)){padding-left:0.75rem}.header:not(:has(.unpromoted-actions-menu)){padding-right:0.5rem}.caption,.timestamp{font-size:0.75rem}.caption{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;flex-grow:1;font-weight:600;color:rgb(var(--contrast-900))}.timestamp{flex-shrink:0;margin-left:auto;transition:color 0.4s ease, opacity 0.2s ease;color:rgb(var(--contrast-900))}.headline{display:flex;gap:0.25rem;align-items:center}.content{display:flex;min-width:0;gap:0.5rem;padding:0 0.75rem 0.5rem 0.75rem}.heading{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.5rem;font-size:0.875rem;--markdown-hyperlink-color:var(--mdc-theme-primary);--markdown-hyperlink-color--hovered:rgb(var(--color-teal-light))}.body{display:flex;flex-direction:column;gap:0.5rem}.body-text{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:4.25rem;transition:opacity 0.2s ease;opacity:0.7}.icon{--icon-background-color:var(--limebb-feed-background-color);flex-shrink:0;width:1.5rem;padding:0.125rem}.author-avatar{border-radius:50%;width:2rem;height:2rem;object-fit:cover;margin-top:auto;margin-right:-0.25rem;margin-left:auto;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:var(--mdc-theme-primary)}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-teal-light))}a.author:hover:before{opacity:0.3;transform:scale(1)}limel-chip-set{--button-shadow-normal:none;margin-left:-1rem;margin-bottom:-0.5rem}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a0338355.js';
|
|
2
|
-
import { P as PlatformServiceName } from './types-
|
|
2
|
+
import { P as PlatformServiceName } from './types-4d6d1350.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Processes a list of notifications by adding date headers and a "new items" indicator.
|