@limetech/lime-elements 36.1.0-dev.2 → 36.1.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/cjs/lime-elements.cjs.js +1 -1
  2. package/dist/cjs/{limel-linear-progress.cjs.entry.js → limel-circular-progress_2.cjs.entry.js} +33 -0
  3. package/dist/cjs/limel-dialog.cjs.entry.js +1 -1
  4. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
  5. package/dist/cjs/limel-form.cjs.entry.js +2 -0
  6. package/dist/cjs/limel-info-tile.cjs.entry.js +95 -0
  7. package/dist/cjs/limel-input-field.cjs.entry.js +1 -1
  8. package/dist/cjs/limel-list_2.cjs.entry.js +1 -3
  9. package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
  10. package/dist/cjs/limel-select.cjs.entry.js +12 -7
  11. package/dist/cjs/limel-shortcut.cjs.entry.js +8 -8
  12. package/dist/cjs/limel-split-button.cjs.entry.js +12 -4
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/collection/collection-manifest.json +1 -0
  15. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +0 -3
  16. package/dist/collection/components/dialog/dialog.css +7 -1
  17. package/dist/collection/components/dock/dock.js +0 -1
  18. package/dist/collection/components/form/widgets/code-editor.js +2 -0
  19. package/dist/collection/components/info-tile/info-tile.css +310 -0
  20. package/dist/collection/components/info-tile/info-tile.js +294 -0
  21. package/dist/collection/components/info-tile/info-tile.types.js +1 -0
  22. package/dist/collection/components/input-field/input-field.css +3 -0
  23. package/dist/collection/components/list/list.css +11 -116
  24. package/dist/collection/components/list/list.js +0 -2
  25. package/dist/collection/components/menu-list/menu-list.css +11 -116
  26. package/dist/collection/components/select/select.css +8 -7
  27. package/dist/collection/components/select/select.template.js +11 -6
  28. package/dist/collection/components/shortcut/shortcut.js +30 -63
  29. package/dist/collection/components/split-button/split-button.css +10 -1
  30. package/dist/collection/components/split-button/split-button.js +11 -3
  31. package/dist/collection/global/shared-types/link.types.js +1 -0
  32. package/dist/esm/lime-elements.js +1 -1
  33. package/dist/esm/{limel-linear-progress.entry.js → limel-circular-progress_2.entry.js} +33 -1
  34. package/dist/esm/limel-dialog.entry.js +1 -1
  35. package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
  36. package/dist/esm/limel-form.entry.js +2 -0
  37. package/dist/esm/limel-info-tile.entry.js +91 -0
  38. package/dist/esm/limel-input-field.entry.js +1 -1
  39. package/dist/esm/limel-list_2.entry.js +1 -3
  40. package/dist/esm/limel-menu-list.entry.js +1 -1
  41. package/dist/esm/limel-select.entry.js +12 -7
  42. package/dist/esm/limel-shortcut.entry.js +8 -8
  43. package/dist/esm/limel-split-button.entry.js +12 -4
  44. package/dist/esm/loader.js +1 -1
  45. package/dist/lime-elements/lime-elements.esm.js +1 -1
  46. package/dist/lime-elements/{p-ef04b849.entry.js → p-1386d86d.entry.js} +1 -1
  47. package/dist/lime-elements/{p-0dbde06f.entry.js → p-21058db5.entry.js} +4 -3
  48. package/dist/lime-elements/p-4fc38050.entry.js +1 -0
  49. package/dist/lime-elements/{p-dcd2a664.entry.js → p-5f29f099.entry.js} +1 -1
  50. package/dist/lime-elements/{p-d3ebc657.entry.js → p-8ab597a8.entry.js} +1 -1
  51. package/dist/lime-elements/p-9ea8dd5c.entry.js +1 -0
  52. package/dist/lime-elements/p-e6f84d68.entry.js +1 -0
  53. package/dist/lime-elements/{p-28dffd9e.entry.js → p-e88f7922.entry.js} +1 -1
  54. package/dist/lime-elements/p-ec4c075d.entry.js +1 -0
  55. package/dist/lime-elements/p-f1ed857b.entry.js +37 -0
  56. package/dist/lime-elements/{p-4b426b7e.entry.js → p-f33cfcb8.entry.js} +1 -1
  57. package/dist/types/components/dock/dock.d.ts +0 -1
  58. package/dist/types/components/info-tile/info-tile.d.ts +87 -0
  59. package/dist/types/components/info-tile/info-tile.types.d.ts +23 -0
  60. package/dist/types/components/shortcut/shortcut.d.ts +8 -23
  61. package/dist/types/components/split-button/split-button.d.ts +1 -0
  62. package/dist/types/components.d.ts +99 -21
  63. package/dist/types/global/shared-types/link.types.d.ts +25 -0
  64. package/dist/types/interface.d.ts +2 -0
  65. package/package.json +9 -9
  66. package/dist/cjs/limel-circular-progress.cjs.entry.js +0 -39
  67. package/dist/esm/limel-circular-progress.entry.js +0 -35
  68. package/dist/lime-elements/p-334b5f82.entry.js +0 -37
  69. package/dist/lime-elements/p-744c21f8.entry.js +0 -1
  70. package/dist/lime-elements/p-8715eac0.entry.js +0 -1
  71. package/dist/lime-elements/p-9f19e0c1.entry.js +0 -1
  72. package/dist/lime-elements/p-ace4e596.entry.js +0 -1
