@limetech/lime-elements 36.1.0-next.13 → 36.1.0-next.15

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 (232) hide show
  1. package/dist/cjs/{checkbox.template-b6c6562c.js → checkbox.template-ac867c17.js} +1 -1
  2. package/dist/cjs/{index-2a28697b.js → index-287e25e0.js} +424 -246
  3. package/dist/cjs/lime-elements.cjs.js +3 -3
  4. package/dist/cjs/limel-badge.cjs.entry.js +2 -1
  5. package/dist/cjs/limel-banner.cjs.entry.js +3 -1
  6. package/dist/cjs/limel-button-group.cjs.entry.js +3 -8
  7. package/dist/cjs/limel-button_2.cjs.entry.js +9 -44
  8. package/dist/cjs/limel-checkbox.cjs.entry.js +10 -26
  9. package/dist/cjs/limel-chip-set.cjs.entry.js +20 -51
  10. package/dist/cjs/limel-circular-progress.cjs.entry.js +3 -14
  11. package/dist/cjs/limel-code-editor.cjs.entry.js +9 -25
  12. package/dist/cjs/limel-collapsible-section.cjs.entry.js +4 -5
  13. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +5 -1
  14. package/dist/cjs/limel-color-picker.cjs.entry.js +8 -2
  15. package/dist/cjs/limel-config.cjs.entry.js +2 -1
  16. package/dist/cjs/limel-date-picker.cjs.entry.js +15 -33
  17. package/dist/cjs/limel-dialog.cjs.entry.js +3 -11
  18. package/dist/cjs/limel-dock-button.cjs.entry.js +5 -15
  19. package/dist/cjs/limel-dock.cjs.entry.js +8 -40
  20. package/dist/cjs/limel-file.cjs.entry.js +9 -23
  21. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +6 -9
  22. package/dist/cjs/limel-flex-container.cjs.entry.js +1 -13
  23. package/dist/cjs/limel-form.cjs.entry.js +6 -8
  24. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-header.cjs.entry.js +5 -1
  26. package/dist/cjs/limel-icon-button.cjs.entry.js +3 -8
  27. package/dist/cjs/limel-icon.cjs.entry.js +4 -1
  28. package/dist/cjs/limel-input-field.cjs.entry.js +26 -59
  29. package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -7
  30. package/dist/cjs/limel-list_2.cjs.entry.js +9 -18
  31. package/dist/cjs/limel-menu-list.cjs.entry.js +6 -13
  32. package/dist/cjs/limel-picker.cjs.entry.js +14 -39
  33. package/dist/cjs/limel-popover_4.cjs.entry.js +13 -12
  34. package/dist/cjs/limel-portal.cjs.entry.js +63 -73
  35. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +4 -13
  36. package/dist/cjs/limel-progress-flow.cjs.entry.js +4 -20
  37. package/dist/cjs/limel-select.cjs.entry.js +7 -24
  38. package/dist/cjs/limel-shortcut.cjs.entry.js +52 -0
  39. package/dist/cjs/limel-slider.cjs.entry.js +12 -33
  40. package/dist/cjs/limel-snackbar.cjs.entry.js +6 -4
  41. package/dist/cjs/limel-spinner.cjs.entry.js +1 -7
  42. package/dist/cjs/limel-split-button.cjs.entry.js +3 -10
  43. package/dist/cjs/limel-switch.cjs.entry.js +6 -19
  44. package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -5
  45. package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -5
  46. package/dist/cjs/limel-table.cjs.entry.js +16 -28
  47. package/dist/cjs/loader.cjs.js +3 -3
  48. package/dist/collection/collection-manifest.json +3 -2
  49. package/dist/collection/components/badge/badge.js +35 -26
  50. package/dist/collection/components/banner/banner.js +88 -83
  51. package/dist/collection/components/button/button.js +148 -160
  52. package/dist/collection/components/button-group/button-group.js +81 -79
  53. package/dist/collection/components/checkbox/checkbox.js +172 -176
  54. package/dist/collection/components/checkbox/checkbox.template.js +15 -23
  55. package/dist/collection/components/chip-set/chip-set.js +486 -528
  56. package/dist/collection/components/circular-progress/circular-progress.css +5 -3
  57. package/dist/collection/components/circular-progress/circular-progress.js +106 -114
  58. package/dist/collection/components/code-editor/code-editor.js +178 -182
  59. package/dist/collection/components/collapsible-section/collapsible-section.js +120 -124
  60. package/dist/collection/components/color-picker/color-picker-palette.js +102 -92
  61. package/dist/collection/components/color-picker/color-picker.js +143 -131
  62. package/dist/collection/components/config/config.js +21 -17
  63. package/dist/collection/components/date-picker/date-picker.js +254 -261
  64. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +147 -142
  65. package/dist/collection/components/date-picker/pickers/QuarterPicker.js +1 -3
  66. package/dist/collection/components/dialog/dialog.js +134 -142
  67. package/dist/collection/components/dock/dock-button/dock-button.js +138 -141
  68. package/dist/collection/components/dock/dock.js +204 -232
  69. package/dist/collection/components/file/file.js +187 -191
  70. package/dist/collection/components/flex-container/flex-container.js +96 -102
  71. package/dist/collection/components/form/form.js +158 -150
  72. package/dist/collection/components/grid/grid.js +11 -7
  73. package/dist/collection/components/header/header.js +89 -87
  74. package/dist/collection/components/icon/icon.js +79 -66
  75. package/dist/collection/components/icon-button/icon-button.js +85 -85
  76. package/dist/collection/components/input-field/input-field.js +482 -523
  77. package/dist/collection/components/linear-progress/linear-progress.js +57 -61
  78. package/dist/collection/components/list/list-renderer.js +3 -12
  79. package/dist/collection/components/list/list.js +167 -164
  80. package/dist/collection/components/list/radio-button/radio-button.template.js +2 -8
  81. package/dist/collection/components/menu/menu.js +183 -195
  82. package/dist/collection/components/menu-list/menu-list-renderer.js +2 -9
  83. package/dist/collection/components/menu-list/menu-list.js +149 -146
  84. package/dist/collection/components/menu-surface/menu-surface.js +69 -64
  85. package/dist/collection/components/picker/picker.js +412 -427
  86. package/dist/collection/components/popover/popover.js +79 -74
  87. package/dist/collection/components/popover-surface/popover-surface.js +34 -25
  88. package/dist/collection/components/portal/portal.js +145 -158
  89. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +90 -94
  90. package/dist/collection/components/progress-flow/progress-flow.js +93 -101
  91. package/dist/collection/components/select/select.js +206 -211
  92. package/dist/collection/components/select/select.template.js +8 -22
  93. package/dist/collection/components/shortcut/shortcut.css +91 -0
  94. package/dist/collection/components/shortcut/shortcut.js +194 -0
  95. package/dist/collection/components/slider/slider.js +233 -264
  96. package/dist/collection/components/snackbar/snackbar.js +175 -169
  97. package/dist/collection/components/spinner/spinner.js +56 -85
  98. package/dist/collection/components/split-button/split-button.js +134 -136
  99. package/dist/collection/components/switch/switch.js +117 -129
  100. package/dist/collection/components/tab-bar/tab-bar.js +87 -92
  101. package/dist/collection/components/tab-panel/tab-panel.js +64 -61
  102. package/dist/collection/components/table/table.js +447 -457
  103. package/dist/collection/components/tooltip/tooltip-content.js +70 -61
  104. package/dist/collection/components/tooltip/tooltip.js +96 -91
  105. package/dist/esm/{checkbox.template-2f1bbc98.js → checkbox.template-fc7fcd06.js} +1 -1
  106. package/dist/esm/{index-11cd0b60.js → index-cdfd351d.js} +424 -246
  107. package/dist/esm/lime-elements.js +3 -3
  108. package/dist/esm/limel-badge.entry.js +2 -1
  109. package/dist/esm/limel-banner.entry.js +3 -1
  110. package/dist/esm/limel-button-group.entry.js +3 -8
  111. package/dist/esm/limel-button_2.entry.js +9 -44
  112. package/dist/esm/limel-checkbox.entry.js +10 -26
  113. package/dist/esm/limel-chip-set.entry.js +20 -51
  114. package/dist/esm/limel-circular-progress.entry.js +3 -14
  115. package/dist/esm/limel-code-editor.entry.js +9 -25
  116. package/dist/esm/limel-collapsible-section.entry.js +4 -5
  117. package/dist/esm/limel-color-picker-palette.entry.js +5 -1
  118. package/dist/esm/limel-color-picker.entry.js +8 -2
  119. package/dist/esm/limel-config.entry.js +2 -1
  120. package/dist/esm/limel-date-picker.entry.js +15 -33
  121. package/dist/esm/limel-dialog.entry.js +3 -11
  122. package/dist/esm/limel-dock-button.entry.js +5 -15
  123. package/dist/esm/limel-dock.entry.js +8 -40
  124. package/dist/esm/limel-file.entry.js +9 -23
  125. package/dist/esm/limel-flatpickr-adapter.entry.js +6 -9
  126. package/dist/esm/limel-flex-container.entry.js +1 -13
  127. package/dist/esm/limel-form.entry.js +6 -8
  128. package/dist/esm/limel-grid.entry.js +1 -1
  129. package/dist/esm/limel-header.entry.js +5 -1
  130. package/dist/esm/limel-icon-button.entry.js +3 -8
  131. package/dist/esm/limel-icon.entry.js +4 -1
  132. package/dist/esm/limel-input-field.entry.js +26 -59
  133. package/dist/esm/limel-linear-progress.entry.js +1 -7
  134. package/dist/esm/limel-list_2.entry.js +9 -18
  135. package/dist/esm/limel-menu-list.entry.js +6 -13
  136. package/dist/esm/limel-picker.entry.js +14 -39
  137. package/dist/esm/limel-popover_4.entry.js +13 -12
  138. package/dist/esm/limel-portal.entry.js +63 -73
  139. package/dist/esm/limel-progress-flow-item.entry.js +4 -13
  140. package/dist/esm/limel-progress-flow.entry.js +4 -20
  141. package/dist/esm/limel-select.entry.js +7 -24
  142. package/dist/esm/limel-shortcut.entry.js +48 -0
  143. package/dist/esm/limel-slider.entry.js +12 -33
  144. package/dist/esm/limel-snackbar.entry.js +6 -4
  145. package/dist/esm/limel-spinner.entry.js +1 -7
  146. package/dist/esm/limel-split-button.entry.js +3 -10
  147. package/dist/esm/limel-switch.entry.js +6 -19
  148. package/dist/esm/limel-tab-bar.entry.js +2 -5
  149. package/dist/esm/limel-tab-panel.entry.js +2 -5
  150. package/dist/esm/limel-table.entry.js +16 -28
  151. package/dist/esm/loader.js +3 -3
  152. package/dist/esm/polyfills/css-shim.js +1 -1
  153. package/dist/lime-elements/lime-elements.esm.js +1 -1
  154. package/dist/lime-elements/p-059e0a64.entry.js +1 -0
  155. package/dist/lime-elements/{p-440454ed.entry.js → p-06f2f6b4.entry.js} +1 -1
  156. package/dist/lime-elements/{p-71efe2ca.entry.js → p-0dbde06f.entry.js} +1 -1
  157. package/dist/lime-elements/p-113d5494.entry.js +1 -0
  158. package/dist/lime-elements/p-12a7453b.entry.js +73 -0
  159. package/dist/lime-elements/p-15c2eb16.entry.js +1 -0
  160. package/dist/lime-elements/{p-c80acfb2.entry.js → p-15ca0d70.entry.js} +4 -4
  161. package/dist/lime-elements/{p-ed65468d.entry.js → p-16eb9071.entry.js} +1 -1
  162. package/dist/lime-elements/{p-1ede893b.js → p-1af8258b.js} +1 -1
  163. package/dist/lime-elements/p-28dffd9e.entry.js +1 -0
  164. package/dist/lime-elements/p-334b5f82.entry.js +37 -0
  165. package/dist/lime-elements/p-36a3b897.entry.js +1 -0
  166. package/dist/lime-elements/{p-6eb07bc3.entry.js → p-4b426b7e.entry.js} +2 -2
  167. package/dist/lime-elements/p-4eda8b67.entry.js +82 -0
  168. package/dist/lime-elements/{p-9af0704c.entry.js → p-4fb4e89b.entry.js} +1 -1
  169. package/dist/lime-elements/{p-a5af84a7.entry.js → p-5338663b.entry.js} +1 -1
  170. package/dist/lime-elements/p-5ce60a32.entry.js +126 -0
  171. package/dist/lime-elements/p-5f13035a.entry.js +1 -0
  172. package/dist/lime-elements/p-600464a9.entry.js +1 -0
  173. package/dist/lime-elements/{p-ab8b6d81.entry.js → p-6534e16a.entry.js} +1 -1
  174. package/dist/lime-elements/p-6a4a5ddd.entry.js +1 -0
  175. package/dist/lime-elements/p-6c38b505.entry.js +1 -0
  176. package/dist/lime-elements/p-744c21f8.entry.js +1 -0
  177. package/dist/lime-elements/p-75d01713.entry.js +1 -0
  178. package/dist/lime-elements/p-768b7cbb.entry.js +1 -0
  179. package/dist/lime-elements/{p-6e7809a6.entry.js → p-82cd7bb6.entry.js} +1 -1
  180. package/dist/lime-elements/p-84a137a7.entry.js +1 -0
  181. package/dist/lime-elements/p-8715eac0.entry.js +1 -0
  182. package/dist/lime-elements/{p-8827628d.entry.js → p-8fb83e83.entry.js} +2 -2
  183. package/dist/lime-elements/p-90961075.entry.js +1 -0
  184. package/dist/lime-elements/p-9984b31c.entry.js +1 -0
  185. package/dist/lime-elements/p-9bd76629.entry.js +59 -0
  186. package/dist/lime-elements/p-9f19e0c1.entry.js +1 -0
  187. package/dist/lime-elements/p-cad7cda1.entry.js +16 -0
  188. package/dist/lime-elements/{p-104c89e8.entry.js → p-cfaa685f.entry.js} +1 -1
  189. package/dist/lime-elements/{p-e7447b76.entry.js → p-d1187867.entry.js} +1 -1
  190. package/dist/lime-elements/{p-aa66620a.entry.js → p-d3ebc657.entry.js} +2 -2
  191. package/dist/lime-elements/p-d4e788e1.js +2 -0
  192. package/dist/lime-elements/p-d512656b.entry.js +1 -0
  193. package/dist/lime-elements/p-d8e5a9ee.entry.js +1 -0
  194. package/dist/lime-elements/{p-d294266e.entry.js → p-dcd2a664.entry.js} +2 -2
  195. package/dist/lime-elements/p-de161bb5.entry.js +1 -0
  196. package/dist/lime-elements/p-e4bca82b.entry.js +1 -0
  197. package/dist/lime-elements/{p-c15da26d.entry.js → p-e7bb664f.entry.js} +1 -1
  198. package/dist/lime-elements/p-ef04b849.entry.js +82 -0
  199. package/dist/loader/package.json +1 -0
  200. package/dist/types/components/picker/picker.d.ts +2 -2
  201. package/dist/types/components/shortcut/shortcut.d.ts +57 -0
  202. package/dist/types/components.d.ts +260 -67
  203. package/dist/types/stencil-public-runtime.d.ts +20 -4
  204. package/package.json +6 -6
  205. package/dist/lime-elements/p-009de50e.entry.js +0 -1
  206. package/dist/lime-elements/p-19f72dab.entry.js +0 -1
  207. package/dist/lime-elements/p-2639edf9.entry.js +0 -73
  208. package/dist/lime-elements/p-3b0c9885.entry.js +0 -37
  209. package/dist/lime-elements/p-3cf4aae0.entry.js +0 -1
  210. package/dist/lime-elements/p-4dc07252.entry.js +0 -82
  211. package/dist/lime-elements/p-53e01330.entry.js +0 -1
  212. package/dist/lime-elements/p-5ef52589.entry.js +0 -1
  213. package/dist/lime-elements/p-629862f4.entry.js +0 -1
  214. package/dist/lime-elements/p-63e25a0a.entry.js +0 -1
  215. package/dist/lime-elements/p-6b1bc80f.entry.js +0 -1
  216. package/dist/lime-elements/p-7c035e6e.entry.js +0 -1
  217. package/dist/lime-elements/p-93cd2268.entry.js +0 -1
  218. package/dist/lime-elements/p-95f275ab.entry.js +0 -1
  219. package/dist/lime-elements/p-995bbd2a.entry.js +0 -1
  220. package/dist/lime-elements/p-a465084b.entry.js +0 -82
  221. package/dist/lime-elements/p-ae0e9730.entry.js +0 -126
  222. package/dist/lime-elements/p-b0046fcd.entry.js +0 -1
  223. package/dist/lime-elements/p-b0e54dc2.entry.js +0 -1
  224. package/dist/lime-elements/p-b4de3380.entry.js +0 -1
  225. package/dist/lime-elements/p-b913df89.entry.js +0 -1
  226. package/dist/lime-elements/p-d74fa89e.entry.js +0 -1
  227. package/dist/lime-elements/p-e9a95b8f.js +0 -1
  228. package/dist/lime-elements/p-eec907ac.entry.js +0 -1
  229. package/dist/lime-elements/p-f0c9dadd.entry.js +0 -1
  230. package/dist/lime-elements/p-f0e872b6.entry.js +0 -16
  231. package/dist/lime-elements/p-f41567a1.entry.js +0 -1
  232. package/dist/lime-elements/p-f8e5b304.entry.js +0 -59
