@ni/nimble-angular 1.0.0-beta.99 → 1.1.1

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 (206) hide show
  1. package/README.md +87 -21
  2. package/bundles/ni-nimble-angular.umd.js +1422 -1045
  3. package/bundles/ni-nimble-angular.umd.js.map +1 -1
  4. package/directives/button/nimble-button.directive.d.ts +17 -5
  5. package/directives/button/nimble-button.module.d.ts +0 -6
  6. package/directives/button/nimble-button.module.ngfactory.d.ts +3 -0
  7. package/directives/checkbox/nimble-checkbox-control-value-accessor.directive.d.ts +1 -4
  8. package/directives/checkbox/nimble-checkbox.directive.d.ts +2 -3
  9. package/directives/checkbox/nimble-checkbox.module.d.ts +0 -7
  10. package/directives/checkbox/nimble-checkbox.module.ngfactory.d.ts +3 -0
  11. package/directives/drawer/nimble-drawer.directive.d.ts +25 -0
  12. package/directives/drawer/nimble-drawer.module.d.ts +3 -0
  13. package/directives/drawer/nimble-drawer.module.ngfactory.d.ts +3 -0
  14. package/directives/listbox-option/nimble-listbox-option.directive.d.ts +9 -7
  15. package/directives/listbox-option/nimble-listbox-option.module.d.ts +0 -6
  16. package/directives/listbox-option/nimble-listbox-option.module.ngfactory.d.ts +3 -0
  17. package/directives/menu/nimble-menu.directive.d.ts +7 -0
  18. package/directives/menu/nimble-menu.module.d.ts +3 -0
  19. package/directives/menu/nimble-menu.module.ngfactory.d.ts +3 -0
  20. package/directives/menu-item/nimble-menu-item.directive.d.ts +14 -0
  21. package/directives/menu-item/nimble-menu-item.module.d.ts +3 -0
  22. package/directives/menu-item/nimble-menu-item.module.ngfactory.d.ts +3 -0
  23. package/directives/number-field/nimble-number-field-control-value-accessor.directive.d.ts +9 -0
  24. package/directives/number-field/nimble-number-field.directive.d.ts +17 -8
  25. package/directives/number-field/nimble-number-field.module.d.ts +0 -7
  26. package/directives/number-field/nimble-number-field.module.ngfactory.d.ts +3 -0
  27. package/directives/select/nimble-select-control-value-accessor.directive.d.ts +0 -3
  28. package/directives/select/nimble-select.directive.d.ts +2 -3
  29. package/directives/select/nimble-select.module.d.ts +0 -7
  30. package/directives/select/nimble-select.module.ngfactory.d.ts +3 -0
  31. package/directives/tab/nimble-tab.directive.d.ts +9 -4
  32. package/directives/tab/nimble-tab.module.d.ts +0 -6
  33. package/directives/tab/nimble-tab.module.ngfactory.d.ts +3 -0
  34. package/directives/tab-panel/nimble-tab-panel.directive.d.ts +2 -3
  35. package/directives/tab-panel/nimble-tab-panel.module.d.ts +0 -6
  36. package/directives/tab-panel/nimble-tab-panel.module.ngfactory.d.ts +3 -0
  37. package/directives/tabs/nimble-tabs.directive.d.ts +9 -9
  38. package/directives/tabs/nimble-tabs.module.d.ts +0 -6
  39. package/directives/tabs/nimble-tabs.module.ngfactory.d.ts +3 -0
  40. package/directives/tabs-toolbar/nimble-tabs-toolbar.directive.d.ts +2 -3
  41. package/directives/tabs-toolbar/nimble-tabs-toolbar.module.d.ts +0 -6
  42. package/directives/tabs-toolbar/nimble-tabs-toolbar.module.ngfactory.d.ts +3 -0
  43. package/directives/text-field/nimble-text-field-control-value-accessor.directive.d.ts +9 -0
  44. package/directives/text-field/nimble-text-field.directive.d.ts +14 -4
  45. package/directives/text-field/nimble-text-field.module.d.ts +0 -7
  46. package/directives/text-field/nimble-text-field.module.ngfactory.d.ts +3 -0
  47. package/directives/theme-provider/nimble-theme-provider.directive.d.ts +11 -4
  48. package/directives/theme-provider/nimble-theme-provider.module.d.ts +0 -6
  49. package/directives/theme-provider/nimble-theme-provider.module.ngfactory.d.ts +3 -0
  50. package/directives/toggle-button/nimble-toggle-button-control-value-accessor.directive.d.ts +9 -0
  51. package/directives/toggle-button/nimble-toggle-button.directive.d.ts +22 -0
  52. package/directives/toggle-button/nimble-toggle-button.module.d.ts +3 -0
  53. package/directives/toggle-button/nimble-toggle-button.module.ngfactory.d.ts +3 -0
  54. package/directives/tree-item/nimble-tree-item.directive.d.ts +14 -13
  55. package/directives/tree-item/nimble-tree-item.module.d.ts +0 -6
  56. package/directives/tree-item/nimble-tree-item.module.ngfactory.d.ts +3 -0
  57. package/directives/tree-view/nimble-tree-view.directive.d.ts +11 -3
  58. package/directives/tree-view/nimble-tree-view.module.d.ts +0 -6
  59. package/directives/tree-view/nimble-tree-view.module.ngfactory.d.ts +3 -0
  60. package/directives/utilities/template-value-helpers.d.ts +20 -0
  61. package/esm2015/directives/button/nimble-button.directive.js +50 -21
  62. package/esm2015/directives/button/nimble-button.directive.ngsummary.json +1 -0
  63. package/esm2015/directives/button/nimble-button.module.js +8 -13
  64. package/esm2015/directives/button/nimble-button.module.ngfactory.js +12 -0
  65. package/esm2015/directives/button/nimble-button.module.ngsummary.json +1 -0
  66. package/esm2015/directives/checkbox/nimble-checkbox-control-value-accessor.directive.js +15 -23
  67. package/esm2015/directives/checkbox/nimble-checkbox-control-value-accessor.directive.ngsummary.json +1 -0
  68. package/esm2015/directives/checkbox/nimble-checkbox.directive.js +6 -10
  69. package/esm2015/directives/checkbox/nimble-checkbox.directive.ngsummary.json +1 -0
  70. package/esm2015/directives/checkbox/nimble-checkbox.module.js +8 -13
  71. package/esm2015/directives/checkbox/nimble-checkbox.module.ngfactory.js +12 -0
  72. package/esm2015/directives/checkbox/nimble-checkbox.module.ngsummary.json +1 -0
  73. package/esm2015/directives/drawer/nimble-drawer.directive.js +60 -0
  74. package/esm2015/directives/drawer/nimble-drawer.directive.ngsummary.json +1 -0
  75. package/esm2015/directives/drawer/nimble-drawer.module.js +14 -0
  76. package/esm2015/directives/drawer/nimble-drawer.module.ngfactory.js +12 -0
  77. package/esm2015/directives/drawer/nimble-drawer.module.ngsummary.json +1 -0
  78. package/esm2015/directives/listbox-option/nimble-listbox-option.directive.js +27 -23
  79. package/esm2015/directives/listbox-option/nimble-listbox-option.directive.ngsummary.json +1 -0
  80. package/esm2015/directives/listbox-option/nimble-listbox-option.module.js +8 -13
  81. package/esm2015/directives/listbox-option/nimble-listbox-option.module.ngfactory.js +12 -0
  82. package/esm2015/directives/listbox-option/nimble-listbox-option.module.ngsummary.json +1 -0
  83. package/esm2015/directives/menu/nimble-menu.directive.js +12 -0
  84. package/esm2015/directives/menu/nimble-menu.directive.ngsummary.json +1 -0
  85. package/esm2015/directives/menu/nimble-menu.module.js +14 -0
  86. package/esm2015/directives/menu/nimble-menu.module.ngfactory.js +12 -0
  87. package/esm2015/directives/menu/nimble-menu.module.ngsummary.json +1 -0
  88. package/esm2015/directives/menu-item/nimble-menu-item.directive.js +30 -0
  89. package/esm2015/directives/menu-item/nimble-menu-item.directive.ngsummary.json +1 -0
  90. package/esm2015/directives/menu-item/nimble-menu-item.module.js +14 -0
  91. package/esm2015/directives/menu-item/nimble-menu-item.module.ngfactory.js +12 -0
  92. package/esm2015/directives/menu-item/nimble-menu-item.module.ngsummary.json +1 -0
  93. package/esm2015/directives/number-field/nimble-number-field-control-value-accessor.directive.js +24 -0
  94. package/esm2015/directives/number-field/nimble-number-field-control-value-accessor.directive.ngsummary.json +1 -0
  95. package/esm2015/directives/number-field/nimble-number-field.directive.js +56 -36
  96. package/esm2015/directives/number-field/nimble-number-field.directive.ngsummary.json +1 -0
  97. package/esm2015/directives/number-field/nimble-number-field.module.js +9 -15
  98. package/esm2015/directives/number-field/nimble-number-field.module.ngfactory.js +12 -0
  99. package/esm2015/directives/number-field/nimble-number-field.module.ngsummary.json +1 -0
  100. package/esm2015/directives/select/nimble-select-control-value-accessor.directive.js +14 -22
  101. package/esm2015/directives/select/nimble-select-control-value-accessor.directive.ngsummary.json +1 -0
  102. package/esm2015/directives/select/nimble-select.directive.js +6 -10
  103. package/esm2015/directives/select/nimble-select.directive.ngsummary.json +1 -0
  104. package/esm2015/directives/select/nimble-select.module.js +8 -13
  105. package/esm2015/directives/select/nimble-select.module.ngfactory.js +12 -0
  106. package/esm2015/directives/select/nimble-select.module.ngsummary.json +1 -0
  107. package/esm2015/directives/tab/nimble-tab.directive.js +25 -16
  108. package/esm2015/directives/tab/nimble-tab.directive.ngsummary.json +1 -0
  109. package/esm2015/directives/tab/nimble-tab.module.js +8 -13
  110. package/esm2015/directives/tab/nimble-tab.module.ngfactory.js +12 -0
  111. package/esm2015/directives/tab/nimble-tab.module.ngsummary.json +1 -0
  112. package/esm2015/directives/tab-panel/nimble-tab-panel.directive.js +6 -10
  113. package/esm2015/directives/tab-panel/nimble-tab-panel.directive.ngsummary.json +1 -0
  114. package/esm2015/directives/tab-panel/nimble-tab-panel.module.js +8 -13
  115. package/esm2015/directives/tab-panel/nimble-tab-panel.module.ngfactory.js +12 -0
  116. package/esm2015/directives/tab-panel/nimble-tab-panel.module.ngsummary.json +1 -0
  117. package/esm2015/directives/tabs/nimble-tabs.directive.js +29 -25
  118. package/esm2015/directives/tabs/nimble-tabs.directive.ngsummary.json +1 -0
  119. package/esm2015/directives/tabs/nimble-tabs.module.js +8 -13
  120. package/esm2015/directives/tabs/nimble-tabs.module.ngfactory.js +12 -0
  121. package/esm2015/directives/tabs/nimble-tabs.module.ngsummary.json +1 -0
  122. package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.directive.js +6 -10
  123. package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.directive.ngsummary.json +1 -0
  124. package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.module.js +8 -13
  125. package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.module.ngfactory.js +12 -0
  126. package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.module.ngsummary.json +1 -0
  127. package/esm2015/directives/text-field/nimble-text-field-control-value-accessor.directive.js +29 -0
  128. package/esm2015/directives/text-field/nimble-text-field-control-value-accessor.directive.ngsummary.json +1 -0
  129. package/esm2015/directives/text-field/nimble-text-field.directive.js +37 -16
  130. package/esm2015/directives/text-field/nimble-text-field.directive.ngsummary.json +1 -0
  131. package/esm2015/directives/text-field/nimble-text-field.module.js +9 -15
  132. package/esm2015/directives/text-field/nimble-text-field.module.ngfactory.js +12 -0
  133. package/esm2015/directives/text-field/nimble-text-field.module.ngsummary.json +1 -0
  134. package/esm2015/directives/theme-provider/nimble-theme-provider.directive.js +26 -16
  135. package/esm2015/directives/theme-provider/nimble-theme-provider.directive.ngsummary.json +1 -0
  136. package/esm2015/directives/theme-provider/nimble-theme-provider.module.js +8 -13
  137. package/esm2015/directives/theme-provider/nimble-theme-provider.module.ngfactory.js +12 -0
  138. package/esm2015/directives/theme-provider/nimble-theme-provider.module.ngsummary.json +1 -0
  139. package/esm2015/directives/toggle-button/nimble-toggle-button-control-value-accessor.directive.js +24 -0
  140. package/esm2015/directives/toggle-button/nimble-toggle-button-control-value-accessor.directive.ngsummary.json +1 -0
  141. package/esm2015/directives/toggle-button/nimble-toggle-button.directive.js +53 -0
  142. package/esm2015/directives/toggle-button/nimble-toggle-button.directive.ngsummary.json +1 -0
  143. package/esm2015/directives/toggle-button/nimble-toggle-button.module.js +15 -0
  144. package/esm2015/directives/toggle-button/nimble-toggle-button.module.ngfactory.js +12 -0
  145. package/esm2015/directives/toggle-button/nimble-toggle-button.module.ngsummary.json +1 -0
  146. package/esm2015/directives/tree-item/nimble-tree-item.directive.js +43 -52
  147. package/esm2015/directives/tree-item/nimble-tree-item.directive.ngsummary.json +1 -0
  148. package/esm2015/directives/tree-item/nimble-tree-item.module.js +8 -13
  149. package/esm2015/directives/tree-item/nimble-tree-item.module.ngfactory.js +12 -0
  150. package/esm2015/directives/tree-item/nimble-tree-item.module.ngsummary.json +1 -0
  151. package/esm2015/directives/tree-view/nimble-tree-view.directive.js +28 -11
  152. package/esm2015/directives/tree-view/nimble-tree-view.directive.ngsummary.json +1 -0
  153. package/esm2015/directives/tree-view/nimble-tree-view.module.js +8 -13
  154. package/esm2015/directives/tree-view/nimble-tree-view.module.ngfactory.js +12 -0
  155. package/esm2015/directives/tree-view/nimble-tree-view.module.ngsummary.json +1 -0
  156. package/esm2015/directives/utilities/template-value-helpers.js +37 -0
  157. package/esm2015/directives/utilities/template-value-helpers.ngsummary.json +1 -0
  158. package/esm2015/ni-nimble-angular.js +2 -1
  159. package/esm2015/ni-nimble-angular.ngsummary.json +1 -0
  160. package/esm2015/public-api.js +40 -15
  161. package/esm2015/public-api.ngsummary.json +1 -0
  162. package/esm2015/testing/async-helpers.js +12 -0
  163. package/esm2015/testing/async-helpers.ngsummary.json +1 -0
  164. package/fesm2015/ni-nimble-angular.js +798 -540
  165. package/fesm2015/ni-nimble-angular.js.map +1 -1
  166. package/ni-nimble-angular.d.ts +1 -1
  167. package/ni-nimble-angular.metadata.json +1 -0
  168. package/package.json +4 -20
  169. package/public-api.d.ts +39 -14
  170. package/styles/fonts.scss +4 -0
  171. package/styles/tokens.scss +6 -0
  172. package/testing/async-helpers.d.ts +11 -0
  173. package/directives/button/index.d.ts +0 -2
  174. package/directives/checkbox/index.d.ts +0 -3
  175. package/directives/control-value-accessor/index.d.ts +0 -3
  176. package/directives/control-value-accessor/nimble-control-value-accessor.module.d.ts +0 -9
  177. package/directives/control-value-accessor/nimble-default-control-value-accessor.directive.d.ts +0 -12
  178. package/directives/control-value-accessor/nimble-number-control-value-accessor.directive.d.ts +0 -12
  179. package/directives/listbox-option/index.d.ts +0 -2
  180. package/directives/number-field/index.d.ts +0 -2
  181. package/directives/select/index.d.ts +0 -3
  182. package/directives/tab/index.d.ts +0 -2
  183. package/directives/tab-panel/index.d.ts +0 -2
  184. package/directives/tabs/index.d.ts +0 -2
  185. package/directives/tabs-toolbar/index.d.ts +0 -2
  186. package/directives/text-field/index.d.ts +0 -2
  187. package/directives/theme-provider/index.d.ts +0 -2
  188. package/directives/tree-item/index.d.ts +0 -2
  189. package/directives/tree-view/index.d.ts +0 -2
  190. package/esm2015/directives/button/index.js +0 -3
  191. package/esm2015/directives/checkbox/index.js +0 -4
  192. package/esm2015/directives/control-value-accessor/index.js +0 -4
  193. package/esm2015/directives/control-value-accessor/nimble-control-value-accessor.module.js +0 -19
  194. package/esm2015/directives/control-value-accessor/nimble-default-control-value-accessor.directive.js +0 -37
  195. package/esm2015/directives/control-value-accessor/nimble-number-control-value-accessor.directive.js +0 -32
  196. package/esm2015/directives/listbox-option/index.js +0 -3
  197. package/esm2015/directives/number-field/index.js +0 -3
  198. package/esm2015/directives/select/index.js +0 -4
  199. package/esm2015/directives/tab/index.js +0 -3
  200. package/esm2015/directives/tab-panel/index.js +0 -3
  201. package/esm2015/directives/tabs/index.js +0 -3
  202. package/esm2015/directives/tabs-toolbar/index.js +0 -3
  203. package/esm2015/directives/text-field/index.js +0 -3
  204. package/esm2015/directives/theme-provider/index.js +0 -3
  205. package/esm2015/directives/tree-item/index.js +0 -3
  206. package/esm2015/directives/tree-view/index.js +0 -3
