@refinitiv-ui/elements 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/lib/accordion/custom-elements.md +18 -0
  3. package/lib/appstate-bar/custom-elements.md +22 -0
  4. package/lib/autosuggest/custom-elements.json +12 -2
  5. package/lib/autosuggest/custom-elements.md +47 -0
  6. package/lib/button/custom-elements.json +2 -2
  7. package/lib/button/custom-elements.md +23 -0
  8. package/lib/button-bar/custom-elements.md +9 -0
  9. package/lib/calendar/custom-elements.json +4 -4
  10. package/lib/calendar/custom-elements.md +35 -0
  11. package/lib/canvas/custom-elements.md +27 -0
  12. package/lib/card/custom-elements.md +24 -0
  13. package/lib/chart/custom-elements.md +16 -0
  14. package/lib/checkbox/custom-elements.json +4 -4
  15. package/lib/checkbox/custom-elements.md +18 -0
  16. package/lib/clock/custom-elements.md +28 -0
  17. package/lib/collapse/custom-elements.md +27 -0
  18. package/lib/color-dialog/custom-elements.json +8 -8
  19. package/lib/color-dialog/custom-elements.md +39 -0
  20. package/lib/combo-box/custom-elements.json +9 -6
  21. package/lib/combo-box/custom-elements.md +35 -0
  22. package/lib/counter/custom-elements.md +11 -0
  23. package/lib/datetime-picker/custom-elements.json +4 -4
  24. package/lib/datetime-picker/custom-elements.md +49 -0
  25. package/lib/dialog/custom-elements.json +4 -4
  26. package/lib/dialog/custom-elements.md +47 -0
  27. package/lib/email-field/custom-elements.json +6 -6
  28. package/lib/email-field/custom-elements.md +35 -0
  29. package/lib/flag/custom-elements.md +10 -0
  30. package/lib/header/custom-elements.md +18 -0
  31. package/lib/heatmap/custom-elements.md +26 -0
  32. package/lib/icon/custom-elements.md +8 -0
  33. package/lib/interactive-chart/custom-elements.md +32 -0
  34. package/lib/item/custom-elements.json +6 -8
  35. package/lib/item/custom-elements.md +29 -0
  36. package/lib/item/index.d.ts +9 -1
  37. package/lib/item/index.js +23 -3
  38. package/lib/label/custom-elements.md +11 -0
  39. package/lib/layout/custom-elements.md +26 -0
  40. package/lib/led-gauge/custom-elements.md +17 -0
  41. package/lib/list/custom-elements.md +30 -0
  42. package/lib/loader/custom-elements.md +5 -0
  43. package/lib/multi-input/custom-elements.json +4 -4
  44. package/lib/multi-input/custom-elements.md +43 -0
  45. package/lib/notification/custom-elements.md +26 -0
  46. package/lib/number-field/custom-elements.json +6 -6
  47. package/lib/number-field/custom-elements.md +37 -0
  48. package/lib/overlay/custom-elements.json +3 -0
  49. package/lib/overlay/custom-elements.md +54 -0
  50. package/lib/overlay-menu/custom-elements.json +10 -12
  51. package/lib/overlay-menu/custom-elements.md +44 -0
  52. package/lib/pagination/custom-elements.md +27 -0
  53. package/lib/panel/custom-elements.md +11 -0
  54. package/lib/password-field/custom-elements.json +6 -6
  55. package/lib/password-field/custom-elements.md +31 -0
  56. package/lib/pill/custom-elements.json +4 -4
  57. package/lib/pill/custom-elements.md +22 -0
  58. package/lib/progress-bar/custom-elements.md +18 -0
  59. package/lib/radio-button/custom-elements.json +8 -8
  60. package/lib/radio-button/custom-elements.md +19 -0
  61. package/lib/rating/custom-elements.md +17 -0
  62. package/lib/search-field/custom-elements.json +6 -6
  63. package/lib/search-field/custom-elements.md +33 -0
  64. package/lib/select/custom-elements.json +2 -2
  65. package/lib/select/custom-elements.md +24 -0
  66. package/lib/sidebar-layout/custom-elements.md +22 -0
  67. package/lib/slider/custom-elements.json +6 -6
  68. package/lib/slider/custom-elements.md +28 -0
  69. package/lib/sparkline/custom-elements.md +16 -0
  70. package/lib/swing-gauge/custom-elements.md +17 -0
  71. package/lib/tab/custom-elements.json +2 -2
  72. package/lib/tab/custom-elements.md +22 -0
  73. package/lib/tab-bar/custom-elements.md +11 -0
  74. package/lib/text-field/custom-elements.json +6 -6
  75. package/lib/text-field/custom-elements.md +37 -0
  76. package/lib/time-picker/custom-elements.json +4 -4
  77. package/lib/time-picker/custom-elements.md +28 -0
  78. package/lib/toggle/custom-elements.json +4 -4
  79. package/lib/toggle/custom-elements.md +19 -0
  80. package/lib/tooltip/custom-elements.md +14 -0
  81. package/lib/tornado-chart/custom-elements.md +18 -0
  82. package/lib/tree/custom-elements.json +2 -2
  83. package/lib/tree/custom-elements.md +32 -0
  84. package/lib/tree/managers/tree-manager.d.ts +20 -2
  85. package/lib/tree/managers/tree-manager.js +55 -28
  86. package/lib/tree-select/custom-elements.json +2 -2
  87. package/lib/tree-select/custom-elements.md +26 -0
  88. package/lib/version.js +1 -1
  89. package/package.json +7 -7
