@coolon/angular-ui-powerups 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +446 -169
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.d.ts +26 -25
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/coolon-angular-ui-powerups.js +24 -23
  9. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  10. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  12. package/esm2015/lib/components/components.module.js +9 -2
  13. package/esm2015/lib/components/components.module.js.map +1 -1
  14. package/esm2015/lib/components/components.module.metadata.json +1 -1
  15. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  16. package/esm2015/lib/components/forms/abstract-input.component.js +12 -1
  17. package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
  18. package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
  19. package/esm2015/lib/components/forms/number-input/number-input.component.js +2 -2
  20. package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
  21. package/esm2015/lib/components/forms/number-input/number-input.component.metadata.json +1 -1
  22. package/esm2015/lib/components/forms/password-input/password-input.component.js +2 -2
  23. package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
  24. package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
  25. package/esm2015/lib/components/forms/select-input/select-input.component.js +3 -3
  26. package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
  27. package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
  28. package/esm2015/lib/components/forms/string-input/string-input.component.js +3 -3
  29. package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
  30. package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
  31. package/esm2015/lib/components/index.js +1 -0
  32. package/esm2015/lib/components/index.js.map +1 -1
  33. package/esm2015/lib/components/index.metadata.json +1 -1
  34. package/esm2015/lib/components/switch-case/switch-case.component.js +124 -0
  35. package/esm2015/lib/components/switch-case/switch-case.component.js.map +1 -0
  36. package/esm2015/lib/components/switch-case/switch-case.component.metadata.json +1 -0
  37. package/esm2015/lib/components/switch-case/switch-case.component.ngfactory.js.map +1 -0
  38. package/esm2015/lib/components/switch-case/switch-case.component.scss.shim.ngstyle.js.map +1 -0
  39. package/esm2015/lib/directives/command.directive.js +4 -4
  40. package/esm2015/lib/directives/command.directive.js.map +1 -1
  41. package/esm2015/lib/directives/focus-binding.directive.js +3 -3
  42. package/esm2015/lib/directives/focus-binding.directive.js.map +1 -1
  43. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +1 -1
  44. package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.metadata.json +1 -1
  45. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +1 -1
  46. package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.metadata.json +1 -1
  47. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +1 -1
  48. package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.metadata.json +1 -1
  49. package/esm2015/lib/place/components/abstract-place-navigation.component.js +3 -3
  50. package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  51. package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
  52. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js +2 -2
  53. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
  54. package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.metadata.json +1 -1
  55. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +3 -3
  56. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  57. package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
  58. package/esm2015/lib/place/guards/place.guard.js +4 -3
  59. package/esm2015/lib/place/guards/place.guard.js.map +1 -1
  60. package/esm2015/lib/place/place-component.js +2 -2
  61. package/esm2015/lib/place/place-component.js.map +1 -1
  62. package/esm2015/lib/place/place-history.js +116 -13
  63. package/esm2015/lib/place/place-history.js.map +1 -1
  64. package/esm2015/lib/place/place-history.metadata.json +1 -1
  65. package/esm2015/lib/place/place-router.js +13 -6
  66. package/esm2015/lib/place/place-router.js.map +1 -1
  67. package/esm2015/lib/place/place-router.metadata.json +1 -1
  68. package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
  69. package/esm2015/lib/place/route/parameter-definition.class.js +10 -9
  70. package/esm2015/lib/place/route/parameter-definition.class.js.map +1 -1
  71. package/esm2015/lib/place/route/visit-sanitiser.js +14 -6
  72. package/esm2015/lib/place/route/visit-sanitiser.js.map +1 -1
  73. package/esm2015/lib/place/route/visit-sanitiser.metadata.json +1 -1
  74. package/esm5/coolon-angular-ui-powerups.js +24 -23
  75. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  76. package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
  77. package/esm5/lib/components/components.module.js +9 -2
  78. package/esm5/lib/components/components.module.js.map +1 -1
  79. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  80. package/esm5/lib/components/forms/abstract-input.component.js +12 -1
  81. package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
  82. package/esm5/lib/components/forms/number-input/number-input.component.js +2 -2
  83. package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
  84. package/esm5/lib/components/forms/password-input/password-input.component.js +2 -2
  85. package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
  86. package/esm5/lib/components/forms/select-input/select-input.component.js +3 -3
  87. package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
  88. package/esm5/lib/components/forms/string-input/string-input.component.js +3 -3
  89. package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
  90. package/esm5/lib/components/index.js +1 -0
  91. package/esm5/lib/components/index.js.map +1 -1
  92. package/esm5/lib/components/switch-case/switch-case.component.js +144 -0
  93. package/esm5/lib/components/switch-case/switch-case.component.js.map +1 -0
  94. package/esm5/lib/components/switch-case/switch-case.component.ngfactory.js.map +1 -0
  95. package/esm5/lib/components/switch-case/switch-case.component.scss.shim.ngstyle.js.map +1 -0
  96. package/esm5/lib/directives/command.directive.js +4 -4
  97. package/esm5/lib/directives/command.directive.js.map +1 -1
  98. package/esm5/lib/directives/focus-binding.directive.js +3 -3
  99. package/esm5/lib/directives/focus-binding.directive.js.map +1 -1
  100. package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +1 -1
  101. package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +1 -1
  102. package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +1 -1
  103. package/esm5/lib/place/components/abstract-place-navigation.component.js +3 -3
  104. package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
  105. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js +2 -2
  106. package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
  107. package/esm5/lib/place/components/place-outlet/place-outlet.component.js +3 -3
  108. package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
  109. package/esm5/lib/place/guards/place.guard.js +5 -4
  110. package/esm5/lib/place/guards/place.guard.js.map +1 -1
  111. package/esm5/lib/place/place-component.js +2 -2
  112. package/esm5/lib/place/place-component.js.map +1 -1
  113. package/esm5/lib/place/place-history.js +117 -11
  114. package/esm5/lib/place/place-history.js.map +1 -1
  115. package/esm5/lib/place/place-router.js +13 -7
  116. package/esm5/lib/place/place-router.js.map +1 -1
  117. package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
  118. package/esm5/lib/place/route/parameter-definition.class.js +11 -11
  119. package/esm5/lib/place/route/parameter-definition.class.js.map +1 -1
  120. package/esm5/lib/place/route/visit-sanitiser.js +14 -6
  121. package/esm5/lib/place/route/visit-sanitiser.js.map +1 -1
  122. package/fesm2015/coolon-angular-ui-powerups.js +377 -127
  123. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  124. package/fesm5/coolon-angular-ui-powerups.js +405 -135
  125. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  126. package/lib/components/forms/abstract-input.component.d.ts +11 -1
  127. package/lib/components/index.d.ts +1 -0
  128. package/lib/components/switch-case/switch-case.component.d.ts +32 -0
  129. package/lib/place/place-history.d.ts +17 -3
  130. package/lib/place/route/parameter-definition.class.d.ts +1 -1
  131. package/lib/place/route/visit-sanitiser.d.ts +3 -1
  132. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"components.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/components.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './components.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@angular/cdk/text-field';\nimport * as i5 from '@angular/material/form-field';\nimport * as i6 from '@angular/material/input';\nimport * as i7 from '@angular/cdk/scrolling';\nimport * as i8 from '@angular/material/core';\nimport * as i9 from '@angular/cdk/bidi';\nimport * as i10 from '@angular/material/select';\nimport * as i11 from '@angular/material/tabs';\nimport * as i12 from '../directives/command.directive';\nimport * as i13 from '../directives/focus-binding.directive';\nimport * as i14 from '@angular/material/icon';\nimport * as i15 from '@angular/material/button';\nimport * as i16 from './forms/number-input/number-input.component';\nimport * as i17 from './forms/string-input/string-input.component';\nimport * as i18 from './forms/password-input/password-input.component';\nimport * as i19 from './forms/select-input/select-input.component';\nimport * as i20 from './scroll-container/scroll-container.component';\nimport * as i21 from './noop/noop.component';\nimport * as i22 from './forms/abstract-input.component';\nimport * as i23 from '@angular/platform-browser/animations';\nimport * as i24 from '../directives/directives.module';\nexport const ComponentsModuleNgFactory:i0.NgModuleFactory<i1.ComponentsModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.ɵangular_packages_forms_forms_y = (<any>(null as any));\nvar _decl0_12:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_13:i3.ɵangular_packages_forms_forms_x = (<any>(null as any));\nvar _decl0_14:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_15:i3.NumberValueAccessor = (<any>(null as any));\nvar _decl0_16:i3.RangeValueAccessor = (<any>(null as any));\nvar _decl0_17:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_18:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_19:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_20:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_21:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_22:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_23:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_24:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_25:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_26:i3.PatternValidator = (<any>(null as any));\nvar _decl0_27:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_28:i3.EmailValidator = (<any>(null as any));\nvar _decl0_29:i3.NgModel = (<any>(null as any));\nvar _decl0_30:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_31:i3.NgForm = (<any>(null as any));\nvar _decl0_32:i4.CdkAutofill = (<any>(null as any));\nvar _decl0_33:i4.CdkTextareaAutosize = (<any>(null as any));\nvar _decl0_34:i5.MatError = (<any>(null as any));\nvar _decl0_35:i5.MatFormField = (<any>(null as any));\nvar _decl0_36:i5.MatHint = (<any>(null as any));\nvar _decl0_37:i5.MatLabel = (<any>(null as any));\nvar _decl0_38:i5.MatPlaceholder = (<any>(null as any));\nvar _decl0_39:i5.MatPrefix = (<any>(null as any));\nvar _decl0_40:i5.MatSuffix = (<any>(null as any));\nvar _decl0_41:i6.MatInput = (<any>(null as any));\nvar _decl0_42:i6.MatTextareaAutosize = (<any>(null as any));\nvar _decl0_43:i7.CdkScrollable = (<any>(null as any));\nvar _decl0_44:i8.MatOption = (<any>(null as any));\nvar _decl0_45:i8.MatOptgroup = (<any>(null as any));\nvar _decl0_46:i9.Dir = (<any>(null as any));\nvar _decl0_47:i10.MatSelect = (<any>(null as any));\nvar _decl0_48:i10.MatSelectTrigger = (<any>(null as any));\nvar _decl0_49:i11.MatTabGroup = (<any>(null as any));\nvar _decl0_50:i11.MatTabLabel = (<any>(null as any));\nvar _decl0_51:i11.MatTab = (<any>(null as any));\nvar _decl0_52:i11.MatTabNav = (<any>(null as any));\nvar _decl0_53:i11.MatTabLink = (<any>(null as any));\nvar _decl0_54:i11.MatTabContent = (<any>(null as any));\nvar _decl0_55:i12.CommandDirective<any> = (<any>(null as any));\nvar _decl0_56:i13.FocusBindingDirective = (<any>(null as any));\nvar _decl0_57:i14.MatIcon = (<any>(null as any));\nvar _decl0_58:i15.MatButton = (<any>(null as any));\nvar _decl0_59:i15.MatAnchor = (<any>(null as any));\nvar _decl0_60:i16.NumberInputComponent = (<any>(null as any));\nvar _decl0_61:i17.StringInputComponent = (<any>(null as any));\nvar _decl0_62:i18.PasswordInputComponent = (<any>(null as any));\nvar _decl0_63:i19.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_64:i20.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_65:i21.NoopComponent = (<any>(null as any));\nvar _decl0_66:i22.AbstractInputComponent<any> = (<any>(null as any));\nvar _decl0_67:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_68:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_69:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_70:i2.JsonPipe = (<any>(null as any));\nvar _decl0_71:i2.SlicePipe = (<any>(null as any));\nvar _decl0_72:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_73:i2.PercentPipe = (<any>(null as any));\nvar _decl0_74:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_75:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_76:i2.DatePipe = (<any>(null as any));\nvar _decl0_77:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_78:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_79:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_80:i2.CommonModule = (<any>(null as any));\nvar _decl0_81:i23.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_82:i3.FormsModule = (<any>(null as any));\nvar _decl0_83:i6.MatInputModule = (<any>(null as any));\nvar _decl0_84:i5.MatFormFieldModule = (<any>(null as any));\nvar _decl0_85:i10.MatSelectModule = (<any>(null as any));\nvar _decl0_86:i11.MatTabsModule = (<any>(null as any));\nvar _decl0_87:i24.DirectivesModule = (<any>(null as any));\nvar _decl0_88:i14.MatIconModule = (<any>(null as any));\nvar _decl0_89:i15.MatButtonModule = (<any>(null as any));\nvar _decl0_90:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_91:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_NumberInputComponent_Host_1_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_60.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_60.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_60.notifyFocusOut()) !== false);\n}\nfunction _View_NumberInputComponent_1_1():void {\n if (_decl0_60.label) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_60.label;\n currVal_0;\n }\n}\nfunction _View_NumberInputComponent_1_2():void {\n if (_decl0_60.hint) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_36.align == 'end');\n currVal_0;\n const currVal_1:any = _decl0_36.id;\n currVal_1;\n const currVal_2:any = null;\n currVal_2;\n const currVal_3:any = _decl0_60.hint;\n currVal_3;\n }\n}\nfunction _View_NumberInputComponent_1_3():void {\n if (_decl0_60.hasErrors) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.id;\n currVal_0;\n const currVal_1:any = _decl0_60.firstError;\n currVal_1;\n }\n}\nfunction _View_NumberInputComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'standard';\n currVal_0;\n const currVal_1:any = _decl0_60.floatLabel;\n currVal_1;\n const currVal_2:any = (_decl0_35.appearance == 'standard');\n currVal_2;\n const currVal_3:any = (_decl0_35.appearance == 'fill');\n currVal_3;\n const currVal_4:any = (_decl0_35.appearance == 'outline');\n currVal_4;\n const currVal_5:any = (_decl0_35.appearance == 'legacy');\n currVal_5;\n const currVal_6:any = _decl0_35._control.errorState;\n currVal_6;\n const currVal_7:any = _decl0_35._canLabelFloat;\n currVal_7;\n const currVal_8:any = _decl0_35._shouldLabelFloat();\n currVal_8;\n const currVal_9:any = _decl0_35._hasFloatingLabel();\n currVal_9;\n const currVal_10:any = _decl0_35._hideControlPlaceholder();\n currVal_10;\n const currVal_11:any = _decl0_35._control.disabled;\n currVal_11;\n const currVal_12:any = _decl0_35._control.autofilled;\n currVal_12;\n const currVal_13:any = _decl0_35._control.focused;\n currVal_13;\n const currVal_14:any = (_decl0_35.color == 'accent');\n currVal_14;\n const currVal_15:any = (_decl0_35.color == 'warn');\n currVal_15;\n const currVal_16:any = _decl0_35._shouldForward('untouched');\n currVal_16;\n const currVal_17:any = _decl0_35._shouldForward('touched');\n currVal_17;\n const currVal_18:any = _decl0_35._shouldForward('pristine');\n currVal_18;\n const currVal_19:any = _decl0_35._shouldForward('dirty');\n currVal_19;\n const currVal_20:any = _decl0_35._shouldForward('valid');\n currVal_20;\n const currVal_21:any = _decl0_35._shouldForward('invalid');\n currVal_21;\n const currVal_22:any = _decl0_35._shouldForward('pending');\n currVal_22;\n const currVal_23:any = !_decl0_35._animationsEnabled;\n currVal_23;\n const currVal_24:any = _decl0_60.label;\n currVal_24;\n const currVal_25:any = !_decl0_60.enabled.value;\n currVal_25;\n const currVal_26:any = _decl0_60.valueModel.value;\n currVal_26;\n const currVal_27:any = _decl0_21.ngClassUntouched;\n currVal_27;\n const currVal_28:any = _decl0_21.ngClassTouched;\n currVal_28;\n const currVal_29:any = _decl0_21.ngClassPristine;\n currVal_29;\n const currVal_30:any = _decl0_21.ngClassDirty;\n currVal_30;\n const currVal_31:any = _decl0_21.ngClassValid;\n currVal_31;\n const currVal_32:any = _decl0_21.ngClassInvalid;\n currVal_32;\n const currVal_33:any = _decl0_21.ngClassPending;\n currVal_33;\n const currVal_34:any = !_decl0_60.enabled.value;\n currVal_34;\n const currVal_35:any = i0.ɵinlineInterpolate(1,'',_decl0_60.placeholder,'');\n currVal_35;\n const currVal_36:any = 'number';\n currVal_36;\n const currVal_37:any = _decl0_60.errorStateMatcher;\n currVal_37;\n const currVal_38:any = _decl0_41._isServer;\n currVal_38;\n const currVal_39:any = _decl0_41.id;\n currVal_39;\n const currVal_40:any = _decl0_41.placeholder;\n currVal_40;\n const currVal_41:any = _decl0_41.disabled;\n currVal_41;\n const currVal_42:any = _decl0_41.required;\n currVal_42;\n const currVal_43:any = ((_decl0_41.readonly && !_decl0_41._isNativeSelect) || null);\n currVal_43;\n const currVal_44:any = (_decl0_41._ariaDescribedby || null);\n currVal_44;\n const currVal_45:any = _decl0_41.errorState;\n currVal_45;\n const currVal_46:any = _decl0_41.required.toString();\n currVal_46;\n const currVal_47:any = _decl0_60.valueModel;\n currVal_47;\n const currVal_48:any = _decl0_60.hint;\n currVal_48;\n const currVal_49:any = _decl0_60.hasErrors;\n currVal_49;\n const pd_50:any = ((<any>(<any>_decl0_14)._handleInput(_any.target.value)) !== false);\n const pd_51:any = ((<any>_decl0_14.onTouched()) !== false);\n const pd_52:any = ((<any>(<any>_decl0_14)._compositionStart()) !== false);\n const pd_53:any = ((<any>(<any>_decl0_14)._compositionEnd(_any.target.value)) !== false);\n const pd_54:any = ((<any>_decl0_15.onChange(_any.target.value)) !== false);\n const pd_55:any = ((<any>_decl0_15.onChange(_any.target.value)) !== false);\n const pd_56:any = ((<any>_decl0_15.onTouched()) !== false);\n const pd_57:any = ((<any>_decl0_41._focusChanged(true)) !== false);\n const pd_58:any = ((<any>_decl0_41._focusChanged(false)) !== false);\n const pd_59:any = ((<any>_decl0_41._onInput()) !== false);\n const pd_60:any = ((<any>_decl0_56.onFocusIn()) !== false);\n const pd_61:any = ((<any>_decl0_56.onFocusOut()) !== false);\n const pd_62:any = ((<any>(_decl0_60.valueModel.value = _any)) !== false);\n const pd_63:any = ((<any>_decl0_60.notifyEnterKey()) !== false);\n const pd_64:any = ((<any>_decl0_60.notifyEscapeKey()) !== false);\n}\nfunction _View_StringInputComponent_Host_2_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_61.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_61.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_61.notifyFocusOut()) !== false);\n}\nfunction _View_StringInputComponent_2_1():void {\n if (_decl0_61.label) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_61.label;\n currVal_0;\n }\n}\nfunction _View_StringInputComponent_2_2():void {\n if (_decl0_61.hint) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_36.align == 'end');\n currVal_0;\n const currVal_1:any = _decl0_36.id;\n currVal_1;\n const currVal_2:any = null;\n currVal_2;\n const currVal_3:any = _decl0_61.hint;\n currVal_3;\n }\n}\nfunction _View_StringInputComponent_2_3():void {\n if (_decl0_61.hasErrors) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.id;\n currVal_0;\n const currVal_1:any = _decl0_61.firstError;\n currVal_1;\n }\n}\nfunction _View_StringInputComponent_2_4():void {\n if (_decl0_61.enableClear) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_61.clearCommand;\n currVal_0;\n const currVal_1:any = (_decl0_58.disabled || null);\n currVal_1;\n const currVal_2:any = (_decl0_58._animationMode === 'NoopAnimations');\n currVal_2;\n const currVal_3:any = _decl0_57.inline;\n currVal_3;\n const currVal_4:any = (((_decl0_57.color !== 'primary') && (_decl0_57.color !== 'accent')) && (_decl0_57.color !== 'warn'));\n currVal_4;\n const pd_5:any = ((<any>_decl0_55.notifyClick(_any)) !== false);\n }\n}\nfunction _View_StringInputComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'standard';\n currVal_0;\n const currVal_1:any = _decl0_61.floatLabel;\n currVal_1;\n const currVal_2:any = (_decl0_35.appearance == 'standard');\n currVal_2;\n const currVal_3:any = (_decl0_35.appearance == 'fill');\n currVal_3;\n const currVal_4:any = (_decl0_35.appearance == 'outline');\n currVal_4;\n const currVal_5:any = (_decl0_35.appearance == 'legacy');\n currVal_5;\n const currVal_6:any = _decl0_35._control.errorState;\n currVal_6;\n const currVal_7:any = _decl0_35._canLabelFloat;\n currVal_7;\n const currVal_8:any = _decl0_35._shouldLabelFloat();\n currVal_8;\n const currVal_9:any = _decl0_35._hasFloatingLabel();\n currVal_9;\n const currVal_10:any = _decl0_35._hideControlPlaceholder();\n currVal_10;\n const currVal_11:any = _decl0_35._control.disabled;\n currVal_11;\n const currVal_12:any = _decl0_35._control.autofilled;\n currVal_12;\n const currVal_13:any = _decl0_35._control.focused;\n currVal_13;\n const currVal_14:any = (_decl0_35.color == 'accent');\n currVal_14;\n const currVal_15:any = (_decl0_35.color == 'warn');\n currVal_15;\n const currVal_16:any = _decl0_35._shouldForward('untouched');\n currVal_16;\n const currVal_17:any = _decl0_35._shouldForward('touched');\n currVal_17;\n const currVal_18:any = _decl0_35._shouldForward('pristine');\n currVal_18;\n const currVal_19:any = _decl0_35._shouldForward('dirty');\n currVal_19;\n const currVal_20:any = _decl0_35._shouldForward('valid');\n currVal_20;\n const currVal_21:any = _decl0_35._shouldForward('invalid');\n currVal_21;\n const currVal_22:any = _decl0_35._shouldForward('pending');\n currVal_22;\n const currVal_23:any = !_decl0_35._animationsEnabled;\n currVal_23;\n const currVal_24:any = _decl0_61.label;\n currVal_24;\n const currVal_25:any = !_decl0_61.enabled.value;\n currVal_25;\n const currVal_26:any = _decl0_61.valueModel.value;\n currVal_26;\n const currVal_27:any = _decl0_21.ngClassUntouched;\n currVal_27;\n const currVal_28:any = _decl0_21.ngClassTouched;\n currVal_28;\n const currVal_29:any = _decl0_21.ngClassPristine;\n currVal_29;\n const currVal_30:any = _decl0_21.ngClassDirty;\n currVal_30;\n const currVal_31:any = _decl0_21.ngClassValid;\n currVal_31;\n const currVal_32:any = _decl0_21.ngClassInvalid;\n currVal_32;\n const currVal_33:any = _decl0_21.ngClassPending;\n currVal_33;\n const currVal_34:any = !_decl0_61.enabled.value;\n currVal_34;\n const currVal_35:any = i0.ɵinlineInterpolate(1,'',_decl0_61.placeholder,'');\n currVal_35;\n const currVal_36:any = _decl0_61.errorStateMatcher;\n currVal_36;\n const currVal_37:any = _decl0_41._isServer;\n currVal_37;\n const currVal_38:any = _decl0_41.id;\n currVal_38;\n const currVal_39:any = _decl0_41.placeholder;\n currVal_39;\n const currVal_40:any = _decl0_41.disabled;\n currVal_40;\n const currVal_41:any = _decl0_41.required;\n currVal_41;\n const currVal_42:any = ((_decl0_41.readonly && !_decl0_41._isNativeSelect) || null);\n currVal_42;\n const currVal_43:any = (_decl0_41._ariaDescribedby || null);\n currVal_43;\n const currVal_44:any = _decl0_41.errorState;\n currVal_44;\n const currVal_45:any = _decl0_41.required.toString();\n currVal_45;\n const currVal_46:any = _decl0_61.valueModel;\n currVal_46;\n const currVal_47:any = _decl0_61.hint;\n currVal_47;\n const currVal_48:any = _decl0_61.hasErrors;\n currVal_48;\n const currVal_49:any = _decl0_61.enableClear;\n currVal_49;\n const pd_50:any = ((<any>(<any>_decl0_14)._handleInput(_any.target.value)) !== false);\n const pd_51:any = ((<any>_decl0_14.onTouched()) !== false);\n const pd_52:any = ((<any>(<any>_decl0_14)._compositionStart()) !== false);\n const pd_53:any = ((<any>(<any>_decl0_14)._compositionEnd(_any.target.value)) !== false);\n const pd_54:any = ((<any>_decl0_41._focusChanged(true)) !== false);\n const pd_55:any = ((<any>_decl0_41._focusChanged(false)) !== false);\n const pd_56:any = ((<any>_decl0_41._onInput()) !== false);\n const pd_57:any = ((<any>_decl0_56.onFocusIn()) !== false);\n const pd_58:any = ((<any>_decl0_56.onFocusOut()) !== false);\n const pd_59:any = ((<any>(_decl0_61.valueModel.value = _any)) !== false);\n const pd_60:any = ((<any>_decl0_61.notifyEnterKey()) !== false);\n const pd_61:any = ((<any>_decl0_61.notifyEscapeKey()) !== false);\n}\nfunction _View_PasswordInputComponent_Host_3_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_62.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_62.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_62.notifyFocusOut()) !== false);\n}\nfunction _View_PasswordInputComponent_3_1():void {\n if (_decl0_62.label) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_62.label;\n currVal_0;\n }\n}\nfunction _View_PasswordInputComponent_3_2():void {\n if (_decl0_62.hint) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_36.align == 'end');\n currVal_0;\n const currVal_1:any = _decl0_36.id;\n currVal_1;\n const currVal_2:any = null;\n currVal_2;\n const currVal_3:any = _decl0_62.hint;\n currVal_3;\n }\n}\nfunction _View_PasswordInputComponent_3_3():void {\n if (_decl0_62.hasErrors) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.id;\n currVal_0;\n const currVal_1:any = _decl0_62.firstError;\n currVal_1;\n }\n}\nfunction _View_PasswordInputComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'standard';\n currVal_0;\n const currVal_1:any = _decl0_62.floatLabel;\n currVal_1;\n const currVal_2:any = (_decl0_35.appearance == 'standard');\n currVal_2;\n const currVal_3:any = (_decl0_35.appearance == 'fill');\n currVal_3;\n const currVal_4:any = (_decl0_35.appearance == 'outline');\n currVal_4;\n const currVal_5:any = (_decl0_35.appearance == 'legacy');\n currVal_5;\n const currVal_6:any = _decl0_35._control.errorState;\n currVal_6;\n const currVal_7:any = _decl0_35._canLabelFloat;\n currVal_7;\n const currVal_8:any = _decl0_35._shouldLabelFloat();\n currVal_8;\n const currVal_9:any = _decl0_35._hasFloatingLabel();\n currVal_9;\n const currVal_10:any = _decl0_35._hideControlPlaceholder();\n currVal_10;\n const currVal_11:any = _decl0_35._control.disabled;\n currVal_11;\n const currVal_12:any = _decl0_35._control.autofilled;\n currVal_12;\n const currVal_13:any = _decl0_35._control.focused;\n currVal_13;\n const currVal_14:any = (_decl0_35.color == 'accent');\n currVal_14;\n const currVal_15:any = (_decl0_35.color == 'warn');\n currVal_15;\n const currVal_16:any = _decl0_35._shouldForward('untouched');\n currVal_16;\n const currVal_17:any = _decl0_35._shouldForward('touched');\n currVal_17;\n const currVal_18:any = _decl0_35._shouldForward('pristine');\n currVal_18;\n const currVal_19:any = _decl0_35._shouldForward('dirty');\n currVal_19;\n const currVal_20:any = _decl0_35._shouldForward('valid');\n currVal_20;\n const currVal_21:any = _decl0_35._shouldForward('invalid');\n currVal_21;\n const currVal_22:any = _decl0_35._shouldForward('pending');\n currVal_22;\n const currVal_23:any = !_decl0_35._animationsEnabled;\n currVal_23;\n const currVal_24:any = _decl0_62.label;\n currVal_24;\n const currVal_25:any = !_decl0_62.enabled.value;\n currVal_25;\n const currVal_26:any = _decl0_62.valueModel.value;\n currVal_26;\n const currVal_27:any = _decl0_21.ngClassUntouched;\n currVal_27;\n const currVal_28:any = _decl0_21.ngClassTouched;\n currVal_28;\n const currVal_29:any = _decl0_21.ngClassPristine;\n currVal_29;\n const currVal_30:any = _decl0_21.ngClassDirty;\n currVal_30;\n const currVal_31:any = _decl0_21.ngClassValid;\n currVal_31;\n const currVal_32:any = _decl0_21.ngClassInvalid;\n currVal_32;\n const currVal_33:any = _decl0_21.ngClassPending;\n currVal_33;\n const currVal_34:any = !_decl0_62.enabled.value;\n currVal_34;\n const currVal_35:any = i0.ɵinlineInterpolate(1,'',_decl0_62.placeholder,'');\n currVal_35;\n const currVal_36:any = 'password';\n currVal_36;\n const currVal_37:any = _decl0_62.errorStateMatcher;\n currVal_37;\n const currVal_38:any = _decl0_41._isServer;\n currVal_38;\n const currVal_39:any = _decl0_41.id;\n currVal_39;\n const currVal_40:any = _decl0_41.placeholder;\n currVal_40;\n const currVal_41:any = _decl0_41.disabled;\n currVal_41;\n const currVal_42:any = _decl0_41.required;\n currVal_42;\n const currVal_43:any = ((_decl0_41.readonly && !_decl0_41._isNativeSelect) || null);\n currVal_43;\n const currVal_44:any = (_decl0_41._ariaDescribedby || null);\n currVal_44;\n const currVal_45:any = _decl0_41.errorState;\n currVal_45;\n const currVal_46:any = _decl0_41.required.toString();\n currVal_46;\n const currVal_47:any = _decl0_62.valueModel;\n currVal_47;\n const currVal_48:any = _decl0_62.hint;\n currVal_48;\n const currVal_49:any = _decl0_62.hasErrors;\n currVal_49;\n const pd_50:any = ((<any>(<any>_decl0_14)._handleInput(_any.target.value)) !== false);\n const pd_51:any = ((<any>_decl0_14.onTouched()) !== false);\n const pd_52:any = ((<any>(<any>_decl0_14)._compositionStart()) !== false);\n const pd_53:any = ((<any>(<any>_decl0_14)._compositionEnd(_any.target.value)) !== false);\n const pd_54:any = ((<any>_decl0_41._focusChanged(true)) !== false);\n const pd_55:any = ((<any>_decl0_41._focusChanged(false)) !== false);\n const pd_56:any = ((<any>_decl0_41._onInput()) !== false);\n const pd_57:any = ((<any>_decl0_56.onFocusIn()) !== false);\n const pd_58:any = ((<any>_decl0_56.onFocusOut()) !== false);\n const pd_59:any = ((<any>(_decl0_62.valueModel.value = _any)) !== false);\n const pd_60:any = ((<any>_decl0_62.notifyEnterKey()) !== false);\n const pd_61:any = ((<any>_decl0_62.notifyEscapeKey()) !== false);\n}\nfunction _View_SelectInputComponent_Host_4_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_63.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_63.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_63.notifyFocusOut()) !== false);\n}\nfunction _View_SelectInputComponent_4_1():void {\n if (_decl0_63.label) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_63.label;\n currVal_0;\n }\n}\nfunction _View_SelectInputComponent_4_2():void {\n if (_decl0_63.allowNil) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_44._getTabIndex();\n currVal_0;\n const currVal_1:any = _decl0_44.selected;\n currVal_1;\n const currVal_2:any = _decl0_44.multiple;\n currVal_2;\n const currVal_3:any = _decl0_44.active;\n currVal_3;\n const currVal_4:any = _decl0_44.id;\n currVal_4;\n const currVal_5:any = _decl0_44._getAriaSelected();\n currVal_5;\n const currVal_6:any = _decl0_44.disabled.toString();\n currVal_6;\n const currVal_7:any = _decl0_44.disabled;\n currVal_7;\n const currVal_8:any = _decl0_63.placeholder;\n currVal_8;\n const pd_9:any = ((<any>_decl0_44._selectViaInteraction()) !== false);\n const pd_10:any = ((<any>_decl0_44._handleKeydown(_any)) !== false);\n }\n}\nfunction _View_SelectInputComponent_4_4():void {\n if (!_decl0_63.optionTemplateRef) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_63.optionLabelFormat(_any);\n currVal_0;\n }\n}\nfunction _View_SelectInputComponent_4_5():void {\n if (_decl0_63.optionTemplateRef) {\n var _any:any = (null as any);\n const currVal_0:any = {$implicit:_any,index:_any};\n currVal_0;\n const currVal_1:any = _decl0_63.optionTemplateRef;\n currVal_1;\n }\n}\nfunction _View_SelectInputComponent_4_3():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n const currVal_1:any = _decl0_44._getTabIndex();\n currVal_1;\n const currVal_2:any = _decl0_44.selected;\n currVal_2;\n const currVal_3:any = _decl0_44.multiple;\n currVal_3;\n const currVal_4:any = _decl0_44.active;\n currVal_4;\n const currVal_5:any = _decl0_44.id;\n currVal_5;\n const currVal_6:any = _decl0_44._getAriaSelected();\n currVal_6;\n const currVal_7:any = _decl0_44.disabled.toString();\n currVal_7;\n const currVal_8:any = _decl0_44.disabled;\n currVal_8;\n const currVal_9:any = !_decl0_63.optionTemplateRef;\n currVal_9;\n const currVal_10:any = _decl0_63.optionTemplateRef;\n currVal_10;\n const pd_11:any = ((<any>_decl0_44._selectViaInteraction()) !== false);\n const pd_12:any = ((<any>_decl0_44._handleKeydown(_any)) !== false);\n}\nfunction _View_SelectInputComponent_4_6():void {\n if (_decl0_63.hint) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_36.align == 'end');\n currVal_0;\n const currVal_1:any = _decl0_36.id;\n currVal_1;\n const currVal_2:any = null;\n currVal_2;\n const currVal_3:any = _decl0_63.hint;\n currVal_3;\n }\n}\nfunction _View_SelectInputComponent_4_7():void {\n if (_decl0_63.hasErrors) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.id;\n currVal_0;\n const currVal_1:any = _decl0_63.firstError;\n currVal_1;\n }\n}\nfunction _View_SelectInputComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'standard';\n currVal_0;\n const currVal_1:any = _decl0_63.floatLabel;\n currVal_1;\n const currVal_2:any = (_decl0_35.appearance == 'standard');\n currVal_2;\n const currVal_3:any = (_decl0_35.appearance == 'fill');\n currVal_3;\n const currVal_4:any = (_decl0_35.appearance == 'outline');\n currVal_4;\n const currVal_5:any = (_decl0_35.appearance == 'legacy');\n currVal_5;\n const currVal_6:any = _decl0_35._control.errorState;\n currVal_6;\n const currVal_7:any = _decl0_35._canLabelFloat;\n currVal_7;\n const currVal_8:any = _decl0_35._shouldLabelFloat();\n currVal_8;\n const currVal_9:any = _decl0_35._hasFloatingLabel();\n currVal_9;\n const currVal_10:any = _decl0_35._hideControlPlaceholder();\n currVal_10;\n const currVal_11:any = _decl0_35._control.disabled;\n currVal_11;\n const currVal_12:any = _decl0_35._control.autofilled;\n currVal_12;\n const currVal_13:any = _decl0_35._control.focused;\n currVal_13;\n const currVal_14:any = (_decl0_35.color == 'accent');\n currVal_14;\n const currVal_15:any = (_decl0_35.color == 'warn');\n currVal_15;\n const currVal_16:any = _decl0_35._shouldForward('untouched');\n currVal_16;\n const currVal_17:any = _decl0_35._shouldForward('touched');\n currVal_17;\n const currVal_18:any = _decl0_35._shouldForward('pristine');\n currVal_18;\n const currVal_19:any = _decl0_35._shouldForward('dirty');\n currVal_19;\n const currVal_20:any = _decl0_35._shouldForward('valid');\n currVal_20;\n const currVal_21:any = _decl0_35._shouldForward('invalid');\n currVal_21;\n const currVal_22:any = _decl0_35._shouldForward('pending');\n currVal_22;\n const currVal_23:any = !_decl0_35._animationsEnabled;\n currVal_23;\n const currVal_24:any = _decl0_63.label;\n currVal_24;\n const currVal_25:any = !_decl0_63.enabled.value;\n currVal_25;\n const currVal_26:any = _decl0_63.valueModel.value;\n currVal_26;\n const currVal_27:any = _decl0_21.ngClassUntouched;\n currVal_27;\n const currVal_28:any = _decl0_21.ngClassTouched;\n currVal_28;\n const currVal_29:any = _decl0_21.ngClassPristine;\n currVal_29;\n const currVal_30:any = _decl0_21.ngClassDirty;\n currVal_30;\n const currVal_31:any = _decl0_21.ngClassValid;\n currVal_31;\n const currVal_32:any = _decl0_21.ngClassInvalid;\n currVal_32;\n const currVal_33:any = _decl0_21.ngClassPending;\n currVal_33;\n const currVal_34:any = !_decl0_63.enabled.value;\n currVal_34;\n const currVal_35:any = i0.ɵinlineInterpolate(1,'',_decl0_63.placeholder,'');\n currVal_35;\n const currVal_36:any = _decl0_63.errorStateMatcher;\n currVal_36;\n const currVal_37:any = _decl0_47.id;\n currVal_37;\n const currVal_38:any = _decl0_47.tabIndex;\n currVal_38;\n const currVal_39:any = _decl0_47._getAriaLabel();\n currVal_39;\n const currVal_40:any = _decl0_47._getAriaLabelledby();\n currVal_40;\n const currVal_41:any = _decl0_47.required.toString();\n currVal_41;\n const currVal_42:any = _decl0_47.disabled.toString();\n currVal_42;\n const currVal_43:any = _decl0_47.errorState;\n currVal_43;\n const currVal_44:any = (_decl0_47.panelOpen? _decl0_47._optionIds: null);\n currVal_44;\n const currVal_45:any = _decl0_47.multiple;\n currVal_45;\n const currVal_46:any = (_decl0_47._ariaDescribedby || null);\n currVal_46;\n const currVal_47:any = _decl0_47._getAriaActiveDescendant();\n currVal_47;\n const currVal_48:any = _decl0_47.disabled;\n currVal_48;\n const currVal_49:any = _decl0_47.errorState;\n currVal_49;\n const currVal_50:any = _decl0_47.required;\n currVal_50;\n const currVal_51:any = _decl0_47.empty;\n currVal_51;\n const currVal_52:any = _decl0_63.valueModel;\n currVal_52;\n const currVal_53:any = _decl0_63.allowNil;\n currVal_53;\n const currVal_54:any = _decl0_63.optionsModel.value;\n currVal_54;\n const currVal_55:any = _decl0_63.hint;\n currVal_55;\n const currVal_56:any = _decl0_63.hasErrors;\n currVal_56;\n const pd_57:any = ((<any>_decl0_47._handleKeydown(_any)) !== false);\n const pd_58:any = ((<any>_decl0_47._onFocus()) !== false);\n const pd_59:any = ((<any>_decl0_47._onBlur()) !== false);\n const pd_60:any = ((<any>_decl0_56.onFocusIn()) !== false);\n const pd_61:any = ((<any>_decl0_56.onFocusOut()) !== false);\n const pd_62:any = ((<any>(_decl0_63.valueModel.value = _any)) !== false);\n const pd_63:any = ((<any>_decl0_63.notifyEnterKey()) !== false);\n const pd_64:any = ((<any>_decl0_63.notifyEscapeKey()) !== false);\n}\nfunction _View_ScrollContainerComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ScrollContainerComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NoopComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NoopComponent_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AbstractInputComponent_Host_7_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_66.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_66.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_66.notifyFocusOut()) !== false);\n}\nfunction _View_AbstractInputComponent_7_0():void {\n var _any:any = (null as any);\n}\n"]}
