@limetech/lime-elements 33.13.0-next.2 → 33.13.0-next.6
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/format-c0047dfb.js +78 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +3 -75
- package/dist/cjs/limel-chip-set.cjs.entry.js +1 -1
- package/dist/cjs/limel-circular-progress.cjs.entry.js +44 -0
- package/dist/cjs/limel-flatpickr-adapter_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-list_3.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/chip-set/chip-set.css +3 -1
- package/dist/collection/components/circular-progress/circular-progress.css +161 -0
- package/dist/collection/components/circular-progress/circular-progress.js +163 -0
- package/dist/collection/components/circular-progress/circular-progress.types.js +1 -0
- package/dist/collection/components/input-field/input-field.css +3 -1
- package/dist/collection/components/linear-progress/linear-progress.js +1 -2
- package/dist/collection/components/list/list.css +5 -1
- package/dist/collection/style/internal/shared_input-select-picker.scss +4 -1
- package/dist/collection/style/internal/z-index.scss +1 -0
- package/dist/esm/format-a0e2d949.js +76 -0
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-badge.entry.js +2 -74
- package/dist/esm/limel-chip-set.entry.js +1 -1
- package/dist/esm/limel-circular-progress.entry.js +40 -0
- package/dist/esm/limel-flatpickr-adapter_2.entry.js +1 -1
- package/dist/esm/limel-linear-progress.entry.js +1 -1
- package/dist/esm/limel-list_3.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-2721660f.entry.js → p-034f336b.entry.js} +1 -1
- package/dist/lime-elements/p-231f62ba.entry.js +1 -0
- package/dist/lime-elements/{p-f70ae792.entry.js → p-3a21fa33.entry.js} +1 -1
- package/dist/lime-elements/{p-5780d004.entry.js → p-5577f962.entry.js} +1 -1
- package/dist/lime-elements/{p-6ed172df.entry.js → p-8e8219ac.entry.js} +1 -1
- package/dist/lime-elements/p-eb81fc35.entry.js +1 -0
- package/dist/lime-elements/p-f08f504b.js +1 -0
- package/dist/lime-elements/style/internal/shared_input-select-picker.scss +4 -1
- package/dist/lime-elements/style/internal/z-index.scss +1 -0
- package/dist/types/components/circular-progress/circular-progress.d.ts +48 -0
- package/dist/types/components/circular-progress/circular-progress.types.d.ts +1 -0
- package/dist/types/components.d.ts +54 -0
- package/package.json +1 -1
- package/dist/lime-elements/p-52db6af8.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as o}from"./p-fabb836f.js";import{a}from"./p-f08f504b.js";import"./p-eab67c09.js";const n=class{constructor(o){r(this,o)}render(){return o("div",{class:"badge-container"},a(this.label))}};n.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.badge-container{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif);display:inline-block;font-size:0.6875rem;min-width:1.25rem;height:1.25rem;border-radius:1.25rem;line-height:1.25rem;text-align:center;background-color:var(--badge-background-color, rgb(var(--contrast-500)));color:var(--badge-text-color, rgb(var(--contrast-1200)));padding:0 0.3125rem;margin-left:0.25rem}";export{n as limel_badge}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as t,a as n}from"./p-eab67c09.js";var r=t((function(t){!function(n){function r(){var t;if(!(this instanceof r)){var n=arguments[0],a=arguments[1],i=new r(t=arguments[2]);return i.abbreviate(n,a)}this.units=null==(t=arguments[0])?["k","m","b","t"]:t}r.prototype._abbreviate=function(t,n){n=Math.pow(10,n);for(var r=this.units.length-1;r>=0;r--){var a=Math.pow(10,3*(r+1));if(a<=t){1e3==(t=Math.round(t*n/a)/n)&&r<this.units.length-1&&(t=1,r++),t+=this.units[r];break}}return t},r.prototype.abbreviate=function(t,n){var r=t<0,a=this._abbreviate(Math.abs(t),n||0);return r?"-"+a:a},t.exports?t.exports=r:n.NumberAbbreviate=r}(n)}));function a(t){return"number"!=typeof t?"":new r(["k","M","B","T"]).abbreviate(t,1)}export{a}
|
|
@@ -62,7 +62,10 @@ $cropped-label-hack--font-size: 0.875rem; //14px
|
|
|
62
62
|
@mixin cropped-label-hack {
|
|
63
63
|
// Some font size applied to `label--float-above` causes the labels to get cut off
|
|
64
64
|
// when an empty field gets focused
|
|
65
|
-
.mdc-text-field--outlined.mdc-
|
|
65
|
+
.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-notched-outline--upgraded,
|
|
66
|
+
.mdc-text-field--outlined.mdc-text-field--with-leading-icon
|
|
67
|
+
.mdc-notched-outline--upgraded,
|
|
68
|
+
.mdc-text-field--outlined.mdc-text-field--textarea.mdc-notched-outline--upgraded,
|
|
66
69
|
.mdc-text-field--outlined.mdc-text-field--textarea
|
|
67
70
|
.mdc-notched-outline--upgraded,
|
|
68
71
|
.mdc-text-field--outlined.mdc-notched-outline--upgraded,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CircularProgressSize } from './circular-progress.types';
|
|
2
|
+
/**
|
|
3
|
+
* The circular progress component can be used to visualize the curent state of
|
|
4
|
+
* a progress in a scale; for example percentage of completion of a task.
|
|
5
|
+
*
|
|
6
|
+
* Its compact UI makes the component suitable when there is not enough screen
|
|
7
|
+
* space available to visualise such information.
|
|
8
|
+
*
|
|
9
|
+
* This component allows you to define your scale, from `0` to a desired
|
|
10
|
+
* `maxValue`; and also lets you chose a proper `suffix` for your scale.
|
|
11
|
+
*
|
|
12
|
+
* :::note
|
|
13
|
+
* The component will round up the value when it is displayed, and only shows
|
|
14
|
+
* one decimal digit.
|
|
15
|
+
* It also abbreviates large numbers. For example 1234 will be displayed as 1.2k.
|
|
16
|
+
* Of course such numbers, if bigger than `maxValue` will be visualized as a
|
|
17
|
+
* full progress.
|
|
18
|
+
* :::
|
|
19
|
+
*
|
|
20
|
+
* @exampleComponent limel-example-circular-progress
|
|
21
|
+
* @exampleComponent limel-example-circular-progress-sizes
|
|
22
|
+
* @exampleComponent limel-example-circular-progress-props
|
|
23
|
+
* @exampleComponent limel-example-circular-progress-css-variables
|
|
24
|
+
* @exampleComponent limel-example-circular-progress-percentage-colors
|
|
25
|
+
*/
|
|
26
|
+
export declare class CircularProgress {
|
|
27
|
+
/**
|
|
28
|
+
* The value of the progress bar.
|
|
29
|
+
*/
|
|
30
|
+
value: number;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum value within the scale that the progress bar should visualize. Defaults to `100`.
|
|
33
|
+
*/
|
|
34
|
+
maxValue: number;
|
|
35
|
+
/**
|
|
36
|
+
* The suffix which is displayed after the `value`, must be one or two characters long. Defaults to `%`
|
|
37
|
+
*/
|
|
38
|
+
suffix: string;
|
|
39
|
+
/**
|
|
40
|
+
* When set to `true`, makes the filled section showing the percentage colorful. Colors change with intervals of 10%.
|
|
41
|
+
*/
|
|
42
|
+
displayPercentageColors: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Determines the visual size of the visualization from a preset size. This property can override the `--circular-progress-size` variable if it is specified.
|
|
45
|
+
*/
|
|
46
|
+
size: CircularProgressSize;
|
|
47
|
+
render(): any;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type CircularProgressSize = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Button } from "./components/button/button.types";
|
|
9
9
|
import { Action as Action1, Chip, DateType, DialogHeading, FileInfo, FlexContainerAlign, FlexContainerDirection, FlexContainerJustify, IconSize as IconSize1, Languages, ListItem, ListSeparator, ListType, Option, Searcher, SpinnerSize } from "@limetech/lime-elements";
|
|
10
|
+
import { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
|
|
10
11
|
import { ColorScheme, Language } from "./components/code-editor/code-editor.types";
|
|
11
12
|
import { Action } from "./components/collapsible-section/action";
|
|
12
13
|
import { ValidationStatus } from "./components/form/form.types";
|
|
@@ -170,6 +171,28 @@ export namespace Components {
|
|
|
170
171
|
*/
|
|
171
172
|
"value": Chip[];
|
|
172
173
|
}
|
|
174
|
+
interface LimelCircularProgress {
|
|
175
|
+
/**
|
|
176
|
+
* When set to `true`, makes the filled section showing the percentage colorful. Colors change with intervals of 10%.
|
|
177
|
+
*/
|
|
178
|
+
"displayPercentageColors": boolean;
|
|
179
|
+
/**
|
|
180
|
+
* The maximum value within the scale that the progress bar should visualize. Defaults to `100`.
|
|
181
|
+
*/
|
|
182
|
+
"maxValue": number;
|
|
183
|
+
/**
|
|
184
|
+
* Determines the visual size of the visualization from a preset size. This property can override the `--circular-progress-size` variable if it is specified.
|
|
185
|
+
*/
|
|
186
|
+
"size": CircularProgressSize;
|
|
187
|
+
/**
|
|
188
|
+
* The suffix which is displayed after the `value`, must be one or two characters long. Defaults to `%`
|
|
189
|
+
*/
|
|
190
|
+
"suffix": string;
|
|
191
|
+
/**
|
|
192
|
+
* The value of the progress bar.
|
|
193
|
+
*/
|
|
194
|
+
"value": number;
|
|
195
|
+
}
|
|
173
196
|
interface LimelCodeEditor {
|
|
174
197
|
/**
|
|
175
198
|
* Select color scheme for the editor
|
|
@@ -942,6 +965,12 @@ declare global {
|
|
|
942
965
|
prototype: HTMLLimelChipSetElement;
|
|
943
966
|
new (): HTMLLimelChipSetElement;
|
|
944
967
|
};
|
|
968
|
+
interface HTMLLimelCircularProgressElement extends Components.LimelCircularProgress, HTMLStencilElement {
|
|
969
|
+
}
|
|
970
|
+
var HTMLLimelCircularProgressElement: {
|
|
971
|
+
prototype: HTMLLimelCircularProgressElement;
|
|
972
|
+
new (): HTMLLimelCircularProgressElement;
|
|
973
|
+
};
|
|
945
974
|
interface HTMLLimelCodeEditorElement extends Components.LimelCodeEditor, HTMLStencilElement {
|
|
946
975
|
}
|
|
947
976
|
var HTMLLimelCodeEditorElement: {
|
|
@@ -1141,6 +1170,7 @@ declare global {
|
|
|
1141
1170
|
"limel-button-group": HTMLLimelButtonGroupElement;
|
|
1142
1171
|
"limel-checkbox": HTMLLimelCheckboxElement;
|
|
1143
1172
|
"limel-chip-set": HTMLLimelChipSetElement;
|
|
1173
|
+
"limel-circular-progress": HTMLLimelCircularProgressElement;
|
|
1144
1174
|
"limel-code-editor": HTMLLimelCodeEditorElement;
|
|
1145
1175
|
"limel-collapsible-section": HTMLLimelCollapsibleSectionElement;
|
|
1146
1176
|
"limel-config": HTMLLimelConfigElement;
|
|
@@ -1332,6 +1362,28 @@ declare namespace LocalJSX {
|
|
|
1332
1362
|
*/
|
|
1333
1363
|
"value"?: Chip[];
|
|
1334
1364
|
}
|
|
1365
|
+
interface LimelCircularProgress {
|
|
1366
|
+
/**
|
|
1367
|
+
* When set to `true`, makes the filled section showing the percentage colorful. Colors change with intervals of 10%.
|
|
1368
|
+
*/
|
|
1369
|
+
"displayPercentageColors"?: boolean;
|
|
1370
|
+
/**
|
|
1371
|
+
* The maximum value within the scale that the progress bar should visualize. Defaults to `100`.
|
|
1372
|
+
*/
|
|
1373
|
+
"maxValue"?: number;
|
|
1374
|
+
/**
|
|
1375
|
+
* Determines the visual size of the visualization from a preset size. This property can override the `--circular-progress-size` variable if it is specified.
|
|
1376
|
+
*/
|
|
1377
|
+
"size"?: CircularProgressSize;
|
|
1378
|
+
/**
|
|
1379
|
+
* The suffix which is displayed after the `value`, must be one or two characters long. Defaults to `%`
|
|
1380
|
+
*/
|
|
1381
|
+
"suffix"?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* The value of the progress bar.
|
|
1384
|
+
*/
|
|
1385
|
+
"value"?: number;
|
|
1386
|
+
}
|
|
1335
1387
|
interface LimelCodeEditor {
|
|
1336
1388
|
/**
|
|
1337
1389
|
* Select color scheme for the editor
|
|
@@ -2213,6 +2265,7 @@ declare namespace LocalJSX {
|
|
|
2213
2265
|
"limel-button-group": LimelButtonGroup;
|
|
2214
2266
|
"limel-checkbox": LimelCheckbox;
|
|
2215
2267
|
"limel-chip-set": LimelChipSet;
|
|
2268
|
+
"limel-circular-progress": LimelCircularProgress;
|
|
2216
2269
|
"limel-code-editor": LimelCodeEditor;
|
|
2217
2270
|
"limel-collapsible-section": LimelCollapsibleSection;
|
|
2218
2271
|
"limel-config": LimelConfig;
|
|
@@ -2257,6 +2310,7 @@ declare module "@stencil/core" {
|
|
|
2257
2310
|
"limel-button-group": LocalJSX.LimelButtonGroup & JSXBase.HTMLAttributes<HTMLLimelButtonGroupElement>;
|
|
2258
2311
|
"limel-checkbox": LocalJSX.LimelCheckbox & JSXBase.HTMLAttributes<HTMLLimelCheckboxElement>;
|
|
2259
2312
|
"limel-chip-set": LocalJSX.LimelChipSet & JSXBase.HTMLAttributes<HTMLLimelChipSetElement>;
|
|
2313
|
+
"limel-circular-progress": LocalJSX.LimelCircularProgress & JSXBase.HTMLAttributes<HTMLLimelCircularProgressElement>;
|
|
2260
2314
|
"limel-code-editor": LocalJSX.LimelCodeEditor & JSXBase.HTMLAttributes<HTMLLimelCodeEditorElement>;
|
|
2261
2315
|
"limel-collapsible-section": LocalJSX.LimelCollapsibleSection & JSXBase.HTMLAttributes<HTMLLimelCollapsibleSectionElement>;
|
|
2262
2316
|
"limel-config": LocalJSX.LimelConfig & JSXBase.HTMLAttributes<HTMLLimelConfigElement>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as o}from"./p-fabb836f.js";import{c as a,a as n}from"./p-eab67c09.js";var e=a((function(r){!function(o){function a(){var r;if(!(this instanceof a)){var o=arguments[0],n=arguments[1],e=new a(r=arguments[2]);return e.abbreviate(o,n)}this.units=null==(r=arguments[0])?["k","m","b","t"]:r}a.prototype._abbreviate=function(r,o){o=Math.pow(10,o);for(var a=this.units.length-1;a>=0;a--){var n=Math.pow(10,3*(a+1));if(n<=r){1e3==(r=Math.round(r*o/n)/o)&&a<this.units.length-1&&(r=1,a++),r+=this.units[a];break}}return r},a.prototype.abbreviate=function(r,o){var a=r<0,n=this._abbreviate(Math.abs(r),o||0);return a?"-"+n:n},r.exports?r.exports=a:o.NumberAbbreviate=a}(n)}));const t=class{constructor(o){r(this,o)}render(){return o("div",{class:"badge-container"},"number"!=typeof(r=this.label)?"":new e(["k","M","B","T"]).abbreviate(r,1));var r}};t.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.badge-container{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif);display:inline-block;font-size:0.6875rem;min-width:1.25rem;height:1.25rem;border-radius:1.25rem;line-height:1.25rem;text-align:center;background-color:var(--badge-background-color, rgb(var(--contrast-500)));color:var(--badge-text-color, rgb(var(--contrast-1200)));padding:0 0.3125rem;margin-left:0.25rem}";export{t as limel_badge}
|