@@ -0,0 +1,30 @@
1
+ # ef-list
2
+
3
+ Provides listing and immutable selection
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Modifiers | Type | Default | Description |
8
+ |------------------|-------------|-----------|----------------|--------------------------|--------------------------------------------------|
9
+ | `data` | | | `ListData` | | The data object, used to render the list. |
10
+ | `delegatesFocus` | | readonly | `false` | false | Element focus delegation.<br />Set to `false` and relies on native focusing. |
11
+ | `multiple` | `multiple` | | `boolean` | false | Allow multiple selections |
12
+ | `renderer` | | | `ListRenderer` | "new ListRenderer(this)" | Renderer used to render list item elements |
13
+ | `stateless` | `stateless` | | `boolean` | false | Disable selections |
14
+ | `value` | `value` | | `string` | | Returns the first selected item value.<br />Use `values` when multiple selection mode is enabled. |
15
+ | `values` | | | `object` | | Returns a values collection of the currently<br />selected item values |
16
+
17
+ ## Methods
18
+
19
+ | Method | Type | Description |
20
+ |----------------|-------------------------|--------------------------------------------------|
21
+ | `down` | `(): void` | Navigate up through the list items |
22
+ | `scrollToItem` | `(item: T): void` | Scroll to list item element<br /><br />**item**: Data item to scroll to |
23
+ | `selectItem` | `(item?: any): boolean` | Selects an item in the list<br /><br />**item**: Data Item or Item Element |
24
+ | `up` | `(): void` | Navigate up through the list items |
25
+
26
+ ## Events
27
+
28
+ | Event | Description |
29
+ |-----------------|-------------------------------|
30
+ | `value-changed` | Dispatched when value changes |
@@ -0,0 +1,5 @@
1
+ # ef-loader
2
+
3
+ An animated graphical component,
4
+ used to show that an app is performing an action
5
+ in the background such as downloading content.
@@ -49,13 +49,13 @@
49
49
  "name": "readonly",
50
50
  "description": "Hides text field and clear icon from all pills",
51
51
  "type": "boolean",
52
- "default": "\"false\""
52
+ "default": "false"
53
53
  },
54
54
  {
55
55
  "name": "disabled",
56
56
  "description": "Set disabled state",
57
57
  "type": "boolean",
58
- "default": "\"false\""
58
+ "default": "false"
59
59
  },
60
60
  {
61
61
  "name": "value",
@@ -137,14 +137,14 @@
137
137
  "attribute": "readonly",
138
138
  "description": "Hides text field and clear icon from all pills",
139
139
  "type": "boolean",
140
- "default": "\"false\""
140
+ "default": "false"
141
141
  },
142
142
  {
143
143
  "name": "disabled",
144
144
  "attribute": "disabled",
145
145
  "description": "Set disabled state",
146
146
  "type": "boolean",
147
- "default": "\"false\""
147
+ "default": "false"
148
148
  },