@@ -1,1117 +1,1494 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@ni/nimble-components/dist/esm/theme-provider'), require('@angular/forms'), require('@ni/nimble-components/dist/esm/text-field'), require('@ni/nimble-components/dist/esm/number-field'), require('@ni/nimble-components/dist/esm/select'), require('@ni/nimble-components/dist/esm/listbox-option'), require('@ni/nimble-components/dist/esm/button'), require('@ni/nimble-components/dist/esm/tree-view'), require('@ni/nimble-components/dist/esm/tree-item'), require('@ni/nimble-components/dist/esm/checkbox'), require('@ni/nimble-components/dist/esm/tabs'), require('@ni/nimble-components/dist/esm/tab'), require('@ni/nimble-components/dist/esm/tab-panel'), require('@ni/nimble-components/dist/esm/tabs-toolbar')) :
3
- typeof define === 'function' && define.amd ? define('@ni/nimble-angular', ['exports', '@angular/core', '@angular/common', '@ni/nimble-components/dist/esm/theme-provider', '@angular/forms', '@ni/nimble-components/dist/esm/text-field', '@ni/nimble-components/dist/esm/number-field', '@ni/nimble-components/dist/esm/select', '@ni/nimble-components/dist/esm/listbox-option', '@ni/nimble-components/dist/esm/button', '@ni/nimble-components/dist/esm/tree-view', '@ni/nimble-components/dist/esm/tree-item', '@ni/nimble-components/dist/esm/checkbox', '@ni/nimble-components/dist/esm/tabs', '@ni/nimble-components/dist/esm/tab', '@ni/nimble-components/dist/esm/tab-panel', '@ni/nimble-components/dist/esm/tabs-toolbar'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ni = global.ni || {}, global.ni['nimble-angular'] = {}), global.ng.core, global.ng.common, null, global.ng.forms));
5
- }(this, (function (exports, i0, common, themeProvider, forms) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ni/nimble-components/dist/esm/button/types'), require('@angular/common'), require('@ni/nimble-components/dist/esm/button'), require('@angular/forms'), require('@ni/nimble-components/dist/esm/checkbox'), require('@ni/nimble-components/dist/esm/drawer/types'), require('@ni/nimble-components/dist/esm/drawer'), require('@ni/nimble-components/dist/esm/listbox-option'), require('@ni/nimble-components/dist/esm/menu'), require('@ni/nimble-components/dist/esm/menu-item'), require('@ni/nimble-components/dist/esm/number-field'), require('@ni/nimble-components/dist/esm/select'), require('@ni/nimble-components/dist/esm/tab'), require('@ni/nimble-components/dist/esm/tab-panel'), require('@ni/nimble-components/dist/esm/tabs'), require('@ni/nimble-components/dist/esm/tabs-toolbar'), require('@ni/nimble-components/dist/esm/text-field/types'), require('@ni/nimble-components/dist/esm/text-field'), require('@ni/nimble-components/dist/esm/theme-provider/types'), require('@ni/nimble-components/dist/esm/theme-provider'), require('@ni/nimble-components/dist/esm/toggle-button'), require('@ni/nimble-components/dist/esm/tree-item'), require('@ni/nimble-components/dist/esm/tree-view/types'), require('@ni/nimble-components/dist/esm/tree-view'), require('@ni/nimble-components/dist/esm/testing/async-helpers')) :
3
+ typeof define === 'function' && define.amd ? define('@ni/nimble-angular', ['exports', '@angular/core', '@ni/nimble-components/dist/esm/button/types', '@angular/common', '@ni/nimble-components/dist/esm/button', '@angular/forms', '@ni/nimble-components/dist/esm/checkbox', '@ni/nimble-components/dist/esm/drawer/types', '@ni/nimble-components/dist/esm/drawer', '@ni/nimble-components/dist/esm/listbox-option', '@ni/nimble-components/dist/esm/menu', '@ni/nimble-components/dist/esm/menu-item', '@ni/nimble-components/dist/esm/number-field', '@ni/nimble-components/dist/esm/select', '@ni/nimble-components/dist/esm/tab', '@ni/nimble-components/dist/esm/tab-panel', '@ni/nimble-components/dist/esm/tabs', '@ni/nimble-components/dist/esm/tabs-toolbar', '@ni/nimble-components/dist/esm/text-field/types', '@ni/nimble-components/dist/esm/text-field', '@ni/nimble-components/dist/esm/theme-provider/types', '@ni/nimble-components/dist/esm/theme-provider', '@ni/nimble-components/dist/esm/toggle-button', '@ni/nimble-components/dist/esm/tree-item', '@ni/nimble-components/dist/esm/tree-view/types', '@ni/nimble-components/dist/esm/tree-view', '@ni/nimble-components/dist/esm/testing/async-helpers'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ni = global.ni || {}, global.ni["nimble-angular"] = {}), global.ng.core, global.types, global.ng.common, null, global.ng.forms, null, global.types$1, null, null, null, null, null, null, null, null, null, null, global.types$2, null, global.types$3, null, null, null, global.types$4, null, global.asyncHelpers));
5
+ })(this, (function (exports, core, types, common, button, forms, checkbox, types$1, drawer, listboxOption, menu, menuItem, numberField, select, tab, tabPanel, tabs, tabsToolbar, types$2, textField, types$3, themeProvider, toggleButton, treeItem, types$4, treeView, asyncHelpers) { 'use strict';
6
6
 
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
7
+ /**
8
+ * Conversion helpers for values coming from template attributes or property bindings
9
+ */
10
+ /**
11
+ * Converts values from templates (empty string or null) or boolean bindings to a boolean property representation
12
+ */
13
+ var toBooleanProperty = function (value) {
14
+ if (value === false || value === null) {
15
+ return false;
25
16
  }
17
+ // For boolean attributes the empty string value is true
18
+ return true;
19
+ };
20
+ /**
21
+ * Converts values from templates (empty string or null) or boolean bindings to an Aria boolean
22
+ * attribute representation (the strings "true" or "false")
23
+ */
24
+ var toBooleanAriaAttribute = function (value) {
25
+ if (value === false || value === null) {
26
+ return 'false';
27
+ }
28
+ // For boolean attributes the empty string value is true
29
+ return 'true';
30
+ };
31
+ /**
32
+ * Converts values from templates (number representation as a string) or number bindings to a number property representation
33
+ */
34
+ var toNumberProperty = function (value) {
35
+ // Angular: https://github.com/angular/angular/blob/2664bc2b3ef4ee5fd671f915828cfcc274a36c77/packages/forms/src/directives/number_value_accessor.ts#L67
36
+ // And Fast: https://github.com/microsoft/fast/blob/46bb6d9aab2c37105f4434db3795e176c2354a4f/packages/web-components/fast-element/src/components/attributes.ts#L100
37
+ // Handle numeric conversions from the view differently
38
+ // Since Number(val) https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number-constructor-number-value
39
+ // and val * 1 https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-applystringornumericbinaryoperator
40
+ // Are identical (use ToNumeric algorithm), went with Number() for clarity
41
+ return Number(value);
42
+ };
26
43
 
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
-
29
- /**
30
- * Directive for Angular integration for the theme provider
31
- */
32
- var NimbleThemeProviderDirective = /** @class */ (function () {
33
- function NimbleThemeProviderDirective() {
34
- }
35
- return NimbleThemeProviderDirective;
36
- }());
37
- NimbleThemeProviderDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
38
- NimbleThemeProviderDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleThemeProviderDirective, selector: "nimble-theme-provider", inputs: { theme: "theme" }, host: { properties: { "attr.theme": "this.theme" } }, ngImport: i0__namespace });
39
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderDirective, decorators: [{
40
- type: i0.Directive,
41
- args: [{
42
- selector: 'nimble-theme-provider'
43
- }]
44
- }], propDecorators: { theme: [{
45
- type: i0.HostBinding,
46
- args: ['attr.theme']
47
- }, {
48
- type: i0.Input
49
- }] } });
50
-
51
- var NimbleThemeProviderModule = /** @class */ (function () {
52
- function NimbleThemeProviderModule() {
53
- }
54
- return NimbleThemeProviderModule;
55
- }());
56
- NimbleThemeProviderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
57
- NimbleThemeProviderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderModule, declarations: [NimbleThemeProviderDirective], imports: [common.CommonModule], exports: [NimbleThemeProviderDirective] });
58
- NimbleThemeProviderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderModule, imports: [[common.CommonModule]] });
59
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleThemeProviderModule, decorators: [{
60
- type: i0.NgModule,
61
- args: [{
62
- declarations: [NimbleThemeProviderDirective],
63
- imports: [common.CommonModule],
64
- exports: [NimbleThemeProviderDirective]
65
- }]
66
- }] });
44
+ /**
45
+ * Directive to provide Angular integration for the button.
46
+ */
47
+ var NimbleButtonDirective = /** @class */ (function () {
48
+ function NimbleButtonDirective(renderer, elementRef) {
49
+ this.renderer = renderer;
50
+ this.elementRef = elementRef;
51
+ }
52
+ Object.defineProperty(NimbleButtonDirective.prototype, "appearance", {
53
+ get: function () {
54
+ return this.elementRef.nativeElement.appearance;
55
+ },
56
+ set: function (value) {
57
+ this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);
58
+ },
59
+ enumerable: false,
60
+ configurable: true
61
+ });
62
+ Object.defineProperty(NimbleButtonDirective.prototype, "disabled", {
63
+ get: function () {
64
+ return this.elementRef.nativeElement.disabled;
65
+ },
66
+ set: function (value) {
67
+ this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
68
+ },
69
+ enumerable: false,
70
+ configurable: true
71
+ });
72
+ Object.defineProperty(NimbleButtonDirective.prototype, "type", {
73
+ get: function () {
74
+ return this.elementRef.nativeElement.type;
75
+ },
76
+ set: function (value) {
77
+ this.renderer.setProperty(this.elementRef.nativeElement, 'type', value);
78
+ },
79
+ enumerable: false,
80
+ configurable: true
81
+ });
82
+ Object.defineProperty(NimbleButtonDirective.prototype, "contentHidden", {
83
+ get: function () {
84
+ return this.elementRef.nativeElement.contentHidden;
85
+ },
86
+ // contentHidden property intentionally maps to the content-hidden attribute
87
+ // eslint-disable-next-line @angular-eslint/no-input-rename
88
+ set: function (value) {
89
+ this.renderer.setProperty(this.elementRef.nativeElement, 'contentHidden', toBooleanProperty(value));
90
+ },
91
+ enumerable: false,
92
+ configurable: true
93
+ });
94
+ return NimbleButtonDirective;
95
+ }());
96
+ NimbleButtonDirective.decorators = [
97
+ { type: core.Directive, args: [{
98
+ selector: 'nimble-button'
99
+ },] }
100
+ ];
101
+ NimbleButtonDirective.ctorParameters = function () { return [
102
+ { type: core.Renderer2 },
103
+ { type: core.ElementRef }
104
+ ]; };
105
+ NimbleButtonDirective.propDecorators = {
106
+ appearance: [{ type: core.Input }],
107
+ disabled: [{ type: core.Input }],
108
+ type: [{ type: core.Input }],
109
+ contentHidden: [{ type: core.Input, args: ['content-hidden',] }]
110
+ };
67
111
 
68
- /**
69
- * Directive to provide Angular integration for the text field
70
- */
71
- var NimbleTextFieldDirective = /** @class */ (function () {
72
- function NimbleTextFieldDirective() {
73
- }
74
- return NimbleTextFieldDirective;
75
- }());
76
- NimbleTextFieldDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
77
- NimbleTextFieldDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTextFieldDirective, selector: "nimble-text-field", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "this.readonly" } }, ngImport: i0__namespace });
78
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldDirective, decorators: [{
79
- type: i0.Directive,
80
- args: [{
81
- selector: 'nimble-text-field'
82
- }]
83
- }], propDecorators: { readonly: [{
84
- type: i0.HostBinding,
85
- args: ['attr.readonly']
86
- }, {
87
- type: i0.Input
88
- }] } });
112
+ var NimbleButtonModule = /** @class */ (function () {
113
+ function NimbleButtonModule() {
114
+ }
115
+ return NimbleButtonModule;
116
+ }());
117
+ NimbleButtonModule.decorators = [
118
+ { type: core.NgModule, args: [{
119
+ declarations: [NimbleButtonDirective],
120
+ imports: [common.CommonModule],
121
+ exports: [NimbleButtonDirective]
122
+ },] }
123
+ ];
89
124
 
