design-angular-kit 0.13.0 → 1.0.0-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 (207) hide show
  1. package/README.md +61 -31
  2. package/esm2020/design-angular-kit.mjs +5 -0
  3. package/esm2020/lib/badge/badge.directive.mjs +83 -0
  4. package/esm2020/lib/breadcrumb/breadcrumb-item.component.mjs +66 -0
  5. package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +89 -0
  6. package/esm2020/lib/button/button.directive.mjs +185 -0
  7. package/esm2020/lib/button/button.module.mjs +18 -0
  8. package/esm2020/lib/checkbox/checkbox.component.mjs +138 -0
  9. package/esm2020/lib/collapse/collapse-group.component.mjs +57 -0
  10. package/esm2020/lib/collapse/collapse-item.component.mjs +79 -0
  11. package/esm2020/lib/collapse/collapse.config.mjs +12 -0
  12. package/esm2020/lib/collapse/collapse.directive.mjs +55 -0
  13. package/esm2020/lib/collapse/collapse.module.mjs +22 -0
  14. package/esm2020/lib/design-angular-kit.module.mjs +142 -0
  15. package/esm2020/lib/dropdown/dropdown-divider.component.mjs +11 -0
  16. package/esm2020/lib/dropdown/dropdown-item.component.mjs +97 -0
  17. package/esm2020/lib/dropdown/dropdown.component.mjs +143 -0
  18. package/esm2020/lib/dropdown/dropdown.config.mjs +12 -0
  19. package/esm2020/lib/dropdown/dropdown.directive.mjs +156 -0
  20. package/esm2020/lib/dropdown/dropdown.module.mjs +25 -0
  21. package/esm2020/lib/enums/icons.enum.mjs +27 -0
  22. package/esm2020/lib/form-input/form-input-password.utils.mjs +154 -0
  23. package/esm2020/lib/form-input/form-input.component.mjs +495 -0
  24. package/esm2020/lib/form-input/it-prefix.directive.mjs +13 -0
  25. package/esm2020/lib/form-input/it-suffix.directive.mjs +13 -0
  26. package/esm2020/lib/form-input/it-text-prefix.directive.mjs +13 -0
  27. package/esm2020/lib/form-input/it-text-suffix.directive.mjs +13 -0
  28. package/esm2020/lib/form-input/mark-matching-text.pipe.mjs +36 -0
  29. package/esm2020/lib/icon/icon.component.mjs +87 -0
  30. package/esm2020/lib/icon/icon.module.mjs +18 -0
  31. package/esm2020/lib/models/Alignment.mjs +15 -0
  32. package/esm2020/lib/models/ButtonSize.mjs +15 -0
  33. package/esm2020/lib/models/InputType.mjs +44 -0
  34. package/esm2020/lib/models/ThemeColor.mjs +30 -0
  35. package/esm2020/lib/popover/popover.config.mjs +17 -0
  36. package/esm2020/lib/popover/popover.directive.mjs +33 -0
  37. package/esm2020/lib/popover/popover.module.mjs +19 -0
  38. package/esm2020/lib/progress-bar/progress-bar.component.mjs +98 -0
  39. package/esm2020/lib/radio/radio.component.mjs +287 -0
  40. package/esm2020/lib/radio/unique-selection-dispatcher.mjs +55 -0
  41. package/esm2020/lib/tabs/tab-group.component.mjs +177 -0
  42. package/esm2020/lib/tabs/tab.component.mjs +73 -0
  43. package/esm2020/lib/tabs/tabs.module.mjs +20 -0
  44. package/esm2020/lib/toggle/toggle.component.mjs +86 -0
  45. package/esm2020/lib/tooltip/tooltip.config.mjs +17 -0
  46. package/esm2020/lib/tooltip/tooltip.directive.mjs +43 -0
  47. package/esm2020/lib/tooltip/tooltip.module.mjs +19 -0
  48. package/esm2020/lib/util/focus-mouse.directive.mjs +32 -0
  49. package/esm2020/lib/util/util.mjs +12 -0
  50. package/esm2020/lib/util/utils.module.mjs +16 -0
  51. package/esm2020/public_api.mjs +40 -0
  52. package/fesm2015/design-angular-kit.mjs +3181 -0
  53. package/fesm2015/design-angular-kit.mjs.map +1 -0
  54. package/fesm2020/design-angular-kit.mjs +3160 -0
  55. package/fesm2020/design-angular-kit.mjs.map +1 -0
  56. package/index.d.ts +5 -0
  57. package/lib/badge/badge.directive.d.ts +11 -5
  58. package/lib/breadcrumb/breadcrumb-item.component.d.ts +16 -5
  59. package/lib/breadcrumb/breadcrumb.component.d.ts +12 -5
  60. package/lib/button/button.directive.d.ts +72 -0
  61. package/lib/button/button.module.d.ts +8 -0
  62. package/lib/checkbox/checkbox.component.d.ts +25 -5
  63. package/lib/collapse/collapse-group.component.d.ts +6 -2
  64. package/lib/collapse/collapse-item.component.d.ts +16 -8
  65. package/lib/collapse/collapse.config.d.ts +6 -0
  66. package/lib/collapse/collapse.directive.d.ts +13 -28
  67. package/lib/collapse/collapse.module.d.ts +12 -0
  68. package/lib/design-angular-kit.module.d.ts +27 -0
  69. package/lib/dropdown/dropdown-divider.component.d.ts +3 -0
  70. package/lib/dropdown/dropdown-item.component.d.ts +22 -8
  71. package/lib/dropdown/dropdown.component.d.ts +34 -26
  72. package/lib/dropdown/dropdown.config.d.ts +6 -0
  73. package/lib/dropdown/dropdown.directive.d.ts +77 -0
  74. package/lib/dropdown/dropdown.module.d.ts +15 -0
  75. package/lib/enums/icons.enum.d.ts +23 -0
  76. package/lib/form-input/form-input-password.utils.d.ts +45 -0
  77. package/lib/form-input/form-input.component.d.ts +202 -20
  78. package/lib/form-input/it-prefix.directive.d.ts +5 -0
  79. package/lib/form-input/it-suffix.directive.d.ts +5 -0
  80. package/lib/form-input/it-text-prefix.directive.d.ts +5 -0
  81. package/lib/form-input/it-text-suffix.directive.d.ts +5 -0
  82. package/lib/form-input/mark-matching-text.pipe.d.ts +10 -0
  83. package/lib/icon/icon.component.d.ts +34 -0
  84. package/lib/icon/icon.module.d.ts +8 -0
  85. package/lib/models/Alignment.d.ts +12 -0
  86. package/lib/models/ButtonSize.d.ts +1 -1
  87. package/lib/models/InputType.d.ts +22 -1
  88. package/lib/models/ThemeColor.d.ts +1 -1
  89. package/lib/popover/popover.config.d.ts +5 -6
  90. package/lib/popover/popover.directive.d.ts +13 -108
  91. package/lib/popover/popover.module.d.ts +9 -0
  92. package/lib/progress-bar/progress-bar.component.d.ts +25 -19
  93. package/lib/radio/radio.component.d.ts +22 -10
  94. package/lib/radio/unique-selection-dispatcher.d.ts +3 -0
  95. package/lib/tabs/tab-group.component.d.ts +17 -11
  96. package/lib/tabs/tab.component.d.ts +6 -2
  97. package/lib/tabs/tabs.module.d.ts +10 -0
  98. package/lib/toggle/toggle.component.d.ts +9 -4
  99. package/lib/tooltip/tooltip.config.d.ts +7 -7
  100. package/lib/tooltip/tooltip.directive.d.ts +12 -92
  101. package/lib/tooltip/tooltip.module.d.ts +9 -0
  102. package/lib/util/focus-mouse.directive.d.ts +13 -0
  103. package/lib/util/utils.module.d.ts +7 -0
  104. package/package.json +34 -20
  105. package/public_api.d.ts +16 -2
  106. package/bundles/design-angular-kit.umd.js +0 -6258
  107. package/bundles/design-angular-kit.umd.js.map +0 -1
  108. package/bundles/design-angular-kit.umd.min.js +0 -31
  109. package/bundles/design-angular-kit.umd.min.js.map +0 -1
  110. package/design-angular-kit.d.ts +0 -8
  111. package/design-angular-kit.metadata.json +0 -1
  112. package/esm2015/design-angular-kit.js +0 -14
  113. package/esm2015/lib/badge/badge.directive.js +0 -116
  114. package/esm2015/lib/breadcrumb/breadcrumb-item.component.js +0 -117
  115. package/esm2015/lib/breadcrumb/breadcrumb.component.js +0 -128
  116. package/esm2015/lib/button/button.component.js +0 -165
  117. package/esm2015/lib/checkbox/checkbox.component.js +0 -170
  118. package/esm2015/lib/collapse/collapse-group.component.js +0 -87
  119. package/esm2015/lib/collapse/collapse-item.component.js +0 -148
  120. package/esm2015/lib/collapse/collapse.directive.js +0 -153
  121. package/esm2015/lib/design-angular-kit.module.js +0 -90
  122. package/esm2015/lib/dropdown/dropdown-divider.component.js +0 -18
  123. package/esm2015/lib/dropdown/dropdown-header.component.js +0 -29
  124. package/esm2015/lib/dropdown/dropdown-item.component.js +0 -157
  125. package/esm2015/lib/dropdown/dropdown.component.js +0 -248
  126. package/esm2015/lib/form-input/form-input.component.js +0 -489
  127. package/esm2015/lib/models/ButtonSize.js +0 -25
  128. package/esm2015/lib/models/IconPosition.js +0 -21
  129. package/esm2015/lib/models/InputType.js +0 -33
  130. package/esm2015/lib/models/InteractionTrigger.js +0 -35
  131. package/esm2015/lib/models/ThemeColor.js +0 -45
  132. package/esm2015/lib/popover/popover.component.js +0 -134
  133. package/esm2015/lib/popover/popover.config.js +0 -35
  134. package/esm2015/lib/popover/popover.directive.js +0 -433
  135. package/esm2015/lib/popover/popup.js +0 -105
  136. package/esm2015/lib/popover/positioning.js +0 -349
  137. package/esm2015/lib/popover/triggers.js +0 -99
  138. package/esm2015/lib/progress-bar/progress-bar.component.js +0 -170
  139. package/esm2015/lib/radio/radio.component.js +0 -526
  140. package/esm2015/lib/radio/unique-selection-dispatcher.js +0 -70
  141. package/esm2015/lib/tabs/tab-group.component.js +0 -339
  142. package/esm2015/lib/tabs/tab.component.js +0 -143
  143. package/esm2015/lib/toggle/toggle.component.js +0 -173
  144. package/esm2015/lib/tooltip/popup.js +0 -105
  145. package/esm2015/lib/tooltip/positioning.js +0 -349
  146. package/esm2015/lib/tooltip/tooltip.component.js +0 -77
  147. package/esm2015/lib/tooltip/tooltip.config.js +0 -31
  148. package/esm2015/lib/tooltip/tooltip.directive.js +0 -384
  149. package/esm2015/lib/tooltip/triggers.js +0 -99
  150. package/esm2015/lib/util/util.js +0 -30
  151. package/esm2015/public_api.js +0 -31
  152. package/esm5/design-angular-kit.js +0 -14
  153. package/esm5/lib/badge/badge.directive.js +0 -145
  154. package/esm5/lib/breadcrumb/breadcrumb-item.component.js +0 -135
  155. package/esm5/lib/breadcrumb/breadcrumb.component.js +0 -164
  156. package/esm5/lib/button/button.component.js +0 -221
  157. package/esm5/lib/checkbox/checkbox.component.js +0 -200
  158. package/esm5/lib/collapse/collapse-group.component.js +0 -102
  159. package/esm5/lib/collapse/collapse-item.component.js +0 -183
  160. package/esm5/lib/collapse/collapse.directive.js +0 -210
  161. package/esm5/lib/design-angular-kit.module.js +0 -94
  162. package/esm5/lib/dropdown/dropdown-divider.component.js +0 -20
  163. package/esm5/lib/dropdown/dropdown-header.component.js +0 -27
  164. package/esm5/lib/dropdown/dropdown-item.component.js +0 -197
  165. package/esm5/lib/dropdown/dropdown.component.js +0 -309
  166. package/esm5/lib/form-input/form-input.component.js +0 -582
  167. package/esm5/lib/models/ButtonSize.js +0 -25
  168. package/esm5/lib/models/IconPosition.js +0 -21
  169. package/esm5/lib/models/InputType.js +0 -33
  170. package/esm5/lib/models/InteractionTrigger.js +0 -35
  171. package/esm5/lib/models/ThemeColor.js +0 -45
  172. package/esm5/lib/popover/popover.component.js +0 -144
  173. package/esm5/lib/popover/popover.config.js +0 -37
  174. package/esm5/lib/popover/popover.directive.js +0 -573
  175. package/esm5/lib/popover/popup.js +0 -116
  176. package/esm5/lib/popover/positioning.js +0 -446
  177. package/esm5/lib/popover/triggers.js +0 -115
  178. package/esm5/lib/progress-bar/progress-bar.component.js +0 -218
  179. package/esm5/lib/radio/radio.component.js +0 -610
  180. package/esm5/lib/radio/unique-selection-dispatcher.js +0 -108
  181. package/esm5/lib/tabs/tab-group.component.js +0 -401
  182. package/esm5/lib/tabs/tab.component.js +0 -156
  183. package/esm5/lib/toggle/toggle.component.js +0 -200
  184. package/esm5/lib/tooltip/popup.js +0 -116
  185. package/esm5/lib/tooltip/positioning.js +0 -446
  186. package/esm5/lib/tooltip/tooltip.component.js +0 -80
  187. package/esm5/lib/tooltip/tooltip.config.js +0 -33
  188. package/esm5/lib/tooltip/tooltip.directive.js +0 -516
  189. package/esm5/lib/tooltip/triggers.js +0 -115
  190. package/esm5/lib/util/util.js +0 -48
  191. package/esm5/public_api.js +0 -31
  192. package/fesm2015/design-angular-kit.js +0 -5094
  193. package/fesm2015/design-angular-kit.js.map +0 -1
  194. package/fesm5/design-angular-kit.js +0 -6314
  195. package/fesm5/design-angular-kit.js.map +0 -1
  196. package/lib/button/button.component.d.ts +0 -50
  197. package/lib/dropdown/dropdown-header.component.d.ts +0 -3
  198. package/lib/models/IconPosition.d.ts +0 -9
  199. package/lib/models/InteractionTrigger.d.ts +0 -19
  200. package/lib/popover/popover.component.d.ts +0 -25
  201. package/lib/popover/popup.d.ts +0 -27
  202. package/lib/popover/positioning.d.ts +0 -32
  203. package/lib/popover/triggers.d.ts +0 -18
  204. package/lib/tooltip/popup.d.ts +0 -27
  205. package/lib/tooltip/positioning.d.ts +0 -32
  206. package/lib/tooltip/tooltip.component.d.ts +0 -20
  207. package/lib/tooltip/triggers.d.ts +0 -18