149
149
  {
150
150
  "name": "value",
@@ -0,0 +1,43 @@
1
+ # ef-multi-input
2
+
3
+ An input control component to display a selection of pills
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Modifiers | Type | Default | Description |
8
+ |------------------|---------------|-----------|--------------------------|---------|------------------------------------------------|
9
+ | `data` | | | `MultiInputData \| null` | | The data object, used to render the list. |
10
+ | `disabled` | `disabled` | | `boolean` | false | Set disabled state |
11
+ | `error` | `error` | | `boolean` | false | Set state to error |
12
+ | `icon` | `icon` | | `string` | "" | Specify icon to display inside input box |
13
+ | `maxLength` | `maxlength` | | `number \| null` | null | Set character max limit |
14
+ | `minLength` | `minlength` | | `number \| null` | null | Set character min limit |
15
+ | `pillsOnly` | `pills-only` | | `boolean` | false | Hide text input box |
16
+ | `placeholder` | `placeholder` | | `string` | "" | Placeholder text to display in input box |
17
+ | `readonly` | `readonly` | | `boolean` | false | Hides text field and clear icon from all pills |
18
+ | `selectionEnd` | | | `number \| null` | | Selection end index |
19
+ | `selectionStart` | | | `number \| null` | | Selection start index |
20
+ | `value` | `value` | | `string` | "" | Current value of text field |
21
+ | `values` | | readonly | `string[]` | | Array of item's values ( readonly ) |
22
+ | `warning` | `warning` | | `boolean` | false | Set state to warning |
23
+
24
+ ## Methods
25
+
26
+ | Method | Type | Description |
27
+ |---------------------|--------------------------------------------------|--------------------------------------------------|
28
+ | `add` | `(item: any): MultiInputDataItem \| null` | Add a new item to the input. Return newly added object or null if added invalid object.<br /><br />**item**: to add. Object must have at least value and label |
29
+ | `removeByIndex` | `(index: number): MultiInputDataItem \| null` | Removes pill by index. Returns item that removed or null if list was empty<br /><br />**index**: of pill to be removed |
30
+ | `removeByValue` | `(value: string): string` | Removes the item by the value and returns array of removed items<br /><br />**value**: Value of item to remove |
31
+ | `removeLastItem` | `(): MultiInputDataItem \| null` | Removes last item. Returns item that removed or null if list was empty |
32
+ | `select` | `(): void` | Select the contents of input |
33
+ | `setSelectionRange` | `(startSelection: number, endSelection: number): void` | Set the selection range<br /><br />**startSelection**: Start of selection<br />**endSelection**: End of the selection |
34
+
35
+ ## Events
36
+
37
+ | Event | Description |
38
+ |-----------------|--------------------------------------------------|
39
+ | `error-changed` | Dispatched when error state changes.<br />Property `detail.error` is error from validation. |
40
+ | `item-added` | Fired when new pill is added.<br />Property `detail.item` is new added pill.<br />Property `detail.items` is new list of all pills. |
41
+ | `item-error` | Fired when item that attempt to add is invalid.<br />Property `detail.item` is item with an error.<br />Property `detail.items` a current list of pills. |
42
+ | `item-removed` | Fired when item is removed.<br />Property `detail.item` is pill that removed.<br />Property `detail.items` is new list of all pills. |
43
+ | `value-changed` | Fired when new value of text field is changed.<br />Property `detail.value` will be the new value. |
@@ -0,0 +1,26 @@
1
+ # ef-notification
2
+
3
+ Used to show informative content when something happens in the application
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |-------------|-------------|-----------|---------|------------------------------------------|
9
+ | `collapsed` | `collapsed` | `boolean` | false | Toggles the collapsed state. |
10
+ | `confirm` | `confirm` | `boolean` | false | Notification style: Confirm |
11
+ | `error` | `error` | `boolean` | false | Notification style: Error |
12
+ | `message` | `message` | `string` | "" | The message to show in the notification. |
13
+ | `warning` | `warning` | `boolean` | false | Notification style: Warning |
14
+
15
+ ## Methods
16
+
17
+ | Method | Type | Description |
18
+ |-----------|------------|--------------------------------------------------|
19
+ | `dismiss` | `(): void` | Dismisses the notification, firing a `dismiss` event and collapsing the notification. |
20
+
21
+ ## Events
22
+
23
+ | Event | Description |
24
+ |-------------|-------------------------------------------|
25
+ | `collapsed` | Dispatched when notification is collapsed |
26
+ | `dismiss` | Dispatched when notification is dismissed |
@@ -53,19 +53,19 @@
53
53
  "name": "value",
54
54
  "description": "The value of the number entered into the input.",
55
55
  "type": "string",
56
- "default": "\"\""
56
+ "default": "0"
57
57
  },
58
58
  {
59
59
  "name": "readonly",
60
60
  "description": "Set readonly state",
61
61
  "type": "boolean",
62
- "default": "\"false\""
62
+ "default": "false"
63
63
  },