90
- /*! *****************************************************************************
91
- Copyright (c) Microsoft Corporation.
125
+ /*! *****************************************************************************
126
+ Copyright (c) Microsoft Corporation.
92
127
 
93
- Permission to use, copy, modify, and/or distribute this software for any
94
- purpose with or without fee is hereby granted.
128
+ Permission to use, copy, modify, and/or distribute this software for any
129
+ purpose with or without fee is hereby granted.
95
130
 
96
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
97
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
98
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
99
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
100
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
101
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
102
- PERFORMANCE OF THIS SOFTWARE.
103
- ***************************************************************************** */
104
- /* global Reflect, Promise */
105
- var extendStatics = function (d, b) {
106
- extendStatics = Object.setPrototypeOf ||
107
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
108
- function (d, b) { for (var p in b)
109
- if (Object.prototype.hasOwnProperty.call(b, p))
110
- d[p] = b[p]; };
111
- return extendStatics(d, b);
112
- };
113
- function __extends(d, b) {
114
- if (typeof b !== "function" && b !== null)
115
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
116
- extendStatics(d, b);
117
- function __() { this.constructor = d; }
118
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
119
- }
120
- var __assign = function () {
121
- __assign = Object.assign || function __assign(t) {
122
- for (var s, i = 1, n = arguments.length; i < n; i++) {
123
- s = arguments[i];
124
- for (var p in s)
125
- if (Object.prototype.hasOwnProperty.call(s, p))
126
- t[p] = s[p];
127
- }
128
- return t;
129
- };
130
- return __assign.apply(this, arguments);
131
- };
132
- function __rest(s, e) {
133
- var t = {};
134
- for (var p in s)
135
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
136
- t[p] = s[p];
137
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
138
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
139
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
140
- t[p[i]] = s[p[i]];
141
- }
131
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
132
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
133
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
134
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
135
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
136
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
137
+ PERFORMANCE OF THIS SOFTWARE.
138
+ ***************************************************************************** */
139
+ /* global Reflect, Promise */
140
+ var extendStatics = function (d, b) {
141
+ extendStatics = Object.setPrototypeOf ||
142
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
143
+ function (d, b) { for (var p in b)
144
+ if (Object.prototype.hasOwnProperty.call(b, p))
145
+ d[p] = b[p]; };
146
+ return extendStatics(d, b);
147
+ };
148
+ function __extends(d, b) {
149
+ if (typeof b !== "function" && b !== null)
150
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
151
+ extendStatics(d, b);
152
+ function __() { this.constructor = d; }
153
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
154
+ }
155
+ var __assign = function () {
156
+ __assign = Object.assign || function __assign(t) {
157
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
158
+ s = arguments[i];
159
+ for (var p in s)
160
+ if (Object.prototype.hasOwnProperty.call(s, p))
161
+ t[p] = s[p];
162
+ }
142
163
  return t;
143
- }
144
- function __decorate(decorators, target, key, desc) {
145
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
146
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
147
- r = Reflect.decorate(decorators, target, key, desc);
148
- else
149
- for (var i = decorators.length - 1; i >= 0; i--)
150
- if (d = decorators[i])
151
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
152
- return c > 3 && r && Object.defineProperty(target, key, r), r;
153
- }
154
- function __param(paramIndex, decorator) {
155
- return function (target, key) { decorator(target, key, paramIndex); };
156
- }
157
- function __metadata(metadataKey, metadataValue) {
158
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
159
- return Reflect.metadata(metadataKey, metadataValue);
160
- }
161
- function __awaiter(thisArg, _arguments, P, generator) {
162
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
163
- return new (P || (P = Promise))(function (resolve, reject) {
164
- function fulfilled(value) { try {
165
- step(generator.next(value));
166
- }
167
- catch (e) {
168
- reject(e);
169
- } }
170
- function rejected(value) { try {
171
- step(generator["throw"](value));
172
- }
173
- catch (e) {
174
- reject(e);
175
- } }
176
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
177
- step((generator = generator.apply(thisArg, _arguments || [])).next());
178
- });
179
- }
180
- function __generator(thisArg, body) {
181
- var _ = { label: 0, sent: function () { if (t[0] & 1)
182
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
183
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
184
- function verb(n) { return function (v) { return step([n, v]); }; }
185
- function step(op) {
186
- if (f)
187
- throw new TypeError("Generator is already executing.");
188
- while (_)
189
- try {
190
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
191
- return t;
192
- if (y = 0, t)
193
- op = [op[0] & 2, t.value];
194
- switch (op[0]) {
195
- case 0:
196
- case 1:
164
+ };
165
+ return __assign.apply(this, arguments);
166
+ };
167
+ function __rest(s, e) {
168
+ var t = {};
169
+ for (var p in s)
170
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
171
+ t[p] = s[p];
172
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
173
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
174
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
175
+ t[p[i]] = s[p[i]];
176
+ }
177
+ return t;
178
+ }
179
+ function __decorate(decorators, target, key, desc) {
180
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
181
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
182
+ r = Reflect.decorate(decorators, target, key, desc);
183
+ else
184
+ for (var i = decorators.length - 1; i >= 0; i--)
185
+ if (d = decorators[i])
186
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
187
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
188
+ }
189
+ function __param(paramIndex, decorator) {
190
+ return function (target, key) { decorator(target, key, paramIndex); };
191
+ }
192
+ function __metadata(metadataKey, metadataValue) {
193
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
194
+ return Reflect.metadata(metadataKey, metadataValue);
195
+ }
196
+ function __awaiter(thisArg, _arguments, P, generator) {
197
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
198
+ return new (P || (P = Promise))(function (resolve, reject) {
199
+ function fulfilled(value) { try {
200
+ step(generator.next(value));
201
+ }
202
+ catch (e) {
203
+ reject(e);
204
+ } }
205
+ function rejected(value) { try {
206
+ step(generator["throw"](value));
207
+ }
208
+ catch (e) {
209
+ reject(e);
210
+ } }
211
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
212
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
213
+ });
214
+ }
215
+ function __generator(thisArg, body) {
216
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
217
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
218
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
219
+ function verb(n) { return function (v) { return step([n, v]); }; }
220
+ function step(op) {
221
+ if (f)
222
+ throw new TypeError("Generator is already executing.");
223
+ while (_)
224
+ try {
225
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
226
+ return t;
227
+ if (y = 0, t)
228
+ op = [op[0] & 2, t.value];
229
+ switch (op[0]) {
230
+ case 0:
231
+ case 1:
232
+ t = op;
233
+ break;
234
+ case 4:
235
+ _.label++;
236
+ return { value: op[1], done: false };
237
+ case 5:
238
+ _.label++;
239
+ y = op[1];
240
+ op = [0];
241
+ continue;
242
+ case 7:
243
+ op = _.ops.pop();
244
+ _.trys.pop();
245
+ continue;
246
+ default:
247
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
248
+ _ = 0;
249
+ continue;
250
+ }
251
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
252
+ _.label = op[1];
253
+ break;
254
+ }
255
+ if (op[0] === 6 && _.label < t[1]) {
256
+ _.label = t[1];
197
257
  t = op;
198
258
  break;
199
- case 4:
200
- _.label++;
201
- return { value: op[1], done: false };
202
- case 5:
203
- _.label++;
204
- y = op[1];
205
- op = [0];
206
- continue;
207
- case 7:
208
- op = _.ops.pop();
209
- _.trys.pop();
210
- continue;
211
- default:
212
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
213
- _ = 0;
214
- continue;
215
- }
216
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
217
- _.label = op[1];
218
- break;
219
- }
220
- if (op[0] === 6 && _.label < t[1]) {
221
- _.label = t[1];
222
- t = op;
223
- break;
224
- }
225
- if (t && _.label < t[2]) {
226
- _.label = t[2];
227
- _.ops.push(op);
228
- break;
229
- }
230
- if (t[2])
231
- _.ops.pop();
232
- _.trys.pop();
233
- continue;
234
- }
235
- op = body.call(thisArg, _);
236
- }
237
- catch (e) {
238
- op = [6, e];
239
- y = 0;
240
- }
241
- finally {
242
- f = t = 0;
259
+ }
260
+ if (t && _.label < t[2]) {
261
+ _.label = t[2];
262
+ _.ops.push(op);
263
+ break;
264
+ }
265
+ if (t[2])
266
+ _.ops.pop();
267
+ _.trys.pop();
268
+ continue;
243
269
  }
244
- if (op[0] & 5)
245
- throw op[1];
246
- return { value: op[0] ? op[1] : void 0, done: true };
247
- }
270
+ op = body.call(thisArg, _);
271
+ }
272
+ catch (e) {
273
+ op = [6, e];
274
+ y = 0;
275
+ }
276
+ finally {
277
+ f = t = 0;
278
+ }
279
+ if (op[0] & 5)
280
+ throw op[1];
281
+ return { value: op[0] ? op[1] : void 0, done: true };
248
282
  }
