@refinitiv-ui/elements 5.6.0 → 5.8.2-alpha.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 (185) hide show
  1. package/CHANGELOG.md +51 -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 +24 -4
  5. package/lib/autosuggest/custom-elements.md +54 -0
  6. package/lib/autosuggest/index.d.ts +4 -0
  7. package/lib/autosuggest/index.js +4 -0
  8. package/lib/button/custom-elements.json +2 -2
  9. package/lib/button/custom-elements.md +23 -0
  10. package/lib/button-bar/custom-elements.md +9 -0
  11. package/lib/calendar/custom-elements.json +8 -6
  12. package/lib/calendar/custom-elements.md +35 -0
  13. package/lib/calendar/index.d.ts +2 -0
  14. package/lib/calendar/index.js +2 -0
  15. package/lib/canvas/custom-elements.json +7 -5
  16. package/lib/canvas/custom-elements.md +27 -0
  17. package/lib/canvas/index.d.ts +1 -0
  18. package/lib/canvas/index.js +1 -0
  19. package/lib/card/custom-elements.json +3 -1
  20. package/lib/card/custom-elements.md +24 -0
  21. package/lib/card/index.d.ts +2 -0
  22. package/lib/card/index.js +2 -0
  23. package/lib/chart/custom-elements.json +1 -1
  24. package/lib/chart/custom-elements.md +16 -0
  25. package/lib/checkbox/custom-elements.json +12 -8
  26. package/lib/checkbox/custom-elements.md +18 -0
  27. package/lib/checkbox/index.d.ts +3 -1
  28. package/lib/checkbox/index.js +2 -0
  29. package/lib/clock/custom-elements.json +8 -4
  30. package/lib/clock/custom-elements.md +28 -0
  31. package/lib/clock/index.d.ts +2 -0
  32. package/lib/clock/index.js +2 -0
  33. package/lib/clock/themes/halo/dark/index.js +1 -1
  34. package/lib/clock/themes/halo/light/index.js +1 -1
  35. package/lib/clock/themes/solar/charcoal/index.js +1 -1
  36. package/lib/clock/themes/solar/pearl/index.js +1 -1
  37. package/lib/collapse/custom-elements.md +27 -0
  38. package/lib/color-dialog/custom-elements.json +29 -16
  39. package/lib/color-dialog/custom-elements.md +39 -0
  40. package/lib/color-dialog/index.d.ts +8 -8
  41. package/lib/color-dialog/index.js +8 -8
  42. package/lib/combo-box/custom-elements.json +28 -16
  43. package/lib/combo-box/custom-elements.md +35 -0
  44. package/lib/combo-box/index.d.ts +10 -2
  45. package/lib/combo-box/index.js +10 -1
  46. package/lib/combo-box/themes/halo/dark/index.js +1 -1
  47. package/lib/combo-box/themes/halo/light/index.js +1 -1
  48. package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
  49. package/lib/combo-box/themes/solar/pearl/index.js +1 -1
  50. package/lib/counter/custom-elements.json +8 -4
  51. package/lib/counter/custom-elements.md +11 -0
  52. package/lib/counter/index.d.ts +2 -0
  53. package/lib/counter/index.js +2 -0
  54. package/lib/datetime-picker/custom-elements.json +52 -23
  55. package/lib/datetime-picker/custom-elements.md +57 -0
  56. package/lib/datetime-picker/index.d.ts +15 -4
  57. package/lib/datetime-picker/index.js +15 -4
  58. package/lib/dialog/custom-elements.json +34 -12
  59. package/lib/dialog/custom-elements.md +47 -0
  60. package/lib/dialog/index.d.ts +7 -10
  61. package/lib/dialog/index.js +7 -10
  62. package/lib/email-field/custom-elements.json +81 -94
  63. package/lib/email-field/custom-elements.md +37 -0
  64. package/lib/email-field/index.d.ts +43 -115
  65. package/lib/email-field/index.js +44 -244
  66. package/lib/flag/custom-elements.md +10 -0
  67. package/lib/flag/index.d.ts +2 -0
  68. package/lib/flag/index.js +2 -0
  69. package/lib/header/custom-elements.md +18 -0
  70. package/lib/heatmap/custom-elements.md +26 -0
  71. package/lib/icon/custom-elements.md +8 -0
  72. package/lib/icon/index.d.ts +2 -0
  73. package/lib/icon/index.js +2 -0
  74. package/lib/interactive-chart/custom-elements.json +6 -10
  75. package/lib/interactive-chart/custom-elements.md +31 -0
  76. package/lib/interactive-chart/index.d.ts +5 -2
  77. package/lib/interactive-chart/index.js +5 -2
  78. package/lib/item/custom-elements.json +4 -4
  79. package/lib/item/custom-elements.md +29 -0
  80. package/lib/item/index.d.ts +11 -2
  81. package/lib/item/index.js +25 -4
  82. package/lib/label/custom-elements.md +11 -0
  83. package/lib/layout/custom-elements.md +26 -0
  84. package/lib/led-gauge/custom-elements.json +4 -4
  85. package/lib/led-gauge/custom-elements.md +17 -0
  86. package/lib/led-gauge/index.d.ts +1 -0
  87. package/lib/led-gauge/index.js +1 -0
  88. package/lib/list/custom-elements.json +18 -5
  89. package/lib/list/custom-elements.md +32 -0
  90. package/lib/list/helpers/list-renderer.js +2 -0
  91. package/lib/list/index.d.ts +19 -2
  92. package/lib/list/index.js +34 -1
  93. package/lib/loader/custom-elements.md +5 -0
  94. package/lib/multi-input/custom-elements.json +7 -6
  95. package/lib/multi-input/custom-elements.md +43 -0
  96. package/lib/multi-input/index.d.ts +4 -0
  97. package/lib/multi-input/index.js +4 -0
  98. package/lib/notification/custom-elements.md +26 -0
  99. package/lib/number-field/custom-elements.json +99 -54
  100. package/lib/number-field/custom-elements.md +42 -0
  101. package/lib/number-field/index.d.ts +92 -47
  102. package/lib/number-field/index.js +113 -80
  103. package/lib/overlay/custom-elements.json +26 -13
  104. package/lib/overlay/custom-elements.md +54 -0
  105. package/lib/overlay/elements/overlay.d.ts +5 -0
  106. package/lib/overlay-menu/custom-elements.json +70 -20
  107. package/lib/overlay-menu/custom-elements.md +44 -0
  108. package/lib/overlay-menu/index.d.ts +13 -11
  109. package/lib/overlay-menu/index.js +13 -11
  110. package/lib/pagination/custom-elements.md +27 -0
  111. package/lib/panel/custom-elements.md +11 -0
  112. package/lib/password-field/custom-elements.json +62 -67
  113. package/lib/password-field/custom-elements.md +39 -0
  114. package/lib/password-field/index.d.ts +42 -94
  115. package/lib/password-field/index.js +48 -194
  116. package/lib/pill/custom-elements.json +8 -6
  117. package/lib/pill/custom-elements.md +22 -0
  118. package/lib/pill/index.d.ts +1 -1
  119. package/lib/pill/index.js +1 -1
  120. package/lib/progress-bar/custom-elements.md +18 -0
  121. package/lib/radio-button/custom-elements.json +8 -6
  122. package/lib/radio-button/custom-elements.md +19 -0
  123. package/lib/radio-button/index.d.ts +6 -5
  124. package/lib/radio-button/index.js +5 -4
  125. package/lib/rating/custom-elements.md +17 -0
  126. package/lib/search-field/custom-elements.json +70 -74
  127. package/lib/search-field/custom-elements.md +41 -0
  128. package/lib/search-field/index.d.ts +43 -100
  129. package/lib/search-field/index.js +46 -215
  130. package/lib/select/custom-elements.json +5 -4
  131. package/lib/select/custom-elements.md +24 -0
  132. package/lib/select/index.d.ts +11 -3
  133. package/lib/select/index.js +65 -26
  134. package/lib/sidebar-layout/custom-elements.json +2 -6
  135. package/lib/sidebar-layout/custom-elements.md +21 -0
  136. package/lib/sidebar-layout/index.d.ts +2 -1
  137. package/lib/slider/custom-elements.json +4 -4
  138. package/lib/slider/custom-elements.md +28 -0
  139. package/lib/slider/index.d.ts +1 -1
  140. package/lib/slider/index.js +1 -1
  141. package/lib/sparkline/custom-elements.json +4 -4
  142. package/lib/sparkline/custom-elements.md +16 -0
  143. package/lib/sparkline/index.d.ts +3 -1
  144. package/lib/sparkline/index.js +2 -0
  145. package/lib/swing-gauge/custom-elements.json +5 -3
  146. package/lib/swing-gauge/custom-elements.md +17 -0
  147. package/lib/swing-gauge/index.d.ts +3 -1
  148. package/lib/swing-gauge/index.js +3 -1
  149. package/lib/tab/custom-elements.json +2 -2
  150. package/lib/tab/custom-elements.md +22 -0
  151. package/lib/tab-bar/custom-elements.md +11 -0
  152. package/lib/text-field/custom-elements.json +78 -89
  153. package/lib/text-field/custom-elements.md +35 -0
  154. package/lib/text-field/index.d.ts +50 -92
  155. package/lib/text-field/index.js +81 -230
  156. package/lib/time-picker/custom-elements.json +4 -4
  157. package/lib/time-picker/custom-elements.md +28 -0
  158. package/lib/time-picker/index.d.ts +3 -0
  159. package/lib/time-picker/index.js +3 -0
  160. package/lib/toggle/custom-elements.json +8 -6
  161. package/lib/toggle/custom-elements.md +19 -0
  162. package/lib/toggle/index.d.ts +2 -1
  163. package/lib/toggle/index.js +1 -0
  164. package/lib/tooltip/custom-elements.md +14 -0
  165. package/lib/tornado-chart/custom-elements.md +18 -0
  166. package/lib/tree/custom-elements.json +4 -3
  167. package/lib/tree/custom-elements.md +32 -0
  168. package/lib/tree/elements/tree.d.ts +1 -0
  169. package/lib/tree/elements/tree.js +1 -0
  170. package/lib/tree/managers/tree-manager.d.ts +20 -2
  171. package/lib/tree/managers/tree-manager.js +55 -28
  172. package/lib/tree/themes/halo/dark/index.js +1 -1
  173. package/lib/tree/themes/halo/light/index.js +1 -1
  174. package/lib/tree/themes/solar/charcoal/index.js +1 -1
  175. package/lib/tree/themes/solar/pearl/index.js +1 -1
  176. package/lib/tree-select/custom-elements.json +10 -6
  177. package/lib/tree-select/custom-elements.md +26 -0
  178. package/lib/tree-select/index.d.ts +5 -3
  179. package/lib/tree-select/index.js +3 -2
  180. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  181. package/lib/tree-select/themes/halo/light/index.js +1 -1
  182. package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
  183. package/lib/tree-select/themes/solar/pearl/index.js +1 -1
  184. package/lib/version.js +1 -1
  185. package/package.json +293 -12