64
64
  {
65
65
  "name": "disabled",
66
66
  "description": "Set disabled state",
67
67
  "type": "boolean",
68
- "default": "\"false\""
68
+ "default": "false"
69
69
  }
70
70
  ],
71
71
  "properties": [
@@ -131,21 +131,21 @@
131
131
  "attribute": "value",
132
132
  "description": "The value of the number entered into the input.",
133
133
  "type": "string",
134
- "default": "\"\""
134
+ "default": "0"
135
135
  },
136
136
  {
137
137
  "name": "readonly",
138
138
  "attribute": "readonly",
139
139
  "description": "Set readonly state",
140
140
  "type": "boolean",
141
- "default": "\"false\""
141
+ "default": "false"
142
142
  },
143
143
  {
144
144
  "name": "disabled",
145
145
  "attribute": "disabled",
146
146
  "description": "Set disabled state",
147
147
  "type": "boolean",
148
- "default": "\"false\""
148
+ "default": "false"
149
149
  }
150
150
  ],
151
151
  "events": [
@@ -0,0 +1,37 @@
1
+ # ef-number-field
2
+
3
+ Form control element for numbers
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Modifiers | Type | Default | Description |
8
+ |-----------------|---------------|-----------|------------------|---------|--------------------------------------------------|
9
+ | `disabled` | `disabled` | | `boolean` | false | Set disabled state |
10
+ | `error` | `error` | | `boolean` | false | Set state to error |
11
+ | `max` | `max` | | `string \| null` | null | Set maximum value.<br />This value must be greater than or equal to the value of the `min` attribute |
12
+ | `min` | `min` | | `string \| null` | null | Set minimum value.<br />This value must be less than or equal to the value of the `max` attribute |
13
+ | `noSpinner` | `no-spinner` | | `boolean` | false | Set spinner's visibility |
14
+ | `placeholder` | `placeholder` | | `string \| null` | null | Set placeholder text |
15
+ | `readonly` | `readonly` | | `boolean` | false | Set readonly state |
16
+ | `step` | `step` | | `string \| null` | null | Set step value |
17
+ | `transparent` | `transparent` | | `boolean` | false | Set state to transparent |
18
+ | `value` | `value` | | `string` | 0 | The value of the number entered into the input. |
19
+ | `valueAsNumber` | | readonly | `number` | | Returns the value of the element, interpreted as double number |
20
+ | `warning` | `warning` | | `boolean` | false | Set state to warning |
21
+
22
+ ## Methods
23
+
24
+ | Method | Type | Description |
25
+ |------------------|-----------------------------------------------|--------------------------------------------------|
26
+ | `checkValidity` | `(): boolean` | Returns true if an input element contains valid data. |
27
+ | `reportValidity` | `(): boolean` | Validate input. Mark as error if input is invalid |
28
+ | `select` | `(): void` | Select the contents of input |
29
+ | `stepDown` | `(stepIncrement?: number \| undefined): void` | Decreases the input value by amount of step<br /><br />**stepIncrement**: The stepIncrement parameter is a numeric value. If no parameter is passed, stepIncrement defaults to 1. |
30
+ | `stepUp` | `(stepIncrement?: number \| undefined): void` | Increases the input value by amount of step<br /><br />**stepIncrement**: The stepIncrement parameter is a numeric value. If no parameter is passed, stepIncrement defaults to 1. |
31
+
32
+ ## Events
33
+
34
+ | Event | Description |
35
+ |-----------------|-------------------------------------|
36
+ | `error-changed` | Dispatched when error state changes |
37
+ | `value-changed` | Dispatched when value changes |
@@ -313,6 +313,9 @@
313
313
  {
314
314
  "name": "opened-changed",
315
315
  "description": "Dispatched when when open attribute changes internally. Prevent default to stop opening/closing pipeline"
316
+ },
317
+ {
318
+ "name": "animationiteration"
316
319
  }
317
320
  ],
