@limetech/lime-crm-building-blocks 1.42.0 → 1.43.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.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/limebb-empty-state.cjs.entry.js +45 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/empty-state/empty-state.css +26 -0
- package/dist/collection/components/empty-state/empty-state.js +110 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/limebb-empty-state.d.ts +11 -0
- package/dist/components/limebb-empty-state.js +63 -0
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/limebb-empty-state.entry.js +41 -0
- 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-02e5fa8f.entry.js +1 -0
- package/dist/types/components/empty-state/empty-state.d.ts +28 -0
- package/dist/types/components.d.ts +37 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.43.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.42.0...v1.43.0) (2024-09-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **empty-message:** add a new component ([ea35cfc](https://github.com/Lundalogik/lime-crm-building-blocks/commit/ea35cfcdf92a4840d3cd2ede4559c0efbaedb438))
|
|
8
|
+
|
|
1
9
|
## [1.42.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.41.3...v1.42.0) (2024-08-29)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["limebb-kanban.cjs",[[1,"limebb-kanban",{"platform":[16],"context":[16],"items":[16],"paginationSize":[2,"pagination-size"],"groupBy":[513,"group-by"],"groups":[16]}]]],["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"],"lastVisitedTimestamp":[1,"last-visited-timestamp"]}]]],["limebb-notification-list.cjs",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"paginationSize":[2,"pagination-size"],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"displayedItemCount":[32]}]]],["limebb-browser.cjs",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["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-info-tile.cjs",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[1,"filter-id"],"disabled":[4],"icon":[1],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"filters":[32],"value":[32],"loading":[32],"error":[32]}]]],["limebb-limeobject-file-viewer.cjs",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["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",[[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-kanban-item.cjs",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["limebb-kanban-column.cjs",[[1,"limebb-kanban-column",{"platform":[16],"context":[16],"columnHeading":[1,"column-heading"],"items":[16],"loading":[4],"paginationSize":[2,"pagination-size"],"displayedItemCount":[32]}]]],["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"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["limebb-notification-item.cjs",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["limebb-kanban.cjs",[[1,"limebb-kanban",{"platform":[16],"context":[16],"items":[16],"paginationSize":[2,"pagination-size"],"groupBy":[513,"group-by"],"groups":[16]}]]],["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"],"lastVisitedTimestamp":[1,"last-visited-timestamp"]}]]],["limebb-notification-list.cjs",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"paginationSize":[2,"pagination-size"],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"displayedItemCount":[32]}]]],["limebb-browser.cjs",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["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-empty-state.cjs",[[1,"limebb-empty-state",{"heading":[513],"value":[513],"icon":[16]}]]],["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-info-tile.cjs",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[1,"filter-id"],"disabled":[4],"icon":[1],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"filters":[32],"value":[32],"loading":[32],"error":[32]}]]],["limebb-limeobject-file-viewer.cjs",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["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",[[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-kanban-item.cjs",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["limebb-kanban-column.cjs",[[1,"limebb-kanban-column",{"platform":[16],"context":[16],"columnHeading":[1,"column-heading"],"items":[16],"loading":[4],"paginationSize":[2,"pagination-size"],"displayedItemCount":[32]}]]],["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"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["limebb-notification-item.cjs",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]]], options);
|
|
19
19
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5aaf6970.js');
|
|
6
|
+
|
|
7
|
+
const emptyStateCss = ":host(limebb-empty-state){display:flex;flex-direction:column;align-items:center;gap:0.25rem;padding:0.5rem}*{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}";
|
|
8
|
+
|
|
9
|
+
const EmptyState = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return [
|
|
15
|
+
this.renderIcon(),
|
|
16
|
+
this.renderHeading(),
|
|
17
|
+
this.renderSubheader(),
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
renderHeading() {
|
|
21
|
+
if (!this.heading) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
return index.h("h2", null, this.heading);
|
|
25
|
+
}
|
|
26
|
+
renderSubheader() {
|
|
27
|
+
if (!this.value) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
return index.h("limel-markdown", { value: this.value });
|
|
31
|
+
}
|
|
32
|
+
renderIcon() {
|
|
33
|
+
var _a, _b, _c;
|
|
34
|
+
if (!this.icon) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
return (index.h("limel-icon", { badge: true, name: (_a = this.icon) === null || _a === void 0 ? void 0 : _a.name, style: {
|
|
38
|
+
color: `${(_b = this.icon) === null || _b === void 0 ? void 0 : _b.color}`,
|
|
39
|
+
'background-color': `${(_c = this.icon) === null || _c === void 0 ? void 0 : _c.backgroundColor}`,
|
|
40
|
+
} }));
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
EmptyState.style = emptyStateCss;
|
|
44
|
+
|
|
45
|
+
exports.limebb_empty_state = EmptyState;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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-kanban.cjs",[[1,"limebb-kanban",{"platform":[16],"context":[16],"items":[16],"paginationSize":[2,"pagination-size"],"groupBy":[513,"group-by"],"groups":[16]}]]],["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"],"lastVisitedTimestamp":[1,"last-visited-timestamp"]}]]],["limebb-notification-list.cjs",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"paginationSize":[2,"pagination-size"],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"displayedItemCount":[32]}]]],["limebb-browser.cjs",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["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-info-tile.cjs",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[1,"filter-id"],"disabled":[4],"icon":[1],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"filters":[32],"value":[32],"loading":[32],"error":[32]}]]],["limebb-limeobject-file-viewer.cjs",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["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",[[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-kanban-item.cjs",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["limebb-kanban-column.cjs",[[1,"limebb-kanban-column",{"platform":[16],"context":[16],"columnHeading":[1,"column-heading"],"items":[16],"loading":[4],"paginationSize":[2,"pagination-size"],"displayedItemCount":[32]}]]],["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"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["limebb-notification-item.cjs",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["limebb-kanban.cjs",[[1,"limebb-kanban",{"platform":[16],"context":[16],"items":[16],"paginationSize":[2,"pagination-size"],"groupBy":[513,"group-by"],"groups":[16]}]]],["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"],"lastVisitedTimestamp":[1,"last-visited-timestamp"]}]]],["limebb-notification-list.cjs",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"paginationSize":[2,"pagination-size"],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"displayedItemCount":[32]}]]],["limebb-browser.cjs",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["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-empty-state.cjs",[[1,"limebb-empty-state",{"heading":[513],"value":[513],"icon":[16]}]]],["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-info-tile.cjs",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[1,"filter-id"],"disabled":[4],"icon":[1],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"filters":[32],"value":[32],"loading":[32],"error":[32]}]]],["limebb-limeobject-file-viewer.cjs",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["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",[[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-kanban-item.cjs",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["limebb-kanban-column.cjs",[[1,"limebb-kanban-column",{"platform":[16],"context":[16],"columnHeading":[1,"column-heading"],"items":[16],"loading":[4],"paginationSize":[2,"pagination-size"],"displayedItemCount":[32]}]]],["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"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["limebb-notification-item.cjs",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"./components/dashboard-widget/dashboard-widget.js",
|
|
6
6
|
"./components/date-picker/date-picker.js",
|
|
7
7
|
"./components/date-range/date-range.js",
|
|
8
|
+
"./components/empty-state/empty-state.js",
|
|
8
9
|
"./components/feed/feed.js",
|
|
9
10
|
"./components/feed/feed-item/feed-timeline-item.js",
|
|
10
11
|
"./components/icon-picker/icon-picker.js",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
:host(limebb-empty-state) {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 0.25rem;
|
|
6
|
+
padding: 0.5rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
* {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
h2 {
|
|
14
|
+
color: rgb(var(--contrast-1100));
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
limel-markdown {
|
|
19
|
+
color: rgb(var(--contrast-1000));
|
|
20
|
+
text-align: center;
|
|
21
|
+
line-height: 1.4;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
limel-icon {
|
|
25
|
+
width: 2.5rem;
|
|
26
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
/**
|
|
3
|
+
* An "empty state" in user interface design refers to the screen or space displayed, when there is no data
|
|
4
|
+
* or content available to show to the user. This state typically occurs in new accounts, after clearing data,
|
|
5
|
+
* or when no results are returned from a search.
|
|
6
|
+
*
|
|
7
|
+
* @exampleComponent limebb-example-empty-state-basic
|
|
8
|
+
* @exampleComponent limebb-example-empty-state-value-as-markdown
|
|
9
|
+
*/
|
|
10
|
+
export class EmptyState {
|
|
11
|
+
render() {
|
|
12
|
+
return [
|
|
13
|
+
this.renderIcon(),
|
|
14
|
+
this.renderHeading(),
|
|
15
|
+
this.renderSubheader(),
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
renderHeading() {
|
|
19
|
+
if (!this.heading) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
return h("h2", null, this.heading);
|
|
23
|
+
}
|
|
24
|
+
renderSubheader() {
|
|
25
|
+
if (!this.value) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
return h("limel-markdown", { value: this.value });
|
|
29
|
+
}
|
|
30
|
+
renderIcon() {
|
|
31
|
+
var _a, _b, _c;
|
|
32
|
+
if (!this.icon) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
return (h("limel-icon", { badge: true, name: (_a = this.icon) === null || _a === void 0 ? void 0 : _a.name, style: {
|
|
36
|
+
color: `${(_b = this.icon) === null || _b === void 0 ? void 0 : _b.color}`,
|
|
37
|
+
'background-color': `${(_c = this.icon) === null || _c === void 0 ? void 0 : _c.backgroundColor}`,
|
|
38
|
+
} }));
|
|
39
|
+
}
|
|
40
|
+
static get is() { return "limebb-empty-state"; }
|
|
41
|
+
static get encapsulation() { return "shadow"; }
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["empty-state.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["empty-state.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"heading": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "string",
|
|
59
|
+
"resolved": "string",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": false,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "Text to display in the header"
|
|
67
|
+
},
|
|
68
|
+
"attribute": "heading",
|
|
69
|
+
"reflect": true
|
|
70
|
+
},
|
|
71
|
+
"value": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "string",
|
|
76
|
+
"resolved": "string | undefined",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": true,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": "Message to further clarify the heading. It receives markdown syntax and renders it as HTML.\nThis allows for more complex formatting. For example, you can use links, lists, and other formatting options."
|
|
84
|
+
},
|
|
85
|
+
"attribute": "value",
|
|
86
|
+
"reflect": true
|
|
87
|
+
},
|
|
88
|
+
"icon": {
|
|
89
|
+
"type": "unknown",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "Icon",
|
|
93
|
+
"resolved": "Icon | undefined",
|
|
94
|
+
"references": {
|
|
95
|
+
"Icon": {
|
|
96
|
+
"location": "import",
|
|
97
|
+
"path": "@limetech/lime-elements"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": true,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "Icon to display"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -4,6 +4,7 @@ export { CurrencyPicker as LimebbCurrencyPicker } from '../types/components/curr
|
|
|
4
4
|
export { DashboardComponent as LimebbDashboardWidget } from '../types/components/dashboard-widget/dashboard-widget';
|
|
5
5
|
export { DatePicker as LimebbDatePicker } from '../types/components/date-picker/date-picker';
|
|
6
6
|
export { DateRange as LimebbDateRange } from '../types/components/date-range/date-range';
|
|
7
|
+
export { EmptyState as LimebbEmptyState } from '../types/components/empty-state/empty-state';
|
|
7
8
|
export { Feed as LimebbFeed } from '../types/components/feed/feed';
|
|
8
9
|
export { FeedTimelineItem as LimebbFeedTimelineItem } from '../types/components/feed/feed-item/feed-timeline-item';
|
|
9
10
|
export { IconPicker as LimebbIconPicker } from '../types/components/icon-picker/icon-picker';
|
package/dist/components/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export { LimebbCurrencyPicker, defineCustomElement as defineCustomElementLimebbC
|
|
|
4
4
|
export { LimebbDashboardWidget, defineCustomElement as defineCustomElementLimebbDashboardWidget } from './limebb-dashboard-widget.js';
|
|
5
5
|
export { LimebbDatePicker, defineCustomElement as defineCustomElementLimebbDatePicker } from './limebb-date-picker.js';
|
|
6
6
|
export { LimebbDateRange, defineCustomElement as defineCustomElementLimebbDateRange } from './limebb-date-range.js';
|
|
7
|
+
export { LimebbEmptyState, defineCustomElement as defineCustomElementLimebbEmptyState } from './limebb-empty-state.js';
|
|
7
8
|
export { LimebbFeed, defineCustomElement as defineCustomElementLimebbFeed } from './limebb-feed.js';
|
|
8
9
|
export { LimebbFeedTimelineItem, defineCustomElement as defineCustomElementLimebbFeedTimelineItem } from './limebb-feed-timeline-item.js';
|
|
9
10
|
export { LimebbIconPicker, defineCustomElement as defineCustomElementLimebbIconPicker } from './limebb-icon-picker.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface LimebbEmptyState extends Components.LimebbEmptyState, HTMLElement {}
|
|
4
|
+
export const LimebbEmptyState: {
|
|
5
|
+
prototype: LimebbEmptyState;
|
|
6
|
+
new (): LimebbEmptyState;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const emptyStateCss = ":host(limebb-empty-state){display:flex;flex-direction:column;align-items:center;gap:0.25rem;padding:0.5rem}*{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}";
|
|
4
|
+
|
|
5
|
+
const EmptyState = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return [
|
|
13
|
+
this.renderIcon(),
|
|
14
|
+
this.renderHeading(),
|
|
15
|
+
this.renderSubheader(),
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
renderHeading() {
|
|
19
|
+
if (!this.heading) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
return h("h2", null, this.heading);
|
|
23
|
+
}
|
|
24
|
+
renderSubheader() {
|
|
25
|
+
if (!this.value) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
return h("limel-markdown", { value: this.value });
|
|
29
|
+
}
|
|
30
|
+
renderIcon() {
|
|
31
|
+
var _a, _b, _c;
|
|
32
|
+
if (!this.icon) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
return (h("limel-icon", { badge: true, name: (_a = this.icon) === null || _a === void 0 ? void 0 : _a.name, style: {
|
|
36
|
+
color: `${(_b = this.icon) === null || _b === void 0 ? void 0 : _b.color}`,
|
|
37
|
+
'background-color': `${(_c = this.icon) === null || _c === void 0 ? void 0 : _c.backgroundColor}`,
|
|
38
|
+
} }));
|
|
39
|
+
}
|
|
40
|
+
static get style() { return emptyStateCss; }
|
|
41
|
+
}, [1, "limebb-empty-state", {
|
|
42
|
+
"heading": [513],
|
|
43
|
+
"value": [513],
|
|
44
|
+
"icon": [16]
|
|
45
|
+
}]);
|
|
46
|
+
function defineCustomElement$1() {
|
|
47
|
+
if (typeof customElements === "undefined") {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const components = ["limebb-empty-state"];
|
|
51
|
+
components.forEach(tagName => { switch (tagName) {
|
|
52
|
+
case "limebb-empty-state":
|
|
53
|
+
if (!customElements.get(tagName)) {
|
|
54
|
+
customElements.define(tagName, EmptyState);
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
57
|
+
} });
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const LimebbEmptyState = EmptyState;
|
|
61
|
+
const defineCustomElement = defineCustomElement$1;
|
|
62
|
+
|
|
63
|
+
export { LimebbEmptyState, defineCustomElement };
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["limebb-kanban",[[1,"limebb-kanban",{"platform":[16],"context":[16],"items":[16],"paginationSize":[2,"pagination-size"],"groupBy":[513,"group-by"],"groups":[16]}]]],["limebb-date-range",[[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",[[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"],"lastVisitedTimestamp":[1,"last-visited-timestamp"]}]]],["limebb-notification-list",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"paginationSize":[2,"pagination-size"],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"displayedItemCount":[32]}]]],["limebb-browser",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["limebb-currency-picker",[[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",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-icon-picker",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-info-tile",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[1,"filter-id"],"disabled":[4],"icon":[1],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"filters":[32],"value":[32],"loading":[32],"error":[32]}]]],["limebb-limeobject-file-viewer",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["limebb-locale-picker",[[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",[[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-kanban-item",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["limebb-kanban-column",[[1,"limebb-kanban-column",{"platform":[16],"context":[16],"columnHeading":[1,"column-heading"],"items":[16],"loading":[4],"paginationSize":[2,"pagination-size"],"displayedItemCount":[32]}]]],["limebb-date-picker",[[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",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"isBundled":[516,"is-bundled"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["limebb-notification-item",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]]], options);
|
|
16
|
+
return bootstrapLazy([["limebb-kanban",[[1,"limebb-kanban",{"platform":[16],"context":[16],"items":[16],"paginationSize":[2,"pagination-size"],"groupBy":[513,"group-by"],"groups":[16]}]]],["limebb-date-range",[[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",[[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"],"lastVisitedTimestamp":[1,"last-visited-timestamp"]}]]],["limebb-notification-list",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"paginationSize":[2,"pagination-size"],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"displayedItemCount":[32]}]]],["limebb-browser",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["limebb-currency-picker",[[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",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-empty-state",[[1,"limebb-empty-state",{"heading":[513],"value":[513],"icon":[16]}]]],["limebb-icon-picker",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-info-tile",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[1,"filter-id"],"disabled":[4],"icon":[1],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"filters":[32],"value":[32],"loading":[32],"error":[32]}]]],["limebb-limeobject-file-viewer",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["limebb-locale-picker",[[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",[[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-kanban-item",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["limebb-kanban-column",[[1,"limebb-kanban-column",{"platform":[16],"context":[16],"columnHeading":[1,"column-heading"],"items":[16],"loading":[4],"paginationSize":[2,"pagination-size"],"displayedItemCount":[32]}]]],["limebb-date-picker",[[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",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"isBundled":[516,"is-bundled"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["limebb-notification-item",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]]], options);
|
|
17
17
|
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-3d816bf5.js';
|
|
2
|
+
|
|
3
|
+
const emptyStateCss = ":host(limebb-empty-state){display:flex;flex-direction:column;align-items:center;gap:0.25rem;padding:0.5rem}*{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}";
|
|
4
|
+
|
|
5
|
+
const EmptyState = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return [
|
|
11
|
+
this.renderIcon(),
|
|
12
|
+
this.renderHeading(),
|
|
13
|
+
this.renderSubheader(),
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
renderHeading() {
|
|
17
|
+
if (!this.heading) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
return h("h2", null, this.heading);
|
|
21
|
+
}
|
|
22
|
+
renderSubheader() {
|
|
23
|
+
if (!this.value) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
return h("limel-markdown", { value: this.value });
|
|
27
|
+
}
|
|
28
|
+
renderIcon() {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
if (!this.icon) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
return (h("limel-icon", { badge: true, name: (_a = this.icon) === null || _a === void 0 ? void 0 : _a.name, style: {
|
|
34
|
+
color: `${(_b = this.icon) === null || _b === void 0 ? void 0 : _b.color}`,
|
|
35
|
+
'background-color': `${(_c = this.icon) === null || _c === void 0 ? void 0 : _c.backgroundColor}`,
|
|
36
|
+
} }));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
EmptyState.style = emptyStateCss;
|
|
40
|
+
|
|
41
|
+
export { EmptyState as limebb_empty_state };
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["limebb-kanban",[[1,"limebb-kanban",{"platform":[16],"context":[16],"items":[16],"paginationSize":[2,"pagination-size"],"groupBy":[513,"group-by"],"groups":[16]}]]],["limebb-date-range",[[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",[[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"],"lastVisitedTimestamp":[1,"last-visited-timestamp"]}]]],["limebb-notification-list",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"paginationSize":[2,"pagination-size"],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"displayedItemCount":[32]}]]],["limebb-browser",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["limebb-currency-picker",[[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",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-icon-picker",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-info-tile",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[1,"filter-id"],"disabled":[4],"icon":[1],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"filters":[32],"value":[32],"loading":[32],"error":[32]}]]],["limebb-limeobject-file-viewer",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["limebb-locale-picker",[[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",[[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-kanban-item",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["limebb-kanban-column",[[1,"limebb-kanban-column",{"platform":[16],"context":[16],"columnHeading":[1,"column-heading"],"items":[16],"loading":[4],"paginationSize":[2,"pagination-size"],"displayedItemCount":[32]}]]],["limebb-date-picker",[[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",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"isBundled":[516,"is-bundled"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["limebb-notification-item",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]]], options);
|
|
13
|
+
return bootstrapLazy([["limebb-kanban",[[1,"limebb-kanban",{"platform":[16],"context":[16],"items":[16],"paginationSize":[2,"pagination-size"],"groupBy":[513,"group-by"],"groups":[16]}]]],["limebb-date-range",[[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",[[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"],"lastVisitedTimestamp":[1,"last-visited-timestamp"]}]]],["limebb-notification-list",[[1,"limebb-notification-list",{"platform":[16],"context":[16],"items":[16],"emptyStateMessage":[1,"empty-state-message"],"loading":[4],"paginationSize":[2,"pagination-size"],"lastVisitedTimestamp":[1,"last-visited-timestamp"],"displayedItemCount":[32]}]]],["limebb-browser",[[17,"limebb-browser",{"platform":[16],"context":[16],"items":[16],"layout":[1],"filter":[32]}]]],["limebb-currency-picker",[[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",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-empty-state",[[1,"limebb-empty-state",{"heading":[513],"value":[513],"icon":[16]}]]],["limebb-icon-picker",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-info-tile",[[1,"limebb-info-tile",{"platform":[16],"context":[16],"filterId":[1,"filter-id"],"disabled":[4],"icon":[1],"label":[1],"prefix":[1],"suffix":[1],"propertyName":[1,"property-name"],"aggregateOperator":[1,"aggregate-operator"],"filters":[32],"value":[32],"loading":[32],"error":[32]}]]],["limebb-limeobject-file-viewer",[[1,"limebb-limeobject-file-viewer",{"platform":[16],"context":[16],"property":[1],"fileTypes":[16],"limeobject":[32],"limetype":[32]}]]],["limebb-locale-picker",[[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",[[17,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-kanban-item",[[1,"limebb-kanban-item",{"platform":[16],"context":[16],"item":[16]}]]],["limebb-kanban-column",[[1,"limebb-kanban-column",{"platform":[16],"context":[16],"columnHeading":[1,"column-heading"],"items":[16],"loading":[4],"paginationSize":[2,"pagination-size"],"displayedItemCount":[32]}]]],["limebb-date-picker",[[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",[[1,"limebb-feed-timeline-item",{"platform":[16],"context":[16],"item":[16],"ui":[513],"isBundled":[516,"is-bundled"],"headingCanExpand":[32],"isHeadingExpanded":[32],"showMore":[32],"isTall":[32]}]]],["limebb-notification-item",[[1,"limebb-notification-item",{"platform":[16],"context":[16],"item":[16]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-8c0e3713.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-2ccd3c25",[[1,"limebb-kanban",{platform:[16],context:[16],items:[16],paginationSize:[2,"pagination-size"],groupBy:[513,"group-by"],groups:[16]}]]],["p-54dbbbba",[[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]}]]],["p-3d6f678d",[[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"],lastVisitedTimestamp:[1,"last-visited-timestamp"]}]]],["p-cf9cdfb5",[[1,"limebb-notification-list",{platform:[16],context:[16],items:[16],emptyStateMessage:[1,"empty-state-message"],loading:[4],paginationSize:[2,"pagination-size"],lastVisitedTimestamp:[1,"last-visited-timestamp"],displayedItemCount:[32]}]]],["p-9bf1ff4f",[[17,"limebb-browser",{platform:[16],context:[16],items:[16],layout:[1],filter:[32]}]]],["p-03113a76",[[1,"limebb-currency-picker",{label:[513],platform:[16],currencies:[16],helperText:[513,"helper-text"],required:[516],readonly:[516],invalid:[516],disabled:[516],value:[16]}]]],["p-3f30c8de",[[1,"limebb-dashboard-widget",{heading:[513],subheading:[513],supportingText:[513,"supporting-text"],icon:[513]}]]],["p-6a49e564",[[1,"limebb-icon-picker",{value:[1],required:[4],readonly:[4],invalid:[4],disabled:[4],label:[1],helperText:[1,"helper-text"]}]]],["p-832f45c2",[[1,"limebb-info-tile",{platform:[16],context:[16],filterId:[1,"filter-id"],disabled:[4],icon:[1],label:[1],prefix:[1],suffix:[1],propertyName:[1,"property-name"],aggregateOperator:[1,"aggregate-operator"],filters:[32],value:[32],loading:[32],error:[32]}]]],["p-b992f9cf",[[1,"limebb-limeobject-file-viewer",{platform:[16],context:[16],property:[1],fileTypes:[16],limeobject:[32],limetype:[32]}]]],["p-0334f490",[[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]}]]],["p-1c9d80f2",[[17,"limebb-navigation-button",{href:[513],tooltipLabel:[513,"tooltip-label"],tooltipHelperLabel:[513,"tooltip-helper-label"],type:[513]}]]],["p-9a0ff0bb",[[1,"limebb-kanban-item",{platform:[16],context:[16],item:[16]}]]],["p-13521554",[[1,"limebb-kanban-column",{platform:[16],context:[16],columnHeading:[1,"column-heading"],items:[16],loading:[4],paginationSize:[2,"pagination-size"],displayedItemCount:[32]}]]],["p-2e373ea5",[[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]}]]],["p-4c667ff0",[[1,"limebb-feed-timeline-item",{platform:[16],context:[16],item:[16],ui:[513],isBundled:[516,"is-bundled"],headingCanExpand:[32],isHeadingExpanded:[32],showMore:[32],isTall:[32]}]]],["p-97322726",[[1,"limebb-notification-item",{platform:[16],context:[16],item:[16]}]]]],e)));
|
|
1
|
+
import{p as e,b as t}from"./p-8c0e3713.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-2ccd3c25",[[1,"limebb-kanban",{platform:[16],context:[16],items:[16],paginationSize:[2,"pagination-size"],groupBy:[513,"group-by"],groups:[16]}]]],["p-54dbbbba",[[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]}]]],["p-3d6f678d",[[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"],lastVisitedTimestamp:[1,"last-visited-timestamp"]}]]],["p-cf9cdfb5",[[1,"limebb-notification-list",{platform:[16],context:[16],items:[16],emptyStateMessage:[1,"empty-state-message"],loading:[4],paginationSize:[2,"pagination-size"],lastVisitedTimestamp:[1,"last-visited-timestamp"],displayedItemCount:[32]}]]],["p-9bf1ff4f",[[17,"limebb-browser",{platform:[16],context:[16],items:[16],layout:[1],filter:[32]}]]],["p-03113a76",[[1,"limebb-currency-picker",{label:[513],platform:[16],currencies:[16],helperText:[513,"helper-text"],required:[516],readonly:[516],invalid:[516],disabled:[516],value:[16]}]]],["p-3f30c8de",[[1,"limebb-dashboard-widget",{heading:[513],subheading:[513],supportingText:[513,"supporting-text"],icon:[513]}]]],["p-02e5fa8f",[[1,"limebb-empty-state",{heading:[513],value:[513],icon:[16]}]]],["p-6a49e564",[[1,"limebb-icon-picker",{value:[1],required:[4],readonly:[4],invalid:[4],disabled:[4],label:[1],helperText:[1,"helper-text"]}]]],["p-832f45c2",[[1,"limebb-info-tile",{platform:[16],context:[16],filterId:[1,"filter-id"],disabled:[4],icon:[1],label:[1],prefix:[1],suffix:[1],propertyName:[1,"property-name"],aggregateOperator:[1,"aggregate-operator"],filters:[32],value:[32],loading:[32],error:[32]}]]],["p-b992f9cf",[[1,"limebb-limeobject-file-viewer",{platform:[16],context:[16],property:[1],fileTypes:[16],limeobject:[32],limetype:[32]}]]],["p-0334f490",[[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]}]]],["p-1c9d80f2",[[17,"limebb-navigation-button",{href:[513],tooltipLabel:[513,"tooltip-label"],tooltipHelperLabel:[513,"tooltip-helper-label"],type:[513]}]]],["p-9a0ff0bb",[[1,"limebb-kanban-item",{platform:[16],context:[16],item:[16]}]]],["p-13521554",[[1,"limebb-kanban-column",{platform:[16],context:[16],columnHeading:[1,"column-heading"],items:[16],loading:[4],paginationSize:[2,"pagination-size"],displayedItemCount:[32]}]]],["p-2e373ea5",[[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]}]]],["p-4c667ff0",[[1,"limebb-feed-timeline-item",{platform:[16],context:[16],item:[16],ui:[513],isBundled:[516,"is-bundled"],headingCanExpand:[32],isHeadingExpanded:[32],showMore:[32],isTall:[32]}]]],["p-97322726",[[1,"limebb-notification-item",{platform:[16],context:[16],item:[16]}]]]],e)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as r}from"./p-8c0e3713.js";const i=class{constructor(r){e(this,r)}render(){return[this.renderIcon(),this.renderHeading(),this.renderSubheader()]}renderHeading(){if(this.heading)return r("h2",null,this.heading)}renderSubheader(){if(this.value)return r("limel-markdown",{value:this.value})}renderIcon(){var e,i,t;if(this.icon)return r("limel-icon",{badge:!0,name:null===(e=this.icon)||void 0===e?void 0:e.name,style:{color:`${null===(i=this.icon)||void 0===i?void 0:i.color}`,"background-color":`${null===(t=this.icon)||void 0===t?void 0:t.backgroundColor}`}})}};i.style=":host(limebb-empty-state){display:flex;flex-direction:column;align-items:center;gap:0.25rem;padding:0.5rem}*{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}";export{i as limebb_empty_state}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Icon } from '@limetech/lime-elements';
|
|
2
|
+
/**
|
|
3
|
+
* An "empty state" in user interface design refers to the screen or space displayed, when there is no data
|
|
4
|
+
* or content available to show to the user. This state typically occurs in new accounts, after clearing data,
|
|
5
|
+
* or when no results are returned from a search.
|
|
6
|
+
*
|
|
7
|
+
* @exampleComponent limebb-example-empty-state-basic
|
|
8
|
+
* @exampleComponent limebb-example-empty-state-value-as-markdown
|
|
9
|
+
*/
|
|
10
|
+
export declare class EmptyState {
|
|
11
|
+
/**
|
|
12
|
+
* Text to display in the header
|
|
13
|
+
*/
|
|
14
|
+
heading: string;
|
|
15
|
+
/**
|
|
16
|
+
* Message to further clarify the heading. It receives markdown syntax and renders it as HTML.
|
|
17
|
+
* This allows for more complex formatting. For example, you can use links, lists, and other formatting options.
|
|
18
|
+
*/
|
|
19
|
+
value?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Icon to display
|
|
22
|
+
*/
|
|
23
|
+
icon?: Icon;
|
|
24
|
+
render(): any[];
|
|
25
|
+
private renderHeading;
|
|
26
|
+
private renderSubheader;
|
|
27
|
+
private renderIcon;
|
|
28
|
+
}
|
|
@@ -176,6 +176,20 @@ export namespace Components {
|
|
|
176
176
|
*/
|
|
177
177
|
"type": DateType;
|
|
178
178
|
}
|
|
179
|
+
interface LimebbEmptyState {
|
|
180
|
+
/**
|
|
181
|
+
* Text to display in the header
|
|
182
|
+
*/
|
|
183
|
+
"heading": string;
|
|
184
|
+
/**
|
|
185
|
+
* Icon to display
|
|
186
|
+
*/
|
|
187
|
+
"icon"?: Icon;
|
|
188
|
+
/**
|
|
189
|
+
* Message to further clarify the heading. It receives markdown syntax and renders it as HTML. This allows for more complex formatting. For example, you can use links, lists, and other formatting options.
|
|
190
|
+
*/
|
|
191
|
+
"value"?: string;
|
|
192
|
+
}
|
|
179
193
|
interface LimebbFeed {
|
|
180
194
|
/**
|
|
181
195
|
* The context this component belongs to
|
|
@@ -588,6 +602,12 @@ declare global {
|
|
|
588
602
|
prototype: HTMLLimebbDateRangeElement;
|
|
589
603
|
new (): HTMLLimebbDateRangeElement;
|
|
590
604
|
};
|
|
605
|
+
interface HTMLLimebbEmptyStateElement extends Components.LimebbEmptyState, HTMLStencilElement {
|
|
606
|
+
}
|
|
607
|
+
var HTMLLimebbEmptyStateElement: {
|
|
608
|
+
prototype: HTMLLimebbEmptyStateElement;
|
|
609
|
+
new (): HTMLLimebbEmptyStateElement;
|
|
610
|
+
};
|
|
591
611
|
interface HTMLLimebbFeedElement extends Components.LimebbFeed, HTMLStencilElement {
|
|
592
612
|
}
|
|
593
613
|
var HTMLLimebbFeedElement: {
|
|
@@ -666,6 +686,7 @@ declare global {
|
|
|
666
686
|
"limebb-dashboard-widget": HTMLLimebbDashboardWidgetElement;
|
|
667
687
|
"limebb-date-picker": HTMLLimebbDatePickerElement;
|
|
668
688
|
"limebb-date-range": HTMLLimebbDateRangeElement;
|
|
689
|
+
"limebb-empty-state": HTMLLimebbEmptyStateElement;
|
|
669
690
|
"limebb-feed": HTMLLimebbFeedElement;
|
|
670
691
|
"limebb-feed-timeline-item": HTMLLimebbFeedTimelineItemElement;
|
|
671
692
|
"limebb-icon-picker": HTMLLimebbIconPickerElement;
|
|
@@ -863,6 +884,20 @@ declare namespace LocalJSX {
|
|
|
863
884
|
*/
|
|
864
885
|
"type"?: DateType;
|
|
865
886
|
}
|
|
887
|
+
interface LimebbEmptyState {
|
|
888
|
+
/**
|
|
889
|
+
* Text to display in the header
|
|
890
|
+
*/
|
|
891
|
+
"heading"?: string;
|
|
892
|
+
/**
|
|
893
|
+
* Icon to display
|
|
894
|
+
*/
|
|
895
|
+
"icon"?: Icon;
|
|
896
|
+
/**
|
|
897
|
+
* Message to further clarify the heading. It receives markdown syntax and renders it as HTML. This allows for more complex formatting. For example, you can use links, lists, and other formatting options.
|
|
898
|
+
*/
|
|
899
|
+
"value"?: string;
|
|
900
|
+
}
|
|
866
901
|
interface LimebbFeed {
|
|
867
902
|
/**
|
|
868
903
|
* The context this component belongs to
|
|
@@ -1238,6 +1273,7 @@ declare namespace LocalJSX {
|
|
|
1238
1273
|
"limebb-dashboard-widget": LimebbDashboardWidget;
|
|
1239
1274
|
"limebb-date-picker": LimebbDatePicker;
|
|
1240
1275
|
"limebb-date-range": LimebbDateRange;
|
|
1276
|
+
"limebb-empty-state": LimebbEmptyState;
|
|
1241
1277
|
"limebb-feed": LimebbFeed;
|
|
1242
1278
|
"limebb-feed-timeline-item": LimebbFeedTimelineItem;
|
|
1243
1279
|
"limebb-icon-picker": LimebbIconPicker;
|
|
@@ -1261,6 +1297,7 @@ declare module "@stencil/core" {
|
|
|
1261
1297
|
"limebb-dashboard-widget": LocalJSX.LimebbDashboardWidget & JSXBase.HTMLAttributes<HTMLLimebbDashboardWidgetElement>;
|
|
1262
1298
|
"limebb-date-picker": LocalJSX.LimebbDatePicker & JSXBase.HTMLAttributes<HTMLLimebbDatePickerElement>;
|
|
1263
1299
|
"limebb-date-range": LocalJSX.LimebbDateRange & JSXBase.HTMLAttributes<HTMLLimebbDateRangeElement>;
|
|
1300
|
+
"limebb-empty-state": LocalJSX.LimebbEmptyState & JSXBase.HTMLAttributes<HTMLLimebbEmptyStateElement>;
|
|
1264
1301
|
"limebb-feed": LocalJSX.LimebbFeed & JSXBase.HTMLAttributes<HTMLLimebbFeedElement>;
|
|
1265
1302
|
"limebb-feed-timeline-item": LocalJSX.LimebbFeedTimelineItem & JSXBase.HTMLAttributes<HTMLLimebbFeedTimelineItemElement>;
|
|
1266
1303
|
"limebb-icon-picker": LocalJSX.LimebbIconPicker & JSXBase.HTMLAttributes<HTMLLimebbIconPickerElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-crm-building-blocks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.0",
|
|
4
4
|
"description": "A home for shared components meant for use with Lime CRM",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@eslint/eslintrc": "^3.1.0",
|
|
45
45
|
"@eslint/js": "^9.9.1",
|
|
46
|
-
"@limetech/lime-elements": "^37.57.
|
|
47
|
-
"@limetech/lime-web-components": "^5.
|
|
46
|
+
"@limetech/lime-elements": "^37.57.4",
|
|
47
|
+
"@limetech/lime-web-components": "^5.33.1",
|
|
48
48
|
"@lundalogik/lime-icons8": "^2.28.0",
|
|
49
49
|
"@lundalogik/limeclient.js": "^1.65.0",
|
|
50
50
|
"@stencil/core": "<2.19.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"globals": "^15.9.0",
|
|
68
68
|
"jest": "^27.4.5",
|
|
69
69
|
"jest-cli": "^27.4.5",
|
|
70
|
-
"kompendium": "^0.
|
|
70
|
+
"kompendium": "^0.15.0",
|
|
71
71
|
"lodash-es": "^4.17.21",
|
|
72
72
|
"prettier": "^3.3.3",
|
|
73
73
|
"puppeteer": "^19.4.1",
|