249
- var __createBinding = Object.create ? (function (o, m, k, k2) {
250
- if (k2 === undefined)
251
- k2 = k;
252
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
253
- }) : (function (o, m, k, k2) {
254
- if (k2 === undefined)
255
- k2 = k;
256
- o[k2] = m[k];
257
- });
258
- function __exportStar(m, o) {
259
- for (var p in m)
260
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
261
- __createBinding(o, m, p);
283
+ }
284
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
285
+ if (k2 === undefined)
286
+ k2 = k;
287
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
288
+ }) : (function (o, m, k, k2) {
289
+ if (k2 === undefined)
290
+ k2 = k;
291
+ o[k2] = m[k];
292
+ });
293
+ function __exportStar(m, o) {
294
+ for (var p in m)
295
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
296
+ __createBinding(o, m, p);
297
+ }
298
+ function __values(o) {
299
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
300
+ if (m)
301
+ return m.call(o);
302
+ if (o && typeof o.length === "number")
303
+ return {
304
+ next: function () {
305
+ if (o && i >= o.length)
306
+ o = void 0;
307
+ return { value: o && o[i++], done: !o };
308
+ }
309
+ };
310
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
311
+ }
312
+ function __read(o, n) {
313
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
314
+ if (!m)
315
+ return o;
316
+ var i = m.call(o), r, ar = [], e;
317
+ try {
318
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
319
+ ar.push(r.value);
262
320
  }
263
- function __values(o) {
264
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
265
- if (m)
266
- return m.call(o);
267
- if (o && typeof o.length === "number")
268
- return {
269
- next: function () {
270
- if (o && i >= o.length)
271
- o = void 0;
272
- return { value: o && o[i++], done: !o };
273
- }
274
- };
275
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
321
+ catch (error) {
322
+ e = { error: error };
276
323
  }
277
- function __read(o, n) {
278
- var m = typeof Symbol === "function" && o[Symbol.iterator];
279
- if (!m)
280
- return o;
281
- var i = m.call(o), r, ar = [], e;
324
+ finally {
282
325
  try {
283
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
284
- ar.push(r.value);
285
- }
286
- catch (error) {
287
- e = { error: error };
326
+ if (r && !r.done && (m = i["return"]))
327
+ m.call(i);
288
328
  }
289
329
  finally {
290
- try {
291
- if (r && !r.done && (m = i["return"]))
292
- m.call(i);
293
- }
294
- finally {
295
- if (e)
296
- throw e.error;
297
- }
330
+ if (e)
331
+ throw e.error;
298
332
  }
299
- return ar;
300
333
  }
301
- /** @deprecated */
302
- function __spread() {
303
- for (var ar = [], i = 0; i < arguments.length; i++)
304
- ar = ar.concat(__read(arguments[i]));
305
- return ar;
334
+ return ar;
335
+ }
336
+ /** @deprecated */
337
+ function __spread() {
338
+ for (var ar = [], i = 0; i < arguments.length; i++)
339
+ ar = ar.concat(__read(arguments[i]));
340
+ return ar;
341
+ }
342
+ /** @deprecated */
343
+ function __spreadArrays() {
344
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
345
+ s += arguments[i].length;
346
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
347
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
348
+ r[k] = a[j];
349
+ return r;
350
+ }
351
+ function __spreadArray(to, from, pack) {
352
+ if (pack || arguments.length === 2)
353
+ for (var i = 0, l = from.length, ar; i < l; i++) {
354
+ if (ar || !(i in from)) {
355
+ if (!ar)
356
+ ar = Array.prototype.slice.call(from, 0, i);
357
+ ar[i] = from[i];
358
+ }
359
+ }
360
+ return to.concat(ar || Array.prototype.slice.call(from));
361
+ }
362
+ function __await(v) {
363
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
364
+ }
365
+ function __asyncGenerator(thisArg, _arguments, generator) {
366
+ if (!Symbol.asyncIterator)
367
+ throw new TypeError("Symbol.asyncIterator is not defined.");
368
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
369
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
370
+ function verb(n) { if (g[n])
371
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
372
+ function resume(n, v) { try {
373
+ step(g[n](v));
306
374
  }
307
- /** @deprecated */
308
- function __spreadArrays() {
309
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
310
- s += arguments[i].length;
311
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
312
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
313
- r[k] = a[j];
314
- return r;
375
+ catch (e) {
376
+ settle(q[0][3], e);
377
+ } }
378
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
379
+ function fulfill(value) { resume("next", value); }
380
+ function reject(value) { resume("throw", value); }
381
+ function settle(f, v) { if (f(v), q.shift(), q.length)
382
+ resume(q[0][0], q[0][1]); }
383
+ }
384
+ function __asyncDelegator(o) {
385
+ var i, p;
386
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
387
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
388
+ }
389
+ function __asyncValues(o) {
390
+ if (!Symbol.asyncIterator)
391
+ throw new TypeError("Symbol.asyncIterator is not defined.");
392
+ var m = o[Symbol.asyncIterator], i;
393
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
394
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
395
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
396
+ }
397
+ function __makeTemplateObject(cooked, raw) {
398
+ if (Object.defineProperty) {
399
+ Object.defineProperty(cooked, "raw", { value: raw });
315
400
  }
316
- function __spreadArray(to, from, pack) {
317
- if (pack || arguments.length === 2)
318
- for (var i = 0, l = from.length, ar; i < l; i++) {
319
- if (ar || !(i in from)) {
320
- if (!ar)
321
- ar = Array.prototype.slice.call(from, 0, i);
322
- ar[i] = from[i];
323
- }
324
- }
325
- return to.concat(ar || Array.prototype.slice.call(from));
401
+ else {
402
+ cooked.raw = raw;
326
403
  }
327
- function __await(v) {
328
- return this instanceof __await ? (this.v = v, this) : new __await(v);
404
+ return cooked;
405
+ }
406
+ ;
407
+ var __setModuleDefault = Object.create ? (function (o, v) {
408
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
409
+ }) : function (o, v) {
410
+ o["default"] = v;
411
+ };
412
+ function __importStar(mod) {
413
+ if (mod && mod.__esModule)
414
+ return mod;
415
+ var result = {};
416
+ if (mod != null)
417
+ for (var k in mod)
418
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
419
+ __createBinding(result, mod, k);
420
+ __setModuleDefault(result, mod);
421
+ return result;
422
+ }
423
+ function __importDefault(mod) {
424
+ return (mod && mod.__esModule) ? mod : { default: mod };
425
+ }
426
+ function __classPrivateFieldGet(receiver, state, kind, f) {
427
+ if (kind === "a" && !f)
428
+ throw new TypeError("Private accessor was defined without a getter");
429
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
430
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
431
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
432
+ }
433
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
434
+ if (kind === "m")
435
+ throw new TypeError("Private method is not writable");
436
+ if (kind === "a" && !f)
437
+ throw new TypeError("Private accessor was defined without a setter");
438
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
439
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
440
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
441
+ }
442
+
443
+ /**
444
+ * Extension of Angular's CheckboxControlValueAccessor to target the Nimble checkbox control.
445
+ *
446
+ * Directive decorator based on CheckboxControlValueAccessor decorator
447
+ * https://github.com/angular/angular/blob/bbababe5900ea8f4c8fccd88238f6fe08a2ceb63/packages/forms/src/directives/checkbox_value_accessor.ts#L42
448
+ */
449
+ var NimbleCheckboxControlValueAccessorDirective = /** @class */ (function (_super) {
450
+ __extends(NimbleCheckboxControlValueAccessorDirective, _super);
451
+ function NimbleCheckboxControlValueAccessorDirective() {
452
+ return _super !== null && _super.apply(this, arguments) || this;
329
453
  }
330
- function __asyncGenerator(thisArg, _arguments, generator) {
331
- if (!Symbol.asyncIterator)
332
- throw new TypeError("Symbol.asyncIterator is not defined.");
333
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
334
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
335
- function verb(n) { if (g[n])
336
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
337
- function resume(n, v) { try {
338
- step(g[n](v));
339
- }
340
- catch (e) {
341
- settle(q[0][3], e);
342
- } }
343
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
344
- function fulfill(value) { resume("next", value); }
345
- function reject(value) { resume("throw", value); }
346
- function settle(f, v) { if (f(v), q.shift(), q.length)
347
- resume(q[0][0], q[0][1]); }
454
+ return NimbleCheckboxControlValueAccessorDirective;
455
+ }(forms.CheckboxControlValueAccessor));
456
+ NimbleCheckboxControlValueAccessorDirective.decorators = [
457
+ { type: core.Directive, args: [{
458
+ selector: 'nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]',
459
+ // The following host metadata is duplicated from CheckboxControlValueAccessor
460
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
461
+ host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
462
+ providers: [{
463
+ provide: forms.NG_VALUE_ACCESSOR,
464
+ useExisting: core.forwardRef(function () { return NimbleCheckboxControlValueAccessorDirective; }),
465
+ multi: true
466
+ }]
467
+ },] }
468
+ ];
469
+
470
+ /**
471
+ * Directive to provide Angular integration for the checkbox.
472
+ */
473
+ var NimbleCheckboxDirective = /** @class */ (function () {
474
+ function NimbleCheckboxDirective() {
348
475
  }
349
- function __asyncDelegator(o) {
350
- var i, p;
351
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
352
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
476
+ return NimbleCheckboxDirective;
477
+ }());
478
+ NimbleCheckboxDirective.decorators = [
479
+ { type: core.Directive, args: [{
480
+ selector: 'nimble-checkbox'
481
+ },] }
482
+ ];
483
+
484
+ var NimbleCheckboxModule = /** @class */ (function () {
485
+ function NimbleCheckboxModule() {
353
486
  }
354
- function __asyncValues(o) {
355
- if (!Symbol.asyncIterator)
356
- throw new TypeError("Symbol.asyncIterator is not defined.");
357
- var m = o[Symbol.asyncIterator], i;
358
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
359
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
360
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
487
+ return NimbleCheckboxModule;
488
+ }());
489
+ NimbleCheckboxModule.decorators = [
490
+ { type: core.NgModule, args: [{
491
+ declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective],
492
+ imports: [common.CommonModule],
493
+ exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective]
494
+ },] }
495
+ ];
496
+
497
+ /**
498
+ * Directive to provide Angular integration for the drawer.
499
+ */
500
+ var NimbleDrawerDirective = /** @class */ (function () {
501
+ function NimbleDrawerDirective(renderer, elementRef) {
502
+ this.renderer = renderer;
503
+ this.elementRef = elementRef;
504
+ this.stateChange = new core.EventEmitter();
361
505
  }
362
- function __makeTemplateObject(cooked, raw) {
363
- if (Object.defineProperty) {
364
- Object.defineProperty(cooked, "raw", { value: raw });
365
- }
366
- else {
367
- cooked.raw = raw;
506
+ Object.defineProperty(NimbleDrawerDirective.prototype, "location", {
507
+ get: function () {
508
+ return this.elementRef.nativeElement.location;
509
+ },
510
+ set: function (value) {
511
+ this.renderer.setProperty(this.elementRef.nativeElement, 'location', value);
512
+ },
513
+ enumerable: false,
514
+ configurable: true
515
+ });
516
+ Object.defineProperty(NimbleDrawerDirective.prototype, "state", {
517
+ get: function () {
518
+ return this.elementRef.nativeElement.state;
519
+ },
520
+ set: function (value) {
521
+ this.renderer.setProperty(this.elementRef.nativeElement, 'state', value);
522
+ },
523
+ enumerable: false,
524
+ configurable: true
525
+ });
526
+ Object.defineProperty(NimbleDrawerDirective.prototype, "modal", {
527
+ get: function () {
528
+ return this.elementRef.nativeElement.modal;
529
+ },
530
+ set: function (value) {
531
+ this.renderer.setProperty(this.elementRef.nativeElement, 'modal', toBooleanProperty(value));
532
+ },
533
+ enumerable: false,
534
+ configurable: true
535
+ });
536
+ NimbleDrawerDirective.prototype.show = function () {
537
+ this.state = types$1.DrawerState.Opening;
538
+ };
539
+ NimbleDrawerDirective.prototype.hide = function () {
540
+ this.state = types$1.DrawerState.Closing;
541
+ };
542
+ NimbleDrawerDirective.prototype.onStateChanged = function ($event) {
543
+ if ($event.target === this.elementRef.nativeElement) {
544
+ this.stateChange.emit(this.state);
368
545
  }
369
- return cooked;
370
- }
371
- ;
372
- var __setModuleDefault = Object.create ? (function (o, v) {
373
- Object.defineProperty(o, "default", { enumerable: true, value: v });
374
- }) : function (o, v) {
375
- o["default"] = v;
376
546
  };
377
- function __importStar(mod) {
378
- if (mod && mod.__esModule)
379
- return mod;
380
- var result = {};
381
- if (mod != null)
382
- for (var k in mod)
383
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
384
- __createBinding(result, mod, k);
385
- __setModuleDefault(result, mod);
386
- return result;
547
+ return NimbleDrawerDirective;
548
+ }());
549
+ NimbleDrawerDirective.decorators = [
550
+ { type: core.Directive, args: [{
551
+ selector: 'nimble-drawer'
552
+ },] }
553
+ ];
554
+ NimbleDrawerDirective.ctorParameters = function () { return [
555
+ { type: core.Renderer2 },
556
+ { type: core.ElementRef }
557
+ ]; };
558
+ NimbleDrawerDirective.propDecorators = {
559
+ location: [{ type: core.Input }],
560
+ state: [{ type: core.Input }],
561
+ modal: [{ type: core.Input }],
562
+ stateChange: [{ type: core.Output }],
563
+ onStateChanged: [{ type: core.HostListener, args: ['state-change', ['$event'],] }]
564
+ };
565
+
566
+ var NimbleDrawerModule = /** @class */ (function () {
567
+ function NimbleDrawerModule() {
387
568
  }
388
- function __importDefault(mod) {
389
- return (mod && mod.__esModule) ? mod : { default: mod };
569
+ return NimbleDrawerModule;
570
+ }());
571
+ NimbleDrawerModule.decorators = [
572
+ { type: core.NgModule, args: [{
573
+ declarations: [NimbleDrawerDirective],
574
+ imports: [common.CommonModule],
575
+ exports: [NimbleDrawerDirective]
576
+ },] }
577
+ ];
578
+
579
+ /**
580
+ * Extension of Angular's SelectControlValueAccessor to target the Nimble select control.
581
+ *
582
+ * @see NimbleSelectOptionDirective
583
+ *
584
+ * Directive decorator based on SelectControlValueAccessor decorator
585
+ * https://github.com/angular/angular/blob/master/packages/forms/src/directives/select_control_value_accessor.ts#L85
586
+ */
587
+ var NimbleSelectControlValueAccessorDirective = /** @class */ (function (_super) {
588
+ __extends(NimbleSelectControlValueAccessorDirective, _super);
589
+ function NimbleSelectControlValueAccessorDirective() {
590
+ return _super !== null && _super.apply(this, arguments) || this;
390
591
  }
391
- function __classPrivateFieldGet(receiver, state, kind, f) {
392
- if (kind === "a" && !f)
393
- throw new TypeError("Private accessor was defined without a getter");
394
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
395
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
396
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
592
+ return NimbleSelectControlValueAccessorDirective;
593
+ }(forms.SelectControlValueAccessor));
594
+ NimbleSelectControlValueAccessorDirective.decorators = [
595
+ { type: core.Directive, args: [{
596
+ selector: 'nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]',
597
+ // The following host metadata is duplicated from SelectControlValueAccessor
598
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
599
+ host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
600
+ providers: [{
601
+ provide: forms.NG_VALUE_ACCESSOR,
602
+ useExisting: core.forwardRef(function () { return NimbleSelectControlValueAccessorDirective; }),
603
+ multi: true
604
+ }]
605
+ },] }
606
+ ];
607
+
608
+ /**
609
+ * Directive to provide Angular integration for the listbox option.
610
+ */
611
+ var NimbleListboxOptionDirective = /** @class */ (function (_super) {
612
+ __extends(NimbleListboxOptionDirective, _super);
613
+ function NimbleListboxOptionDirective(elementRef, renderer, select) {
614
+ var _this = _super.call(this, elementRef, renderer, select) || this;
615
+ _this.elementRef = elementRef;
616
+ _this.renderer = renderer;
617
+ return _this;
397
618
  }
398
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
399
- if (kind === "m")
400
- throw new TypeError("Private method is not writable");
401
- if (kind === "a" && !f)
402
- throw new TypeError("Private accessor was defined without a setter");
403
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
404
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
405
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
619
+ Object.defineProperty(NimbleListboxOptionDirective.prototype, "disabled", {
620
+ get: function () {
621
+ return this.elementRef.nativeElement.disabled;
622
+ },
623
+ set: function (value) {
624
+ this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
625
+ },
626
+ enumerable: false,
627
+ configurable: true
628
+ });
629
+ return NimbleListboxOptionDirective;
630
+ }(forms.NgSelectOption));
631
+ NimbleListboxOptionDirective.decorators = [
632
+ { type: core.Directive, args: [{
633
+ selector: 'nimble-listbox-option'
634
+ },] }
635
+ ];
636
+ NimbleListboxOptionDirective.ctorParameters = function () { return [
637
+ { type: core.ElementRef },
638
+ { type: core.Renderer2 },
639
+ { type: NimbleSelectControlValueAccessorDirective, decorators: [{ type: core.Inject, args: [NimbleSelectControlValueAccessorDirective,] }, { type: core.Optional }, { type: core.Host }] }
640
+ ]; };
641
+ NimbleListboxOptionDirective.propDecorators = {
642
+ disabled: [{ type: core.Input }]
643
+ };
644
+
645
+ var NimbleListboxOptionModule = /** @class */ (function () {
646
+ function NimbleListboxOptionModule() {
406
647
  }
648
+ return NimbleListboxOptionModule;
649
+ }());
650
+ NimbleListboxOptionModule.decorators = [
651
+ { type: core.NgModule, args: [{
652
+ declarations: [NimbleListboxOptionDirective],
653
+ imports: [common.CommonModule],
654
+ exports: [NimbleListboxOptionDirective]
655
+ },] }
656
+ ];
407
657
 
408
- /**
409
- * Extension of Angular's DefaultValueAccessor to target the text-based inputs.
410
- *
411
- * Directive decorator based on DefaultValueAccessor decorator
412
- * https://github.com/angular/angular/blob/master/packages/forms/src/directives/default_value_accessor.ts#L72
413
- */
414
- var NimbleDefaultControlValueAccessorDirective = /** @class */ (function (_super) {
415
- __extends(NimbleDefaultControlValueAccessorDirective, _super);
416
- function NimbleDefaultControlValueAccessorDirective() {
417
- return _super !== null && _super.apply(this, arguments) || this;
418
- }
419
- return NimbleDefaultControlValueAccessorDirective;
420
- }(forms.DefaultValueAccessor));
421
- NimbleDefaultControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleDefaultControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
422
- NimbleDefaultControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleDefaultControlValueAccessorDirective, selector: "nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]", host: { listeners: { "input": "$any(this)._handleInput($event.target.value)", "blur": "onTouched()", "compositionstart": "$any(this)._compositionStart()", "compositionend": "$any(this)._compositionEnd($event.target.value)" } }, providers: [{
423
- provide: forms.NG_VALUE_ACCESSOR,
424
- useExisting: i0.forwardRef(function () { return NimbleDefaultControlValueAccessorDirective; }),
425
- multi: true
426
- }], usesInheritance: true, ngImport: i0__namespace });
427
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleDefaultControlValueAccessorDirective, decorators: [{
428
- type: i0.Directive,
429
- args: [{
430
- selector: 'nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]',
431
- // The following host metadata is duplicated from DefaultValueAccessor
432
- // eslint-disable-next-line @angular-eslint/no-host-metadata-property
433
- host: {
434
- '(input)': '$any(this)._handleInput($event.target.value)',
435
- '(blur)': 'onTouched()',
436
- '(compositionstart)': '$any(this)._compositionStart()',
437
- '(compositionend)': '$any(this)._compositionEnd($event.target.value)'
438
- },
439
- providers: [{
440
- provide: forms.NG_VALUE_ACCESSOR,
441
- useExisting: i0.forwardRef(function () { return NimbleDefaultControlValueAccessorDirective; }),
442
- multi: true
443
- }]
444
- }]
445
- }] });
658
+ /**
659
+ * Directive to provide Angular integration for the menu.
660
+ */
661
+ var NimbleMenuDirective = /** @class */ (function () {
662
+ function NimbleMenuDirective() {
663
+ }
664
+ return NimbleMenuDirective;
665
+ }());
666
+ NimbleMenuDirective.decorators = [
667
+ { type: core.Directive, args: [{
668
+ selector: 'nimble-menu'
669
+ },] }
670
+ ];
446
671
 
447
- /**
448
- * Extension of Angular's NumberValueAccessor to target the number-based inputs.
449
- *
450
- * Directive decorator based on NumberValueAccessor decorator
451
- * https://github.com/angular/angular/blob/master/packages/forms/src/directives/number_value_accessor.ts#L43
452
- */
453
- var NimbleNumberControlValueAccessorDirective = /** @class */ (function (_super) {
454
- __extends(NimbleNumberControlValueAccessorDirective, _super);
455
- function NimbleNumberControlValueAccessorDirective() {
456
- return _super !== null && _super.apply(this, arguments) || this;
457
- }
458
- return NimbleNumberControlValueAccessorDirective;
459
- }(forms.NumberValueAccessor));
460
- NimbleNumberControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
461
- NimbleNumberControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleNumberControlValueAccessorDirective, selector: "nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]", host: { listeners: { "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [{
462
- provide: forms.NG_VALUE_ACCESSOR,
463
- useExisting: i0.forwardRef(function () { return NimbleNumberControlValueAccessorDirective; }),
464
- multi: true
465
- }], usesInheritance: true, ngImport: i0__namespace });
466
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberControlValueAccessorDirective, decorators: [{
467
- type: i0.Directive,
468
- args: [{
469
- selector: 'nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]',
470
- // The following host metadata is duplicated from NumberValueAccessor
471
- // eslint-disable-next-line @angular-eslint/no-host-metadata-property
472
- host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
473
- providers: [{
474
- provide: forms.NG_VALUE_ACCESSOR,
475
- useExisting: i0.forwardRef(function () { return NimbleNumberControlValueAccessorDirective; }),
476
- multi: true
477
- }]
478
- }]
479
- }] });
672
+ var NimbleMenuModule = /** @class */ (function () {
673
+ function NimbleMenuModule() {
674
+ }
675
+ return NimbleMenuModule;
676
+ }());
677
+ NimbleMenuModule.decorators = [
678
+ { type: core.NgModule, args: [{
679
+ declarations: [NimbleMenuDirective],
680
+ imports: [common.CommonModule],
681
+ exports: [NimbleMenuDirective]
682
+ },] }
683
+ ];
480
684
 
481
- var NimbleControlValueAccessorModule = /** @class */ (function () {
482
- function NimbleControlValueAccessorModule() {
483
- }
484
- return NimbleControlValueAccessorModule;
485
- }());
486
- NimbleControlValueAccessorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleControlValueAccessorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
487
- NimbleControlValueAccessorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleControlValueAccessorModule, declarations: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective], imports: [common.CommonModule], exports: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective] });
488
- NimbleControlValueAccessorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleControlValueAccessorModule, imports: [[common.CommonModule]] });
489
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleControlValueAccessorModule, decorators: [{
490
- type: i0.NgModule,
491
- args: [{
492
- declarations: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective],
493
- imports: [common.CommonModule],
494
- exports: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective]
495
- }]
496
- }] });
685
+ /**
686
+ * Directive to provide Angular integration for the menu.
687
+ */
688
+ var NimbleMenuItemDirective = /** @class */ (function () {
689
+ function NimbleMenuItemDirective(renderer, elementRef) {
690
+ this.renderer = renderer;
691
+ this.elementRef = elementRef;
692
+ }
693
+ Object.defineProperty(NimbleMenuItemDirective.prototype, "disabled", {
694
+ get: function () {
695
+ return this.elementRef.nativeElement.disabled;
696
+ },
697
+ set: function (value) {
698
+ this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
699
+ },
700
+ enumerable: false,
701
+ configurable: true
702
+ });
703
+ return NimbleMenuItemDirective;
704
+ }());
705
+ NimbleMenuItemDirective.decorators = [
706
+ { type: core.Directive, args: [{
707
+ selector: 'nimble-menu-item'
708
+ },] }
709
+ ];
710
+ NimbleMenuItemDirective.ctorParameters = function () { return [
711
+ { type: core.Renderer2 },
712
+ { type: core.ElementRef }
713
+ ]; };
714
+ NimbleMenuItemDirective.propDecorators = {
715
+ disabled: [{ type: core.Input }]
716
+ };
497
717
 