318
321
  "methods": [
@@ -0,0 +1,54 @@
1
+ # ef-overlay
2
+
3
+ Element to help building modals, dialogs and other overlay content
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Modifiers | Type | Default | Description |
8
+ |--------------------------|------------------------------|-----------|-------------------|---------|--------------------------------------------------|
9
+ | `focusBoundary` | | | | "this" | Set focus boundary to restrict tabbing. Default's overlay itself.<br />If external focus is required, set to null |
10
+ | `fullScreen` | `full-screen` | | `boolean` | false | Set to true to show overlay in full screen mode |
11
+ | `fullyOpened` | | readonly | `boolean` | | Returns true if the overlay is opened and animation is not running.<br />Returns false if overlay is closed and animation is not running |
12
+ | `horizontalOffset` | `horizontal-offset` | | `number` | 0 | A pixel value that will be added to the position calculated on the horizontal axis.<br />The offset will be applied either to the `left` or `right` depending on the `positionTarget` |
13
+ | `interactiveElements` | | | `object` | [] | A list of elements, which are active when overlay is opened<br />Valid only if noInteractionLock is false (default) |
14
+ | `lockPositionTarget` | `lock-position-target` | | `boolean` | false | True to lock position target<br />Valid only if noInteractionLock is false (default) |
15
+ | `noAutofocus` | `no-autofocus` | | `boolean` | false | Set to true to disable autofocusing the overlay or open |
16
+ | `noCancelOnEscKey` | `no-cancel-on-esc-key` | | `boolean` | false | Set to true to disable canceling the overlay with the ESC key |
17
+ | `noCancelOnOutsideClick` | `no-cancel-on-outside-click` | | `boolean` | false | Set to true to disable canceling the overlay by clicking outside it |
18
+ | `noFocusManagement` | `no-focus-management` | | `boolean` | false | True to not apply focus management.<br />The overlay will not limit Tab behaviour or do auto-focusing |
19
+ | `noInteractionLock` | `no-interaction-lock` | | `boolean` | false | Stop preventing user interaction when overlay is visible |
20
+ | `noOverlap` | `no-overlap` | | `boolean` | false | True to not overlap positionTarget |
21
+ | `offset` | `offset` | | `number` | 0 | A pixel value that will be added to the position calculated on the vertical or horizontal axis.<br />The offset is applied dynamically depending on the `positionTarget` |
22
+ | `opened` | `opened` | | `boolean` | false | True if the overlay is currently displayed |
23
+ | `position` | `position` | | `{} \| undefined` | | Set position and align against the attach target.<br />Position may contain a single word or a comma separated list to set the priority.<br />Position is not applied if `attachTarget` is not HTML Element.<br />For instance: `[bottom-middle, top-middle]` - default position is bottom-middle, if cannot fit position top-middle;<br />or `[left, right]` - align is not set, set best position on the left or right<br /><br />Position can be: `top`, `right`, `bottom`, `left`, `center`<br />Align can be: `start`, `middle`, `end` |
24
+ | `positionTarget` | `position-target` | | | | Set the position target as follows:<br />- HTMLElement if overlay is position next to the HTML element<br />- String containing `top`, `right`, `left`, `bottom`, `center` combinations to position against the screen.<br />For instance: `top left` - put the overlay at `top left` point of the screen; `bottom` - put overlay at `bottom center` point of the screen |
25
+ | `positionTargetConfig` | | readonly | | | Get position target configuration based on positionTarget and fullScreen properties<br />Used for caching and calculations |
26
+ | `spacing` | `spacing` | | `boolean` | false | True to apply spacing for overlay content |
27
+ | `transitionStyle` | `transition-style` | | | | Set the transition style |
28
+ | `transitioning` | | readonly | `boolean` | | Returns true if overlay is doing opening or closing transition |
29
+ | `transparent` | `transparent` | | `boolean` | false | True to make overlay background transparent |
30
+ | `verticalOffset` | `vertical-offset` | | `number` | 0 | A pixel value that will be added to the position calculated on the vertical axis.<br />The offset will be applied either to the `top` or `bottom` depending on the `positionTarget` |
31
+ | `withBackdrop` | `with-backdrop` | | `boolean` | false | True to show backdrop |
32
+ | `withShadow` | `with-shadow` | | `boolean` | false | True to add shadow |
33
+ | `x` | `x` | | | | Set a specific x coordinate |
34
+ | `y` | `y` | | | | Set a specific y coordinate |
35
+ | `zIndex` | `z-index` | | | | Set a preferable z-index to override automatically calculated z-index |
36
+
37
+ ## Methods
38
+
39
+ | Method | Type | Description |
40
+ |---------------|------------|--------------------------------------------------|
41
+ | `clearCached` | `(): void` | Clear all cached values.<br />Run when external changes occur to styles to re-calculate position. |
42
+ | `fit` | `(): void` | Fit the overlay panel |
43
+ | `refit` | `(): void` | Clear all cached values and fit the overlay.<br />Use this function if any of `maxWidth`, `maxHeight`, `minWidth`, `minHeight`, `height` or `width` changed |
44
+ | `toFront` | `(): void` | Move overlay to front of other overlays |
45
+
46
+ ## Events
47
+
48
+ | Event | Description |
49
+ |----------------------|--------------------------------------------------|
50
+ | `animationiteration` | |
51
+ | `closed` | Dispatched when overlay becomes invisible and close animation finishes |
52
+ | `opened` | Dispatched when the overlay becomes visible and the open animation finishes |
53
+ | `opened-changed` | Dispatched when when open attribute changes internally. Prevent default to stop opening/closing pipeline |
54
+ | `refit` | Dispatched when refit algorithm finishes calculations |
@@ -15,13 +15,13 @@
15
15
  "name": "opened",
16
16
  "description": "True if the menu is currently displayed",
17
17
  "type": "boolean",
18
- "default": "\"false\""
18
+ "default": "false"
19
19
  },