1
+ {"version":3,"file":"components.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/components.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './components.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@angular/cdk/text-field';\nimport * as i5 from '@angular/material/form-field';\nimport * as i6 from '@angular/material/input';\nimport * as i7 from '@angular/cdk/scrolling';\nimport * as i8 from '@angular/material/core';\nimport * as i9 from '@angular/cdk/bidi';\nimport * as i10 from '@angular/material/select';\nimport * as i11 from '@angular/material/tabs';\nimport * as i12 from '../directives/command.directive';\nimport * as i13 from '../directives/focus-binding.directive';\nimport * as i14 from '@angular/material/icon';\nimport * as i15 from '@angular/material/button';\nimport * as i16 from './forms/number-input/number-input.component';\nimport * as i17 from './forms/string-input/string-input.component';\nimport * as i18 from './forms/password-input/password-input.component';\nimport * as i19 from './forms/select-input/select-input.component';\nimport * as i20 from './scroll-container/scroll-container.component';\nimport * as i21 from './noop/noop.component';\nimport * as i22 from './forms/abstract-input.component';\nimport * as i23 from './switch-case/switch-case.component';\nimport * as i24 from '@angular/platform-browser/animations';\nimport * as i25 from '../directives/directives.module';\nexport const ComponentsModuleNgFactory:i0.NgModuleFactory<i1.ComponentsModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.ɵangular_packages_forms_forms_y = (<any>(null as any));\nvar _decl0_12:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_13:i3.ɵangular_packages_forms_forms_x = (<any>(null as any));\nvar _decl0_14:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_15:i3.NumberValueAccessor = (<any>(null as any));\nvar _decl0_16:i3.RangeValueAccessor = (<any>(null as any));\nvar _decl0_17:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_18:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_19:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_20:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_21:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_22:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_23:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_24:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_25:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_26:i3.PatternValidator = (<any>(null as any));\nvar _decl0_27:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_28:i3.EmailValidator = (<any>(null as any));\nvar _decl0_29:i3.NgModel = (<any>(null as any));\nvar _decl0_30:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_31:i3.NgForm = (<any>(null as any));\nvar _decl0_32:i4.CdkAutofill = (<any>(null as any));\nvar _decl0_33:i4.CdkTextareaAutosize = (<any>(null as any));\nvar _decl0_34:i5.MatError = (<any>(null as any));\nvar _decl0_35:i5.MatFormField = (<any>(null as any));\nvar _decl0_36:i5.MatHint = (<any>(null as any));\nvar _decl0_37:i5.MatLabel = (<any>(null as any));\nvar _decl0_38:i5.MatPlaceholder = (<any>(null as any));\nvar _decl0_39:i5.MatPrefix = (<any>(null as any));\nvar _decl0_40:i5.MatSuffix = (<any>(null as any));\nvar _decl0_41:i6.MatInput = (<any>(null as any));\nvar _decl0_42:i6.MatTextareaAutosize = (<any>(null as any));\nvar _decl0_43:i7.CdkScrollable = (<any>(null as any));\nvar _decl0_44:i8.MatOption = (<any>(null as any));\nvar _decl0_45:i8.MatOptgroup = (<any>(null as any));\nvar _decl0_46:i9.Dir = (<any>(null as any));\nvar _decl0_47:i10.MatSelect = (<any>(null as any));\nvar _decl0_48:i10.MatSelectTrigger = (<any>(null as any));\nvar _decl0_49:i11.MatTabGroup = (<any>(null as any));\nvar _decl0_50:i11.MatTabLabel = (<any>(null as any));\nvar _decl0_51:i11.MatTab = (<any>(null as any));\nvar _decl0_52:i11.MatTabNav = (<any>(null as any));\nvar _decl0_53:i11.MatTabLink = (<any>(null as any));\nvar _decl0_54:i11.MatTabContent = (<any>(null as any));\nvar _decl0_55:i12.CommandDirective<any> = (<any>(null as any));\nvar _decl0_56:i13.FocusBindingDirective = (<any>(null as any));\nvar _decl0_57:i14.MatIcon = (<any>(null as any));\nvar _decl0_58:i15.MatButton = (<any>(null as any));\nvar _decl0_59:i15.MatAnchor = (<any>(null as any));\nvar _decl0_60:i16.NumberInputComponent = (<any>(null as any));\nvar _decl0_61:i17.StringInputComponent = (<any>(null as any));\nvar _decl0_62:i18.PasswordInputComponent = (<any>(null as any));\nvar _decl0_63:i19.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_64:i20.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_65:i21.NoopComponent = (<any>(null as any));\nvar _decl0_66:i22.AbstractInputComponent<any> = (<any>(null as any));\nvar _decl0_67:i23.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_68:i23.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_69:i23.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_70:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_71:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_72:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_73:i2.JsonPipe = (<any>(null as any));\nvar _decl0_74:i2.SlicePipe = (<any>(null as any));\nvar _decl0_75:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_76:i2.PercentPipe = (<any>(null as any));\nvar _decl0_77:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_78:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_79:i2.DatePipe = (<any>(null as any));\nvar _decl0_80:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_81:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_82:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_83:i2.CommonModule = (<any>(null as any));\nvar _decl0_84:i24.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_85:i3.FormsModule = (<any>(null as any));\nvar _decl0_86:i6.MatInputModule = (<any>(null as any));\nvar _decl0_87:i5.MatFormFieldModule = (<any>(null as any));\nvar _decl0_88:i10.MatSelectModule = (<any>(null as any));\nvar _decl0_89:i11.MatTabsModule = (<any>(null as any));\nvar _decl0_90:i25.DirectivesModule = (<any>(null as any));\nvar _decl0_91:i14.MatIconModule = (<any>(null as any));\nvar _decl0_92:i15.MatButtonModule = (<any>(null as any));\nvar _decl0_93:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_94:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_NumberInputComponent_Host_1_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_60.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_60.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_60.notifyFocusOut()) !== false);\n}\nfunction _View_NumberInputComponent_1_1():void {\n if (_decl0_60.label) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_60.label;\n currVal_0;\n }\n}\nfunction _View_NumberInputComponent_1_2():void {\n if (_decl0_60.hint) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_36.align == 'end');\n currVal_0;\n const currVal_1:any = _decl0_36.id;\n currVal_1;\n const currVal_2:any = null;\n currVal_2;\n const currVal_3:any = _decl0_60.hint;\n currVal_3;\n }\n}\nfunction _View_NumberInputComponent_1_3():void {\n if (_decl0_60.hasErrors) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.id;\n currVal_0;\n const currVal_1:any = _decl0_60.firstError;\n currVal_1;\n }\n}\nfunction _View_NumberInputComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'standard';\n currVal_0;\n const currVal_1:any = _decl0_60.floatLabel;\n currVal_1;\n const currVal_2:any = (_decl0_35.appearance == 'standard');\n currVal_2;\n const currVal_3:any = (_decl0_35.appearance == 'fill');\n currVal_3;\n const currVal_4:any = (_decl0_35.appearance == 'outline');\n currVal_4;\n const currVal_5:any = (_decl0_35.appearance == 'legacy');\n currVal_5;\n const currVal_6:any = _decl0_35._control.errorState;\n currVal_6;\n const currVal_7:any = _decl0_35._canLabelFloat;\n currVal_7;\n const currVal_8:any = _decl0_35._shouldLabelFloat();\n currVal_8;\n const currVal_9:any = _decl0_35._hasFloatingLabel();\n currVal_9;\n const currVal_10:any = _decl0_35._hideControlPlaceholder();\n currVal_10;\n const currVal_11:any = _decl0_35._control.disabled;\n currVal_11;\n const currVal_12:any = _decl0_35._control.autofilled;\n currVal_12;\n const currVal_13:any = _decl0_35._control.focused;\n currVal_13;\n const currVal_14:any = (_decl0_35.color == 'accent');\n currVal_14;\n const currVal_15:any = (_decl0_35.color == 'warn');\n currVal_15;\n const currVal_16:any = _decl0_35._shouldForward('untouched');\n currVal_16;\n const currVal_17:any = _decl0_35._shouldForward('touched');\n currVal_17;\n const currVal_18:any = _decl0_35._shouldForward('pristine');\n currVal_18;\n const currVal_19:any = _decl0_35._shouldForward('dirty');\n currVal_19;\n const currVal_20:any = _decl0_35._shouldForward('valid');\n currVal_20;\n const currVal_21:any = _decl0_35._shouldForward('invalid');\n currVal_21;\n const currVal_22:any = _decl0_35._shouldForward('pending');\n currVal_22;\n const currVal_23:any = !_decl0_35._animationsEnabled;\n currVal_23;\n const currVal_24:any = _decl0_60.label;\n currVal_24;\n const currVal_25:any = !_decl0_60.enabled.value;\n currVal_25;\n const currVal_26:any = _decl0_60.valueModel.value;\n currVal_26;\n const currVal_27:any = _decl0_21.ngClassUntouched;\n currVal_27;\n const currVal_28:any = _decl0_21.ngClassTouched;\n currVal_28;\n const currVal_29:any = _decl0_21.ngClassPristine;\n currVal_29;\n const currVal_30:any = _decl0_21.ngClassDirty;\n currVal_30;\n const currVal_31:any = _decl0_21.ngClassValid;\n currVal_31;\n const currVal_32:any = _decl0_21.ngClassInvalid;\n currVal_32;\n const currVal_33:any = _decl0_21.ngClassPending;\n currVal_33;\n const currVal_34:any = !_decl0_60.enabled.value;\n currVal_34;\n const currVal_35:any = i0.ɵinlineInterpolate(1,'',_decl0_60.placeholder,'');\n currVal_35;\n const currVal_36:any = 'number';\n currVal_36;\n const currVal_37:any = _decl0_60.errorStateMatcher;\n currVal_37;\n const currVal_38:any = _decl0_41._isServer;\n currVal_38;\n const currVal_39:any = _decl0_41.id;\n currVal_39;\n const currVal_40:any = _decl0_41.placeholder;\n currVal_40;\n const currVal_41:any = _decl0_41.disabled;\n currVal_41;\n const currVal_42:any = _decl0_41.required;\n currVal_42;\n const currVal_43:any = ((_decl0_41.readonly && !_decl0_41._isNativeSelect) || null);\n currVal_43;\n const currVal_44:any = (_decl0_41._ariaDescribedby || null);\n currVal_44;\n const currVal_45:any = _decl0_41.errorState;\n currVal_45;\n const currVal_46:any = _decl0_41.required.toString();\n currVal_46;\n const currVal_47:any = _decl0_60.valueModel;\n currVal_47;\n const currVal_48:any = _decl0_60.hint;\n currVal_48;\n const currVal_49:any = _decl0_60.hasErrors;\n currVal_49;\n const pd_50:any = ((<any>(<any>_decl0_14)._handleInput(_any.target.value)) !== false);\n const pd_51:any = ((<any>_decl0_14.onTouched()) !== false);\n const pd_52:any = ((<any>(<any>_decl0_14)._compositionStart()) !== false);\n const pd_53:any = ((<any>(<any>_decl0_14)._compositionEnd(_any.target.value)) !== false);\n const pd_54:any = ((<any>_decl0_15.onChange(_any.target.value)) !== false);\n const pd_55:any = ((<any>_decl0_15.onChange(_any.target.value)) !== false);\n const pd_56:any = ((<any>_decl0_15.onTouched()) !== false);\n const pd_57:any = ((<any>_decl0_41._focusChanged(true)) !== false);\n const pd_58:any = ((<any>_decl0_41._focusChanged(false)) !== false);\n const pd_59:any = ((<any>_decl0_41._onInput()) !== false);\n const pd_60:any = ((<any>_decl0_56.onFocusIn()) !== false);\n const pd_61:any = ((<any>_decl0_56.onFocusOut()) !== false);\n const pd_62:any = ((<any>(_decl0_60.valueModel.value = _any)) !== false);\n const pd_63:any = ((<any>_decl0_60.notifyEnterKey()) !== false);\n const pd_64:any = ((<any>_decl0_60.notifyEscapeKey()) !== false);\n}\nfunction _View_StringInputComponent_Host_2_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_61.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_61.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_61.notifyFocusOut()) !== false);\n}\nfunction _View_StringInputComponent_2_1():void {\n if (_decl0_61.label) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_61.label;\n currVal_0;\n }\n}\nfunction _View_StringInputComponent_2_2():void {\n if (_decl0_61.hint) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_36.align == 'end');\n currVal_0;\n const currVal_1:any = _decl0_36.id;\n currVal_1;\n const currVal_2:any = null;\n currVal_2;\n const currVal_3:any = _decl0_61.hint;\n currVal_3;\n }\n}\nfunction _View_StringInputComponent_2_3():void {\n if (_decl0_61.hasErrors) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.id;\n currVal_0;\n const currVal_1:any = _decl0_61.firstError;\n currVal_1;\n }\n}\nfunction _View_StringInputComponent_2_4():void {\n if (_decl0_61.enableClear) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_61.clearCommand;\n currVal_0;\n const currVal_1:any = (_decl0_58.disabled || null);\n currVal_1;\n const currVal_2:any = (_decl0_58._animationMode === 'NoopAnimations');\n currVal_2;\n const currVal_3:any = _decl0_57.inline;\n currVal_3;\n const currVal_4:any = (((_decl0_57.color !== 'primary') && (_decl0_57.color !== 'accent')) && (_decl0_57.color !== 'warn'));\n currVal_4;\n const pd_5:any = ((<any>_decl0_55.notifyClick(_any)) !== false);\n }\n}\nfunction _View_StringInputComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'standard';\n currVal_0;\n const currVal_1:any = _decl0_61.floatLabel;\n currVal_1;\n const currVal_2:any = (_decl0_35.appearance == 'standard');\n currVal_2;\n const currVal_3:any = (_decl0_35.appearance == 'fill');\n currVal_3;\n const currVal_4:any = (_decl0_35.appearance == 'outline');\n currVal_4;\n const currVal_5:any = (_decl0_35.appearance == 'legacy');\n currVal_5;\n const currVal_6:any = _decl0_35._control.errorState;\n currVal_6;\n const currVal_7:any = _decl0_35._canLabelFloat;\n currVal_7;\n const currVal_8:any = _decl0_35._shouldLabelFloat();\n currVal_8;\n const currVal_9:any = _decl0_35._hasFloatingLabel();\n currVal_9;\n const currVal_10:any = _decl0_35._hideControlPlaceholder();\n currVal_10;\n const currVal_11:any = _decl0_35._control.disabled;\n currVal_11;\n const currVal_12:any = _decl0_35._control.autofilled;\n currVal_12;\n const currVal_13:any = _decl0_35._control.focused;\n currVal_13;\n const currVal_14:any = (_decl0_35.color == 'accent');\n currVal_14;\n const currVal_15:any = (_decl0_35.color == 'warn');\n currVal_15;\n const currVal_16:any = _decl0_35._shouldForward('untouched');\n currVal_16;\n const currVal_17:any = _decl0_35._shouldForward('touched');\n currVal_17;\n const currVal_18:any = _decl0_35._shouldForward('pristine');\n currVal_18;\n const currVal_19:any = _decl0_35._shouldForward('dirty');\n currVal_19;\n const currVal_20:any = _decl0_35._shouldForward('valid');\n currVal_20;\n const currVal_21:any = _decl0_35._shouldForward('invalid');\n currVal_21;\n const currVal_22:any = _decl0_35._shouldForward('pending');\n currVal_22;\n const currVal_23:any = !_decl0_35._animationsEnabled;\n currVal_23;\n const currVal_24:any = _decl0_61.label;\n currVal_24;\n const currVal_25:any = !_decl0_61.enabled.value;\n currVal_25;\n const currVal_26:any = _decl0_61.valueModel.value;\n currVal_26;\n const currVal_27:any = _decl0_21.ngClassUntouched;\n currVal_27;\n const currVal_28:any = _decl0_21.ngClassTouched;\n currVal_28;\n const currVal_29:any = _decl0_21.ngClassPristine;\n currVal_29;\n const currVal_30:any = _decl0_21.ngClassDirty;\n currVal_30;\n const currVal_31:any = _decl0_21.ngClassValid;\n currVal_31;\n const currVal_32:any = _decl0_21.ngClassInvalid;\n currVal_32;\n const currVal_33:any = _decl0_21.ngClassPending;\n currVal_33;\n const currVal_34:any = !_decl0_61.enabled.value;\n currVal_34;\n const currVal_35:any = i0.ɵinlineInterpolate(1,'',_decl0_61.placeholder,'');\n currVal_35;\n const currVal_36:any = _decl0_61.errorStateMatcher;\n currVal_36;\n const currVal_37:any = _decl0_41._isServer;\n currVal_37;\n const currVal_38:any = _decl0_41.id;\n currVal_38;\n const currVal_39:any = _decl0_41.placeholder;\n currVal_39;\n const currVal_40:any = _decl0_41.disabled;\n currVal_40;\n const currVal_41:any = _decl0_41.required;\n currVal_41;\n const currVal_42:any = ((_decl0_41.readonly && !_decl0_41._isNativeSelect) || null);\n currVal_42;\n const currVal_43:any = (_decl0_41._ariaDescribedby || null);\n currVal_43;\n const currVal_44:any = _decl0_41.errorState;\n currVal_44;\n const currVal_45:any = _decl0_41.required.toString();\n currVal_45;\n const currVal_46:any = _decl0_61.valueModel;\n currVal_46;\n const currVal_47:any = _decl0_61.hint;\n currVal_47;\n const currVal_48:any = _decl0_61.hasErrors;\n currVal_48;\n const currVal_49:any = _decl0_61.enableClear;\n currVal_49;\n const pd_50:any = ((<any>(<any>_decl0_14)._handleInput(_any.target.value)) !== false);\n const pd_51:any = ((<any>_decl0_14.onTouched()) !== false);\n const pd_52:any = ((<any>(<any>_decl0_14)._compositionStart()) !== false);\n const pd_53:any = ((<any>(<any>_decl0_14)._compositionEnd(_any.target.value)) !== false);\n const pd_54:any = ((<any>_decl0_41._focusChanged(true)) !== false);\n const pd_55:any = ((<any>_decl0_41._focusChanged(false)) !== false);\n const pd_56:any = ((<any>_decl0_41._onInput()) !== false);\n const pd_57:any = ((<any>_decl0_56.onFocusIn()) !== false);\n const pd_58:any = ((<any>_decl0_56.onFocusOut()) !== false);\n const pd_59:any = ((<any>(_decl0_61.valueModel.value = _any)) !== false);\n const pd_60:any = ((<any>_decl0_61.notifyEnterKey()) !== false);\n const pd_61:any = ((<any>_decl0_61.notifyEscapeKey()) !== false);\n}\nfunction _View_PasswordInputComponent_Host_3_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_62.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_62.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_62.notifyFocusOut()) !== false);\n}\nfunction _View_PasswordInputComponent_3_1():void {\n if (_decl0_62.label) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_62.label;\n currVal_0;\n }\n}\nfunction _View_PasswordInputComponent_3_2():void {\n if (_decl0_62.hint) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_36.align == 'end');\n currVal_0;\n const currVal_1:any = _decl0_36.id;\n currVal_1;\n const currVal_2:any = null;\n currVal_2;\n const currVal_3:any = _decl0_62.hint;\n currVal_3;\n }\n}\nfunction _View_PasswordInputComponent_3_3():void {\n if (_decl0_62.hasErrors) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.id;\n currVal_0;\n const currVal_1:any = _decl0_62.firstError;\n currVal_1;\n }\n}\nfunction _View_PasswordInputComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'standard';\n currVal_0;\n const currVal_1:any = _decl0_62.floatLabel;\n currVal_1;\n const currVal_2:any = (_decl0_35.appearance == 'standard');\n currVal_2;\n const currVal_3:any = (_decl0_35.appearance == 'fill');\n currVal_3;\n const currVal_4:any = (_decl0_35.appearance == 'outline');\n currVal_4;\n const currVal_5:any = (_decl0_35.appearance == 'legacy');\n currVal_5;\n const currVal_6:any = _decl0_35._control.errorState;\n currVal_6;\n const currVal_7:any = _decl0_35._canLabelFloat;\n currVal_7;\n const currVal_8:any = _decl0_35._shouldLabelFloat();\n currVal_8;\n const currVal_9:any = _decl0_35._hasFloatingLabel();\n currVal_9;\n const currVal_10:any = _decl0_35._hideControlPlaceholder();\n currVal_10;\n const currVal_11:any = _decl0_35._control.disabled;\n currVal_11;\n const currVal_12:any = _decl0_35._control.autofilled;\n currVal_12;\n const currVal_13:any = _decl0_35._control.focused;\n currVal_13;\n const currVal_14:any = (_decl0_35.color == 'accent');\n currVal_14;\n const currVal_15:any = (_decl0_35.color == 'warn');\n currVal_15;\n const currVal_16:any = _decl0_35._shouldForward('untouched');\n currVal_16;\n const currVal_17:any = _decl0_35._shouldForward('touched');\n currVal_17;\n const currVal_18:any = _decl0_35._shouldForward('pristine');\n currVal_18;\n const currVal_19:any = _decl0_35._shouldForward('dirty');\n currVal_19;\n const currVal_20:any = _decl0_35._shouldForward('valid');\n currVal_20;\n const currVal_21:any = _decl0_35._shouldForward('invalid');\n currVal_21;\n const currVal_22:any = _decl0_35._shouldForward('pending');\n currVal_22;\n const currVal_23:any = !_decl0_35._animationsEnabled;\n currVal_23;\n const currVal_24:any = _decl0_62.label;\n currVal_24;\n const currVal_25:any = !_decl0_62.enabled.value;\n currVal_25;\n const currVal_26:any = _decl0_62.valueModel.value;\n currVal_26;\n const currVal_27:any = _decl0_21.ngClassUntouched;\n currVal_27;\n const currVal_28:any = _decl0_21.ngClassTouched;\n currVal_28;\n const currVal_29:any = _decl0_21.ngClassPristine;\n currVal_29;\n const currVal_30:any = _decl0_21.ngClassDirty;\n currVal_30;\n const currVal_31:any = _decl0_21.ngClassValid;\n currVal_31;\n const currVal_32:any = _decl0_21.ngClassInvalid;\n currVal_32;\n const currVal_33:any = _decl0_21.ngClassPending;\n currVal_33;\n const currVal_34:any = !_decl0_62.enabled.value;\n currVal_34;\n const currVal_35:any = i0.ɵinlineInterpolate(1,'',_decl0_62.placeholder,'');\n currVal_35;\n const currVal_36:any = 'password';\n currVal_36;\n const currVal_37:any = _decl0_62.errorStateMatcher;\n currVal_37;\n const currVal_38:any = _decl0_41._isServer;\n currVal_38;\n const currVal_39:any = _decl0_41.id;\n currVal_39;\n const currVal_40:any = _decl0_41.placeholder;\n currVal_40;\n const currVal_41:any = _decl0_41.disabled;\n currVal_41;\n const currVal_42:any = _decl0_41.required;\n currVal_42;\n const currVal_43:any = ((_decl0_41.readonly && !_decl0_41._isNativeSelect) || null);\n currVal_43;\n const currVal_44:any = (_decl0_41._ariaDescribedby || null);\n currVal_44;\n const currVal_45:any = _decl0_41.errorState;\n currVal_45;\n const currVal_46:any = _decl0_41.required.toString();\n currVal_46;\n const currVal_47:any = _decl0_62.valueModel;\n currVal_47;\n const currVal_48:any = _decl0_62.hint;\n currVal_48;\n const currVal_49:any = _decl0_62.hasErrors;\n currVal_49;\n const pd_50:any = ((<any>(<any>_decl0_14)._handleInput(_any.target.value)) !== false);\n const pd_51:any = ((<any>_decl0_14.onTouched()) !== false);\n const pd_52:any = ((<any>(<any>_decl0_14)._compositionStart()) !== false);\n const pd_53:any = ((<any>(<any>_decl0_14)._compositionEnd(_any.target.value)) !== false);\n const pd_54:any = ((<any>_decl0_41._focusChanged(true)) !== false);\n const pd_55:any = ((<any>_decl0_41._focusChanged(false)) !== false);\n const pd_56:any = ((<any>_decl0_41._onInput()) !== false);\n const pd_57:any = ((<any>_decl0_56.onFocusIn()) !== false);\n const pd_58:any = ((<any>_decl0_56.onFocusOut()) !== false);\n const pd_59:any = ((<any>(_decl0_62.valueModel.value = _any)) !== false);\n const pd_60:any = ((<any>_decl0_62.notifyEnterKey()) !== false);\n const pd_61:any = ((<any>_decl0_62.notifyEscapeKey()) !== false);\n}\nfunction _View_SelectInputComponent_Host_4_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_63.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_63.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_63.notifyFocusOut()) !== false);\n}\nfunction _View_SelectInputComponent_4_1():void {\n if (_decl0_63.label) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_63.label;\n currVal_0;\n }\n}\nfunction _View_SelectInputComponent_4_2():void {\n if (_decl0_63.allowNil) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_44._getTabIndex();\n currVal_0;\n const currVal_1:any = _decl0_44.selected;\n currVal_1;\n const currVal_2:any = _decl0_44.multiple;\n currVal_2;\n const currVal_3:any = _decl0_44.active;\n currVal_3;\n const currVal_4:any = _decl0_44.id;\n currVal_4;\n const currVal_5:any = _decl0_44._getAriaSelected();\n currVal_5;\n const currVal_6:any = _decl0_44.disabled.toString();\n currVal_6;\n const currVal_7:any = _decl0_44.disabled;\n currVal_7;\n const currVal_8:any = _decl0_63.placeholder;\n currVal_8;\n const pd_9:any = ((<any>_decl0_44._selectViaInteraction()) !== false);\n const pd_10:any = ((<any>_decl0_44._handleKeydown(_any)) !== false);\n }\n}\nfunction _View_SelectInputComponent_4_4():void {\n if (!_decl0_63.optionTemplateRef) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_63.optionLabelFormat(_any);\n currVal_0;\n }\n}\nfunction _View_SelectInputComponent_4_5():void {\n if (_decl0_63.optionTemplateRef) {\n var _any:any = (null as any);\n const currVal_0:any = {$implicit:_any,index:_any};\n currVal_0;\n const currVal_1:any = _decl0_63.optionTemplateRef;\n currVal_1;\n }\n}\nfunction _View_SelectInputComponent_4_3():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n const currVal_1:any = _decl0_44._getTabIndex();\n currVal_1;\n const currVal_2:any = _decl0_44.selected;\n currVal_2;\n const currVal_3:any = _decl0_44.multiple;\n currVal_3;\n const currVal_4:any = _decl0_44.active;\n currVal_4;\n const currVal_5:any = _decl0_44.id;\n currVal_5;\n const currVal_6:any = _decl0_44._getAriaSelected();\n currVal_6;\n const currVal_7:any = _decl0_44.disabled.toString();\n currVal_7;\n const currVal_8:any = _decl0_44.disabled;\n currVal_8;\n const currVal_9:any = !_decl0_63.optionTemplateRef;\n currVal_9;\n const currVal_10:any = _decl0_63.optionTemplateRef;\n currVal_10;\n const pd_11:any = ((<any>_decl0_44._selectViaInteraction()) !== false);\n const pd_12:any = ((<any>_decl0_44._handleKeydown(_any)) !== false);\n}\nfunction _View_SelectInputComponent_4_6():void {\n if (_decl0_63.hint) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_36.align == 'end');\n currVal_0;\n const currVal_1:any = _decl0_36.id;\n currVal_1;\n const currVal_2:any = null;\n currVal_2;\n const currVal_3:any = _decl0_63.hint;\n currVal_3;\n }\n}\nfunction _View_SelectInputComponent_4_7():void {\n if (_decl0_63.hasErrors) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_34.id;\n currVal_0;\n const currVal_1:any = _decl0_63.firstError;\n currVal_1;\n }\n}\nfunction _View_SelectInputComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = 'standard';\n currVal_0;\n const currVal_1:any = _decl0_63.floatLabel;\n currVal_1;\n const currVal_2:any = (_decl0_35.appearance == 'standard');\n currVal_2;\n const currVal_3:any = (_decl0_35.appearance == 'fill');\n currVal_3;\n const currVal_4:any = (_decl0_35.appearance == 'outline');\n currVal_4;\n const currVal_5:any = (_decl0_35.appearance == 'legacy');\n currVal_5;\n const currVal_6:any = _decl0_35._control.errorState;\n currVal_6;\n const currVal_7:any = _decl0_35._canLabelFloat;\n currVal_7;\n const currVal_8:any = _decl0_35._shouldLabelFloat();\n currVal_8;\n const currVal_9:any = _decl0_35._hasFloatingLabel();\n currVal_9;\n const currVal_10:any = _decl0_35._hideControlPlaceholder();\n currVal_10;\n const currVal_11:any = _decl0_35._control.disabled;\n currVal_11;\n const currVal_12:any = _decl0_35._control.autofilled;\n currVal_12;\n const currVal_13:any = _decl0_35._control.focused;\n currVal_13;\n const currVal_14:any = (_decl0_35.color == 'accent');\n currVal_14;\n const currVal_15:any = (_decl0_35.color == 'warn');\n currVal_15;\n const currVal_16:any = _decl0_35._shouldForward('untouched');\n currVal_16;\n const currVal_17:any = _decl0_35._shouldForward('touched');\n currVal_17;\n const currVal_18:any = _decl0_35._shouldForward('pristine');\n currVal_18;\n const currVal_19:any = _decl0_35._shouldForward('dirty');\n currVal_19;\n const currVal_20:any = _decl0_35._shouldForward('valid');\n currVal_20;\n const currVal_21:any = _decl0_35._shouldForward('invalid');\n currVal_21;\n const currVal_22:any = _decl0_35._shouldForward('pending');\n currVal_22;\n const currVal_23:any = !_decl0_35._animationsEnabled;\n currVal_23;\n const currVal_24:any = _decl0_63.label;\n currVal_24;\n const currVal_25:any = !_decl0_63.enabled.value;\n currVal_25;\n const currVal_26:any = _decl0_63.valueModel.value;\n currVal_26;\n const currVal_27:any = _decl0_21.ngClassUntouched;\n currVal_27;\n const currVal_28:any = _decl0_21.ngClassTouched;\n currVal_28;\n const currVal_29:any = _decl0_21.ngClassPristine;\n currVal_29;\n const currVal_30:any = _decl0_21.ngClassDirty;\n currVal_30;\n const currVal_31:any = _decl0_21.ngClassValid;\n currVal_31;\n const currVal_32:any = _decl0_21.ngClassInvalid;\n currVal_32;\n const currVal_33:any = _decl0_21.ngClassPending;\n currVal_33;\n const currVal_34:any = !_decl0_63.enabled.value;\n currVal_34;\n const currVal_35:any = i0.ɵinlineInterpolate(1,'',_decl0_63.placeholder,'');\n currVal_35;\n const currVal_36:any = _decl0_63.errorStateMatcher;\n currVal_36;\n const currVal_37:any = _decl0_47.id;\n currVal_37;\n const currVal_38:any = _decl0_47.tabIndex;\n currVal_38;\n const currVal_39:any = _decl0_47._getAriaLabel();\n currVal_39;\n const currVal_40:any = _decl0_47._getAriaLabelledby();\n currVal_40;\n const currVal_41:any = _decl0_47.required.toString();\n currVal_41;\n const currVal_42:any = _decl0_47.disabled.toString();\n currVal_42;\n const currVal_43:any = _decl0_47.errorState;\n currVal_43;\n const currVal_44:any = (_decl0_47.panelOpen? _decl0_47._optionIds: null);\n currVal_44;\n const currVal_45:any = _decl0_47.multiple;\n currVal_45;\n const currVal_46:any = (_decl0_47._ariaDescribedby || null);\n currVal_46;\n const currVal_47:any = _decl0_47._getAriaActiveDescendant();\n currVal_47;\n const currVal_48:any = _decl0_47.disabled;\n currVal_48;\n const currVal_49:any = _decl0_47.errorState;\n currVal_49;\n const currVal_50:any = _decl0_47.required;\n currVal_50;\n const currVal_51:any = _decl0_47.empty;\n currVal_51;\n const currVal_52:any = _decl0_63.valueModel;\n currVal_52;\n const currVal_53:any = _decl0_63.allowNil;\n currVal_53;\n const currVal_54:any = _decl0_63.optionsModel.value;\n currVal_54;\n const currVal_55:any = _decl0_63.hint;\n currVal_55;\n const currVal_56:any = _decl0_63.hasErrors;\n currVal_56;\n const pd_57:any = ((<any>_decl0_47._handleKeydown(_any)) !== false);\n const pd_58:any = ((<any>_decl0_47._onFocus()) !== false);\n const pd_59:any = ((<any>_decl0_47._onBlur()) !== false);\n const pd_60:any = ((<any>_decl0_56.onFocusIn()) !== false);\n const pd_61:any = ((<any>_decl0_56.onFocusOut()) !== false);\n const pd_62:any = ((<any>(_decl0_63.valueModel.value = _any)) !== false);\n const pd_63:any = ((<any>_decl0_63.notifyEnterKey()) !== false);\n const pd_64:any = ((<any>_decl0_63.notifyEscapeKey()) !== false);\n}\nfunction _View_ScrollContainerComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ScrollContainerComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NoopComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_NoopComponent_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AbstractInputComponent_Host_7_0():void {\n var _any:any = (null as any);\n const pd_0:any = ((<any>_decl0_66.notifyClick()) !== false);\n const pd_1:any = ((<any>_decl0_66.notifyFocusIn()) !== false);\n const pd_2:any = ((<any>_decl0_66.notifyFocusOut()) !== false);\n}\nfunction _View_AbstractInputComponent_7_0():void {\n var _any:any = (null as any);\n}\nfunction _View_SwitchCaseComponent_Host_8_0():void {\n var _any:any = (null as any);\n}\nfunction _View_SwitchCaseComponent_8_2():void {\n var _any:any = (null as any);\n}\nfunction _View_SwitchCaseComponent_8_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _any.templateRef;\n currVal_0;\n}\nfunction _View_SwitchCaseComponent_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_67.selectedIndex;\n currVal_0;\n const currVal_1:any = _decl0_49.dynamicHeight;\n currVal_1;\n const currVal_2:any = (_decl0_49.headerPosition === 'below');\n currVal_2;\n const currVal_3:any = _decl0_67.switchCaseOptions;\n currVal_3;\n}\n"]}
@@ -7,7 +7,18 @@ var AbstractInputComponent = /** @class */ (function (_super) {
7
7
  __extends(AbstractInputComponent, _super);
8
8
  function AbstractInputComponent() {
9
9
  var _this = _super.call(this) || this;
10
- _this.delegatingFormValueModel = new DelegatingFormValueModel();
10
+ /**
11
+ * A backing model for all our @Input() valueModel properties which should be defined as follows.
12
+ *
13
+ * @Input() @TrackExternal({useExisting: "delegatingFormValueModel"})
14
+ * valueModel: FormValueModel<string> | MutableValueModel<string>;
15
+ *
16
+ * This approach allows the input to accept plain or form models but all backed by a form
17
+ * friendly delegate. We have to use an existing delegate for union types as pectin just
18
+ * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
19
+ */
20
+ // We have to register it as a disposable so it ditches any listeners when we're disposed.
21
+ _this.delegatingFormValueModel = _this.registerDisposable(new DelegatingFormValueModel());
11
22
  // TODO: fix this.
12
23
  // tslint:disable-next-line:no-output-native
13
24
  _this.focus = new EventEmitter();
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/abstract-input.component.ts"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AAG7F,OAAO,EAAE,OAAO,EAAE,wBAAwB,EAAyB,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D;IAA+C,0CAAmB;IA4DhE;QAAA,YACE,iBAAO,SAOR;QAlEQ,8BAAwB,GAAG,IAAI,wBAAwB,EAAK,CAAC;QAatE,kBAAkB;QAClB,4CAA4C;QAClC,WAAK,GAAG,IAAI,YAAY,EAAE,CAAC;QACrC,4CAA4C;QAClC,UAAI,GAAG,IAAI,YAAY,EAAE,CAAC;QACpC,4CAA4C;QAClC,cAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;QACxC,4CAA4C;QAClC,eAAS,GAAG,IAAI,YAAY,EAAE,CAAC;QAuCvC,IAAM,IAAI,GAAG,KAAI,CAAC;QAClB,KAAI,CAAC,iBAAiB,GAAG;YACvB,YAAY,EAAZ,UAAa,OAA2B,EAAE,IAAwC;gBAChF,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC;YAC1B,CAAC;SACF,CAAC;;IACJ,CAAC;IAxCD,4CAAW,GAAX;QACE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACvC,CAAC;IAGD,8CAAa,GAAb;QACE,IAAI,CAAC,YAAY,CAAC,IA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AAA;IAvFQ;QAAR,KAAK,EAAE;;yDAAe;IACd;QAAR,KAAK,EAAE;;8DAAyC;IACxC;QAAR,KAAK,EAAE;;wDAAc;IACb;QAAR,KAAK,EAAE;;+DAAqB;IAEL;QAAvB,KAAK,CAAC,eAAe,CAAC;kCAAe,OAAO;gEAAM;IAC5B;QAAtB,KAAK,CAAC,cAAc,CAAC;kCAAc,OAAO;+DAAM;IACzB;QAAvB,KAAK,CAAC,eAAe,CAAC;kCAAe,OAAO;gEAAM;IAC1B;QAAxB,KAAK,CAAC,gBAAgB,CAAC;kCAAgB,OAAO;iEAAM;IAC7B;QAAvB,KAAK,CAAC,eAAe,CAAC;kCAAe,OAAO;gEAAM;IAIzC;QAAT,MAAM,EAAE;;yDAA4B;IAE3B;QAAT,MAAM,EAAE;;wDAA2B;IAE1B;QAAT,MAAM,EAAE;;4DAA+B;IAE9B;QAAT,MAAM,EAAE;;6DAAgC;IAKzC;QADC,YAAY,CAAC,OAAO,CAAC;;;;6DAGrB;IAGD;QADC,YAAY,CAAC,SAAS,CAAC;;;;+DAIvB;IAGD;QADC,YAAY,CAAC,UAAU,CAAC;;;;gEAIxB;IA1CU,sBAAsB;QADlC,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;;OACf,sBAAsB,CA8FlC;IAAD,6BAAC;CAAA,AA9FD,CAA+C,mBAAmB,GA8FjE;SA9FY,sBAAsB","sourcesContent":["/* tslint:disable:no-input-rename */\nimport { Component, EventEmitter, HostListener, Input, OnInit, Output } from '@angular/core';\nimport { FormControl, FormGroupDirective, NgForm } from '@angular/forms';\nimport { ErrorStateMatcher } from '@angular/material/core';\nimport { Command, DelegatingFormValueModel, ListModel, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../disposable-component';\n\n@Component({ template: '' })\nexport class AbstractInputComponent<T> extends DisposableComponent implements OnInit {\n\n readonly delegatingFormValueModel = new DelegatingFormValueModel<T>();\n\n @Input() label: string;\n @Input() floatLabel: 'auto' | 'always' | 'never';\n @Input() hint: string;\n @Input() placeholder: string;\n\n @Input('command.focus') focusCommand: Command<any>;\n @Input('command.blur') blurCommand: Command<any>;\n @Input('command.enter') enterCommand: Command<any>;\n @Input('command.escape') escapeCommand: Command<any>;\n @Input('command.click') clickCommand: Command<any>;\n\n // TODO: fix this.\n // tslint:disable-next-line:no-output-native\n @Output() focus = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() blur = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() enterKey = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() escapeKey = new EventEmitter();\n\n readonly errorStateMatcher: ErrorStateMatcher;\n\n @HostListener('click')\n notifyClick() {\n this.safelyInvoke(this.clickCommand);\n }\n\n @HostListener('focusin')\n notifyFocusIn() {\n this.safelyInvoke(this.focusCommand);\n this.focus.emit();\n }\n\n @HostListener('focusout')\n notifyFocusOut() {\n this.safelyInvoke(this.blurCommand);\n this.blur.emit();\n }\n\n notifyEnterKey() {\n this.safelyInvoke(this.enterCommand);\n this.enterKey.emit();\n }\n\n notifyEscapeKey() {\n this.safelyInvoke(this.escapeCommand);\n this.escapeKey.emit();\n }\n\n protected safelyInvoke(command: Command<any>) {\n if (command && command.enabled.value) {\n command.execute();\n }\n }\n\n constructor() {\n super();\n const self = this;\n this.errorStateMatcher = {\n isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {\n return self.hasErrors();\n }\n };\n }\n\n ngOnInit(): void {\n }\n\n isEnabled(): boolean {\n return this.enabled.value;\n }\n\n get enabled(): ValueModel<boolean> {\n return this.delegatingFormValueModel.enabled;\n }\n\n hasErrors(): boolean {\n return !this.errorList.query().isEmpty();\n }\n\n get errorList(): ListModel<string> {\n return this.delegatingFormValueModel.errorList;\n }\n\n get firstError() {\n return this.hasErrors() ? this.errorList.value[0] : null;\n }\n\n\n}\n"]}
1
+ {"version":3,"file":"abstract-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components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AAC,cAAc,CAAC;kCAAc,OAAO;+DAAM;IACzB;QAAvB,KAAK,CAAC,eAAe,CAAC;kCAAe,OAAO;gEAAM;IAC1B;QAAxB,KAAK,CAAC,gBAAgB,CAAC;kCAAgB,OAAO;iEAAM;IAC7B;QAAvB,KAAK,CAAC,eAAe,CAAC;kCAAe,OAAO;gEAAM;IAIzC;QAAT,MAAM,EAAE;;yDAA4B;IAE3B;QAAT,MAAM,EAAE;;wDAA2B;IAE1B;QAAT,MAAM,EAAE;;4DAA+B;IAE9B;QAAT,MAAM,EAAE;;6DAAgC;IAKzC;QADC,YAAY,CAAC,OAAO,CAAC;;;;6DAGrB;IAGD;QADC,YAAY,CAAC,SAAS,CAAC;;;;+DAIvB;IAGD;QADC,YAAY,CAAC,UAAU,CAAC;;;;gEAIxB;IAtDU,sBAAsB;QADlC,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;;OACf,sBAAsB,CA0GlC;IAAD,6BAAC;CAAA,AA1GD,CAA+C,mBAAmB,GA0GjE;SA1GY,sBAAsB","sourcesContent":["/* tslint:disable:no-input-rename */\nimport { Component, EventEmitter, HostListener, Input, OnInit, Output } from '@angular/core';\nimport { FormControl, FormGroupDirective, NgForm } from '@angular/forms';\nimport { ErrorStateMatcher } from '@angular/material/core';\nimport { Command, DelegatingFormValueModel, ListModel, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../disposable-component';\n\n@Component({ template: '' })\nexport class AbstractInputComponent<T> extends DisposableComponent implements OnInit {\n\n /**\n * A backing model for all our @Input() valueModel properties which should be defined as follows.\n *\n * @Input() @TrackExternal({useExisting: \"delegatingFormValueModel\"})\n * valueModel: FormValueModel<string> | MutableValueModel<string>;\n *\n * This approach allows the input to accept plain or form models but all backed by a form\n * friendly delegate. We have to use an existing delegate for union types as pectin just\n * gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).\n */\n // We have to register it as a disposable so it ditches any listeners when we're disposed.\n protected readonly delegatingFormValueModel = this.registerDisposable(new DelegatingFormValueModel<T>());\n\n @Input() label: string;\n @Input() floatLabel: 'auto' | 'always' | 'never';\n @Input() hint: string;\n @Input() placeholder: string;\n\n // Note: I don't need to use delegates here as I never subscribe to the commands models\n @Input('command.focus') focusCommand: Command<any>;\n @Input('command.blur') blurCommand: Command<any>;\n @Input('command.enter') enterCommand: Command<any>;\n @Input('command.escape') escapeCommand: Command<any>;\n @Input('command.click') clickCommand: Command<any>;\n\n // TODO: fix this.\n // tslint:disable-next-line:no-output-native\n @Output() focus = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() blur = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() enterKey = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() escapeKey = new EventEmitter();\n\n readonly errorStateMatcher: ErrorStateMatcher;\n\n @HostListener('click')\n notifyClick() {\n this.safelyInvoke(this.clickCommand);\n }\n\n @HostListener('focusin')\n notifyFocusIn() {\n this.safelyInvoke(this.focusCommand);\n this.focus.emit();\n }\n\n @HostListener('focusout')\n notifyFocusOut() {\n this.safelyInvoke(this.blurCommand);\n this.blur.emit();\n }\n\n notifyEnterKey() {\n this.safelyInvoke(this.enterCommand);\n this.enterKey.emit();\n }\n\n notifyEscapeKey() {\n this.safelyInvoke(this.escapeCommand);\n this.escapeKey.emit();\n }\n\n protected safelyInvoke(command: Command<any>) {\n if (command && command.enabled.value) {\n command.execute();\n }\n }\n\n constructor() {\n super();\n const self = this;\n this.errorStateMatcher = {\n isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {\n return self.hasErrors();\n }\n };\n }\n\n ngOnInit(): void {\n }\n\n isEnabled(): boolean {\n return this.enabled.value;\n }\n\n get enabled(): ValueModel<boolean> {\n return this.delegatingFormValueModel.enabled;\n }\n\n hasErrors(): boolean {\n return !this.errorList.query().isEmpty();\n }\n\n get errorList(): ListModel<string> {\n return this.delegatingFormValueModel.errorList;\n }\n\n get firstError() {\n return this.hasErrors() ? this.errorList.value[0] : null;\n }\n\n\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __extends, __metadata } from "tslib";
2
2
  import { Component, Input } from '@angular/core';
3
- import { UseDelegate } from '@coolon/pectin';
3
+ import { TrackExternal } from '@coolon/pectin';
4
4
  import { AbstractInputComponent } from '../abstract-input.component';
5
5
  var NumberInputComponent = /** @class */ (function (_super) {
6
6
  __extends(NumberInputComponent, _super);
@@ -10,7 +10,7 @@ var NumberInputComponent = /** @class */ (function (_super) {
10
10
  NumberInputComponent.prototype.ngOnInit = function () {
11
11
  };
12
12
  __decorate([
13
- Input(), UseDelegate({ useExisting: "delegatingFormValueModel" }),
13
+ Input(), TrackExternal({ delegateTo: "delegatingFormValueModel" }),
14
14
  __metadata("design:type", Object)
15
15
  ], NumberInputComponent.prototype, "valueModel", void 0);
16
16
  NumberInputComponent = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"number-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/number-input/number-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAA+D,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAQrE;IAA0C,wCAA8B;IAKtE;eACE,iBAAO;IACT,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;IAPD;QADC,KAAK,EAAE,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,0BAA0B,EAAC,CAAC;;4DACD;IAHpD,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,unBAA4C;;SAE7C,CAAC;;OACW,oBAAoB,CAYhC;IAAD,2BAAC;CAAA,AAZD,CAA0C,sBAAsB,GAY/D;SAZY,oBAAoB","sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { DelegatingFormValueModel, FormValueModel, MutableValueModel, UseDelegate } from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n\n@Component({\n selector: 'aup-number-input',\n templateUrl: './number-input.component.html',\n styleUrls: ['./number-input.component.scss']\n})\nexport class NumberInputComponent extends AbstractInputComponent<number> implements OnInit {\n\n @Input() @UseDelegate({useExisting: \"delegatingFormValueModel\"})\n valueModel: FormValueModel<number> | MutableValueModel<number>;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
1
+ {"version":3,"file":"number-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/number-input/number-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAA+D,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAQrE;IAA0C,wCAA8B;IAKtE;eACE,iBAAO;IACT,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;IAPD;QADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAC,UAAU,EAAE,0BAA0B,EAAC,CAAC;;4DACF;IAHpD,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,unBAA4C;;SAE7C,CAAC;;OACW,oBAAoB,CAYhC;IAAD,2BAAC;CAAA,AAZD,CAA0C,sBAAsB,GAY/D;SAZY,oBAAoB","sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { DelegatingFormValueModel, FormValueModel, MutableValueModel, TrackExternal } from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n\n@Component({\n selector: 'aup-number-input',\n templateUrl: './number-input.component.html',\n styleUrls: ['./number-input.component.scss']\n})\nexport class NumberInputComponent extends AbstractInputComponent<number> implements OnInit {\n\n @Input() @TrackExternal({delegateTo: \"delegatingFormValueModel\"})\n valueModel: FormValueModel<number> | MutableValueModel<number>;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __extends, __metadata } from "tslib";
2
2
  import { Component, Input } from '@angular/core';
3
- import { UseDelegate } from '@coolon/pectin';
3
+ import { TrackExternal } from '@coolon/pectin';
4
4
  import { AbstractInputComponent } from '../abstract-input.component';
5
5
  var PasswordInputComponent = /** @class */ (function (_super) {
6
6
  __extends(PasswordInputComponent, _super);
@@ -10,7 +10,7 @@ var PasswordInputComponent = /** @class */ (function (_super) {
10
10
  PasswordInputComponent.prototype.ngOnInit = function () {
11
11
  };
12
12
  __decorate([
13
- Input(), UseDelegate({ useExisting: "delegatingFormValueModel" }),
13
+ Input(), TrackExternal({ delegateTo: "delegatingFormValueModel" }),
14
14
  __metadata("design:type", Object)
15
15
  ], PasswordInputComponent.prototype, "valueModel", void 0);
16
16
  PasswordInputComponent = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"password-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/password-input/password-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAA+D,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE;IAA4C,0CAA8B;IAKxE;eACE,iBAAO;IACT,CAAC;IAED,yCAAQ,GAAR;IACA,CAAC;IAPD;QADC,KAAK,EAAE,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,0BAA0B,EAAC,CAAC;;8DACD;IAHpD,sBAAsB;QALlC,SAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,2nBAA8C;;SAE/C,CAAC;;OACW,sBAAsB,CAYlC;IAAD,6BAAC;CAAA,AAZD,CAA4C,sBAAsB,GAYjE;SAZY,sBAAsB","sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { DelegatingFormValueModel, FormValueModel, MutableValueModel, UseDelegate } from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-password-input',\n templateUrl: './password-input.component.html',\n styleUrls: ['./password-input.component.scss']\n})\nexport class PasswordInputComponent extends AbstractInputComponent<string> implements OnInit {\n\n @Input() @UseDelegate({useExisting: \"delegatingFormValueModel\"})\n valueModel: FormValueModel<string> | MutableValueModel<string>;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
1
+ {"version":3,"file":"password-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/password-input/password-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAA+D,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE;IAA4C,0CAA8B;IAKxE;eACE,iBAAO;IACT,CAAC;IAED,yCAAQ,GAAR;IACA,CAAC;IAPD;QADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAC,UAAU,EAAE,0BAA0B,EAAC,CAAC;;8DACF;IAHpD,sBAAsB;QALlC,SAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,2nBAA8C;;SAE/C,CAAC;;OACW,sBAAsB,CAYlC;IAAD,6BAAC;CAAA,AAZD,CAA4C,sBAAsB,GAYjE;SAZY,sBAAsB","sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { DelegatingFormValueModel, FormValueModel, MutableValueModel, TrackExternal } from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-password-input',\n templateUrl: './password-input.component.html',\n styleUrls: ['./password-input.component.scss']\n})\nexport class PasswordInputComponent extends AbstractInputComponent<string> implements OnInit {\n\n @Input() @TrackExternal({delegateTo: \"delegatingFormValueModel\"})\n valueModel: FormValueModel<string> | MutableValueModel<string>;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __extends, __metadata } from "tslib";
2
2
  import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
3
- import { ListModel, StoreInListModel, UseDelegate } from '@coolon/pectin';
3
+ import { ListModel, StoreInListModel, TrackExternal } from '@coolon/pectin';
4
4
  import { AbstractInputComponent } from '../abstract-input.component';
5
5
  var SelectInputComponent = /** @class */ (function (_super) {
6
6
  __extends(SelectInputComponent, _super);
@@ -12,11 +12,11 @@ var SelectInputComponent = /** @class */ (function (_super) {
12
12
  SelectInputComponent.prototype.ngOnInit = function () {
13
13
  };
14
14
  __decorate([
15
- Input(), UseDelegate({ useExisting: "delegatingFormValueModel" }),
15
+ Input(), TrackExternal({ delegateTo: "delegatingFormValueModel" }),
16
16
  __metadata("design:type", Object)
17
17
  ], SelectInputComponent.prototype, "valueModel", void 0);
18
18
  __decorate([
19
- Input(), UseDelegate(),
19
+ Input(), TrackExternal(),
20
20
  __metadata("design:type", ListModel)
21
21
  ], SelectInputComponent.prototype, "optionsModel", void 0);
22
22
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"select-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/select-input/select-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAGL,SAAS,EAET,gBAAgB,EAChB,WAAW,EACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE;IAAmD,wCAAyB;IA0B1E;QAAA,YACE,iBAAO,SACR;QAJD,uBAAiB,GAAuB,UAAC,MAAM,IAAK,OAAA,CAAC,MAAM,IAAI,KAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,EAAhE,CAAgE,CAAC;;IAIrH,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;IA5BD;QADC,KAAK,EAAE,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,0BAA0B,EAAC,CAAC;;4DACX;IAGrD;QADC,KAAK,EAAE,EAAE,WAAW,EAAE;kCACT,SAAS;8DAAI;IAG3B;QADC,KAAK,EAAE,EAAE,gBAAgB,CAAC,cAAc,CAAC;;yDAC7B;IAGb;QADC,KAAK,EAAE;;6DACa;IAGrB;QADC,KAAK,EAAE;;0DACU;IAGlB;QADC,YAAY,CAAC,gBAAgB,CAAC;kCACZ,WAAW;mEAAM;IAGpC;QADC,YAAY,CAAC,mBAAmB,CAAC;kCACZ,WAAW;sEAAM;IAGvC;QADC,KAAK,EAAE;;mEAC6G;IAxB1G,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,2lCAA4C;;SAE7C,CAAC;;OACW,oBAAoB,CAiChC;IAAD,2BAAC;CAAA,AAjCD,CAAmD,sBAAsB,GAiCxE;SAjCY,oBAAoB","sourcesContent":["import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';\nimport {\n DelegatingFormValueModel,\n FormValueModel,\n ListModel,\n MutableValueModel,\n StoreInListModel,\n UseDelegate\n} from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-select-input',\n templateUrl: './select-input.component.html',\n styleUrls: ['./select-input.component.scss']\n})\nexport class SelectInputComponent<T = any> extends AbstractInputComponent<T> implements OnInit {\n\n @Input() @UseDelegate({useExisting: \"delegatingFormValueModel\"})\n valueModel: FormValueModel<T> | MutableValueModel<T>;\n\n @Input() @UseDelegate()\n optionsModel: ListModel<T>;\n\n @Input() @StoreInListModel('optionsModel')\n options: T[];\n\n @Input()\n optionLabel: keyof T;\n\n @Input()\n allowNil: boolean;\n\n @ContentChild(\"optionTemplate\")\n optionTemplateRef: TemplateRef<any>;\n\n @ContentChild(\"nilOptionTemplate\")\n nilOptionTemplateRef: TemplateRef<any>;\n\n @Input()\n optionLabelFormat: (option: T) => any = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
1
+ {"version":3,"file":"select-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/select-input/select-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAGL,SAAS,EAET,gBAAgB,EAChB,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE;IAAmD,wCAAyB;IA0B1E;QAAA,YACE,iBAAO,SACR;QAJD,uBAAiB,GAAuB,UAAC,MAAM,IAAK,OAAA,CAAC,MAAM,IAAI,KAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,EAAhE,CAAgE,CAAC;;IAIrH,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;IA5BD;QADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAC,UAAU,EAAE,0BAA0B,EAAC,CAAC;;4DACZ;IAGrD;QADC,KAAK,EAAE,EAAE,aAAa,EAAE;kCACX,SAAS;8DAAI;IAG3B;QADC,KAAK,EAAE,EAAE,gBAAgB,CAAC,cAAc,CAAC;;yDAC7B;IAGb;QADC,KAAK,EAAE;;6DACa;IAGrB;QADC,KAAK,EAAE;;0DACU;IAGlB;QADC,YAAY,CAAC,gBAAgB,CAAC;kCACZ,WAAW;mEAAM;IAGpC;QADC,YAAY,CAAC,mBAAmB,CAAC;kCACZ,WAAW;sEAAM;IAGvC;QADC,KAAK,EAAE;;mEAC6G;IAxB1G,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,2lCAA4C;;SAE7C,CAAC;;OACW,oBAAoB,CAiChC;IAAD,2BAAC;CAAA,AAjCD,CAAmD,sBAAsB,GAiCxE;SAjCY,oBAAoB","sourcesContent":["import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';\nimport {\n DelegatingFormValueModel,\n FormValueModel,\n ListModel,\n MutableValueModel,\n StoreInListModel,\n TrackExternal\n} from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-select-input',\n templateUrl: './select-input.component.html',\n styleUrls: ['./select-input.component.scss']\n})\nexport class SelectInputComponent<T = any> extends AbstractInputComponent<T> implements OnInit {\n\n @Input() @TrackExternal({delegateTo: \"delegatingFormValueModel\"})\n valueModel: FormValueModel<T> | MutableValueModel<T>;\n\n @Input() @TrackExternal()\n optionsModel: ListModel<T>;\n\n @Input() @StoreInListModel('optionsModel')\n options: T[];\n\n @Input()\n optionLabel: keyof T;\n\n @Input()\n allowNil: boolean;\n\n @ContentChild(\"optionTemplate\")\n optionTemplateRef: TemplateRef<any>;\n\n @ContentChild(\"nilOptionTemplate\")\n nilOptionTemplateRef: TemplateRef<any>;\n\n @Input()\n optionLabelFormat: (option: T) => any = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __extends, __metadata } from "tslib";
2
2
  import { Component, Input } from '@angular/core';
3
- import { Command, Dsl, StoreInValueModel, UseDelegate, ValueModel } from '@coolon/pectin';
3
+ import { Command, Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
4
4
  import { AbstractInputComponent } from '../abstract-input.component';
5
5
  var StringInputComponent = /** @class */ (function (_super) {
6
6
  __extends(StringInputComponent, _super);
@@ -16,11 +16,11 @@ var StringInputComponent = /** @class */ (function (_super) {
16
16
  StringInputComponent.prototype.ngOnInit = function () {
17
17
  };
18
18
  __decorate([
19
- Input(), UseDelegate({ useExisting: "delegatingFormValueModel" }),
19
+ Input(), TrackExternal({ delegateTo: "delegatingFormValueModel" }),
20
20
  __metadata("design:type", Object)
21
21
  ], StringInputComponent.prototype, "valueModel", void 0);
22
22
  __decorate([
23
- Input(), UseDelegate({ defaultValue: false }),
23
+ Input(), TrackExternal({ defaultValue: false }),
24
24
  __metadata("design:type", ValueModel)
25
25
  ], StringInputComponent.prototype, "enableClearModel", void 0);
26
26
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"string-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/string-input/string-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,OAAO,EACP,GAAG,EAGH,iBAAiB,EACjB,WAAW,EACX,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE;IAA0C,wCAA8B;IAatE;QAAA,YACE,iBAAO,SAMR;QALO,IAAA,2BAAkF,EAAhF,gBAAK,EAAE,oBAAO,EAAE,kBAAM,EAAE,cAAI,EAAE,gBAAK,EAAE,oBAAO,EAAE,sBAAkC,CAAC;QACzF,KAAI,CAAC,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;YACjC,KAAI,CAAC,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC;QAC/B,CAAC,CAAC,CAAC;QACH,KAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,WAAW,CAAC,KAAI,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;;IAC/E,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;IApBD;QADC,KAAK,EAAE,EAAE,WAAW,CAAC,EAAC,WAAW,EAAE,0BAA0B,EAAC,CAAC;;4DACD;IAG/D;QADC,KAAK,EAAE,EAAE,WAAW,CAAC,EAAC,YAAY,EAAE,KAAK,EAAC,CAAC;kCAC1B,UAAU;kEAAU;IAGtC;QADC,KAAK,EAAE,EAAE,iBAAiB,CAAC,kBAAkB,CAAC;;6DAC1B;IATV,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,ovBAA4C;;SAE7C,CAAC;;OACW,oBAAoB,CAyBhC;IAAD,2BAAC;CAAA,AAzBD,CAA0C,sBAAsB,GAyB/D;SAzBY,oBAAoB","sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport {\n Command, DelegatingFormValueModel,\n Dsl,\n FormValueModel,\n MutableValueModel,\n StoreInValueModel,\n UseDelegate,\n ValueModel\n} from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-string-input',\n templateUrl: './string-input.component.html',\n styleUrls: ['./string-input.component.scss']\n})\nexport class StringInputComponent extends AbstractInputComponent<string> implements OnInit {\n\n @Input() @UseDelegate({useExisting: \"delegatingFormValueModel\"})\n valueModel: FormValueModel<string> | MutableValueModel<string>;\n\n @Input() @UseDelegate({defaultValue: false})\n enableClearModel: ValueModel<boolean>;\n\n @Input() @StoreInValueModel('enableClearModel')\n enableClear: boolean;\n\n readonly clearCommand: Command<void>;\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.clearCommand = Command.create(() => {\n this.valueModel.value = null;\n });\n this.clearCommand.disableWhile(chain.stringValue(this.valueModel).isBlank());\n }\n\n ngOnInit() {\n }\n\n}\n"]}
1
+ {"version":3,"file":"string-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/string-input/string-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,OAAO,EACP,GAAG,EAGH,iBAAiB,EACjB,aAAa,EACb,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE;IAA0C,wCAA8B;IAatE;QAAA,YACE,iBAAO,SAMR;QALO,IAAA,2BAAkF,EAAhF,gBAAK,EAAE,oBAAO,EAAE,kBAAM,EAAE,cAAI,EAAE,gBAAK,EAAE,oBAAO,EAAE,sBAAkC,CAAC;QACzF,KAAI,CAAC,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;YACjC,KAAI,CAAC,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC;QAC/B,CAAC,CAAC,CAAC;QACH,KAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,WAAW,CAAC,KAAI,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;;IAC/E,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;IApBD;QADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAC,UAAU,EAAE,0BAA0B,EAAC,CAAC;;4DACF;IAG/D;QADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAC,YAAY,EAAE,KAAK,EAAC,CAAC;kCAC5B,UAAU;kEAAU;IAGtC;QADC,KAAK,EAAE,EAAE,iBAAiB,CAAC,kBAAkB,CAAC;;6DAC1B;IATV,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,ovBAA4C;;SAE7C,CAAC;;OACW,oBAAoB,CAyBhC;IAAD,2BAAC;CAAA,AAzBD,CAA0C,sBAAsB,GAyB/D;SAzBY,oBAAoB","sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport {\n Command, DelegatingFormValueModel,\n Dsl,\n FormValueModel,\n MutableValueModel,\n StoreInValueModel,\n TrackExternal,\n ValueModel\n} from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-string-input',\n templateUrl: './string-input.component.html',\n styleUrls: ['./string-input.component.scss']\n})\nexport class StringInputComponent extends AbstractInputComponent<string> implements OnInit {\n\n @Input() @TrackExternal({delegateTo: \"delegatingFormValueModel\"})\n valueModel: FormValueModel<string> | MutableValueModel<string>;\n\n @Input() @TrackExternal({defaultValue: false})\n enableClearModel: ValueModel<boolean>;\n\n @Input() @StoreInValueModel('enableClearModel')\n enableClear: boolean;\n\n readonly clearCommand: Command<void>;\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.clearCommand = Command.create(() => {\n this.valueModel.value = null;\n });\n this.clearCommand.disableWhile(chain.stringValue(this.valueModel).isBlank());\n }\n\n ngOnInit() {\n }\n\n}\n"]}
@@ -11,6 +11,7 @@ export * from "./forms/select-input/select-input.component";
11
11
  export * from "./forms/string-input/string-input.component";
12
12
  export * from "./noop/noop.component";
13
13
  export * from "./scroll-container/scroll-container.component";
14
+ export * from "./switch-case/switch-case.component";
14
15
  export * from "./types/bounds.class";
15
16
  export * from "./types/dimension.class";
16
17
  export * from "./types/point.class";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./components.module\";\nexport * from \"./disposable-component\";\nexport * from \"./resize-aware.component\";\nexport * from \"./forms/abstract-input.component\";\nexport * from \"./forms/number-input/number-input.component\";\nexport * from \"./forms/password-input/password-input.component\";\nexport * from \"./forms/select-input/select-input.component\";\nexport * from \"./forms/string-input/string-input.component\";\nexport * from \"./noop/noop.component\";\nexport * from \"./scroll-container/scroll-container.component\";\nexport * from \"./types/bounds.class\";\nexport * from \"./types/dimension.class\";\nexport * from \"./types/point.class\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./components.module\";\nexport * from \"./disposable-component\";\nexport * from \"./resize-aware.component\";\nexport * from \"./forms/abstract-input.component\";\nexport * from \"./forms/number-input/number-input.component\";\nexport * from \"./forms/password-input/password-input.component\";\nexport * from \"./forms/select-input/select-input.component\";\nexport * from \"./forms/string-input/string-input.component\";\nexport * from \"./noop/noop.component\";\nexport * from \"./scroll-container/scroll-container.component\";\nexport * from \"./switch-case/switch-case.component\";\nexport * from \"./types/bounds.class\";\nexport * from \"./types/dimension.class\";\nexport * from \"./types/point.class\";\n"]}
@@ -0,0 +1,144 @@
1
+ import { __decorate, __extends, __metadata } from "tslib";
2
+ import { AfterContentInit, ChangeDetectorRef, Component, ContentChildren, Directive, Input, OnInit, QueryList, TemplateRef } from '@angular/core';
3
+ import { Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';
4
+ import { DisposableComponent } from '../disposable-component';
5
+ var SwitchCaseOption = /** @class */ (function () {
6
+ function SwitchCaseOption(templateRef) {
7
+ this.templateRef = templateRef;
8
+ }
9
+ Object.defineProperty(SwitchCaseOption.prototype, "name", {
10
+ get: function () {
11
+ return this.constructor.name;
12
+ },
13
+ enumerable: true,
14
+ configurable: true
15
+ });
16
+ return SwitchCaseOption;
17
+ }());
18
+ export { SwitchCaseOption };
19
+ var SwitchCaseWhenDirective = /** @class */ (function (_super) {
20
+ __extends(SwitchCaseWhenDirective, _super);
21
+ function SwitchCaseWhenDirective(templateRef) {
22
+ var _this = _super.call(this, templateRef) || this;
23
+ _this.isDefault = false;
24
+ return _this;
25
+ }
26
+ SwitchCaseWhenDirective_1 = SwitchCaseWhenDirective;
27
+ SwitchCaseWhenDirective.prototype.matches = function (value) {
28
+ return this.aupSwitchCaseWhen === value;
29
+ };
30
+ var SwitchCaseWhenDirective_1;
31
+ SwitchCaseWhenDirective.ctorParameters = function () { return [
32
+ { type: TemplateRef }
33
+ ]; };
34
+ __decorate([
35
+ Input(),
36
+ __metadata("design:type", Object)
37
+ ], SwitchCaseWhenDirective.prototype, "aupSwitchCaseWhen", void 0);
38
+ SwitchCaseWhenDirective = SwitchCaseWhenDirective_1 = __decorate([
39
+ Directive({
40
+ selector: '[aupSwitchCaseWhen]',
41
+ providers: [{ provide: SwitchCaseOption, useExisting: SwitchCaseWhenDirective_1 }]
42
+ }),
43
+ __metadata("design:paramtypes", [TemplateRef])
44
+ ], SwitchCaseWhenDirective);
45
+ return SwitchCaseWhenDirective;
46
+ }(SwitchCaseOption));
47
+ export { SwitchCaseWhenDirective };
48
+ var SwitchCaseDefaultDirective = /** @class */ (function (_super) {
49
+ __extends(SwitchCaseDefaultDirective, _super);
50
+ function SwitchCaseDefaultDirective(templateRef) {
51
+ var _this = _super.call(this, templateRef) || this;
52
+ _this.isDefault = true;
53
+ return _this;
54
+ }
55
+ SwitchCaseDefaultDirective_1 = SwitchCaseDefaultDirective;
56
+ SwitchCaseDefaultDirective.prototype.matches = function (value) {
57
+ return false;
58
+ };
59
+ var SwitchCaseDefaultDirective_1;
60
+ SwitchCaseDefaultDirective.ctorParameters = function () { return [
61
+ { type: TemplateRef }
62
+ ]; };
63
+ SwitchCaseDefaultDirective = SwitchCaseDefaultDirective_1 = __decorate([
64
+ Directive({
65
+ selector: '[aupSwitchCaseDefault]',
66
+ providers: [{ provide: SwitchCaseOption, useExisting: SwitchCaseDefaultDirective_1 }]
67
+ }),
68
+ __metadata("design:paramtypes", [TemplateRef])
69
+ ], SwitchCaseDefaultDirective);
70
+ return SwitchCaseDefaultDirective;
71
+ }(SwitchCaseOption));
72
+ export { SwitchCaseDefaultDirective };
73
+ var SwitchCaseComponent = /** @class */ (function (_super) {
74
+ __extends(SwitchCaseComponent, _super);
75
+ function SwitchCaseComponent(cdr) {
76
+ var _this = _super.call(this) || this;
77
+ _this.cdr = cdr;
78
+ _this.selectedIndex = 0;
79
+ return _this;
80
+ }
81
+ SwitchCaseComponent.prototype.ngOnInit = function () {
82
+ };
83
+ SwitchCaseComponent.prototype.ngAfterContentInit = function () {
84
+ var _this = this;
85
+ var subscription = this.switchCaseOptions.changes.subscribe(function (change) { return _this.updateSelection(); });
86
+ this.onDispose(function () { return subscription.unsubscribe(); });
87
+ var _a = Dsl.disposeWith(this), chain = _a.chain, when = _a.when;
88
+ when.valueOf(this.switchModel).changes(function () { return _this.updateSelection(); }, { initialValue: 'triggerChange' });
89
+ this.cdr.detectChanges();
90
+ };
91
+ SwitchCaseComponent.prototype.updateSelection = function () {
92
+ var _this = this;
93
+ var matchingIndicies = [];
94
+ this.switchCaseOptions.forEach(function (option, index) {
95
+ if (option.matches(_this.switchModel.value)) {
96
+ matchingIndicies.push(index);
97
+ }
98
+ });
99
+ if (matchingIndicies.length > 1) {
100
+ console.warn("found " + matchingIndicies.length + " matching case values, displaying the first.");
101
+ }
102
+ if (matchingIndicies.length === 0) {
103
+ this.switchCaseOptions.forEach(function (option, index) {
104
+ matchingIndicies.push(index);
105
+ });
106
+ if (matchingIndicies.length > 1) {
107
+ console.warn("found " + matchingIndicies.length + " default case values, displaying the first.");
108
+ }
109
+ }
110
+ if (matchingIndicies.length > 0) {
111
+ this.selectedIndex = matchingIndicies[0];
112
+ }
113
+ else {
114
+ console.warn("found no matching or default case values.");
115
+ this.selectedIndex = -1;
116
+ }
117
+ };
118
+ SwitchCaseComponent.ctorParameters = function () { return [
119
+ { type: ChangeDetectorRef }
120
+ ]; };
121
+ __decorate([
122
+ Input(), TrackExternal(),
123
+ __metadata("design:type", ValueModel)
124
+ ], SwitchCaseComponent.prototype, "switchModel", void 0);
125
+ __decorate([
126
+ Input(), StoreInValueModel('switchModel'),
127
+ __metadata("design:type", Object)
128
+ ], SwitchCaseComponent.prototype, "switch", void 0);
129
+ __decorate([
130
+ ContentChildren(SwitchCaseOption),
131
+ __metadata("design:type", QueryList)
132
+ ], SwitchCaseComponent.prototype, "switchCaseOptions", void 0);
133
+ SwitchCaseComponent = __decorate([
134
+ Component({
135
+ selector: 'aup-switch-case',
136
+ template: "<mat-tab-group class=\"content-wrapper\" no-tab-header full-height-tabs [selectedIndex]=\"selectedIndex\">\n <mat-tab *ngFor=\"let option of switchCaseOptions\">\n <ng-template [ngTemplateOutlet]=\"option.templateRef\"></ng-template>\n </mat-tab>\n</mat-tab-group>\n\n\n",
137
+ styles: [":host{display:flex;flex-direction:column;align-items:stretch}mat-tab-group{flex:1}"]
138
+ }),
139
+ __metadata("design:paramtypes", [ChangeDetectorRef])
140
+ ], SwitchCaseComponent);
141
+ return SwitchCaseComponent;
142
+ }(DisposableComponent));
143
+ export { SwitchCaseComponent };
144
+ //# sourceMappingURL=switch-case.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-case.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib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AA4C,mBAAmB,GAqD9D;SArDY,mBAAmB","sourcesContent":["import {\n AfterContentInit,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Directive,\n Input,\n OnInit,\n QueryList,\n TemplateRef\n} from '@angular/core';\n\nimport { Dsl, StoreInValueModel, TrackExternal, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../disposable-component';\n\n\nexport abstract class SwitchCaseOption<T> {\n\n abstract readonly isDefault: boolean;\n\n constructor(readonly templateRef: TemplateRef<Object>) {\n }\n\n get name() {\n return this.constructor.name;\n }\n\n abstract matches(value: T): boolean;\n}\n\n@Directive({\n selector: '[aupSwitchCaseWhen]',\n providers: [{ provide: SwitchCaseOption, useExisting: SwitchCaseWhenDirective }]\n})\nexport class SwitchCaseWhenDirective<T> extends SwitchCaseOption<T> {\n @Input() aupSwitchCaseWhen: T;\n readonly isDefault = false;\n\n constructor(templateRef: TemplateRef<Object>) {\n super(templateRef);\n }\n\n matches(value: T): boolean {\n return this.aupSwitchCaseWhen === value;\n }\n}\n\n@Directive({\n selector: '[aupSwitchCaseDefault]',\n providers: [{ provide: SwitchCaseOption, useExisting: SwitchCaseDefaultDirective }]\n})\nexport class SwitchCaseDefaultDirective<T> extends SwitchCaseOption<T> {\n readonly isDefault = true;\n\n constructor(templateRef: TemplateRef<Object>) {\n super(templateRef);\n }\n\n matches(value: T): boolean {\n return false;\n }\n}\n\n\n@Component({\n selector: 'aup-switch-case',\n templateUrl: './switch-case.component.html',\n styleUrls: ['./switch-case.component.scss']\n})\nexport class SwitchCaseComponent<T> extends DisposableComponent implements OnInit, AfterContentInit {\n\n @Input() @TrackExternal()\n switchModel: ValueModel<T>;\n\n @Input() @StoreInValueModel('switchModel')\n switch: T;\n\n @ContentChildren(SwitchCaseOption)\n switchCaseOptions: QueryList<SwitchCaseOption<T>>;\n\n selectedIndex = 0;\n\n constructor(private cdr: ChangeDetectorRef) {\n super();\n }\n\n ngOnInit(): void {\n }\n\n ngAfterContentInit(): void {\n const subscription = this.switchCaseOptions.changes.subscribe(change => this.updateSelection());\n this.onDispose(() => subscription.unsubscribe());\n const { chain, when } = Dsl.disposeWith(this);\n when.valueOf(this.switchModel).changes(() => this.updateSelection(), { initialValue: 'triggerChange' });\n this.cdr.detectChanges();\n }\n\n private updateSelection() {\n const matchingIndicies = [];\n this.switchCaseOptions.forEach((option, index) => {\n if (option.matches(this.switchModel.value)) {\n matchingIndicies.push(index);\n }\n });\n if (matchingIndicies.length > 1) {\n console.warn(`found ${matchingIndicies.length} matching case values, displaying the first.`);\n }\n if (matchingIndicies.length === 0) {\n this.switchCaseOptions.forEach((option, index) => {\n matchingIndicies.push(index);\n });\n if (matchingIndicies.length > 1) {\n console.warn(`found ${matchingIndicies.length} default case values, displaying the first.`);\n }\n }\n if (matchingIndicies.length > 0) {\n this.selectedIndex = matchingIndicies[0];\n } else {\n console.warn(`found no matching or default case values.`);\n this.selectedIndex = -1;\n }\n }\n}\n\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-case.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/switch-case/switch-case.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-case.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/switch-case/switch-case.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -36,7 +36,7 @@ var CommandDirective = /** @class */ (function (_super) {
36
36
  assert.notNil(this.pectinCommand);
37
37
  if (this.pectinCommand instanceof UnaryCommand) {
38
38
  if (!this._commandParameterProvided) {
39
- lang.illegalState('UnaryCommands required the command parameter to be specified.');
39
+ lang.illegalState('UnaryCommands require the command parameter to be specified.');
40
40
  }
41
41
  }
42
42
  else {
@@ -49,8 +49,8 @@ var CommandDirective = /** @class */ (function (_super) {
49
49
  var _this = this;
50
50
  // for some reason mat-buttons kills the disabled host binding. It works on a regular button but for now
51
51
  // we need to do this.
52
- var chain = Dsl.disposeWith(this).chain;
53
- chain(this._commandEnabled).subscribe(function (enabled) {
52
+ var when = Dsl.disposeWith(this).when;
53
+ when.valueOf(this._commandEnabled).changes(function (enabled) {
54
54
  if (enabled) {
55
55
  _this.elementRef.nativeElement.removeAttribute('disabled');
56
56
  if (_this.elementRef.nativeElement.tagName === 'A') {
@@ -63,7 +63,7 @@ var CommandDirective = /** @class */ (function (_super) {
63
63
  _this.elementRef.nativeElement.removeAttribute('href');
64
64
  }
65
65
  }
66
- });
66
+ }, { initialValue: 'triggerChange' });
67
67
  };
68
68
  CommandDirective.prototype.ngOnDestroy = function () {
69
69
  this.dispose();
@@ -1 +1 @@
1
- {"version":3,"file":"command.directive.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/command.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrH,OAAO,EAAE,MAAM,EAAW,oBAAoB,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMlH;IAA+C,oCAAgB;IA2B7D,0BAAwC,UAAsB;QAA9D,YACE,iBAAO,SACR;QAFuC,gBAAU,GAAV,UAAU,CAAY;QAxBtD,qBAAe,GAAG,IAAI,oBAAoB,EAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAYzE,+BAAyB,GAAG,KAAK,CAAC;;IAc1C,CAAC;IAvBD,sBAAI,2CAAa;aAIjB;YACE,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;aAND,UAAkB,OAAuC;YACvD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,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import { AfterViewInit, Directive, ElementRef, HostListener, Inject, Input, OnDestroy, OnInit } from '@angular/core';\nimport { assert, Command, DelegatingValueModel, Dsl, GarbageCollector, lang, UnaryCommand } from '@coolon/pectin';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[pectinCommand]'\n})\nexport class CommandDirective<P = any> extends GarbageCollector implements OnInit, OnDestroy, AfterViewInit {\n\n private _command: Command<any> | UnaryCommand<P>;\n private _commandEnabled = new DelegatingValueModel<boolean>().withDefault(false);\n\n @Input()\n set pectinCommand(command: Command<any> | UnaryCommand<P>) {\n this._command = command;\n this._commandEnabled.setDelegate(command ? command.enabled : null);\n }\n get pectinCommand():Command<any> | UnaryCommand<P> {\n return this._command;\n }\n\n private _commandParameter: P;\n private _commandParameterProvided = false;\n\n @Input()\n set commandParameter(value: P) {\n this._commandParameterProvided = true;\n this._commandParameter = value;\n }\n\n get commandParameter(): P {\n return this._commandParameter;\n }\n\n constructor(@Inject(ElementRef) private elementRef: ElementRef) {\n super();\n }\n\n ngOnInit(): void {\n assert.notNil(this.pectinCommand);\n if (this.pectinCommand instanceof UnaryCommand) {\n if (!this._commandParameterProvided) {\n lang.illegalState('UnaryCommands required the command parameter to be specified.');\n }\n } else {\n if (this._commandParameterProvided) {\n lang.illegalState('command parameters are only supported by UnaryCommands');\n }\n }\n }\n\n ngAfterViewInit(): void {\n // for some reason mat-buttons kills the disabled host binding. It works on a regular button but for now\n // we need to do this.\n const { chain } = Dsl.disposeWith(this);\n chain(this._commandEnabled).subscribe(enabled => {\n if (enabled) {\n this.elementRef.nativeElement.removeAttribute('disabled');\n if (this.elementRef.nativeElement.tagName === 'A') {\n this.elementRef.nativeElement.setAttribute('href', 'javascript:void');\n }\n } else {\n this.elementRef.nativeElement.setAttribute('disabled', 'disabled');\n if (this.elementRef.nativeElement.tagName === 'A') {\n this.elementRef.nativeElement.removeAttribute('href');\n }\n }\n });\n }\n\n ngOnDestroy(): void {\n this.dispose();\n }\n\n\n @HostListener('click', ['$event'])\n notifyClick($event: Event) {\n $event.preventDefault();\n $event.stopPropagation();\n if (this.pectinCommand.enabled.value) {\n if (this.pectinCommand instanceof UnaryCommand) {\n this.pectinCommand.withContext({ event: $event }).execute(this.commandParameter);\n } else {\n this.pectinCommand.withContext({ event: $event }).execute();\n }\n } else {\n console.warn('disabled command clicked, ignoring.');\n }\n }\n}\n"]}
1
+ {"version":3,"file":"command.directive.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/command.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrH,OAAO,EAAE,MAAM,EAAW,oBAAoB,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMlH;IAA+C,oCAAgB;IA2B7D,0BAAwC,UAAsB;QAA9D,YACE,iBAAO,SACR;QAFuC,gBAAU,GAAV,UAAU,CAAY;QAxBtD,qBAAe,GAAG,IAAI,oBAAoB,EAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAYzE,+BAAyB,GAAG,KAAK,CAAC;;IAc1C,CAAC;IAvBD,sBAAI,2CAAa;aAIjB;YACE,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;aAND,UAAkB,OAAuC;YACvD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACrE,CAAC;;;OAAA;IASD,sBAAI,8CAAgB;aAKpB;YACE,OAAO,IAAI,CAAC,iBAAiB,CAAC;QAChC,CAAC;aAPD,UAAqB,KAAQ;YAC3B,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC;YACt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IACjB,CAAC;IAID,sCAAW,GAAX,UAAY,MAAa;QACvB,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,MAAM,CAAC,eAAe,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE;YACpC,IAAI,IAAI,CAAC,aAAa,YAAY,YAAY,EAAE;gBAC9C,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;aAClF;iBAAM;gBACL,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;aAC7D;SACF;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;SACrD;IACH,CAAC;;gBAtDmD,UAAU,uBAAjD,MAAM,SAAC,UAAU;;IArB9B;QADC,KAAK,EAAE;;;yDAIP;IASD;QADC,KAAK,EAAE;;;4DAIP;IAgDD;QADC,YAAY,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC;;yCACd,KAAK;;uDAYxB;IAjFU,gBAAgB;QAJ5B,SAAS,CAAC;YACT,8CAA8C;YAC9C,QAAQ,EAAE,iBAAiB;SAC5B,CAAC;QA4Ba,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;yCAAqB,UAAU;OA3BnD,gBAAgB,CAkF5B;IAAD,uBAAC;CAAA,AAlFD,CAA+C,gBAAgB,GAkF9D;SAlFY,gBAAgB","sourcesContent":["import { AfterViewInit, Directive, ElementRef, HostListener, Inject, Input, OnDestroy, OnInit } from '@angular/core';\nimport { assert, Command, DelegatingValueModel, Dsl, GarbageCollector, lang, UnaryCommand } from '@coolon/pectin';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[pectinCommand]'\n})\nexport class CommandDirective<P = any> extends GarbageCollector implements OnInit, OnDestroy, AfterViewInit {\n\n private _command: Command<any> | UnaryCommand<P>;\n private _commandEnabled = new DelegatingValueModel<boolean>().withDefault(false);\n\n @Input()\n set pectinCommand(command: Command<any> | UnaryCommand<P>) {\n this._command = command;\n this._commandEnabled.setDelegate(command ? command.enabled : null);\n }\n get pectinCommand():Command<any> | UnaryCommand<P> {\n return this._command;\n }\n\n private _commandParameter: P;\n private _commandParameterProvided = false;\n\n @Input()\n set commandParameter(value: P) {\n this._commandParameterProvided = true;\n this._commandParameter = value;\n }\n\n get commandParameter(): P {\n return this._commandParameter;\n }\n\n constructor(@Inject(ElementRef) private elementRef: ElementRef) {\n super();\n }\n\n ngOnInit(): void {\n assert.notNil(this.pectinCommand);\n if (this.pectinCommand instanceof UnaryCommand) {\n if (!this._commandParameterProvided) {\n lang.illegalState('UnaryCommands require the command parameter to be specified.');\n }\n } else {\n if (this._commandParameterProvided) {\n lang.illegalState('command parameters are only supported by UnaryCommands');\n }\n }\n }\n\n ngAfterViewInit(): void {\n // for some reason mat-buttons kills the disabled host binding. It works on a regular button but for now\n // we need to do this.\n const { when } = Dsl.disposeWith(this);\n when.valueOf(this._commandEnabled).changes(enabled => {\n if (enabled) {\n this.elementRef.nativeElement.removeAttribute('disabled');\n if (this.elementRef.nativeElement.tagName === 'A') {\n this.elementRef.nativeElement.setAttribute('href', 'javascript:void');\n }\n } else {\n this.elementRef.nativeElement.setAttribute('disabled', 'disabled');\n if (this.elementRef.nativeElement.tagName === 'A') {\n this.elementRef.nativeElement.removeAttribute('href');\n }\n }\n }, {initialValue: 'triggerChange'});\n }\n\n ngOnDestroy(): void {\n this.dispose();\n }\n\n\n @HostListener('click', ['$event'])\n notifyClick($event: Event) {\n $event.preventDefault();\n $event.stopPropagation();\n if (this.pectinCommand.enabled.value) {\n if (this.pectinCommand instanceof UnaryCommand) {\n this.pectinCommand.withContext({ event: $event }).execute(this.commandParameter);\n } else {\n this.pectinCommand.withContext({ event: $event }).execute();\n }\n } else {\n console.warn('disabled command clicked, ignoring.');\n }\n }\n}\n"]}