498
- var NimbleTextFieldModule = /** @class */ (function () {
499
- function NimbleTextFieldModule() {
500
- }
501
- return NimbleTextFieldModule;
502
- }());
503
- NimbleTextFieldModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
504
- NimbleTextFieldModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldModule, declarations: [NimbleTextFieldDirective], imports: [common.CommonModule, NimbleControlValueAccessorModule], exports: [NimbleTextFieldDirective, NimbleControlValueAccessorModule] });
505
- NimbleTextFieldModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldModule, providers: [], imports: [[common.CommonModule, NimbleControlValueAccessorModule], NimbleControlValueAccessorModule] });
506
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTextFieldModule, decorators: [{
507
- type: i0.NgModule,
508
- args: [{
509
- declarations: [NimbleTextFieldDirective],
510
- imports: [common.CommonModule, NimbleControlValueAccessorModule],
511
- providers: [],
512
- exports: [NimbleTextFieldDirective, NimbleControlValueAccessorModule]
513
- }]
514
- }] });
718
+ var NimbleMenuItemModule = /** @class */ (function () {
719
+ function NimbleMenuItemModule() {
720
+ }
721
+ return NimbleMenuItemModule;
722
+ }());
723
+ NimbleMenuItemModule.decorators = [
724
+ { type: core.NgModule, args: [{
725
+ declarations: [NimbleMenuItemDirective],
726
+ imports: [common.CommonModule],
727
+ exports: [NimbleMenuItemDirective]
728
+ },] }
729
+ ];
515
730
 
516
- /**
517
- * Directive to provide Angular integration for the number field.
518
- */
519
- var NimbleNumberFieldDirective = /** @class */ (function () {
520
- function NimbleNumberFieldDirective() {
521
- }
522
- return NimbleNumberFieldDirective;
523
- }());
524
- NimbleNumberFieldDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
525
- NimbleNumberFieldDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleNumberFieldDirective, selector: "nimble-number-field", inputs: { readonly: "readonly", min: "min", max: "max", step: "step", placeholder: "placeholder" }, host: { properties: { "attr.readonly": "this.readonly", "attr.min": "this.min", "attr.max": "this.max", "attr.step": "this.step", "attr.placeholder": "this.placeholder" } }, ngImport: i0__namespace });
526
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldDirective, decorators: [{
527
- type: i0.Directive,
528
- args: [{
529
- selector: 'nimble-number-field'
731
+ /**
732
+ * Extension of Angular's NumberValueAccessor to target the number-based inputs.
733
+ *
734
+ * Directive decorator based on NumberValueAccessor decorator
735
+ * https://github.com/angular/angular/blob/master/packages/forms/src/directives/number_value_accessor.ts#L43
736
+ */
737
+ var NimbleNumberFieldControlValueAccessorDirective = /** @class */ (function (_super) {
738
+ __extends(NimbleNumberFieldControlValueAccessorDirective, _super);
739
+ function NimbleNumberFieldControlValueAccessorDirective() {
740
+ return _super !== null && _super.apply(this, arguments) || this;
741
+ }
742
+ return NimbleNumberFieldControlValueAccessorDirective;
743
+ }(forms.NumberValueAccessor));
744
+ NimbleNumberFieldControlValueAccessorDirective.decorators = [
745
+ { type: core.Directive, args: [{
746
+ selector: 'nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]',
747
+ // The following host metadata is duplicated from NumberValueAccessor
748
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
749
+ host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
750
+ providers: [{
751
+ provide: forms.NG_VALUE_ACCESSOR,
752
+ useExisting: core.forwardRef(function () { return NimbleNumberFieldControlValueAccessorDirective; }),
753
+ multi: true
530
754
  }]
531
- }], propDecorators: { readonly: [{
532
- type: i0.HostBinding,
533
- args: ['attr.readonly']
534
- }, {
535
- type: i0.Input
536
- }], min: [{
537
- type: i0.HostBinding,
538
- args: ['attr.min']
539
- }, {
540
- type: i0.Input
541
- }], max: [{
542
- type: i0.HostBinding,
543
- args: ['attr.max']
544
- }, {
545
- type: i0.Input
546
- }], step: [{
547
- type: i0.HostBinding,
548
- args: ['attr.step']
549
- }, {
550
- type: i0.Input
551
- }], placeholder: [{
552
- type: i0.HostBinding,
553
- args: ['attr.placeholder']
554
- }, {
555
- type: i0.Input
556
- }] } });
755
+ },] }
756
+ ];
557
757
 
558
- var NimbleNumberFieldModule = /** @class */ (function () {
559
- function NimbleNumberFieldModule() {
560
- }
561
- return NimbleNumberFieldModule;
562
- }());
563
- NimbleNumberFieldModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
564
- NimbleNumberFieldModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldModule, declarations: [NimbleNumberFieldDirective], imports: [common.CommonModule, NimbleControlValueAccessorModule], exports: [NimbleNumberFieldDirective, NimbleControlValueAccessorModule] });
565
- NimbleNumberFieldModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldModule, providers: [], imports: [[common.CommonModule, NimbleControlValueAccessorModule], NimbleControlValueAccessorModule] });
566
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberFieldModule, decorators: [{
567
- type: i0.NgModule,
568
- args: [{
569
- declarations: [NimbleNumberFieldDirective],
570
- imports: [common.CommonModule, NimbleControlValueAccessorModule],
571
- providers: [],
572
- exports: [NimbleNumberFieldDirective, NimbleControlValueAccessorModule]
573
- }]
574
- }] });
758
+ /**
759
+ * Directive to provide Angular integration for the number field.
760
+ */
761
+ var NimbleNumberFieldDirective = /** @class */ (function () {
762
+ function NimbleNumberFieldDirective(renderer, elementRef) {
763
+ this.renderer = renderer;
764
+ this.elementRef = elementRef;
765
+ }
766
+ Object.defineProperty(NimbleNumberFieldDirective.prototype, "readOnly", {
767
+ get: function () {
768
+ return this.elementRef.nativeElement.readOnly;
769
+ },
770
+ // readOnly property maps to the readonly attribute
771
+ // https://github.com/microsoft/fast/blob/46bb6d9aab2c37105f4434db3795e176c2354a4f/packages/web-components/fast-foundation/src/number-field/number-field.ts#L38
772
+ // eslint-disable-next-line @angular-eslint/no-input-rename
773
+ set: function (value) {
774
+ this.renderer.setProperty(this.elementRef.nativeElement, 'readOnly', toBooleanProperty(value));
775
+ },
776
+ enumerable: false,
777
+ configurable: true
778
+ });
779
+ Object.defineProperty(NimbleNumberFieldDirective.prototype, "min", {
780
+ get: function () {
781
+ return this.elementRef.nativeElement.min;
782
+ },
783
+ set: function (value) {
784
+ this.renderer.setProperty(this.elementRef.nativeElement, 'min', toNumberProperty(value));
785
+ },
786
+ enumerable: false,
787
+ configurable: true
788
+ });
789
+ Object.defineProperty(NimbleNumberFieldDirective.prototype, "max", {
790
+ get: function () {
791
+ return this.elementRef.nativeElement.max;
792
+ },
793
+ set: function (value) {
794
+ this.renderer.setProperty(this.elementRef.nativeElement, 'max', toNumberProperty(value));
795
+ },
796
+ enumerable: false,
797
+ configurable: true
798
+ });
799
+ Object.defineProperty(NimbleNumberFieldDirective.prototype, "step", {
800
+ get: function () {
801
+ return this.elementRef.nativeElement.step;
802
+ },
803
+ set: function (value) {
804
+ this.renderer.setProperty(this.elementRef.nativeElement, 'step', toNumberProperty(value));
805
+ },
806
+ enumerable: false,
807
+ configurable: true
808
+ });
809
+ Object.defineProperty(NimbleNumberFieldDirective.prototype, "placeholder", {
810
+ get: function () {
811
+ return this.elementRef.nativeElement.placeholder;
812
+ },
813
+ set: function (value) {
814
+ this.renderer.setProperty(this.elementRef.nativeElement, 'placeholder', value);
815
+ },
816
+ enumerable: false,
817
+ configurable: true
818
+ });
819
+ return NimbleNumberFieldDirective;
820
+ }());
821
+ NimbleNumberFieldDirective.decorators = [
822
+ { type: core.Directive, args: [{
823
+ selector: 'nimble-number-field'
824
+ },] }
825
+ ];
826
+ NimbleNumberFieldDirective.ctorParameters = function () { return [
827
+ { type: core.Renderer2 },
828
+ { type: core.ElementRef }
829
+ ]; };
830
+ NimbleNumberFieldDirective.propDecorators = {
831
+ readOnly: [{ type: core.Input, args: ['readonly',] }],
832
+ min: [{ type: core.Input }],
833
+ max: [{ type: core.Input }],
834
+ step: [{ type: core.Input }],
835
+ placeholder: [{ type: core.Input }]
836
+ };
575
837
 
576
- /**
577
- * Directive for Nimble select control Angular integration
578
- */
579
- var NimbleSelectDirective = /** @class */ (function () {
580
- function NimbleSelectDirective() {
581
- }
582
- return NimbleSelectDirective;
583
- }());
584
- NimbleSelectDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
585
- NimbleSelectDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleSelectDirective, selector: "nimble-select", ngImport: i0__namespace });
586
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectDirective, decorators: [{
587
- type: i0.Directive,
588
- args: [{
589
- selector: 'nimble-select',
590
- }]
591
- }] });
838
+ var NimbleNumberFieldModule = /** @class */ (function () {
839
+ function NimbleNumberFieldModule() {
840
+ }
841
+ return NimbleNumberFieldModule;
842
+ }());
843
+ NimbleNumberFieldModule.decorators = [
844
+ { type: core.NgModule, args: [{
845
+ declarations: [NimbleNumberFieldDirective, NimbleNumberFieldControlValueAccessorDirective],
846
+ imports: [common.CommonModule],
847
+ exports: [NimbleNumberFieldDirective, NimbleNumberFieldControlValueAccessorDirective]
848
+ },] }
849
+ ];
592
850
 
593
- /**
594
- * Extension of Angular's SelectControlValueAccessor to target the Nimble select control.
595
- *
596
- * @see NimbleSelectOptionDirective
597
- *
598
- * Directive decorator based on SelectControlValueAccessor decorator
599
- * https://github.com/angular/angular/blob/master/packages/forms/src/directives/select_control_value_accessor.ts#L85
600
- */
601
- var NimbleSelectControlValueAccessorDirective = /** @class */ (function (_super) {
602
- __extends(NimbleSelectControlValueAccessorDirective, _super);
603
- function NimbleSelectControlValueAccessorDirective() {
604
- return _super !== null && _super.apply(this, arguments) || this;
605
- }
606
- return NimbleSelectControlValueAccessorDirective;
607
- }(forms.SelectControlValueAccessor));
608
- NimbleSelectControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
609
- NimbleSelectControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleSelectControlValueAccessorDirective, selector: "nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [{
610
- provide: forms.NG_VALUE_ACCESSOR,
611
- useExisting: i0.forwardRef(function () { return NimbleSelectControlValueAccessorDirective; }),
612
- multi: true
613
- }], usesInheritance: true, ngImport: i0__namespace });
614
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectControlValueAccessorDirective, decorators: [{
615
- type: i0.Directive,
616
- args: [{
617
- selector: 'nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]',
618
- // The following host metadata is duplicated from SelectControlValueAccessor
619
- // eslint-disable-next-line @angular-eslint/no-host-metadata-property
620
- host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
621
- providers: [{
622
- provide: forms.NG_VALUE_ACCESSOR,
623
- useExisting: i0.forwardRef(function () { return NimbleSelectControlValueAccessorDirective; }),
624
- multi: true
625
- }]
626
- }]
627
- }] });
851
+ /**
852
+ * Directive for Nimble select control Angular integration
853
+ */
854
+ var NimbleSelectDirective = /** @class */ (function () {
855
+ function NimbleSelectDirective() {
856
+ }
857
+ return NimbleSelectDirective;
858
+ }());
859
+ NimbleSelectDirective.decorators = [
860
+ { type: core.Directive, args: [{
861
+ selector: 'nimble-select',
862
+ },] }
863
+ ];
628
864
 
629
- var NimbleSelectModule = /** @class */ (function () {
630
- function NimbleSelectModule() {
631
- }
632
- return NimbleSelectModule;
633
- }());
634
- NimbleSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
635
- NimbleSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectModule, declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective], imports: [common.CommonModule], exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective] });
636
- NimbleSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectModule, imports: [[common.CommonModule]] });
637
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectModule, decorators: [{
638
- type: i0.NgModule,
639
- args: [{
640
- declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective],
641
- imports: [common.CommonModule],
642
- exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective]
643
- }]
644
- }] });
865
+ var NimbleSelectModule = /** @class */ (function () {
866
+ function NimbleSelectModule() {
867
+ }
868
+ return NimbleSelectModule;
869
+ }());
870
+ NimbleSelectModule.decorators = [
871
+ { type: core.NgModule, args: [{
872
+ declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective],
873
+ imports: [common.CommonModule],
874
+ exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective]
875
+ },] }
876
+ ];
645
877
 
646
- /**
647
- * Directive to provide Angular integration for the listbox option.
648
- */
649
- var NimbleListboxOptionDirective = /** @class */ (function (_super) {
650
- __extends(NimbleListboxOptionDirective, _super);
651
- function NimbleListboxOptionDirective(element, renderer, select) {
652
- return _super.call(this, element, renderer, select) || this;
653
- }
654
- return NimbleListboxOptionDirective;
655
- }(forms.NgSelectOption));
656
- NimbleListboxOptionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: NimbleSelectControlValueAccessorDirective, host: true, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
657
- NimbleListboxOptionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleListboxOptionDirective, selector: "nimble-listbox-option", inputs: { disabled: "disabled" }, host: { properties: { "attr.disabled": "this.disabled" } }, usesInheritance: true, ngImport: i0__namespace });
658
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionDirective, decorators: [{
659
- type: i0.Directive,
660
- args: [{
661
- selector: 'nimble-listbox-option'
662
- }]
663
- }], ctorParameters: function () {
664
- return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: NimbleSelectControlValueAccessorDirective, decorators: [{
665
- type: i0.Optional
666
- }, {
667
- type: i0.Host
668
- }] }];
669
- }, propDecorators: { disabled: [{
670
- type: i0.HostBinding,
671
- args: ['attr.disabled']
672
- }, {
673
- type: i0.Input
674
- }] } });
878
+ /**
879
+ * Directive to provide Angular integration for the tab element.
880
+ */
881
+ var NimbleTabDirective = /** @class */ (function () {
882
+ function NimbleTabDirective(renderer, elementRef) {
883
+ this.renderer = renderer;
884
+ this.elementRef = elementRef;
885
+ }
886
+ Object.defineProperty(NimbleTabDirective.prototype, "disabled", {
887
+ get: function () {
888
+ return this.elementRef.nativeElement.disabled;
889
+ },
890
+ set: function (value) {
891
+ this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
892
+ },
893
+ enumerable: false,
894
+ configurable: true
895
+ });
896
+ return NimbleTabDirective;
897
+ }());
898
+ NimbleTabDirective.decorators = [
899
+ { type: core.Directive, args: [{
900
+ selector: 'nimble-tab'
901
+ },] }
902
+ ];
903
+ NimbleTabDirective.ctorParameters = function () { return [
904
+ { type: core.Renderer2 },
905
+ { type: core.ElementRef }
906
+ ]; };
907
+ NimbleTabDirective.propDecorators = {
908
+ disabled: [{ type: core.Input }]
909
+ };
675
910
 