20
20
  {
21
21
  "name": "value",
22
22
  "description": "Returns the first selected item value.",
23
23
  "type": "string",
24
- "default": "\"\""
24
+ "default": "0"
25
25
  },
26
26
  {
27
27
  "name": "x",
@@ -101,50 +101,48 @@
101
101
  "attribute": "opened",
102
102
  "description": "True if the menu is currently displayed",
103
103
  "type": "boolean",
104
- "default": "\"false\""
104
+ "default": "false"
105
105
  },
106
106
  {
107
107
  "name": "withBackdrop",
108
108
  "description": "True to show backdrop",
109
109
  "type": "boolean",
110
- "default": "\"false\""
110
+ "default": "false"
111
111
  },
112
112
  {
113
113
  "name": "noCancelOnEscKey",
114
114
  "description": "Set to true to disable canceling the overlay with the ESC key",
115
115
  "type": "boolean",
116
- "default": "\"false\""
116
+ "default": "false"
117
117
  },
118
118
  {
119
119
  "name": "noCancelOnOutsideClick",
120
120
  "description": "Set to true to disable canceling the overlay by clicking outside it",
121
121
  "type": "boolean",
122
- "default": "\"false\""
122
+ "default": "false"
123
123
  },
124
124
  {
125
125
  "name": "lockPositionTarget",
126
126
  "description": "Set to true to lock position target",
127
127
  "type": "boolean",
128
- "default": "\"false\""
128
+ "default": "false"
129
129
  },
130
130
  {
131
131
  "name": "positionTarget",
132
132
  "description": "Position next to the HTML element",
133
- "type": "HTMLElement|null",
134
- "default": "\"null\""
133
+ "type": "HTMLElement|null"
135
134
  },
136
135
  {
137
136
  "name": "transitionStyle",
138
137
  "description": "Set the transition style",
139
- "type": "string|null",
140
- "default": "\"null\""
138
+ "type": "string|null"
141
139
  },
142
140
  {
143
141
  "name": "value",
144
142
  "attribute": "value",
145
143
  "description": "Returns the first selected item value.",
146
144
  "type": "string",
147
- "default": "\"\""
145
+ "default": "0"
148
146
  },
