@limetech/lime-crm-building-blocks 1.21.9 → 1.21.11
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/dist/cjs/{index-a92159e8.js → index-0ceb2726.js} +54 -1
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/limebb-currency-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +1 -1
- package/dist/cjs/limebb-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/limebb-date-range.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-currency-picker-european.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-currency-picker-nordic.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-currency-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-dashboard-widget-slots.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-dashboard-widget-styles.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-dashboard-widget.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-date-picker-date.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-date-picker-datetime.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-date-picker-time.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-date-picker-week.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-date-range.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-feed-author-picture.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-feed-author.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-feed-item-heading.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-feed-load-more.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-feed-promoted-actions.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-feed-relations.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-feed-tall-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-feed-unpromoted-actions.cjs.entry.js +11 -5
- package/dist/cjs/limebb-example-feed.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-icon-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-locale-picker-multiple.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-locale-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-navigation-button-back.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-navigation-button-close.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-navigation-button-expand.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-navigation-button-float.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-navigation-button-maximize.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-navigation-button-minimize.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-navigation-button-new-tab.cjs.entry.js +1 -1
- package/dist/cjs/limebb-example-navigation-button-shrink.cjs.entry.js +1 -1
- package/dist/cjs/limebb-feed_2.cjs.entry.js +3 -3
- package/dist/cjs/limebb-icon-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/feed/examples/feed-unpromoted-actions.js +10 -4
- package/dist/collection/components/feed/feed-item/feed-timeline-item.css +13 -9
- package/dist/collection/components/feed/feed.js +1 -1
- package/dist/components/feed-timeline-item.js +1 -1
- package/dist/components/feed.js +1 -1
- package/dist/components/limebb-example-feed-unpromoted-actions.js +10 -4
- package/dist/esm/{index-f703c901.js → index-9d94fec9.js} +54 -1
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/limebb-currency-picker.entry.js +1 -1
- package/dist/esm/limebb-dashboard-widget.entry.js +1 -1
- package/dist/esm/limebb-date-picker_2.entry.js +1 -1
- package/dist/esm/limebb-date-range.entry.js +1 -1
- package/dist/esm/limebb-example-currency-picker-european.entry.js +1 -1
- package/dist/esm/limebb-example-currency-picker-nordic.entry.js +1 -1
- package/dist/esm/limebb-example-currency-picker.entry.js +1 -1
- package/dist/esm/limebb-example-dashboard-widget-slots.entry.js +1 -1
- package/dist/esm/limebb-example-dashboard-widget-styles.entry.js +1 -1
- package/dist/esm/limebb-example-dashboard-widget.entry.js +1 -1
- package/dist/esm/limebb-example-date-picker-date.entry.js +1 -1
- package/dist/esm/limebb-example-date-picker-datetime.entry.js +1 -1
- package/dist/esm/limebb-example-date-picker-time.entry.js +1 -1
- package/dist/esm/limebb-example-date-picker-week.entry.js +1 -1
- package/dist/esm/limebb-example-date-range.entry.js +1 -1
- package/dist/esm/limebb-example-feed-author-picture.entry.js +1 -1
- package/dist/esm/limebb-example-feed-author.entry.js +1 -1
- package/dist/esm/limebb-example-feed-item-heading.entry.js +1 -1
- package/dist/esm/limebb-example-feed-load-more.entry.js +1 -1
- package/dist/esm/limebb-example-feed-promoted-actions.entry.js +1 -1
- package/dist/esm/limebb-example-feed-relations.entry.js +1 -1
- package/dist/esm/limebb-example-feed-tall-item.entry.js +1 -1
- package/dist/esm/limebb-example-feed-unpromoted-actions.entry.js +11 -5
- package/dist/esm/limebb-example-feed.entry.js +1 -1
- package/dist/esm/limebb-example-icon-picker.entry.js +1 -1
- package/dist/esm/limebb-example-locale-picker-multiple.entry.js +1 -1
- package/dist/esm/limebb-example-locale-picker.entry.js +1 -1
- package/dist/esm/limebb-example-navigation-button-back.entry.js +1 -1
- package/dist/esm/limebb-example-navigation-button-close.entry.js +1 -1
- package/dist/esm/limebb-example-navigation-button-expand.entry.js +1 -1
- package/dist/esm/limebb-example-navigation-button-float.entry.js +1 -1
- package/dist/esm/limebb-example-navigation-button-maximize.entry.js +1 -1
- package/dist/esm/limebb-example-navigation-button-minimize.entry.js +1 -1
- package/dist/esm/limebb-example-navigation-button-new-tab.entry.js +1 -1
- package/dist/esm/limebb-example-navigation-button-shrink.entry.js +1 -1
- package/dist/esm/limebb-feed_2.entry.js +3 -3
- package/dist/esm/limebb-icon-picker.entry.js +1 -1
- package/dist/esm/limebb-locale-picker.entry.js +1 -1
- package/dist/esm/limebb-navigation-button.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/p-02ed3a92.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-4ae3e8e5.entry.js → p-0aaaaca0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-1306923b.entry.js → p-0f8928a9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-11f8f221.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-10938771.entry.js → p-1ffc17ec.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-185fbdf8.entry.js → p-23d68f3e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-09750334.entry.js → p-24a19099.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-2912b7e7.js +2 -0
- package/dist/lime-crm-building-blocks/{p-47ce2d55.entry.js → p-32e4364a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4fbdc381.entry.js → p-33174280.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-13df1d58.entry.js → p-3372d170.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-242ac64f.entry.js → p-354078b7.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-64841e14.entry.js → p-3998474e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-43a286a7.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-56ba707b.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-99dba5d9.entry.js → p-57e53a2d.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-45799858.entry.js → p-5e8d501a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3fa87a63.entry.js → p-5faf8443.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-ee0752ae.entry.js → p-636a38e8.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-8ff94f08.entry.js → p-6ad70097.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6b000acf.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-7142a2e7.entry.js → p-791741c6.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-79de4c38.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-7c3e338d.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-f139e1bf.entry.js → p-81bfe796.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-9380b07d.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-fe2d8058.entry.js → p-94fb580f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-46807a86.entry.js → p-9e026e05.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4a3ca01c.entry.js → p-a437678e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3e7ee270.entry.js → p-b0ca91ce.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-dff02b85.entry.js → p-bca75a1a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-c362a46c.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-c4da03cb.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-cddcdc0a.entry.js → p-c7e749f8.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-19e7d761.entry.js → p-d5f700c5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-ff7b278e.entry.js → p-d768ffbb.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-302b4faa.entry.js → p-e0627848.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4aecec42.entry.js → p-e37e8e1a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-deb26ce1.entry.js → p-e7607495.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-f838afa8.entry.js → p-eb122f28.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/lime-crm-building-blocks/p-01aa2e39.js +0 -2
- package/dist/lime-crm-building-blocks/p-0c18075f.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-12da107f.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-1ff0d60e.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-4ad36917.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-7f7b055b.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-9a845db6.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-a217c10b.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-be8217a8.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-da057ec5.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-ede7ef37.entry.js +0 -1
|
@@ -23,13 +23,11 @@ export class FeedExampleUnpromotedActions {
|
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
text: '
|
|
26
|
+
text: 'Copy link',
|
|
27
27
|
icon: {
|
|
28
|
-
name: '
|
|
29
|
-
color: 'rgb(var(--color-red-light))',
|
|
28
|
+
name: 'link',
|
|
30
29
|
},
|
|
31
30
|
},
|
|
32
|
-
{ separator: true },
|
|
33
31
|
{
|
|
34
32
|
text: 'Info',
|
|
35
33
|
icon: {
|
|
@@ -37,6 +35,14 @@ export class FeedExampleUnpromotedActions {
|
|
|
37
35
|
color: 'rgb(var(--color-sky-light))',
|
|
38
36
|
},
|
|
39
37
|
},
|
|
38
|
+
{ separator: true },
|
|
39
|
+
{
|
|
40
|
+
text: 'Delete',
|
|
41
|
+
icon: {
|
|
42
|
+
name: 'trash',
|
|
43
|
+
color: 'rgb(var(--color-red-light))',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
40
46
|
],
|
|
41
47
|
},
|
|
42
48
|
];
|
|
@@ -232,33 +232,35 @@ limel-action-bar {
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
:host(limebb-feed-timeline-item.is-tall) .body-text {
|
|
235
|
-
|
|
235
|
+
min-height: 11rem;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
:host(limebb-feed-timeline-item.is-tall.shows-less) .
|
|
239
|
-
|
|
238
|
+
:host(limebb-feed-timeline-item.is-tall.shows-less) .markdown-container {
|
|
239
|
+
grid-template-rows: 0fr;
|
|
240
240
|
}
|
|
241
241
|
:host(limebb-feed-timeline-item.is-tall.shows-less) .body-text:after {
|
|
242
242
|
content: "";
|
|
243
243
|
}
|
|
244
244
|
:host(limebb-feed-timeline-item.is-tall.shows-less) #show-more-button {
|
|
245
|
-
transform: translateY(
|
|
245
|
+
transform: translateY(0.5rem);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
:host(limebb-feed-timeline-item.is-tall.shows-more) .
|
|
249
|
-
|
|
250
|
-
padding-bottom: 1rem;
|
|
248
|
+
:host(limebb-feed-timeline-item.is-tall.shows-more) .markdown-container {
|
|
249
|
+
grid-template-rows: 1fr;
|
|
251
250
|
}
|
|
252
251
|
:host(limebb-feed-timeline-item.is-tall.shows-more) #show-more-button limel-icon {
|
|
253
252
|
rotate: 180deg;
|
|
254
253
|
}
|
|
255
254
|
|
|
256
255
|
.markdown-container {
|
|
256
|
+
transition: grid-template-rows 0.46s cubic-bezier(1, 0.09, 0, 0.89);
|
|
257
257
|
position: relative;
|
|
258
|
+
display: grid;
|
|
258
259
|
}
|
|
259
260
|
|
|
260
261
|
.body-text {
|
|
261
262
|
display: block;
|
|
263
|
+
overflow: hidden;
|
|
262
264
|
}
|
|
263
265
|
.body-text:after {
|
|
264
266
|
pointer-events: none;
|
|
@@ -280,13 +282,14 @@ limel-action-bar {
|
|
|
280
282
|
background-color: var(--lime-elevated-surface-background-color);
|
|
281
283
|
box-shadow: var(--button-shadow-normal);
|
|
282
284
|
position: relative;
|
|
285
|
+
z-index: 1;
|
|
283
286
|
display: flex;
|
|
284
287
|
align-items: center;
|
|
285
288
|
justify-content: center;
|
|
286
289
|
border-radius: 0.25rem;
|
|
287
|
-
padding: 0.25rem;
|
|
288
290
|
margin: auto;
|
|
289
|
-
width:
|
|
291
|
+
width: 1.25rem;
|
|
292
|
+
height: 1.25rem;
|
|
290
293
|
}
|
|
291
294
|
#show-more-button:hover {
|
|
292
295
|
color: var(--mdc-theme-on-surface);
|
|
@@ -305,6 +308,7 @@ limel-action-bar {
|
|
|
305
308
|
box-shadow: var(--shadow-depth-8-focused);
|
|
306
309
|
}
|
|
307
310
|
#show-more-button limel-icon {
|
|
311
|
+
transition: rotate 0.2s ease 0.5s;
|
|
308
312
|
color: var(--mdc-theme-primary);
|
|
309
313
|
width: 0.75rem;
|
|
310
314
|
}
|
|
@@ -86,7 +86,7 @@ export class Feed {
|
|
|
86
86
|
return this.items.map((item, index) => {
|
|
87
87
|
return [
|
|
88
88
|
this.renderDateHeader(item.timestamp, index),
|
|
89
|
-
h("limebb-feed-timeline-item", { platform: this.platform, context: this.context, item: item, isBundled: this.isBundled(item, index), unpromotedActionsMenuLabel: this.unpromotedActionsMenuLabel }),
|
|
89
|
+
h("limebb-feed-timeline-item", { platform: this.platform, context: this.context, item: item, key: item.id, isBundled: this.isBundled(item, index), unpromotedActionsMenuLabel: this.unpromotedActionsMenuLabel }),
|
|
90
90
|
];
|
|
91
91
|
});
|
|
92
92
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { P as PlatformServiceName } from './types.js';
|
|
3
3
|
|
|
4
|
-
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;background-color:rgb(var(--limebb-feed-item-background-color));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:smaller}: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}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) .body-text{
|
|
4
|
+
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;background-color:rgb(var(--limebb-feed-item-background-color));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:smaller}: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}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) .body-text{min-height:11rem}: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{content:\"\"}:host(limebb-feed-timeline-item.is-tall.shows-less) #show-more-button{transform:translateY(0.5rem)}: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 0.46s cubic-bezier(1, 0.09, 0, 0.89);position:relative;display:grid}.body-text{display:block;overflow:hidden}.body-text:after{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%}#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);position:relative;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:0.25rem;margin:auto;width:1.25rem;height:1.25rem}#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}";
|
|
5
5
|
|
|
6
6
|
const FeedTimelineItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
package/dist/components/feed.js
CHANGED
|
@@ -170,7 +170,7 @@ const Feed = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
170
170
|
return this.items.map((item, index) => {
|
|
171
171
|
return [
|
|
172
172
|
this.renderDateHeader(item.timestamp, index),
|
|
173
|
-
h("limebb-feed-timeline-item", { platform: this.platform, context: this.context, item: item, isBundled: this.isBundled(item, index), unpromotedActionsMenuLabel: this.unpromotedActionsMenuLabel }),
|
|
173
|
+
h("limebb-feed-timeline-item", { platform: this.platform, context: this.context, item: item, key: item.id, isBundled: this.isBundled(item, index), unpromotedActionsMenuLabel: this.unpromotedActionsMenuLabel }),
|
|
174
174
|
];
|
|
175
175
|
});
|
|
176
176
|
}
|
|
@@ -22,13 +22,11 @@ const FeedExampleUnpromotedActions = /*@__PURE__*/ proxyCustomElement(class exte
|
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
text: '
|
|
25
|
+
text: 'Copy link',
|
|
26
26
|
icon: {
|
|
27
|
-
name: '
|
|
28
|
-
color: 'rgb(var(--color-red-light))',
|
|
27
|
+
name: 'link',
|
|
29
28
|
},
|
|
30
29
|
},
|
|
31
|
-
{ separator: true },
|
|
32
30
|
{
|
|
33
31
|
text: 'Info',
|
|
34
32
|
icon: {
|
|
@@ -36,6 +34,14 @@ const FeedExampleUnpromotedActions = /*@__PURE__*/ proxyCustomElement(class exte
|
|
|
36
34
|
color: 'rgb(var(--color-sky-light))',
|
|
37
35
|
},
|
|
38
36
|
},
|
|
37
|
+
{ separator: true },
|
|
38
|
+
{
|
|
39
|
+
text: 'Delete',
|
|
40
|
+
icon: {
|
|
41
|
+
name: 'trash',
|
|
42
|
+
color: 'rgb(var(--color-red-light))',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
39
45
|
],
|
|
40
46
|
},
|
|
41
47
|
];
|
|
@@ -54,6 +54,7 @@ const isComplexType = (o) => {
|
|
|
54
54
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
55
55
|
const h = (nodeName, vnodeData, ...children) => {
|
|
56
56
|
let child = null;
|
|
57
|
+
let key = null;
|
|
57
58
|
let simple = false;
|
|
58
59
|
let lastSimple = false;
|
|
59
60
|
const vNodeChildren = [];
|
|
@@ -81,6 +82,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
81
82
|
};
|
|
82
83
|
walk(children);
|
|
83
84
|
if (vnodeData) {
|
|
85
|
+
// normalize class / classname attributes
|
|
86
|
+
if (vnodeData.key) {
|
|
87
|
+
key = vnodeData.key;
|
|
88
|
+
}
|
|
84
89
|
{
|
|
85
90
|
const classData = vnodeData.className || vnodeData.class;
|
|
86
91
|
if (classData) {
|
|
@@ -98,6 +103,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
98
103
|
if (vNodeChildren.length > 0) {
|
|
99
104
|
vnode.$children$ = vNodeChildren;
|
|
100
105
|
}
|
|
106
|
+
{
|
|
107
|
+
vnode.$key$ = key;
|
|
108
|
+
}
|
|
101
109
|
return vnode;
|
|
102
110
|
};
|
|
103
111
|
const newVNode = (tag, text) => {
|
|
@@ -111,6 +119,9 @@ const newVNode = (tag, text) => {
|
|
|
111
119
|
{
|
|
112
120
|
vnode.$attrs$ = null;
|
|
113
121
|
}
|
|
122
|
+
{
|
|
123
|
+
vnode.$key$ = null;
|
|
124
|
+
}
|
|
114
125
|
return vnode;
|
|
115
126
|
};
|
|
116
127
|
const Host = {};
|
|
@@ -302,6 +313,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
302
313
|
}
|
|
303
314
|
}
|
|
304
315
|
}
|
|
316
|
+
else if (memberName === 'key')
|
|
317
|
+
;
|
|
305
318
|
else if (memberName === 'ref') {
|
|
306
319
|
// minifier will clean this up
|
|
307
320
|
if (newValue) {
|
|
@@ -551,6 +564,8 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
551
564
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
552
565
|
let oldStartIdx = 0;
|
|
553
566
|
let newStartIdx = 0;
|
|
567
|
+
let idxInOld = 0;
|
|
568
|
+
let i = 0;
|
|
554
569
|
let oldEndIdx = oldCh.length - 1;
|
|
555
570
|
let oldStartVnode = oldCh[0];
|
|
556
571
|
let oldEndVnode = oldCh[oldEndIdx];
|
|
@@ -558,6 +573,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
558
573
|
let newStartVnode = newCh[0];
|
|
559
574
|
let newEndVnode = newCh[newEndIdx];
|
|
560
575
|
let node;
|
|
576
|
+
let elmToMove;
|
|
561
577
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
562
578
|
if (oldStartVnode == null) {
|
|
563
579
|
// VNode might have been moved left
|
|
@@ -624,7 +640,41 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
624
640
|
newStartVnode = newCh[++newStartIdx];
|
|
625
641
|
}
|
|
626
642
|
else {
|
|
643
|
+
// Here we do some checks to match up old and new nodes based on the
|
|
644
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
645
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
|
646
|
+
// component.
|
|
647
|
+
//
|
|
648
|
+
// First we check to see if there are any nodes in the array of old
|
|
649
|
+
// children which have the same key as the first node in the new
|
|
650
|
+
// children.
|
|
651
|
+
idxInOld = -1;
|
|
627
652
|
{
|
|
653
|
+
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
654
|
+
if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
|
|
655
|
+
idxInOld = i;
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
if (idxInOld >= 0) {
|
|
661
|
+
// We found a node in the old children which matches up with the first
|
|
662
|
+
// node in the new children! So let's deal with that
|
|
663
|
+
elmToMove = oldCh[idxInOld];
|
|
664
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
665
|
+
// the tag doesn't match so we'll need a new DOM element
|
|
666
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
|
|
667
|
+
}
|
|
668
|
+
else {
|
|
669
|
+
patch(elmToMove, newStartVnode);
|
|
670
|
+
// invalidate the matching old node so that we won't try to update it
|
|
671
|
+
// again later on
|
|
672
|
+
oldCh[idxInOld] = undefined;
|
|
673
|
+
node = elmToMove.$elm$;
|
|
674
|
+
}
|
|
675
|
+
newStartVnode = newCh[++newStartIdx];
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
628
678
|
// We either didn't find an element in the old children that matches
|
|
629
679
|
// the key of the first new child OR the build is not using `key`
|
|
630
680
|
// attributes at all. In either case we need to create a new element
|
|
@@ -672,7 +722,10 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
672
722
|
// compare if two vnode to see if they're "technically" the same
|
|
673
723
|
// need to have the same element tag, and same key to be the same
|
|
674
724
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
675
|
-
|
|
725
|
+
// this will be set if components in the build have `key` attrs set on them
|
|
726
|
+
{
|
|
727
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
728
|
+
}
|
|
676
729
|
}
|
|
677
730
|
return false;
|
|
678
731
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-9d94fec9.js';
|
|
2
2
|
import { P as PlatformServiceName } from './types-acf07609.js';
|
|
3
3
|
import { a as allCurrencies } from './currencies-0d90053e.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-9d94fec9.js';
|
|
2
2
|
|
|
3
3
|
const dashboardWidgetCss = ":host(limebb-dashboard-widget){--dashboard-widget-background-color:var(\n --start-page-grid-widget-background-color,\n rgb(var(--contrast-100))\n );--header-icon-color:var(--dashboard-widget-icon-color);--header-background-color:var(\n --dashboard-widget-header-background-color,\n var(--start-page-grid-widget-header-color)\n );--dashboard-widget-border-radius:var(\n --start-page-grid-widget-border-radius,\n 1rem\n );--header-top-right-left-border-radius:0;display:flex;flex-direction:column;border-radius:var(--dashboard-widget-border-radius);background-color:var(--dashboard-widget-background-color);height:100%;width:100%;overflow:hidden}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-9d94fec9.js';
|
|
2
2
|
import { P as PlatformServiceName } from './types-acf07609.js';
|
|
3
3
|
import { a as isObjectLike, b as baseGetTag, d as baseUnary, n as nodeUtil, c as isObject, i as isArray } from './_nodeUtil-0fe4ef3d.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-9d94fec9.js';
|
|
2
2
|
|
|
3
3
|
const dateRangeCss = ":host(limebb-date-range){isolation:isolate;display:block;position:relative}*{box-sizing:border-box}.date-pickers{display:grid;grid-template-columns:repeat(auto-fit, minmax(13.5rem, 1fr));gap:0.5rem;padding:0.75rem 1rem 1.25rem 1rem}.label-group{display:flex;align-items:center;margin-bottom:0.25rem}.end-time .label-group{flex-direction:row-reverse}.label-group .label{font-size:0.75rem;padding:0 0.25rem}.label-group .circle{flex-shrink:0;width:0.5rem;height:0.5rem;border-radius:50%}.start-time .label-group .circle{background-color:rgb(var(--color-green-default))}.end-time .label-group .circle{background-color:rgb(var(--color-coral-default))}.label-group .line{flex-grow:1;height:0.25rem;border-radius:1rem}.start-time .label-group .line{background-image:linear-gradient(to right, rgb(var(--color-green-light)), rgb(var(--contrast-400)) 30%)}.end-time .label-group .line{background-image:linear-gradient(to left, rgb(var(--color-coral-light)), rgb(var(--contrast-400)) 30%)}.date-pickers:has(>:last-child:nth-child(2)) .start-time .line{margin-right:-0.5rem}.date-pickers:has(>:last-child:nth-child(2)) .end-time .line{margin-left:-0.5rem}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-9d94fec9.js';
|
|
2
2
|
|
|
3
3
|
const dashboardWidgetStylesCss = "limebb-dashboard-widget{--dashboard-widget-header-background-color:rgb(\n var(--color-yellow-default)\n );--dashboard-widget-background-color:rgb(var(--contrast-300));--dashboard-widget-icon-color:rgb(var(--color-orange-default))}[slot=content]{padding:0 1rem}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-9d94fec9.js';
|
|
2
2
|
import { p as platform } from './platform-a7f72da9.js';
|
|
3
3
|
import { f as feedItems } from './feed-items-392f557e.js';
|
|
4
4
|
import { b as baseIteratee, a as arrayMap, c as baseMap } from './_baseMap-7463343c.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-9d94fec9.js';
|
|
2
2
|
import { p as platform } from './platform-a7f72da9.js';
|
|
3
3
|
import './types-acf07609.js';
|
|
4
4
|
import './index-16157a5c.js';
|
|
@@ -21,13 +21,11 @@ const FeedExampleUnpromotedActions = class {
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
text: '
|
|
24
|
+
text: 'Copy link',
|
|
25
25
|
icon: {
|
|
26
|
-
name: '
|
|
27
|
-
color: 'rgb(var(--color-red-light))',
|
|
26
|
+
name: 'link',
|
|
28
27
|
},
|
|
29
28
|
},
|
|
30
|
-
{ separator: true },
|
|
31
29
|
{
|
|
32
30
|
text: 'Info',
|
|
33
31
|
icon: {
|
|
@@ -35,6 +33,14 @@ const FeedExampleUnpromotedActions = class {
|
|
|
35
33
|
color: 'rgb(var(--color-sky-light))',
|
|
36
34
|
},
|
|
37
35
|
},
|
|
36
|
+
{ separator: true },
|
|
37
|
+
{
|
|
38
|
+
text: 'Delete',
|
|
39
|
+
icon: {
|
|
40
|
+
name: 'trash',
|
|
41
|
+
color: 'rgb(var(--color-red-light))',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
38
44
|
],
|
|
39
45
|
},
|
|
40
46
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-9d94fec9.js';
|
|
2
2
|
import { p as platform } from './platform-a7f72da9.js';
|
|
3
3
|
import { f as feedItems } from './feed-items-392f557e.js';
|
|
4
4
|
import './types-acf07609.js';
|