676
- var NimbleListboxOptionModule = /** @class */ (function () {
677
- function NimbleListboxOptionModule() {
678
- }
679
- return NimbleListboxOptionModule;
680
- }());
681
- NimbleListboxOptionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
682
- NimbleListboxOptionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionModule, declarations: [NimbleListboxOptionDirective], imports: [common.CommonModule], exports: [NimbleListboxOptionDirective] });
683
- NimbleListboxOptionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionModule, imports: [[common.CommonModule]] });
684
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleListboxOptionModule, decorators: [{
685
- type: i0.NgModule,
686
- args: [{
687
- declarations: [NimbleListboxOptionDirective],
688
- imports: [common.CommonModule],
689
- exports: [NimbleListboxOptionDirective]
690
- }]
691
- }] });
911
+ var NimbleTabModule = /** @class */ (function () {
912
+ function NimbleTabModule() {
913
+ }
914
+ return NimbleTabModule;
915
+ }());
916
+ NimbleTabModule.decorators = [
917
+ { type: core.NgModule, args: [{
918
+ declarations: [NimbleTabDirective],
919
+ imports: [common.CommonModule],
920
+ exports: [NimbleTabDirective]
921
+ },] }
922
+ ];
692
923
 
693
- /**
694
- * Directive to provide Angular integration for the button.
695
- */
696
- var NimbleButtonDirective = /** @class */ (function () {
697
- function NimbleButtonDirective() {
698
- }
699
- return NimbleButtonDirective;
700
- }());
701
- NimbleButtonDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
702
- NimbleButtonDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleButtonDirective, selector: "nimble-button", inputs: { disabled: "disabled", appearance: "appearance" }, host: { properties: { "disabled": "this.disabled", "appearance": "this.appearance" } }, ngImport: i0__namespace });
703
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonDirective, decorators: [{
704
- type: i0.Directive,
705
- args: [{
706
- selector: 'nimble-button'
707
- }]
708
- }], propDecorators: { disabled: [{
709
- type: i0.HostBinding,
710
- args: ['disabled']
711
- }, {
712
- type: i0.Input
713
- }], appearance: [{
714
- type: i0.HostBinding,
715
- args: ['appearance']
716
- }, {
717
- type: i0.Input
718
- }] } });
924
+ /**
925
+ * Directive to provide Angular integration for the tab panel.
926
+ */
927
+ var NimbleTabPanelDirective = /** @class */ (function () {
928
+ function NimbleTabPanelDirective() {
929
+ }
930
+ return NimbleTabPanelDirective;
931
+ }());
932
+ NimbleTabPanelDirective.decorators = [
933
+ { type: core.Directive, args: [{
934
+ selector: 'nimble-tab-panel'
935
+ },] }
936
+ ];
719
937
 
720
- var NimbleButtonModule = /** @class */ (function () {
721
- function NimbleButtonModule() {
722
- }
723
- return NimbleButtonModule;
724
- }());
725
- NimbleButtonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
726
- NimbleButtonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonModule, declarations: [NimbleButtonDirective], imports: [common.CommonModule], exports: [NimbleButtonDirective] });
727
- NimbleButtonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonModule, imports: [[common.CommonModule]] });
728
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleButtonModule, decorators: [{
729
- type: i0.NgModule,
730
- args: [{
731
- declarations: [NimbleButtonDirective],
732
- imports: [common.CommonModule],
733
- exports: [NimbleButtonDirective]
734
- }]
735
- }] });
938
+ var NimbleTabPanelModule = /** @class */ (function () {
939
+ function NimbleTabPanelModule() {
940
+ }
941
+ return NimbleTabPanelModule;
942
+ }());
943
+ NimbleTabPanelModule.decorators = [
944
+ { type: core.NgModule, args: [{
945
+ declarations: [NimbleTabPanelDirective],
946
+ imports: [common.CommonModule],
947
+ exports: [NimbleTabPanelDirective]
948
+ },] }
949
+ ];
736
950
 
737
- /**
738
- * Directive to provide Angular integration for the tree view.
739
- */
740
- var NimbleTreeViewDirective = /** @class */ (function () {
741
- function NimbleTreeViewDirective() {
951
+ /**
952
+ * Directive to provide Angular integration for the tabs element.
953
+ */
954
+ var NimbleTabsDirective = /** @class */ (function () {
955
+ function NimbleTabsDirective(renderer, elementRef) {
956
+ this.renderer = renderer;
957
+ this.elementRef = elementRef;
958
+ this.activeidChange = new core.EventEmitter();
959
+ }
960
+ Object.defineProperty(NimbleTabsDirective.prototype, "activeid", {
961
+ get: function () {
962
+ return this.elementRef.nativeElement.activeid;
963
+ },
964
+ set: function (value) {
965
+ this.renderer.setProperty(this.elementRef.nativeElement, 'activeid', value);
966
+ },
967
+ enumerable: false,
968
+ configurable: true
969
+ });
970
+ NimbleTabsDirective.prototype.onChange = function ($event) {
971
+ if ($event.target === this.elementRef.nativeElement) {
972
+ this.activeidChange.emit(this.activeid);
742
973
  }
743
- return NimbleTreeViewDirective;
744
- }());
745
- NimbleTreeViewDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
746
- NimbleTreeViewDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTreeViewDirective, selector: "nimble-tree-view", ngImport: i0__namespace });
747
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewDirective, decorators: [{
748
- type: i0.Directive,
749
- args: [{
750
- selector: 'nimble-tree-view'
751
- }]
752
- }] });
974
+ };
975
+ return NimbleTabsDirective;
976
+ }());
977
+ NimbleTabsDirective.decorators = [
978
+ { type: core.Directive, args: [{
979
+ selector: 'nimble-tabs'
980
+ },] }
981
+ ];
982
+ NimbleTabsDirective.ctorParameters = function () { return [
983
+ { type: core.Renderer2 },
984
+ { type: core.ElementRef }
985
+ ]; };
986
+ NimbleTabsDirective.propDecorators = {
987
+ activeid: [{ type: core.Input }],
988
+ activeidChange: [{ type: core.Output }],
989
+ onChange: [{ type: core.HostListener, args: ['change', ['$event'],] }]
990
+ };
753
991
 
754
- var NimbleTreeViewModule = /** @class */ (function () {
755
- function NimbleTreeViewModule() {
756
- }
757
- return NimbleTreeViewModule;
758
- }());
759
- NimbleTreeViewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
760
- NimbleTreeViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewModule, declarations: [NimbleTreeViewDirective], imports: [common.CommonModule], exports: [NimbleTreeViewDirective] });
761
- NimbleTreeViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewModule, imports: [[common.CommonModule]] });
762
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeViewModule, decorators: [{
763
- type: i0.NgModule,
764
- args: [{
765
- declarations: [NimbleTreeViewDirective],
766
- imports: [common.CommonModule],
767
- exports: [NimbleTreeViewDirective]
768
- }]
769
- }] });
992
+ var NimbleTabsModule = /** @class */ (function () {
993
+ function NimbleTabsModule() {
994
+ }
995
+ return NimbleTabsModule;
996
+ }());
997
+ NimbleTabsModule.decorators = [
998
+ { type: core.NgModule, args: [{
999
+ declarations: [NimbleTabsDirective],
1000
+ imports: [common.CommonModule],
1001
+ exports: [NimbleTabsDirective]
1002
+ },] }
1003
+ ];
770
1004
 
771
- /**
772
- * Directive to provide Angular integration for the tree item.
773
- */
774
- var NimbleTreeItemDirective = /** @class */ (function () {
775
- function NimbleTreeItemDirective(treeItemReference) {
776
- this.treeItemReference = treeItemReference;
777
- this.selectedChange = new i0.EventEmitter();
778
- this.expandedChange = new i0.EventEmitter();
779
- }
780
- NimbleTreeItemDirective.prototype.onSelectedChange = function ($event) {
781
- var treeItemElement = this.treeItemReference.nativeElement;
782
- if ($event.target === treeItemElement) {
783
- this.selected = treeItemElement.selected;
784
- this.selectedChange.emit(this.selected);
785
- }
786
- };
787
- NimbleTreeItemDirective.prototype.onExpandedChange = function ($event) {
788
- var treeItemElement = this.treeItemReference.nativeElement;
789
- if ($event.target === treeItemElement) {
790
- this.expanded = treeItemElement.expanded;
791
- this.expandedChange.emit(treeItemElement.expanded);
792
- }
793
- };
794
- return NimbleTreeItemDirective;
795
- }());
796
- NimbleTreeItemDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
797
- NimbleTreeItemDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTreeItemDirective, selector: "nimble-tree-item", inputs: { disabled: "disabled", expanded: "expanded", selected: "selected" }, outputs: { selectedChange: "selectedChange", expandedChange: "expandedChange" }, host: { listeners: { "selected-change": "onSelectedChange($event)", "expanded-change": "onExpandedChange($event)" }, properties: { "disabled": "this.disabled", "expanded": "this.expanded", "selected": "this.selected", "attr.aria-selected": "this.selected" } }, ngImport: i0__namespace });
798
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemDirective, decorators: [{
799
- type: i0.Directive,
800
- args: [{
801
- selector: 'nimble-tree-item'
802
- }]
803
- }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { disabled: [{
804
- type: i0.HostBinding,
805
- args: ['disabled']
806
- }, {
807
- type: i0.Input
808
- }], expanded: [{
809
- type: i0.HostBinding,
810
- args: ['expanded']
811
- }, {
812
- type: i0.Input
813
- }], selected: [{
814
- type: i0.HostBinding,
815
- args: ['selected']
816
- }, {
817
- type: i0.HostBinding,
818
- args: ['attr.aria-selected']
819
- }, {
820
- type: i0.Input
821
- }], selectedChange: [{
822
- type: i0.Output
823
- }], expandedChange: [{
824
- type: i0.Output
825
- }], onSelectedChange: [{
826
- type: i0.HostListener,
827
- args: ['selected-change', ['$event']]
828
- }], onExpandedChange: [{
829
- type: i0.HostListener,
830
- args: ['expanded-change', ['$event']]
831
- }] } });
1005
+ /**
1006
+ * Directive to provide Angular integration for the tabs toolbar.
1007
+ */
1008
+ var NimbleTabsToolbarDirective = /** @class */ (function () {
1009
+ function NimbleTabsToolbarDirective() {
1010
+ }
1011
+ return NimbleTabsToolbarDirective;
1012
+ }());
1013
+ NimbleTabsToolbarDirective.decorators = [
1014
+ { type: core.Directive, args: [{
1015
+ selector: 'nimble-tabs-toolbar'
1016
+ },] }
1017
+ ];
832
1018
 
833
- var NimbleTreeItemModule = /** @class */ (function () {
834
- function NimbleTreeItemModule() {
835
- }
836
- return NimbleTreeItemModule;
837
- }());
838
- NimbleTreeItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
839
- NimbleTreeItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemModule, declarations: [NimbleTreeItemDirective], imports: [common.CommonModule], exports: [NimbleTreeItemDirective] });
840
- NimbleTreeItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemModule, imports: [[common.CommonModule]] });
841
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemModule, decorators: [{
842
- type: i0.NgModule,
843
- args: [{
844
- declarations: [NimbleTreeItemDirective],
845
- imports: [common.CommonModule],
846
- exports: [NimbleTreeItemDirective]
847
- }]
848
- }] });
1019
+ var NimbleTabsToolbarModule = /** @class */ (function () {
1020
+ function NimbleTabsToolbarModule() {
1021
+ }
1022
+ return NimbleTabsToolbarModule;
1023
+ }());
1024
+ NimbleTabsToolbarModule.decorators = [
1025
+ { type: core.NgModule, args: [{
1026
+ declarations: [NimbleTabsToolbarDirective],
1027
+ imports: [common.CommonModule],
1028
+ exports: [NimbleTabsToolbarDirective]
1029
+ },] }
1030
+ ];
849
1031
 
850
- /**
851
- * Directive to provide Angular integration for the checkbox.
852
- */
853
- var NimbleCheckboxDirective = /** @class */ (function () {
854
- function NimbleCheckboxDirective() {
855
- }
856
- return NimbleCheckboxDirective;
857
- }());
858
- NimbleCheckboxDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
859
- NimbleCheckboxDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleCheckboxDirective, selector: "nimble-checkbox", ngImport: i0__namespace });
860
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxDirective, decorators: [{
861
- type: i0.Directive,
862
- args: [{
863
- selector: 'nimble-checkbox'
1032
+ /**
1033
+ * Extension of Angular's DefaultValueAccessor to target the text-based inputs.
1034
+ *
1035
+ * Directive decorator based on DefaultValueAccessor decorator
1036
+ * https://github.com/angular/angular/blob/master/packages/forms/src/directives/default_value_accessor.ts#L72
1037
+ */
1038
+ var NimbleTextFieldControlValueAccessorDirective = /** @class */ (function (_super) {
1039
+ __extends(NimbleTextFieldControlValueAccessorDirective, _super);
1040
+ function NimbleTextFieldControlValueAccessorDirective() {
1041
+ return _super !== null && _super.apply(this, arguments) || this;
1042
+ }
1043
+ return NimbleTextFieldControlValueAccessorDirective;
1044
+ }(forms.DefaultValueAccessor));
1045
+ NimbleTextFieldControlValueAccessorDirective.decorators = [
1046
+ { type: core.Directive, args: [{
1047
+ selector: 'nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]',
1048
+ // The following host metadata is duplicated from DefaultValueAccessor
1049
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
1050
+ host: {
1051
+ '(input)': '$any(this)._handleInput($event.target.value)',
1052
+ '(blur)': 'onTouched()',
1053
+ '(compositionstart)': '$any(this)._compositionStart()',
1054
+ '(compositionend)': '$any(this)._compositionEnd($event.target.value)'
1055
+ },
1056
+ providers: [{
1057
+ provide: forms.NG_VALUE_ACCESSOR,
1058
+ useExisting: core.forwardRef(function () { return NimbleTextFieldControlValueAccessorDirective; }),
1059
+ multi: true
864
1060
  }]
865
- }] });
1061
+ },] }
1062
+ ];
866
1063
 