@@ -1,31 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("io-ts"),require("@angular/core"),require("@angular/forms"),require("rxjs"),require("@angular/common")):"function"==typeof define&&define.amd?define("design-angular-kit",["exports","io-ts","@angular/core","@angular/forms","rxjs","@angular/common"],e):e(t["design-angular-kit"]={},null,t.ng.core,t.ng.forms,t.rxjs,t.ng.common)}(this,function(t,e,c,n,i,o){"use strict";var r=e.keyof({primary:null,secondary:null,danger:null,warning:null,info:null,success:null,light:null,dark:null}),s="primary",a="light",l=0,h=function(){function t(){this.progressbarId="it-progress-bar-"+l++,this._height=t.PROGRESS_BAR_DEFAULT_HEIGHT,this._min=t.PROGRESS_BAR_DEFAULT_MIN,this._max=t.PROGRESS_BAR_DEFAULT_MAX,this._value=t.PROGRESS_BAR_DEFAULT_VALUE,this._label=t.PROGRESS_BAR_DEFAULT_LABEL,this._color=s}return Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=Math.round(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=Math.round(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=Math.min(Math.max(t,this._min),this._max)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(t){this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){r.is(t)?this._color=t:this._color=s},enumerable:!0,configurable:!0}),t.prototype.valuePercentage=function(){return 100*(this.value-this.min)/(this.max-this.min)},t.prototype.pgStyle=function(){return{width:this.valuePercentage()+"%"}},t.prototype.pgClass=function(){var t={"progress-bar":!0};return this.color&&(t["bg-"+this.color]=!0),t},t.PROGRESS_BAR_DEFAULT_MIN=0,t.PROGRESS_BAR_DEFAULT_MAX=100,t.PROGRESS_BAR_DEFAULT_VALUE=0,t.PROGRESS_BAR_DEFAULT_HEIGHT=20,t.PROGRESS_BAR_DEFAULT_LABEL="",t.decorators=[{type:c.Component,args:[{selector:"it-progress-bar",template:'<div class="progress" [ngStyle]="{\'height\': height + \'px\'}">\n <div role="progressbar" [id]="progressbarId" [ngClass]="pgClass()" [ngStyle]="pgStyle()"\n [attr.aria-valuenow]="value" [attr.aria-valuemin]="min" [attr.aria-valuemax]="max" >\n {{label}}\n </div>\n</div>',styles:[""],changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[]},t.propDecorators={height:[{type:c.Input}],min:[{type:c.Input}],max:[{type:c.Input}],value:[{type:c.Input}],label:[{type:c.Input}],color:[{type:c.Input}]},t}(),p=0,u=function Vt(){},d=function(){function t(t){this._changeDetectorRef=t,this._checked=!1,this._disabled=!1,this.change=new c.EventEmitter,this.inputId="checkbox-"+p++,this._onTouched=function(){},this._controlValueAccessorChangeFn=function(){}}return Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){t!==this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.checked=!!t},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.handleChange=function(t){t.stopPropagation(),this.disabled||(this._toggle(),this._emitChangeEvent())},t.prototype._toggle=function(){this.checked=!this.checked},t.prototype._emitChangeEvent=function(){var t=new u;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},t.decorators=[{type:c.Component,args:[{selector:"it-checkbox",template:"<div class=form-check>\n <input type=checkbox\n [id]=inputId\n [checked]=checked\n [disabled]=disabled\n (change)=handleChange($event)>\n <label\n [attr.for]=inputId>{{label}}</label>\n</div>\n",styles:[""],providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return t}),multi:!0}],changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef}]},t.propDecorators={checked:[{type:c.Input}],label:[{type:c.Input}],disabled:[{type:c.Input}],change:[{type:c.Output}]},t}(),
2
- /**
3
- * @license
4
- * Copyright Angular ng-bootstrap team All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://raw.githubusercontent.com/ng-bootstrap/ng-bootstrap/master/LICENSE
8
- */f=function(){function t(t,e){this.open=t,(this.close=e)||(this.close=t)}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}(),g={hover:["mouseenter","mouseleave"],focus:["focus","blur"]};var b=function(){};function m(e,n,t,i,o,r){var s=function c(t,n){void 0===n&&(n=g);var e=(t||"").trim();if(0===e.length)return[];var i=e.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var e=n[t[0]]||t;return new f(e[0],e[1])}),o=i.filter(function(t){return t.isManual()});if(1<o.length)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===o.length&&1<i.length)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}(t),a=[];return 1===s.length&&s[0].isManual()?b:(s.forEach(function(t){t.open===t.close?a.push(e.listen(n,t.open,r)):a.push(e.listen(n,t.open,i),e.listen(n,t.close,o))}),function(){a.forEach(function(t){return t()})})}function y(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function _(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(o)throw o.error}}return s}
9
- /**
10
- * @license
11
- * Copyright Angular ng-bootstrap team All Rights Reserved.
12
- *
13
- * Use of this source code is governed by an MIT-style license that can be
14
- * found in the LICENSE file at https://raw.githubusercontent.com/ng-bootstrap/ng-bootstrap/master/LICENSE
15
- */
16
- var v=new(function(){function t(){}return t.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},t.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){var n;void 0===e&&(e=!0);var i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect();else{var o=this.offsetParent(t);n=this.offset(t,!1),o!==document.documentElement&&(i=this.offset(o,!1)),i.top+=o.clientTop,i.left+=o.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,o=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+o,right:n.right+o};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},t.prototype.positionElements=function(t,e,n,i){var o=i?this.offset(t,!1):this.position(t,!1),r=this.getAllStyles(e),s=e.getBoundingClientRect(),a=n.split("-")[0]||"top",c=n.split("-")[1]||"center",l={height:s.height||e.offsetHeight,width:s.width||e.offsetWidth,top:0,bottom:s.height||e.offsetHeight,left:0,right:s.width||e.offsetWidth};switch(a){case"top":l.top=o.top-(e.offsetHeight+parseFloat(r.marginBottom));break;case"bottom":l.top=o.top+o.height;break;case"left":l.left=o.left-(e.offsetWidth+parseFloat(r.marginRight));break;case"right":l.left=o.left+o.width}switch(c){case"top":l.top=o.top;break;case"bottom":l.top=o.top+o.height-e.offsetHeight;break;case"left":l.left=o.left;break;case"right":l.left=o.left+o.width-e.offsetWidth;break;case"center":"top"===a||"bottom"===a?l.left=o.left+o.width/2-e.offsetWidth/2:l.top=o.top+o.height/2-e.offsetHeight/2}return l.top=Math.round(l.top),l.bottom=Math.round(l.bottom),l.left=Math.round(l.left),l.right=Math.round(l.right),l},t.prototype.getAvailablePlacements=function(t,e){var n=[],i=t.getBoundingClientRect(),o=e.getBoundingClientRect(),r=document.documentElement,s=window.innerHeight||r.clientHeight,a=window.innerWidth||r.clientWidth,c=i.left+i.width/2,l=i.top+i.height/2;return o.width<i.left&&(l>o.height/2&&s-l>o.height/2&&n.splice(n.length,1,"left"),this.setSecondaryPlacementForLeftRight(i,o,"left",n)),o.height<i.top&&(c>o.width/2&&a-c>o.width/2&&n.splice(n.length,1,"top"),this.setSecondaryPlacementForTopBottom(i,o,"top",n)),a-i.right>o.width&&(l>o.height/2&&s-l>o.height/2&&n.splice(n.length,1,"right"),this.setSecondaryPlacementForLeftRight(i,o,"right",n)),s-i.bottom>o.height&&(c>o.width/2&&a-c>o.width/2&&n.splice(n.length,1,"bottom"),this.setSecondaryPlacementForTopBottom(i,o,"bottom",n)),n},t.prototype.setSecondaryPlacementForLeftRight=function(t,e,n,i){var o=document.documentElement;e.height<=t.bottom&&i.splice(i.length,1,n+"-bottom"),(window.innerHeight||o.clientHeight)-t.top>=e.height&&i.splice(i.length,1,n+"-top")},t.prototype.setSecondaryPlacementForTopBottom=function(t,e,n,i){var o=document.documentElement;(window.innerWidth||o.clientWidth)-t.left>=e.width&&i.splice(i.length,1,n+"-left"),e.width<=t.right&&i.splice(i.length,1,n+"-right")},t}());function w(i,o,t,r){var s=Array.isArray(t)?t:[t],n=s.findIndex(function(t){return"auto"===t});0<=n&&["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].forEach(function(e){null==s.find(function(t){return-1!==t.search("^"+e)})&&s.splice(n++,1,e)});var a,e,c,l=0,h=0,p=v.getAvailablePlacements(i,o),u=function(e,t){if(null!=p.find(function(t){return t===e})||s.length===t+1){a=e;var n=v.positionElements(i,o,e,r);return l=n.top,h=n.left,"break"}};try{for(var d=y(function b(t){return t.map(function(t,e){return{item:t,index:e}})}(s)),f=d.next();!f.done;f=d.next()){var g=f.value;if("break"===u(g.item,g.index))break}}catch(m){e={error:m}}finally{try{f&&!f.done&&(c=d["return"])&&c.call(d)}finally{if(e)throw e.error}}return o.style.top=l+"px",o.style.left=h+"px",a}var E=function Gt(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n},C=function(){function t(t,e,n,i,o){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=i,this._componentFactoryResolver=o}return t.prototype.open=function(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),0,this._injector,this._contentRef.nodes)),this._windowRef},t.prototype.close=function(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef=null))},t.prototype._getContentRef=function(t,e){if(t){if(t instanceof c.TemplateRef){var n=this._viewContainerRef.createEmbeddedView(t,e);return new E([n.rootNodes],n)}return new E([[this._renderer.createText(""+t)]])}return new E([])},t}(),P=(e.keyof({click:null,focus:null,hover:null}),e.keyof({click:null,focus:null})),R="click",O=R,k="hover",I=R,S=function(){function t(){this.placement="right",this.triggers=O,this.disablePopover=!1}return t.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=c.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),D=function(){function t(t,e,n,i){this._element=t,this._renderer=e,this._changeDetectorRef=n,this._viewContainerRef=i,this.placement="right",this.hidden=!1,this.role="tooltip"}return Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t,this._changeDetectorRef.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"myCssClass",{get:function(){return"popover bs-popover-"+this.placement.split("-")[0]+" bs-popover-"+this.placement},enumerable:!0,configurable:!0}),t.prototype.applyPlacement=function(t){this._renderer.removeClass(this._element.nativeElement,"bs-popover-"+this.placement.toString().split("-")[0]),this._renderer.removeClass(this._element.nativeElement,"bs-popover-"+this.placement.toString()),this.placement=t,this._renderer.addClass(this._element.nativeElement,"bs-popover-"+this.placement.toString().split("-")[0]),this._renderer.addClass(this._element.nativeElement,"bs-popover-"+this.placement.toString())},t.prototype.setNewContent=function(t,e){var n,i=this,o=this._element.nativeElement.querySelector(".popover-body");if(t)if(t instanceof c.TemplateRef){var r=this._viewContainerRef.createEmbeddedView(t,e);n=new E([r.rootNodes],r)}else n=new E([[this._renderer.createText(""+t)]]);else n=new E([]);for(var s=o.childNodes,a=0;a<s.length;a++)this._renderer.removeChild(o,s[a]);n.nodes.forEach(function(t){t.forEach(function(t){return i._renderer.appendChild(o,t)})})},t.decorators=[{type:c.Component,args:[{selector:"it-popover-window",changeDetection:c.ChangeDetectionStrategy.OnPush,template:'<div class="arrow"></div>\n<h3 class="popover-header">{{title}}</h3>\n<div class="popover-body">\n <ng-content></ng-content>\n</div>',styles:[":host.bs-popover-bottom .arrow,:host.bs-popover-top .arrow{left:50%;margin-left:-5px}:host.bs-popover-bottom-left .arrow,:host.bs-popover-top-left .arrow{left:2em}:host.bs-popover-bottom-right .arrow,:host.bs-popover-top-right .arrow{left:auto;right:2em}:host.bs-popover-left .arrow,:host.bs-popover-right .arrow{top:50%;margin-top:-5px}:host.bs-popover-left-top .arrow,:host.bs-popover-right-top .arrow{top:.7em}:host.bs-popover-left-bottom .arrow,:host.bs-popover-right-bottom .arrow{top:auto;bottom:.7em}"]}]}],t.ctorParameters=function(){return[{type:c.ElementRef},{type:c.Renderer2},{type:c.ChangeDetectorRef},{type:c.ViewContainerRef}]},t.propDecorators={placement:[{type:c.Input}],title:[{type:c.Input}],id:[{type:c.Input},{type:c.HostBinding,args:["id"]}],hidden:[{type:c.Input},{type:c.HostBinding,args:["hidden"]}],role:[{type:c.HostBinding,args:["attr.role"]}],myCssClass:[{type:c.HostBinding,args:["class"]}]},t}(),j=function(){function n(){}return n.coerceBooleanProperty=function(t){return null!=t&&""+t!="false"},n.coerceNumberProperty=function(t,e){return void 0===e&&(e=0),n._isNumberValue(t)?Number(t):e},n._isNumberValue=function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))},n}(),T=0,x=function(){function t(t,e,n,i,o,r,s){var a=this;this._elementRef=t,this._renderer=e,this._showEvent=new c.EventEmitter,this._shownEvent=new c.EventEmitter,this._insertedEvent=new c.EventEmitter,this._hideEvent=new c.EventEmitter,this._hiddenEvent=new c.EventEmitter,this._disablePopover=!1,this._itPopoverWindowId="it-popover-"+T++,this.placement=r.placement,this.triggers=r.triggers,this.container=r.container,this.disablePopover=r.disablePopover,this._popupService=new C(D,n,o,e,i),this._zoneSubscription=s.onStable.subscribe(function(){a._windowRef&&a._windowRef.instance.applyPlacement(w(a._elementRef.nativeElement,a._windowRef.location.nativeElement,a.placement,"body"===a.container))})}return Object.defineProperty(t.prototype,"itPopover",{get:function(){return this._itPopover},set:function(t){this._itPopover=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placement",{get:function(){return this._placement},set:function(t){this._placement=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggers",{get:function(){return this._triggers},set:function(t){P.is(t)?this._triggers=t:this._triggers=I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showEvent",{get:function(){return this._showEvent},set:function(t){this._showEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shownEvent",{get:function(){return this._shownEvent},set:function(t){this._shownEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"insertedEvent",{get:function(){return this._insertedEvent},set:function(t){this._insertedEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideEvent",{get:function(){return this._hideEvent},set:function(t){this._hideEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hiddenEvent",{get:function(){return this._hiddenEvent},set:function(t){this._hiddenEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disablePopover",{get:function(){return this._disablePopover},set:function(t){this._disablePopover=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype._isDisabled=function(){return!!this.disablePopover||!this.itPopover&&!this.title},t.prototype.show=function(t){if(!this._isDisabled()){var e;if(this.showEvent.emit(this),this._windowRef)(e=this._windowRef.instance).hidden=!1;else this._windowRef=this._popupService.open(this.itPopover,t),(e=this._windowRef.instance).title=this.title,e.id=this._itPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._itPopoverWindowId),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),e.applyPlacement(w(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)),this.insertedEvent.emit(this);this.shownEvent.emit(this)}},t.prototype.hide=function(){(this.hideEvent.emit(this),this._windowRef)&&(this._windowRef.instance.hidden=!0,this.hiddenEvent.emit(this))},t.prototype.toggle=function(){this._windowRef?this._windowRef.instance.hidden?this.show():this.hide():this.show()},t.prototype.dispose=function(){!!this._windowRef&&!this._windowRef.instance.hidden&&this.hide(),this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null)},t.prototype.enable=function(){this._isDisabled()&&(this.disablePopover=!1)},t.prototype.disable=function(){this._isDisabled()||(this.disablePopover=!0)},t.prototype.toggleEnabled=function(){this._isDisabled()?this.enable():this.disable()},t.prototype.ngOnInit=function(){this._unregisterListenersFn=m(this._renderer,this._elementRef.nativeElement,this.triggers,this.show.bind(this),this.hide.bind(this),this.toggle.bind(this))},t.prototype.ngOnChanges=function(t){if(t.itPopover||t.title||t.disablePopover){if(this._windowRef){var e=!this._windowRef.instance.hidden;t.itPopover&&(this._windowRef.instance.setNewContent(this.itPopover),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck()),t.title&&(this._windowRef.instance.title=this.title),e&&(this._isDisabled()?this.hide():this.show())}}else if(t.placement)this._windowRef&&this._windowRef.instance.applyPlacement(w(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container));else if(t.container){e=!!this._windowRef&&!this._windowRef.instance.hidden;this.dispose(),e&&this.show()}else if(t.triggers){this.dispose();var n=t.triggers;n.previousValue===n.currentValue||n.firstChange||(this._unregisterListenersFn(),this._unregisterListenersFn=m(this._renderer,this._elementRef.nativeElement,this.triggers,this.show.bind(this),this.hide.bind(this),this.toggle.bind(this)))}},t.prototype.ngOnDestroy=function(){this.dispose(),this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t.decorators=[{type:c.Directive,args:[{selector:"[it-popover]",exportAs:"it-popover"}]}],t.ctorParameters=function(){return[{type:c.ElementRef},{type:c.Renderer2},{type:c.Injector},{type:c.ComponentFactoryResolver},{type:c.ViewContainerRef},{type:S},{type:c.NgZone}]},t.propDecorators={itPopover:[{type:c.Input,args:["it-popover"]}],title:[{type:c.Input}],placement:[{type:c.Input}],triggers:[{type:c.Input}],container:[{type:c.Input}],showEvent:[{type:c.Output,args:["show"]}],shownEvent:[{type:c.Output,args:["shown"]}],insertedEvent:[{type:c.Output,args:["inserted"]}],hideEvent:[{type:c.Output,args:["hide"]}],hiddenEvent:[{type:c.Output,args:["hidden"]}],disablePopover:[{type:c.Input,args:["disabled"]}]},t}(),A=0,B=function Ht(){},F=function(){function t(t){this._changeDetectorRef=t,this._checked=!1,this._disabled=!1,this.change=new c.EventEmitter,this.inputId="toggle-"+A++,this._onTouched=function(){},this._controlValueAccessorChangeFn=function(){}}return Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){t!==this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.checked=!!t},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.handleChange=function(t){t.stopPropagation(),this.disabled||(this._toggle(),this._emitChangeEvent())},t.prototype._toggle=function(){this.checked=!this.checked},t.prototype._emitChangeEvent=function(){var t=new B;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},t.decorators=[{type:c.Component,args:[{selector:"it-toggle",template:'<div class="form-check">\n <div class="toggles">\n <label [attr.for]=inputId>\n {{label}}\n <input type=checkbox\n [id]=inputId\n [checked]=checked\n [disabled]=disabled\n (change)=handleChange($event)>\n <span class="lever"></span>\n </label>\n </div>\n</div>',styles:[""],providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return t}),multi:!0}],changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef}]},t.propDecorators={checked:[{type:c.Input}],label:[{type:c.Input}],disabled:[{type:c.Input}],change:[{type:c.Output}]},t}(),L=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){try{for(var n=y(this._listeners),i=n.next();!i.done;i=n.next()){(0,i.value)(t,e)}}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n["return"])&&r.call(n)}finally{if(o)throw o.error}}var o,r},t.prototype.listen=function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter(function(t){return e!==t})}},t.prototype.ngOnDestroy=function(){this._listeners=[]},t.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=c.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),M=0;function V(t){return null!=t&&""+t!="false"}var G=function Nt(t,e){this.source=t,this.value=e},H=function(){function t(t){this._changeDetector=t,this.role="radiogroup",this._value=null,this._name="it-radio-group-"+M++,this._selected=null,this._isInitialized=!1,this._disabled=!1,this.change=new c.EventEmitter,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())},enumerable:!0,configurable:!0}),t.prototype._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)},Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=V(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._isInitialized=!0},t.prototype._touch=function(){this.onTouched&&this.onTouched()},t.prototype._updateRadioButtonNames=function(){var e=this;this._radios&&this._radios.forEach(function(t){t.name=e.name})},t.prototype._updateSelectedRadioFromValue=function(){var e=this;this._selected=null,this._radios.forEach(function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)})},t.prototype._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new G(this._selected,this._value))},t.prototype._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(t){return t._markForCheck()})},t.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.decorators=[{type:c.Directive,args:[{selector:"it-radio-group",exportAs:"itRadioGroup",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef}]},t.propDecorators={role:[{type:c.HostBinding,args:["attr.role"]}],change:[{type:c.Output}],_radios:[{type:c.ContentChildren,args:[c.forwardRef(function(){return N}),{descendants:!0}]}],name:[{type:c.Input}],value:[{type:c.Input}],selected:[{type:c.Input}],disabled:[{type:c.Input}]},t}(),N=function(){function t(t,e,n){var i=this;this._changeDetector=e,this._radioDispatcher=n,this.id="radio-"+M++,this.change=new c.EventEmitter,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=function(){},this.radioGroup=t,this._removeUniqueSelectionListener=n.listen(function(t,e){t!==i.id&&e===i.name&&(i.checked=!1)})}return Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){var e=V(t);this._checked!==e&&((this._checked=e)&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(t){var e=!!t;this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),t.prototype._markForCheck=function(){this._changeDetector.markForCheck()},t.prototype.ngOnInit=function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)},t.prototype.ngOnDestroy=function(){this._removeUniqueSelectionListener()},t.prototype._emitChangeEvent=function(){this.change.emit(new G(this,this._value))},t.prototype._onInputChange=function(t){t.stopPropagation();var e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),this.radioGroup._touch(),e&&this.radioGroup._emitChangeEvent())},t.decorators=[{type:c.Component,args:[{selector:"it-radio-button",template:'<div class="form-check">\n <input type="radio"\n [id]="id"\n [checked]="checked"\n [disabled]="disabled"\n [attr.name]="name"\n (change)="_onInputChange($event)">\n <label\n [attr.for]="id">{{label}}</label>\n</div>\n',styles:[""],exportAs:"itRadioButton",changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:H,decorators:[{type:c.Optional}]},{type:c.ChangeDetectorRef},{type:L}]},t.propDecorators={name:[{type:c.Input}],label:[{type:c.Input}],checked:[{type:c.Input}],value:[{type:c.Input}],disabled:[{type:c.Input}],change:[{type:c.Output}]},t}(),
17
- /**
18
- * @license
19
- * Copyright Angular ng-bootstrap team All Rights Reserved.
20
- *
21
- * Use of this source code is governed by an MIT-style license that can be
22
- * found in the LICENSE file at https://raw.githubusercontent.com/ng-bootstrap/ng-bootstrap/master/LICENSE
23
- */W=function(){function t(t,e){this.open=t,(this.close=e)||(this.close=t)}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}(),U={hover:["mouseenter","mouseleave"],focus:["focus","blur"]};var z=function(){};function q(e,n,t,i,o,r){var s=function c(t,n){void 0===n&&(n=U);var e=(t||"").trim();if(0===e.length)return[];var i=e.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var e=n[t[0]]||t;return new W(e[0],e[1])}),o=i.filter(function(t){return t.isManual()});if(1<o.length)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===o.length&&1<i.length)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}(t),a=[];return 1===s.length&&s[0].isManual()?z:(s.forEach(function(t){t.open===t.close?a.push(e.listen(n,t.open,r)):a.push(e.listen(n,t.open,i),e.listen(n,t.close,o))}),function(){a.forEach(function(t){return t()})})}
24
- /**
25
- * @license
26
- * Copyright Angular ng-bootstrap team All Rights Reserved.
27
- *
28
- * Use of this source code is governed by an MIT-style license that can be
29
- * found in the LICENSE file at https://raw.githubusercontent.com/ng-bootstrap/ng-bootstrap/master/LICENSE
30
- */var $=new(function(){function t(){}return t.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},t.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){var n;void 0===e&&(e=!0);var i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect();else{var o=this.offsetParent(t);n=this.offset(t,!1),o!==document.documentElement&&(i=this.offset(o,!1)),i.top+=o.clientTop,i.left+=o.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,o=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+o,right:n.right+o};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},t.prototype.positionElements=function(t,e,n,i){var o=i?this.offset(t,!1):this.position(t,!1),r=this.getAllStyles(e),s=e.getBoundingClientRect(),a=n.split("-")[0]||"top",c=n.split("-")[1]||"center",l={height:s.height||e.offsetHeight,width:s.width||e.offsetWidth,top:0,bottom:s.height||e.offsetHeight,left:0,right:s.width||e.offsetWidth};switch(a){case"top":l.top=o.top-(e.offsetHeight+parseFloat(r.marginBottom));break;case"bottom":l.top=o.top+o.height;break;case"left":l.left=o.left-(e.offsetWidth+parseFloat(r.marginRight));break;case"right":l.left=o.left+o.width}switch(c){case"top":l.top=o.top;break;case"bottom":l.top=o.top+o.height-e.offsetHeight;break;case"left":l.left=o.left;break;case"right":l.left=o.left+o.width-e.offsetWidth;break;case"center":"top"===a||"bottom"===a?l.left=o.left+o.width/2-e.offsetWidth/2:l.top=o.top+o.height/2-e.offsetHeight/2}return l.top=Math.round(l.top),l.bottom=Math.round(l.bottom),l.left=Math.round(l.left),l.right=Math.round(l.right),l},t.prototype.getAvailablePlacements=function(t,e){var n=[],i=t.getBoundingClientRect(),o=e.getBoundingClientRect(),r=document.documentElement,s=window.innerHeight||r.clientHeight,a=window.innerWidth||r.clientWidth,c=i.left+i.width/2,l=i.top+i.height/2;return o.width<i.left&&(l>o.height/2&&s-l>o.height/2&&n.splice(n.length,1,"left"),this.setSecondaryPlacementForLeftRight(i,o,"left",n)),o.height<i.top&&(c>o.width/2&&a-c>o.width/2&&n.splice(n.length,1,"top"),this.setSecondaryPlacementForTopBottom(i,o,"top",n)),a-i.right>o.width&&(l>o.height/2&&s-l>o.height/2&&n.splice(n.length,1,"right"),this.setSecondaryPlacementForLeftRight(i,o,"right",n)),s-i.bottom>o.height&&(c>o.width/2&&a-c>o.width/2&&n.splice(n.length,1,"bottom"),this.setSecondaryPlacementForTopBottom(i,o,"bottom",n)),n},t.prototype.setSecondaryPlacementForLeftRight=function(t,e,n,i){var o=document.documentElement;e.height<=t.bottom&&i.splice(i.length,1,n+"-bottom"),(window.innerHeight||o.clientHeight)-t.top>=e.height&&i.splice(i.length,1,n+"-top")},t.prototype.setSecondaryPlacementForTopBottom=function(t,e,n,i){var o=document.documentElement;(window.innerWidth||o.clientWidth)-t.left>=e.width&&i.splice(i.length,1,n+"-left"),e.width<=t.right&&i.splice(i.length,1,n+"-right")},t}());function Y(i,o,t,r){var s=Array.isArray(t)?t:[t],n=s.findIndex(function(t){return"auto"===t});0<=n&&["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].forEach(function(e){null==s.find(function(t){return-1!==t.search("^"+e)})&&s.splice(n++,1,e)});var a,e,c,l=0,h=0,p=$.getAvailablePlacements(i,o),u=function(e,t){if(null!=p.find(function(t){return t===e})||s.length===t+1){a=e;var n=$.positionElements(i,o,e,r);return l=n.top,h=n.left,"break"}};try{for(var d=y(function b(t){return t.map(function(t,e){return{item:t,index:e}})}(s)),f=d.next();!f.done;f=d.next()){var g=f.value;if("break"===u(g.item,g.index))break}}catch(m){e={error:m}}finally{try{f&&!f.done&&(c=d["return"])&&c.call(d)}finally{if(e)throw e.error}}return o.style.top=l+"px",o.style.left=h+"px",a}var X=function Wt(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n},Z=function(){function t(t,e,n,i,o){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=i,this._componentFactoryResolver=o}return t.prototype.open=function(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),0,this._injector,this._contentRef.nodes)),this._windowRef},t.prototype.close=function(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef=null))},t.prototype._getContentRef=function(t,e){if(t){if(t instanceof c.TemplateRef){var n=this._viewContainerRef.createEmbeddedView(t,e);return new X([n.rootNodes],n)}return new X([[this._renderer.createText(""+t)]])}return new X([])},t}(),K=function(){function t(){this.placement="right",this.disableTooltip=!1}return t.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=c.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),J=function(){function t(t,e){this._element=t,this._renderer=e,this.placement="right",this.hidden=!1,this.role="tooltip"}return Object.defineProperty(t.prototype,"myCssClass",{get:function(){return"tooltip show bs-tooltip-"+this.placement.split("-")[0]+" bs-tooltip-"+this.placement},enumerable:!0,configurable:!0}),t.prototype.applyPlacement=function(t){this._renderer.removeClass(this._element.nativeElement,"bs-tooltip-"+this.placement.toString().split("-")[0]),this._renderer.removeClass(this._element.nativeElement,"bs-tooltip-"+this.placement.toString()),this.placement=t,this._renderer.addClass(this._element.nativeElement,"bs-tooltip-"+this.placement.toString().split("-")[0]),this._renderer.addClass(this._element.nativeElement,"bs-tooltip-"+this.placement.toString())},t.decorators=[{type:c.Component,args:[{selector:"it-tooltip-window",changeDetection:c.ChangeDetectionStrategy.OnPush,template:'<div class="arrow"></div>\n<div class="tooltip-inner">\n <ng-content></ng-content>\n</div>',styles:[":host.bs-tooltip-bottom .arrow,:host.bs-tooltip-top .arrow{left:calc(50% - .4rem)}:host.bs-tooltip-bottom-left .arrow,:host.bs-tooltip-top-left .arrow{left:1em}:host.bs-tooltip-bottom-right .arrow,:host.bs-tooltip-top-right .arrow{left:auto;right:.8rem}:host.bs-tooltip-left .arrow,:host.bs-tooltip-right .arrow{top:calc(50% - .4rem)}:host.bs-tooltip-left-top .arrow,:host.bs-tooltip-right-top .arrow{top:.4rem}:host.bs-tooltip-left-bottom .arrow,:host.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"]}]}],t.ctorParameters=function(){return[{type:c.ElementRef},{type:c.Renderer2}]},t.propDecorators={placement:[{type:c.Input}],id:[{type:c.Input},{type:c.HostBinding,args:["id"]}],hidden:[{type:c.Input},{type:c.HostBinding,args:["hidden"]}],role:[{type:c.HostBinding,args:["attr.role"]}],myCssClass:[{type:c.HostBinding,args:["class"]}]},t}(),Q=k,tt=0,et=function(){function t(t,e,n,i,o,r,s){var a=this;this._elementRef=t,this._renderer=e,this._showEvent=new c.EventEmitter,this._shownEvent=new c.EventEmitter,this._insertedEvent=new c.EventEmitter,this._hideEvent=new c.EventEmitter,this._hiddenEvent=new c.EventEmitter,this._disableTooltip=!1,this._itTooltipWindowId="it-tooltip-"+tt++,this.placement=r.placement,this.container=r.container,this.disableTooltip=r.disableTooltip,this._popupService=new Z(J,n,o,e,i),this._zoneSubscription=s.onStable.subscribe(function(){a._windowRef&&a._windowRef.instance.applyPlacement(Y(a._elementRef.nativeElement,a._windowRef.location.nativeElement,a.placement,"body"===a.container))})}return Object.defineProperty(t.prototype,"itTooltip",{get:function(){return this._itTooltip},set:function(t){this._itTooltip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placement",{get:function(){return this._placement},set:function(t){this._placement=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showEvent",{get:function(){return this._showEvent},set:function(t){this._showEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shownEvent",{get:function(){return this._shownEvent},set:function(t){this._shownEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"insertedEvent",{get:function(){return this._insertedEvent},set:function(t){this._insertedEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideEvent",{get:function(){return this._hideEvent},set:function(t){this._hideEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hiddenEvent",{get:function(){return this._hiddenEvent},set:function(t){this._hiddenEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableTooltip",{get:function(){return this._disableTooltip},set:function(t){this._disableTooltip=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype._isDisabled=function(){return!!this.disableTooltip||!this.itTooltip},t.prototype.show=function(t){if(!this._isDisabled()){var e;if(this.showEvent.emit(this),this._windowRef)(e=this._windowRef.instance).hidden=!1;else this._windowRef=this._popupService.open(this.itTooltip,t),(e=this._windowRef.instance).id=this._itTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._itTooltipWindowId),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),e.applyPlacement(Y(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)),this.insertedEvent.emit(this);this.shownEvent.emit(this)}},t.prototype.hide=function(){(this.hideEvent.emit(this),this._windowRef)&&(this._windowRef.instance.hidden=!0,this.hiddenEvent.emit(this))},t.prototype.toggle=function(){this._windowRef?this._windowRef.instance.hidden?this.show():this.hide():this.show()},t.prototype.dispose=function(){!!this._windowRef&&!this._windowRef.instance.hidden&&this.hide(),this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null)},t.prototype.enable=function(){this._isDisabled()&&(this.disableTooltip=!1)},t.prototype.disable=function(){this._isDisabled()||(this.disableTooltip=!0)},t.prototype.toggleEnabled=function(){this._isDisabled()?this.enable():this.disable()},t.prototype.ngOnInit=function(){this._unregisterListenersFn=q(this._renderer,this._elementRef.nativeElement,Q,this.show.bind(this),this.hide.bind(this),this.toggle.bind(this))},t.prototype.ngOnChanges=function(t){if((t.itTooltip||t.disableTooltip)&&this._isDisabled())this.hide();else if(t.placement)this._windowRef&&this._windowRef.instance.applyPlacement(Y(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container));else if(t.container){var e=!!this._windowRef&&!this._windowRef.instance.hidden;this.dispose(),e&&this.show()}},t.prototype.ngOnDestroy=function(){this.dispose(),this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t.prototype.handleFocus=function(){this.show()},t.prototype.handleBlur=function(){this.hide()},t.decorators=[{type:c.Directive,args:[{selector:"[it-tooltip]",exportAs:"it-tooltip"}]}],t.ctorParameters=function(){return[{type:c.ElementRef},{type:c.Renderer2},{type:c.Injector},{type:c.ComponentFactoryResolver},{type:c.ViewContainerRef},{type:K},{type:c.NgZone}]},t.propDecorators={itTooltip:[{type:c.Input,args:["it-tooltip"]}],placement:[{type:c.Input}],container:[{type:c.Input}],showEvent:[{type:c.Output,args:["show"]}],shownEvent:[{type:c.Output,args:["shown"]}],insertedEvent:[{type:c.Output,args:["inserted"]}],hideEvent:[{type:c.Output,args:["hide"]}],hiddenEvent:[{type:c.Output,args:["hidden"]}],disableTooltip:[{type:c.Input,args:["disabled"]}],handleFocus:[{type:c.HostListener,args:["focus"]}],handleBlur:[{type:c.HostListener,args:["blur"]}]},t}(),nt=e.keyof({lg:null,sm:null,xs:null}),it=0,ot=function(){function t(){this.id="button-"+it++,this._disabled=!1,this._outline=!1,this._block=!1}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outline",{get:function(){return this._outline},set:function(t){this._outline=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"block",{get:function(){return this._block},set:function(t){this._block=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){r.is(t)?this._color=t:this._color=undefined},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){nt.is(t)?this._size=t:this._size=undefined},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttonClass",{get:function(){var t="btn";return this.color&&(this.outline?t+=" btn-outline-"+this.color:t+=" btn-"+this.color),this.size&&(t+=" btn-"+this.size),this.block&&(t+=" btn-block"),this.disabled&&(t+=" disabled"),t},enumerable:!0,configurable:!0}),t.decorators=[{type:c.Component,args:[{selector:"it-button",template:'<button type="button" [id]="id" [class]="buttonClass" [disabled]="disabled" [attr.aria-disabled]="disabled">\n <ng-content></ng-content>\n</button>\n',styles:[""]}]}],t.propDecorators={disabled:[{type:c.Input}],outline:[{type:c.Input}],block:[{type:c.Input}],color:[{type:c.Input}],size:[{type:c.Input}]},t}(),rt=function(){function t(t){this.el=t,this._badgeColor=a,this._badgeText="",this._isPill=!1}return Object.defineProperty(t.prototype,"badgeColor",{get:function(){return this._badgeColor},set:function(t){r.is(t)?this._badgeColor=t:this._badgeColor=a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"badgeText",{get:function(){return this._badgeText},set:function(t){this._badgeText=t||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPill",{get:function(){return this._isPill},set:function(t){this._isPill=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.getBadgeColorClassName=function(){return"badge-"+this._badgeColor},Object.defineProperty(t.prototype,"hostClasses",{get:function(){return["badge",this.getBadgeColorClassName(),this.isPill?"badge-pill":""].join(" ")},enumerable:!0,configurable:!0}),t.decorators=[{type:c.Directive,args:[{selector:"[it-badge]",exportAs:"itBadge"}]}],t.ctorParameters=function(){return[{type:c.ElementRef}]},t.propDecorators={badgeColor:[{type:c.Input}],badgeText:[{type:c.Input,args:["it-badge"]},{type:c.HostBinding,args:["innerText"]}],isPill:[{type:c.Input}],hostClasses:[{type:c.HostBinding,args:["class"]}]},t}(),st=function(){function t(){this._isDisposed=!1,this._isShown=!1,this._showEvent=new c.EventEmitter,this._shownEvent=new c.EventEmitter,this._hideEvent=new c.EventEmitter,this._hiddenEvent=new c.EventEmitter}return Object.defineProperty(t.prototype,"itCollapse",{get:function(){return this._isShown},set:function(t){this._isShown=null!=t&&""+t=="true"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showEvent",{get:function(){return this._showEvent},set:function(t){this._showEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shownEvent",{get:function(){return this._shownEvent},set:function(t){this._shownEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideEvent",{get:function(){return this._hideEvent},set:function(t){this._hideEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hiddenEvent",{get:function(){return this._hiddenEvent},set:function(t){this._hiddenEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClass",{get:function(){var t="collapse";return this.isShown()&&(t+=" show"),t},enumerable:!0,configurable:!0}),t.prototype.show=function(){this.showEvent.emit(this),this._isShown=!0,this.shownEvent.emit(this)},t.prototype.hide=function(){this.hideEvent.emit(this),this._isDisposed||(this._isShown=!1,this.hiddenEvent.emit(this))},t.prototype.toggle=function(){this.isShown()?this.hide():this.show()},t.prototype.dispose=function(){this._isDisposed=!0},t.prototype.isShown=function(){return this._isShown},t.decorators=[{type:c.Directive,args:[{selector:"[it-collapse]",exportAs:"it-collapse"}]}],t.propDecorators={itCollapse:[{type:c.Input,args:["it-collapse"]}],showEvent:[{type:c.Output,args:["show"]}],shownEvent:[{type:c.Output,args:["shown"]}],hideEvent:[{type:c.Output,args:["hide"]}],hiddenEvent:[{type:c.Output,args:["hidden"]}],cssClass:[{type:c.HostBinding,args:["class"]}]},t}(),at=0,ct=function(){function t(t){this.elementRef=t,this.id="collapse-item-"+at++,this.headingId=this.id+"-heading",this._showEvent=new c.EventEmitter,this._shownEvent=new c.EventEmitter,this._hideEvent=new c.EventEmitter,this._hiddenEvent=new c.EventEmitter}return Object.defineProperty(t.prototype,"header",{get:function(){return this._header},set:function(t){this._header=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showEvent",{get:function(){return this._showEvent},set:function(t){this._showEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shownEvent",{get:function(){return this._shownEvent},set:function(t){this._shownEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideEvent",{get:function(){return this._hideEvent},set:function(t){this._hideEvent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hiddenEvent",{get:function(){return this._hiddenEvent},set:function(t){this._hiddenEvent=t},enumerable:!0,configurable:!0}),t.prototype.show=function(){this.showEvent.emit(this)},t.prototype.hide=function(){this.hideEvent.emit(this)},t.prototype.shown=function(){this.shownEvent.emit(this)},t.prototype.hidden=function(){this.hiddenEvent.emit(this)},t.decorators=[{type:c.Component,args:[{selector:"it-collapse-item",template:'<div class="collapse-header" [id]="headingId">\n <button #toggleButton data-toggle="collapse" [attr.aria-expanded]="collapse.isShown()" [attr.aria-controls]="id" (click)="collapse.toggle()" [ngClass]="{\'collapsed\' : collapse.isShown()}">\n {{header}}\n </button>\n</div>\n<div [id]="id" #collapse="it-collapse" it-collapse \n (show)="show()" (hide)="hide()" (shown)="shown()" (hidden)="hidden()" role="tabpanel" [attr.aria-labelledby]="headingId">\n <div class="collapse-body">\n <ng-content></ng-content>\n </div>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[{type:c.ElementRef}]},t.propDecorators={directive:[{type:c.ViewChild,args:[st]}],header:[{type:c.Input}],showEvent:[{type:c.Output,args:["show"]}],shownEvent:[{type:c.Output,args:["shown"]}],hideEvent:[{type:c.Output,args:["hide"]}],hiddenEvent:[{type:c.Output,args:["hidden"]}]},t}(),lt=0,ht=function(){function t(){this.id="collapse-group-"+lt++,this._accordion=!1}return Object.defineProperty(t.prototype,"accordion",{get:function(){return this._accordion},set:function(t){this._accordion=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.onClick=function(e){this.accordion&&this._items.toArray().forEach(function(t){t.elementRef.nativeElement.contains(e)||t.directive.isShown()&&t.directive.hide()})},t.prototype.ngOnChanges=function(t){t.accordion&&(t.accordion.currentValue&&this._items.toArray().forEach(function(t){t.directive.isShown()&&t.directive.hide()}))},t.decorators=[{type:c.Component,args:[{selector:"it-collapse-group",template:'<div [id]="id" class="collapse-div" role="tablist">\n <ng-content></ng-content>\n</div>',styles:[""]}]}],t.propDecorators={accordion:[{type:c.Input}],_items:[{type:c.ContentChildren,args:[c.forwardRef(function(){return ct}),{descendants:!0}]}],onClick:[{type:c.HostListener,args:["click",["$event.target"]]}]},t}(),pt=e.keyof({text:null,email:null,password:null,number:null,search:null}),ut="text",dt="password",ft="number",gt="search",bt=0,mt=function Ut(t,e){this.source=t,this.value=e},yt=function(){function t(t){this._changeDetector=t,this._id="form-input-"+bt++,this._type=ut,this._disabled=!1,this._readonly=!1,this.change=new c.EventEmitter,this._isLabelActive=!1,this._isPasswordMode=!1,this._isPasswordVisible=!1,this._showAutocompletion=!1,this._isInitialized=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){}}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){pt.is(t)?(t===ft&&isNaN(Number(this.value))&&(this.value="",this.onChange()),this._type=t):this._type=ut,this._isPasswordMode=this._type===dt,this._isPasswordVisible=!1,this._showAutocompletion=!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(t){this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"note",{get:function(){return this._note},set:function(t){this._note=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.label&&0<this.label.length?"":this._placeholder||""},set:function(t){this._placeholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){this._icon=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._inputElement.nativeElement.value},set:function(t){this._inputElement.nativeElement.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoCompleteData",{get:function(){return this._autoCompleteData},set:function(t){this._autoCompleteData=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLabelActive",{get:function(){return this._isLabelActive},set:function(t){this._isLabelActive=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPasswordMode",{get:function(){return this._isPasswordMode},set:function(t){this._isPasswordMode=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPasswordVisible",{get:function(){return this._isPasswordVisible},set:function(t){this._isPasswordVisible=j.coerceBooleanProperty(t),this._type=this._isPasswordVisible?ut:dt},enumerable:!0,configurable:!0}),t.prototype._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new mt(this,this.value))},t.prototype.writeValue=function(t){this.value=t,this.value&&(this._isLabelActive=!0),this.onChange(),this._isInitialized&&this._changeDetector.detectChanges()},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.ngAfterContentInit=function(){this._isInitialized=!0},t.prototype.onChange=function(){this._emitChangeEvent(),this._controlValueAccessorChangeFn(this.value)},t.prototype.onInput=function(){this._type===gt&&this.isAutocompletable()&&!this._showAutocompletion&&(this._showAutocompletion=!0),this._emitChangeEvent(),this._controlValueAccessorChangeFn(this.value)},t.prototype.onFocus=function(){this._isLabelActive=!0},t.prototype.onBlur=function(){0===this.value.length&&(this._isLabelActive=!1,this.type===ft&&(this.value=""))},t.prototype.noteId=function(){return this.id+"-note"},t.prototype.getRelatedEntries=function(){if(this.value&&this._showAutocompletion){var e=this.value.toLowerCase(),t=this._autoCompleteData.map(function(t){return{original:t,lowercase:t.toLowerCase()}}),n=[];return t.forEach(function(t){t.lowercase.includes(e)&&n.push(t.original)}),n}return[]},t.prototype.isAutocompletable=function(){return!(!this._autoCompleteData||this._type!==gt)&&0<this._autoCompleteData.length},t.prototype.onEntryClick=function(t){this.value=t,this._showAutocompletion=!1,this.onChange()},t.decorators=[{type:c.Component,args:[{selector:"it-input",template:'<div class="form-group">\n <i *ngIf="icon" [class]="icon" [ngClass]="{ \'ico-prefix\': true }"></i>\n <input #inputElement\n (focus)="onFocus()"\n (blur)="onBlur()"\n (change)="onChange()"\n (input)="onInput()"\n [type]="type"\n [id]="id"\n [attr.name]="name"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [ngClass]="{\n \'form-control\' : !readonly,\n \'form-control-plaintext\' : readonly,\n \'autocomplete\' : isAutocompletable()\n }"\n [attr.aria-labelledby]="note ? noteId : undefined"/>\n <span class="btn-eye" \n *ngIf="isPasswordMode"\n (click)="isPasswordVisible = !isPasswordVisible"\n [ngClass]="{\n \'eye-on\' : !isPasswordVisible,\n \'eye-off\' : isPasswordVisible\n }">\n </span>\n <ul class="autocomplete-wrap" *ngIf="isAutocompletable()">\n <li *ngFor="let entry of getRelatedEntries()" (click)="onEntryClick(entry)">\n {{entry}}\n </li>\n </ul>\n <label [attr.for]="id" [ngClass]="{ \'active\' : isLabelActive }">\n {{label}}\n </label>\n <small [id]="noteId()" class="form-text text-muted" *ngIf="note">\n {{note}}\n </small>\n</div>\n',styles:["label{pointer-events:none}"],changeDetection:c.ChangeDetectionStrategy.OnPush,providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef}]},t.propDecorators={_inputElement:[{type:c.ViewChild,args:["inputElement"]}],id:[{type:c.Input}],name:[{type:c.Input}],type:[{type:c.Input}],label:[{type:c.Input}],note:[{type:c.Input}],placeholder:[{type:c.Input}],icon:[{type:c.Input}],disabled:[{type:c.Input}],readonly:[{type:c.Input}],autoCompleteData:[{type:c.Input}],change:[{type:c.Output}]},t}(),_t=0,vt="dropdown",wt="x-placement",Et=function(){function t(t){this._eleRef=t,this.id="dropdown-"+_t++,this._isOpen=!1,this._dark=!1,this._fullWidth=!1,this._color=vt,this._label="",this._onOpen=new c.EventEmitter,this._onClose=new c.EventEmitter,this._onToggle=new c.EventEmitter}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dark",{get:function(){return this._dark},set:function(t){this._dark=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullWidth",{get:function(){return this._fullWidth},set:function(t){this._fullWidth=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){r.is(t)?this._color=t:this._color=vt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(t){this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onOpen",{get:function(){return this._onOpen},set:function(t){this._onOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onClose",{get:function(){return this._onClose},set:function(t){this._onClose=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onToggle",{get:function(){return this._onToggle},set:function(t){this._onToggle=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(t){t===this._dropdownButton.nativeElement?this._toggle():this.isOpen&&this._close()},t.prototype.onFocus=function(t){!this._eleRef.nativeElement.contains(t)&&this.isOpen&&this._close()},Object.defineProperty(t.prototype,"dropdownButtonClass",{get:function(){return"btn btn-"+this.color+" dropdown-toggle"},enumerable:!0,configurable:!0}),t.prototype._toggle=function(){this._isOpen?this._close():this._open(),this.onToggle.emit(this)},t.prototype._open=function(){this._isOpen||(this._isOpen=!0,this._dropdownMenu.nativeElement.setAttribute(wt,"bottom-start"),this.onOpen.emit(this))},t.prototype._close=function(){this._isOpen&&(this._isOpen=!1,this._dropdownMenu.nativeElement.removeAttribute(wt),this.onClose.emit(this))},t.decorators=[{type:c.Component,args:[{selector:"it-dropdown",template:'<div class="dropdown" [class.show]="isOpen" [id]="id">\n <button #dropdownButton [class]="dropdownButtonClass" \n type="button" id="dropdownMenuButton"\n aria-haspopup="true" [attr.aria-expanded]="isOpen">\n {{label}}\n </button>\n <div #dropdownMenu class="dropdown-menu" aria-labelledby="dropdownMenuButton"\n [class.dark]="dark" [class.full-width]="fullWidth" [class.show]="isOpen">\n <div class="link-list-wrapper">\n <ul class="link-list">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n</div>\n',styles:[""],changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ElementRef}]},t.propDecorators={_dropdownMenu:[{type:c.ViewChild,args:["dropdownMenu"]}],_dropdownButton:[{type:c.ViewChild,args:["dropdownButton"]}],dark:[{type:c.Input}],fullWidth:[{type:c.Input}],color:[{type:c.Input}],label:[{type:c.Input}],onOpen:[{type:c.Output}],onClose:[{type:c.Output}],onToggle:[{type:c.Output}],onClick:[{type:c.HostListener,args:["document:click",["$event.target"]]}],onFocus:[{type:c.HostListener,args:["document:focusin",["$event.target"]]}]},t}(),Ct=e.keyof({right:null,left:null}),Pt="right",Rt=0,Ot=function(){function t(){this.id="dropdown-item-"+Rt++,this._link="",this._active=!1,this._disabled=!1,this._large=!1,this._icon=undefined,this._iconPosition=Pt}return Object.defineProperty(t.prototype,"link",{get:function(){return this.disabled?"":this._link},set:function(t){this._link=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(t){this._active=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"large",{get:function(){return this._large},set:function(t){this._large=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){this._icon=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconPosition",{get:function(){return this._iconPosition},set:function(t){Ct.is(t)?this._iconPosition=t:this._iconPosition=Pt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dropdownItemClass",{get:function(){return"list-item "+this.iconPosition+"-icon"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{get:function(){return this.icon+" "+this.iconPosition},enumerable:!0,configurable:!0}),t.decorators=[{type:c.Component,args:[{selector:"it-dropdown-item",template:'<li [id]="id">\n <a [attr.href]="link"\n [attr.tabindex]="this.disabled ? -1 : 0"\n [class]="dropdownItemClass"\n [ngClass]="{\n \'large\' : large, \n \'active\' : active,\n \'disabled\' : disabled,\n \'disabled-item-link\' : disabled\n }">\n <i [class]="iconClass" aria-hidden="true" *ngIf="icon && iconPosition === \'left\'"></i>\n <span>\n <ng-content></ng-content>\n </span>\n <i [class]="iconClass" aria-hidden="true" *ngIf="icon && iconPosition === \'right\'"></i>\n </a>\n</li>',styles:[".disabled-item-link{pointer-events:none}"]}]}],t.propDecorators={link:[{type:c.Input}],active:[{type:c.Input}],disabled:[{type:c.Input}],large:[{type:c.Input}],icon:[{type:c.Input}],iconPosition:[{type:c.Input}]},t}(),kt=0,It=function(){function t(){this.id="dropdown-header-"+kt++}return t.decorators=[{type:c.Component,args:[{selector:"it-dropdown-header",template:'<li [id]="id">\n <h3>\n <ng-content></ng-content>\n </h3>\n</li>',styles:[""]}]}],t}(),St=function(){function t(){}return t.decorators=[{type:c.Component,args:[{selector:"it-dropdown-divider",template:'<li>\n <span class="divider"></span>\n</li>',styles:[""]}]}],t}(),Dt=0,jt=function(){function t(t,e){this._cdRef=t,this._elemRef=e,this.id="it-breadcrumb-item-"+Dt++,this._isLast=!1}return Object.defineProperty(t.prototype,"link",{get:function(){return this._link},set:function(t){this._link=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){this._icon=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"separator",{get:function(){return this._separator},set:function(t){this._separator=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLast",{get:function(){return this._isLast},set:function(t){this._isLast=t;var e=this._elemRef.nativeElement.querySelector(".breadcrumb-item");this._isLast?e.setAttribute("aria-current","page"):e.hasAttribute("aria-current")&&e.removeAttribute("aria-current"),this._cdRef.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"breadcrumbClass",{get:function(){return"breadcrumb-item"+(this.isLast?" active":"")},enumerable:!0,configurable:!0}),t.decorators=[{type:c.Component,args:[{selector:"it-breadcrumb-item",template:'<li [class]="breadcrumbClass" [id]="id">\n <i [class]="icon" *ngIf="icon"></i>\n <a [href]="link">\n <ng-content></ng-content>\n </a> <span class="separator" *ngIf="!isLast">{{separator}}</span>\n</li>\n',styles:[""],changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef},{type:c.ElementRef}]},t.propDecorators={link:[{type:c.Input}],icon:[{type:c.Input}]},t}(),Tt=0,xt=function(){function t(){this.id="it-breadcrumb-"+Tt++,this._dark=!1,this._separator="/",this._subscription=i.Subscription.EMPTY}return Object.defineProperty(t.prototype,"dark",{get:function(){return this._dark},set:function(t){this._dark=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"separator",{get:function(){return this._separator},set:function(t){this._separator=t||"/"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"breadcrumbClass",{get:function(){return"breadcrumb"+(this._dark?" dark":"")},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._reloadBreadcrumbs(this._items)},t.prototype.ngOnChanges=function(t){t.separator&&(t.separator.firstChange||this._reloadBreadcrumbs(this._items))},t.prototype.ngOnDestroy=function(){this._subscription&&this._subscription.unsubscribe()},t.prototype._reloadBreadcrumbs=function(e){var n=this;e.forEach(function(t){t.separator=n.separator,t.isLast=t===e.last}),this._subscribeToChanges()},t.prototype._subscribeToChanges=function(){var e=this;this._subscription&&this._subscription.unsubscribe(),this._subscription=this._items.changes.subscribe(function(t){e._reloadBreadcrumbs(t)})},t.decorators=[{type:c.Component,args:[{selector:"it-breadcrumb",template:'<nav class="breadcrumb-container" aria-label="breadcrumb" [id]="id">\n <ol [ngClass]="breadcrumbClass">\n <ng-content></ng-content>\n </ol>\n</nav>',styles:[""],changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.propDecorators={dark:[{type:c.Input}],separator:[{type:c.Input}],_items:[{type:c.ContentChildren,args:[c.forwardRef(function(){return jt}),{descendants:!0}]}]},t}(),At=function(){function t(){this.label="",this._disabled=!1,this.icon=null,this._labelChange=new i.Subject,this._disableChange=new i.Subject,this.position=null,this.isActive=!1}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._disableChange.complete(),this._labelChange.complete()},t.prototype.ngOnChanges=function(t){(t.hasOwnProperty("label")||t.hasOwnProperty("ariaLabel")||t.hasOwnProperty("ariaLabelledby"))&&this._labelChange.next(),t.hasOwnProperty("disabled")&&this._disableChange.next()},t.decorators=[{type:c.Component,args:[{selector:"it-tab",exportAs:"itTab",template:"<ng-template><ng-content></ng-content></ng-template>\n",styles:[""],changeDetection:c.ChangeDetectionStrategy.OnPush,encapsulation:c.ViewEncapsulation.None}]}],t.propDecorators={label:[{type:c.Input}],ariaLabel:[{type:c.Input,args:["aria-label"]}],ariaLabelledby:[{type:c.Input,args:["aria-labelledby"]}],disabled:[{type:c.Input}],icon:[{type:c.Input}],_implicitContent:[{type:c.ViewChild,args:[c.TemplateRef]}]},t}(),Bt=0,Ft=function zt(){},Lt=function(){function t(t){this._changeDetectorRef=t,this._indexToSelect=0,this._tabsSubscription=i.Subscription.EMPTY,this._tabLabelSubscription=i.Subscription.EMPTY,this._isPill=!1,this._selectedIndex=null,this._dark=!1,this.selectedIndexChange=new c.EventEmitter,this.selectedTabChange=new c.EventEmitter(!0),this._groupId=Bt++}return Object.defineProperty(t.prototype,"pill",{get:function(){return this._isPill},set:function(t){this._isPill=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=j.coerceNumberProperty(t,null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dark",{get:function(){return this._dark},set:function(t){this._dark=j.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentChecked=function(){this.changeTab(this._indexToSelect)},t.prototype.changeTab=function(t){var e=this,n=this._indexToSelect=this._clampTabIndex(t);if(!(this._tabs&&0<this._tabs.length&&this._tabs.toArray()[n].disabled)){if(this._selectedIndex!==n&&null!=this._selectedIndex){var i=this._createChangeEvent(n);this.selectedTabChange.emit(i),Promise.resolve().then(function(){return e.selectedIndexChange.emit(n)})}this._tabs.forEach(function(t,e){t.position=e-n,t.isActive=e===n}),this._selectedIndex!==n&&(this._selectedIndex=n,this._changeDetectorRef.markForCheck())}},t.prototype.ngAfterContentInit=function(){var n=this;this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(n._clampTabIndex(n._indexToSelect)===n._selectedIndex)for(var t=n._tabs.toArray(),e=0;e<t.length;e++)if(t[e].isActive){n._indexToSelect=n._selectedIndex=e;break}n._subscribeToTabLabels(),n._changeDetectorRef.markForCheck()})},t.prototype.ngOnDestroy=function(){this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()},t.prototype._createChangeEvent=function(t){var e=new Ft;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e},t.prototype._subscribeToTabLabels=function(){var t=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=i.merge.apply(void 0,function n(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_(arguments[e]));return t}(this._tabs.map(function(t){return t._disableChange}),this._tabs.map(function(t){return t._labelChange}))).subscribe(function(){t._changeDetectorRef.markForCheck()})},t.prototype._clampTabIndex=function(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))},t.prototype._getTabLabelId=function(t){return"it-tab-label-"+this._groupId+"-"+t},t.prototype._getTabContentId=function(t){return"it-tab-content-"+this._groupId+"-"+t},t.prototype._getTabIndex=function(t,e){return t.disabled?null:this.selectedIndex===e?0:-1},t.prototype._handleClick=function(t,e){t.preventDefault(),this.changeTab(e)},t.decorators=[{type:c.Component,args:[{selector:"it-tab-group",exportAs:"itTabGroup",template:'<ul class="nav" [ngClass]="{\'nav-dark\': dark, \'nav-tabs\': !pill, \'nav-pills mb-3\': pill}" role="tablist">\n\n <li class="nav-item" *ngFor="let tab of _tabs; let i = index">\n <a\n href="#"\n role="tab"\n [attr.aria-controls]="_getTabContentId(i)"\n [attr.aria-selected]="selectedIndex == i"\n [attr.aria-label]="tab.ariaLabel || null"\n [attr.aria-labelledby]="(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null"\n [ngClass]="{ \'nav-link\': true, \'active\': selectedIndex == i, \'disabled\': tab.disabled }"\n [id]="_getTabLabelId(i)"\n (click)="_handleClick($event, i)">\n <i *ngIf="tab.icon" class="it-ico-lg d-block text-center" [ngClass]="tab.icon"></i>\n {{tab.label}}\n </a>\n </li>\n</ul>\n<div class="tab-content">\n <ng-container *ngFor="let tab of _tabs; let i = index">\n <div\n [ngClass]="{ \'tab-pane p-3\': true, \'show active\': selectedIndex == i }"\n [id]="_getTabContentId(i)"\n role="tabpanel"\n [attr.aria-labelledby]="_getTabLabelId(i)">\n <ng-container *ngTemplateOutlet="tab._implicitContent"></ng-container>\n </div>\n </ng-container>\n</div>\n',styles:[""],encapsulation:c.ViewEncapsulation.None,changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef}]},t.propDecorators={_tabs:[{type:c.ContentChildren,args:[At]}],pill:[{type:c.Input}],selectedIndex:[{type:c.Input}],dark:[{type:c.Input}],selectedIndexChange:[{type:c.Output}],selectedTabChange:[{type:c.Output}]},t}(),Mt=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[o.CommonModule,n.FormsModule],declarations:[d,F,H,N,rt,Lt,At,h,ot,et,J,st,ct,ht,yt,x,D,Et,Ot,It,St,xt,jt],exports:[d,F,H,N,rt,Lt,At,h,ot,et,st,ct,ht,yt,x,Et,Ot,It,St,xt,jt],entryComponents:[J,D]}]}],t}();t.ProgressBarComponent=h,t.CheckboxChange=u,t.CheckboxComponent=d,t.PopoverDirective=x,t.PopoverConfig=S,t.ToggleChange=B,t.ToggleComponent=F,t.RadioChange=G,t.RadioGroupDirective=H,t.RadioButtonComponent=N,t.TooltipDirective=et,t.TooltipConfig=K,t.ButtonComponent=ot,t.BadgeDirective=rt,t.CollapseDirective=st,t.CollapseItemComponent=ct,t.CollapseGroupComponent=ht,t.FormInputChange=mt,t.FormInputComponent=yt,t.DropdownComponent=Et,t.DropdownItemComponent=Ot,t.DropdownHeaderComponent=It,t.DropdownDividerComponent=St,t.BreadcrumbComponent=xt,t.BreadcrumbItemComponent=jt,t.TabChangeEvent=Ft,t.TabGroupComponent=Lt,t.DesignAngularKitModule=Mt,t.ɵd=D,t.ɵa=L,t.ɵb=At,t.ɵc=J,Object.defineProperty(t,"__esModule",{value:!0})});
31
- //# sourceMappingURL=design-angular-kit.umd.min.js.map