@@ -1,4 +1,4 @@
1
- import { Component, Event, h, Prop } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  import translate from '../../../global/translations';
3
3
  import { DatePicker as DateOnlyPicker } from '../pickers/DatePicker';
4
4
  import { DatetimePicker } from '../pickers/DatetimePicker';
@@ -16,16 +16,13 @@ import { YearPicker } from '../pickers/YearPicker';
16
16
  */
17
17
  export class DatePickerCalendar {
18
18
  constructor() {
19
- /**
20
- * Type of date picker.
21
- */
19
+ this.flatPickrCreated = false;
20
+ this.value = undefined;
22
21
  this.type = 'datetime';
23
- /**
24
- * Defines the localisation for translations and date formatting.
25
- * Property `format` customizes the localized date format.
26
- */
22
+ this.format = undefined;
23
+ this.isOpen = undefined;
24
+ this.inputElement = undefined;
27
25
  this.language = 'en';
28
- this.flatPickrCreated = false;
29
26
  }
30
27
  componentWillLoad() {
31
28
  switch (this.type) {
@@ -108,150 +105,158 @@ export class DatePickerCalendar {
108
105
  }
109
106
  static get is() { return "limel-flatpickr-adapter"; }
110
107
  static get encapsulation() { return "shadow"; }
111
- static get originalStyleUrls() { return {
112
- "$": ["flatpickr-adapter.scss"]
113
- }; }
114
- static get styleUrls() { return {
115
- "$": ["flatpickr-adapter.css"]
116
- }; }
117
- static get properties() { return {
118
- "value": {
119
- "type": "unknown",
120
- "mutable": false,
121
- "complexType": {
122
- "original": "Date",
123
- "resolved": "Date",
124
- "references": {
125
- "Date": {
126
- "location": "global"
108
+ static get originalStyleUrls() {
109
+ return {
110
+ "$": ["flatpickr-adapter.scss"]
111
+ };
112
+ }
113
+ static get styleUrls() {
114
+ return {
115
+ "$": ["flatpickr-adapter.css"]
116
+ };
117
+ }
118
+ static get properties() {
119
+ return {
120
+ "value": {
121
+ "type": "unknown",
122
+ "mutable": false,
123
+ "complexType": {
124
+ "original": "Date",
125
+ "resolved": "Date",
126
+ "references": {
127
+ "Date": {
128
+ "location": "global"
129
+ }
127
130
  }
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": "The value of the field."
128
137
  }
129
138
  },
130
- "required": false,
131
- "optional": false,
132
- "docs": {
133
- "tags": [],
134
- "text": "The value of the field."
135
- }
136
- },
137
- "type": {
138
- "type": "string",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "DateType",
142
- "resolved": "\"date\" | \"datetime\" | \"month\" | \"quarter\" | \"time\" | \"week\" | \"year\"",
143
- "references": {
144
- "DateType": {
145
- "location": "import",
146
- "path": "@limetech/lime-elements"
139
+ "type": {
140
+ "type": "string",
141
+ "mutable": false,
142
+ "complexType": {
143
+ "original": "DateType",
144
+ "resolved": "\"date\" | \"datetime\" | \"month\" | \"quarter\" | \"time\" | \"week\" | \"year\"",
145
+ "references": {
146
+ "DateType": {
147
+ "location": "import",
148
+ "path": "@limetech/lime-elements"
149
+ }
147
150
  }
148
- }
149
- },
150
- "required": false,
151
- "optional": false,
152
- "docs": {
153
- "tags": [],
154
- "text": "Type of date picker."
155
- },
156
- "attribute": "type",
157
- "reflect": false,
158
- "defaultValue": "'datetime'"
159
- },
160
- "format": {
161
- "type": "string",
162
- "mutable": false,
163
- "complexType": {
164
- "original": "string",
165
- "resolved": "string",
166
- "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": false,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "Type of date picker."
157
+ },
158
+ "attribute": "type",
159
+ "reflect": false,
160
+ "defaultValue": "'datetime'"
167
161
  },
168
- "required": false,
169
- "optional": false,
170
- "docs": {
171
- "tags": [],
172
- "text": "Format to display the selected date in."
162
+ "format": {
163
+ "type": "string",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "string",
167
+ "resolved": "string",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": "Format to display the selected date in."
175
+ },
176
+ "attribute": "format",
177
+ "reflect": false
173
178
  },
174
- "attribute": "format",
175
- "reflect": false
176
- },
177
- "isOpen": {
178
- "type": "boolean",
179
- "mutable": false,
180
- "complexType": {
181
- "original": "boolean",
182
- "resolved": "boolean",
183
- "references": {}
179
+ "isOpen": {
180
+ "type": "boolean",
181
+ "mutable": false,
182
+ "complexType": {
183
+ "original": "boolean",
184
+ "resolved": "boolean",
185
+ "references": {}
186
+ },
187
+ "required": false,
188
+ "optional": false,
189
+ "docs": {
190
+ "tags": [],
191
+ "text": "Set to `true` if the calendar should be open."
192
+ },
193
+ "attribute": "is-open",
194
+ "reflect": false
184
195
  },
185
- "required": false,
186
- "optional": false,
187
- "docs": {
188
- "tags": [],
189
- "text": "Set to `true` if the calendar should be open."
190
- },
191
- "attribute": "is-open",
192
- "reflect": false
193
- },
194
- "inputElement": {
195
- "type": "unknown",
196
- "mutable": false,
197
- "complexType": {
198
- "original": "HTMLElement",
199
- "resolved": "HTMLElement",
200
- "references": {
201
- "HTMLElement": {
202
- "location": "global"
196
+ "inputElement": {
197
+ "type": "unknown",
198
+ "mutable": false,
199
+ "complexType": {
200
+ "original": "HTMLElement",
201
+ "resolved": "HTMLElement",
202
+ "references": {
203
+ "HTMLElement": {
204
+ "location": "global"
205
+ }
203
206
  }
207
+ },
208
+ "required": false,
209
+ "optional": false,
210
+ "docs": {
211
+ "tags": [],
212
+ "text": "The native input element to use with flatpickr."
204
213
  }
205
214
  },
206
- "required": false,
207
- "optional": false,
208
- "docs": {
209
- "tags": [],
210
- "text": "The native input element to use with flatpickr."
211
- }
212
- },
213
- "language": {
214
- "type": "string",
215
- "mutable": false,
216
- "complexType": {
217
- "original": "Languages",
218
- "resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
219
- "references": {
220
- "Languages": {
221
- "location": "import",
222
- "path": "@limetech/lime-elements"
215
+ "language": {
216
+ "type": "string",
217
+ "mutable": false,
218
+ "complexType": {
219
+ "original": "Languages",
220
+ "resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
221
+ "references": {
222
+ "Languages": {
223
+ "location": "import",
224
+ "path": "@limetech/lime-elements"
225
+ }
223
226
  }
224
- }
225
- },
226
- "required": false,
227
- "optional": false,
228
- "docs": {
229
- "tags": [],
230
- "text": "Defines the localisation for translations and date formatting.\nProperty `format` customizes the localized date format."
231
- },
232
- "attribute": "language",
233
- "reflect": false,
234
- "defaultValue": "'en'"
235
- }
236
- }; }
237
- static get events() { return [{
238
- "method": "change",
239
- "name": "change",
240
- "bubbles": true,
241
- "cancelable": true,
242
- "composed": true,
243
- "docs": {
244
- "tags": [],
245
- "text": "Emitted when the date picker value is changed."
246
- },
247
- "complexType": {
248
- "original": "Date",
249
- "resolved": "Date",
250
- "references": {
251
- "Date": {
252
- "location": "global"
227
+ },
228
+ "required": false,
229
+ "optional": false,
230
+ "docs": {
231
+ "tags": [],
232
+ "text": "Defines the localisation for translations and date formatting.\nProperty `format` customizes the localized date format."
233
+ },
234
+ "attribute": "language",
235
+ "reflect": false,
236
+ "defaultValue": "'en'"
237
+ }
238
+ };
239
+ }
240
+ static get events() {
241
+ return [{
242
+ "method": "change",
243
+ "name": "change",
244
+ "bubbles": true,
245
+ "cancelable": true,
246
+ "composed": true,
247
+ "docs": {
248
+ "tags": [],
249
+ "text": "Emitted when the date picker value is changed."
250
+ },
251
+ "complexType": {
252
+ "original": "Date",
253
+ "resolved": "Date",
254
+ "references": {
255
+ "Date": {
256
+ "location": "global"
257
+ }
253
258
  }
254
259
  }
255
- }
256
- }]; }
260
+ }];
261
+ }
257
262
  }
@@ -84,9 +84,7 @@ export class QuarterPicker extends Picker {
84
84
  .toDate();
85
85
  fp.setDate(date, true);
86
86
  fp.close();
87
- } },
88
- `Q${quarter}`,
89
- this.renderQuarterMonths(quarter)));
87
+ } }, `Q${quarter}`, this.renderQuarterMonths(quarter)));
90
88
  }
91
89
  renderQuarterMonths(quarter) {
92
90
  const months = Array.from(Array(MONTHSPERQUARTER), (_, index) => {
@@ -1,5 +1,5 @@
1
1
  import { MDCDialog } from '@material/dialog';
2
- import { Component, Element, Event, h, Prop, Watch, } from '@stencil/core';
2
+ import { h, } from '@stencil/core';
3
3
  import { isEqual } from 'lodash-es';
4
4
  import { dispatchResizeEvent } from '../../util/dispatch-resize-event';
5
5
  import { createRandomString } from '../../util/random-string';
@@ -33,22 +33,14 @@ import { createRandomString } from '../../util/random-string';
33
33
  */
34
34
  export class Dialog {
35
35
  constructor() {
36
- /**
37
- * Set to `true` to make the dialog "fullscreen".
38
- */
36
+ this.showFooter = true;
37
+ this.heading = undefined;
39
38
  this.fullscreen = false;
40
- /**
41
- * `true` if the dialog is open, `false` otherwise.
42
- */
43
39
  this.open = false;
44
- /**
45
- * Defines which action triggers a close-event.
46
- */
47
40
  this.closingActions = {
48
41
  escapeKey: true,
49
42
  scrimClick: true,
50
43
  };
51
- this.showFooter = true;
52
44
  this.handleMdcOpened = this.handleMdcOpened.bind(this);
53
45
  this.handleMdcClosed = this.handleMdcClosed.bind(this);
54
46
  this.handleMdcClosing = this.handleMdcClosing.bind(this);
@@ -87,16 +79,7 @@ export class Dialog {
87
79
  return (h("div", { class: {
88
80
  'mdc-dialog': true,
89
81
  'full-screen': !!this.fullscreen,
90
- }, role: "alertdialog", "aria-modal": "true", "aria-labelledby": 'limel-dialog-title-' + this.id, "aria-describedby": 'limel-dialog-content-' + this.id },
91
- h("input", { hidden: true, id: "initialFocusEl" }),
92
- h("div", { class: "mdc-dialog__container" },
93
- h("div", { class: "mdc-dialog__surface" },
94
- h("input", { type: "text", id: "initialFocusElement" }),
95
- this.renderHeading(),
96
- h("div", { class: "mdc-dialog__content scrollbox", id: 'limel-dialog-content-' + this.id },
97
- h("slot", null)),
98
- this.renderFooter())),
99
- h("div", { class: "mdc-dialog__scrim" })));
82
+ }, role: "alertdialog", "aria-modal": "true", "aria-labelledby": 'limel-dialog-title-' + this.id, "aria-describedby": 'limel-dialog-content-' + this.id }, h("input", { hidden: true, id: "initialFocusEl" }), h("div", { class: "mdc-dialog__container" }, h("div", { class: "mdc-dialog__surface" }, h("input", { type: "text", id: "initialFocusElement" }), this.renderHeading(), h("div", { class: "mdc-dialog__content scrollbox", id: 'limel-dialog-content-' + this.id }, h("slot", null)), this.renderFooter())), h("div", { class: "mdc-dialog__scrim" })));
100
83
  }
101
84
  watchHandler(newValue, oldValue) {
102
85
  if (oldValue === newValue) {
@@ -150,8 +133,7 @@ export class Dialog {
150
133
  }
151
134
  renderFooter() {
152
135
  if (this.showFooter) {
153
- return (h("footer", { class: "mdc-dialog__actions" },
154
- h("slot", { name: "button" })));
136
+ return (h("footer", { class: "mdc-dialog__actions" }, h("slot", { name: "button" })));
155
137
  }
156
138
  }
157
139
  setClosingActions() {
@@ -166,130 +148,140 @@ export class Dialog {
166
148
  }
167
149
  static get is() { return "limel-dialog"; }
168
150
  static get encapsulation() { return "shadow"; }
169
- static get originalStyleUrls() { return {
170
- "$": ["dialog.scss"]
171
- }; }
172
- static get styleUrls() { return {
173
- "$": ["dialog.css"]
174
- }; }
175
- static get properties() { return {
176
- "heading": {
177
- "type": "string",
178
- "mutable": false,
179
- "complexType": {
180
- "original": "string | DialogHeading",
181
- "resolved": "DialogHeading | string",
182
- "references": {
183
- "DialogHeading": {
184
- "location": "import",
185
- "path": "@limetech/lime-elements"
151
+ static get originalStyleUrls() {
152
+ return {
153
+ "$": ["dialog.scss"]
154
+ };
155
+ }
156
+ static get styleUrls() {
157
+ return {
158
+ "$": ["dialog.css"]
159
+ };
160
+ }
161
+ static get properties() {
162
+ return {
163
+ "heading": {
164
+ "type": "string",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "string | DialogHeading",
168
+ "resolved": "DialogHeading | string",
169
+ "references": {
170
+ "DialogHeading": {
171
+ "location": "import",
172
+ "path": "@limetech/lime-elements"
173
+ }
186
174
  }
187
- }
188
- },
189
- "required": false,
190
- "optional": false,
191
- "docs": {
192
- "tags": [],
193
- "text": "The heading for the dialog, if any."
194
- },
195
- "attribute": "heading",
196
- "reflect": false
197
- },
198
- "fullscreen": {
199
- "type": "boolean",
200
- "mutable": false,
201
- "complexType": {
202
- "original": "boolean",
203
- "resolved": "boolean",
204
- "references": {}
175
+ },
176
+ "required": false,
177
+ "optional": false,
178
+ "docs": {
179
+ "tags": [],
180
+ "text": "The heading for the dialog, if any."
181
+ },
182
+ "attribute": "heading",
183
+ "reflect": false
205
184
  },
206
- "required": false,
207
- "optional": false,
208
- "docs": {
209
- "tags": [],
210
- "text": "Set to `true` to make the dialog \"fullscreen\"."
185
+ "fullscreen": {
186
+ "type": "boolean",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "boolean",
190
+ "resolved": "boolean",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "Set to `true` to make the dialog \"fullscreen\"."
198
+ },
199
+ "attribute": "fullscreen",
200
+ "reflect": true,
201
+ "defaultValue": "false"
211
202
  },
212
- "attribute": "fullscreen",
213
- "reflect": true,
214
- "defaultValue": "false"
215
- },
216
- "open": {
217
- "type": "boolean",
218
- "mutable": true,
219
- "complexType": {
220
- "original": "boolean",
221
- "resolved": "boolean",
222
- "references": {}
203
+ "open": {
204
+ "type": "boolean",
205
+ "mutable": true,
206
+ "complexType": {
207
+ "original": "boolean",
208
+ "resolved": "boolean",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "`true` if the dialog is open, `false` otherwise."
216
+ },
217
+ "attribute": "open",
218
+ "reflect": true,
219
+ "defaultValue": "false"
223
220
  },
224
- "required": false,
225
- "optional": false,
226
- "docs": {
227
- "tags": [],
228
- "text": "`true` if the dialog is open, `false` otherwise."
229
- },
230
- "attribute": "open",
231
- "reflect": true,
232
- "defaultValue": "false"
233
- },
234
- "closingActions": {
235
- "type": "unknown",
236
- "mutable": false,
237
- "complexType": {
238
- "original": "ClosingActions",
239
- "resolved": "ClosingActions",
240
- "references": {
241
- "ClosingActions": {
242
- "location": "import",
243
- "path": "@limetech/lime-elements"
221
+ "closingActions": {
222
+ "type": "unknown",
223
+ "mutable": false,
224
+ "complexType": {
225
+ "original": "ClosingActions",
226
+ "resolved": "ClosingActions",
227
+ "references": {
228
+ "ClosingActions": {
229
+ "location": "import",
230
+ "path": "@limetech/lime-elements"
231
+ }
244
232
  }
245
- }
246
- },
247
- "required": false,
248
- "optional": false,
249
- "docs": {
250
- "tags": [],
251
- "text": "Defines which action triggers a close-event."
252
- },
253
- "defaultValue": "{\n escapeKey: true,\n scrimClick: true,\n }"
254
- }
255
- }; }
256
- static get events() { return [{
257
- "method": "close",
258
- "name": "close",
259
- "bubbles": true,
260
- "cancelable": true,
261
- "composed": true,
262
- "docs": {
263
- "tags": [],
264
- "text": "Emitted when the dialog is closed from inside the component.\n(*Not* emitted when the consumer sets the `open`-property to `false`.)"
265
- },
266
- "complexType": {
267
- "original": "void",
268
- "resolved": "void",
269
- "references": {}
233
+ },
234
+ "required": false,
235
+ "optional": false,
236
+ "docs": {
237
+ "tags": [],
238
+ "text": "Defines which action triggers a close-event."
239
+ },
240
+ "defaultValue": "{\n escapeKey: true,\n scrimClick: true,\n }"
270
241
  }
271
- }, {
272
- "method": "closing",
273
- "name": "closing",
274
- "bubbles": true,
275
- "cancelable": true,
276
- "composed": true,
277
- "docs": {
278
- "tags": [],
279
- "text": "Emitted when the dialog is in the process of being closed."
280
- },
281
- "complexType": {
282
- "original": "void",
283
- "resolved": "void",
284
- "references": {}
285
- }
286
- }]; }
242
+ };
243
+ }
244
+ static get events() {
245
+ return [{
246
+ "method": "close",
247
+ "name": "close",
248
+ "bubbles": true,
249
+ "cancelable": true,
250
+ "composed": true,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Emitted when the dialog is closed from inside the component.\n(*Not* emitted when the consumer sets the `open`-property to `false`.)"
254
+ },
255
+ "complexType": {
256
+ "original": "void",
257
+ "resolved": "void",
258
+ "references": {}
259
+ }
260
+ }, {
261
+ "method": "closing",
262
+ "name": "closing",
263
+ "bubbles": true,
264
+ "cancelable": true,
265
+ "composed": true,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "Emitted when the dialog is in the process of being closed."
269
+ },
270
+ "complexType": {
271
+ "original": "void",
272
+ "resolved": "void",
273
+ "references": {}
274
+ }
275
+ }];
276
+ }
287
277
  static get elementRef() { return "host"; }
288
- static get watchers() { return [{
289
- "propName": "open",
290
- "methodName": "watchHandler"
291
- }, {
292
- "propName": "closingActions",
293
- "methodName": "closingActionsChanged"
294
- }]; }
278
+ static get watchers() {
279
+ return [{
280
+ "propName": "open",
281
+ "methodName": "watchHandler"
282
+ }, {
283
+ "propName": "closingActions",
284
+ "methodName": "closingActionsChanged"
285
+ }];
286
+ }
295
287
  }