@@ -6,7 +6,6 @@ import { DockItem } from './dock.types';
6
6
  * @exampleComponent limel-example-dock-mobile
7
7
  * @exampleComponent limel-example-dock-expanded
8
8
  * @exampleComponent limel-example-dock-colors-css
9
- * @private
10
9
  */
11
10
  export declare class Dock {
12
11
  /**
@@ -0,0 +1,87 @@
1
+ import { InfoTileProgress } from './info-tile.types';
2
+ import { Link } from '@limetech/lime-elements';
3
+ /**
4
+ * This component can be used on places such as a start page or a dashboard.
5
+ * It offers features for visualizing aggregated data along with supplementary
6
+ * information.
7
+ *
8
+ * If clicking on the component should navigate the user to
9
+ * a new screen or web page, you need to provide a URL,
10
+ * using the `link` property.
11
+ *
12
+ * @exampleComponent limel-example-info-tile
13
+ * @exampleComponent limel-example-info-tile-badge
14
+ * @exampleComponent limel-example-info-tile-progress
15
+ * @exampleComponent limel-example-info-tile-loading
16
+ * @exampleComponent limel-example-info-tile-styling
17
+ */
18
+ export declare class InfoTile {
19
+ /**
20
+ * A piece of text or number that is the main piece of information
21
+ * which the component is intended to visualize.
22
+ */
23
+ value: number | string;
24
+ /**
25
+ * Name of icon for the info tile.
26
+ */
27
+ icon?: string;
28
+ /**
29
+ * The text to show below the info tile. Long labels will be truncated.
30
+ */
31
+ label?: string;
32
+ /**
33
+ * A string of text that is visually placed before the value.
34
+ */
35
+ prefix?: string;
36
+ /**
37
+ * A string of text that is visually placed after the value.
38
+ */
39
+ suffix?: string;
40
+ /**
41
+ * Set to `true` if info tile is disabled.
42
+ */
43
+ disabled?: boolean;
44
+ /**
45
+ * If supplied, the info tile will display a notification badge.
46
+ */
47
+ badge?: number | string;
48
+ /**
49
+ * Set to `true` to put the component in the `loading` state.
50
+ * This does _not_ disable the link. To do so, the
51
+ * `disabled` property should be set to `true` as well.
52
+ */
53
+ loading?: boolean;
54
+ /**
55
+ * If supplied, the info tile will be a clickable link.
56
+ *
57
+ * Supplying a value also adds an elevated effect using a shadow,
58
+ * as well as `cursor: pointer`, which appears on hover.
59
+ * While we strongly recommend supplying a link whenever the
60
+ * component should act as a link, if this is not possible, and
61
+ * you need to provide interaction through a click handler,
62
+ * you can still get the correct styling by supplying a `Link`
63
+ * object with the `href` property set to `'#'`.
64
+ */
65
+ link?: Link;
66
+ /**
67
+ * Properties of the optional circular progress bar.
68
+ *
69
+ * Defaults:
70
+ * - `maxValue`: 100
71
+ * - `suffix`: %
72
+ * - `percentageColors`: false
73
+ *
74
+ * Colors change with intervals of 10 %.
75
+ */
76
+ progress?: InfoTileProgress;
77
+ render(): any[];
78
+ private checkProps;
79
+ private renderPrefix;
80
+ private renderValue;
81
+ private renderSuffix;
82
+ private renderIcon;
83
+ private renderProgress;
84
+ private renderLabel;
85
+ private renderNotification;
86
+ private renderSpinner;
87
+ }
@@ -0,0 +1,23 @@
1
+ export interface InfoTileProgress {
2
+ /**
3
+ * The value of the progress bar.
4
+ */
5
+ value: number;
6
+ /**
7
+ * The maximum value within the scale that the progress bar should visualize.
8
+ */
9
+ maxValue?: number;
10
+ /**
11
+ * The prefix which is displayed before the `progressValue`.
12
+ * Keep to a few characters at most.
13
+ */
14
+ prefix?: string;
15
+ /**
16
+ * The suffix which is displayed after the `value`, must be one or two characters long.
17
+ */
18
+ suffix?: string;
19
+ /**
20
+ * When set to `true`, the progress bar changes color depending on its current value.
21
+ */
22
+ displayPercentageColors?: boolean;
23
+ }
@@ -1,10 +1,12 @@
1
+ import { Link } from '@limetech/lime-elements';
1
2
  /**
2
3
  * This component can be used on places such as a start page or a dashboard.
3
4
  * Clicking on the component should navigate the user to a new screen,
4
- * to which you need to provide a URL, using the `href` property.
5
+ * to which you need to provide a URL, by specifying an `href` for the `link` property.
5
6
  *
6
7
  * By default, this navigation will happen within the same browser tab.
7
- * However, it is possible to override that behavior, using the `target` property.
8
+ * However, it is possible to override that behavior, by specifying a `target`
9
+ * for the `link` property
8
10
  *
9
11
  * @exampleComponent limel-example-shortcut
10
12
  * @exampleComponent limel-example-shortcut-notification
@@ -20,36 +22,19 @@ export declare class Shortcut {
20
22
  * The text to show below the shortcut. Long label will be truncated.
21
23
  */
22
24
  label?: string;
23
- /**
24
- * The `title` tag of the hyperlink, which can be used to
25
- * provide additional information about the link.
26
- * It improves accessibility both for sighted users
27
- * and users with assistive technologies.
28
- */
29
- linkTitle?: string;
30
25
  /**
31
26
  * Set to `true` if shortcut is disabled.
32
27
  */
33
28
  disabled?: boolean;
34
- /**
35
- * The url that the shortcut leads to.
36
- */
37
- href?: string;
38
- /**
39
- * Where to load the linked URL, as the name for a browsing context:
40
- * - `_self`: in the current browsing context. (Default)
41
- * - `_blank`: in a new tab.
42
- * - `_parent`: in the parent browsing context of the current one.
43
- * If no parent, behaves as `_self`.
44
- * - `_top`: the topmost browsing context (the "highest" context
45
- * that's an ancestor of the current one). If no ancestors, behaves as `_self`.
46
- */
47
- target: '_self' | '_blank' | '_parent' | '_top';
48
29
  /**
49
30
  * If specified, will display a notification badge
50
31
  * on the shortcut.
51
32
  */
52
33
  badge?: number | string;
34
+ /**
35
+ * If supplied, the shortcut will be a clickable link.
36
+ */
37
+ link?: Link;
53
38
  render(): any[];
54
39
  private renderLabel;
55
40
  private getAriaLabel;
@@ -42,4 +42,5 @@ export declare class SplitButton {
42
42
  */
43
43
  select: EventEmitter<MenuItem>;
44
44
  render(): any;
45
+ private renderMenu;
45
46
  }
@@ -6,13 +6,14 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Button } from "./components/button/button.types";
9
- import { Action as Action1, Chip, ClosingActions, DateType, DialogHeading, FileInfo, FlexContainerAlign, FlexContainerDirection, FlexContainerJustify, IconSize as IconSize1, Languages, ListItem, ListSeparator, ListType, MenuItem, MenuListType, OpenDirection, Option, Searcher, SpinnerSize } from "@limetech/lime-elements";
9
+ import { Action as Action1, Chip, ClosingActions, DateType, DialogHeading, FileInfo, FlexContainerAlign, FlexContainerDirection, FlexContainerJustify, IconSize as IconSize1, Languages, Link, ListItem, ListSeparator, ListType, MenuItem, MenuListType, OpenDirection, Option, Searcher, SpinnerSize } from "@limetech/lime-elements";
10
10
  import { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
11
11
  import { ColorScheme, Language } from "./components/code-editor/code-editor.types";
12
12
  import { Action } from "./components/collapsible-section/action";
13
13
  import { DockItem } from "./components/dock/dock.types";
14
14
  import { FormError, ValidationError, ValidationStatus } from "./components/form/form.types";
15
15
  import { IconSize } from "./components/icon/icon.types";
16
+ import { InfoTileProgress } from "./components/info-tile/info-tile.types";
16
17
  import { InputType } from "./components/input-field/input-field.types";
17
18
  import { ActionPosition, ActionScrollBehavior } from "./components/picker/actions.types";
18
19
  import { OpenDirection as OpenDirection1 } from "./components/menu/menu.types";
@@ -572,6 +573,48 @@ export namespace Components {
572
573
  */
573
574
  "label": string;
574
575
  }
576
+ interface LimelInfoTile {
577
+ /**
578
+ * If supplied, the info tile will display a notification badge.
579
+ */
580
+ "badge"?: number | string;
581
+ /**
582
+ * Set to `true` if info tile is disabled.
583
+ */
584
+ "disabled"?: boolean;
585
+ /**
586
+ * Name of icon for the info tile.
587
+ */
588
+ "icon"?: string;
589
+ /**
590
+ * The text to show below the info tile. Long labels will be truncated.
591
+ */
592
+ "label"?: string;
593
+ /**
594
+ * If supplied, the info tile will be a clickable link. Supplying a value also adds an elevated effect using a shadow, as well as `cursor: pointer`, which appears on hover. While we strongly recommend supplying a link whenever the component should act as a link, if this is not possible, and you need to provide interaction through a click handler, you can still get the correct styling by supplying a `Link` object with the `href` property set to `'#'`.
595
+ */
596
+ "link"?: Link;
597
+ /**
598
+ * Set to `true` to put the component in the `loading` state. This does _not_ disable the link. To do so, the `disabled` property should be set to `true` as well.
599
+ */
600
+ "loading"?: boolean;
601
+ /**
602
+ * A string of text that is visually placed before the value.
603
+ */
604
+ "prefix"?: string;
605
+ /**
606
+ * Properties of the optional circular progress bar. Defaults: - `maxValue`: 100 - `suffix`: % - `percentageColors`: false Colors change with intervals of 10 %.
607
+ */
608
+ "progress"?: InfoTileProgress;
609
+ /**
610
+ * A string of text that is visually placed after the value.
611
+ */
612
+ "suffix"?: string;
613
+ /**
614
+ * A piece of text or number that is the main piece of information which the component is intended to visualize.
615
+ */
616
+ "value": number | string;
617
+ }
575
618
  interface LimelInputField {
576
619
  /**
577
620
  * list of suggestions `value` can autocomplete to.
@@ -939,10 +982,6 @@ export namespace Components {
939
982
  * Set to `true` if shortcut is disabled.
940
983
  */
941
984
  "disabled"?: boolean;
942
- /**
943
- * The url that the shortcut leads to.
944
- */
945
- "href"?: string;
946
985
  /**
947
986
  * Name of icon for the shortcut.
948
987
  */
@@ -952,13 +991,9 @@ export namespace Components {
952
991
  */
953
992
  "label"?: string;
954
993
  /**
955
- * The `title` tag of the hyperlink, which can be used to provide additional information about the link. It improves accessibility both for sighted users and users with assistive technologies.
956
- */
957
- "linkTitle"?: string;
958
- /**
959
- * Where to load the linked URL, as the name for a browsing context: - `_self`: in the current browsing context. (Default) - `_blank`: in a new tab. - `_parent`: in the parent browsing context of the current one. If no parent, behaves as `_self`. - `_top`: the topmost browsing context (the "highest" context that's an ancestor of the current one). If no ancestors, behaves as `_self`.
994
+ * If supplied, the shortcut will be a clickable link.
960
995
  */
961
- "target": '_self' | '_blank' | '_parent' | '_top';
996
+ "link"?: Link;
962
997
  }
963
998
  interface LimelSlider {
964
999
  /**
@@ -1458,6 +1493,12 @@ declare global {
1458
1493
  prototype: HTMLLimelIconButtonElement;
1459
1494
  new (): HTMLLimelIconButtonElement;
1460
1495
  };
1496
+ interface HTMLLimelInfoTileElement extends Components.LimelInfoTile, HTMLStencilElement {
1497
+ }
1498
+ var HTMLLimelInfoTileElement: {
1499
+ prototype: HTMLLimelInfoTileElement;
1500
+ new (): HTMLLimelInfoTileElement;
1501
+ };
1461
1502
  interface HTMLLimelInputFieldElement extends Components.LimelInputField, HTMLStencilElement {
1462
1503
  }
1463
1504
  var HTMLLimelInputFieldElement: {
@@ -1627,6 +1668,7 @@ declare global {
1627
1668
  "limel-header": HTMLLimelHeaderElement;
1628
1669
  "limel-icon": HTMLLimelIconElement;
1629
1670
  "limel-icon-button": HTMLLimelIconButtonElement;
1671
+ "limel-info-tile": HTMLLimelInfoTileElement;
1630
1672
  "limel-input-field": HTMLLimelInputFieldElement;
1631
1673
  "limel-linear-progress": HTMLLimelLinearProgressElement;
1632
1674
  "limel-list": HTMLLimelListElement;
@@ -2293,6 +2335,48 @@ declare namespace LocalJSX {
2293
2335
  */
2294
2336
  "label"?: string;
2295
2337
  }
2338
+ interface LimelInfoTile {
2339
+ /**
2340
+ * If supplied, the info tile will display a notification badge.
2341
+ */
2342
+ "badge"?: number | string;
2343
+ /**
2344
+ * Set to `true` if info tile is disabled.
2345
+ */
2346
+ "disabled"?: boolean;
2347
+ /**
2348
+ * Name of icon for the info tile.
2349
+ */
2350
+ "icon"?: string;
2351
+ /**
2352
+ * The text to show below the info tile. Long labels will be truncated.
2353
+ */
2354
+ "label"?: string;
2355
+ /**
2356
+ * If supplied, the info tile will be a clickable link. Supplying a value also adds an elevated effect using a shadow, as well as `cursor: pointer`, which appears on hover. While we strongly recommend supplying a link whenever the component should act as a link, if this is not possible, and you need to provide interaction through a click handler, you can still get the correct styling by supplying a `Link` object with the `href` property set to `'#'`.
2357
+ */
2358
+ "link"?: Link;
2359
+ /**
2360
+ * Set to `true` to put the component in the `loading` state. This does _not_ disable the link. To do so, the `disabled` property should be set to `true` as well.
2361
+ */
2362
+ "loading"?: boolean;
2363
+ /**
2364
+ * A string of text that is visually placed before the value.
2365
+ */
2366
+ "prefix"?: string;
2367
+ /**
2368
+ * Properties of the optional circular progress bar. Defaults: - `maxValue`: 100 - `suffix`: % - `percentageColors`: false Colors change with intervals of 10 %.
2369
+ */
2370
+ "progress"?: InfoTileProgress;
2371
+ /**
2372
+ * A string of text that is visually placed after the value.
2373
+ */
2374
+ "suffix"?: string;
2375
+ /**
2376
+ * A piece of text or number that is the main piece of information which the component is intended to visualize.
2377
+ */
2378
+ "value"?: number | string;
2379
+ }
2296
2380
  interface LimelInputField {
2297
2381
  /**
2298
2382
  * list of suggestions `value` can autocomplete to.
@@ -2720,10 +2804,6 @@ declare namespace LocalJSX {
2720
2804
  * Set to `true` if shortcut is disabled.
2721
2805
  */
2722
2806
  "disabled"?: boolean;
2723
- /**
2724
- * The url that the shortcut leads to.
2725
- */
2726
- "href"?: string;
2727
2807
  /**
2728
2808
  * Name of icon for the shortcut.
2729
2809
  */
@@ -2733,13 +2813,9 @@ declare namespace LocalJSX {
2733
2813
  */
2734
2814
  "label"?: string;
2735
2815
  /**
2736
- * The `title` tag of the hyperlink, which can be used to provide additional information about the link. It improves accessibility both for sighted users and users with assistive technologies.
2737
- */
2738
- "linkTitle"?: string;
2739
- /**
2740
- * Where to load the linked URL, as the name for a browsing context: - `_self`: in the current browsing context. (Default) - `_blank`: in a new tab. - `_parent`: in the parent browsing context of the current one. If no parent, behaves as `_self`. - `_top`: the topmost browsing context (the "highest" context that's an ancestor of the current one). If no ancestors, behaves as `_self`.
2816
+ * If supplied, the shortcut will be a clickable link.
2741
2817
  */
2742
- "target"?: '_self' | '_blank' | '_parent' | '_top';
2818
+ "link"?: Link;
2743
2819
  }
2744
2820
  interface LimelSlider {
2745
2821
  /**
@@ -3046,6 +3122,7 @@ declare namespace LocalJSX {
3046
3122
  "limel-header": LimelHeader;
3047
3123
  "limel-icon": LimelIcon;
3048
3124
  "limel-icon-button": LimelIconButton;
3125
+ "limel-info-tile": LimelInfoTile;
3049
3126
  "limel-input-field": LimelInputField;
3050
3127
  "limel-linear-progress": LimelLinearProgress;
3051
3128
  "limel-list": LimelList;
@@ -3100,6 +3177,7 @@ declare module "@stencil/core" {
3100
3177
  "limel-header": LocalJSX.LimelHeader & JSXBase.HTMLAttributes<HTMLLimelHeaderElement>;
3101
3178
  "limel-icon": LocalJSX.LimelIcon & JSXBase.HTMLAttributes<HTMLLimelIconElement>;
3102
3179
  "limel-icon-button": LocalJSX.LimelIconButton & JSXBase.HTMLAttributes<HTMLLimelIconButtonElement>;
3180
+ "limel-info-tile": LocalJSX.LimelInfoTile & JSXBase.HTMLAttributes<HTMLLimelInfoTileElement>;
3103
3181
  "limel-input-field": LocalJSX.LimelInputField & JSXBase.HTMLAttributes<HTMLLimelInputFieldElement>;
3104
3182
  "limel-linear-progress": LocalJSX.LimelLinearProgress & JSXBase.HTMLAttributes<HTMLLimelLinearProgressElement>;
3105
3183
  "limel-list": LocalJSX.LimelList & JSXBase.HTMLAttributes<HTMLLimelListElement>;
@@ -0,0 +1,25 @@
1
+ export interface Link {
2
+ /**
3
+ * The url the link should point to.
4
+ */
5
+ href: string;
6
+ /**
7
+ * The text value to use for the link.
8
+ * Note that this might not be used by all components that use the
9
+ * Link interface.
10
+ */
11
+ text?: string;
12
+ /**
13
+ * Title for the link. Read by assistive tech and shown when the
14
+ * link is hovered. Can be used to provide additional information
15
+ * about the link. It improves accessibility both for sighted users
16
+ * and users of assistive technologies.
17
+ */
18
+ title?: string;
19
+ /**
20
+ * Target for the link. See
21
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target
22
+ * for more info.
23
+ */
24
+ target?: string;
25
+ }
@@ -1,4 +1,5 @@
1
1
  // Components interfaces
2
+ export * from './global/shared-types/link.types';
2
3
  export * from './components/button/button.types';
3
4
  export * from './components/chip-set/chip.types';
4
5
  export * from './components/collapsible-section/action';
@@ -21,3 +22,4 @@ export * from './components/tab-bar/tab.types';
21
22
  export * from './components/tab-panel/tab-panel.types';
22
23
  export * from './components/table/table.types';
23
24
  export * from './components/dock/dock.types';
25
+ export * from './components/info-tile/info-tile.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "36.1.0-dev.2",
3
+ "version": "36.1.0-dev.4",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -40,7 +40,7 @@
40
40
  "generate": "stencil generate"
41
41
  },
42
42
  "devDependencies": {
43
- "@commitlint/config-conventional": "^17.2.0",
43
+ "@commitlint/config-conventional": "^17.3.0",
44
44
  "@popperjs/core": "^2.11.6",
45
45
  "@rjsf/core": "^2.4.2",
46
46
  "@stencil/core": "^2.19.2",
@@ -49,24 +49,24 @@
49
49
  "@types/html-escaper": "^3.0.0",
50
50
  "@types/jest": "^27.4.0",
51
51
  "@types/lodash-es": "^4.17.4",
52
- "@types/puppeteer": "^5.4.4",
52
+ "@types/puppeteer": "^7.0.4",
53
53
  "@types/react": "^18.0.25",
54
54
  "@types/tabulator-tables": "^4.9.4",
55
- "@typescript-eslint/eslint-plugin": "^5.42.1",
56
- "@typescript-eslint/parser": "^5.42.1",
55
+ "@typescript-eslint/eslint-plugin": "^5.44.0",
56
+ "@typescript-eslint/parser": "^5.43.0",
57
57
  "ajv": "^6.12.6",
58
58
  "awesome-debounce-promise": "^2.1.0",
59
59
  "codemirror": "^5.65.9",
60
60
  "cross-env": "^7.0.3",
61
61
  "cz-conventional-changelog": "^3.3.0",
62
62
  "dayjs": "^1.11.6",
63
- "eslint": "^8.27.0",
63
+ "eslint": "^8.28.0",
64
64
  "eslint-config-prettier": "^8.5.0",
65
65
  "eslint-plugin-ban": "^1.6.0",
66
66
  "eslint-plugin-jsdoc": "^39.6.2",
67
67
  "eslint-plugin-prefer-arrow": "^1.2.3",
68
68
  "eslint-plugin-prettier": "^4.2.1",
69
- "eslint-plugin-react": "^7.31.10",
69
+ "eslint-plugin-react": "^7.31.11",
70
70
  "eslint-plugin-sonarjs": "^0.16.0",
71
71
  "flatpickr": "^4.6.13",
72
72
  "html-escaper": "^3.0.3",
@@ -80,7 +80,7 @@
80
80
  "moment": "^2.29.4",
81
81
  "number-abbreviate": "^2.0.0",
82
82
  "prettier": "^2.7.1",
83
- "puppeteer": "^19.2.0",
83
+ "puppeteer": "^19.3.0",
84
84
  "react": "^18.2.0",
85
85
  "react-dom": "^18.2.0",
86
86
  "react-shadow-dom-retarget-events": "^1.1.0",
@@ -89,7 +89,7 @@
89
89
  "showdown": "2.1.0",
90
90
  "shx": "^0.3.3",
91
91
  "tabulator-tables": "^4.9.3",
92
- "typescript": "^4.8.4"
92
+ "typescript": "^4.9.3"
93
93
  },
94
94
  "keywords": [
95
95
  "lime elements",
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-287e25e0.js');
6
- const format = require('./format-c0047dfb.js');
7
- require('./_commonjsHelpers-0c557e26.js');
8
-
9
- const circularProgressCss = ":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;box-sizing:border-box;isolation:isolate}:host([size=x-small]){--circular-progress-size:1.5rem;font-weight:bold}:host([size=small]){--circular-progress-size:2rem;font-weight:bold}:host([size=medium]){--circular-progress-size:3rem}:host([size=large]){--circular-progress-size:4rem}:host([size=x-large]){--circular-progress-size:5rem}.lime-circular-progress{--size:var(--circular-progress-size, 3rem);--fill-color:var(--circular-progress-fill-color, var(--mdc-theme-primary));--track-color:var(\n --circular-progress-track-color,\n rgb(var(--contrast-400))\n );position:relative;display:flex;align-items:center;justify-content:center;width:var(--size);height:var(--size);border-radius:50%;line-height:normal;box-shadow:0 0 0 0.125rem rgb(var(--contrast-100), 0.7);background:conic-gradient(var(--fill-color) 0% var(--percentage), var(--track-color) var(--percentage) 100%)}.lime-circular-progress:before{content:\"\";position:absolute;width:calc(var(--size) * 0.75 + 0.25rem);height:calc(var(--size) * 0.75 + 0.25rem);border-radius:50%;background-color:var(--circular-progress-background-color, rgb(var(--contrast-100)));box-shadow:var(--button-shadow-pressed)}.prefix{font-size:clamp(0.5rem, var(--size) * 0.16, 2.25rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;color:var(--circular-progress-prefix-color, rgb(var(--contrast-1000)));width:45%;top:20%;position:absolute}.value{display:flex;font-size:clamp(0.5rem, var(--size) * 0.25, 4rem);color:var(--circular-progress-text-color, rgb(var(--contrast-1200)));z-index:1;cursor:default}.suffix{font-size:clamp(0.5rem, var(--size) * 0.18, 2.5rem);color:var(--circular-progress-suffix-color, rgb(var(--contrast-1000)));padding-top:4%}.displays-percentage-colors[style^=\"--percentage:1\"]{--circular-progress-fill-color:var(--color-percent--10to20)}.displays-percentage-colors[style^=\"--percentage:2\"]{--circular-progress-fill-color:var(--color-percent--20to30)}.displays-percentage-colors[style^=\"--percentage:3\"]{--circular-progress-fill-color:var(--color-percent--30to40)}.displays-percentage-colors[style^=\"--percentage:4\"]{--circular-progress-fill-color:var(--color-percent--40to50)}.displays-percentage-colors[style^=\"--percentage:5\"]{--circular-progress-fill-color:var(--color-percent--50to60)}.displays-percentage-colors[style^=\"--percentage:6\"]{--circular-progress-fill-color:var(--color-percent--60to70)}.displays-percentage-colors[style^=\"--percentage:7\"]{--circular-progress-fill-color:var(--color-percent--70to80)}.displays-percentage-colors[style^=\"--percentage:8\"]{--circular-progress-fill-color:var(--color-percent--80to90)}.displays-percentage-colors[style^=\"--percentage:9\"],.displays-percentage-colors[style=\"--percentage:100%;\"]{--circular-progress-fill-color:var(--color-percent--90to100)}.displays-percentage-colors[style=\"--percentage:1%;\"],.displays-percentage-colors[style=\"--percentage:2%;\"],.displays-percentage-colors[style=\"--percentage:3%;\"],.displays-percentage-colors[style=\"--percentage:4%;\"],.displays-percentage-colors[style=\"--percentage:5%;\"],.displays-percentage-colors[style=\"--percentage:6%;\"],.displays-percentage-colors[style=\"--percentage:7%;\"],.displays-percentage-colors[style=\"--percentage:8%;\"],.displays-percentage-colors[style=\"--percentage:9%;\"]{--circular-progress-fill-color:var(--color-percent--0to10)}";
10
-
11
- const PERCENT = 100;
12
- const CircularProgress = class {
13
- constructor(hostRef) {
14
- index.registerInstance(this, hostRef);
15
- this.renderPrefix = () => {
16
- if (this.prefix) {
17
- return index.h("span", { class: "prefix" }, this.prefix);
18
- }
19
- };
20
- this.value = 0;
21
- this.maxValue = PERCENT;
22
- this.prefix = null;
23
- this.suffix = '%';
24
- this.displayPercentageColors = false;
25
- this.size = undefined;
26
- }
27
- render() {
28
- const classList = {
29
- 'lime-circular-progress': true,
30
- 'displays-percentage-colors': this.displayPercentageColors,
31
- };
32
- const currentPercentage = (this.value * PERCENT) / this.maxValue + '%';
33
- const value = Math.round(this.value * 10) / 10; // eslint-disable-line no-magic-numbers
34
- return (index.h("div", { role: "progressbar", class: classList, "aria-label": "%", "aria-valuemin": "0", "aria-valuemax": this.maxValue, "aria-valuenow": this.value, style: { '--percentage': currentPercentage } }, this.renderPrefix(), index.h("span", { class: "value" }, format.abbreviate(value), index.h("span", { class: "suffix" }, this.suffix))));
35
- }
36
- };
37
- CircularProgress.style = circularProgressCss;
38
-
39
- exports.limel_circular_progress = CircularProgress;
@@ -1,35 +0,0 @@
1
- import { r as registerInstance, h } from './index-cdfd351d.js';
2
- import { a as abbreviate } from './format-a0e2d949.js';
3
- import './_commonjsHelpers-5ec8f9b7.js';
4
-
5
- const circularProgressCss = ":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;box-sizing:border-box;isolation:isolate}:host([size=x-small]){--circular-progress-size:1.5rem;font-weight:bold}:host([size=small]){--circular-progress-size:2rem;font-weight:bold}:host([size=medium]){--circular-progress-size:3rem}:host([size=large]){--circular-progress-size:4rem}:host([size=x-large]){--circular-progress-size:5rem}.lime-circular-progress{--size:var(--circular-progress-size, 3rem);--fill-color:var(--circular-progress-fill-color, var(--mdc-theme-primary));--track-color:var(\n --circular-progress-track-color,\n rgb(var(--contrast-400))\n );position:relative;display:flex;align-items:center;justify-content:center;width:var(--size);height:var(--size);border-radius:50%;line-height:normal;box-shadow:0 0 0 0.125rem rgb(var(--contrast-100), 0.7);background:conic-gradient(var(--fill-color) 0% var(--percentage), var(--track-color) var(--percentage) 100%)}.lime-circular-progress:before{content:\"\";position:absolute;width:calc(var(--size) * 0.75 + 0.25rem);height:calc(var(--size) * 0.75 + 0.25rem);border-radius:50%;background-color:var(--circular-progress-background-color, rgb(var(--contrast-100)));box-shadow:var(--button-shadow-pressed)}.prefix{font-size:clamp(0.5rem, var(--size) * 0.16, 2.25rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;color:var(--circular-progress-prefix-color, rgb(var(--contrast-1000)));width:45%;top:20%;position:absolute}.value{display:flex;font-size:clamp(0.5rem, var(--size) * 0.25, 4rem);color:var(--circular-progress-text-color, rgb(var(--contrast-1200)));z-index:1;cursor:default}.suffix{font-size:clamp(0.5rem, var(--size) * 0.18, 2.5rem);color:var(--circular-progress-suffix-color, rgb(var(--contrast-1000)));padding-top:4%}.displays-percentage-colors[style^=\"--percentage:1\"]{--circular-progress-fill-color:var(--color-percent--10to20)}.displays-percentage-colors[style^=\"--percentage:2\"]{--circular-progress-fill-color:var(--color-percent--20to30)}.displays-percentage-colors[style^=\"--percentage:3\"]{--circular-progress-fill-color:var(--color-percent--30to40)}.displays-percentage-colors[style^=\"--percentage:4\"]{--circular-progress-fill-color:var(--color-percent--40to50)}.displays-percentage-colors[style^=\"--percentage:5\"]{--circular-progress-fill-color:var(--color-percent--50to60)}.displays-percentage-colors[style^=\"--percentage:6\"]{--circular-progress-fill-color:var(--color-percent--60to70)}.displays-percentage-colors[style^=\"--percentage:7\"]{--circular-progress-fill-color:var(--color-percent--70to80)}.displays-percentage-colors[style^=\"--percentage:8\"]{--circular-progress-fill-color:var(--color-percent--80to90)}.displays-percentage-colors[style^=\"--percentage:9\"],.displays-percentage-colors[style=\"--percentage:100%;\"]{--circular-progress-fill-color:var(--color-percent--90to100)}.displays-percentage-colors[style=\"--percentage:1%;\"],.displays-percentage-colors[style=\"--percentage:2%;\"],.displays-percentage-colors[style=\"--percentage:3%;\"],.displays-percentage-colors[style=\"--percentage:4%;\"],.displays-percentage-colors[style=\"--percentage:5%;\"],.displays-percentage-colors[style=\"--percentage:6%;\"],.displays-percentage-colors[style=\"--percentage:7%;\"],.displays-percentage-colors[style=\"--percentage:8%;\"],.displays-percentage-colors[style=\"--percentage:9%;\"]{--circular-progress-fill-color:var(--color-percent--0to10)}";
6
-
7
- const PERCENT = 100;
8
- const CircularProgress = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.renderPrefix = () => {
12
- if (this.prefix) {
13
- return h("span", { class: "prefix" }, this.prefix);
14
- }
15
- };
16
- this.value = 0;
17
- this.maxValue = PERCENT;
18
- this.prefix = null;
19
- this.suffix = '%';
20
- this.displayPercentageColors = false;
21
- this.size = undefined;
22
- }
23
- render() {
24
- const classList = {
25
- 'lime-circular-progress': true,
26
- 'displays-percentage-colors': this.displayPercentageColors,
27
- };
28
- const currentPercentage = (this.value * PERCENT) / this.maxValue + '%';
29
- const value = Math.round(this.value * 10) / 10; // eslint-disable-line no-magic-numbers
30
- return (h("div", { role: "progressbar", class: classList, "aria-label": "%", "aria-valuemin": "0", "aria-valuemax": this.maxValue, "aria-valuenow": this.value, style: { '--percentage': currentPercentage } }, this.renderPrefix(), h("span", { class: "value" }, abbreviate(value), h("span", { class: "suffix" }, this.suffix))));
31
- }
32
- };
33
- CircularProgress.style = circularProgressCss;
34
-
35
- export { CircularProgress as limel_circular_progress };