@ni/nimble-angular 1.0.0-beta.9 → 1.0.0-beta.93

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 (78) hide show
  1. package/README.md +6 -2
  2. package/bundles/ni-nimble-angular.umd.js +953 -0
  3. package/bundles/ni-nimble-angular.umd.js.map +1 -0
  4. package/directives/button/index.d.ts +2 -0
  5. package/directives/button/nimble-button.directive.d.ts +11 -0
  6. package/directives/button/nimble-button.module.d.ts +9 -0
  7. package/directives/checkbox/index.d.ts +3 -0
  8. package/directives/checkbox/nimble-checkbox-control-value-accessor.directive.d.ts +12 -0
  9. package/directives/checkbox/nimble-checkbox.directive.d.ts +8 -0
  10. package/directives/checkbox/nimble-checkbox.module.d.ts +10 -0
  11. package/directives/control-value-accessor/index.d.ts +3 -0
  12. package/directives/control-value-accessor/nimble-control-value-accessor.module.d.ts +9 -0
  13. package/directives/control-value-accessor/nimble-default-control-value-accessor.directive.d.ts +12 -0
  14. package/directives/control-value-accessor/nimble-number-control-value-accessor.directive.d.ts +12 -0
  15. package/directives/listbox-option/index.d.ts +2 -0
  16. package/directives/listbox-option/nimble-listbox-option.directive.d.ts +14 -0
  17. package/directives/listbox-option/nimble-listbox-option.module.d.ts +9 -0
  18. package/directives/number-field/index.d.ts +2 -0
  19. package/directives/number-field/nimble-number-field.directive.d.ts +13 -0
  20. package/directives/number-field/nimble-number-field.module.d.ts +10 -0
  21. package/directives/select/index.d.ts +3 -0
  22. package/directives/select/nimble-select-control-value-accessor.directive.d.ts +14 -0
  23. package/directives/select/nimble-select.directive.d.ts +8 -0
  24. package/directives/select/nimble-select.module.d.ts +10 -0
  25. package/directives/text-field/index.d.ts +2 -0
  26. package/directives/text-field/nimble-text-field.directive.d.ts +9 -0
  27. package/directives/text-field/nimble-text-field.module.d.ts +10 -0
  28. package/directives/theme-provider/index.d.ts +2 -0
  29. package/directives/theme-provider/nimble-theme-provider.directive.d.ts +9 -0
  30. package/directives/theme-provider/nimble-theme-provider.module.d.ts +9 -0
  31. package/directives/tree-item/index.d.ts +2 -0
  32. package/directives/tree-item/nimble-tree-item.directive.d.ts +19 -0
  33. package/directives/tree-item/nimble-tree-item.module.d.ts +9 -0
  34. package/directives/tree-view/index.d.ts +2 -0
  35. package/directives/tree-view/nimble-tree-view.directive.d.ts +8 -0
  36. package/directives/tree-view/nimble-tree-view.module.d.ts +9 -0
  37. package/esm2015/directives/button/index.js +3 -0
  38. package/esm2015/directives/button/nimble-button.directive.js +26 -0
  39. package/esm2015/directives/button/nimble-button.module.js +19 -0
  40. package/esm2015/directives/checkbox/index.js +4 -0
  41. package/esm2015/directives/checkbox/nimble-checkbox-control-value-accessor.directive.js +32 -0
  42. package/esm2015/directives/checkbox/nimble-checkbox.directive.js +16 -0
  43. package/esm2015/directives/checkbox/nimble-checkbox.module.js +20 -0
  44. package/esm2015/directives/control-value-accessor/index.js +4 -0
  45. package/esm2015/directives/control-value-accessor/nimble-control-value-accessor.module.js +19 -0
  46. package/esm2015/directives/control-value-accessor/nimble-default-control-value-accessor.directive.js +37 -0
  47. package/esm2015/directives/control-value-accessor/nimble-number-control-value-accessor.directive.js +32 -0
  48. package/esm2015/directives/listbox-option/index.js +3 -0
  49. package/esm2015/directives/listbox-option/nimble-listbox-option.directive.js +30 -0
  50. package/esm2015/directives/listbox-option/nimble-listbox-option.module.js +19 -0
  51. package/esm2015/directives/number-field/index.js +3 -0
  52. package/esm2015/directives/number-field/nimble-number-field.directive.js +41 -0
  53. package/esm2015/directives/number-field/nimble-number-field.module.js +21 -0
  54. package/esm2015/directives/select/index.js +4 -0
  55. package/esm2015/directives/select/nimble-select-control-value-accessor.directive.js +34 -0
  56. package/esm2015/directives/select/nimble-select.directive.js +16 -0
  57. package/esm2015/directives/select/nimble-select.module.js +20 -0
  58. package/esm2015/directives/text-field/index.js +3 -0
  59. package/esm2015/directives/text-field/nimble-text-field.directive.js +21 -0
  60. package/esm2015/directives/text-field/nimble-text-field.module.js +21 -0
  61. package/esm2015/directives/theme-provider/index.js +3 -0
  62. package/esm2015/directives/theme-provider/nimble-theme-provider.directive.js +21 -0
  63. package/esm2015/directives/theme-provider/nimble-theme-provider.module.js +19 -0
  64. package/esm2015/directives/tree-item/index.js +3 -0
  65. package/esm2015/directives/tree-item/nimble-tree-item.directive.js +63 -0
  66. package/esm2015/directives/tree-item/nimble-tree-item.module.js +19 -0
  67. package/esm2015/directives/tree-view/index.js +3 -0
  68. package/esm2015/directives/tree-view/nimble-tree-view.directive.js +16 -0
  69. package/esm2015/directives/tree-view/nimble-tree-view.module.js +19 -0
  70. package/esm2015/ni-nimble-angular.js +5 -0
  71. package/esm2015/public-api.js +14 -0
  72. package/fesm2015/ni-nimble-angular.js +519 -0
  73. package/fesm2015/ni-nimble-angular.js.map +1 -0
  74. package/ni-nimble-angular.d.ts +5 -0
  75. package/package.json +22 -13
  76. package/public-api.d.ts +10 -0
  77. package/.eslintrc.js +0 -38
  78. package/karma.conf.js +0 -46
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ni-nimble-angular.js","sources":["../../../../projects/ni/nimble-angular/src/directives/theme-provider/nimble-theme-provider.directive.ts","../../../../projects/ni/nimble-angular/src/directives/theme-provider/nimble-theme-provider.module.ts","../../../../projects/ni/nimble-angular/src/directives/text-field/nimble-text-field.directive.ts","../../../../projects/ni/nimble-angular/src/directives/control-value-accessor/nimble-default-control-value-accessor.directive.ts","../../../../projects/ni/nimble-angular/src/directives/control-value-accessor/nimble-number-control-value-accessor.directive.ts","../../../../projects/ni/nimble-angular/src/directives/control-value-accessor/nimble-control-value-accessor.module.ts","../../../../projects/ni/nimble-angular/src/directives/text-field/nimble-text-field.module.ts","../../../../projects/ni/nimble-angular/src/directives/number-field/nimble-number-field.directive.ts","../../../../projects/ni/nimble-angular/src/directives/number-field/nimble-number-field.module.ts","../../../../projects/ni/nimble-angular/src/directives/select/nimble-select.directive.ts","../../../../projects/ni/nimble-angular/src/directives/select/nimble-select-control-value-accessor.directive.ts","../../../../projects/ni/nimble-angular/src/directives/select/nimble-select.module.ts","../../../../projects/ni/nimble-angular/src/directives/listbox-option/nimble-listbox-option.directive.ts","../../../../projects/ni/nimble-angular/src/directives/listbox-option/nimble-listbox-option.module.ts","../../../../projects/ni/nimble-angular/src/directives/button/nimble-button.directive.ts","../../../../projects/ni/nimble-angular/src/directives/button/nimble-button.module.ts","../../../../projects/ni/nimble-angular/src/directives/tree-view/nimble-tree-view.directive.ts","../../../../projects/ni/nimble-angular/src/directives/tree-view/nimble-tree-view.module.ts","../../../../projects/ni/nimble-angular/src/directives/tree-item/nimble-tree-item.directive.ts","../../../../projects/ni/nimble-angular/src/directives/tree-item/nimble-tree-item.module.ts","../../../../projects/ni/nimble-angular/src/directives/checkbox/nimble-checkbox.directive.ts","../../../../projects/ni/nimble-angular/src/directives/checkbox/nimble-checkbox-control-value-accessor.directive.ts","../../../../projects/ni/nimble-angular/src/directives/checkbox/nimble-checkbox.module.ts","../../../../projects/ni/nimble-angular/src/public-api.ts","../../../../projects/ni/nimble-angular/src/ni-nimble-angular.ts"],"sourcesContent":["import { Directive, HostBinding, Input } from '@angular/core';\n\n/**\n * Directive for Angular integration for the theme provider\n */\n@Directive({\n selector: 'nimble-theme-provider'\n})\nexport class NimbleThemeProviderDirective {\n @HostBinding('attr.theme') @Input() public theme: string;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleThemeProviderDirective } from './nimble-theme-provider.directive';\n\nimport '@ni/nimble-components/dist/esm/theme-provider';\n\n@NgModule({\n declarations: [NimbleThemeProviderDirective],\n imports: [CommonModule],\n exports: [NimbleThemeProviderDirective]\n})\nexport class NimbleThemeProviderModule { }\n","import { Directive, HostBinding, Input } from '@angular/core';\n\n/**\n * Directive to provide Angular integration for the text field\n */\n@Directive({\n selector: 'nimble-text-field'\n})\nexport class NimbleTextFieldDirective {\n @HostBinding('attr.readonly') @Input() public readonly: boolean;\n}\n","import { Directive, forwardRef } from '@angular/core';\nimport { DefaultValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n/**\n * Extension of Angular's DefaultValueAccessor to target the text-based inputs.\n *\n * Directive decorator based on DefaultValueAccessor decorator\n * https://github.com/angular/angular/blob/master/packages/forms/src/directives/default_value_accessor.ts#L72\n */\n@Directive({\n selector:\n 'nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]',\n // The following host metadata is duplicated from DefaultValueAccessor\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n '(input)': '$any(this)._handleInput($event.target.value)',\n '(blur)': 'onTouched()',\n '(compositionstart)': '$any(this)._compositionStart()',\n '(compositionend)': '$any(this)._compositionEnd($event.target.value)'\n },\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NimbleDefaultControlValueAccessorDirective),\n multi: true\n }]\n})\nexport class NimbleDefaultControlValueAccessorDirective extends DefaultValueAccessor {}","import { Directive, forwardRef } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, NumberValueAccessor } from '@angular/forms';\n\n/**\n * Extension of Angular's NumberValueAccessor to target the number-based inputs.\n *\n * Directive decorator based on NumberValueAccessor decorator\n * https://github.com/angular/angular/blob/master/packages/forms/src/directives/number_value_accessor.ts#L43\n */\n@Directive({\n selector:\n 'nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]',\n // The following host metadata is duplicated from NumberValueAccessor\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NimbleNumberControlValueAccessorDirective),\n multi: true\n }]\n})\nexport class NimbleNumberControlValueAccessorDirective extends NumberValueAccessor {}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleDefaultControlValueAccessorDirective } from './nimble-default-control-value-accessor.directive';\nimport { NimbleNumberControlValueAccessorDirective } from './nimble-number-control-value-accessor.directive';\n\n@NgModule({\n declarations: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective],\n imports: [CommonModule],\n exports: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective]\n})\nexport class NimbleControlValueAccessorModule { }\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { NimbleTextFieldDirective } from './nimble-text-field.directive';\nimport { NimbleControlValueAccessorModule } from '../control-value-accessor';\n\nimport '@ni/nimble-components/dist/esm/text-field';\n\n@NgModule({\n declarations: [NimbleTextFieldDirective],\n imports: [CommonModule, NimbleControlValueAccessorModule],\n providers: [],\n exports: [NimbleTextFieldDirective, NimbleControlValueAccessorModule]\n})\nexport class NimbleTextFieldModule {}\n","import { Directive, HostBinding, Input } from '@angular/core';\n\n/**\n * Directive to provide Angular integration for the number field.\n */\n@Directive({\n selector: 'nimble-number-field'\n})\nexport class NimbleNumberFieldDirective {\n @HostBinding('attr.readonly') @Input() public readonly: boolean;\n @HostBinding('attr.min') @Input() public min: number;\n @HostBinding('attr.max') @Input() public max: number;\n @HostBinding('attr.step') @Input() public step: number;\n @HostBinding('attr.placeholder') @Input() public placeholder: string;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { NimbleNumberFieldDirective } from './nimble-number-field.directive';\nimport { NimbleControlValueAccessorModule } from '../control-value-accessor';\n\nimport '@ni/nimble-components/dist/esm/number-field';\n\n@NgModule({\n declarations: [NimbleNumberFieldDirective],\n imports: [CommonModule, NimbleControlValueAccessorModule],\n providers: [],\n exports: [NimbleNumberFieldDirective, NimbleControlValueAccessorModule]\n})\nexport class NimbleNumberFieldModule {}\n","import { Directive } from '@angular/core';\n\n/**\n * Directive for Nimble select control Angular integration\n */\n@Directive({\n selector: 'nimble-select',\n})\nexport class NimbleSelectDirective {\n}\n","import { Directive, forwardRef } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, SelectControlValueAccessor } from '@angular/forms';\n\n/**\n * Extension of Angular's SelectControlValueAccessor to target the Nimble select control.\n *\n * @see NimbleSelectOptionDirective\n *\n * Directive decorator based on SelectControlValueAccessor decorator\n * https://github.com/angular/angular/blob/master/packages/forms/src/directives/select_control_value_accessor.ts#L85\n */\n@Directive({\n selector:\n 'nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]',\n // The following host metadata is duplicated from SelectControlValueAccessor\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NimbleSelectControlValueAccessorDirective),\n multi: true\n }]\n})\nexport class NimbleSelectControlValueAccessorDirective extends SelectControlValueAccessor {\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleSelectDirective } from './nimble-select.directive';\nimport { NimbleSelectControlValueAccessorDirective } from './nimble-select-control-value-accessor.directive';\n\nimport '@ni/nimble-components/dist/esm/select';\n\n@NgModule({\n declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective],\n imports: [CommonModule],\n exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective]\n})\nexport class NimbleSelectModule { }\n","import { Directive, ElementRef, Host, HostBinding, Input, Optional, Renderer2 } from '@angular/core';\nimport { NgSelectOption } from '@angular/forms';\nimport { ListboxOption } from '@ni/nimble-components/dist/esm/listbox-option';\nimport { NimbleSelectControlValueAccessorDirective } from '../select';\n\n/**\n * Directive to provide Angular integration for the listbox option.\n */\n@Directive({\n selector: 'nimble-listbox-option'\n})\nexport class NimbleListboxOptionDirective extends NgSelectOption {\n @HostBinding('attr.disabled') @Input() public disabled: boolean;\n\n public constructor(\n element: ElementRef<ListboxOption>, renderer: Renderer2,\n @Optional() @Host() select: NimbleSelectControlValueAccessorDirective\n ) {\n super(element, renderer, select);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleListboxOptionDirective } from './nimble-listbox-option.directive';\n\nimport '@ni/nimble-components/dist/esm/listbox-option';\n\n@NgModule({\n declarations: [NimbleListboxOptionDirective],\n imports: [CommonModule],\n exports: [NimbleListboxOptionDirective]\n})\nexport class NimbleListboxOptionModule { }\n","import { Directive, HostBinding, Input } from '@angular/core';\nimport { ButtonAppearance } from '@ni/nimble-components/dist/esm/button/types';\n\n/**\n * Directive to provide Angular integration for the button.\n */\n@Directive({\n selector: 'nimble-button'\n})\nexport class NimbleButtonDirective {\n @HostBinding('disabled') @Input() public disabled: boolean;\n @HostBinding('appearance') @Input() public appearance: ButtonAppearance;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleButtonDirective } from './nimble-button.directive';\n\nimport '@ni/nimble-components/dist/esm/button';\n\n@NgModule({\n declarations: [NimbleButtonDirective],\n imports: [CommonModule],\n exports: [NimbleButtonDirective]\n})\nexport class NimbleButtonModule { }\n","import { Directive } from '@angular/core';\n\n/**\n * Directive to provide Angular integration for the tree view.\n */\n@Directive({\n selector: 'nimble-tree-view'\n})\nexport class NimbleTreeViewDirective {\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTreeViewDirective } from './nimble-tree-view.directive';\n\nimport '@ni/nimble-components/dist/esm/tree-view';\n\n@NgModule({\n declarations: [NimbleTreeViewDirective],\n imports: [CommonModule],\n exports: [NimbleTreeViewDirective]\n})\nexport class NimbleTreeViewModule { }\n","import { Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output } from '@angular/core';\nimport { TreeItem } from '@ni/nimble-components/dist/esm/tree-item';\n\n/**\n * Directive to provide Angular integration for the tree item.\n */\n@Directive({\n selector: 'nimble-tree-item'\n})\nexport class NimbleTreeItemDirective {\n @HostBinding('disabled') @Input() public disabled: boolean;\n @HostBinding('expanded') @Input() public expanded: boolean;\n @HostBinding('selected')\n @HostBinding('attr.aria-selected') // Needed because fast-foundation TreeView sets initial selection with an aria-selected query\n @Input() public selected: boolean;\n\n @Output() public selectedChange = new EventEmitter<boolean>();\n @Output() public expandedChange = new EventEmitter<boolean>();\n\n public constructor(private readonly treeItemReference: ElementRef<TreeItem>) {\n }\n\n @HostListener('selected-change', ['$event'])\n private onSelectedChange($event: Event): void {\n const treeItemElement = this.treeItemReference.nativeElement;\n if ($event.target === treeItemElement) {\n this.selected = treeItemElement.selected;\n this.selectedChange.emit(this.selected);\n }\n }\n\n @HostListener('expanded-change', ['$event'])\n private onExpandedChange($event: Event): void {\n const treeItemElement = this.treeItemReference.nativeElement;\n if ($event.target === treeItemElement) {\n this.expanded = treeItemElement.expanded;\n this.expandedChange.emit(treeItemElement.expanded);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTreeItemDirective } from './nimble-tree-item.directive';\n\nimport '@ni/nimble-components/dist/esm/tree-item';\n\n@NgModule({\n declarations: [NimbleTreeItemDirective],\n imports: [CommonModule],\n exports: [NimbleTreeItemDirective]\n})\nexport class NimbleTreeItemModule { }\n","import { Directive } from '@angular/core';\n\n/**\n * Directive to provide Angular integration for the checkbox.\n */\n@Directive({\n selector: 'nimble-checkbox'\n})\nexport class NimbleCheckboxDirective {\n}\n","import { Directive, forwardRef } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, CheckboxControlValueAccessor } from '@angular/forms';\n\n/**\n * Extension of Angular's CheckboxControlValueAccessor to target the Nimble checkbox control.\n *\n * Directive decorator based on CheckboxControlValueAccessor decorator\n * https://github.com/angular/angular/blob/master/packages/forms/src/directives/checkbox_value_accessor.ts#L42\n */\n@Directive({\n selector:\n 'nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]',\n // The following host metadata is duplicated from CheckboxControlValueAccessor\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NimbleCheckboxControlValueAccessorDirective),\n multi: true\n }]\n})\nexport class NimbleCheckboxControlValueAccessorDirective extends CheckboxControlValueAccessor {\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleCheckboxDirective } from './nimble-checkbox.directive';\nimport { NimbleCheckboxControlValueAccessorDirective } from './nimble-checkbox-control-value-accessor.directive';\n\nimport '@ni/nimble-components/dist/esm/checkbox';\n\n@NgModule({\n declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective],\n imports: [CommonModule],\n exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective]\n})\nexport class NimbleCheckboxModule { }\n","/*\n * Public API Surface of nimble-angular\n */\n\nexport * from './directives/theme-provider';\nexport * from './directives/text-field';\nexport * from './directives/number-field';\nexport * from './directives/listbox-option';\nexport * from './directives/select';\nexport * from './directives/button';\nexport * from './directives/control-value-accessor';\nexport * from './directives/tree-view';\nexport * from './directives/tree-item';\nexport * from './directives/checkbox';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA;;;MAMa,4BAA4B;;yHAA5B,4BAA4B;6GAA5B,4BAA4B;2FAA5B,4BAA4B;kBAHxC,SAAS;mBAAC;oBACP,QAAQ,EAAE,uBAAuB;iBACpC;8BAE8C,KAAK;sBAA/C,WAAW;uBAAC,YAAY;;sBAAG,KAAK;;;MCExB,yBAAyB;;sHAAzB,yBAAyB;uHAAzB,yBAAyB,iBAJnB,4BAA4B,aACjC,YAAY,aACZ,4BAA4B;uHAE7B,yBAAyB,YAHzB,CAAC,YAAY,CAAC;2FAGd,yBAAyB;kBALrC,QAAQ;mBAAC;oBACN,YAAY,EAAE,CAAC,4BAA4B,CAAC;oBAC5C,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,4BAA4B,CAAC;iBAC1C;;;ACRD;;;MAMa,wBAAw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AAI,EAAE,EAAE,UAAU,EAAE,iCAAiC,EAAE,QAAQ,EAAE,aAAa,EAAE;oBAChF,SAAS,EAAE,CAAC;4BACR,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,iDAAiD,CAAC;4BAC1E,KAAK,EAAE,IAAI;yBACd,CAAC;iBACL;;;MCRY,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAJd,uBAAuB,EAAE,2CAA2C,aACzE,YAAY,aACZ,uBAAuB,EAAE,2CAA2C;kHAErE,oBAAoB,YAHpB,CAAC,YAAY,CAAC;2FAGd,oBAAoB;kBALhC,QAAQ;mBAAC;oBACN,YAAY,EAAE,CAAC,uBAAuB,EAAE,2CAA2C,CAAC;oBACpF,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,uBAAuB,EAAE,2CAA2C,CAAC;iBAClF;;;ACXD;;;;ACAA;;;;;;"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@ni/nimble-angular" />
5
+ export * from './public-api';
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@ni/nimble-angular",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.0.0-beta.93",
4
4
  "description": "Angular components for the NI Nimble Design System",
5
+ "scripts": {
6
+ "prepack": "node build/copyBuildOutputForPack.js",
7
+ "postpack": "node build/copyBuildOutputForPack.js clean"
8
+ },
5
9
  "repository": {
6
10
  "type": "git",
7
11
  "url": "git+https://github.com/ni/nimble.git"
@@ -18,24 +22,29 @@
18
22
  "@angular/common": "^12.1.0",
19
23
  "@angular/core": "^12.1.0",
20
24
  "@angular/forms": "^12.1.0",
21
- "@microsoft/fast-foundation": "^2.2.0",
22
- "@ni/nimble-components": "^1.0.0-beta.9"
25
+ "@ni/nimble-components": "^1.0.0-beta.80"
23
26
  },
24
27
  "dependencies": {
25
28
  "tslib": "^2.2.0"
26
29
  },
27
- "devDependencies": {
28
- "@ni/eslint-config": "^1.0.0",
29
- "@typescript-eslint/eslint-plugin": "^4.23.0",
30
- "eslint": "^7.29.0",
31
- "eslint-plugin-import": "^2.23.4"
32
- },
33
30
  "files": [
34
31
  "bundles/**",
35
- "components/**",
32
+ "directives/**",
36
33
  "esm2015/**",
37
34
  "fesm2015/**",
38
- "*.d.ts",
39
- "*.js"
40
- ]
35
+ "ni-nimble-angular.d.ts",
36
+ "public-api.d.ts"
37
+ ],
38
+ "devDependencies": {
39
+ "cp-file": "^9.1.0",
40
+ "eslint-plugin-jsdoc": "^36.1.0",
41
+ "glob": "^7.2.0"
42
+ },
43
+ "main": "bundles/ni-nimble-angular.umd.js",
44
+ "module": "fesm2015/ni-nimble-angular.js",
45
+ "es2015": "fesm2015/ni-nimble-angular.js",
46
+ "esm2015": "esm2015/ni-nimble-angular.js",
47
+ "fesm2015": "fesm2015/ni-nimble-angular.js",
48
+ "typings": "ni-nimble-angular.d.ts",
49
+ "sideEffects": false
41
50
  }
@@ -0,0 +1,10 @@
1
+ export * from './directives/theme-provider';
2
+ export * from './directives/text-field';
3
+ export * from './directives/number-field';
4
+ export * from './directives/listbox-option';
5
+ export * from './directives/select';
6
+ export * from './directives/button';
7
+ export * from './directives/control-value-accessor';
8
+ export * from './directives/tree-view';
9
+ export * from './directives/tree-item';
10
+ export * from './directives/checkbox';
package/.eslintrc.js DELETED
@@ -1,38 +0,0 @@
1
- module.exports = {
2
- extends: '../../../.eslintrc.js',
3
- ignorePatterns: [
4
- '!**/*'
5
- ],
6
- overrides: [
7
- {
8
- files: [
9
- '*.ts'
10
- ],
11
- parserOptions: {
12
- project: [
13
- './tsconfig.lib.json',
14
- './tsconfig.spec.json'
15
- ],
16
- tsconfigRootDir: __dirname,
17
- createDefaultProgram: true
18
- },
19
- rules: {
20
- }
21
- },
22
- {
23
- // disable failing rule in one autogenerated file
24
- files: [
25
- 'src/test.ts'
26
- ],
27
- rules: {
28
- "import/no-extraneous-dependencies": "off"
29
- }
30
- },
31
- {
32
- files: [
33
- '*.html'
34
- ],
35
- rules: {}
36
- }
37
- ]
38
- }
package/karma.conf.js DELETED
@@ -1,46 +0,0 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
-
4
- process.env.CHROME_BIN = require('puppeteer').executablePath()
5
-
6
- module.exports = function (config) {
7
- config.set({
8
- basePath: '',
9
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
10
- plugins: [
11
- require('karma-jasmine'),
12
- require('karma-chrome-launcher'),
13
- require('karma-jasmine-html-reporter'),
14
- require('karma-coverage'),
15
- require('@angular-devkit/build-angular/plugins/karma')
16
- ],
17
- client: {
18
- jasmine: {
19
- // you can add configuration options for Jasmine here
20
- // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
21
- // for example, you can disable the random execution with `random: false`
22
- // or set a specific seed with `seed: 4321`
23
- },
24
- clearContext: false // leave Jasmine Spec Runner output visible in browser
25
- },
26
- jasmineHtmlReporter: {
27
- suppressAll: true // removes the duplicated traces
28
- },
29
- coverageReporter: {
30
- dir: require('path').join(__dirname, '../../../coverage/ni/nimble-angular'),
31
- subdir: '.',
32
- reporters: [
33
- { type: 'html' },
34
- { type: 'text-summary' }
35
- ]
36
- },
37
- reporters: ['progress', 'kjhtml'],
38
- port: 9876,
39
- colors: true,
40
- logLevel: config.LOG_INFO,
41
- autoWatch: true,
42
- browsers: ['ChromeHeadless'],
43
- singleRun: false,
44
- restartOnFileChange: true
45
- });
46
- };