package/CHANGELOG.md CHANGED
@@ -3,6 +3,57 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.8.2-alpha.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.8.1...@refinitiv-ui/elements@5.8.2-alpha.0) (2021-12-13)
7
+
8
+ **Note:** Version bump only for package @refinitiv-ui/elements
9
+
10
+
11
+
12
+
13
+
14
+ ## [5.8.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.8.0...@refinitiv-ui/elements@5.8.1) (2021-12-07)
15
+
16
+ **Note:** Version bump only for package @refinitiv-ui/elements
17
+
18
+
19
+
20
+
21
+
22
+ # [5.8.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.7.0...@refinitiv-ui/elements@5.8.0) (2021-12-03)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * change default role to more generic type for better extendibility ([#100](https://github.com/Refinitiv/refinitiv-ui/issues/100)) ([fe999dc](https://github.com/Refinitiv/refinitiv-ui/commit/fe999dc66b5f42581a37329ced697ae6ac2dc929))
28
+ * **combo-box:** fix arrow icon not show in Solar when disabled ([55c1008](https://github.com/Refinitiv/refinitiv-ui/commit/55c1008b7b63f915a7575059c6539e63a757e389))
29
+ * **combo-box:** import counter instead of pill ([6410c03](https://github.com/Refinitiv/refinitiv-ui/commit/6410c03dd12077f25347dddb249b6a6700186abc))
30
+
31
+
32
+ ### Features
33
+
34
+ * **list:** improve screen reader ([0bc3a8c](https://github.com/Refinitiv/refinitiv-ui/commit/0bc3a8c9c4051200cd1a5c8ed655d1d3ebbd9021))
35
+ * **select:** improve screen reader support ([#80](https://github.com/Refinitiv/refinitiv-ui/issues/80)) ([a43fbcd](https://github.com/Refinitiv/refinitiv-ui/commit/a43fbcd4b23b2f508ddc94b8007913f66da1ae89))
36
+
37
+
38
+
39
+
40
+
41
+ # [5.7.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.6.0...@refinitiv-ui/elements@5.7.0) (2021-11-22)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * **tree:** correctly update dependant checked states ([#82](https://github.com/Refinitiv/refinitiv-ui/issues/82)) ([fdb7018](https://github.com/Refinitiv/refinitiv-ui/commit/fdb7018f9446f933f428448ada60f4a8cacc1acf))
47
+
48
+
49
+ ### Features
50
+
51
+ * **item:** improve screen reader support ([#74](https://github.com/Refinitiv/refinitiv-ui/issues/74)) ([b14b950](https://github.com/Refinitiv/refinitiv-ui/commit/b14b950897cb96cdc957e12d93b510cc4361c4f3))
52
+
53
+
54
+
55
+
56
+
6
57
  # [5.6.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.5.0...@refinitiv-ui/elements@5.6.0) (2021-11-08)
7
58
 
8
59
 
@@ -0,0 +1,18 @@
1
+ # ef-accordion
2
+
3
+ Used to display a group of `Collapse` control.
4
+ Only one item will be able to expand by default but you can customize its behavior.
5
+
6
+ ## Properties
7
+
8
+ | Property | Attribute | Type | Default | Description |
9
+ |------------------------|--------------------------|-----------|---------|--------------------------------------------------|
10
+ | `autoCollapseDisabled` | `auto-collapse-disabled` | `boolean` | false | Allow multiple sections expand at the same time |
11
+ | `spacing` | `spacing` | `boolean` | false | Add spacing to content section in all collapse items |
12
+
13
+ ## Slots
14
+
15
+ | Name | Description |
16
+ |----------------|--------------------------------------------------|
17
+ | `header-left` | Slot to add custom contents to the left side of header e.g. ef-icon, ef-checkbox |
18
+ | `header-right` | Slot to add custom contents to the right side of header e.g. ef-icon, ef-checkbox |
@@ -0,0 +1,22 @@
1
+ # ef-appstate-bar
2
+
3
+ Used to display at the top of application to provide a status or information.
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |-----------|-----------|---------------------------------|---------|--------------------------------------------------|
9
+ | `heading` | `heading` | `string` | "" | Text to display in heading section. |
10
+ | `state` | `state` | `"info" \| "highlight" \| null` | null | (optional) Type of state bar. Supported value are `info`, `highlight`. |
11
+
12
+ ## Events
13
+
14
+ | Event | Description |
15
+ |---------|------------------------------------|
16
+ | `clear` | fired when clear button is clicked |
17
+
18
+ ## Slots
19
+
20
+ | Name | Description |
21
+ |---------|-------------------------------------------|
22
+ | `right` | place custom content on the right of bar. |
@@ -26,7 +26,7 @@
26
26
  "name": "more-search-text",
27
27
  "description": "Custom text for More Search",
28
28
  "type": "string",
29
- "default": "\"defaultMoreSearchText\""
29
+ "default": "\"More results for {0}\""
30
30
  },
31
31
  {
32
32
  "name": "loading",
@@ -50,10 +50,20 @@
50
50
  "name": "opened",
51
51
  "description": "Auto suggest popup's open state",
52
52
  "type": "boolean",
53
- "default": "\"false\""
53
+ "default": "false"
54
54
  }
55
55
  ],
56
56
  "properties": [
57
+ {
58
+ "name": "defaultDebounceRate (readonly)",
59
+ "type": "100",
60
+ "default": "100"
61
+ },
62
+ {
63
+ "name": "defaultMoreSearchText (readonly)",
64
+ "type": "\"More results for {0}\"",
65
+ "default": "\"More results for {0}\""
66
+ },
57
67
  {
58
68
  "name": "attach",
59
69
  "attribute": "attach",
@@ -79,7 +89,7 @@
79
89
  "attribute": "more-search-text",
80
90
  "description": "Custom text for More Search",
81
91
  "type": "string",
82
- "default": "\"defaultMoreSearchText\""
92
+ "default": "\"More results for {0}\""
83
93
  },
84
94
  {
85
95
  "name": "loading",
@@ -130,7 +140,7 @@
130
140
  "attribute": "opened",
131
141
  "description": "Auto suggest popup's open state",
132
142
  "type": "boolean",
133
- "default": "\"false\""
143
+ "default": "false"
134
144
  }
135
145
  ],
136
146
  "events": [
@@ -167,6 +177,16 @@
167
177
  "description": "Fired when suggestions changed"
168
178
  }
169
179
  ],
180
+ "slots": [
181
+ {
182
+ "name": "header",
183
+ "description": "Slot to add custom contents at the top of autosuggest popup"
184
+ },
185
+ {
186
+ "name": "footer",
187
+ "description": "Slot to add custom contents at the bottom of autosuggest popup"
188
+ }
189
+ ],
170
190
  "methods": [
171
191
  {
172
192
  "name": "onInputValueChange",
@@ -0,0 +1,54 @@
1
+ # ef-autosuggest
2
+
3
+ Shows suggestions based on users' query.
4
+ It can be used by attaching to text form control
5
+ such as TextField, Multi Input, etc.
6
+ Autosuggest supports various use cases such as
7
+ custom rendering, pagination, asynchronous data request, etc.
8
+
9
+ ## Properties
10
+
11
+ | Property | Attribute | Type | Default | Description |
12
+ |------------------|--------------------|----------------------------------------------|------------------------|--------------------------------------------------|
13
+ | `attach` | `attach` | `AutosuggestTargetElement \| string \| null` | null | An HTML Element or CSS selector |
14
+ | `debounceRate` | `debounce-rate` | `number` | "100" | Debounce rate in ms of the filter as a number.<br />Used to throttle the filter rate so as not to trigger unneeded filtering |
15
+ | `highlightable` | | `AutosuggestHighlightable` | "itemHighlightable" | A function that is applied to every suggestion during the render process<br />to say whether the item can be highlighted and selected. Only items that return true are considered.<br />By default the function checks for `item` `highlightable` property. |
16
+ | `htmlRenderer` | `html-renderer` | `boolean` | false | If set to true, the render function is not called. Instead the wrapper element<br />should populate and destroy suggestion elements. Rendering items manually<br />may have performance benefits in frameworks that use virtual DOM (such as `Vue`, `React`, `hyperHTML` and others) |
17
+ | `loading` | `loading` | `boolean` | false | If set to true show loading mask |
18
+ | `moreResults` | `more-results` | `boolean` | false | If set to true display 'Has more results' item |
19
+ | `moreSearchText` | `more-search-text` | `string` | "More results for {0}" | Custom text for More Search |
20
+ | `opened` | `opened` | `boolean` | false | Auto suggest popup's open state |
21
+ | `query` | | `AutosuggestQuery \| null` | null | An object that represents a query from attach target |
22
+ | `renderer` | | `AutosuggestRenderer` | "itemRenderer" | A renderer applied to suggestion.<br />By default a render maps data to item attributes |
23
+ | `requestOnFocus` | `request-on-focus` | `boolean` | false | Request suggestions when attach target is focused |
24
+ | `suggestions` | | `AutosuggestItem[]` | [] | A list of suggestion items |
25
+
26
+ ## Methods
27
+
28
+ | Method | Type | Description |
29
+ |----------------------|----------------------|--------------------------------------------------|
30
+ | `onInputBlur` | `(event: any): void` | Run when input has lost focus<br /><br />**event**: by default `blur` event is listened |
31
+ | `onInputFocus` | `(event: any): void` | Run when input received focus<br /><br />**event**: by default `focus` event is listened |
32
+ | `onInputKeyDown` | `(event: any): void` | Run when input key down event has happened<br /><br />**event**: by default `keydown` event is listened |
33
+ | `onInputValueChange` | `(event: any): void` | Run when attach target value changes.<br /><br />**event**: by default `value-changed` event is listened |
34
+ | `refit` | `(): void` | Set the width |
35
+
36
+ ## Events
37
+
38
+ | Event | Description |
39
+ |-------------------------------|--------------------------------------------------|
40
+ | `add-attach-target-events` | Fired when attach has been set |
41
+ | `item-highlight` | Fired when an item gets highlighted or highlight is removed |
42
+ | `item-select` | Fired when an item gets selected |
43
+ | `remove-attach-target-events` | Fired when attach has been removed |
44
+ | `suggestions-changed` | Fired when suggestions changed |
45
+ | `suggestions-clear-requested` | Fired when auto suggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [] |
46
+ | `suggestions-fetch-requested` | Fired when auto suggest requests the data |
47
+ | `suggestions-query` | Fired when input value has changed and the query must be set |
48
+
49
+ ## Slots
50
+
51
+ | Name | Description |
52
+ |----------|--------------------------------------------------|
53
+ | `footer` | Slot to add custom contents at the bottom of autosuggest popup |
54
+ | `header` | Slot to add custom contents at the top of autosuggest popup |
@@ -24,6 +24,9 @@ export { queryWordSelect, itemRenderer, escapeRegExp, itemHighlightable, updateE
24
24
  *
25
25
  * @attr {boolean} opened - Set to open auto suggest popup
26
26
  * @prop {boolean} [opened=false] - Auto suggest popup's open state
27
+ *
28
+ * @slot header - Slot to add custom contents at the top of autosuggest popup
29
+ * @slot footer - Slot to add custom contents at the bottom of autosuggest popup
27
30
  */
28
31
  export declare class Autosuggest extends Overlay {
29
32
  /**
@@ -83,6 +86,7 @@ export declare class Autosuggest extends Overlay {
83
86
  moreResults: boolean;
84
87
  /**
85
88
  * Custom text for More Search
89
+ * @default More results for {0}
86
90
  */
87
91
  moreSearchText: string;
88
92
  /**
@@ -31,6 +31,9 @@ export { queryWordSelect, itemRenderer, escapeRegExp, itemHighlightable, updateE
31
31
  *
32
32
  * @attr {boolean} opened - Set to open auto suggest popup
33
33
  * @prop {boolean} [opened=false] - Auto suggest popup's open state
34
+ *
35
+ * @slot header - Slot to add custom contents at the top of autosuggest popup
36
+ * @slot footer - Slot to add custom contents at the bottom of autosuggest popup
34
37
  */
35
38
  let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
36
39
  /**
@@ -53,6 +56,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
53
56
  this.moreResults = false;
54
57
  /**
55
58
  * Custom text for More Search
59
+ * @default More results for {0}
56
60
  */
57
61
  this.moreSearchText = Autosuggest_1.defaultMoreSearchText;
58
62
  /**
@@ -49,7 +49,7 @@
49
49
  "name": "disabled",
50
50
  "description": "Set state to disabled",
51
51
  "type": "boolean",
52
- "default": "\"false\""
52
+ "default": "false"
53
53
  }
54
54
  ],
55
55
  "properties": [
@@ -105,7 +105,7 @@
105
105
  "attribute": "disabled",
106
106
  "description": "Set state to disabled",
107
107
  "type": "boolean",
108
- "default": "\"false\""
108
+ "default": "false"
109
109
  }
110
110
  ],
111
111
  "events": [
@@ -0,0 +1,23 @@
1
+ # ef-button
2
+
3
+ Use button for actions in forms, dialogs,
4
+ and more with support for different states and styles.
5
+
6
+ ## Properties
7
+
8
+ | Property | Attribute | Type | Default | Description |
9
+ |---------------|---------------|-----------------------|---------|--------------------------------------------------|
10
+ | `active` | `active` | `boolean` | false | An active or inactive state, can only be used with toggles property/attribute |
11
+ | `cta` | `cta` | `boolean` | false | Set state to call-to-action |
12
+ | `disabled` | `disabled` | `boolean` | false | Set state to disabled |
13
+ | `hoverIcon` | `hover-icon` | `string \| null` | null | Specify icon to display when hovering. Value can be icon name |
14
+ | `icon` | `icon` | `string \| null` | null | Specify icon to display in button. Value can be icon name |
15
+ | `textpos` | `textpos` | `"before" \| "after"` | "after" | Customises text alignment when specified alongside `icon` property<br />Value can be `before` or `after` |
16
+ | `toggles` | `toggles` | `boolean` | false | Enable or disable ability to be toggled |
17
+ | `transparent` | `transparent` | `boolean` | false | Removes background when specified alongside `icon` property |
18
+
19
+ ## Events
20
+
21
+ | Event | Description |
22
+ |------------------|--------------------------------------------------|
23
+ | `active-changed` | Dispatched on changing `active` property state by taping on button when property `toggles` is true. |
@@ -0,0 +1,9 @@
1
+ # ef-button-bar
2
+
3
+ Used to display multiple buttons to create a list of commands bar.
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |-----------|-----------|-----------|---------|--------------------------------------------------|
9
+ | `managed` | `managed` | `boolean` | false | Manages user interaction, only allowing one toggle button to be active at any one time. |
@@ -61,7 +61,8 @@
61
61
  {
62
62
  "name": "values",
63
63
  "description": "Set multiple selected values",
64
- "type": "string[]"
64
+ "type": "string[]",
65
+ "default": "[]"
65
66
  },
66
67
  {
67
68
  "name": "fill-cells",
@@ -73,13 +74,13 @@
73
74
  "name": "readonly",
74
75
  "description": "Set readonly state",
75
76
  "type": "boolean",
76
- "default": "\"false\""
77
+ "default": "false"
77
78
  },
78
79
  {
79
80
  "name": "disabled",
80
81
  "description": "Set disabled state",
81
82
  "type": "boolean",
82
- "default": "\"false\""
83
+ "default": "false"
83
84
  }
84
85
  ],
85
86
  "properties": [
@@ -154,7 +155,8 @@
154
155
  "name": "values",
155
156
  "attribute": "values",
156
157
  "description": "Set multiple selected values",
157
- "type": "string[]"
158
+ "type": "string[]",
159
+ "default": "[]"
158
160
  },
159
161
  {
160
162
  "name": "fillCells",
@@ -168,14 +170,14 @@
168
170
  "attribute": "readonly",
169
171
  "description": "Set readonly state",
170
172
  "type": "boolean",
171
- "default": "\"false\""
173
+ "default": "false"
172
174
  },
173
175
  {
174
176
  "name": "disabled",
175
177
  "attribute": "disabled",
176
178
  "description": "Set disabled state",
177
179
  "type": "boolean",
178
- "default": "\"false\""
180
+ "default": "false"
179
181
  }
180
182
  ],
181
183
  "events": [
@@ -0,0 +1,35 @@
1
+ # ef-calendar
2
+
3
+ Standard calendar element
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |------------------|---------------------|--------------------------|---------|--------------------------------------------------|
9
+ | `disabled` | `disabled` | `boolean` | false | Set disabled state |
10
+ | `fillCells` | `fill-cells` | `boolean` | false | Fill head and tail cell dates |
11
+ | `filter` | | `CalendarFilter \| null` | null | Custom filter, used for enabling/disabling certain dates |
12
+ | `firstDayOfWeek` | `first-day-of-week` | `number \| null` | null | Set the first day of the week.<br />0 - for Sunday, 6 - for Saturday |
13
+ | `max` | `max` | `string` | "" | Set maximum date |
14
+ | `min` | `min` | `string` | "" | Set minimum date |
15
+ | `multiple` | `multiple` | `boolean` | false | Set to switch to multiple select mode |
16
+ | `range` | `range` | `boolean` | false | Set to switch to range select mode |
17
+ | `readonly` | `readonly` | `boolean` | false | Set readonly state |
18
+ | `value` | `value` | `string` | "" | Current date time value |
19
+ | `values` | `values` | `string[]` | [] | Set multiple selected values |
20
+ | `view` | `view` | `string` | "" | Current calendar view date |
21
+ | `weekdaysOnly` | `weekdays-only` | `boolean` | false | Only enable weekdays |
22
+ | `weekendsOnly` | `weekends-only` | `boolean` | false | Only enable weekends |
23
+
24
+ ## Events
25
+
26
+ | Event | Description |
27
+ |-----------------|---------------------------------|
28
+ | `value-changed` | Fired when the `value` changes. |
29
+ | `view-changed` | Fired when the `view` changes. |
30
+
31
+ ## Slots
32
+
33
+ | Name | Description |
34
+ |----------|--------------------------------------------------|
35
+ | `footer` | Adds slotted content into the footer of the calendar control |
@@ -78,6 +78,7 @@ export declare class Calendar extends ControlElement implements MultiValue {
78
78
  * 0 - for Sunday, 6 - for Saturday
79
79
  * @param firstDayOfWeek The first day of the week
80
80
  * @type {number | null}
81
+ * @default null
81
82
  */
82
83
  set firstDayOfWeek(firstDayOfWeek: number);
83
84
  get firstDayOfWeek(): number;
@@ -101,6 +102,7 @@ export declare class Calendar extends ControlElement implements MultiValue {
101
102
  * Set multiple selected values
102
103
  * @param values Values to set
103
104
  * @type {string[]}
105
+ * @default []
104
106
  */
105
107
  set values(values: string[]);
106
108
  get values(): string[];
@@ -199,6 +199,7 @@ let Calendar = class Calendar extends ControlElement {
199
199
  * 0 - for Sunday, 6 - for Saturday
200
200
  * @param firstDayOfWeek The first day of the week
201
201
  * @type {number | null}
202
+ * @default null
202
203
  */
203
204
  set firstDayOfWeek(firstDayOfWeek) {
204
205
  firstDayOfWeek %= 7;
@@ -226,6 +227,7 @@ let Calendar = class Calendar extends ControlElement {
226
227
  * Set multiple selected values
227
228
  * @param values Values to set
228
229
  * @type {string[]}
230
+ * @default []
229
231
  */
230
232
  set values(values) {
231
233
  const oldValues = this._values;
@@ -8,7 +8,8 @@
8
8
  {
9
9
  "name": "autoloop",
10
10
  "description": "Starts an automatic animation loop.\nEnabling the frame event.",
11
- "type": "boolean"
11
+ "type": "boolean",
12
+ "default": "false"
12
13
  }
13
14
  ],
14
15
  "properties": [
@@ -16,20 +17,21 @@
16
17
  "name": "autoloop",
17
18
  "attribute": "autoloop",
18
19
  "description": "Starts an automatic animation loop.\nEnabling the frame event.",
19
- "type": "boolean"
20
+ "type": "boolean",
21
+ "default": "false"
20
22
  },
21
23
  {
22
- "name": "canvas",
24
+ "name": "canvas (readonly)",
23
25
  "description": "Html canvas element",
24
26
  "type": "HTMLCanvasElement"
25
27
  },
26
28
  {
27
- "name": "ctx",
29
+ "name": "ctx (readonly)",
28
30
  "description": "Alias of context",
29
31
  "type": "CanvasRenderingContext2D | null"
30
32
  },
31
33
  {
32
- "name": "context",
34
+ "name": "context (readonly)",
33
35
  "description": "The 2 dimensional context of the canvas, used for drawing",
34
36
  "type": "CanvasRenderingContext2D | null"
35
37
  },
@@ -0,0 +1,27 @@
1
+ # ef-canvas
2
+
3
+ A Component uses to draw graphics on a web page,
4
+ it works similarly to the normal HTML5 Canvas element.
5
+
6
+ ## Properties
7
+
8
+ | Property | Attribute | Type | Default | Description |
9
+ |----------------------|------------|------------------------------------|---------|--------------------------------------------------|
10
+ | `autoloop` | `autoloop` | `boolean` | false | Starts an automatic animation loop.<br />Enabling the frame event. |
11
+ | `canvas (readonly)` | | `HTMLCanvasElement` | | Html canvas element |
12
+ | `context (readonly)` | | `CanvasRenderingContext2D \| null` | | The 2 dimensional context of the canvas, used for drawing |
13
+ | `ctx (readonly)` | | `CanvasRenderingContext2D \| null` | | Alias of context |
14
+ | `height` | | `number` | 0 | Height of canvas |
15
+ | `width` | | `number` | 0 | Width of canvas |
16
+
17
+ ## Methods
18
+
19
+ | Method | Type | Description |
20
+ |--------------|--------------------------|--------------------------------------------------|
21
+ | `getContext` | `(mode: string): string` | Return context of canvas,<br />support only 2D mode<br /><br />**mode**: mode of canvas's context |
22
+
23
+ ## Events
24
+
25
+ | Event | Description |
26
+ |---------|--------------------------------------------------|
27
+ | `frame` | dispatched when next Frame event occurs when autoloop is set to true |
@@ -26,6 +26,7 @@ export declare class Canvas extends ResponsiveElement {
26
26
  /**
27
27
  * Starts an automatic animation loop.
28
28
  * Enabling the frame event.
29
+ * @default false
29
30
  */
30
31
  get autoloop(): boolean;
31
32
  set autoloop(val: boolean);
@@ -48,6 +48,7 @@ let Canvas = class Canvas extends ResponsiveElement {
48
48
  /**
49
49
  * Starts an automatic animation loop.
50
50
  * Enabling the frame event.
51
+ * @default false
51
52
  */
52
53
  get autoloop() {
53
54
  return this._autoloop;
@@ -35,7 +35,9 @@
35
35
  },
36
36
  {
37
37
  "name": "config",
38
- "description": "Set card configurations"
38
+ "description": "Set card configurations",
39
+ "type": "CardConfig",
40
+ "default": "{}"
39
41
  }
40
42
  ],
41
43
  "events": [
@@ -0,0 +1,24 @@
1
+ # ef-card
2
+
3
+ A card frame component.
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |----------|-----------|--------------|---------|-------------------------|
9
+ | `config` | | `CardConfig` | {} | Set card configurations |
10
+ | `footer` | `footer` | `string` | "" | Set text on the footer |
11
+ | `header` | `header` | `string` | "" | Set text on the header |
12
+
13
+ ## Events
14
+
15
+ | Event | Description |
16
+ |----------------|-----------------------------------|
17
+ | `item-trigger` | Fired when card menu is selected. |
18
+
19
+ ## Slots
20
+
21
+ | Name | Description |
22
+ |----------|--------------------------------------------------|
23
+ | `footer` | Adds slotted content into the footer of the card. |
24
+ | `header` | Adds slotted content into the header of the card. |
@@ -37,6 +37,8 @@ export declare class Card extends BasicElement {
37
37
  footer: string;
38
38
  /**
39
39
  * Set card configurations
40
+ * @type {CardConfig}
41
+ * @default {}
40
42
  */
41
43
  get config(): CardConfig;
42
44
  set config(config: CardConfig);
package/lib/card/index.js CHANGED
@@ -71,6 +71,8 @@ let Card = class Card extends BasicElement {
71
71
  }
72
72
  /**
73
73
  * Set card configurations
74
+ * @type {CardConfig}
75
+ * @default {}
74
76
  */
75
77
  get config() {
76
78
  return this._config;
@@ -19,7 +19,7 @@
19
19
  "type": "ChartConfig"
20
20
  },
21
21
  {
22
- "name": "colors",
22
+ "name": "colors (readonly)",
23
23
  "description": "List of available chart colors",
24
24
  "type": "string[]"
25
25
  }
@@ -0,0 +1,16 @@
1
+ # ef-chart
2
+
3
+ Charting component that use ChartJS library
4
+
5
+ ## Properties
6
+
7
+ | Property | Attribute | Type | Default | Description |
8
+ |---------------------|-----------|---------------|---------|--------------------------------------------------|
9
+ | `colors (readonly)` | | `string[]` | | List of available chart colors |
10
+ | `config` | `config` | `ChartConfig` | null | Chart configurations. Same configuration as ChartJS |
11
+
12
+ ## Methods
13
+
14
+ | Method | Type | Description |
15
+ |---------------|--------------------------------------|--------------------------------------------------|
16
+ | `updateChart` | `(config?: ChartUpdateProps=): void` | Update all data, title, scales, legends and re-render the chart based on its config<br /><br />**config**: Additional configuration for control an animation in the update process. |