149
147
  {
150
148
  "name": "x",
@@ -0,0 +1,44 @@
1
+ # ef-overlay-menu
2
+
3
+ Overlay that supports single-level and multi-level menus
4
+
5
+ ## Attributes
6
+
7
+ | Attribute | Type | Description |
8
+ |------------------------------|-----------|--------------------------------------------------|
9
+ | `horizontal-offset` | `number` | A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget` |
10
+ | `lock-position-target` | `boolean` | Set to true to lock position target |
11
+ | `no-cancel-on-esc-key` | `boolean` | Set to true to disable canceling the overlay with the ESC key |
12
+ | `no-cancel-on-outside-click` | `boolean` | Set to true to disable canceling the overlay by clicking outside it |
13
+ | `transition-style` | `string` | Set the transition style |
14
+ | `vertical-offset` | `number` | A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget` |
15
+ | `with-backdrop` | `boolean` | True to show backdrop |
16
+
17
+ ## Properties
18
+
19
+ | Property | Attribute | Type | Default | Description |
20
+ |--------------------------|------------|---------------------|---------|--------------------------------------------------|
21
+ | `compact` | `compact` | `boolean` | false | Switch to compact style menu |
22
+ | `data` | | | | Construct the menu from data object.<br />Cannot be used with internal content |
23
+ | `horizontalOffset` | | `number` | | A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget` |
24
+ | `lockPositionTarget` | | `boolean` | false | Set to true to lock position target |
25
+ | `noCancelOnEscKey` | | `boolean` | false | Set to true to disable canceling the overlay with the ESC key |
26
+ | `noCancelOnOutsideClick` | | `boolean` | false | Set to true to disable canceling the overlay by clicking outside it |
27
+ | `offset` | `offset` | `number` | | A pixel value that will be added to the position calculated on the vertical or horizontal axis. The offset is applied dynamically depending on the `positionTarget` |
28
+ | `opened` | `opened` | `boolean` | false | True if the menu is currently displayed |
29
+ | `position` | `position` | `{} \| undefined` | | Set position and align against the attach target. |
30
+ | `positionTarget` | | `HTMLElement\|null` | null | Position next to the HTML element |
31
+ | `transitionStyle` | | `string\|null` | null | Set the transition style |
32
+ | `value` | `value` | `string` | 0 | Returns the first selected item value. |
33
+ | `values` | | `string[]` | | Array of item's values |
34
+ | `verticalOffset` | | `number` | | A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget` |
35
+ | `withBackdrop` | | `boolean` | false | True to show backdrop |
36
+ | `x` | `x` | `number` | | Set a specific x coordinate |
37
+ | `y` | `y` | `number` | | Set a specific y coordinate |
38
+
39
+ ## Events
40
+
41
+ | Event | Description |
42
+ |------------------|--------------------------------------------------|
43
+ | `item-trigger` | Dispatched when user clicks on item |
44
+ | `opened-changed` | Dispatched when when opened attribute changes internally. Prevent default to stop opening/closing pipeline |
@@ -0,0 +1,27 @@
1
+ # ef-pagination
2
+
3
+ Used to control and navigate through multiple pages
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |--------------|---------------|-----------|---------|-------------------------|
9
+ | `disabled` | `disabled` | `boolean` | false | Set state to disable |
10
+ | `page` | `page` | `string` | "1" | Set current page |
11
+ | `pageSize` | `page-size` | `string` | "10" | Number of item per page |
12
+ | `totalItems` | `total-items` | `string` | "10" | Total items |
13
+
14
+ ## Methods
15
+
16
+ | Method | Type | Description |
17
+ |------------|------------|-------------------------|
18
+ | `first` | `(): void` | Go to the first page |
19
+ | `last` | `(): void` | Go to the last page |
20
+ | `next` | `(): void` | Go to the next page |
21
+ | `previous` | `(): void` | Go to the previous page |
22
+
23
+ ## Events
24
+
25
+ | Event | Description |
26
+ |----------------|-------------------------------------------|
27
+ | `page-changed` | Fired when the `page` property is changed |
@@ -0,0 +1,11 @@
1
+ # ef-panel
2
+
3
+ A container for components.
4
+ It provides a standard background color and padding, depends on theme.
5
+
6
+ ## Properties
7
+
8
+ | Property | Attribute | Type | Default | Description |
9
+ |---------------|---------------|-----------|---------|-------------------------------------|
10
+ | `spacing` | `spacing` | `boolean` | false | Apply default padding from theme |
11
+ | `transparent` | `transparent` | `boolean` | false | Set panel background to transparent |
@@ -49,19 +49,19 @@
49
49
  "name": "value",
50
50
  "description": "Input's value",
51
51
  "type": "string",
52
- "default": "\"\""
52
+ "default": "0"
53
53
  },
54
54
  {
55
55
  "name": "readonly",
56
56
  "description": "Set readonly state",
57
57
  "type": "boolean",
58
- "default": "\"false\""
58
+ "default": "false"
59
59
  },
60
60
  {
61
61
  "name": "disabled",
62
62
  "description": "Set disabled state",
63
63
  "type": "boolean",
64
- "default": "\"false\""
64
+ "default": "false"
65
65
  }
66
66
  ],
67
67
  "properties": [
@@ -117,21 +117,21 @@
117
117
  "attribute": "value",
118
118
  "description": "Input's value",
119
119
  "type": "string",
120
- "default": "\"\""
120
+ "default": "0"
121
121
  },
122
122
  {
123
123
  "name": "readonly",
124
124
  "attribute": "readonly",
125
125
  "description": "Set readonly state",
126
126
  "type": "boolean",
127
- "default": "\"false\""
127
+ "default": "false"
128
128
  },
129
129
  {
130
130
  "name": "disabled",
131
131
  "attribute": "disabled",
132
132
  "description": "Set disabled state",
133
133
  "type": "boolean",
134
- "default": "\"false\""
134
+ "default": "false"
135
135
  }
136
136
  ],
