UNPKG

carbon-components-angular

Version:
815 lines (694 loc) 27 kB
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>carbon-components-angular documentation</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="../images/favicon.ico"> <link rel="stylesheet" href="../styles/style.css"> <link rel="stylesheet" href="../styles/dark.css"> <style> footer.carbon { position: absolute; bottom: 0; width: 100%; z-index: 9999; } #root > div { /* * Subtracting the height of the footer to prevent * overlaying the footer ontop of content */ height: calc(100vh - 48px); } </style> </head> <body> <script> // Blocking script to avoid flickering dark mode // Dark mode toggle button var useDark = window.matchMedia('(prefers-color-scheme: dark)'); var darkModeState = useDark.matches; var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input'); var $darkModeToggles = document.querySelectorAll('.dark-mode-switch'); var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state'); function checkToggle(check) { for (var i = 0; i < $darkModeToggleSwitchers.length; i++) { $darkModeToggleSwitchers[i].checked = check; } } function toggleDarkMode(state) { if (window.localStorage) { localStorage.setItem('compodoc_darkmode-state', state); } checkToggle(state); const hasClass = document.body.classList.contains('dark'); if (state) { for (var i = 0; i < $darkModeToggles.length; i++) { $darkModeToggles[i].classList.add('dark'); } if (!hasClass) { document.body.classList.add('dark'); } } else { for (var i = 0; i < $darkModeToggles.length; i++) { $darkModeToggles[i].classList.remove('dark'); } if (hasClass) { document.body.classList.remove('dark'); } } } useDark.addEventListener('change', function (evt) { toggleDarkMode(evt.matches); }); if (darkModeStateLocal) { darkModeState = darkModeStateLocal === 'true'; } toggleDarkMode(darkModeState); </script> <div class="navbar navbar-default navbar-fixed-top d-md-none p-0"> <div class="d-flex"> <a href="../" class="navbar-brand">carbon-components-angular documentation</a> <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button> </div> </div> <div class="xs-menu menu" id="mobile-menu"> <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu> </div> <div class="container-fluid main"> <div class="row main"> <div class="d-none d-md-block menu"> <compodoc-menu mode="normal"></compodoc-menu> </div> <!-- START CONTENT --> <div class="content class"> <div class="content-data"> <ol class="breadcrumb"> <li class="breadcrumb-item">Classes</li> <li class="breadcrumb-item" >NumberChange</li> </ol> <ul class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a href="#info" class="nav-link" class="nav-link active" role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a> </li> <li class="nav-item"> <a href="#source" class="nav-link" role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a> </li> </ul> <div class="tab-content"> <div class="tab-pane fade active in" id="info"> <p class="comment"> <h3>File</h3> </p> <p class="comment"> <code>src/number-input/number.component.ts</code> </p> <p class="comment"> <h3>Description</h3> </p> <p class="comment"> <p>Used to emit changes performed on number input components.</p> </p> <section data-compodoc="block-index"> <h3 id="index">Index</h3> <table class="table table-sm table-bordered index-table"> <tbody> <tr> <td class="col-md-4"> <h6><b>Properties</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#source" >source</a> </li> <li> <a href="#value" >value</a> </li> </ul> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-properties"> <h3 id="inputs"> Properties </h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="source"></a> <span class="name"> <span ><b>source</b></span> <a href="#source"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="../components/NumberComponent.html" target="_self" >NumberComponent</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/number-input/number.component.ts:22</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Contains the <code>Number</code> that has been changed.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="value"></a> <span class="name"> <span ><b>value</b></span> <a href="#value"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/number-input/number.component.ts:26</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>The value of the <code>Number</code> field encompassed in the <code>NumberChange</code> class.</p> </div> </td> </tr> </tbody> </table> </section> </div> <div class="tab-pane fade tab-source-code" id="source"> <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, Input, HostBinding, EventEmitter, Output, TemplateRef, HostListener } from &quot;@angular/core&quot;; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from &quot;@angular/forms&quot;; import { I18n, Overridable } from &quot;carbon-components-angular/i18n&quot;; import { Observable } from &quot;rxjs&quot;; /** * Used to emit changes performed on number input components. */ export class NumberChange { /** * Contains the &#x60;Number&#x60; that has been changed. */ source: NumberComponent; /** * The value of the &#x60;Number&#x60; field encompassed in the &#x60;NumberChange&#x60; class. */ value: number; } /** * Get started with importing the module: * * &#x60;&#x60;&#x60;typescript * import { NumberModule } from &#x27;carbon-components-angular&#x27;; * &#x60;&#x60;&#x60; * * [See demo](../../?path&#x3D;/story/components-number--basic) */ @Component({ selector: &quot;cds-number, ibm-number&quot;, template: &#x60; &lt;label *ngIf&#x3D;&quot;skeleton &amp;&amp; label&quot; class&#x3D;&quot;cds--label cds--skeleton&quot;&gt;&lt;/label&gt; &lt;div data-numberinput [attr.data-invalid]&#x3D;&quot;(invalid ? true : null)&quot; class&#x3D;&quot;cds--number&quot; [ngClass]&#x3D;&quot;{ &#x27;cds--number--light&#x27;: theme &#x3D;&#x3D;&#x3D; &#x27;light&#x27;, &#x27;cds--number--nolabel&#x27;: !label, &#x27;cds--number--helpertext&#x27;: helperText, &#x27;cds--skeleton&#x27; : skeleton, &#x27;cds--number--sm&#x27;: size &#x3D;&#x3D;&#x3D; &#x27;sm&#x27;, &#x27;cds--number--md&#x27;: size &#x3D;&#x3D;&#x3D; &#x27;md&#x27;, &#x27;cds--number--lg&#x27;: size &#x3D;&#x3D;&#x3D; &#x27;lg&#x27; }&quot;&gt; &lt;label *ngIf&#x3D;&quot;!skeleton &amp;&amp; label&quot; [for]&#x3D;&quot;id&quot; class&#x3D;&quot;cds--label&quot; [ngClass]&#x3D;&quot;{&#x27;cds--label--disabled&#x27;: disabled}&quot;&gt; &lt;ng-container *ngIf&#x3D;&quot;!isTemplate(label)&quot;&gt;{{label}}&lt;/ng-container&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(label)&quot; [ngTemplateOutlet]&#x3D;&quot;label&quot;&gt;&lt;/ng-template&gt; &lt;/label&gt; &lt;div class&#x3D;&quot;cds--number__input-wrapper&quot; [ngClass]&#x3D;&quot;{ &#x27;cds--number__input-wrapper--warning&#x27;: warn }&quot;&gt; &lt;input type&#x3D;&quot;number&quot; [id]&#x3D;&quot;id&quot; [value]&#x3D;&quot;value&quot; [attr.min]&#x3D;&quot;min&quot; [attr.max]&#x3D;&quot;max&quot; [attr.step]&#x3D;&quot;step&quot; [disabled]&#x3D;&quot;disabled&quot; [readonly]&#x3D;&quot;readonly&quot; [required]&#x3D;&quot;required&quot; [attr.aria-label]&#x3D;&quot;ariaLabel&quot; [attr.data-invalid]&#x3D;&quot;invalid ? invalid : null&quot; [placeholder]&#x3D;&quot;placeholder&quot; (focus)&#x3D;&quot;fluid ? handleFocus($event): null&quot; (blur)&#x3D;&quot;fluid ? handleFocus($event): null&quot; (change)&#x3D;&quot;onNumberInputChange($event)&quot;/&gt; &lt;svg *ngIf&#x3D;&quot;!skeleton &amp;&amp; invalid&quot; cdsIcon&#x3D;&quot;warning--filled&quot; size&#x3D;&quot;16&quot; class&#x3D;&quot;cds--number__invalid&quot;&gt; &lt;/svg&gt; &lt;svg *ngIf&#x3D;&quot;!skeleton &amp;&amp; !invalid &amp;&amp; warn&quot; cdsIcon&#x3D;&quot;warning--alt--filled&quot; size&#x3D;&quot;16&quot; class&#x3D;&quot;cds--number__invalid cds--number__invalid--warning&quot;&gt; &lt;/svg&gt; &lt;div *ngIf&#x3D;&quot;!skeleton&quot; class&#x3D;&quot;cds--number__controls&quot;&gt; &lt;button class&#x3D;&quot;cds--number__control-btn down-icon&quot; type&#x3D;&quot;button&quot; [attr.disabled]&#x3D;&quot;disabled ? true : null&quot; aria-live&#x3D;&quot;polite&quot; aria-atomic&#x3D;&quot;true&quot; [attr.aria-label]&#x3D;&quot;getDecrementLabel() | async&quot; (click)&#x3D;&quot;onDecrement()&quot;&gt; &lt;svg cdsIcon&#x3D;&quot;subtract&quot; size&#x3D;&quot;16&quot;&gt;&lt;/svg&gt; &lt;/button&gt; &lt;div class&#x3D;&quot;cds--number__rule-divider&quot;&gt;&lt;/div&gt; &lt;button class&#x3D;&quot;cds--number__control-btn up-icon&quot; type&#x3D;&quot;button&quot; [attr.disabled]&#x3D;&quot;disabled ? true : null&quot; aria-live&#x3D;&quot;polite&quot; aria-atomic&#x3D;&quot;true&quot; [attr.aria-label]&#x3D;&quot;getIncrementLabel() | async&quot; (click)&#x3D;&quot;onIncrement()&quot;&gt; &lt;svg cdsIcon&#x3D;&quot;add&quot; size&#x3D;&quot;16&quot;&gt;&lt;/svg&gt; &lt;/button&gt; &lt;div class&#x3D;&quot;cds--number__rule-divider&quot;&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;hr *ngIf&#x3D;&quot;fluid&quot; class&#x3D;&quot;cds--number-input__divider&quot; /&gt; &lt;div *ngIf&#x3D;&quot;helperText &amp;&amp; !invalid &amp;&amp; !warn &amp;&amp; !fluid&quot; class&#x3D;&quot;cds--form__helper-text&quot; [ngClass]&#x3D;&quot;{ &#x27;cds--form__helper-text--disabled&#x27;: disabled }&quot;&gt; &lt;ng-container *ngIf&#x3D;&quot;!isTemplate(helperText)&quot;&gt;{{helperText}}&lt;/ng-container&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(helperText)&quot; [ngTemplateOutlet]&#x3D;&quot;helperText&quot;&gt;&lt;/ng-template&gt; &lt;/div&gt; &lt;div *ngIf&#x3D;&quot;invalid&quot; class&#x3D;&quot;cds--form-requirement&quot;&gt; &lt;ng-container *ngIf&#x3D;&quot;!isTemplate(invalidText)&quot;&gt;{{invalidText}}&lt;/ng-container&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(invalidText)&quot; [ngTemplateOutlet]&#x3D;&quot;invalidText&quot;&gt;&lt;/ng-template&gt; &lt;/div&gt; &lt;div *ngIf&#x3D;&quot;!invalid &amp;&amp; warn&quot; class&#x3D;&quot;cds--form-requirement&quot;&gt; &lt;ng-container *ngIf&#x3D;&quot;!isTemplate(warnText)&quot;&gt;{{warnText}}&lt;/ng-container&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(warnText)&quot; [ngTemplateOutlet]&#x3D;&quot;warnText&quot;&gt;&lt;/ng-template&gt; &lt;/div&gt; &lt;/div&gt; &#x60;, providers: [ { provide: NG_VALUE_ACCESSOR, useExisting: NumberComponent, multi: true } ] }) export class NumberComponent implements ControlValueAccessor { /** * Variable used for creating unique ids for number input components. */ static numberCount &#x3D; 0; @HostBinding(&quot;class.cds--form-item&quot;) containerClass &#x3D; true; /** * Set to &#x60;true&#x60; for readonly state. */ @Input() @HostBinding(&quot;class.cds--number--readonly&quot;) readonly &#x3D; false; /** * @deprecated since v5 - Use &#x60;cdsLayer&#x60; directive instead * &#x60;light&#x60; or &#x60;dark&#x60; number input theme. */ @Input() theme: &quot;light&quot; | &quot;dark&quot; &#x3D; &quot;dark&quot;; /** * Set to &#x60;true&#x60; for a disabled number input. */ @Input() disabled &#x3D; false; /** * Set to &#x60;true&#x60; for a loading number component. */ @Input() skeleton &#x3D; false; /** * Set to &#x60;true&#x60; for an invalid number component. */ @Input() invalid &#x3D; false; /** * The unique id for the number component. */ @Input() id &#x3D; &#x60;number-${NumberComponent.numberCount}&#x60;; /** * Sets the placeholder attribute on the &#x60;input&#x60; element. */ @Input() placeholder &#x3D; &quot;&quot;; /** * Number input field render size */ @Input() size: &quot;sm&quot; | &quot;md&quot; | &quot;lg&quot; &#x3D; &quot;md&quot;; /** * Reflects the required attribute of the &#x60;input&#x60; element. */ @Input() required: boolean; /** * Sets the value attribute on the &#x60;input&#x60; element. */ @Input() set value(v: any) { if (v &#x3D;&#x3D;&#x3D; &quot;&quot; || v &#x3D;&#x3D;&#x3D; null) { this._value &#x3D; null; return; } this._value &#x3D; Number(v); } get value() { return this._value; } /** * Sets the min attribute on the &#x60;input&#x60; element. */ @Input() min &#x3D; null; /** * Sets the max attribute on the &#x60;input&#x60; element. */ @Input() max &#x3D; null; /** * Sets the text inside the &#x60;label&#x60; tag. */ @Input() label: string | TemplateRef&lt;any&gt;; /** * Sets the optional helper text. */ @Input() helperText: string | TemplateRef&lt;any&gt;; /** * Sets the invalid text. */ @Input() invalidText: string | TemplateRef&lt;any&gt;; /** * Sets the amount the number controls increment and decrement by. */ @Input() step &#x3D; 1; /** * If &#x60;step&#x60; is a decimal, we may want precision to be set to go around floating point precision. */ @Input() precision: number; /** * Set to &#x60;true&#x60; to show a warning (contents set by warningText) */ @Input() warn &#x3D; false; /** * Sets the warning text */ @Input() warnText: string | TemplateRef&lt;any&gt;; /** * Sets the arialabel for input */ @Input() ariaLabel: string; /** * Emits event notifying other classes when a change in state occurs in the input. */ @Output() change &#x3D; new EventEmitter&lt;NumberChange&gt;(); @Input() set decrementLabel(value: string | Observable&lt;string&gt;) { this._decrementLabel.override(value); } get decrementLabel() { return this._decrementLabel.value; } @Input() set incrementLabel(value: string | Observable&lt;string&gt;) { this._incrementLabel.override(value); } get incrementLabel() { return this._incrementLabel.value; } /** * Experimental: enable fluid state */ @HostBinding(&quot;class.cds--number-input--fluid&quot;) @Input() fluid &#x3D; false; @HostBinding(&quot;class.cds--number-input--fluid--invalid&quot;) get fluidInvalid() { return this.fluid &amp;&amp; this.invalid; } @HostBinding(&quot;class.cds--number-input--fluid--disabled&quot;) get fluidDisabled() { return this.fluid &amp;&amp; this.disabled; } @HostBinding(&quot;class.cds--number-input--fluid--focus&quot;) get fluidFocus() { return this.fluid &amp;&amp; this._isFocused; } @HostBinding(&quot;class.cds--text-input--fluid__skeleton&quot;) get fluidSkeleton() { return this.fluid &amp;&amp; this.skeleton; } protected _isFocused &#x3D; false; protected _value &#x3D; 0; protected _decrementLabel: Overridable &#x3D; this.i18n.getOverridable(&quot;NUMBER.DECREMENT&quot;); protected _incrementLabel: Overridable &#x3D; this.i18n.getOverridable(&quot;NUMBER.INCREMENT&quot;); /** * Creates an instance of &#x60;Number&#x60;. */ constructor(protected i18n: I18n) { NumberComponent.numberCount++; } /** * This is the initial value set to the component * @param value The input value. */ public writeValue(value: any) { this.value &#x3D; value; } /** * Sets a method in order to propagate changes back to the form. */ public registerOnChange(fn: any) { this.propagateChange &#x3D; fn; } /** * Registers a callback to be triggered when the control has been touched. * @param fn Callback to be triggered when the number input is touched. */ public registerOnTouched(fn: any) { this.onTouched &#x3D; fn; } @HostListener(&quot;focusout&quot;) focusOut() { this.onTouched(); } /** * Sets the disabled state through the model */ setDisabledState(isDisabled: boolean) { this.disabled &#x3D; isDisabled; } /** * Called when number input is blurred. Needed to properly implement &#x60;ControlValueAccessor&#x60;. */ onTouched: () &#x3D;&gt; any &#x3D; () &#x3D;&gt; { }; /** * Method set in &#x60;registerOnChange&#x60; to propagate changes back to the form. */ propagateChange &#x3D; (_: any) &#x3D;&gt; { }; /** * Adds &#x60;step&#x60; to the current &#x60;value&#x60;. */ onIncrement(): void { // if max is set and value + step is greater than max, set value to max // example: max &#x3D; 100, step &#x3D; 10, value &#x3D; 95 , value + step &#x3D; 105, value will be set to 100 (max) instead of 105 if (this.max !&#x3D;&#x3D; null &amp;&amp; this.value + this.step &gt; this.max) { this.value &#x3D; this.max; this.emitChangeEvent(); return; } // if min is set and value + step is less than min, set value to min // example: min &#x3D; 5, step &#x3D; 2, value &#x3D; 0, value + step &#x3D; 2, value will be set to 5 (min) instead of 2 if (this.min !&#x3D;&#x3D; null &amp;&amp; this.value + this.step &lt; this.min) { this.value &#x3D; this.min; this.emitChangeEvent(); return; } // if max is not set or value + step is less than max, increment value by step if (this.max &#x3D;&#x3D;&#x3D; null || this.value + this.step &lt;&#x3D; this.max) { this.value +&#x3D; this.step; this.value &#x3D; parseFloat(this.value.toPrecision(this.precision)); this.emitChangeEvent(); } } /** * Subtracts &#x60;step&#x60; to the current &#x60;value&#x60;. */ onDecrement(): void { // if max is set and value - step is greater than max, set value to max // example: max &#x3D; 15, step &#x3D; 2, value &#x3D; 20, value - step &#x3D; 18, value will be set to 15 (max) instead of 18 if (this.max !&#x3D;&#x3D; null &amp;&amp; this.value - this.step &gt; this.max) { this.value &#x3D; this.max; this.emitChangeEvent(); return; } // if min is set and value - step is less than min, set value to min // example: min &#x3D; 5, step &#x3D; 2, value &#x3D; 6, value - step &#x3D; 4, value will be set to 5 (min) instead of 4 if (this.min !&#x3D;&#x3D; null &amp;&amp; this.value - this.step &lt; this.min) { this.value &#x3D; this.min; this.emitChangeEvent(); return; } // if min is not set or value - step is greater than min, decrement value by step if (this.min &#x3D;&#x3D;&#x3D; null || this.value - this.step &gt;&#x3D; this.min) { this.value -&#x3D; this.step; this.value &#x3D; parseFloat(this.value.toPrecision(this.precision)); this.emitChangeEvent(); } } getDecrementLabel(): Observable&lt;string&gt; { return this._decrementLabel.subject; } getIncrementLabel(): Observable&lt;string&gt; { return this._incrementLabel.subject; } /** * Creates a class of &#x60;NumberChange&#x60; to emit the change in the &#x60;Number&#x60;. */ emitChangeEvent(): void { let event &#x3D; new NumberChange(); event.source &#x3D; this; event.value &#x3D; this.value; this.change.emit(event); this.propagateChange(this.value); } onNumberInputChange(event) { this.value &#x3D; event.target.value; this.emitChangeEvent(); } public isTemplate(value) { return value instanceof TemplateRef; } handleFocus(event: FocusEvent) { if (&quot;type&quot; in event.target &amp;&amp; (&lt;HTMLInputElement&gt;event.target).type &#x3D;&#x3D;&#x3D; &quot;button&quot;) { this._isFocused &#x3D; false; } else { this._isFocused &#x3D; event.type &#x3D;&#x3D;&#x3D; &quot;focus&quot;; } } } export { NumberComponent as Number }; </code></pre> </div> </div> </div><div class="search-results"> <div class="has-results"> <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1> <ul class="search-results-list"></ul> </div> <div class="no-results"> <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1> </div> </div> </div> <!-- END CONTENT --> </div> </div> <label class="dark-mode-switch"> <input type="checkbox"> <span class="slider"> <svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg"> <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path> </svg> </span> </label> <script> var COMPODOC_CURRENT_PAGE_DEPTH = 1; var COMPODOC_CURRENT_PAGE_CONTEXT = 'class'; var COMPODOC_CURRENT_PAGE_URL = 'NumberChange.html'; var MAX_SEARCH_RESULTS = 15; </script> <script> $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input'); checkToggle(darkModeState); if ($darkModeToggleSwitchers.length > 0) { for (var i = 0; i < $darkModeToggleSwitchers.length; i++) { $darkModeToggleSwitchers[i].addEventListener('change', function (event) { darkModeState = !darkModeState; toggleDarkMode(darkModeState); }); } } </script> <script src="../js/libs/custom-elements.min.js"></script> <script src="../js/libs/lit-html.js"></script> <script src="../js/menu-wc.js" defer></script> <script nomodule src="../js/menu-wc_es5.js" defer></script> <script src="../js/libs/bootstrap-native.js"></script> <script src="../js/libs/es6-shim.min.js"></script> <script src="../js/libs/EventDispatcher.js"></script> <script src="../js/libs/promise.min.js"></script> <script src="../js/libs/zepto.min.js"></script> <script src="../js/compodoc.js"></script> <script src="../js/tabs.js"></script> <script src="../js/menu.js"></script> <script src="../js/libs/clipboard.min.js"></script> <script src="../js/libs/prism.js"></script> <script src="../js/sourceCode.js"></script> <script src="../js/search/search.js"></script> <script src="../js/search/lunr.min.js"></script> <script src="../js/search/search-lunr.js"></script> <script src="../js/search/search_index.js"></script> <script src="../js/lazy-load-graphs.js"></script> <footer class="carbon"> <dds-footer-container key="footer" disable-locale-button="true" size="micro" /> </footer> <script key="8" type="module" src="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/footer.min.js"> </script> <!-- Storybook override --> <script> document.title = "Carbon Components Angular"; </script> <script src="//1.www.s81c.com/common/stats/ibm-common.js" type="text/javascript" async="async"> </script> </body> </html>