@limetech/lime-elements 36.3.0-next.3 → 36.3.0-next.30
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/README.md +2 -2
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +4 -6
- package/dist/cjs/limel-button-group.cjs.entry.js +8 -2
- package/dist/cjs/limel-button.cjs.entry.js +1 -2
- package/dist/cjs/limel-chip-set.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +47 -7
- package/dist/cjs/limel-dialog.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock-button.cjs.entry.js +7 -2
- package/dist/cjs/limel-dock.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +96 -109
- package/dist/cjs/limel-form.cjs.entry.js +79 -1
- package/dist/cjs/limel-header.cjs.entry.js +2 -2
- package/dist/cjs/limel-info-tile.cjs.entry.js +4 -1
- package/dist/cjs/limel-input-field.cjs.entry.js +2 -2
- package/dist/cjs/limel-menu-list.cjs.entry.js +7 -1
- package/dist/cjs/limel-menu.cjs.entry.js +10 -2
- package/dist/cjs/limel-portal.cjs.entry.js +3 -4
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-spinner.cjs.entry.js +1 -1
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{dateFormatter-d7a8d40d.js → sv-dffe48b5.js} +222 -173
- package/dist/collection/components/badge/badge.css +26 -19
- package/dist/collection/components/badge/badge.js +7 -7
- package/dist/collection/components/banner/banner.css +1 -2
- package/dist/collection/components/button/button.css +38 -54
- package/dist/collection/components/button/button.js +3 -4
- package/dist/collection/components/button-group/button-group.css +35 -42
- package/dist/collection/components/button-group/button-group.js +8 -1
- package/dist/collection/components/checkbox/checkbox.css +22 -45
- package/dist/collection/components/chip-set/chip-set.css +212 -405
- package/dist/collection/components/chip-set/chip-set.js +1 -1
- package/dist/collection/components/code-editor/code-editor.css +4 -4
- package/dist/collection/components/collapsible-section/collapsible-section.css +1 -0
- package/dist/collection/components/color-picker/color-picker-palette.css +9 -9
- package/dist/collection/components/date-picker/date-picker.js +30 -5
- package/dist/collection/components/date-picker/dateFormatter.js +7 -3
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +22 -1
- package/dist/collection/components/date-picker/pickers/Picker.js +11 -8
- package/dist/collection/components/dialog/dialog.css +14 -27
- package/dist/collection/components/dock/dock-button/dock-button.css +8 -1
- package/dist/collection/components/dock/dock-button/dock-button.js +6 -1
- package/dist/collection/components/dock/dock.css +10 -0
- package/dist/collection/components/dock/dock.js +1 -0
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/form/form.css +91 -4
- package/dist/collection/components/form/form.js +1 -0
- package/dist/collection/components/form/form.types.js +8 -0
- package/dist/collection/components/form/row/row.js +47 -0
- package/dist/collection/components/form/templates/object-field.js +5 -0
- package/dist/collection/components/form/templates/row-layout.js +20 -0
- package/dist/collection/components/header/header.css +2 -2
- package/dist/collection/components/header/header.js +7 -2
- package/dist/collection/components/icon-button/icon-button.css +6 -12
- package/dist/collection/components/info-tile/info-tile.css +4 -10
- package/dist/collection/components/info-tile/info-tile.js +3 -0
- package/dist/collection/components/input-field/input-field.css +190 -363
- package/dist/collection/components/input-field/input-field.js +1 -1
- package/dist/collection/components/linear-progress/linear-progress.css +7 -14
- package/dist/collection/components/list/list.css +373 -747
- package/dist/collection/components/menu/menu.css +19 -1
- package/dist/collection/components/menu/menu.js +10 -1
- package/dist/collection/components/menu-list/menu-list-renderer.js +6 -1
- package/dist/collection/components/menu-list/menu-list.css +385 -748
- package/dist/collection/components/menu-surface/menu-surface.css +13 -26
- package/dist/collection/components/select/select.css +165 -322
- package/dist/collection/components/slider/slider.css +31 -58
- package/dist/collection/components/snackbar/snackbar.css +19 -34
- package/dist/collection/components/snackbar/snackbar.js +1 -1
- package/dist/collection/components/spinner/spinner.css +4 -0
- package/dist/collection/components/split-button/split-button.css +8 -0
- package/dist/collection/components/switch/switch.css +21 -49
- package/dist/collection/components/tab-bar/tab-bar.css +20 -19
- package/dist/collection/components/tab-panel/tab-panel.css +5 -0
- package/dist/collection/style/internal/shared_input-select-picker.scss +4 -0
- package/dist/collection/style/internal/z-index.scss +0 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-badge.entry.js +4 -6
- package/dist/esm/limel-button-group.entry.js +8 -2
- package/dist/esm/limel-button.entry.js +1 -2
- package/dist/esm/limel-chip-set.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- package/dist/esm/limel-date-picker.entry.js +46 -6
- package/dist/esm/limel-dialog.entry.js +1 -1
- package/dist/esm/limel-dock-button.entry.js +7 -2
- package/dist/esm/limel-dock.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +96 -109
- package/dist/esm/limel-form.entry.js +79 -1
- package/dist/esm/limel-header.entry.js +2 -2
- package/dist/esm/limel-info-tile.entry.js +4 -1
- package/dist/esm/limel-input-field.entry.js +2 -2
- package/dist/esm/limel-menu-list.entry.js +7 -1
- package/dist/esm/limel-menu.entry.js +10 -2
- package/dist/esm/limel-portal.entry.js +3 -4
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-spinner.entry.js +1 -1
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +1 -1
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{dateFormatter-784c3334.js → sv-336c4576.js} +222 -173
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-071e8438.entry.js +82 -0
- package/dist/lime-elements/{p-a8d38277.entry.js → p-10e259de.entry.js} +1 -1
- package/dist/lime-elements/p-2c9843fe.entry.js +16 -0
- package/dist/lime-elements/p-2fd478df.entry.js +1 -0
- package/dist/lime-elements/p-34c12f6d.entry.js +1 -0
- package/dist/lime-elements/p-3a7b55ce.entry.js +1 -0
- package/dist/lime-elements/p-3be2dfc7.entry.js +1 -0
- package/dist/lime-elements/{p-06f2f6b4.entry.js → p-3fda3473.entry.js} +1 -1
- package/dist/lime-elements/{p-65a3be2c.entry.js → p-404aca86.entry.js} +1 -1
- package/dist/lime-elements/p-4620a38e.entry.js +1 -0
- package/dist/lime-elements/{p-73df4d83.js → p-4dd9a5a5.js} +5 -3
- package/dist/lime-elements/{p-524bd0cc.entry.js → p-5393213b.entry.js} +1 -1
- package/dist/lime-elements/{p-e5213a54.entry.js → p-55c8cb64.entry.js} +4 -4
- package/dist/lime-elements/{p-c234a991.entry.js → p-878b61cd.entry.js} +1 -1
- package/dist/lime-elements/{p-864db270.entry.js → p-88e60f06.entry.js} +1 -1
- package/dist/lime-elements/{p-d379f4d6.entry.js → p-8c4e3b46.entry.js} +1 -1
- package/dist/lime-elements/{p-5f13035a.entry.js → p-95cefb5f.entry.js} +1 -1
- package/dist/lime-elements/p-98caf010.entry.js +1 -0
- package/dist/lime-elements/p-b40f37d7.entry.js +1 -0
- package/dist/lime-elements/p-c6c0d63c.entry.js +1 -0
- package/dist/lime-elements/{p-b079fc71.entry.js → p-cc3529bb.entry.js} +1 -1
- package/dist/lime-elements/p-d16b27b9.entry.js +1 -0
- package/dist/lime-elements/{p-a0c78744.entry.js → p-d3222d6c.entry.js} +1 -1
- package/dist/lime-elements/{p-d9c96100.entry.js → p-dcf88b3e.entry.js} +1 -1
- package/dist/lime-elements/p-f7875f4a.entry.js +1 -0
- package/dist/lime-elements/style/internal/shared_input-select-picker.scss +4 -0
- package/dist/lime-elements/style/internal/z-index.scss +0 -1
- package/dist/types/components/badge/badge.d.ts +4 -2
- package/dist/types/components/button/button.d.ts +3 -3
- package/dist/types/components/button/button.types.d.ts +4 -0
- package/dist/types/components/button-group/button-group.d.ts +2 -0
- package/dist/types/components/date-picker/date-picker.d.ts +10 -0
- package/dist/types/components/date-picker/date.types.d.ts +1 -1
- package/dist/types/components/date-picker/dateFormatter.d.ts +3 -2
- package/dist/types/components/date-picker/flatpickr-adapter/flatpickr-adapter.d.ts +1 -0
- package/dist/types/components/date-picker/pickers/Picker.d.ts +4 -2
- package/dist/types/components/dock/dock-button/dock-button.d.ts +1 -0
- package/dist/types/components/dock/dock.d.ts +1 -0
- package/dist/types/components/dock/dock.types.d.ts +4 -0
- package/dist/types/components/form/form.d.ts +1 -0
- package/dist/types/components/form/form.types.d.ts +16 -1
- package/dist/types/components/form/row/row.d.ts +16 -0
- package/dist/types/components/form/templates/row-layout.d.ts +11 -0
- package/dist/types/components/form/templates/types.d.ts +3 -0
- package/dist/types/components/header/header.d.ts +6 -1
- package/dist/types/components/menu/menu.d.ts +3 -0
- package/dist/types/components/menu/menu.types.d.ts +4 -0
- package/dist/types/components/menu-list/menu-list-renderer.d.ts +1 -0
- package/dist/types/components.d.ts +11 -1
- package/package.json +23 -20
- package/dist/lime-elements/p-52e18d94.entry.js +0 -1
- package/dist/lime-elements/p-61b3352f.entry.js +0 -1
- package/dist/lime-elements/p-8ca53aa2.entry.js +0 -1
- package/dist/lime-elements/p-90961075.entry.js +0 -1
- package/dist/lime-elements/p-91604294.entry.js +0 -1
- package/dist/lime-elements/p-95fd48d0.entry.js +0 -82
- package/dist/lime-elements/p-c4a89055.entry.js +0 -16
- package/dist/lime-elements/p-c6c37de3.entry.js +0 -1
- package/dist/lime-elements/p-cc9f89a9.entry.js +0 -1
- package/dist/lime-elements/p-d512656b.entry.js +0 -1
- package/dist/lime-elements/p-e6a11b73.entry.js +0 -1
- package/dist/lime-elements/p-f9958763.entry.js +0 -1
|
@@ -8,4 +8,12 @@ export var FormLayoutType;
|
|
|
8
8
|
* Render the form fields using a responsive grid layout
|
|
9
9
|
*/
|
|
10
10
|
FormLayoutType["Grid"] = "grid";
|
|
11
|
+
/**
|
|
12
|
+
* Render the form fields in full-width rows.
|
|
13
|
+
* Each row can have a leading `icon`, and a field.
|
|
14
|
+
* `title` and `description` provided by the schema will be placed
|
|
15
|
+
* on the row itself, and not on the field.
|
|
16
|
+
* This layout is good for creating UIs for user settings pages.
|
|
17
|
+
*/
|
|
18
|
+
FormLayoutType["Row"] = "row";
|
|
11
19
|
})(FormLayoutType || (FormLayoutType = {}));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export class Row extends React.Component {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super(props);
|
|
5
|
+
this.props = props;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
const classes = ['row'];
|
|
9
|
+
if (this.icon) {
|
|
10
|
+
classes.push('has-icon');
|
|
11
|
+
}
|
|
12
|
+
return React.createElement('div', {
|
|
13
|
+
className: classes.join(' '),
|
|
14
|
+
}, this.renderMainInformation(), this.renderDescription());
|
|
15
|
+
}
|
|
16
|
+
renderIcon() {
|
|
17
|
+
if (this.icon) {
|
|
18
|
+
return React.createElement('limel-icon', {
|
|
19
|
+
name: this.icon,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
renderMainInformation() {
|
|
24
|
+
return React.createElement('div', { className: 'main-information' }, this.renderIcon(), this.renderTitle(), this.renderChildren());
|
|
25
|
+
}
|
|
26
|
+
renderTitle() {
|
|
27
|
+
var _a;
|
|
28
|
+
return React.createElement('h1', { className: 'title' }, (_a = this.schema) === null || _a === void 0 ? void 0 : _a.title);
|
|
29
|
+
}
|
|
30
|
+
renderDescription() {
|
|
31
|
+
var _a;
|
|
32
|
+
if ((_a = this.schema) === null || _a === void 0 ? void 0 : _a.description) {
|
|
33
|
+
return React.createElement('p', { className: 'description' }, this.schema.description);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
renderChildren() {
|
|
37
|
+
const children = this.props.children;
|
|
38
|
+
return Object.assign(Object.assign({}, children), { props: Object.assign(Object.assign({}, children.props), { schema: Object.assign(Object.assign({}, children.props.schema), { title: null, description: null }) }) });
|
|
39
|
+
}
|
|
40
|
+
get schema() {
|
|
41
|
+
return this.props.children.props.schema;
|
|
42
|
+
}
|
|
43
|
+
get icon() {
|
|
44
|
+
var _a, _b, _c;
|
|
45
|
+
return (_c = (_b = (_a = this.schema) === null || _a === void 0 ? void 0 : _a.lime) === null || _b === void 0 ? void 0 : _b.layout) === null || _c === void 0 ? void 0 : _c.icon;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { FormLayoutType } from '../form.types';
|
|
3
3
|
import { renderDescription, renderTitle } from './common';
|
|
4
4
|
import { GridLayout } from './grid-layout';
|
|
5
|
+
import { RowLayout } from './row-layout';
|
|
5
6
|
export const ObjectFieldTemplate = (props) => {
|
|
6
7
|
const id = props.idSchema.$id;
|
|
7
8
|
if (id === 'root' || !isCollapsible(props.schema)) {
|
|
@@ -41,6 +42,7 @@ function renderLayout(properties, layout) {
|
|
|
41
42
|
const layouts = {
|
|
42
43
|
default: renderDefaultLayout,
|
|
43
44
|
grid: renderGridLayout,
|
|
45
|
+
row: renderRowLayout,
|
|
44
46
|
};
|
|
45
47
|
return layouts[type](properties, layout);
|
|
46
48
|
}
|
|
@@ -54,6 +56,9 @@ function renderGridLayout(properties, layout) {
|
|
|
54
56
|
options: layout,
|
|
55
57
|
}, properties.map((element) => element.content));
|
|
56
58
|
}
|
|
59
|
+
function renderRowLayout(properties) {
|
|
60
|
+
return React.createElement(RowLayout, {}, properties.map((element) => element.content));
|
|
61
|
+
}
|
|
57
62
|
function isCollapsible(schema) {
|
|
58
63
|
var _a;
|
|
59
64
|
return !!((_a = schema.lime) === null || _a === void 0 ? void 0 : _a.collapsible);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Row } from '../row/row';
|
|
3
|
+
export class RowLayout extends React.Component {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super(props);
|
|
6
|
+
this.props = props;
|
|
7
|
+
this.elementRef = React.createRef();
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const classes = ['limel-form-row--layout'];
|
|
11
|
+
return React.createElement('div', {
|
|
12
|
+
className: classes.join(' '),
|
|
13
|
+
ref: this.elementRef,
|
|
14
|
+
}, this.props.children.map((child, index) => {
|
|
15
|
+
return React.createElement(Row, {
|
|
16
|
+
key: index.toString(),
|
|
17
|
+
}, child);
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
font-weight: bold;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
slot[name=actions] {
|
|
77
77
|
flex-shrink: 0;
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
:host(limel-header.has-responsive-layout) .headings {
|
|
96
96
|
padding-right: 0.5rem;
|
|
97
97
|
}
|
|
98
|
-
:host(limel-header.has-responsive-layout)
|
|
98
|
+
:host(limel-header.has-responsive-layout) slot[name=actions] {
|
|
99
99
|
display: flex;
|
|
100
100
|
justify-content: flex-end;
|
|
101
101
|
}
|
|
@@ -43,7 +43,12 @@ import { h } from '@stencil/core';
|
|
|
43
43
|
* @exampleComponent limel-example-header-colors
|
|
44
44
|
* @exampleComponent limel-example-header-responsive
|
|
45
45
|
* @exampleComponent limel-example-header-narrow
|
|
46
|
-
* @slot - Content (actions) to be put inside the far right surface of
|
|
46
|
+
* @slot actions - Content (actions) to be put inside the far right surface of
|
|
47
|
+
* the header
|
|
48
|
+
* @slot [no name] - DEPRECATED. The `actions` slot used to be unnamed. This
|
|
49
|
+
* behavior has been deprecated, and support will be dropped in a future
|
|
50
|
+
* version. Please add `slot="actions"` to your elements to ensure your code
|
|
51
|
+
* will continue to work with future versions of Lime Elements.
|
|
47
52
|
*/
|
|
48
53
|
export class Header {
|
|
49
54
|
constructor() {
|
|
@@ -55,7 +60,7 @@ export class Header {
|
|
|
55
60
|
render() {
|
|
56
61
|
return [
|
|
57
62
|
h("div", { class: "information" }, this.renderIcon(), h("div", { class: "headings" }, h("h1", { class: "heading", title: this.heading }, this.heading), h("h2", { class: "subheading", title: this.subheading }, this.subheading, this.renderSupportingText()))),
|
|
58
|
-
h("
|
|
63
|
+
h("slot", { name: "actions" }, h("slot", null)),
|
|
59
64
|
];
|
|
60
65
|
}
|
|
61
66
|
renderIcon() {
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
position: absolute;
|
|
26
26
|
top: 50%;
|
|
27
27
|
height: 48px;
|
|
28
|
-
/* @noflip */
|
|
29
|
-
/*rtl:ignore*/
|
|
28
|
+
/* @noflip */ /*rtl:ignore*/
|
|
30
29
|
left: 50%;
|
|
31
30
|
width: 48px;
|
|
32
31
|
transform: translate(-50%, -50%);
|
|
@@ -60,8 +59,7 @@
|
|
|
60
59
|
position: absolute;
|
|
61
60
|
top: 50%;
|
|
62
61
|
height: 48px;
|
|
63
|
-
/* @noflip */
|
|
64
|
-
/*rtl:ignore*/
|
|
62
|
+
/* @noflip */ /*rtl:ignore*/
|
|
65
63
|
left: 50%;
|
|
66
64
|
width: 48px;
|
|
67
65
|
transform: translate(-50%, -50%);
|
|
@@ -157,16 +155,14 @@
|
|
|
157
155
|
}
|
|
158
156
|
.mdc-icon-button.mdc-ripple-upgraded .mdc-icon-button__ripple::after {
|
|
159
157
|
top: 0;
|
|
160
|
-
/* @noflip */
|
|
161
|
-
/*rtl:ignore*/
|
|
158
|
+
/* @noflip */ /*rtl:ignore*/
|
|
162
159
|
left: 0;
|
|
163
160
|
transform: scale(0);
|
|
164
161
|
transform-origin: center center;
|
|
165
162
|
}
|
|
166
163
|
.mdc-icon-button.mdc-ripple-upgraded--unbounded .mdc-icon-button__ripple::after {
|
|
167
164
|
top: var(--mdc-ripple-top, 0);
|
|
168
|
-
/* @noflip */
|
|
169
|
-
/*rtl:ignore*/
|
|
165
|
+
/* @noflip */ /*rtl:ignore*/
|
|
170
166
|
left: var(--mdc-ripple-left, 0);
|
|
171
167
|
}
|
|
172
168
|
.mdc-icon-button.mdc-ripple-upgraded--foreground-activation .mdc-icon-button__ripple::after {
|
|
@@ -179,8 +175,7 @@
|
|
|
179
175
|
.mdc-icon-button .mdc-icon-button__ripple::before,
|
|
180
176
|
.mdc-icon-button .mdc-icon-button__ripple::after {
|
|
181
177
|
top: calc(50% - 50%);
|
|
182
|
-
/* @noflip */
|
|
183
|
-
/*rtl:ignore*/
|
|
178
|
+
/* @noflip */ /*rtl:ignore*/
|
|
184
179
|
left: calc(50% - 50%);
|
|
185
180
|
width: 100%;
|
|
186
181
|
height: 100%;
|
|
@@ -188,8 +183,7 @@
|
|
|
188
183
|
.mdc-icon-button.mdc-ripple-upgraded .mdc-icon-button__ripple::before,
|
|
189
184
|
.mdc-icon-button.mdc-ripple-upgraded .mdc-icon-button__ripple::after {
|
|
190
185
|
top: var(--mdc-ripple-top, calc(50% - 50%));
|
|
191
|
-
/* @noflip */
|
|
192
|
-
/*rtl:ignore*/
|
|
186
|
+
/* @noflip */ /*rtl:ignore*/
|
|
193
187
|
left: var(--mdc-ripple-left, calc(50% - 50%));
|
|
194
188
|
width: var(--mdc-ripple-fg-size, 100%);
|
|
195
189
|
height: var(--mdc-ripple-fg-size, 100%);
|
|
@@ -117,7 +117,7 @@ a.is-clickable:focus-visible {
|
|
|
117
117
|
}
|
|
118
118
|
@supports not (container-type: size) {
|
|
119
119
|
.icon {
|
|
120
|
-
|
|
120
|
+
width: max(10%, 3rem);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
.has-circular-progress .icon {
|
|
@@ -192,7 +192,7 @@ limel-linear-progress {
|
|
|
192
192
|
}
|
|
193
193
|
@supports not (container-type: size) {
|
|
194
194
|
.prefix,
|
|
195
|
-
.suffix {
|
|
195
|
+
.suffix {
|
|
196
196
|
font-size: 0.75rem;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -233,7 +233,6 @@ limel-linear-progress {
|
|
|
233
233
|
top: 0.25rem;
|
|
234
234
|
right: 0.25rem;
|
|
235
235
|
}
|
|
236
|
-
|
|
237
236
|
a {
|
|
238
237
|
padding: 0.375rem;
|
|
239
238
|
gap: 0.125rem;
|
|
@@ -244,7 +243,6 @@ limel-linear-progress {
|
|
|
244
243
|
top: 0.5rem;
|
|
245
244
|
right: 0.5rem;
|
|
246
245
|
}
|
|
247
|
-
|
|
248
246
|
.icon {
|
|
249
247
|
top: 0.25rem;
|
|
250
248
|
right: 0.5rem;
|
|
@@ -287,29 +285,25 @@ limel-linear-progress {
|
|
|
287
285
|
.value {
|
|
288
286
|
--value-preferred-size: 32cqh !important;
|
|
289
287
|
}
|
|
290
|
-
|
|
291
288
|
.suffix,
|
|
292
|
-
.prefix {
|
|
289
|
+
.prefix {
|
|
293
290
|
--suffix-prefix-preferred-size: 16cqh !important;
|
|
294
291
|
}
|
|
295
292
|
}
|
|
296
293
|
@container (height > 18.75rem) {
|
|
297
294
|
.progress,
|
|
298
|
-
.icon {
|
|
295
|
+
.icon {
|
|
299
296
|
position: relative;
|
|
300
297
|
top: unset;
|
|
301
298
|
right: unset;
|
|
302
299
|
}
|
|
303
|
-
|
|
304
300
|
a {
|
|
305
301
|
align-items: center;
|
|
306
302
|
justify-content: center;
|
|
307
303
|
}
|
|
308
|
-
|
|
309
304
|
.label {
|
|
310
305
|
text-align: center;
|
|
311
306
|
}
|
|
312
|
-
|
|
313
307
|
.has-circular-progress .icon {
|
|
314
308
|
position: absolute;
|
|
315
309
|
top: 0.5rem;
|
|
@@ -24,6 +24,9 @@ export class InfoTile {
|
|
|
24
24
|
this.renderValue = () => {
|
|
25
25
|
var _a;
|
|
26
26
|
const characterCount = ((_a = this.value) !== null && _a !== void 0 ? _a : '').toString().length;
|
|
27
|
+
if (!this.value && this.loading) {
|
|
28
|
+
return h("span", { class: "value" }, "\u00B7\u00B7\u00B7");
|
|
29
|
+
}
|
|
27
30
|
if (this.value) {
|
|
28
31
|
return (h("span", { class: {
|
|
29
32
|
value: true,
|