867
- /**
868
- * Extension of Angular's CheckboxControlValueAccessor to target the Nimble checkbox control.
869
- *
870
- * Directive decorator based on CheckboxControlValueAccessor decorator
871
- * https://github.com/angular/angular/blob/master/packages/forms/src/directives/checkbox_value_accessor.ts#L42
872
- */
873
- var NimbleCheckboxControlValueAccessorDirective = /** @class */ (function (_super) {
874
- __extends(NimbleCheckboxControlValueAccessorDirective, _super);
875
- function NimbleCheckboxControlValueAccessorDirective() {
876
- return _super !== null && _super.apply(this, arguments) || this;
877
- }
878
- return NimbleCheckboxControlValueAccessorDirective;
879
- }(forms.CheckboxControlValueAccessor));
880
- NimbleCheckboxControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
881
- NimbleCheckboxControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleCheckboxControlValueAccessorDirective, selector: "nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]", host: { listeners: { "change": "onChange($event.target.checked)", "blur": "onTouched()" } }, providers: [{
882
- provide: forms.NG_VALUE_ACCESSOR,
883
- useExisting: i0.forwardRef(function () { return NimbleCheckboxControlValueAccessorDirective; }),
884
- multi: true
885
- }], usesInheritance: true, ngImport: i0__namespace });
886
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxControlValueAccessorDirective, decorators: [{
887
- type: i0.Directive,
888
- args: [{
889
- selector: 'nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]',
890
- // The following host metadata is duplicated from CheckboxControlValueAccessor
891
- // eslint-disable-next-line @angular-eslint/no-host-metadata-property
892
- host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
893
- providers: [{
894
- provide: forms.NG_VALUE_ACCESSOR,
895
- useExisting: i0.forwardRef(function () { return NimbleCheckboxControlValueAccessorDirective; }),
896
- multi: true
897
- }]
898
- }]
899
- }] });
1064
+ /**
1065
+ * Directive to provide Angular integration for the text field
1066
+ */
1067
+ var NimbleTextFieldDirective = /** @class */ (function () {
1068
+ function NimbleTextFieldDirective(renderer, elementRef) {
1069
+ this.renderer = renderer;
1070
+ this.elementRef = elementRef;
1071
+ }
1072
+ Object.defineProperty(NimbleTextFieldDirective.prototype, "readOnly", {
1073
+ get: function () {
1074
+ return this.elementRef.nativeElement.readOnly;
1075
+ },
1076
+ // readOnly property maps to the readonly attribute
1077
+ // See: https://github.com/microsoft/fast/blob/46bb6d9aab2c37105f4434db3795e176c2354a4f/packages/web-components/fast-foundation/src/text-field/text-field.ts#L33
1078
+ // eslint-disable-next-line @angular-eslint/no-input-rename
1079
+ set: function (value) {
1080
+ this.renderer.setProperty(this.elementRef.nativeElement, 'readOnly', toBooleanProperty(value));
1081
+ },
1082
+ enumerable: false,
1083
+ configurable: true
1084
+ });
1085
+ Object.defineProperty(NimbleTextFieldDirective.prototype, "type", {
1086
+ get: function () {
1087
+ return this.elementRef.nativeElement.type;
1088
+ },
1089
+ set: function (value) {
1090
+ this.renderer.setProperty(this.elementRef.nativeElement, 'type', value);
1091
+ },
1092
+ enumerable: false,
1093
+ configurable: true
1094
+ });
1095
+ return NimbleTextFieldDirective;
1096
+ }());
1097
+ NimbleTextFieldDirective.decorators = [
1098
+ { type: core.Directive, args: [{
1099
+ selector: 'nimble-text-field'
1100
+ },] }
1101
+ ];
1102
+ NimbleTextFieldDirective.ctorParameters = function () { return [
1103
+ { type: core.Renderer2 },
1104
+ { type: core.ElementRef }
1105
+ ]; };
1106
+ NimbleTextFieldDirective.propDecorators = {
1107
+ readOnly: [{ type: core.Input, args: ['readonly',] }],
1108
+ type: [{ type: core.Input }]
1109
+ };
900
1110
 
901
- var NimbleCheckboxModule = /** @class */ (function () {
902
- function NimbleCheckboxModule() {
903
- }
904
- return NimbleCheckboxModule;
905
- }());
906
- NimbleCheckboxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
907
- NimbleCheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxModule, declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective], imports: [common.CommonModule], exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective] });
908
- NimbleCheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxModule, imports: [[common.CommonModule]] });
909
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleCheckboxModule, decorators: [{
910
- type: i0.NgModule,
911
- args: [{
912
- declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective],
913
- imports: [common.CommonModule],
914
- exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective]
915
- }]
916
- }] });
1111
+ var NimbleTextFieldModule = /** @class */ (function () {
1112
+ function NimbleTextFieldModule() {
1113
+ }
1114
+ return NimbleTextFieldModule;
1115
+ }());
1116
+ NimbleTextFieldModule.decorators = [
1117
+ { type: core.NgModule, args: [{
1118
+ declarations: [NimbleTextFieldDirective, NimbleTextFieldControlValueAccessorDirective],
1119
+ imports: [common.CommonModule],
1120
+ exports: [NimbleTextFieldDirective, NimbleTextFieldControlValueAccessorDirective]
1121
+ },] }
1122
+ ];
917
1123
 
918
- /**
919
- * Directive to provide Angular integration for the tabs element.
920
- */
921
- var NimbleTabsDirective = /** @class */ (function () {
922
- function NimbleTabsDirective(tabs) {
923
- this.tabs = tabs;
924
- this.activeidChange = new i0.EventEmitter();
925
- }
926
- NimbleTabsDirective.prototype.onChange = function () {
927
- this.activeidChange.emit(this.tabs.nativeElement.activeid);
928
- };
929
- return NimbleTabsDirective;
930
- }());
931
- NimbleTabsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
932
- NimbleTabsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTabsDirective, selector: "nimble-tabs", inputs: { activeid: "activeid" }, outputs: { activeidChange: "activeidChange" }, host: { listeners: { "change": "onChange()" }, properties: { "attr.activeid": "this.activeid" } }, ngImport: i0__namespace });
933
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsDirective, decorators: [{
934
- type: i0.Directive,
935
- args: [{
936
- selector: 'nimble-tabs'
937
- }]
938
- }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { activeid: [{
939
- type: i0.HostBinding,
940
- args: ['attr.activeid']
941
- }, {
942
- type: i0.Input
943
- }], activeidChange: [{
944
- type: i0.Output
945
- }], onChange: [{
946
- type: i0.HostListener,
947
- args: ['change']
948
- }] } });
1124
+ /**
1125
+ * Directive for Angular integration for the theme provider
1126
+ */
1127
+ var NimbleThemeProviderDirective = /** @class */ (function () {
1128
+ function NimbleThemeProviderDirective(renderer, elementRef) {
1129
+ this.renderer = renderer;
1130
+ this.elementRef = elementRef;
1131
+ }
1132
+ Object.defineProperty(NimbleThemeProviderDirective.prototype, "theme", {
1133
+ get: function () {
1134
+ return this.elementRef.nativeElement.theme;
1135
+ },
1136
+ set: function (value) {
1137
+ this.renderer.setProperty(this.elementRef.nativeElement, 'theme', value);
1138
+ },
1139
+ enumerable: false,
1140
+ configurable: true
1141
+ });
1142
+ return NimbleThemeProviderDirective;
1143
+ }());
1144
+ NimbleThemeProviderDirective.decorators = [
1145
+ { type: core.Directive, args: [{
1146
+ selector: 'nimble-theme-provider'
1147
+ },] }
1148
+ ];
1149
+ NimbleThemeProviderDirective.ctorParameters = function () { return [
1150
+ { type: core.Renderer2 },
1151
+ { type: core.ElementRef }
1152
+ ]; };
1153
+ NimbleThemeProviderDirective.propDecorators = {
1154
+ theme: [{ type: core.Input }]
1155
+ };
949
1156
 
950
- var NimbleTabsModule = /** @class */ (function () {
951
- function NimbleTabsModule() {
952
- }
953
- return NimbleTabsModule;
954
- }());
955
- NimbleTabsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
956
- NimbleTabsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsModule, declarations: [NimbleTabsDirective], imports: [common.CommonModule], exports: [NimbleTabsDirective] });
957
- NimbleTabsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsModule, imports: [[common.CommonModule]] });
958
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsModule, decorators: [{
959
- type: i0.NgModule,
960
- args: [{
961
- declarations: [NimbleTabsDirective],
962
- imports: [common.CommonModule],
963
- exports: [NimbleTabsDirective]
964
- }]
965
- }] });
1157
+ var NimbleThemeProviderModule = /** @class */ (function () {
1158
+ function NimbleThemeProviderModule() {
1159
+ }
1160
+ return NimbleThemeProviderModule;
1161
+ }());
1162
+ NimbleThemeProviderModule.decorators = [
1163
+ { type: core.NgModule, args: [{
1164
+ declarations: [NimbleThemeProviderDirective],
1165
+ imports: [common.CommonModule],
1166
+ exports: [NimbleThemeProviderDirective]
1167
+ },] }
1168
+ ];
966
1169
 
967
- /**
968
- * Directive to provide Angular integration for the tab element.
969
- */
970
- var NimbleTabDirective = /** @class */ (function () {
971
- function NimbleTabDirective() {
972
- }
973
- return NimbleTabDirective;
974
- }());
975
- NimbleTabDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
976
- NimbleTabDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTabDirective, selector: "nimble-tab", inputs: { disabled: "disabled" }, host: { properties: { "attr.disabled": "this.disabled" } }, ngImport: i0__namespace });
977
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabDirective, decorators: [{
978
- type: i0.Directive,
979
- args: [{
980
- selector: 'nimble-tab'
981
- }]
982
- }], propDecorators: { disabled: [{
983
- type: i0.HostBinding,
984
- args: ['attr.disabled']
985
- }, {
986
- type: i0.Input
987
- }] } });
1170
+ /**
1171
+ * Directive to provide Angular integration for the toggle button.
1172
+ */
1173
+ var NimbleToggleButtonDirective = /** @class */ (function () {
1174
+ function NimbleToggleButtonDirective(renderer, elementRef) {
1175
+ this.renderer = renderer;
1176
+ this.elementRef = elementRef;
1177
+ }
1178
+ Object.defineProperty(NimbleToggleButtonDirective.prototype, "appearance", {
1179
+ get: function () {
1180
+ return this.elementRef.nativeElement.appearance;
1181
+ },
1182
+ set: function (value) {
1183
+ this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);
1184
+ },
1185
+ enumerable: false,
1186
+ configurable: true
1187
+ });
1188
+ Object.defineProperty(NimbleToggleButtonDirective.prototype, "disabled", {
1189
+ get: function () {
1190
+ return this.elementRef.nativeElement.disabled;
1191
+ },
1192
+ set: function (value) {
1193
+ this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
1194
+ },
1195
+ enumerable: false,
1196
+ configurable: true
1197
+ });
1198
+ Object.defineProperty(NimbleToggleButtonDirective.prototype, "contentHidden", {
1199
+ get: function () {
1200
+ return this.elementRef.nativeElement.contentHidden;
1201
+ },
1202
+ // contentHidden property intentionally maps to the content-hidden attribute
1203
+ // eslint-disable-next-line @angular-eslint/no-input-rename
1204
+ set: function (value) {
1205
+ this.renderer.setProperty(this.elementRef.nativeElement, 'contentHidden', toBooleanProperty(value));
1206
+ },
1207
+ enumerable: false,
1208
+ configurable: true
1209
+ });
1210
+ Object.defineProperty(NimbleToggleButtonDirective.prototype, "checked", {
1211
+ get: function () {
1212
+ return this.elementRef.nativeElement.checked;
1213
+ },
1214
+ set: function (value) {
1215
+ this.renderer.setProperty(this.elementRef.nativeElement, 'checked', toBooleanProperty(value));
1216
+ },
1217
+ enumerable: false,
1218
+ configurable: true
1219
+ });
1220
+ return NimbleToggleButtonDirective;
1221
+ }());
1222
+ NimbleToggleButtonDirective.decorators = [
1223
+ { type: core.Directive, args: [{
1224
+ selector: 'nimble-toggle-button'
1225
+ },] }
1226
+ ];
1227
+ NimbleToggleButtonDirective.ctorParameters = function () { return [
1228
+ { type: core.Renderer2 },
1229
+ { type: core.ElementRef }
1230
+ ]; };
1231
+ NimbleToggleButtonDirective.propDecorators = {
1232
+ appearance: [{ type: core.Input }],
1233
+ disabled: [{ type: core.Input }],
1234
+ contentHidden: [{ type: core.Input, args: ['content-hidden',] }],
1235
+ checked: [{ type: core.Input }]
1236
+ };
988
1237
 
989
- var NimbleTabModule = /** @class */ (function () {
990
- function NimbleTabModule() {
991
- }
992
- return NimbleTabModule;
993
- }());
994
- NimbleTabModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
995
- NimbleTabModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabModule, declarations: [NimbleTabDirective], imports: [common.CommonModule], exports: [NimbleTabDirective] });
996
- NimbleTabModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabModule, imports: [[common.CommonModule]] });
997
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabModule, decorators: [{
998
- type: i0.NgModule,
999
- args: [{
1000
- declarations: [NimbleTabDirective],
1001
- imports: [common.CommonModule],
1002
- exports: [NimbleTabDirective]
1238
+ /**
1239
+ * Extension of Angular's CheckboxControlValueAccessor to target the Nimble toggle button control.
1240
+ *
1241
+ * Directive decorator based on CheckboxControlValueAccessor decorator
1242
+ * https://github.com/angular/angular/blob/bbababe5900ea8f4c8fccd88238f6fe08a2ceb63/packages/forms/src/directives/checkbox_value_accessor.ts#L42
1243
+ */
1244
+ var NimbleToggleButtonControlValueAccessorDirective = /** @class */ (function (_super) {
1245
+ __extends(NimbleToggleButtonControlValueAccessorDirective, _super);
1246
+ function NimbleToggleButtonControlValueAccessorDirective() {
1247
+ return _super !== null && _super.apply(this, arguments) || this;
1248
+ }
1249
+ return NimbleToggleButtonControlValueAccessorDirective;
1250
+ }(forms.CheckboxControlValueAccessor));
1251
+ NimbleToggleButtonControlValueAccessorDirective.decorators = [
1252
+ { type: core.Directive, args: [{
1253
+ selector: 'nimble-toggle-button[formControlName],nimble-toggle-button[formControl],nimble-toggle-button[ngModel]',
1254
+ // The following host metadata is duplicated from CheckboxControlValueAccessor
1255
+ // eslint-disable-next-line @angular-eslint/no-host-metadata-property
1256
+ host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
1257
+ providers: [{
1258
+ provide: forms.NG_VALUE_ACCESSOR,
1259
+ useExisting: core.forwardRef(function () { return NimbleToggleButtonControlValueAccessorDirective; }),
1260
+ multi: true
1003
1261
  }]
1004
- }] });
1262
+ },] }
1263
+ ];
1005
1264
 
1006
- /**
1007
- * Directive to provide Angular integration for the tab panel.
1008
- */
1009
- var NimbleTabPanelDirective = /** @class */ (function () {
1010
- function NimbleTabPanelDirective() {
1011
- }
1012
- return NimbleTabPanelDirective;
1013
- }());
1014
- NimbleTabPanelDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabPanelDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
1015
- NimbleTabPanelDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTabPanelDirective, selector: "nimble-tab-panel", ngImport: i0__namespace });
1016
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabPanelDirective, decorators: [{
1017
- type: i0.Directive,
1018
- args: [{
1019
- selector: 'nimble-tab-panel'
1020
- }]
1021
- }] });
1265
+ var NimbleToggleButtonModule = /** @class */ (function () {
1266
+ function NimbleToggleButtonModule() {
1267
+ }
1268
+ return NimbleToggleButtonModule;
1269
+ }());
1270
+ NimbleToggleButtonModule.decorators = [
1271
+ { type: core.NgModule, args: [{
1272
+ declarations: [NimbleToggleButtonDirective, NimbleToggleButtonControlValueAccessorDirective],
1273
+ imports: [common.CommonModule],
1274
+ exports: [NimbleToggleButtonDirective, NimbleToggleButtonControlValueAccessorDirective]
1275
+ },] }
1276
+ ];
1022
1277
 