137
137
  "events": [
@@ -0,0 +1,31 @@
1
+ # ef-password-field
2
+
3
+ A form control element for password
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |---------------|---------------|------------------|---------|--------------------------------------------------|
9
+ | `disabled` | `disabled` | `boolean` | false | Set disabled state |
10
+ | `error` | `error` | `boolean` | false | Set state to error |
11
+ | `maxLength` | `maxlength` | `number \| null` | null | Set character maximum limit |
12
+ | `minLength` | `minlength` | `number \| null` | null | Set character minimum limit |
13
+ | `pattern` | `pattern` | `string` | "" | Set regular expression for input validation |
14
+ | `placeholder` | `placeholder` | `string` | "" | Set placeholder text |
15
+ | `readonly` | `readonly` | `boolean` | false | Set readonly state |
16
+ | `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles.<br />Use with advanced composite elements requiring e.g. multi selection in<br />combo-box when parent container handles element states. |
17
+ | `value` | `value` | `string` | 0 | Input's value |
18
+ | `warning` | `warning` | `boolean` | false | Set state to warning |
19
+
20
+ ## Methods
21
+
22
+ | Method | Type | Description |
23
+ |----------|------------|------------------------------|
24
+ | `select` | `(): void` | Select the contents of input |
25
+
26
+ ## Events
27
+
28
+ | Event | Description |
29
+ |-----------------|-------------------------------------|
30
+ | `error-changed` | Dispatched when error state changes |
31
+ | `value-changed` | Dispatched when value changes |
@@ -32,13 +32,13 @@
32
32
  "name": "readonly",
33
33
  "description": "Set readonly state",
34
34
  "type": "boolean",
35
- "default": "\"false\""
35
+ "default": "false"
36
36
  },
37
37
  {
38
38
  "name": "disabled",
39
39
  "description": "Set disabled state",
40
40
  "type": "boolean",
41
- "default": "\"false\""
41
+ "default": "false"
42
42
  }
43
43
  ],
44
44
  "properties": [
@@ -74,14 +74,14 @@
74
74
  "attribute": "readonly",
75
75
  "description": "Set readonly state",
76
76
  "type": "boolean",
77
- "default": "\"false\""
77
+ "default": "false"
78
78
  },
79
79
  {
80
80
  "name": "disabled",
81
81
  "attribute": "disabled",
82
82
  "description": "Set disabled state",
83
83
  "type": "boolean",
84
- "default": "\"false\""
84
+ "default": "false"
85
85
  }
86
86
  ],
87
87
  "events": [
@@ -0,0 +1,22 @@
1
+ # ef-pill
2
+
3
+ A small button style component
4
+ which is used to show one or multiple selected item.
5
+ It is rarely used in the UI but inside other components to visualize multiple item selection item.
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ |------------|------------|-----------|---------|------------------------------|
11
+ | `active` | `active` | `boolean` | false | Add to pill for active state |
12
+ | `clears` | `clears` | `boolean` | false | Set pill to clearable |
13
+ | `disabled` | `disabled` | `boolean` | false | Set disabled state |
14
+ | `readonly` | `readonly` | `boolean` | false | Set readonly state |
15
+ | `toggles` | `toggles` | `boolean` | false | Set pill to toggle mode |
16
+ | `value` | `value` | `string` | | Value of pill |
17
+
18
+ ## Events
19
+
20
+ | Event | Description |
21
+ |---------|----------------------------------------------|
22
+ | `clear` | Dispatched when click on cross button occurs |
@@ -0,0 +1,18 @@
1
+ # ef-progress-bar
2
+
3
+ Data visualisation component,
4
+ showing a simple percentage bar.
5
+
6
+ ## Properties
7
+
8
+ | Property | Attribute | Type | Default | Description |
9
+ |-------------|-------------|----------|---------|--------------------------------------------------|
10
+ | `alignment` | `alignment` | `string` | "left" | The alignment of the bar.<br />The bar can either start from the `left` or `right`. |
11
+ | `label` | `label` | `string` | "" | The current label to be displayed next to the bar.<br />This is affixed to the end of the bar, so make sure to cater for this. |
12
+ | `value` | `value` | `string` | "100" | The current value of the bar.<br />This can range from `0-100` and<br />will be represented as a percentage bar |
13
+
14
+ ## Slots
15
+
16
+ | Name | Description |
17
+ |---------|--------------------------------------------------|
18
+ | `label` | Overrides the label property and places custom content. Useful for modifying the color, or, adding icons. |