@limetech/lime-elements 36.0.0-next.3 → 36.0.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/dist/cjs/{dateFormatter-05d80b12.js → dateFormatter-d7a8d40d.js} +1 -1
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +32 -16
- package/dist/cjs/limel-chip-set.cjs.entry.js +19 -11
- package/dist/cjs/limel-code-editor.cjs.entry.js +1596 -2
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- package/dist/cjs/{limel-color-picker-palette_2.cjs.entry.js → limel-color-picker-palette.cjs.entry.js} +0 -112
- package/dist/cjs/limel-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/limel-dock-button.cjs.entry.js +105 -0
- package/dist/cjs/limel-dock.cjs.entry.js +104 -0
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/limel-input-field.cjs.entry.js +13 -6
- package/dist/cjs/{limel-list_3.cjs.entry.js → limel-list_2.cjs.entry.js} +0 -2018
- package/dist/cjs/limel-popover_4.cjs.entry.js +239 -0
- package/dist/cjs/limel-portal.cjs.entry.js +2024 -0
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +4 -5
- package/dist/cjs/limel-table.cjs.entry.js +16 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{moment-5cfac5cd.js → moment-d1e35cdc.js} +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/button/button.css +44 -4
- package/dist/collection/components/button/button.js +56 -20
- package/dist/collection/components/chip-set/chip-set.css +6 -2
- package/dist/collection/components/chip-set/chip-set.js +21 -13
- package/dist/collection/components/code-editor/code-editor.css +153 -1
- package/dist/collection/components/code-editor/code-editor.js +90 -2
- package/dist/collection/components/collapsible-section/collapsible-section.css +8 -7
- package/dist/collection/components/date-picker/date-picker.js +18 -1
- package/dist/collection/components/dock/dock-button/dock-button.css +77 -0
- package/dist/collection/components/dock/dock-button/dock-button.js +224 -0
- package/dist/collection/components/dock/dock.css +111 -0
- package/dist/collection/components/dock/dock.js +300 -0
- package/dist/collection/components/dock/dock.types.js +1 -0
- package/dist/collection/components/input-field/input-field.js +32 -7
- package/dist/collection/components/popover-surface/popover-surface.css +5 -4
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +14 -5
- package/dist/collection/components/select/select.css +10 -11
- package/dist/collection/components/select/select.template.js +3 -4
- package/dist/collection/components/table/columns.js +1 -0
- package/dist/collection/components/table/layout.js +8 -0
- package/dist/collection/components/table/table.css +89 -61
- package/dist/collection/components/table/table.js +45 -14
- package/dist/collection/style/internal/codemirror-tooltip.scss +19 -0
- package/dist/collection/style/mixins.scss +11 -0
- package/dist/esm/{dateFormatter-2cad0292.js → dateFormatter-784c3334.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-button.entry.js +33 -17
- package/dist/esm/limel-chip-set.entry.js +19 -11
- package/dist/esm/limel-code-editor.entry.js +1596 -2
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- package/dist/esm/{limel-color-picker-palette_2.entry.js → limel-color-picker-palette.entry.js} +2 -113
- package/dist/esm/limel-date-picker.entry.js +3 -3
- package/dist/esm/limel-dock-button.entry.js +101 -0
- package/dist/esm/limel-dock.entry.js +100 -0
- package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/limel-input-field.entry.js +13 -6
- package/dist/esm/{limel-list_3.entry.js → limel-list_2.entry.js} +1 -2018
- package/dist/esm/limel-popover_4.entry.js +232 -0
- package/dist/esm/limel-portal.entry.js +2020 -0
- package/dist/esm/limel-progress-flow-item.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +4 -5
- package/dist/esm/limel-table.entry.js +17 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{moment-367e51c5.js → moment-faa8a4a8.js} +2 -2
- package/dist/lime-elements/lime-elements.css +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-009de50e.entry.js +1 -0
- package/dist/lime-elements/{p-7e571ec6.entry.js → p-0ba0c38a.entry.js} +1 -1
- package/dist/lime-elements/p-0e87d44d.entry.js +1 -0
- package/dist/lime-elements/p-1390fdcb.entry.js +126 -0
- package/dist/lime-elements/{p-08251941.entry.js → p-19f72dab.entry.js} +1 -1
- package/dist/lime-elements/p-3cf4aae0.entry.js +1 -0
- package/dist/lime-elements/p-5ef52589.entry.js +1 -0
- package/dist/lime-elements/p-63a57d32.entry.js +1 -0
- package/dist/lime-elements/p-653faf47.entry.js +1 -0
- package/dist/lime-elements/{p-d76f896d.js → p-73df4d83.js} +1 -1
- package/dist/lime-elements/p-93cd2268.entry.js +1 -0
- package/dist/lime-elements/p-93f42a32.entry.js +1 -0
- package/dist/lime-elements/p-945afca2.js +3 -0
- package/dist/lime-elements/p-b0e54dc2.entry.js +1 -0
- package/dist/lime-elements/{p-af0ec482.entry.js → p-c544c05b.entry.js} +1 -1
- package/dist/lime-elements/p-c89f2b52.entry.js +1 -0
- package/dist/lime-elements/p-cb8db8c2.entry.js +37 -0
- package/dist/lime-elements/p-f41567a1.entry.js +1 -0
- package/dist/lime-elements/p-f5df4d4f.entry.js +1 -0
- package/dist/lime-elements/style/internal/codemirror-tooltip.scss +19 -0
- package/dist/lime-elements/style/mixins.scss +11 -0
- package/dist/types/components/button/button.d.ts +10 -3
- package/dist/types/components/chip-set/chip-set.d.ts +3 -2
- package/dist/types/components/code-editor/code-editor.d.ts +14 -0
- package/dist/types/components/date-picker/date-picker.d.ts +4 -0
- package/dist/types/components/dock/dock-button/dock-button.d.ts +52 -0
- package/dist/types/components/dock/dock.d.ts +83 -0
- package/dist/types/components/dock/dock.types.d.ts +53 -0
- package/dist/types/components/input-field/input-field.d.ts +6 -0
- package/dist/types/components/table/layout.d.ts +2 -0
- package/dist/types/components/table/table.d.ts +16 -1
- package/dist/types/components/table/table.types.d.ts +4 -0
- package/dist/types/components.d.ts +176 -0
- package/dist/types/interface.d.ts +1 -0
- package/package.json +5 -4
- package/dist/cjs/limel-popover-surface.cjs.entry.js +0 -32
- package/dist/cjs/limel-tooltip_2.cjs.entry.js +0 -102
- package/dist/esm/limel-popover-surface.entry.js +0 -28
- package/dist/esm/limel-tooltip_2.entry.js +0 -97
- package/dist/lime-elements/p-1e59114e.entry.js +0 -1
- package/dist/lime-elements/p-22569fb6.entry.js +0 -1
- package/dist/lime-elements/p-3af5f9ad.js +0 -3
- package/dist/lime-elements/p-404e1465.entry.js +0 -1
- package/dist/lime-elements/p-5ad60e14.entry.js +0 -126
- package/dist/lime-elements/p-6966b5df.entry.js +0 -1
- package/dist/lime-elements/p-705334c1.entry.js +0 -1
- package/dist/lime-elements/p-75152d89.entry.js +0 -1
- package/dist/lime-elements/p-7ee4b825.entry.js +0 -1
- package/dist/lime-elements/p-87453b45.entry.js +0 -1
- package/dist/lime-elements/p-97d6c4a6.entry.js +0 -1
- package/dist/lime-elements/p-b95e80c9.entry.js +0 -1
- package/dist/lime-elements/p-d1ee4501.entry.js +0 -37
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.CodeMirror-lint-tooltip.cm-s-lime {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: var(--tooltip-z-index, var(--dropdown-z-index, 130));
|
|
4
|
+
transition: opacity 0.4s ease 0s;
|
|
5
|
+
opacity: 0;
|
|
6
|
+
|
|
7
|
+
color: var(--mdc-theme-text-primary-on-background);
|
|
8
|
+
background-color: var(--mdc-theme-on-primary);
|
|
9
|
+
|
|
10
|
+
font-family: monospace;
|
|
11
|
+
font-size: 0.875rem; // 14px, like the default code editor's font size
|
|
12
|
+
white-space: pre-wrap;
|
|
13
|
+
// overflow: hidden; // Why `hidden`?
|
|
14
|
+
|
|
15
|
+
padding: 0.25rem 0.5rem;
|
|
16
|
+
border-radius: 0.5rem;
|
|
17
|
+
max-width: 40rem;
|
|
18
|
+
box-shadow: var(--shadow-depth-64);
|
|
19
|
+
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
@use './functions';
|
|
2
2
|
|
|
3
|
+
@mixin visualize-keyboard-focus {
|
|
4
|
+
&:focus {
|
|
5
|
+
outline: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:focus-visible {
|
|
9
|
+
outline: none;
|
|
10
|
+
box-shadow: var(--shadow-depth-8-focused);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
@mixin in($media) {
|
|
4
15
|
@if $media == dark-mode {
|
|
5
16
|
@media (prefers-color-scheme: dark) {
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* @exampleComponent limel-example-button-outlined
|
|
7
7
|
* @exampleComponent limel-example-button-primary
|
|
8
8
|
* @exampleComponent limel-example-button-composite
|
|
9
|
-
* @exampleComponent limel-example-button-click
|
|
9
|
+
* @exampleComponent limel-example-button-click-success
|
|
10
|
+
* @exampleComponent limel-example-button-click-fail
|
|
10
11
|
* @exampleComponent limel-example-button-reduce-presence
|
|
11
12
|
* @exampleComponent limel-example-button-colors
|
|
12
13
|
*/
|
|
@@ -38,9 +39,15 @@ export declare class Button {
|
|
|
38
39
|
* `disabled` property should be set to `true` as well.
|
|
39
40
|
*/
|
|
40
41
|
loading: boolean;
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Set to `true` to indicate failure instead of success when the button is
|
|
44
|
+
* no longer in the `loading` state.
|
|
45
|
+
*/
|
|
46
|
+
loadingFailed: boolean;
|
|
47
|
+
private justLoaded;
|
|
48
|
+
private justLoadedTimeout?;
|
|
43
49
|
render(): any;
|
|
44
50
|
protected loadingWatcher(newValue: boolean, oldValue: boolean): void;
|
|
51
|
+
private renderLoadingIcons;
|
|
45
52
|
private renderIcon;
|
|
46
53
|
}
|
|
@@ -148,6 +148,7 @@ export declare class ChipSet {
|
|
|
148
148
|
private destroyMDCChipSet;
|
|
149
149
|
private renderChipSetLabel;
|
|
150
150
|
private renderInputChips;
|
|
151
|
+
private renderLabel;
|
|
151
152
|
private dropZoneTip;
|
|
152
153
|
private isFull;
|
|
153
154
|
private isInvalid;
|
|
@@ -174,14 +175,14 @@ export declare class ChipSet {
|
|
|
174
175
|
private removeChip;
|
|
175
176
|
private renderChip;
|
|
176
177
|
private renderDefaultChip;
|
|
177
|
-
private
|
|
178
|
+
private renderChipLabel;
|
|
178
179
|
private renderHelperLine;
|
|
179
180
|
private renderHelperText;
|
|
180
181
|
private hasHelperText;
|
|
181
182
|
private renderFilterChip;
|
|
182
183
|
private renderInputChip;
|
|
183
184
|
private catchInputChipClicks;
|
|
184
|
-
private
|
|
185
|
+
private renderChipIcon;
|
|
185
186
|
private renderLeadingIcon;
|
|
186
187
|
private renderChipRemoveButton;
|
|
187
188
|
private renderClearAllChipsButton;
|
|
@@ -3,12 +3,17 @@ import { ColorScheme, Language } from './code-editor.types';
|
|
|
3
3
|
import 'codemirror/mode/javascript/javascript';
|
|
4
4
|
import 'codemirror/addon/selection/active-line';
|
|
5
5
|
import 'codemirror/addon/edit/matchbrackets';
|
|
6
|
+
import 'codemirror/addon/lint/lint';
|
|
7
|
+
import 'codemirror/addon/lint/json-lint';
|
|
8
|
+
import 'codemirror/addon/fold/foldgutter';
|
|
9
|
+
import 'codemirror/addon/fold/brace-fold';
|
|
6
10
|
/**
|
|
7
11
|
* Currently this component support syntax highlighting for `javascript`,
|
|
8
12
|
`json` and `typescript` formats.
|
|
9
13
|
*
|
|
10
14
|
* @exampleComponent limel-example-code-editor
|
|
11
15
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
16
|
+
* @exampleComponent limel-example-code-editor-fold-lint
|
|
12
17
|
*/
|
|
13
18
|
export declare class CodeEditor {
|
|
14
19
|
/**
|
|
@@ -27,6 +32,14 @@ export declare class CodeEditor {
|
|
|
27
32
|
* Displays line numbers in the editor
|
|
28
33
|
*/
|
|
29
34
|
lineNumbers: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Allows the user to fold code
|
|
37
|
+
*/
|
|
38
|
+
fold: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Enables linting of JSON content
|
|
41
|
+
*/
|
|
42
|
+
lint: boolean;
|
|
30
43
|
/**
|
|
31
44
|
* Select color scheme for the editor
|
|
32
45
|
*/
|
|
@@ -47,6 +60,7 @@ export declare class CodeEditor {
|
|
|
47
60
|
connectedCallback(): void;
|
|
48
61
|
disconnectedCallback(): void;
|
|
49
62
|
componentDidRender(): void;
|
|
63
|
+
protected watchValue(newValue: string): void;
|
|
50
64
|
private handleChangeDarkMode;
|
|
51
65
|
private handleChange;
|
|
52
66
|
private handleResize;
|
|
@@ -34,6 +34,10 @@ export declare class DatePicker {
|
|
|
34
34
|
* Text to display next to the date picker
|
|
35
35
|
*/
|
|
36
36
|
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* The placeholder text shown inside the input field, when the field is focused and empty
|
|
39
|
+
*/
|
|
40
|
+
placeholder: string;
|
|
37
41
|
/**
|
|
38
42
|
* Optional helper text to display below the input field when it has focus
|
|
39
43
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { DockItem } from '../dock.types';
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare class DockButton {
|
|
7
|
+
/**
|
|
8
|
+
* Item that is placed in the dock.
|
|
9
|
+
*/
|
|
10
|
+
item: DockItem;
|
|
11
|
+
/**
|
|
12
|
+
* When the dock is expanded or collapsed, dock items
|
|
13
|
+
* show labels and tooltips as suitable for the layout.
|
|
14
|
+
*/
|
|
15
|
+
expanded?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* When dock is using mobile layout, dock items
|
|
18
|
+
* show labels and tooltips as suitable for the layout.
|
|
19
|
+
*/
|
|
20
|
+
useMobileLayout?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Fired when a dock item has been selected from the dock.
|
|
23
|
+
*/
|
|
24
|
+
itemSelected: EventEmitter<DockItem>;
|
|
25
|
+
/**
|
|
26
|
+
* Fired when a dock menu is opened.
|
|
27
|
+
*/
|
|
28
|
+
menuOpen: EventEmitter<DockItem>;
|
|
29
|
+
/**
|
|
30
|
+
* Indicated whether the popover that renders a component is open.
|
|
31
|
+
*/
|
|
32
|
+
private isOpen;
|
|
33
|
+
/**
|
|
34
|
+
* Fired when the popover is closed.
|
|
35
|
+
*/
|
|
36
|
+
close: EventEmitter<void>;
|
|
37
|
+
private tooltipId;
|
|
38
|
+
private customComponentElement;
|
|
39
|
+
constructor();
|
|
40
|
+
render(): any;
|
|
41
|
+
protected openWatcher(): void;
|
|
42
|
+
private renderPopover;
|
|
43
|
+
private renderButton;
|
|
44
|
+
private openPopover;
|
|
45
|
+
private setCustomComponentElement;
|
|
46
|
+
private onPopoverClose;
|
|
47
|
+
private handleClick;
|
|
48
|
+
private renderIcon;
|
|
49
|
+
private renderLabel;
|
|
50
|
+
private renderTooltip;
|
|
51
|
+
private focusCustomComponentElement;
|
|
52
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { DockItem } from './dock.types';
|
|
3
|
+
/**
|
|
4
|
+
* @exampleComponent limel-example-dock-basic
|
|
5
|
+
* @exampleComponent limel-example-dock-custom-component
|
|
6
|
+
* @exampleComponent limel-example-dock-mobile
|
|
7
|
+
* @exampleComponent limel-example-dock-expanded
|
|
8
|
+
* @exampleComponent limel-example-dock-colors-css
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export declare class Dock {
|
|
12
|
+
/**
|
|
13
|
+
* Items that are placed in the dock.
|
|
14
|
+
*/
|
|
15
|
+
dockItems: DockItem[];
|
|
16
|
+
/**
|
|
17
|
+
* Items that are placed at the bottom of the dock. (Or at the end in mobile
|
|
18
|
+
* layout.)
|
|
19
|
+
*/
|
|
20
|
+
dockFooterItems?: DockItem[];
|
|
21
|
+
/**
|
|
22
|
+
* A label used to describe the purpose of the navigation element to users
|
|
23
|
+
* of assistive technologies, like screen readers. Especially useful when
|
|
24
|
+
* there are multiple navigation elements in the user interface.
|
|
25
|
+
* Example value: "Primary navigation"
|
|
26
|
+
*/
|
|
27
|
+
accessibleLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the width of the component, when it loads.
|
|
30
|
+
* - `true`: shows both icons and labels of the Dock items.
|
|
31
|
+
* - `false`: only shows icons of the doc items, and displays
|
|
32
|
+
* their labels as tooltip.
|
|
33
|
+
*
|
|
34
|
+
* Note: when `useMobileLayout` is `true`, labels will always
|
|
35
|
+
* be shown as tooltips. Read more below…
|
|
36
|
+
*/
|
|
37
|
+
expanded?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Set to `false` if you do not want to allow end-users
|
|
40
|
+
* to exapnd or shrink the Dock. This will hide the
|
|
41
|
+
* expand/shrink button, and the only things that defines
|
|
42
|
+
* the layout will be the `expanded` property, and
|
|
43
|
+
* the `mobileBreakPoint`.
|
|
44
|
+
*/
|
|
45
|
+
allowResize?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Defines the breakpoint in pixles, at which the component will be rendered
|
|
48
|
+
* in a hoizontal layout. Default breakpoint is `700` pixels, which means
|
|
49
|
+
* when the screen size is smaller than `700px`, the component will automatically
|
|
50
|
+
* switch to a horizontal layout.
|
|
51
|
+
*/
|
|
52
|
+
mobileBreakPoint?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Fired when a dock item has been selected from the dock.
|
|
55
|
+
*/
|
|
56
|
+
itemSelected: EventEmitter<DockItem>;
|
|
57
|
+
/**
|
|
58
|
+
* Fired when a dock menu is opened.
|
|
59
|
+
*/
|
|
60
|
+
menuOpen: EventEmitter<DockItem>;
|
|
61
|
+
/**
|
|
62
|
+
* Fired when the popover is closed.
|
|
63
|
+
*/
|
|
64
|
+
close: EventEmitter<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Fired when a Dock is expanded or collapsed.
|
|
67
|
+
*/
|
|
68
|
+
private dockExpanded;
|
|
69
|
+
/**
|
|
70
|
+
* Is used to render the component horizontally, and place
|
|
71
|
+
* the Dock items in a row.
|
|
72
|
+
*/
|
|
73
|
+
private useMobileLayout;
|
|
74
|
+
private resizeObserver;
|
|
75
|
+
componentDidLoad(): void;
|
|
76
|
+
disconnectedCallback(): void;
|
|
77
|
+
render(): any;
|
|
78
|
+
private renderSeparator;
|
|
79
|
+
private renderDockItem;
|
|
80
|
+
private handleResize;
|
|
81
|
+
private renderExpandShrinkToggle;
|
|
82
|
+
private toggleDockWidth;
|
|
83
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface DockItem {
|
|
2
|
+
/**
|
|
3
|
+
* A non-changing value to uniquely identify each item.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Text to display for the item.
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Name of the icon to use.
|
|
12
|
+
*/
|
|
13
|
+
icon: string;
|
|
14
|
+
/**
|
|
15
|
+
* Additional helper text for the dock item.
|
|
16
|
+
* Example usage can be a keyboard shortcut to activate the dock item.
|
|
17
|
+
*/
|
|
18
|
+
helperLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the dock item should indicate it is selected.
|
|
21
|
+
* These dock items normally take the user to a top-level location within
|
|
22
|
+
* the navigation tree; for example "Home", "Search" or "My Account".
|
|
23
|
+
* Set `selected` to `true`, when:
|
|
24
|
+
* - the user interface is showing the same top-level location as the dock
|
|
25
|
+
* item is pointing at, or
|
|
26
|
+
* - the user interface is showing a page which is a sub-location of the
|
|
27
|
+
* top-level location. For example, when user is at
|
|
28
|
+
* _My Account > Notification Settings_, the dock item of _My Account_
|
|
29
|
+
* should have the `selected` state.
|
|
30
|
+
*/
|
|
31
|
+
selected?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Used to specify a custom component to render as a menu for the dock item.
|
|
34
|
+
*/
|
|
35
|
+
dockMenu?: DockMenu;
|
|
36
|
+
}
|
|
37
|
+
export interface DockMenu {
|
|
38
|
+
/**
|
|
39
|
+
* The tag name of a custom component to be displayed in a popover when
|
|
40
|
+
* clicking on the dock item this menu belongs to.
|
|
41
|
+
*/
|
|
42
|
+
componentName: string;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the menu is open.
|
|
45
|
+
*/
|
|
46
|
+
menuOpen?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Any properties that should be set on the custom component.
|
|
49
|
+
*/
|
|
50
|
+
props?: {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InputType } from './input-field.types';
|
|
2
2
|
/**
|
|
3
3
|
* @exampleComponent limel-example-input-field-text
|
|
4
|
+
* @exampleComponent limel-example-input-field-placeholder
|
|
4
5
|
* @exampleComponent limel-example-input-field-text-multiple
|
|
5
6
|
* @exampleComponent limel-example-input-field-number
|
|
6
7
|
* @exampleComponent limel-example-input-field-autocomplete
|
|
@@ -39,6 +40,10 @@ export declare class InputField {
|
|
|
39
40
|
* The input label.
|
|
40
41
|
*/
|
|
41
42
|
label: string;
|
|
43
|
+
/**
|
|
44
|
+
* The placeholder text shown inside the input field, when the field is focused and empty.
|
|
45
|
+
*/
|
|
46
|
+
placeholder: string;
|
|
42
47
|
/**
|
|
43
48
|
* Optional helper text to display below the input field when it has focus
|
|
44
49
|
*/
|
|
@@ -170,6 +175,7 @@ export declare class InputField {
|
|
|
170
175
|
private renderCharacterCounter;
|
|
171
176
|
private isInvalid;
|
|
172
177
|
private getInputElement;
|
|
178
|
+
private renderLabel;
|
|
173
179
|
private renderLeadingIcon;
|
|
174
180
|
private renderTrailingLinkOrButton;
|
|
175
181
|
private hasLink;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Column, TableParams, ColumnSorter, ColumnAggregate } from './table.types';
|
|
3
|
+
import { Layout } from './layout';
|
|
3
4
|
/**
|
|
4
5
|
* @exampleComponent limel-example-table
|
|
5
6
|
* @exampleComponent limel-example-table-custom-components
|
|
6
7
|
* @exampleComponent limel-example-table-header-menu
|
|
7
8
|
* @exampleComponent limel-example-table-movable-columns
|
|
9
|
+
* @exampleComponent limel-example-table-sorting-disabled
|
|
8
10
|
* @exampleComponent limel-example-table-local
|
|
9
11
|
* @exampleComponent limel-example-table-remote
|
|
10
12
|
* @exampleComponent limel-example-table-activate-row
|
|
11
13
|
* @exampleComponent limel-example-table-selectable-rows
|
|
12
14
|
* @exampleComponent limel-example-table-default-sorted
|
|
13
|
-
* @exampleComponent limel-example-table-
|
|
15
|
+
* @exampleComponent limel-example-table-layout-default
|
|
16
|
+
* @exampleComponent limel-example-table-layout-stretch-last-column
|
|
17
|
+
* @exampleComponent limel-example-table-layout-stretch-columns
|
|
18
|
+
* @exampleComponent limel-example-table-layout-low-density
|
|
19
|
+
* @exampleComponent limel-example-table-interactive-rows
|
|
14
20
|
*/
|
|
15
21
|
export declare class Table {
|
|
16
22
|
/**
|
|
@@ -28,6 +34,15 @@ export declare class Table {
|
|
|
28
34
|
* is responsible to give the table new data when a `load` event occurs
|
|
29
35
|
*/
|
|
30
36
|
mode: 'local' | 'remote';
|
|
37
|
+
/**
|
|
38
|
+
* Defines the layout of the table, based on how width of the columns are calculated.
|
|
39
|
+
*
|
|
40
|
+
* - `default`: makes columns as wide as their contents.
|
|
41
|
+
* - `stretchLastColumn`: makes columns as wide as their contents, stretch the last column to fill up the remaining table width.
|
|
42
|
+
* - `stretchColumns`: stretches all columns to fill the available width when possible.
|
|
43
|
+
* - `lowDensity`: makes columns as wide as their contents, and creates a low density and airy layout.
|
|
44
|
+
*/
|
|
45
|
+
layout: Layout;
|
|
31
46
|
/**
|
|
32
47
|
* Number of rows per page
|
|
33
48
|
*/
|
|
@@ -27,6 +27,10 @@ export interface Column<T extends object = any> {
|
|
|
27
27
|
* Sets the horizontal text alignment for the column
|
|
28
28
|
*/
|
|
29
29
|
horizontalAlign?: 'left' | 'center' | 'right';
|
|
30
|
+
/**
|
|
31
|
+
* Defines whether end-user can sort a column
|
|
32
|
+
*/
|
|
33
|
+
headerSort?: boolean;
|
|
30
34
|
}
|
|
31
35
|
export declare type TableFormatter = (value: any, data?: object) => string;
|
|
32
36
|
/**
|