1023
- var NimbleTabPanelModule = /** @class */ (function () {
1024
- function NimbleTabPanelModule() {
1278
+ /**
1279
+ * Directive to provide Angular integration for the tree item.
1280
+ */
1281
+ var NimbleTreeItemDirective = /** @class */ (function () {
1282
+ function NimbleTreeItemDirective(renderer, elementRef) {
1283
+ this.renderer = renderer;
1284
+ this.elementRef = elementRef;
1285
+ this.expandedChange = new core.EventEmitter();
1286
+ }
1287
+ Object.defineProperty(NimbleTreeItemDirective.prototype, "disabled", {
1288
+ get: function () {
1289
+ return this.elementRef.nativeElement.disabled;
1290
+ },
1291
+ set: function (value) {
1292
+ this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
1293
+ },
1294
+ enumerable: false,
1295
+ configurable: true
1296
+ });
1297
+ Object.defineProperty(NimbleTreeItemDirective.prototype, "expanded", {
1298
+ get: function () {
1299
+ return this.elementRef.nativeElement.expanded;
1300
+ },
1301
+ set: function (value) {
1302
+ this.renderer.setProperty(this.elementRef.nativeElement, 'expanded', toBooleanProperty(value));
1303
+ },
1304
+ enumerable: false,
1305
+ configurable: true
1306
+ });
1307
+ Object.defineProperty(NimbleTreeItemDirective.prototype, "selected", {
1308
+ get: function () {
1309
+ return this.elementRef.nativeElement.selected;
1310
+ },
1311
+ set: function (value) {
1312
+ this.renderer.setProperty(this.elementRef.nativeElement, 'selected', toBooleanProperty(value));
1313
+ // Needed because fast-foundation TreeView sets initial selection with an aria-selected query
1314
+ this.renderer.setAttribute(this.elementRef.nativeElement, 'selected', toBooleanAriaAttribute(value));
1315
+ },
1316
+ enumerable: false,
1317
+ configurable: true
1318
+ });
1319
+ NimbleTreeItemDirective.prototype.onExpandedChange = function ($event) {
1320
+ if ($event.target === this.elementRef.nativeElement) {
1321
+ this.expandedChange.emit(this.expanded);
1025
1322
  }
1026
- return NimbleTabPanelModule;
1027
- }());
1028
- NimbleTabPanelModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabPanelModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1029
- NimbleTabPanelModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabPanelModule, declarations: [NimbleTabPanelDirective], imports: [common.CommonModule], exports: [NimbleTabPanelDirective] });
1030
- NimbleTabPanelModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabPanelModule, imports: [[common.CommonModule]] });
1031
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabPanelModule, decorators: [{
1032
- type: i0.NgModule,
1033
- args: [{
1034
- declarations: [NimbleTabPanelDirective],
1035
- imports: [common.CommonModule],
1036
- exports: [NimbleTabPanelDirective]
1037
- }]
1038
- }] });
1323
+ };
1324
+ return NimbleTreeItemDirective;
1325
+ }());
1326
+ NimbleTreeItemDirective.decorators = [
1327
+ { type: core.Directive, args: [{
1328
+ selector: 'nimble-tree-item'
1329
+ },] }
1330
+ ];
1331
+ NimbleTreeItemDirective.ctorParameters = function () { return [
1332
+ { type: core.Renderer2 },
1333
+ { type: core.ElementRef }
1334
+ ]; };
1335
+ NimbleTreeItemDirective.propDecorators = {
1336
+ disabled: [{ type: core.Input }],
1337
+ expanded: [{ type: core.Input }],
1338
+ selected: [{ type: core.Input }],
1339
+ expandedChange: [{ type: core.Output }],
1340
+ onExpandedChange: [{ type: core.HostListener, args: ['expanded-change', ['$event'],] }]
1341
+ };
1039
1342
 
1040
- /**
1041
- * Directive to provide Angular integration for the tabs toolbar.
1042
- */
1043
- var NimbleTabsToolbarDirective = /** @class */ (function () {
1044
- function NimbleTabsToolbarDirective() {
1045
- }
1046
- return NimbleTabsToolbarDirective;
1047
- }());
1048
- NimbleTabsToolbarDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsToolbarDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
1049
- NimbleTabsToolbarDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTabsToolbarDirective, selector: "nimble-tabs-toolbar", ngImport: i0__namespace });
1050
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsToolbarDirective, decorators: [{
1051
- type: i0.Directive,
1052
- args: [{
1053
- selector: 'nimble-tabs-toolbar'
1054
- }]
1055
- }] });
1343
+ var NimbleTreeItemModule = /** @class */ (function () {
1344
+ function NimbleTreeItemModule() {
1345
+ }
1346
+ return NimbleTreeItemModule;
1347
+ }());
1348
+ NimbleTreeItemModule.decorators = [
1349
+ { type: core.NgModule, args: [{
1350
+ declarations: [NimbleTreeItemDirective],
1351
+ imports: [common.CommonModule],
1352
+ exports: [NimbleTreeItemDirective]
1353
+ },] }
1354
+ ];
1056
1355
 
1057
- var NimbleTabsToolbarModule = /** @class */ (function () {
1058
- function NimbleTabsToolbarModule() {
1059
- }
1060
- return NimbleTabsToolbarModule;
1061
- }());
1062
- NimbleTabsToolbarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsToolbarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1063
- NimbleTabsToolbarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsToolbarModule, declarations: [NimbleTabsToolbarDirective], imports: [common.CommonModule], exports: [NimbleTabsToolbarDirective] });
1064
- NimbleTabsToolbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsToolbarModule, imports: [[common.CommonModule]] });
1065
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTabsToolbarModule, decorators: [{
1066
- type: i0.NgModule,
1067
- args: [{
1068
- declarations: [NimbleTabsToolbarDirective],
1069
- imports: [common.CommonModule],
1070
- exports: [NimbleTabsToolbarDirective]
1071
- }]
1072
- }] });
1356
+ /**
1357
+ * Directive to provide Angular integration for the tree view.
1358
+ */
1359
+ var NimbleTreeViewDirective = /** @class */ (function () {
1360
+ function NimbleTreeViewDirective(renderer, elementRef) {
1361
+ this.renderer = renderer;
1362
+ this.elementRef = elementRef;
1363
+ }
1364
+ Object.defineProperty(NimbleTreeViewDirective.prototype, "selectionMode", {
1365
+ get: function () {
1366
+ return this.elementRef.nativeElement.selectionMode;
1367
+ },
1368
+ // selectionMode property intentionally maps to the selection-mode attribute
1369
+ // eslint-disable-next-line @angular-eslint/no-input-rename
1370
+ set: function (value) {
1371
+ this.renderer.setProperty(this.elementRef.nativeElement, 'selectionMode', value);
1372
+ },
1373
+ enumerable: false,
1374
+ configurable: true
1375
+ });
1376
+ return NimbleTreeViewDirective;
1377
+ }());
1378
+ NimbleTreeViewDirective.decorators = [
1379
+ { type: core.Directive, args: [{
1380
+ selector: 'nimble-tree-view'
1381
+ },] }
1382
+ ];
1383
+ NimbleTreeViewDirective.ctorParameters = function () { return [
1384
+ { type: core.Renderer2 },
1385
+ { type: core.ElementRef }
1386
+ ]; };
1387
+ NimbleTreeViewDirective.propDecorators = {
1388
+ selectionMode: [{ type: core.Input, args: ['selection-mode',] }]
1389
+ };
1390
+
1391
+ var NimbleTreeViewModule = /** @class */ (function () {
1392
+ function NimbleTreeViewModule() {
1393
+ }
1394
+ return NimbleTreeViewModule;
1395
+ }());
1396
+ NimbleTreeViewModule.decorators = [
1397
+ { type: core.NgModule, args: [{
1398
+ declarations: [NimbleTreeViewDirective],
1399
+ imports: [common.CommonModule],
1400
+ exports: [NimbleTreeViewDirective]
1401
+ },] }
1402
+ ];
1403
+
1404
+ /**
1405
+ * Immediately processes all updates in queue.
1406
+ *
1407
+ * Useful for synchronously testing Nimble elements. Call this in fakeAsync tests to
1408
+ * immediately resolve tasks which otherwise would require waiting for an animation
1409
+ * frame. This should also be called after every fakeAsync test to clear the internal
1410
+ * process queue and allow subsequent tests to run normally.
1411
+ */
1412
+ var waitForUpdatesAsync = asyncHelpers.waitForUpdatesAsync;
1073
1413
 
1074
- /*
1075
- * Public API Surface of nimble-angular
1076
- */
1414
+ /*
1415
+ * Public API Surface of nimble-angular
1416
+ */
1077
1417
 
1078
- /**
1079
- * Generated bundle index. Do not edit.
1080
- */
1418
+ /**
1419
+ * Generated bundle index. Do not edit.
1420
+ */
1081
1421
 
1082
- exports.NimbleButtonDirective = NimbleButtonDirective;
1083
- exports.NimbleButtonModule = NimbleButtonModule;
1084
- exports.NimbleCheckboxControlValueAccessorDirective = NimbleCheckboxControlValueAccessorDirective;
1085
- exports.NimbleCheckboxDirective = NimbleCheckboxDirective;
1086
- exports.NimbleCheckboxModule = NimbleCheckboxModule;
1087
- exports.NimbleControlValueAccessorModule = NimbleControlValueAccessorModule;
1088
- exports.NimbleDefaultControlValueAccessorDirective = NimbleDefaultControlValueAccessorDirective;
1089
- exports.NimbleListboxOptionDirective = NimbleListboxOptionDirective;
1090
- exports.NimbleListboxOptionModule = NimbleListboxOptionModule;
1091
- exports.NimbleNumberControlValueAccessorDirective = NimbleNumberControlValueAccessorDirective;
1092
- exports.NimbleNumberFieldDirective = NimbleNumberFieldDirective;
1093
- exports.NimbleNumberFieldModule = NimbleNumberFieldModule;
1094
- exports.NimbleSelectControlValueAccessorDirective = NimbleSelectControlValueAccessorDirective;
1095
- exports.NimbleSelectDirective = NimbleSelectDirective;
1096
- exports.NimbleSelectModule = NimbleSelectModule;
1097
- exports.NimbleTabDirective = NimbleTabDirective;
1098
- exports.NimbleTabModule = NimbleTabModule;
1099
- exports.NimbleTabPanelDirective = NimbleTabPanelDirective;
1100
- exports.NimbleTabPanelModule = NimbleTabPanelModule;
1101
- exports.NimbleTabsDirective = NimbleTabsDirective;
1102
- exports.NimbleTabsModule = NimbleTabsModule;
1103
- exports.NimbleTabsToolbarDirective = NimbleTabsToolbarDirective;
1104
- exports.NimbleTabsToolbarModule = NimbleTabsToolbarModule;
1105
- exports.NimbleTextFieldDirective = NimbleTextFieldDirective;
1106
- exports.NimbleTextFieldModule = NimbleTextFieldModule;
1107
- exports.NimbleThemeProviderDirective = NimbleThemeProviderDirective;
1108
- exports.NimbleThemeProviderModule = NimbleThemeProviderModule;
1109
- exports.NimbleTreeItemDirective = NimbleTreeItemDirective;
1110
- exports.NimbleTreeItemModule = NimbleTreeItemModule;
1111
- exports.NimbleTreeViewDirective = NimbleTreeViewDirective;
1112
- exports.NimbleTreeViewModule = NimbleTreeViewModule;
1422
+ Object.defineProperty(exports, 'ButtonAppearance', {
1423
+ enumerable: true,
1424
+ get: function () { return types.ButtonAppearance; }
1425
+ });
1426
+ Object.defineProperty(exports, 'DrawerLocation', {
1427
+ enumerable: true,
1428
+ get: function () { return types$1.DrawerLocation; }
1429
+ });
1430
+ Object.defineProperty(exports, 'DrawerState', {
1431
+ enumerable: true,
1432
+ get: function () { return types$1.DrawerState; }
1433
+ });
1434
+ Object.defineProperty(exports, 'TextFieldType', {
1435
+ enumerable: true,
1436
+ get: function () { return types$2.TextFieldType; }
1437
+ });
1438
+ Object.defineProperty(exports, 'Theme', {
1439
+ enumerable: true,
1440
+ get: function () { return types$3.Theme; }
1441
+ });
1442
+ Object.defineProperty(exports, 'TreeViewSelectionMode', {
1443
+ enumerable: true,
1444
+ get: function () { return types$4.TreeViewSelectionMode; }
1445
+ });
1446
+ Object.defineProperty(exports, 'processUpdates', {
1447
+ enumerable: true,
1448
+ get: function () { return asyncHelpers.processUpdates; }
1449
+ });
1450
+ exports.NimbleButtonDirective = NimbleButtonDirective;
1451
+ exports.NimbleButtonModule = NimbleButtonModule;
1452
+ exports.NimbleCheckboxControlValueAccessorDirective = NimbleCheckboxControlValueAccessorDirective;
1453
+ exports.NimbleCheckboxDirective = NimbleCheckboxDirective;
1454
+ exports.NimbleCheckboxModule = NimbleCheckboxModule;
1455
+ exports.NimbleDrawerDirective = NimbleDrawerDirective;
1456
+ exports.NimbleDrawerModule = NimbleDrawerModule;
1457
+ exports.NimbleListboxOptionDirective = NimbleListboxOptionDirective;
1458
+ exports.NimbleListboxOptionModule = NimbleListboxOptionModule;
1459
+ exports.NimbleMenuDirective = NimbleMenuDirective;
1460
+ exports.NimbleMenuItemDirective = NimbleMenuItemDirective;
1461
+ exports.NimbleMenuItemModule = NimbleMenuItemModule;
1462
+ exports.NimbleMenuModule = NimbleMenuModule;
1463
+ exports.NimbleNumberFieldControlValueAccessorDirective = NimbleNumberFieldControlValueAccessorDirective;
1464
+ exports.NimbleNumberFieldDirective = NimbleNumberFieldDirective;
1465
+ exports.NimbleNumberFieldModule = NimbleNumberFieldModule;
1466
+ exports.NimbleSelectControlValueAccessorDirective = NimbleSelectControlValueAccessorDirective;
1467
+ exports.NimbleSelectDirective = NimbleSelectDirective;
1468
+ exports.NimbleSelectModule = NimbleSelectModule;
1469
+ exports.NimbleTabDirective = NimbleTabDirective;
1470
+ exports.NimbleTabModule = NimbleTabModule;
1471
+ exports.NimbleTabPanelDirective = NimbleTabPanelDirective;
1472
+ exports.NimbleTabPanelModule = NimbleTabPanelModule;
1473
+ exports.NimbleTabsDirective = NimbleTabsDirective;
1474
+ exports.NimbleTabsModule = NimbleTabsModule;
1475
+ exports.NimbleTabsToolbarDirective = NimbleTabsToolbarDirective;
1476
+ exports.NimbleTabsToolbarModule = NimbleTabsToolbarModule;
1477
+ exports.NimbleTextFieldControlValueAccessorDirective = NimbleTextFieldControlValueAccessorDirective;
1478
+ exports.NimbleTextFieldDirective = NimbleTextFieldDirective;
1479
+ exports.NimbleTextFieldModule = NimbleTextFieldModule;
1480
+ exports.NimbleThemeProviderDirective = NimbleThemeProviderDirective;
1481
+ exports.NimbleThemeProviderModule = NimbleThemeProviderModule;
1482
+ exports.NimbleToggleButtonDirective = NimbleToggleButtonDirective;
1483
+ exports.NimbleToggleButtonModule = NimbleToggleButtonModule;
1484
+ exports.NimbleTreeItemDirective = NimbleTreeItemDirective;
1485
+ exports.NimbleTreeItemModule = NimbleTreeItemModule;
1486
+ exports.NimbleTreeViewDirective = NimbleTreeViewDirective;
1487
+ exports.NimbleTreeViewModule = NimbleTreeViewModule;
1488
+ exports.waitForUpdatesAsync = waitForUpdatesAsync;
1489
+ exports["ɵa"] = NimbleToggleButtonControlValueAccessorDirective;
1113
1490
 
1114
- Object.defineProperty(exports, '__esModule', { value: true });
1491
+ Object.defineProperty(exports, '__esModule', { value: true });
1115
1492
 
1116
- })));
1493
+ }));
1117
1494
  //# sourceMappingURL=ni-nimble-angular.umd.js.map