carbon-components-angular 5.40.4 → 5.41.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.
- package/docs/documentation/components/Modal.html +77 -26
- package/docs/documentation/components/Search.html +173 -69
- package/docs/documentation/components/TableToolbarSearch.html +135 -50
- package/docs/documentation/coverage.html +10 -10
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/TilesModule/dependencies.svg +99 -99
- package/docs/documentation/modules/TilesModule.html +99 -99
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +24 -24
- package/docs/documentation/modules/TimePickerSelectModule.html +24 -24
- package/docs/documentation/modules/ToggleModule/dependencies.svg +46 -42
- package/docs/documentation/modules/ToggleModule.html +46 -42
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +37 -37
- package/docs/documentation/modules/ToggletipModule.html +37 -37
- package/docs/documentation/modules/TooltipModule/dependencies.svg +29 -29
- package/docs/documentation/modules/TooltipModule.html +29 -29
- package/docs/documentation/modules/TreeviewModule/dependencies.svg +35 -35
- package/docs/documentation/modules/TreeviewModule.html +35 -35
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation.json +300 -217
- package/docs/storybook/{3931.0e7c514c.iframe.bundle.js → 3931.b0862ad7.iframe.bundle.js} +1 -1
- package/docs/storybook/5868.53c4195a.iframe.bundle.js +1 -0
- package/docs/storybook/{contained-list-contained-list-stories.b0377336.iframe.bundle.js → contained-list-contained-list-stories.d80e2b46.iframe.bundle.js} +1 -1
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/index.json +1 -1
- package/docs/storybook/{main.d2da63e8.iframe.bundle.js → main.7f34f466.iframe.bundle.js} +1 -1
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.28549df7.iframe.bundle.js → runtime~main.d2952d59.iframe.bundle.js} +1 -1
- package/docs/storybook/{search-search-stories.2dfd7cce.iframe.bundle.js → search-search-stories.c9476b26.iframe.bundle.js} +1 -1
- package/docs/storybook/stories.json +1 -1
- package/docs/storybook/ui-shell-ui-shell-stories.61c6235e.iframe.bundle.js +1 -0
- package/esm2020/modal/modal.component.mjs +19 -11
- package/esm2020/search/search.component.mjs +16 -4
- package/esm2020/table/toolbar/table-toolbar-search.component.mjs +3 -3
- package/fesm2015/carbon-components-angular-modal.mjs +25 -17
- package/fesm2015/carbon-components-angular-modal.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-search.mjs +15 -3
- package/fesm2015/carbon-components-angular-search.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-table.mjs +2 -2
- package/fesm2015/carbon-components-angular-table.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-modal.mjs +25 -17
- package/fesm2020/carbon-components-angular-modal.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-search.mjs +15 -3
- package/fesm2020/carbon-components-angular-search.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-table.mjs +2 -2
- package/fesm2020/carbon-components-angular-table.mjs.map +1 -1
- package/modal/modal.component.d.ts +2 -1
- package/package.json +1 -1
- package/search/search.component.d.ts +6 -1
- package/docs/storybook/5868.06f13966.iframe.bundle.js +0 -1
- package/docs/storybook/ui-shell-ui-shell-stories.b8c5a541.iframe.bundle.js +0 -1
package/docs/documentation.json
CHANGED
|
@@ -36495,7 +36495,7 @@
|
|
|
36495
36495
|
},
|
|
36496
36496
|
{
|
|
36497
36497
|
"name": "Modal",
|
|
36498
|
-
"id": "component-Modal-
|
|
36498
|
+
"id": "component-Modal-d663fa490124907b8f4786b306e4f13e35fa203fdb5b0803e85cc9992b3e894706f64d58c9e98c6ed81a94ed4b85633f2965afdcd6910d7ae15822ada350fe54",
|
|
36499
36499
|
"file": "src/modal/modal.component.ts",
|
|
36500
36500
|
"encapsulation": [],
|
|
36501
36501
|
"entryComponents": [],
|
|
@@ -36505,7 +36505,7 @@
|
|
|
36505
36505
|
"selector": "cds-modal, ibm-modal",
|
|
36506
36506
|
"styleUrls": [],
|
|
36507
36507
|
"styles": [],
|
|
36508
|
-
"template": "<cds-overlay\n\t[theme]=\"theme\"\n\t[open]=\"open\"\n\t(overlaySelect)=\"overlaySelected.emit()\">\n\t<div\n\t\tclass=\"cds--modal-container\"\n\t\t[ngClass]=\"{\n\t\t\t'cds--modal-container--xs': size === 'xs',\n\t\t\t'cds--modal-container--sm': size === 'sm',\n\t\t\t'cds--modal-container--md': size === 'md',\n\t\t\t'cds--modal-container--lg': size === 'lg'\n\t\t}\"\n\t\trole=\"dialog\"\n\t\taria-modal=\"true\"\n\t\tstyle=\"z-index:1;\"\n\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t#modal>\n\t\t<ng-content></ng-content>\n\t
|
|
36508
|
+
"template": "<cds-overlay\n\t[theme]=\"theme\"\n\t[open]=\"open\"\n\t(overlaySelect)=\"overlaySelected.emit()\">\n\t<div\n\t\tclass=\"cds--modal-container\"\n\t\t[ngClass]=\"{\n\t\t\t'cds--modal-container--xs': size === 'xs',\n\t\t\t'cds--modal-container--sm': size === 'sm',\n\t\t\t'cds--modal-container--md': size === 'md',\n\t\t\t'cds--modal-container--lg': size === 'lg'\n\t\t}\"\n\t\trole=\"dialog\"\n\t\taria-modal=\"true\"\n\t\tstyle=\"z-index:1;\"\n\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t#modal>\n\t\t<ng-content></ng-content>\n\t</div>\n</cds-overlay>\n\t",
|
|
36509
36509
|
"templateUrl": [],
|
|
36510
36510
|
"viewProviders": [],
|
|
36511
36511
|
"hostDirectives": [],
|
|
@@ -36517,7 +36517,7 @@
|
|
|
36517
36517
|
"deprecationMessage": "",
|
|
36518
36518
|
"rawdescription": "\n\nLabel for the modal.\n",
|
|
36519
36519
|
"description": "<p>Label for the modal.</p>\n",
|
|
36520
|
-
"line":
|
|
36520
|
+
"line": 116,
|
|
36521
36521
|
"type": "string",
|
|
36522
36522
|
"decorators": []
|
|
36523
36523
|
},
|
|
@@ -36528,7 +36528,7 @@
|
|
|
36528
36528
|
"deprecationMessage": "",
|
|
36529
36529
|
"rawdescription": "\n\nSpecify whether the modal contains scrolling content. This property overrides the automatic\ndetection of the existence of scrolling content. Set this property to `true` to force\noverflow indicator to show up or to `false` to force overflow indicator to disappear.\nIt is set to `null` by default which indicates not to override automatic detection.\n",
|
|
36530
36530
|
"description": "<p>Specify whether the modal contains scrolling content. This property overrides the automatic\ndetection of the existence of scrolling content. Set this property to <code>true</code> to force\noverflow indicator to show up or to <code>false</code> to force overflow indicator to disappear.\nIt is set to <code>null</code> by default which indicates not to override automatic detection.</p>\n",
|
|
36531
|
-
"line":
|
|
36531
|
+
"line": 134,
|
|
36532
36532
|
"type": "boolean",
|
|
36533
36533
|
"decorators": []
|
|
36534
36534
|
},
|
|
@@ -36539,7 +36539,7 @@
|
|
|
36539
36539
|
"deprecationMessage": "",
|
|
36540
36540
|
"rawdescription": "\n\nControls the visibility of the modal when used directly in a template\n",
|
|
36541
36541
|
"description": "<p>Controls the visibility of the modal when used directly in a template</p>\n",
|
|
36542
|
-
"line":
|
|
36542
|
+
"line": 121,
|
|
36543
36543
|
"type": "boolean",
|
|
36544
36544
|
"decorators": []
|
|
36545
36545
|
},
|
|
@@ -36550,7 +36550,7 @@
|
|
|
36550
36550
|
"deprecationMessage": "",
|
|
36551
36551
|
"rawdescription": "\n\nSize of the modal to display.\n",
|
|
36552
36552
|
"description": "<p>Size of the modal to display.</p>\n",
|
|
36553
|
-
"line":
|
|
36553
|
+
"line": 107,
|
|
36554
36554
|
"type": "\"xs\" | \"sm\" | \"md\" | \"lg\"",
|
|
36555
36555
|
"decorators": []
|
|
36556
36556
|
},
|
|
@@ -36561,7 +36561,7 @@
|
|
|
36561
36561
|
"deprecationMessage": "",
|
|
36562
36562
|
"rawdescription": "\n\nClassification of the modal.\n",
|
|
36563
36563
|
"description": "<p>Classification of the modal.</p>\n",
|
|
36564
|
-
"line":
|
|
36564
|
+
"line": 111,
|
|
36565
36565
|
"type": "\"default\" | \"danger\"",
|
|
36566
36566
|
"decorators": []
|
|
36567
36567
|
},
|
|
@@ -36571,7 +36571,7 @@
|
|
|
36571
36571
|
"deprecationMessage": "",
|
|
36572
36572
|
"rawdescription": "\n\nThe element that triggers the modal, which should receive focus when the modal closes\n",
|
|
36573
36573
|
"description": "<p>The element that triggers the modal, which should receive focus when the modal closes</p>\n",
|
|
36574
|
-
"line":
|
|
36574
|
+
"line": 126,
|
|
36575
36575
|
"type": "HTMLElement",
|
|
36576
36576
|
"decorators": []
|
|
36577
36577
|
}
|
|
@@ -36584,7 +36584,7 @@
|
|
|
36584
36584
|
"deprecationMessage": "",
|
|
36585
36585
|
"rawdescription": "\n\nTo emit the closing event of the modal window.\n",
|
|
36586
36586
|
"description": "<p>To emit the closing event of the modal window.</p>\n",
|
|
36587
|
-
"line":
|
|
36587
|
+
"line": 143,
|
|
36588
36588
|
"type": "EventEmitter"
|
|
36589
36589
|
},
|
|
36590
36590
|
{
|
|
@@ -36594,7 +36594,7 @@
|
|
|
36594
36594
|
"deprecationMessage": "",
|
|
36595
36595
|
"rawdescription": "\n\nEmits event when click occurs within `n-overlay` element. This is to track click events occurring outside bounds of the `Modal` object.\n",
|
|
36596
36596
|
"description": "<p>Emits event when click occurs within <code>n-overlay</code> element. This is to track click events occurring outside bounds of the <code>Modal</code> object.</p>\n",
|
|
36597
|
-
"line":
|
|
36597
|
+
"line": 139,
|
|
36598
36598
|
"type": "EventEmitter"
|
|
36599
36599
|
}
|
|
36600
36600
|
],
|
|
@@ -36606,7 +36606,7 @@
|
|
|
36606
36606
|
"type": "ElementRef",
|
|
36607
36607
|
"optional": false,
|
|
36608
36608
|
"description": "<p>Maintains a reference to the view DOM element of the <code>Modal</code>.</p>\n",
|
|
36609
|
-
"line":
|
|
36609
|
+
"line": 147,
|
|
36610
36610
|
"rawdescription": "\n\nMaintains a reference to the view DOM element of the `Modal`.\n",
|
|
36611
36611
|
"decorators": [
|
|
36612
36612
|
{
|
|
@@ -36625,7 +36625,7 @@
|
|
|
36625
36625
|
"type": "BaseModalService",
|
|
36626
36626
|
"optional": false,
|
|
36627
36627
|
"description": "",
|
|
36628
|
-
"line":
|
|
36628
|
+
"line": 158,
|
|
36629
36629
|
"modifierKind": [
|
|
36630
36630
|
125
|
|
36631
36631
|
]
|
|
@@ -36638,7 +36638,7 @@
|
|
|
36638
36638
|
"type": "string",
|
|
36639
36639
|
"optional": false,
|
|
36640
36640
|
"description": "<p>An element should have 'modal-primary-focus' as an attribute to receive initial focus within the <code>Modal</code> component.</p>\n",
|
|
36641
|
-
"line":
|
|
36641
|
+
"line": 152,
|
|
36642
36642
|
"rawdescription": "\n\nAn element should have 'modal-primary-focus' as an attribute to receive initial focus within the `Modal` component.\n"
|
|
36643
36643
|
}
|
|
36644
36644
|
],
|
|
@@ -36712,7 +36712,7 @@
|
|
|
36712
36712
|
"description": "<p>Component to create modals for presenting content.</p>\n<p><a href=\"../../?path=/story/components-modal--basic\">See demo</a></p>\n<p>Using a modal in your application requires <code>cds-placeholder</code> which would generally be\nplaced near the end of your app component template (app.component.ts or app.component.html) as:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\"><cds-placeholder></cds-placeholder></code></pre></div><p>A more complete example for <code>Modal</code> is given as follows:</p>\n<p>Example modal definition:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">@Component({\nselector: "app-sample-modal",\ntemplate: `\n<cds-modal size="xl" (overlaySelected)="closeModal()">\n<cds-modal-header (closeSelect)="closeModal()">Header text</cds-modal-header>\n<section class="modal-body">\n<h1>Sample modal works.</h1>\n<button class="btn--icon-link" nPopover="Hello there" title="Popover title" placement="right" appendInline="true">\n<svg cdsIcon="info" size="sm"></svg>\n</button>\n{{modalText}}\n</section>\n<cds-modal-footer><button cdsButton="primary" (click)="closeModal()">Close</button></cds-modal-footer>\n</cds-modal>`,\nstyleUrls: ["./sample-modal.component.scss"]\n})\nexport class SampleModal extends BaseModal {\nmodalText: string;\nconstructor(protected injector: Injector) {\nsuper();\nthis.modalText = this.injector.get("modalText");\n}\n}</code></pre></div><p>Example of opening the modal:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">@Component({\nselector: "app-modal-demo",\ntemplate: `\n<button cdsButton="primary" (click)="openModal('drill')">Drill-down modal</button>\n<cds-placeholder></cds-placeholder>`\n})\nexport class ModalDemo {\nopenModal() {\nthis.modalService.create({component: SampleModal, inputs: {modalText: "Hello universe."}});\n}\n}</code></pre></div>",
|
|
36713
36713
|
"rawdescription": "\n\nComponent to create modals for presenting content.\n\n[See demo](../../?path=/story/components-modal--basic)\n\nUsing a modal in your application requires `cds-placeholder` which would generally be\nplaced near the end of your app component template (app.component.ts or app.component.html) as:\n\n```html\n<cds-placeholder></cds-placeholder>\n```\n\nA more complete example for `Modal` is given as follows:\n\nExample modal definition:\n\n```typescript\n@Component({\nselector: \"app-sample-modal\",\ntemplate: `\n<cds-modal size=\"xl\" (overlaySelected)=\"closeModal()\">\n<cds-modal-header (closeSelect)=\"closeModal()\">Header text</cds-modal-header>\n<section class=\"modal-body\">\n<h1>Sample modal works.</h1>\n<button class=\"btn--icon-link\" nPopover=\"Hello there\" title=\"Popover title\" placement=\"right\" appendInline=\"true\">\n<svg cdsIcon=\"info\" size=\"sm\"></svg>\n</button>\n{{modalText}}\n</section>\n<cds-modal-footer><button cdsButton=\"primary\" (click)=\"closeModal()\">Close</button></cds-modal-footer>\n</cds-modal>`,\nstyleUrls: [\"./sample-modal.component.scss\"]\n})\nexport class SampleModal extends BaseModal {\nmodalText: string;\nconstructor(protected injector: Injector) {\nsuper();\nthis.modalText = this.injector.get(\"modalText\");\n}\n}\n```\n\nExample of opening the modal:\n\n```typescript\n@Component({\nselector: \"app-modal-demo\",\ntemplate: `\n<button cdsButton=\"primary\" (click)=\"openModal('drill')\">Drill-down modal</button>\n<cds-placeholder></cds-placeholder>`\n})\nexport class ModalDemo {\nopenModal() {\nthis.modalService.create({component: SampleModal, inputs: {modalText: \"Hello universe.\"}});\n}\n}\n```\n",
|
|
36714
36714
|
"type": "component",
|
|
36715
|
-
"sourceCode": "import {\n\tAfterViewInit,\n\tComponent,\n\tEventEmitter,\n\tHostListener,\n\tInput,\n\tOutput,\n\tElementRef,\n\tViewChild,\n\tSimpleChanges,\n\tOnChanges,\n\tRenderer2,\n\tInject,\n\tOnDestroy\n} from \"@angular/core\";\nimport { DOCUMENT } from \"@angular/common\";\nimport { cycleTabs, getFocusElementList } from \"carbon-components-angular/common\";\nimport { BaseModalService } from \"./base-modal.service\";\n\n/**\n * Component to create modals for presenting content.\n *\n * [See demo](../../?path=/story/components-modal--basic)\n *\n * Using a modal in your application requires `cds-placeholder` which would generally be\n * placed near the end of your app component template (app.component.ts or app.component.html) as:\n *\n```html\n<cds-placeholder></cds-placeholder>\n```\n *\n * A more complete example for `Modal` is given as follows:\n *\n * Example modal definition:\n *\n```typescript\n@Component({\n\tselector: \"app-sample-modal\",\n\ttemplate: `\n\t\t\t\t<cds-modal size=\"xl\" (overlaySelected)=\"closeModal()\">\n\t\t\t\t\t<cds-modal-header (closeSelect)=\"closeModal()\">Header text</cds-modal-header>\n\t\t\t\t\t\t<section class=\"modal-body\">\n\t\t\t\t\t\t\t<h1>Sample modal works.</h1>\n\t\t\t\t\t\t\t<button class=\"btn--icon-link\" nPopover=\"Hello there\" title=\"Popover title\" placement=\"right\" appendInline=\"true\">\n\t\t\t\t\t\t\t\t<svg cdsIcon=\"info\" size=\"sm\"></svg>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t{{modalText}}\n\t\t\t\t\t\t</section>\n\t\t\t\t\t<cds-modal-footer><button cdsButton=\"primary\" (click)=\"closeModal()\">Close</button></cds-modal-footer>\n\t\t\t\t</cds-modal>`,\n\tstyleUrls: [\"./sample-modal.component.scss\"]\n})\nexport class SampleModal extends BaseModal {\n\tmodalText: string;\n\tconstructor(protected injector: Injector) {\n\t\tsuper();\n\t\tthis.modalText = this.injector.get(\"modalText\");\n\t}\n}\n```\n *\n * Example of opening the modal:\n *\n```typescript\n@Component({\n\tselector: \"app-modal-demo\",\n\ttemplate: `\n\t\t\t\t<button cdsButton=\"primary\" (click)=\"openModal('drill')\">Drill-down modal</button>\n\t\t\t\t<cds-placeholder></cds-placeholder>`\n})\nexport class ModalDemo {\n\topenModal() {\n\t\tthis.modalService.create({component: SampleModal, inputs: {modalText: \"Hello universe.\"}});\n\t}\n}\n```\n */\n@Component({\n\tselector: \"cds-modal, ibm-modal\",\n\ttemplate: `\n\t\t<cds-overlay\n\t\t\t[theme]=\"theme\"\n\t\t\t[open]=\"open\"\n\t\t\t(overlaySelect)=\"overlaySelected.emit()\">\n\t\t\t<div\n\t\t\t\tclass=\"cds--modal-container\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'cds--modal-container--xs': size === 'xs',\n\t\t\t\t\t'cds--modal-container--sm': size === 'sm',\n\t\t\t\t\t'cds--modal-container--md': size === 'md',\n\t\t\t\t\t'cds--modal-container--lg': size === 'lg'\n\t\t\t\t}\"\n\t\t\t\trole=\"dialog\"\n\t\t\t\taria-modal=\"true\"\n\t\t\t\tstyle=\"z-index:1;\"\n\t\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t\t#modal>\n\t\t\t\t<ng-content></ng-content>\n\t\t\t
|
|
36715
|
+
"sourceCode": "import {\n\tAfterViewInit,\n\tComponent,\n\tEventEmitter,\n\tHostListener,\n\tInput,\n\tOutput,\n\tElementRef,\n\tViewChild,\n\tSimpleChanges,\n\tOnChanges,\n\tRenderer2,\n\tInject,\n\tOnDestroy\n} from \"@angular/core\";\nimport { DOCUMENT } from \"@angular/common\";\nimport { cycleTabs, getFocusElementList } from \"carbon-components-angular/common\";\nimport { BaseModalService } from \"./base-modal.service\";\n\n/**\n * Component to create modals for presenting content.\n *\n * [See demo](../../?path=/story/components-modal--basic)\n *\n * Using a modal in your application requires `cds-placeholder` which would generally be\n * placed near the end of your app component template (app.component.ts or app.component.html) as:\n *\n```html\n<cds-placeholder></cds-placeholder>\n```\n *\n * A more complete example for `Modal` is given as follows:\n *\n * Example modal definition:\n *\n```typescript\n@Component({\n\tselector: \"app-sample-modal\",\n\ttemplate: `\n\t\t\t\t<cds-modal size=\"xl\" (overlaySelected)=\"closeModal()\">\n\t\t\t\t\t<cds-modal-header (closeSelect)=\"closeModal()\">Header text</cds-modal-header>\n\t\t\t\t\t\t<section class=\"modal-body\">\n\t\t\t\t\t\t\t<h1>Sample modal works.</h1>\n\t\t\t\t\t\t\t<button class=\"btn--icon-link\" nPopover=\"Hello there\" title=\"Popover title\" placement=\"right\" appendInline=\"true\">\n\t\t\t\t\t\t\t\t<svg cdsIcon=\"info\" size=\"sm\"></svg>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t{{modalText}}\n\t\t\t\t\t\t</section>\n\t\t\t\t\t<cds-modal-footer><button cdsButton=\"primary\" (click)=\"closeModal()\">Close</button></cds-modal-footer>\n\t\t\t\t</cds-modal>`,\n\tstyleUrls: [\"./sample-modal.component.scss\"]\n})\nexport class SampleModal extends BaseModal {\n\tmodalText: string;\n\tconstructor(protected injector: Injector) {\n\t\tsuper();\n\t\tthis.modalText = this.injector.get(\"modalText\");\n\t}\n}\n```\n *\n * Example of opening the modal:\n *\n```typescript\n@Component({\n\tselector: \"app-modal-demo\",\n\ttemplate: `\n\t\t\t\t<button cdsButton=\"primary\" (click)=\"openModal('drill')\">Drill-down modal</button>\n\t\t\t\t<cds-placeholder></cds-placeholder>`\n})\nexport class ModalDemo {\n\topenModal() {\n\t\tthis.modalService.create({component: SampleModal, inputs: {modalText: \"Hello universe.\"}});\n\t}\n}\n```\n */\n@Component({\n\tselector: \"cds-modal, ibm-modal\",\n\ttemplate: `\n\t\t<cds-overlay\n\t\t\t[theme]=\"theme\"\n\t\t\t[open]=\"open\"\n\t\t\t(overlaySelect)=\"overlaySelected.emit()\">\n\t\t\t<div\n\t\t\t\tclass=\"cds--modal-container\"\n\t\t\t\t[ngClass]=\"{\n\t\t\t\t\t'cds--modal-container--xs': size === 'xs',\n\t\t\t\t\t'cds--modal-container--sm': size === 'sm',\n\t\t\t\t\t'cds--modal-container--md': size === 'md',\n\t\t\t\t\t'cds--modal-container--lg': size === 'lg'\n\t\t\t\t}\"\n\t\t\t\trole=\"dialog\"\n\t\t\t\taria-modal=\"true\"\n\t\t\t\tstyle=\"z-index:1;\"\n\t\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t\t#modal>\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</div>\n\t\t</cds-overlay>\n\t`\n})\nexport class Modal implements AfterViewInit, OnChanges, OnDestroy {\n\t/**\n\t * Size of the modal to display.\n\t */\n\t@Input() size: \"xs\" | \"sm\"| \"md\" | \"lg\" = \"md\";\n\t/**\n\t * Classification of the modal.\n\t */\n\t@Input() theme: \"default\" | \"danger\" = \"default\";\n\n\t/**\n\t * Label for the modal.\n\t */\n\t@Input() ariaLabel = \"default\";\n\n\t/**\n\t * Controls the visibility of the modal when used directly in a template\n\t */\n\t@Input() open = false;\n\n\t/**\n\t * The element that triggers the modal, which should receive focus when the modal closes\n\t */\n\t@Input() trigger: HTMLElement;\n\n\t/**\n\t * Specify whether the modal contains scrolling content. This property overrides the automatic\n\t * detection of the existence of scrolling content. Set this property to `true` to force\n\t * overflow indicator to show up or to `false` to force overflow indicator to disappear.\n\t * It is set to `null` by default which indicates not to override automatic detection.\n\t */\n\t@Input() hasScrollingContent: boolean = null;\n\n\t/**\n\t * Emits event when click occurs within `n-overlay` element. This is to track click events occurring outside bounds of the `Modal` object.\n\t */\n\t@Output() overlaySelected = new EventEmitter();\n\t/**\n\t * To emit the closing event of the modal window.\n\t */\n\t@Output() close = new EventEmitter();\n\t/**\n\t * Maintains a reference to the view DOM element of the `Modal`.\n\t */\n\t@ViewChild(\"modal\", { static: true }) modal: ElementRef;\n\n\t/**\n\t * An element should have 'modal-primary-focus' as an attribute to receive initial focus within the `Modal` component.\n\t */\n\tselectorPrimaryFocus = \"[modal-primary-focus]\";\n\n\t/**\n\t * Creates an instance of `Modal`.\n\t */\n\tconstructor(\n\t\tpublic modalService: BaseModalService,\n\t\t@Inject(DOCUMENT) private document: Document,\n\t\tprivate renderer: Renderer2\n\t) { }\n\n\tngOnChanges({ open, hasScrollingContent }: SimpleChanges) {\n\t\tif (open) {\n\t\t\tif (open.currentValue) {\n\t\t\t\t// `100` is just enough time to allow the modal\n\t\t\t\t// to become visible, so that we can set focus\n\t\t\t\tsetTimeout(() => this.focusInitialElement(), 100);\n\t\t\t\t// Prevent scrolling on open\n\t\t\t\tthis.renderer.addClass(this.document.body, \"cds--body--with-modal-open\");\n\t\t\t} else if (!open.currentValue) {\n\t\t\t\t// Enable scrolling on close\n\t\t\t\tthis.renderer.removeClass(this.document.body, \"cds--body--with-modal-open\");\n\t\t\t} else if (this.trigger) {\n\t\t\t\tthis.trigger.focus();\n\t\t\t}\n\t\t}\n\t\tif (hasScrollingContent) {\n\t\t\tthis.updateScrollbar();\n\t\t}\n\t}\n\n\t/**\n\t * Set document focus to be on the modal component after it is initialized.\n\t */\n\tngAfterViewInit() {\n\t\tthis.focusInitialElement();\n\t\tthis.updateScrollbar();\n\t}\n\n\t/**\n\t * Handle keyboard events to close modal and tab through the content within the modal.\n\t */\n\t@HostListener(\"keydown\", [\"$event\"])\n\thandleKeyboardEvent(event: KeyboardEvent) {\n\t\tswitch (event.key) {\n\t\t\tcase \"Escape\": {\n\t\t\t\tevent.stopImmediatePropagation(); // prevents events being fired for multiple modals if more than 2 open\n\t\t\t\t// Manually close modal\n\t\t\t\tthis.open = false;\n\t\t\t\tthis.close.emit();\n\t\t\t\tthis.modalService.destroy(); // destroy top (latest) modal\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase \"Tab\": {\n\t\t\t\tcycleTabs(event, this.modal.nativeElement);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * This detects whether or not the modal contains scrolling content.\n\t *\n\t * To force trigger a detection (ie. on window resize), change or reset the value of the modal content.\n\t *\n\t * Use the `hasScrollingContent` input to manually override the overflow indicator.\n\t */\n\tget shouldShowScrollbar() {\n\t\tconst modalContent = this.modal ? this.modal.nativeElement.querySelector(\".cds--modal-content\") : null;\n\t\tif (modalContent) {\n\t\t\t// get rounded value from height to match integer returned from scrollHeight\n\t\t\tconst modalContentHeight = Math.ceil(modalContent.getBoundingClientRect().height);\n\t\t\tconst modalContentScrollHeight = modalContent.scrollHeight;\n\t\t\treturn modalContentScrollHeight > modalContentHeight;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\t// Remove class preventing scrolling\n\tngOnDestroy() {\n\t\tthis.renderer.removeClass(this.document.body, \"cds--body--with-modal-open\");\n\t}\n\n\tprotected focusInitialElement() {\n\t\tconst primaryFocusElement = this.modal.nativeElement.querySelector(this.selectorPrimaryFocus);\n\t\tif (primaryFocusElement && primaryFocusElement.focus) {\n\t\t\tsetTimeout(() => primaryFocusElement.focus());\n\t\t} else if (getFocusElementList(this.modal.nativeElement).length > 0) {\n\t\t\tsetTimeout(() => getFocusElementList(this.modal.nativeElement)[0].focus());\n\t\t} else {\n\t\t\tsetTimeout(() => this.modal.nativeElement.focus());\n\t\t}\n\t}\n\n\tprivate updateScrollbar() {\n\t\tconst modalContent = this.modal ? this.modal.nativeElement.querySelector(\".cds--modal-content\") : null;\n\t\tconst showScrollbar = this.hasScrollingContent !== null ? this.hasScrollingContent : this.shouldShowScrollbar;\n\t\tif (modalContent) {\n\t\t\tif (showScrollbar) {\n\t\t\t\tthis.renderer.addClass(modalContent, \"cds--modal-scroll-content\");\n\t\t\t} else {\n\t\t\t\tthis.renderer.removeClass(modalContent, \"cds--modal-scroll-content\");\n\t\t\t}\n\t\t}\n\t}\n}\n",
|
|
36716
36716
|
"assetsDirs": [],
|
|
36717
36717
|
"styleUrlsData": "",
|
|
36718
36718
|
"stylesData": "",
|
|
@@ -36741,7 +36741,7 @@
|
|
|
36741
36741
|
"deprecationMessage": ""
|
|
36742
36742
|
}
|
|
36743
36743
|
],
|
|
36744
|
-
"line":
|
|
36744
|
+
"line": 152,
|
|
36745
36745
|
"rawdescription": "\n\nCreates an instance of `Modal`.\n",
|
|
36746
36746
|
"jsdoctags": [
|
|
36747
36747
|
{
|
|
@@ -47100,7 +47100,7 @@
|
|
|
47100
47100
|
},
|
|
47101
47101
|
{
|
|
47102
47102
|
"name": "Search",
|
|
47103
|
-
"id": "component-Search-
|
|
47103
|
+
"id": "component-Search-50eb883dd9468f438a09dbaec39151320387b8bbf504ec26ca69233c1232556a4585fcff76fc6f903e834f675dbf07ac1845828c775c4c71f56ecc86cb51e3cf",
|
|
47104
47104
|
"file": "src/search/search.component.ts",
|
|
47105
47105
|
"encapsulation": [],
|
|
47106
47106
|
"entryComponents": [],
|
|
@@ -47127,7 +47127,7 @@
|
|
|
47127
47127
|
"deprecationMessage": "",
|
|
47128
47128
|
"rawdescription": "\n\nSet to `true` to expand the toolbar search component.\n",
|
|
47129
47129
|
"description": "<p>Set to <code>true</code> to expand the toolbar search component.</p>\n",
|
|
47130
|
-
"line":
|
|
47130
|
+
"line": 79,
|
|
47131
47131
|
"type": "boolean",
|
|
47132
47132
|
"decorators": []
|
|
47133
47133
|
},
|
|
@@ -47137,7 +47137,7 @@
|
|
|
47137
47137
|
"deprecationMessage": "",
|
|
47138
47138
|
"rawdescription": "\n\nSets the aria label on the `div` element with the `search` role.\n",
|
|
47139
47139
|
"description": "<p>Sets the aria label on the <code>div</code> element with the <code>search</code> role.</p>\n",
|
|
47140
|
-
"line":
|
|
47140
|
+
"line": 124,
|
|
47141
47141
|
"type": "string",
|
|
47142
47142
|
"decorators": []
|
|
47143
47143
|
},
|
|
@@ -47148,7 +47148,7 @@
|
|
|
47148
47148
|
"deprecationMessage": "",
|
|
47149
47149
|
"rawdescription": "\n\nSets the autocomplete attribute on the `input` element.\nFor reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values\n",
|
|
47150
47150
|
"description": "<p>Sets the autocomplete attribute on the <code>input</code> element.\nFor reference: <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values\">https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values</a></p>\n",
|
|
47151
|
-
"line":
|
|
47151
|
+
"line": 104,
|
|
47152
47152
|
"type": "string",
|
|
47153
47153
|
"decorators": []
|
|
47154
47154
|
},
|
|
@@ -47159,7 +47159,7 @@
|
|
|
47159
47159
|
"deprecationMessage": "",
|
|
47160
47160
|
"rawdescription": "\n\nUsed to set the `title` attribute of the clear button.\n",
|
|
47161
47161
|
"description": "<p>Used to set the <code>title</code> attribute of the clear button.</p>\n",
|
|
47162
|
-
"line":
|
|
47162
|
+
"line": 116,
|
|
47163
47163
|
"type": "any",
|
|
47164
47164
|
"decorators": []
|
|
47165
47165
|
},
|
|
@@ -47170,7 +47170,7 @@
|
|
|
47170
47170
|
"deprecationMessage": "",
|
|
47171
47171
|
"rawdescription": "\n\nSet to `true` for a disabled search input.\n",
|
|
47172
47172
|
"description": "<p>Set to <code>true</code> for a disabled search input.</p>\n",
|
|
47173
|
-
"line":
|
|
47173
|
+
"line": 62,
|
|
47174
47174
|
"type": "boolean",
|
|
47175
47175
|
"decorators": []
|
|
47176
47176
|
},
|
|
@@ -47181,7 +47181,18 @@
|
|
|
47181
47181
|
"deprecationMessage": "",
|
|
47182
47182
|
"rawdescription": "\n\nSet to `true` to make the search component expandable.\n`expandable` would override `toolbar` property behaviours.\n",
|
|
47183
47183
|
"description": "<p>Set to <code>true</code> to make the search component expandable.\n<code>expandable</code> would override <code>toolbar</code> property behaviours.</p>\n",
|
|
47184
|
-
"line":
|
|
47184
|
+
"line": 71,
|
|
47185
|
+
"type": "boolean",
|
|
47186
|
+
"decorators": []
|
|
47187
|
+
},
|
|
47188
|
+
{
|
|
47189
|
+
"name": "fluid",
|
|
47190
|
+
"defaultValue": "false",
|
|
47191
|
+
"deprecated": false,
|
|
47192
|
+
"deprecationMessage": "",
|
|
47193
|
+
"rawdescription": "\n\nExperimental: enable fluid state\n",
|
|
47194
|
+
"description": "<p>Experimental: enable fluid state</p>\n",
|
|
47195
|
+
"line": 128,
|
|
47185
47196
|
"type": "boolean",
|
|
47186
47197
|
"decorators": []
|
|
47187
47198
|
},
|
|
@@ -47192,7 +47203,7 @@
|
|
|
47192
47203
|
"deprecationMessage": "",
|
|
47193
47204
|
"rawdescription": "\n\nThe unique id for the search component.\n",
|
|
47194
47205
|
"description": "<p>The unique id for the search component.</p>\n",
|
|
47195
|
-
"line":
|
|
47206
|
+
"line": 91,
|
|
47196
47207
|
"type": "string",
|
|
47197
47208
|
"decorators": []
|
|
47198
47209
|
},
|
|
@@ -47203,7 +47214,7 @@
|
|
|
47203
47214
|
"deprecationMessage": "",
|
|
47204
47215
|
"rawdescription": "\n\nSets the text inside the `label` tag.\n",
|
|
47205
47216
|
"description": "<p>Sets the text inside the <code>label</code> tag.</p>\n",
|
|
47206
|
-
"line":
|
|
47217
|
+
"line": 108,
|
|
47207
47218
|
"type": "any",
|
|
47208
47219
|
"decorators": []
|
|
47209
47220
|
},
|
|
@@ -47213,7 +47224,7 @@
|
|
|
47213
47224
|
"deprecationMessage": "",
|
|
47214
47225
|
"rawdescription": "\n\nSets the name attribute on the `input` element.\n",
|
|
47215
47226
|
"description": "<p>Sets the name attribute on the <code>input</code> element.</p>\n",
|
|
47216
|
-
"line":
|
|
47227
|
+
"line": 87,
|
|
47217
47228
|
"type": "string",
|
|
47218
47229
|
"decorators": []
|
|
47219
47230
|
},
|
|
@@ -47224,7 +47235,7 @@
|
|
|
47224
47235
|
"deprecationMessage": "",
|
|
47225
47236
|
"rawdescription": "\n\nSets the placeholder attribute on the `input` element.\n",
|
|
47226
47237
|
"description": "<p>Sets the placeholder attribute on the <code>input</code> element.</p>\n",
|
|
47227
|
-
"line":
|
|
47238
|
+
"line": 112,
|
|
47228
47239
|
"type": "any",
|
|
47229
47240
|
"decorators": []
|
|
47230
47241
|
},
|
|
@@ -47234,7 +47245,7 @@
|
|
|
47234
47245
|
"deprecationMessage": "",
|
|
47235
47246
|
"rawdescription": "\n\nReflects the required attribute of the `input` element.\n",
|
|
47236
47247
|
"description": "<p>Reflects the required attribute of the <code>input</code> element.</p>\n",
|
|
47237
|
-
"line":
|
|
47248
|
+
"line": 95,
|
|
47238
47249
|
"type": "boolean",
|
|
47239
47250
|
"decorators": []
|
|
47240
47251
|
},
|
|
@@ -47245,7 +47256,7 @@
|
|
|
47245
47256
|
"deprecationMessage": "",
|
|
47246
47257
|
"rawdescription": "\n\nTitle for the search trigger\n",
|
|
47247
47258
|
"description": "<p>Title for the search trigger</p>\n",
|
|
47248
|
-
"line":
|
|
47259
|
+
"line": 120,
|
|
47249
47260
|
"type": "string",
|
|
47250
47261
|
"decorators": []
|
|
47251
47262
|
},
|
|
@@ -47256,7 +47267,7 @@
|
|
|
47256
47267
|
"deprecationMessage": "",
|
|
47257
47268
|
"rawdescription": "\n\nSize of the search field.\n",
|
|
47258
47269
|
"description": "<p>Size of the search field.</p>\n",
|
|
47259
|
-
"line":
|
|
47270
|
+
"line": 57,
|
|
47260
47271
|
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
47261
47272
|
"decorators": []
|
|
47262
47273
|
},
|
|
@@ -47267,7 +47278,7 @@
|
|
|
47267
47278
|
"deprecationMessage": "",
|
|
47268
47279
|
"rawdescription": "\n\nSet to `true` for a loading search component.\n",
|
|
47269
47280
|
"description": "<p>Set to <code>true</code> for a loading search component.</p>\n",
|
|
47270
|
-
"line":
|
|
47281
|
+
"line": 75,
|
|
47271
47282
|
"type": "boolean",
|
|
47272
47283
|
"decorators": []
|
|
47273
47284
|
},
|
|
@@ -47278,7 +47289,7 @@
|
|
|
47278
47289
|
"deprecationMessage": "",
|
|
47279
47290
|
"rawdescription": "\n\nSpecifies whether the search component is used in the table toolbar.\n",
|
|
47280
47291
|
"description": "<p>Specifies whether the search component is used in the table toolbar.</p>\n",
|
|
47281
|
-
"line":
|
|
47292
|
+
"line": 83,
|
|
47282
47293
|
"type": "boolean",
|
|
47283
47294
|
"decorators": []
|
|
47284
47295
|
},
|
|
@@ -47289,15 +47300,15 @@
|
|
|
47289
47300
|
"deprecationMessage": "since v5 - Use `cdsLayer` directive instead\n`light` or `dark` search theme.",
|
|
47290
47301
|
"jsdoctags": [
|
|
47291
47302
|
{
|
|
47292
|
-
"pos":
|
|
47293
|
-
"end":
|
|
47303
|
+
"pos": 1046,
|
|
47304
|
+
"end": 1140,
|
|
47294
47305
|
"flags": 16842752,
|
|
47295
47306
|
"modifierFlagsCache": 0,
|
|
47296
47307
|
"transformFlags": 0,
|
|
47297
47308
|
"kind": 338,
|
|
47298
47309
|
"tagName": {
|
|
47299
|
-
"pos":
|
|
47300
|
-
"end":
|
|
47310
|
+
"pos": 1047,
|
|
47311
|
+
"end": 1057,
|
|
47301
47312
|
"flags": 16842752,
|
|
47302
47313
|
"modifierFlagsCache": 0,
|
|
47303
47314
|
"transformFlags": 0,
|
|
@@ -47307,7 +47318,7 @@
|
|
|
47307
47318
|
"comment": "<p>since v5 - Use <code>cdsLayer</code> directive instead\n<code>light</code> or <code>dark</code> search theme.</p>\n"
|
|
47308
47319
|
}
|
|
47309
47320
|
],
|
|
47310
|
-
"line":
|
|
47321
|
+
"line": 52,
|
|
47311
47322
|
"type": "\"light\" | \"dark\"",
|
|
47312
47323
|
"decorators": []
|
|
47313
47324
|
},
|
|
@@ -47318,7 +47329,7 @@
|
|
|
47318
47329
|
"deprecationMessage": "",
|
|
47319
47330
|
"rawdescription": "\n\nSet to `true` for a toolbar search component.\n",
|
|
47320
47331
|
"description": "<p>Set to <code>true</code> for a toolbar search component.</p>\n",
|
|
47321
|
-
"line":
|
|
47332
|
+
"line": 66,
|
|
47322
47333
|
"type": "boolean",
|
|
47323
47334
|
"decorators": []
|
|
47324
47335
|
},
|
|
@@ -47329,7 +47340,7 @@
|
|
|
47329
47340
|
"deprecationMessage": "",
|
|
47330
47341
|
"rawdescription": "\n\nSets the value attribute on the `input` element.\n",
|
|
47331
47342
|
"description": "<p>Sets the value attribute on the <code>input</code> element.</p>\n",
|
|
47332
|
-
"line":
|
|
47343
|
+
"line": 99,
|
|
47333
47344
|
"type": "string",
|
|
47334
47345
|
"decorators": []
|
|
47335
47346
|
}
|
|
@@ -47342,7 +47353,7 @@
|
|
|
47342
47353
|
"deprecationMessage": "",
|
|
47343
47354
|
"rawdescription": "\n\nEmits an event when the clear button is clicked.\n",
|
|
47344
47355
|
"description": "<p>Emits an event when the clear button is clicked.</p>\n",
|
|
47345
|
-
"line":
|
|
47356
|
+
"line": 137,
|
|
47346
47357
|
"type": "EventEmitter"
|
|
47347
47358
|
},
|
|
47348
47359
|
{
|
|
@@ -47350,7 +47361,7 @@
|
|
|
47350
47361
|
"defaultValue": "new EventEmitter<boolean>()",
|
|
47351
47362
|
"deprecated": false,
|
|
47352
47363
|
"deprecationMessage": "",
|
|
47353
|
-
"line":
|
|
47364
|
+
"line": 133,
|
|
47354
47365
|
"type": "EventEmitter"
|
|
47355
47366
|
},
|
|
47356
47367
|
{
|
|
@@ -47360,7 +47371,7 @@
|
|
|
47360
47371
|
"deprecationMessage": "",
|
|
47361
47372
|
"rawdescription": "\n\nEmits an event on enter.\n",
|
|
47362
47373
|
"description": "<p>Emits an event on enter.</p>\n",
|
|
47363
|
-
"line":
|
|
47374
|
+
"line": 141,
|
|
47364
47375
|
"type": "EventEmitter"
|
|
47365
47376
|
},
|
|
47366
47377
|
{
|
|
@@ -47370,7 +47381,7 @@
|
|
|
47370
47381
|
"deprecationMessage": "",
|
|
47371
47382
|
"rawdescription": "\n\nEmits an event when value is changed.\n",
|
|
47372
47383
|
"description": "<p>Emits an event when value is changed.</p>\n",
|
|
47373
|
-
"line":
|
|
47384
|
+
"line": 132,
|
|
47374
47385
|
"type": "EventEmitter"
|
|
47375
47386
|
}
|
|
47376
47387
|
],
|
|
@@ -47382,7 +47393,7 @@
|
|
|
47382
47393
|
"type": "ElementRef",
|
|
47383
47394
|
"optional": false,
|
|
47384
47395
|
"description": "",
|
|
47385
|
-
"line":
|
|
47396
|
+
"line": 143,
|
|
47386
47397
|
"decorators": [
|
|
47387
47398
|
{
|
|
47388
47399
|
"name": "ViewChild",
|
|
@@ -47401,7 +47412,7 @@
|
|
|
47401
47412
|
"type": "function",
|
|
47402
47413
|
"optional": false,
|
|
47403
47414
|
"description": "<p>Called when search input is blurred. Needed to properly implement <code>ControlValueAccessor</code>.</p>\n",
|
|
47404
|
-
"line":
|
|
47415
|
+
"line": 184,
|
|
47405
47416
|
"rawdescription": "\n\nCalled when search input is blurred. Needed to properly implement `ControlValueAccessor`.\n"
|
|
47406
47417
|
},
|
|
47407
47418
|
{
|
|
@@ -47412,7 +47423,7 @@
|
|
|
47412
47423
|
"type": "",
|
|
47413
47424
|
"optional": false,
|
|
47414
47425
|
"description": "<p>Method set in <code>registerOnChange</code> to propagate changes back to the form.</p>\n",
|
|
47415
|
-
"line":
|
|
47426
|
+
"line": 189,
|
|
47416
47427
|
"rawdescription": "\n\nMethod set in `registerOnChange` to propagate changes back to the form.\n"
|
|
47417
47428
|
},
|
|
47418
47429
|
{
|
|
@@ -47437,7 +47448,7 @@
|
|
|
47437
47448
|
"optional": false,
|
|
47438
47449
|
"returnType": "void",
|
|
47439
47450
|
"typeParameters": [],
|
|
47440
|
-
"line":
|
|
47451
|
+
"line": 213,
|
|
47441
47452
|
"deprecated": false,
|
|
47442
47453
|
"deprecationMessage": "",
|
|
47443
47454
|
"rawdescription": "\n\nCalled when clear button is clicked.\n",
|
|
@@ -47456,7 +47467,7 @@
|
|
|
47456
47467
|
"optional": false,
|
|
47457
47468
|
"returnType": "void",
|
|
47458
47469
|
"typeParameters": [],
|
|
47459
|
-
"line":
|
|
47470
|
+
"line": 285,
|
|
47460
47471
|
"deprecated": false,
|
|
47461
47472
|
"deprecationMessage": "",
|
|
47462
47473
|
"rawdescription": "\n\nCalled when IME composition finishes.\n",
|
|
@@ -47495,7 +47506,7 @@
|
|
|
47495
47506
|
"optional": false,
|
|
47496
47507
|
"returnType": "void",
|
|
47497
47508
|
"typeParameters": [],
|
|
47498
|
-
"line":
|
|
47509
|
+
"line": 277,
|
|
47499
47510
|
"deprecated": false,
|
|
47500
47511
|
"deprecationMessage": "",
|
|
47501
47512
|
"rawdescription": "\n\nCalled when using IME composition.\n",
|
|
@@ -47527,7 +47538,7 @@
|
|
|
47527
47538
|
"optional": false,
|
|
47528
47539
|
"returnType": "void",
|
|
47529
47540
|
"typeParameters": [],
|
|
47530
|
-
"line":
|
|
47541
|
+
"line": 219,
|
|
47531
47542
|
"deprecated": false,
|
|
47532
47543
|
"deprecationMessage": ""
|
|
47533
47544
|
},
|
|
@@ -47544,7 +47555,7 @@
|
|
|
47544
47555
|
"optional": false,
|
|
47545
47556
|
"returnType": "void",
|
|
47546
47557
|
"typeParameters": [],
|
|
47547
|
-
"line":
|
|
47558
|
+
"line": 263,
|
|
47548
47559
|
"deprecated": false,
|
|
47549
47560
|
"deprecationMessage": "",
|
|
47550
47561
|
"decorators": [
|
|
@@ -47581,7 +47592,7 @@
|
|
|
47581
47592
|
"optional": false,
|
|
47582
47593
|
"returnType": "void",
|
|
47583
47594
|
"typeParameters": [],
|
|
47584
|
-
"line":
|
|
47595
|
+
"line": 251,
|
|
47585
47596
|
"deprecated": false,
|
|
47586
47597
|
"deprecationMessage": "",
|
|
47587
47598
|
"decorators": [
|
|
@@ -47618,7 +47629,7 @@
|
|
|
47618
47629
|
"optional": false,
|
|
47619
47630
|
"returnType": "void",
|
|
47620
47631
|
"typeParameters": [],
|
|
47621
|
-
"line":
|
|
47632
|
+
"line": 231,
|
|
47622
47633
|
"deprecated": false,
|
|
47623
47634
|
"deprecationMessage": "",
|
|
47624
47635
|
"decorators": [
|
|
@@ -47648,7 +47659,7 @@
|
|
|
47648
47659
|
"optional": false,
|
|
47649
47660
|
"returnType": "void",
|
|
47650
47661
|
"typeParameters": [],
|
|
47651
|
-
"line":
|
|
47662
|
+
"line": 206,
|
|
47652
47663
|
"deprecated": false,
|
|
47653
47664
|
"deprecationMessage": "",
|
|
47654
47665
|
"rawdescription": "\n\nCalled on enter.\n",
|
|
@@ -47667,7 +47678,7 @@
|
|
|
47667
47678
|
"optional": false,
|
|
47668
47679
|
"returnType": "void",
|
|
47669
47680
|
"typeParameters": [],
|
|
47670
|
-
"line":
|
|
47681
|
+
"line": 195,
|
|
47671
47682
|
"deprecated": false,
|
|
47672
47683
|
"deprecationMessage": "",
|
|
47673
47684
|
"rawdescription": "\n\nCalled when text is written in the input.\n",
|
|
@@ -47675,8 +47686,8 @@
|
|
|
47675
47686
|
"jsdoctags": [
|
|
47676
47687
|
{
|
|
47677
47688
|
"name": {
|
|
47678
|
-
"pos":
|
|
47679
|
-
"end":
|
|
47689
|
+
"pos": 4593,
|
|
47690
|
+
"end": 4599,
|
|
47680
47691
|
"flags": 16842752,
|
|
47681
47692
|
"modifierFlagsCache": 0,
|
|
47682
47693
|
"transformFlags": 0,
|
|
@@ -47687,8 +47698,8 @@
|
|
|
47687
47698
|
"deprecated": false,
|
|
47688
47699
|
"deprecationMessage": "",
|
|
47689
47700
|
"tagName": {
|
|
47690
|
-
"pos":
|
|
47691
|
-
"end":
|
|
47701
|
+
"pos": 4587,
|
|
47702
|
+
"end": 4592,
|
|
47692
47703
|
"flags": 16842752,
|
|
47693
47704
|
"modifierFlagsCache": 0,
|
|
47694
47705
|
"transformFlags": 0,
|
|
@@ -47705,7 +47716,7 @@
|
|
|
47705
47716
|
"optional": false,
|
|
47706
47717
|
"returnType": "void",
|
|
47707
47718
|
"typeParameters": [],
|
|
47708
|
-
"line":
|
|
47719
|
+
"line": 224,
|
|
47709
47720
|
"deprecated": false,
|
|
47710
47721
|
"deprecationMessage": ""
|
|
47711
47722
|
},
|
|
@@ -47722,7 +47733,7 @@
|
|
|
47722
47733
|
"optional": false,
|
|
47723
47734
|
"returnType": "void",
|
|
47724
47735
|
"typeParameters": [],
|
|
47725
|
-
"line":
|
|
47736
|
+
"line": 169,
|
|
47726
47737
|
"deprecated": false,
|
|
47727
47738
|
"deprecationMessage": "",
|
|
47728
47739
|
"rawdescription": "\n\nSets a method in order to propagate changes back to the form.\n",
|
|
@@ -47755,7 +47766,7 @@
|
|
|
47755
47766
|
"optional": false,
|
|
47756
47767
|
"returnType": "void",
|
|
47757
47768
|
"typeParameters": [],
|
|
47758
|
-
"line":
|
|
47769
|
+
"line": 177,
|
|
47759
47770
|
"deprecated": false,
|
|
47760
47771
|
"deprecationMessage": "",
|
|
47761
47772
|
"rawdescription": "\n\nRegisters a callback to be triggered when the control has been touched.\n",
|
|
@@ -47766,8 +47777,8 @@
|
|
|
47766
47777
|
"jsdoctags": [
|
|
47767
47778
|
{
|
|
47768
47779
|
"name": {
|
|
47769
|
-
"pos":
|
|
47770
|
-
"end":
|
|
47780
|
+
"pos": 4139,
|
|
47781
|
+
"end": 4141,
|
|
47771
47782
|
"flags": 16842752,
|
|
47772
47783
|
"modifierFlagsCache": 0,
|
|
47773
47784
|
"transformFlags": 0,
|
|
@@ -47778,8 +47789,8 @@
|
|
|
47778
47789
|
"deprecated": false,
|
|
47779
47790
|
"deprecationMessage": "",
|
|
47780
47791
|
"tagName": {
|
|
47781
|
-
"pos":
|
|
47782
|
-
"end":
|
|
47792
|
+
"pos": 4133,
|
|
47793
|
+
"end": 4138,
|
|
47783
47794
|
"flags": 16842752,
|
|
47784
47795
|
"modifierFlagsCache": 0,
|
|
47785
47796
|
"transformFlags": 0,
|
|
@@ -47803,7 +47814,7 @@
|
|
|
47803
47814
|
"optional": false,
|
|
47804
47815
|
"returnType": "void",
|
|
47805
47816
|
"typeParameters": [],
|
|
47806
|
-
"line":
|
|
47817
|
+
"line": 162,
|
|
47807
47818
|
"deprecated": false,
|
|
47808
47819
|
"deprecationMessage": "",
|
|
47809
47820
|
"rawdescription": "\n\nThis is the initial value set to the component\n",
|
|
@@ -47814,8 +47825,8 @@
|
|
|
47814
47825
|
"jsdoctags": [
|
|
47815
47826
|
{
|
|
47816
47827
|
"name": {
|
|
47817
|
-
"pos":
|
|
47818
|
-
"end":
|
|
47828
|
+
"pos": 3815,
|
|
47829
|
+
"end": 3820,
|
|
47819
47830
|
"flags": 16842752,
|
|
47820
47831
|
"modifierFlagsCache": 0,
|
|
47821
47832
|
"transformFlags": 0,
|
|
@@ -47826,8 +47837,8 @@
|
|
|
47826
47837
|
"deprecated": false,
|
|
47827
47838
|
"deprecationMessage": "",
|
|
47828
47839
|
"tagName": {
|
|
47829
|
-
"pos":
|
|
47830
|
-
"end":
|
|
47840
|
+
"pos": 3809,
|
|
47841
|
+
"end": 3814,
|
|
47831
47842
|
"flags": 16842752,
|
|
47832
47843
|
"modifierFlagsCache": 0,
|
|
47833
47844
|
"transformFlags": 0,
|
|
@@ -47849,6 +47860,14 @@
|
|
|
47849
47860
|
"line": 40,
|
|
47850
47861
|
"type": "boolean",
|
|
47851
47862
|
"decorators": []
|
|
47863
|
+
},
|
|
47864
|
+
{
|
|
47865
|
+
"name": "class.cds--text-input--fluid__skeleton",
|
|
47866
|
+
"deprecated": false,
|
|
47867
|
+
"deprecationMessage": "",
|
|
47868
|
+
"line": 44,
|
|
47869
|
+
"type": "boolean",
|
|
47870
|
+
"decorators": []
|
|
47852
47871
|
}
|
|
47853
47872
|
],
|
|
47854
47873
|
"hostListeners": [
|
|
@@ -47869,7 +47888,7 @@
|
|
|
47869
47888
|
"deprecationMessage": "",
|
|
47870
47889
|
"rawdescription": "\n\nCalled when IME composition finishes.\n",
|
|
47871
47890
|
"description": "<p>Called when IME composition finishes.</p>\n",
|
|
47872
|
-
"line":
|
|
47891
|
+
"line": 285
|
|
47873
47892
|
},
|
|
47874
47893
|
{
|
|
47875
47894
|
"name": "compositionstart",
|
|
@@ -47888,7 +47907,7 @@
|
|
|
47888
47907
|
"deprecationMessage": "",
|
|
47889
47908
|
"rawdescription": "\n\nCalled when using IME composition.\n",
|
|
47890
47909
|
"description": "<p>Called when using IME composition.</p>\n",
|
|
47891
|
-
"line":
|
|
47910
|
+
"line": 277
|
|
47892
47911
|
},
|
|
47893
47912
|
{
|
|
47894
47913
|
"name": "focusin",
|
|
@@ -47905,7 +47924,7 @@
|
|
|
47905
47924
|
],
|
|
47906
47925
|
"deprecated": false,
|
|
47907
47926
|
"deprecationMessage": "",
|
|
47908
|
-
"line":
|
|
47927
|
+
"line": 263
|
|
47909
47928
|
},
|
|
47910
47929
|
{
|
|
47911
47930
|
"name": "focusout",
|
|
@@ -47922,7 +47941,7 @@
|
|
|
47922
47941
|
],
|
|
47923
47942
|
"deprecated": false,
|
|
47924
47943
|
"deprecationMessage": "",
|
|
47925
|
-
"line":
|
|
47944
|
+
"line": 251
|
|
47926
47945
|
},
|
|
47927
47946
|
{
|
|
47928
47947
|
"name": "keydown",
|
|
@@ -47939,7 +47958,7 @@
|
|
|
47939
47958
|
],
|
|
47940
47959
|
"deprecated": false,
|
|
47941
47960
|
"deprecationMessage": "",
|
|
47942
|
-
"line":
|
|
47961
|
+
"line": 231
|
|
47943
47962
|
}
|
|
47944
47963
|
],
|
|
47945
47964
|
"standalone": false,
|
|
@@ -47947,7 +47966,7 @@
|
|
|
47947
47966
|
"description": "<p>Get started with importing the module:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { SearchModule } from 'carbon-components-angular';</code></pre></div><p><a href=\"../../?path=/story/components-search--basic\">See demo</a></p>\n",
|
|
47948
47967
|
"rawdescription": "\n\nGet started with importing the module:\n\n```typescript\nimport { SearchModule } from 'carbon-components-angular';\n```\n\n[See demo](../../?path=/story/components-search--basic)\n",
|
|
47949
47968
|
"type": "component",
|
|
47950
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tEventEmitter,\n\tOutput,\n\tHostBinding,\n\tElementRef,\n\tHostListener,\n\tViewChild\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from \"@angular/forms\";\nimport { I18n } from \"carbon-components-angular/i18n\";\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { SearchModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-search--basic)\n */\n@Component({\n\tselector: \"cds-search, ibm-search\",\n\ttemplateUrl: \"search.component.html\",\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Search,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Search implements ControlValueAccessor {\n\t/**\n\t * Variable used for creating unique ids for search components.\n\t */\n\tstatic searchCount = 0;\n\n\t@HostBinding(\"class.cds--form-item\") get containerClass() {\n\t\treturn !(this.toolbar || this.expandable);\n\t}\n\n\t/**\n\t * @deprecated since v5 - Use `cdsLayer` directive instead\n\t * `light` or `dark` search theme.\n\t */\n\t@Input() theme: \"light\" | \"dark\" = \"dark\";\n\n\t/**\n\t * Size of the search field.\n\t */\n\t@Input() size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\n\t/**\n\t * Set to `true` for a disabled search input.\n\t */\n\t@Input() disabled = false;\n\t/**\n\t * Set to `true` for a toolbar search component.\n\t */\n\t@Input() toolbar = false;\n\t/**\n\t * Set to `true` to make the search component expandable.\n\t * `expandable` would override `toolbar` property behaviours.\n\t */\n\t@Input() expandable = false;\n\t/**\n\t * Set to `true` for a loading search component.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Set to `true` to expand the toolbar search component.\n\t */\n\t@Input() active = false;\n\t/**\n\t * Specifies whether the search component is used in the table toolbar.\n\t */\n\t@Input() tableSearch = false;\n\t/**\n\t * Sets the name attribute on the `input` element.\n\t */\n\t@Input() name: string;\n\t/**\n\t * The unique id for the search component.\n\t */\n\t@Input() id = `search-${Search.searchCount}`;\n\t/**\n\t * Reflects the required attribute of the `input` element.\n\t */\n\t@Input() required: boolean;\n\t/**\n\t * Sets the value attribute on the `input` element.\n\t */\n\t@Input() value = \"\";\n\t/**\n\t * Sets the autocomplete attribute on the `input` element.\n\t * For reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values\n\t */\n\t@Input() autocomplete = \"on\";\n\t/**\n\t * Sets the text inside the `label` tag.\n\t */\n\t@Input() label = this.i18n.get().SEARCH.LABEL;\n\t/**\n\t * Sets the placeholder attribute on the `input` element.\n\t */\n\t@Input() placeholder = this.i18n.get().SEARCH.PLACEHOLDER;\n\t/**\n\t * Used to set the `title` attribute of the clear button.\n\t */\n\t@Input() clearButtonTitle = this.i18n.get().SEARCH.CLEAR_BUTTON;\n\t/**\n\t * Title for the search trigger\n\t */\n\t@Input() searchTitle = \"\";\n\t/**\n\t * Sets the aria label on the `div` element with the `search` role.\n\t */\n\t@Input() ariaLabel: string;\n\t/**\n\t * Emits an event when value is changed.\n\t */\n\t@Output() valueChange = new EventEmitter<string>();\n\t@Output() open = new EventEmitter<boolean>();\n\t/**\n\t * Emits an event when the clear button is clicked.\n\t */\n\t@Output() clear = new EventEmitter();\n\t/**\n\t * Emits an event on enter.\n\t */\n\t@Output() search = new EventEmitter<string>();\n\n\t@ViewChild(\"input\") inputRef: ElementRef;\n\n\t/**\n\t * Sets `true` when composing text via IME.\n\t */\n\tprotected isComposing = false;\n\n\t/**\n\t * Creates an instance of `Search`.\n\t * @param i18n The i18n translations.\n\t */\n\tconstructor(protected elementRef: ElementRef, protected i18n: I18n) {\n\t\tSearch.searchCount++;\n\t}\n\n\t/**\n\t * This is the initial value set to the component\n\t * @param value The input value.\n\t */\n\tpublic writeValue(value: any) {\n\t\tthis.value = value;\n\t}\n\n\t/**\n\t * Sets a method in order to propagate changes back to the form.\n\t */\n\tpublic registerOnChange(fn: any) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\t/**\n\t * Registers a callback to be triggered when the control has been touched.\n\t * @param fn Callback to be triggered when the search input is touched.\n\t */\n\tpublic registerOnTouched(fn: any) {\n\t\tthis.onTouched = fn;\n\t}\n\n\t/**\n\t * Called when search input is blurred. Needed to properly implement `ControlValueAccessor`.\n\t */\n\tonTouched: () => any = () => {};\n\n\t/**\n\t * Method set in `registerOnChange` to propagate changes back to the form.\n\t */\n\tpropagateChange = (_: any) => {};\n\n\t/**\n\t * Called when text is written in the input.\n\t * @param search The input text.\n\t */\n\tonSearch(search: string) {\n\t\tif (this.isComposing) { // check for IME use\n\t\t\treturn;\n\t\t}\n\t\tthis.value = search;\n\t\tthis.doValueChange();\n\t}\n\n\t/**\n\t * Called on enter.\n\t */\n\tonEnter() {\n\t\tthis.search.emit(this.value);\n\t}\n\n\t/**\n\t * Called when clear button is clicked.\n\t */\n\tclearSearch(): void {\n\t\tthis.value = \"\";\n\t\tthis.clear.emit();\n\t\tthis.propagateChange(this.value);\n\t}\n\n\tdoValueChange() {\n\t\tthis.valueChange.emit(this.value);\n\t\tthis.propagateChange(this.value);\n\t}\n\n\topenSearch() {\n\t\tthis.active = true;\n\t\tthis.open.emit(this.active);\n\t\tsetTimeout(() => this.inputRef.nativeElement.focus());\n\t}\n\n\t@HostListener(\"keydown\", [\"$event\"])\n\tkeyDown(event: KeyboardEvent) {\n\t\tif (this.toolbar || this.expandable) {\n\t\t\tif (event.key === \"Escape\") {\n\t\t\t\tif (this.value === \"\") {\n\t\t\t\t\tthis.active = false;\n\t\t\t\t\tthis.open.emit(this.active);\n\t\t\t\t}\n\t\t\t} else if (event.key === \"Enter\") {\n\t\t\t\tthis.openSearch();\n\t\t\t}\n\t\t}\n\n\t\tif (event.key === \"Escape\") {\n\t\t\tif (this.value !== \"\") {\n\t\t\t\tthis.clearSearch();\n\t\t\t}\n\t\t}\n\t}\n\n\t@HostListener(\"focusout\", [\"$event\"])\n\tfocusOut(event) {\n\t\tthis.onTouched();\n\t\tif ((this.expandable || this.toolbar) &&\n\t\t\tthis.inputRef &&\n\t\t\tthis.inputRef.nativeElement.value === \"\" &&\n\t\t\t!(this.elementRef.nativeElement as HTMLElement).contains(event.relatedTarget)) {\n\t\t\tthis.active = false;\n\t\t\tthis.open.emit(this.active);\n\t\t}\n\t}\n\n\t@HostListener(\"focusin\", [\"$event\"])\n\tfocusIn(event) {\n\t\tthis.onTouched();\n\t\t// set input focus if search icon get focus from tab key press event.\n\t\tif ((this.expandable || this.toolbar) &&\n\t\t\tthis.inputRef && !event.relatedTarget &&\n\t\t\t!(this.elementRef.nativeElement as HTMLElement).contains(event.relatedTarget) ) {\n\t\t\tthis.openSearch();\n\t\t}\n\t}\n\n\t/**\n\t * Called when using IME composition.\n\t */\n\t@HostListener(\"compositionstart\", [\"$event\"])\n\tcompositionStart(event) {\n\t\tthis.isComposing = true;\n\t}\n\n\t/**\n\t * Called when IME composition finishes.\n\t */\n\t@HostListener(\"compositionend\", [\"$event\"])\n\tcompositionEnd(event) {\n\t\tthis.isComposing = false;\n\t\tthis.onSearch(this.value + event.data);\n\t}\n}\n",
|
|
47969
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tEventEmitter,\n\tOutput,\n\tHostBinding,\n\tElementRef,\n\tHostListener,\n\tViewChild\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from \"@angular/forms\";\nimport { I18n } from \"carbon-components-angular/i18n\";\n\n/**\n * Get started with importing the module:\n *\n * ```typescript\n * import { SearchModule } from 'carbon-components-angular';\n * ```\n *\n * [See demo](../../?path=/story/components-search--basic)\n */\n@Component({\n\tselector: \"cds-search, ibm-search\",\n\ttemplateUrl: \"search.component.html\",\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Search,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Search implements ControlValueAccessor {\n\t/**\n\t * Variable used for creating unique ids for search components.\n\t */\n\tstatic searchCount = 0;\n\n\t@HostBinding(\"class.cds--form-item\") get containerClass() {\n\t\treturn !(this.toolbar || this.expandable);\n\t}\n\n\t@HostBinding(\"class.cds--text-input--fluid__skeleton\") get fluidSkeletonClass() {\n\t\treturn this.skeleton && this.fluid;\n\t}\n\n\t/**\n\t * @deprecated since v5 - Use `cdsLayer` directive instead\n\t * `light` or `dark` search theme.\n\t */\n\t@Input() theme: \"light\" | \"dark\" = \"dark\";\n\n\t/**\n\t * Size of the search field.\n\t */\n\t@Input() size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\n\t/**\n\t * Set to `true` for a disabled search input.\n\t */\n\t@Input() disabled = false;\n\t/**\n\t * Set to `true` for a toolbar search component.\n\t */\n\t@Input() toolbar = false;\n\t/**\n\t * Set to `true` to make the search component expandable.\n\t * `expandable` would override `toolbar` property behaviours.\n\t */\n\t@Input() expandable = false;\n\t/**\n\t * Set to `true` for a loading search component.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Set to `true` to expand the toolbar search component.\n\t */\n\t@Input() active = false;\n\t/**\n\t * Specifies whether the search component is used in the table toolbar.\n\t */\n\t@Input() tableSearch = false;\n\t/**\n\t * Sets the name attribute on the `input` element.\n\t */\n\t@Input() name: string;\n\t/**\n\t * The unique id for the search component.\n\t */\n\t@Input() id = `search-${Search.searchCount}`;\n\t/**\n\t * Reflects the required attribute of the `input` element.\n\t */\n\t@Input() required: boolean;\n\t/**\n\t * Sets the value attribute on the `input` element.\n\t */\n\t@Input() value = \"\";\n\t/**\n\t * Sets the autocomplete attribute on the `input` element.\n\t * For reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values\n\t */\n\t@Input() autocomplete = \"on\";\n\t/**\n\t * Sets the text inside the `label` tag.\n\t */\n\t@Input() label = this.i18n.get().SEARCH.LABEL;\n\t/**\n\t * Sets the placeholder attribute on the `input` element.\n\t */\n\t@Input() placeholder = this.i18n.get().SEARCH.PLACEHOLDER;\n\t/**\n\t * Used to set the `title` attribute of the clear button.\n\t */\n\t@Input() clearButtonTitle = this.i18n.get().SEARCH.CLEAR_BUTTON;\n\t/**\n\t * Title for the search trigger\n\t */\n\t@Input() searchTitle = \"\";\n\t/**\n\t * Sets the aria label on the `div` element with the `search` role.\n\t */\n\t@Input() ariaLabel: string;\n\t/**\n\t * Experimental: enable fluid state\n\t */\n\t@Input() fluid = false;\n\t/**\n\t * Emits an event when value is changed.\n\t */\n\t@Output() valueChange = new EventEmitter<string>();\n\t@Output() open = new EventEmitter<boolean>();\n\t/**\n\t * Emits an event when the clear button is clicked.\n\t */\n\t@Output() clear = new EventEmitter();\n\t/**\n\t * Emits an event on enter.\n\t */\n\t@Output() search = new EventEmitter<string>();\n\n\t@ViewChild(\"input\") inputRef: ElementRef;\n\n\t/**\n\t * Sets `true` when composing text via IME.\n\t */\n\tprotected isComposing = false;\n\n\t/**\n\t * Creates an instance of `Search`.\n\t * @param i18n The i18n translations.\n\t */\n\tconstructor(protected elementRef: ElementRef, protected i18n: I18n) {\n\t\tSearch.searchCount++;\n\t}\n\n\t/**\n\t * This is the initial value set to the component\n\t * @param value The input value.\n\t */\n\tpublic writeValue(value: any) {\n\t\tthis.value = value;\n\t}\n\n\t/**\n\t * Sets a method in order to propagate changes back to the form.\n\t */\n\tpublic registerOnChange(fn: any) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\t/**\n\t * Registers a callback to be triggered when the control has been touched.\n\t * @param fn Callback to be triggered when the search input is touched.\n\t */\n\tpublic registerOnTouched(fn: any) {\n\t\tthis.onTouched = fn;\n\t}\n\n\t/**\n\t * Called when search input is blurred. Needed to properly implement `ControlValueAccessor`.\n\t */\n\tonTouched: () => any = () => {};\n\n\t/**\n\t * Method set in `registerOnChange` to propagate changes back to the form.\n\t */\n\tpropagateChange = (_: any) => {};\n\n\t/**\n\t * Called when text is written in the input.\n\t * @param search The input text.\n\t */\n\tonSearch(search: string) {\n\t\tif (this.isComposing) { // check for IME use\n\t\t\treturn;\n\t\t}\n\t\tthis.value = search;\n\t\tthis.doValueChange();\n\t}\n\n\t/**\n\t * Called on enter.\n\t */\n\tonEnter() {\n\t\tthis.search.emit(this.value);\n\t}\n\n\t/**\n\t * Called when clear button is clicked.\n\t */\n\tclearSearch(): void {\n\t\tthis.value = \"\";\n\t\tthis.clear.emit();\n\t\tthis.propagateChange(this.value);\n\t}\n\n\tdoValueChange() {\n\t\tthis.valueChange.emit(this.value);\n\t\tthis.propagateChange(this.value);\n\t}\n\n\topenSearch() {\n\t\tthis.active = true;\n\t\tthis.open.emit(this.active);\n\t\tsetTimeout(() => this.inputRef.nativeElement.focus());\n\t}\n\n\t@HostListener(\"keydown\", [\"$event\"])\n\tkeyDown(event: KeyboardEvent) {\n\t\tif (this.toolbar || this.expandable) {\n\t\t\tif (event.key === \"Escape\") {\n\t\t\t\tif (this.value === \"\") {\n\t\t\t\t\tthis.active = false;\n\t\t\t\t\tthis.open.emit(this.active);\n\t\t\t\t}\n\t\t\t} else if (event.key === \"Enter\") {\n\t\t\t\tthis.openSearch();\n\t\t\t}\n\t\t}\n\n\t\tif (event.key === \"Escape\") {\n\t\t\tif (this.value !== \"\") {\n\t\t\t\tthis.clearSearch();\n\t\t\t}\n\t\t}\n\t}\n\n\t@HostListener(\"focusout\", [\"$event\"])\n\tfocusOut(event) {\n\t\tthis.onTouched();\n\t\tif ((this.expandable || this.toolbar) &&\n\t\t\tthis.inputRef &&\n\t\t\tthis.inputRef.nativeElement.value === \"\" &&\n\t\t\t!(this.elementRef.nativeElement as HTMLElement).contains(event.relatedTarget)) {\n\t\t\tthis.active = false;\n\t\t\tthis.open.emit(this.active);\n\t\t}\n\t}\n\n\t@HostListener(\"focusin\", [\"$event\"])\n\tfocusIn(event) {\n\t\tthis.onTouched();\n\t\t// set input focus if search icon get focus from tab key press event.\n\t\tif ((this.expandable || this.toolbar) &&\n\t\t\tthis.inputRef && !event.relatedTarget &&\n\t\t\t!(this.elementRef.nativeElement as HTMLElement).contains(event.relatedTarget) ) {\n\t\t\tthis.openSearch();\n\t\t}\n\t}\n\n\t/**\n\t * Called when using IME composition.\n\t */\n\t@HostListener(\"compositionstart\", [\"$event\"])\n\tcompositionStart(event) {\n\t\tthis.isComposing = true;\n\t}\n\n\t/**\n\t * Called when IME composition finishes.\n\t */\n\t@HostListener(\"compositionend\", [\"$event\"])\n\tcompositionEnd(event) {\n\t\tthis.isComposing = false;\n\t\tthis.onSearch(this.value + event.data);\n\t}\n}\n",
|
|
47951
47970
|
"assetsDirs": [],
|
|
47952
47971
|
"styleUrlsData": "",
|
|
47953
47972
|
"stylesData": "",
|
|
@@ -47970,7 +47989,7 @@
|
|
|
47970
47989
|
"deprecationMessage": ""
|
|
47971
47990
|
}
|
|
47972
47991
|
],
|
|
47973
|
-
"line":
|
|
47992
|
+
"line": 148,
|
|
47974
47993
|
"rawdescription": "\n\nCreates an instance of `Search`.\n",
|
|
47975
47994
|
"jsdoctags": [
|
|
47976
47995
|
{
|
|
@@ -47984,8 +48003,8 @@
|
|
|
47984
48003
|
},
|
|
47985
48004
|
{
|
|
47986
48005
|
"name": {
|
|
47987
|
-
"pos":
|
|
47988
|
-
"end":
|
|
48006
|
+
"pos": 3616,
|
|
48007
|
+
"end": 3620,
|
|
47989
48008
|
"flags": 16842752,
|
|
47990
48009
|
"modifierFlagsCache": 0,
|
|
47991
48010
|
"transformFlags": 0,
|
|
@@ -47996,8 +48015,8 @@
|
|
|
47996
48015
|
"deprecated": false,
|
|
47997
48016
|
"deprecationMessage": "",
|
|
47998
48017
|
"tagName": {
|
|
47999
|
-
"pos":
|
|
48000
|
-
"end":
|
|
48018
|
+
"pos": 3610,
|
|
48019
|
+
"end": 3615,
|
|
48001
48020
|
"flags": 16842752,
|
|
48002
48021
|
"modifierFlagsCache": 0,
|
|
48003
48022
|
"transformFlags": 0,
|
|
@@ -48021,9 +48040,18 @@
|
|
|
48021
48040
|
"returnType": "",
|
|
48022
48041
|
"line": 40
|
|
48023
48042
|
}
|
|
48043
|
+
},
|
|
48044
|
+
"fluidSkeletonClass": {
|
|
48045
|
+
"name": "fluidSkeletonClass",
|
|
48046
|
+
"getSignature": {
|
|
48047
|
+
"name": "fluidSkeletonClass",
|
|
48048
|
+
"type": "",
|
|
48049
|
+
"returnType": "",
|
|
48050
|
+
"line": 44
|
|
48051
|
+
}
|
|
48024
48052
|
}
|
|
48025
48053
|
},
|
|
48026
|
-
"templateData": "<div\n\tclass=\"cds--search\"\n\t[ngClass]=\"{\n\t\t'cds--search--sm': size === 'sm',\n\t\t'cds--search--md': size === 'md',\n\t\t'cds--search--lg': size === 'lg',\n\t\t'cds--search--light': theme === 'light',\n\t\t'cds--skeleton': skeleton,\n\t\t'cds--search--expandable': expandable && !tableSearch,\n\t\t'cds--search--expanded': expandable && !tableSearch && active,\n\t\t'cds--toolbar-search': toolbar && !expandable,\n\t\t'cds--toolbar-search--active': toolbar && !expandable && active,\n\t\t'cds--toolbar-search-container-persistent': tableSearch && !expandable,\n\t\t'cds--toolbar-search-container-expandable': tableSearch && expandable,\n\t\t'cds--toolbar-search-container-active': tableSearch && expandable && active\n\t}\"\n\trole=\"search\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t(click)=\"openSearch()\">\n\t<label
|
|
48054
|
+
"templateData": "<div\n\tclass=\"cds--search\"\n\t[ngClass]=\"{\n\t\t'cds--search--sm': size === 'sm',\n\t\t'cds--search--md': size === 'md',\n\t\t'cds--search--lg': size === 'lg',\n\t\t'cds--search--light': theme === 'light',\n\t\t'cds--skeleton': skeleton && !fluid,\n\t\t'cds--search--expandable': expandable && !tableSearch,\n\t\t'cds--search--expanded': expandable && !tableSearch && active,\n\t\t'cds--toolbar-search': toolbar && !expandable,\n\t\t'cds--toolbar-search--active': toolbar && !expandable && active,\n\t\t'cds--toolbar-search-container-persistent': tableSearch && !expandable,\n\t\t'cds--toolbar-search-container-expandable': tableSearch && expandable,\n\t\t'cds--toolbar-search-container-active': tableSearch && expandable && active,\n\t\t'cds--search--fluid': fluid,\n\t\t'cds--search--disabled': disabled\n\t}\"\n\trole=\"search\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t(click)=\"openSearch()\">\n\t<label\n\t\tclass=\"cds--label\"\n\t\t[for]=\"id\"\n\t\t[ngClass]=\"{ 'cds--skeleton': skeleton && fluid }\">\n\t\t{{ !skeleton ? label : ''}}\n\t</label>\n\n\t<div *ngIf=\"skeleton; else enableInput\" class=\"cds--text-input cds--skeleton\"></div>\n\t<ng-template #enableInput>\n\t\t<input\n\t\t\t#input\n\t\t\tclass=\"cds--search-input\"\n\t\t\t[type]=\"tableSearch || !toolbar ? 'text' : 'search'\"\n\t\t\t[id]=\"id\"\n\t\t\t[value]=\"value\"\n\t\t\t[autocomplete]=\"autocomplete\"\n\t\t\t[placeholder]=\"placeholder\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[required]=\"required\"\n\t\t\t(input)=\"onSearch($event.target.value)\"\n\t\t\t(keyup.enter)=\"onEnter()\"/>\n\t\t<button\n\t\t\t*ngIf=\"!tableSearch && toolbar\"\n\t\t\tclass=\"cds--toolbar-search__btn\"\n\t\t\t(click)=\"openSearch()\"\n\t\t\taria-label=\"Open search\">\n\t\t\t<svg cdsIcon=\"search\" size=\"16\" class=\"cds--search-magnifier-icon\"></svg>\n\t\t</button>\n\t\t<svg\n\t\t\tcdsIcon=\"search\"\n\t\t\t*ngIf=\"tableSearch || !toolbar\"\n\t\t\tclass=\"cds--search-magnifier-icon\"\n\t\t\tsize=\"16\">\n\t\t</svg>\n\t</ng-template>\n\n\t<button\n\t\t*ngIf=\"tableSearch || !toolbar\"\n\t\tclass=\"cds--search-close\"\n\t\t[ngClass]=\"{\n\t\t\t'cds--search-close--hidden': !value || value.length === 0\n\t\t}\"\n\t\t[title]=\"clearButtonTitle\"\n\t\t(click)=\"clearSearch()\">\n\t\t<span class=\"cds--visually-hidden\">{{ clearButtonTitle }}</span>\n\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t</button>\n</div>\n"
|
|
48027
48055
|
},
|
|
48028
48056
|
{
|
|
48029
48057
|
"name": "Select",
|
|
@@ -59051,7 +59079,7 @@
|
|
|
59051
59079
|
"deprecationMessage": "",
|
|
59052
59080
|
"rawdescription": "\n\nSet to `true` to expand the toolbar search component.\n",
|
|
59053
59081
|
"description": "<p>Set to <code>true</code> to expand the toolbar search component.</p>\n",
|
|
59054
|
-
"line":
|
|
59082
|
+
"line": 79,
|
|
59055
59083
|
"type": "boolean",
|
|
59056
59084
|
"decorators": [],
|
|
59057
59085
|
"inheritance": {
|
|
@@ -59064,7 +59092,7 @@
|
|
|
59064
59092
|
"deprecationMessage": "",
|
|
59065
59093
|
"rawdescription": "\n\nSets the aria label on the `div` element with the `search` role.\n",
|
|
59066
59094
|
"description": "<p>Sets the aria label on the <code>div</code> element with the <code>search</code> role.</p>\n",
|
|
59067
|
-
"line":
|
|
59095
|
+
"line": 124,
|
|
59068
59096
|
"type": "string",
|
|
59069
59097
|
"decorators": [],
|
|
59070
59098
|
"inheritance": {
|
|
@@ -59078,7 +59106,7 @@
|
|
|
59078
59106
|
"deprecationMessage": "",
|
|
59079
59107
|
"rawdescription": "\n\nSets the autocomplete attribute on the `input` element.\nFor reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values\n",
|
|
59080
59108
|
"description": "<p>Sets the autocomplete attribute on the <code>input</code> element.\nFor reference: <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values\">https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#Values</a></p>\n",
|
|
59081
|
-
"line":
|
|
59109
|
+
"line": 104,
|
|
59082
59110
|
"type": "string",
|
|
59083
59111
|
"decorators": [],
|
|
59084
59112
|
"inheritance": {
|
|
@@ -59092,7 +59120,7 @@
|
|
|
59092
59120
|
"deprecationMessage": "",
|
|
59093
59121
|
"rawdescription": "\n\nUsed to set the `title` attribute of the clear button.\n",
|
|
59094
59122
|
"description": "<p>Used to set the <code>title</code> attribute of the clear button.</p>\n",
|
|
59095
|
-
"line":
|
|
59123
|
+
"line": 116,
|
|
59096
59124
|
"type": "any",
|
|
59097
59125
|
"decorators": [],
|
|
59098
59126
|
"inheritance": {
|
|
@@ -59106,7 +59134,7 @@
|
|
|
59106
59134
|
"deprecationMessage": "",
|
|
59107
59135
|
"rawdescription": "\n\nSet to `true` for a disabled search input.\n",
|
|
59108
59136
|
"description": "<p>Set to <code>true</code> for a disabled search input.</p>\n",
|
|
59109
|
-
"line":
|
|
59137
|
+
"line": 62,
|
|
59110
59138
|
"type": "boolean",
|
|
59111
59139
|
"decorators": [],
|
|
59112
59140
|
"inheritance": {
|
|
@@ -59120,7 +59148,21 @@
|
|
|
59120
59148
|
"deprecationMessage": "",
|
|
59121
59149
|
"rawdescription": "\n\nSet to `true` to make the search component expandable.\n`expandable` would override `toolbar` property behaviours.\n",
|
|
59122
59150
|
"description": "<p>Set to <code>true</code> to make the search component expandable.\n<code>expandable</code> would override <code>toolbar</code> property behaviours.</p>\n",
|
|
59123
|
-
"line":
|
|
59151
|
+
"line": 71,
|
|
59152
|
+
"type": "boolean",
|
|
59153
|
+
"decorators": [],
|
|
59154
|
+
"inheritance": {
|
|
59155
|
+
"file": "Search"
|
|
59156
|
+
}
|
|
59157
|
+
},
|
|
59158
|
+
{
|
|
59159
|
+
"name": "fluid",
|
|
59160
|
+
"defaultValue": "false",
|
|
59161
|
+
"deprecated": false,
|
|
59162
|
+
"deprecationMessage": "",
|
|
59163
|
+
"rawdescription": "\n\nExperimental: enable fluid state\n",
|
|
59164
|
+
"description": "<p>Experimental: enable fluid state</p>\n",
|
|
59165
|
+
"line": 128,
|
|
59124
59166
|
"type": "boolean",
|
|
59125
59167
|
"decorators": [],
|
|
59126
59168
|
"inheritance": {
|
|
@@ -59134,7 +59176,7 @@
|
|
|
59134
59176
|
"deprecationMessage": "",
|
|
59135
59177
|
"rawdescription": "\n\nThe unique id for the search component.\n",
|
|
59136
59178
|
"description": "<p>The unique id for the search component.</p>\n",
|
|
59137
|
-
"line":
|
|
59179
|
+
"line": 91,
|
|
59138
59180
|
"type": "string",
|
|
59139
59181
|
"decorators": [],
|
|
59140
59182
|
"inheritance": {
|
|
@@ -59148,7 +59190,7 @@
|
|
|
59148
59190
|
"deprecationMessage": "",
|
|
59149
59191
|
"rawdescription": "\n\nSets the text inside the `label` tag.\n",
|
|
59150
59192
|
"description": "<p>Sets the text inside the <code>label</code> tag.</p>\n",
|
|
59151
|
-
"line":
|
|
59193
|
+
"line": 108,
|
|
59152
59194
|
"type": "any",
|
|
59153
59195
|
"decorators": [],
|
|
59154
59196
|
"inheritance": {
|
|
@@ -59161,7 +59203,7 @@
|
|
|
59161
59203
|
"deprecationMessage": "",
|
|
59162
59204
|
"rawdescription": "\n\nSets the name attribute on the `input` element.\n",
|
|
59163
59205
|
"description": "<p>Sets the name attribute on the <code>input</code> element.</p>\n",
|
|
59164
|
-
"line":
|
|
59206
|
+
"line": 87,
|
|
59165
59207
|
"type": "string",
|
|
59166
59208
|
"decorators": [],
|
|
59167
59209
|
"inheritance": {
|
|
@@ -59175,7 +59217,7 @@
|
|
|
59175
59217
|
"deprecationMessage": "",
|
|
59176
59218
|
"rawdescription": "\n\nSets the placeholder attribute on the `input` element.\n",
|
|
59177
59219
|
"description": "<p>Sets the placeholder attribute on the <code>input</code> element.</p>\n",
|
|
59178
|
-
"line":
|
|
59220
|
+
"line": 112,
|
|
59179
59221
|
"type": "any",
|
|
59180
59222
|
"decorators": [],
|
|
59181
59223
|
"inheritance": {
|
|
@@ -59188,7 +59230,7 @@
|
|
|
59188
59230
|
"deprecationMessage": "",
|
|
59189
59231
|
"rawdescription": "\n\nReflects the required attribute of the `input` element.\n",
|
|
59190
59232
|
"description": "<p>Reflects the required attribute of the <code>input</code> element.</p>\n",
|
|
59191
|
-
"line":
|
|
59233
|
+
"line": 95,
|
|
59192
59234
|
"type": "boolean",
|
|
59193
59235
|
"decorators": [],
|
|
59194
59236
|
"inheritance": {
|
|
@@ -59202,7 +59244,7 @@
|
|
|
59202
59244
|
"deprecationMessage": "",
|
|
59203
59245
|
"rawdescription": "\n\nTitle for the search trigger\n",
|
|
59204
59246
|
"description": "<p>Title for the search trigger</p>\n",
|
|
59205
|
-
"line":
|
|
59247
|
+
"line": 120,
|
|
59206
59248
|
"type": "string",
|
|
59207
59249
|
"decorators": [],
|
|
59208
59250
|
"inheritance": {
|
|
@@ -59216,7 +59258,7 @@
|
|
|
59216
59258
|
"deprecationMessage": "",
|
|
59217
59259
|
"rawdescription": "\n\nSize of the search field.\n",
|
|
59218
59260
|
"description": "<p>Size of the search field.</p>\n",
|
|
59219
|
-
"line":
|
|
59261
|
+
"line": 57,
|
|
59220
59262
|
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
59221
59263
|
"decorators": [],
|
|
59222
59264
|
"inheritance": {
|
|
@@ -59230,7 +59272,7 @@
|
|
|
59230
59272
|
"deprecationMessage": "",
|
|
59231
59273
|
"rawdescription": "\n\nSet to `true` for a loading search component.\n",
|
|
59232
59274
|
"description": "<p>Set to <code>true</code> for a loading search component.</p>\n",
|
|
59233
|
-
"line":
|
|
59275
|
+
"line": 75,
|
|
59234
59276
|
"type": "boolean",
|
|
59235
59277
|
"decorators": [],
|
|
59236
59278
|
"inheritance": {
|
|
@@ -59244,7 +59286,7 @@
|
|
|
59244
59286
|
"deprecationMessage": "",
|
|
59245
59287
|
"rawdescription": "\n\nSpecifies whether the search component is used in the table toolbar.\n",
|
|
59246
59288
|
"description": "<p>Specifies whether the search component is used in the table toolbar.</p>\n",
|
|
59247
|
-
"line":
|
|
59289
|
+
"line": 83,
|
|
59248
59290
|
"type": "boolean",
|
|
59249
59291
|
"decorators": [],
|
|
59250
59292
|
"inheritance": {
|
|
@@ -59258,15 +59300,15 @@
|
|
|
59258
59300
|
"deprecationMessage": "since v5 - Use `cdsLayer` directive instead\n`light` or `dark` search theme.",
|
|
59259
59301
|
"jsdoctags": [
|
|
59260
59302
|
{
|
|
59261
|
-
"pos":
|
|
59262
|
-
"end":
|
|
59303
|
+
"pos": 1046,
|
|
59304
|
+
"end": 1140,
|
|
59263
59305
|
"flags": 16842752,
|
|
59264
59306
|
"modifierFlagsCache": 0,
|
|
59265
59307
|
"transformFlags": 0,
|
|
59266
59308
|
"kind": 338,
|
|
59267
59309
|
"tagName": {
|
|
59268
|
-
"pos":
|
|
59269
|
-
"end":
|
|
59310
|
+
"pos": 1047,
|
|
59311
|
+
"end": 1057,
|
|
59270
59312
|
"flags": 16842752,
|
|
59271
59313
|
"modifierFlagsCache": 0,
|
|
59272
59314
|
"transformFlags": 0,
|
|
@@ -59276,7 +59318,7 @@
|
|
|
59276
59318
|
"comment": "<p>since v5 - Use <code>cdsLayer</code> directive instead\n<code>light</code> or <code>dark</code> search theme.</p>\n"
|
|
59277
59319
|
}
|
|
59278
59320
|
],
|
|
59279
|
-
"line":
|
|
59321
|
+
"line": 52,
|
|
59280
59322
|
"type": "\"light\" | \"dark\"",
|
|
59281
59323
|
"decorators": [],
|
|
59282
59324
|
"inheritance": {
|
|
@@ -59290,7 +59332,7 @@
|
|
|
59290
59332
|
"deprecationMessage": "",
|
|
59291
59333
|
"rawdescription": "\n\nSet to `true` for a toolbar search component.\n",
|
|
59292
59334
|
"description": "<p>Set to <code>true</code> for a toolbar search component.</p>\n",
|
|
59293
|
-
"line":
|
|
59335
|
+
"line": 66,
|
|
59294
59336
|
"type": "boolean",
|
|
59295
59337
|
"decorators": [],
|
|
59296
59338
|
"inheritance": {
|
|
@@ -59304,7 +59346,7 @@
|
|
|
59304
59346
|
"deprecationMessage": "",
|
|
59305
59347
|
"rawdescription": "\n\nSets the value attribute on the `input` element.\n",
|
|
59306
59348
|
"description": "<p>Sets the value attribute on the <code>input</code> element.</p>\n",
|
|
59307
|
-
"line":
|
|
59349
|
+
"line": 99,
|
|
59308
59350
|
"type": "string",
|
|
59309
59351
|
"decorators": [],
|
|
59310
59352
|
"inheritance": {
|
|
@@ -59320,7 +59362,7 @@
|
|
|
59320
59362
|
"deprecationMessage": "",
|
|
59321
59363
|
"rawdescription": "\n\nEmits an event when the clear button is clicked.\n",
|
|
59322
59364
|
"description": "<p>Emits an event when the clear button is clicked.</p>\n",
|
|
59323
|
-
"line":
|
|
59365
|
+
"line": 137,
|
|
59324
59366
|
"type": "EventEmitter",
|
|
59325
59367
|
"inheritance": {
|
|
59326
59368
|
"file": "Search"
|
|
@@ -59331,7 +59373,7 @@
|
|
|
59331
59373
|
"defaultValue": "new EventEmitter<boolean>()",
|
|
59332
59374
|
"deprecated": false,
|
|
59333
59375
|
"deprecationMessage": "",
|
|
59334
|
-
"line":
|
|
59376
|
+
"line": 133,
|
|
59335
59377
|
"type": "EventEmitter",
|
|
59336
59378
|
"inheritance": {
|
|
59337
59379
|
"file": "Search"
|
|
@@ -59344,7 +59386,7 @@
|
|
|
59344
59386
|
"deprecationMessage": "",
|
|
59345
59387
|
"rawdescription": "\n\nEmits an event on enter.\n",
|
|
59346
59388
|
"description": "<p>Emits an event on enter.</p>\n",
|
|
59347
|
-
"line":
|
|
59389
|
+
"line": 141,
|
|
59348
59390
|
"type": "EventEmitter",
|
|
59349
59391
|
"inheritance": {
|
|
59350
59392
|
"file": "Search"
|
|
@@ -59357,7 +59399,7 @@
|
|
|
59357
59399
|
"deprecationMessage": "",
|
|
59358
59400
|
"rawdescription": "\n\nEmits an event when value is changed.\n",
|
|
59359
59401
|
"description": "<p>Emits an event when value is changed.</p>\n",
|
|
59360
|
-
"line":
|
|
59402
|
+
"line": 132,
|
|
59361
59403
|
"type": "EventEmitter",
|
|
59362
59404
|
"inheritance": {
|
|
59363
59405
|
"file": "Search"
|
|
@@ -59411,7 +59453,7 @@
|
|
|
59411
59453
|
"type": "ElementRef",
|
|
59412
59454
|
"optional": false,
|
|
59413
59455
|
"description": "",
|
|
59414
|
-
"line":
|
|
59456
|
+
"line": 143,
|
|
59415
59457
|
"decorators": [
|
|
59416
59458
|
{
|
|
59417
59459
|
"name": "ViewChild",
|
|
@@ -59433,7 +59475,7 @@
|
|
|
59433
59475
|
"type": "function",
|
|
59434
59476
|
"optional": false,
|
|
59435
59477
|
"description": "<p>Called when search input is blurred. Needed to properly implement <code>ControlValueAccessor</code>.</p>\n",
|
|
59436
|
-
"line":
|
|
59478
|
+
"line": 184,
|
|
59437
59479
|
"rawdescription": "\n\nCalled when search input is blurred. Needed to properly implement `ControlValueAccessor`.\n",
|
|
59438
59480
|
"inheritance": {
|
|
59439
59481
|
"file": "Search"
|
|
@@ -59447,7 +59489,7 @@
|
|
|
59447
59489
|
"type": "",
|
|
59448
59490
|
"optional": false,
|
|
59449
59491
|
"description": "<p>Method set in <code>registerOnChange</code> to propagate changes back to the form.</p>\n",
|
|
59450
|
-
"line":
|
|
59492
|
+
"line": 189,
|
|
59451
59493
|
"rawdescription": "\n\nMethod set in `registerOnChange` to propagate changes back to the form.\n",
|
|
59452
59494
|
"inheritance": {
|
|
59453
59495
|
"file": "Search"
|
|
@@ -59478,7 +59520,7 @@
|
|
|
59478
59520
|
"optional": false,
|
|
59479
59521
|
"returnType": "void",
|
|
59480
59522
|
"typeParameters": [],
|
|
59481
|
-
"line":
|
|
59523
|
+
"line": 213,
|
|
59482
59524
|
"deprecated": false,
|
|
59483
59525
|
"deprecationMessage": "",
|
|
59484
59526
|
"rawdescription": "\n\nCalled when clear button is clicked.\n",
|
|
@@ -59500,7 +59542,7 @@
|
|
|
59500
59542
|
"optional": false,
|
|
59501
59543
|
"returnType": "void",
|
|
59502
59544
|
"typeParameters": [],
|
|
59503
|
-
"line":
|
|
59545
|
+
"line": 285,
|
|
59504
59546
|
"deprecated": false,
|
|
59505
59547
|
"deprecationMessage": "",
|
|
59506
59548
|
"rawdescription": "\n\nCalled when IME composition finishes.\n",
|
|
@@ -59542,7 +59584,7 @@
|
|
|
59542
59584
|
"optional": false,
|
|
59543
59585
|
"returnType": "void",
|
|
59544
59586
|
"typeParameters": [],
|
|
59545
|
-
"line":
|
|
59587
|
+
"line": 277,
|
|
59546
59588
|
"deprecated": false,
|
|
59547
59589
|
"deprecationMessage": "",
|
|
59548
59590
|
"rawdescription": "\n\nCalled when using IME composition.\n",
|
|
@@ -59577,7 +59619,7 @@
|
|
|
59577
59619
|
"optional": false,
|
|
59578
59620
|
"returnType": "void",
|
|
59579
59621
|
"typeParameters": [],
|
|
59580
|
-
"line":
|
|
59622
|
+
"line": 219,
|
|
59581
59623
|
"deprecated": false,
|
|
59582
59624
|
"deprecationMessage": "",
|
|
59583
59625
|
"inheritance": {
|
|
@@ -59597,7 +59639,7 @@
|
|
|
59597
59639
|
"optional": false,
|
|
59598
59640
|
"returnType": "void",
|
|
59599
59641
|
"typeParameters": [],
|
|
59600
|
-
"line":
|
|
59642
|
+
"line": 263,
|
|
59601
59643
|
"deprecated": false,
|
|
59602
59644
|
"deprecationMessage": "",
|
|
59603
59645
|
"decorators": [
|
|
@@ -59637,7 +59679,7 @@
|
|
|
59637
59679
|
"optional": false,
|
|
59638
59680
|
"returnType": "void",
|
|
59639
59681
|
"typeParameters": [],
|
|
59640
|
-
"line":
|
|
59682
|
+
"line": 251,
|
|
59641
59683
|
"deprecated": false,
|
|
59642
59684
|
"deprecationMessage": "",
|
|
59643
59685
|
"decorators": [
|
|
@@ -59677,7 +59719,7 @@
|
|
|
59677
59719
|
"optional": false,
|
|
59678
59720
|
"returnType": "void",
|
|
59679
59721
|
"typeParameters": [],
|
|
59680
|
-
"line":
|
|
59722
|
+
"line": 231,
|
|
59681
59723
|
"deprecated": false,
|
|
59682
59724
|
"deprecationMessage": "",
|
|
59683
59725
|
"decorators": [
|
|
@@ -59710,7 +59752,7 @@
|
|
|
59710
59752
|
"optional": false,
|
|
59711
59753
|
"returnType": "void",
|
|
59712
59754
|
"typeParameters": [],
|
|
59713
|
-
"line":
|
|
59755
|
+
"line": 206,
|
|
59714
59756
|
"deprecated": false,
|
|
59715
59757
|
"deprecationMessage": "",
|
|
59716
59758
|
"rawdescription": "\n\nCalled on enter.\n",
|
|
@@ -59732,7 +59774,7 @@
|
|
|
59732
59774
|
"optional": false,
|
|
59733
59775
|
"returnType": "void",
|
|
59734
59776
|
"typeParameters": [],
|
|
59735
|
-
"line":
|
|
59777
|
+
"line": 195,
|
|
59736
59778
|
"deprecated": false,
|
|
59737
59779
|
"deprecationMessage": "",
|
|
59738
59780
|
"rawdescription": "\n\nCalled when text is written in the input.\n",
|
|
@@ -59740,8 +59782,8 @@
|
|
|
59740
59782
|
"jsdoctags": [
|
|
59741
59783
|
{
|
|
59742
59784
|
"name": {
|
|
59743
|
-
"pos":
|
|
59744
|
-
"end":
|
|
59785
|
+
"pos": 4593,
|
|
59786
|
+
"end": 4599,
|
|
59745
59787
|
"flags": 16842752,
|
|
59746
59788
|
"modifierFlagsCache": 0,
|
|
59747
59789
|
"transformFlags": 0,
|
|
@@ -59752,8 +59794,8 @@
|
|
|
59752
59794
|
"deprecated": false,
|
|
59753
59795
|
"deprecationMessage": "",
|
|
59754
59796
|
"tagName": {
|
|
59755
|
-
"pos":
|
|
59756
|
-
"end":
|
|
59797
|
+
"pos": 4587,
|
|
59798
|
+
"end": 4592,
|
|
59757
59799
|
"flags": 16842752,
|
|
59758
59800
|
"modifierFlagsCache": 0,
|
|
59759
59801
|
"transformFlags": 0,
|
|
@@ -59773,7 +59815,7 @@
|
|
|
59773
59815
|
"optional": false,
|
|
59774
59816
|
"returnType": "void",
|
|
59775
59817
|
"typeParameters": [],
|
|
59776
|
-
"line":
|
|
59818
|
+
"line": 224,
|
|
59777
59819
|
"deprecated": false,
|
|
59778
59820
|
"deprecationMessage": "",
|
|
59779
59821
|
"inheritance": {
|
|
@@ -59793,7 +59835,7 @@
|
|
|
59793
59835
|
"optional": false,
|
|
59794
59836
|
"returnType": "void",
|
|
59795
59837
|
"typeParameters": [],
|
|
59796
|
-
"line":
|
|
59838
|
+
"line": 169,
|
|
59797
59839
|
"deprecated": false,
|
|
59798
59840
|
"deprecationMessage": "",
|
|
59799
59841
|
"rawdescription": "\n\nSets a method in order to propagate changes back to the form.\n",
|
|
@@ -59829,7 +59871,7 @@
|
|
|
59829
59871
|
"optional": false,
|
|
59830
59872
|
"returnType": "void",
|
|
59831
59873
|
"typeParameters": [],
|
|
59832
|
-
"line":
|
|
59874
|
+
"line": 177,
|
|
59833
59875
|
"deprecated": false,
|
|
59834
59876
|
"deprecationMessage": "",
|
|
59835
59877
|
"rawdescription": "\n\nRegisters a callback to be triggered when the control has been touched.\n",
|
|
@@ -59840,8 +59882,8 @@
|
|
|
59840
59882
|
"jsdoctags": [
|
|
59841
59883
|
{
|
|
59842
59884
|
"name": {
|
|
59843
|
-
"pos":
|
|
59844
|
-
"end":
|
|
59885
|
+
"pos": 4139,
|
|
59886
|
+
"end": 4141,
|
|
59845
59887
|
"flags": 16842752,
|
|
59846
59888
|
"modifierFlagsCache": 0,
|
|
59847
59889
|
"transformFlags": 0,
|
|
@@ -59852,8 +59894,8 @@
|
|
|
59852
59894
|
"deprecated": false,
|
|
59853
59895
|
"deprecationMessage": "",
|
|
59854
59896
|
"tagName": {
|
|
59855
|
-
"pos":
|
|
59856
|
-
"end":
|
|
59897
|
+
"pos": 4133,
|
|
59898
|
+
"end": 4138,
|
|
59857
59899
|
"flags": 16842752,
|
|
59858
59900
|
"modifierFlagsCache": 0,
|
|
59859
59901
|
"transformFlags": 0,
|
|
@@ -59880,7 +59922,7 @@
|
|
|
59880
59922
|
"optional": false,
|
|
59881
59923
|
"returnType": "void",
|
|
59882
59924
|
"typeParameters": [],
|
|
59883
|
-
"line":
|
|
59925
|
+
"line": 162,
|
|
59884
59926
|
"deprecated": false,
|
|
59885
59927
|
"deprecationMessage": "",
|
|
59886
59928
|
"rawdescription": "\n\nThis is the initial value set to the component\n",
|
|
@@ -59891,8 +59933,8 @@
|
|
|
59891
59933
|
"jsdoctags": [
|
|
59892
59934
|
{
|
|
59893
59935
|
"name": {
|
|
59894
|
-
"pos":
|
|
59895
|
-
"end":
|
|
59936
|
+
"pos": 3815,
|
|
59937
|
+
"end": 3820,
|
|
59896
59938
|
"flags": 16842752,
|
|
59897
59939
|
"modifierFlagsCache": 0,
|
|
59898
59940
|
"transformFlags": 0,
|
|
@@ -59903,8 +59945,8 @@
|
|
|
59903
59945
|
"deprecated": false,
|
|
59904
59946
|
"deprecationMessage": "",
|
|
59905
59947
|
"tagName": {
|
|
59906
|
-
"pos":
|
|
59907
|
-
"end":
|
|
59948
|
+
"pos": 3809,
|
|
59949
|
+
"end": 3814,
|
|
59908
59950
|
"flags": 16842752,
|
|
59909
59951
|
"modifierFlagsCache": 0,
|
|
59910
59952
|
"transformFlags": 0,
|
|
@@ -59941,6 +59983,17 @@
|
|
|
59941
59983
|
"inheritance": {
|
|
59942
59984
|
"file": "Search"
|
|
59943
59985
|
}
|
|
59986
|
+
},
|
|
59987
|
+
{
|
|
59988
|
+
"name": "class.cds--text-input--fluid__skeleton",
|
|
59989
|
+
"deprecated": false,
|
|
59990
|
+
"deprecationMessage": "",
|
|
59991
|
+
"line": 44,
|
|
59992
|
+
"type": "boolean",
|
|
59993
|
+
"decorators": [],
|
|
59994
|
+
"inheritance": {
|
|
59995
|
+
"file": "Search"
|
|
59996
|
+
}
|
|
59944
59997
|
}
|
|
59945
59998
|
],
|
|
59946
59999
|
"hostListeners": [
|
|
@@ -59961,7 +60014,7 @@
|
|
|
59961
60014
|
"deprecationMessage": "",
|
|
59962
60015
|
"rawdescription": "\n\nCalled when IME composition finishes.\n",
|
|
59963
60016
|
"description": "<p>Called when IME composition finishes.</p>\n",
|
|
59964
|
-
"line":
|
|
60017
|
+
"line": 285,
|
|
59965
60018
|
"inheritance": {
|
|
59966
60019
|
"file": "Search"
|
|
59967
60020
|
}
|
|
@@ -59983,7 +60036,7 @@
|
|
|
59983
60036
|
"deprecationMessage": "",
|
|
59984
60037
|
"rawdescription": "\n\nCalled when using IME composition.\n",
|
|
59985
60038
|
"description": "<p>Called when using IME composition.</p>\n",
|
|
59986
|
-
"line":
|
|
60039
|
+
"line": 277,
|
|
59987
60040
|
"inheritance": {
|
|
59988
60041
|
"file": "Search"
|
|
59989
60042
|
}
|
|
@@ -60003,7 +60056,7 @@
|
|
|
60003
60056
|
],
|
|
60004
60057
|
"deprecated": false,
|
|
60005
60058
|
"deprecationMessage": "",
|
|
60006
|
-
"line":
|
|
60059
|
+
"line": 263,
|
|
60007
60060
|
"inheritance": {
|
|
60008
60061
|
"file": "Search"
|
|
60009
60062
|
}
|
|
@@ -60023,7 +60076,7 @@
|
|
|
60023
60076
|
],
|
|
60024
60077
|
"deprecated": false,
|
|
60025
60078
|
"deprecationMessage": "",
|
|
60026
|
-
"line":
|
|
60079
|
+
"line": 251,
|
|
60027
60080
|
"inheritance": {
|
|
60028
60081
|
"file": "Search"
|
|
60029
60082
|
}
|
|
@@ -60043,7 +60096,7 @@
|
|
|
60043
60096
|
],
|
|
60044
60097
|
"deprecated": false,
|
|
60045
60098
|
"deprecationMessage": "",
|
|
60046
|
-
"line":
|
|
60099
|
+
"line": 231,
|
|
60047
60100
|
"inheritance": {
|
|
60048
60101
|
"file": "Search"
|
|
60049
60102
|
}
|
|
@@ -60064,7 +60117,7 @@
|
|
|
60064
60117
|
"implements": [
|
|
60065
60118
|
"AfterViewInit"
|
|
60066
60119
|
],
|
|
60067
|
-
"templateData": "<div\n\tclass=\"cds--search\"\n\t[ngClass]=\"{\n\t\t'cds--search--sm': size === 'sm',\n\t\t'cds--search--md': size === 'md',\n\t\t'cds--search--lg': size === 'lg',\n\t\t'cds--search--light': theme === 'light',\n\t\t'cds--skeleton': skeleton,\n\t\t'cds--search--expandable': expandable && !tableSearch,\n\t\t'cds--search--expanded': expandable && !tableSearch && active,\n\t\t'cds--toolbar-search': toolbar && !expandable,\n\t\t'cds--toolbar-search--active': toolbar && !expandable && active,\n\t\t'cds--toolbar-search-container-persistent': tableSearch && !expandable,\n\t\t'cds--toolbar-search-container-expandable': tableSearch && expandable,\n\t\t'cds--toolbar-search-container-active': tableSearch && expandable && active\n\t}\"\n\trole=\"search\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t(click)=\"openSearch()\">\n\t<label
|
|
60120
|
+
"templateData": "<div\n\tclass=\"cds--search\"\n\t[ngClass]=\"{\n\t\t'cds--search--sm': size === 'sm',\n\t\t'cds--search--md': size === 'md',\n\t\t'cds--search--lg': size === 'lg',\n\t\t'cds--search--light': theme === 'light',\n\t\t'cds--skeleton': skeleton && !fluid,\n\t\t'cds--search--expandable': expandable && !tableSearch,\n\t\t'cds--search--expanded': expandable && !tableSearch && active,\n\t\t'cds--toolbar-search': toolbar && !expandable,\n\t\t'cds--toolbar-search--active': toolbar && !expandable && active,\n\t\t'cds--toolbar-search-container-persistent': tableSearch && !expandable,\n\t\t'cds--toolbar-search-container-expandable': tableSearch && expandable,\n\t\t'cds--toolbar-search-container-active': tableSearch && expandable && active,\n\t\t'cds--search--fluid': fluid,\n\t\t'cds--search--disabled': disabled\n\t}\"\n\trole=\"search\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t(click)=\"openSearch()\">\n\t<label\n\t\tclass=\"cds--label\"\n\t\t[for]=\"id\"\n\t\t[ngClass]=\"{ 'cds--skeleton': skeleton && fluid }\">\n\t\t{{ !skeleton ? label : ''}}\n\t</label>\n\n\t<div *ngIf=\"skeleton; else enableInput\" class=\"cds--text-input cds--skeleton\"></div>\n\t<ng-template #enableInput>\n\t\t<input\n\t\t\t#input\n\t\t\tclass=\"cds--search-input\"\n\t\t\t[type]=\"tableSearch || !toolbar ? 'text' : 'search'\"\n\t\t\t[id]=\"id\"\n\t\t\t[value]=\"value\"\n\t\t\t[autocomplete]=\"autocomplete\"\n\t\t\t[placeholder]=\"placeholder\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[required]=\"required\"\n\t\t\t(input)=\"onSearch($event.target.value)\"\n\t\t\t(keyup.enter)=\"onEnter()\"/>\n\t\t<button\n\t\t\t*ngIf=\"!tableSearch && toolbar\"\n\t\t\tclass=\"cds--toolbar-search__btn\"\n\t\t\t(click)=\"openSearch()\"\n\t\t\taria-label=\"Open search\">\n\t\t\t<svg cdsIcon=\"search\" size=\"16\" class=\"cds--search-magnifier-icon\"></svg>\n\t\t</button>\n\t\t<svg\n\t\t\tcdsIcon=\"search\"\n\t\t\t*ngIf=\"tableSearch || !toolbar\"\n\t\t\tclass=\"cds--search-magnifier-icon\"\n\t\t\tsize=\"16\">\n\t\t</svg>\n\t</ng-template>\n\n\t<button\n\t\t*ngIf=\"tableSearch || !toolbar\"\n\t\tclass=\"cds--search-close\"\n\t\t[ngClass]=\"{\n\t\t\t'cds--search-close--hidden': !value || value.length === 0\n\t\t}\"\n\t\t[title]=\"clearButtonTitle\"\n\t\t(click)=\"clearSearch()\">\n\t\t<span class=\"cds--visually-hidden\">{{ clearButtonTitle }}</span>\n\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t</button>\n</div>\n"
|
|
60068
60121
|
},
|
|
60069
60122
|
{
|
|
60070
60123
|
"name": "Tabs",
|
|
@@ -71640,7 +71693,7 @@
|
|
|
71640
71693
|
"name": "Basic",
|
|
71641
71694
|
"ctype": "miscellaneous",
|
|
71642
71695
|
"subtype": "variable",
|
|
71643
|
-
"file": "src/
|
|
71696
|
+
"file": "src/button/button-set.stories.ts",
|
|
71644
71697
|
"deprecated": false,
|
|
71645
71698
|
"deprecationMessage": "",
|
|
71646
71699
|
"type": "",
|
|
@@ -71650,7 +71703,7 @@
|
|
|
71650
71703
|
"name": "Basic",
|
|
71651
71704
|
"ctype": "miscellaneous",
|
|
71652
71705
|
"subtype": "variable",
|
|
71653
|
-
"file": "src/button/button
|
|
71706
|
+
"file": "src/button/button.stories.ts",
|
|
71654
71707
|
"deprecated": false,
|
|
71655
71708
|
"deprecationMessage": "",
|
|
71656
71709
|
"type": "",
|
|
@@ -71660,7 +71713,7 @@
|
|
|
71660
71713
|
"name": "Basic",
|
|
71661
71714
|
"ctype": "miscellaneous",
|
|
71662
71715
|
"subtype": "variable",
|
|
71663
|
-
"file": "src/button/button.stories.ts",
|
|
71716
|
+
"file": "src/button/icon-button.stories.ts",
|
|
71664
71717
|
"deprecated": false,
|
|
71665
71718
|
"deprecationMessage": "",
|
|
71666
71719
|
"type": "",
|
|
@@ -71670,7 +71723,7 @@
|
|
|
71670
71723
|
"name": "Basic",
|
|
71671
71724
|
"ctype": "miscellaneous",
|
|
71672
71725
|
"subtype": "variable",
|
|
71673
|
-
"file": "src/
|
|
71726
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
71674
71727
|
"deprecated": false,
|
|
71675
71728
|
"deprecationMessage": "",
|
|
71676
71729
|
"type": "",
|
|
@@ -72677,6 +72730,16 @@
|
|
|
72677
72730
|
"type": "",
|
|
72678
72731
|
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<!--\n\t\tapp-* components are for demo purposes only.\n\t\tYou can create your own implementation by using the component source found at:\n\t\thttps://github.com/IBM/carbon-components-angular/tree/master/src/table/stories/app-model-filter-table.component.ts\n\t\t-->\n\t\t<app-model-filter-table\n\t\t\t[stickyHeader]=\"stickyHeader\"\n\t\t\t[size]=\"size\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[showSelectionColumn]=\"showSelectionColumn\"\n\t\t\t[striped]=\"striped\"\n\t\t\t[isDataGrid]=\"isDataGrid\">\n\t\t</app-model-filter-table>\n\t`\n})"
|
|
72679
72732
|
},
|
|
72733
|
+
{
|
|
72734
|
+
"name": "Fluid",
|
|
72735
|
+
"ctype": "miscellaneous",
|
|
72736
|
+
"subtype": "variable",
|
|
72737
|
+
"file": "src/search/search.stories.ts",
|
|
72738
|
+
"deprecated": false,
|
|
72739
|
+
"deprecationMessage": "",
|
|
72740
|
+
"type": "",
|
|
72741
|
+
"defaultValue": "Template.bind({})"
|
|
72742
|
+
},
|
|
72680
72743
|
{
|
|
72681
72744
|
"name": "FormModal",
|
|
72682
72745
|
"ctype": "miscellaneous",
|
|
@@ -74352,41 +74415,41 @@
|
|
|
74352
74415
|
"name": "Template",
|
|
74353
74416
|
"ctype": "miscellaneous",
|
|
74354
74417
|
"subtype": "variable",
|
|
74355
|
-
"file": "src/
|
|
74418
|
+
"file": "src/button/button-set.stories.ts",
|
|
74356
74419
|
"deprecated": false,
|
|
74357
74420
|
"deprecationMessage": "",
|
|
74358
74421
|
"type": "",
|
|
74359
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
74422
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set>\n\t\t\t<button cdsButton=\"secondary\" [size]=\"size\" [isExpressive]=\"isExpressive\">Button</button>\n\t\t\t<button cdsButton [size]=\"size\" [isExpressive]=\"isExpressive\">Button</button>\n\t\t</cds-button-set>\n\t`\n})"
|
|
74360
74423
|
},
|
|
74361
74424
|
{
|
|
74362
74425
|
"name": "Template",
|
|
74363
74426
|
"ctype": "miscellaneous",
|
|
74364
74427
|
"subtype": "variable",
|
|
74365
|
-
"file": "src/button/button
|
|
74428
|
+
"file": "src/button/button.stories.ts",
|
|
74366
74429
|
"deprecated": false,
|
|
74367
74430
|
"deprecationMessage": "",
|
|
74368
74431
|
"type": "",
|
|
74369
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<
|
|
74432
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button\n\t\t\t[cdsButton]=\"kind\"\n\t\t\t[size]=\"size\"\n\t\t\t[isExpressive]=\"isExpressive\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t(mouseenter)=\"onMouseEnter($event)\"\n\t\t\t(mouseleave)=\"onMouseLeave($event)\"\n\t\t\t(focus)=\"onFocus($event)\"\n\t\t\t(blur)=\"onBlur($event)\">\n\t\t\tButton\n\t\t</button>\n\t`\n})"
|
|
74370
74433
|
},
|
|
74371
74434
|
{
|
|
74372
74435
|
"name": "Template",
|
|
74373
74436
|
"ctype": "miscellaneous",
|
|
74374
74437
|
"subtype": "variable",
|
|
74375
|
-
"file": "src/button/button.stories.ts",
|
|
74438
|
+
"file": "src/button/icon-button.stories.ts",
|
|
74376
74439
|
"deprecated": false,
|
|
74377
74440
|
"deprecationMessage": "",
|
|
74378
74441
|
"type": "",
|
|
74379
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button\n\t\t\t[
|
|
74442
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-icon-button\n\t\t\tbuttonId=\"icon-btn1\"\n\t\t\ttype=\"button\"\n\t\t\t[kind]=\"kind\"\n\t\t\t[size]=\"size\"\n\t\t\t[align]=\"align\"\n\t\t\t[buttonNgClass]=\"buttonNgClass\"\n\t\t\t[buttonAttributes]=\"buttonAttributes\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\tdescription=\"Icon Description\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t(mouseenter)=\"onMouseEnter($event)\"\n\t\t\t(mouseleave)=\"onMouseLeave($event)\"\n\t\t\t(focus)=\"onFocus($event)\"\n\t\t\t(blur)=\"onBlur($event)\">\n\t\t\t<svg class=\"cds--btn__icon\" cdsIcon=\"copy\" size=\"16\"></svg>\n\t\t</cds-icon-button>\n\t`\n})"
|
|
74380
74443
|
},
|
|
74381
74444
|
{
|
|
74382
74445
|
"name": "Template",
|
|
74383
74446
|
"ctype": "miscellaneous",
|
|
74384
74447
|
"subtype": "variable",
|
|
74385
|
-
"file": "src/
|
|
74448
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
74386
74449
|
"deprecated": false,
|
|
74387
74450
|
"deprecationMessage": "",
|
|
74388
74451
|
"type": "",
|
|
74389
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-
|
|
74452
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
74390
74453
|
},
|
|
74391
74454
|
{
|
|
74392
74455
|
"name": "Template",
|
|
@@ -74676,7 +74739,7 @@
|
|
|
74676
74739
|
"deprecated": false,
|
|
74677
74740
|
"deprecationMessage": "",
|
|
74678
74741
|
"type": "",
|
|
74679
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-search\n\t\t\t[theme]=\"theme\"\n\t\t\t[placeholder]=\"placeholder\"\n\t\t\t[autocomplete]=\"autocomplete\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[size]=\"size\"\n\t\t\t(valueChange)=\"valueChange($event)\"\n\t\t\t(clear)=\"clear()\"\n\t\t\t[expandable]=\"expandable\">\n\t\t</cds-search>\n\t`\n})"
|
|
74742
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-search\n\t\t\t[theme]=\"theme\"\n\t\t\t[placeholder]=\"placeholder\"\n\t\t\t[autocomplete]=\"autocomplete\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[size]=\"size\"\n\t\t\t(valueChange)=\"valueChange($event)\"\n\t\t\t(clear)=\"clear()\"\n\t\t\t[fluid]=\"fluid\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[expandable]=\"expandable\">\n\t\t</cds-search>\n\t`\n})"
|
|
74680
74743
|
},
|
|
74681
74744
|
{
|
|
74682
74745
|
"name": "Template",
|
|
@@ -78152,199 +78215,199 @@
|
|
|
78152
78215
|
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<div style=\"width: 500px\">\n\t\t\t<cds-accordion>\n\t\t\t\t<cds-accordion-item [title]=\"title\" (selected)=\"selected($event)\">\n\t\t\t\t\tLorem ipsum dolor sit amet, \\\n\t\t\t\t\tconsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore \\\n\t\t\t\t\tet dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \\\n\t\t\t\t\tullamco laboris nisi ut aliquip ex ea commodo consequat.\n\t\t\t\t</cds-accordion-item>\n\t\t\t\t<cds-accordion-item [title]=\"titleWithContext\" [context]=\"{ index: 2 }\" (selected)=\"selected($event)\">\n\t\t\t\t\tLorem ipsum dolor sit amet, \\\n\t\t\t\t\tconsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore \\\n\t\t\t\t\tet dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \\\n\t\t\t\t\tullamco laboris nisi ut aliquip ex ea commodo consequat.\n\t\t\t\t</cds-accordion-item>\n\t\t\t</cds-accordion>\n\t\t</div>\n\t\t<ng-template #title>\n\t\t\t<p class=\"cds--accordion__title\">Section 1 title</p>\n\t\t</ng-template>\n\t\t<ng-template #titleWithContext let-index=\"index\">\n\t\t\t<p class=\"cds--accordion__title\">Section {{ index }} title</p>\n\t\t</ng-template>\n\t`\n})"
|
|
78153
78216
|
}
|
|
78154
78217
|
],
|
|
78155
|
-
"src/
|
|
78218
|
+
"src/button/button-set.stories.ts": [
|
|
78156
78219
|
{
|
|
78157
78220
|
"name": "Basic",
|
|
78158
78221
|
"ctype": "miscellaneous",
|
|
78159
78222
|
"subtype": "variable",
|
|
78160
|
-
"file": "src/
|
|
78223
|
+
"file": "src/button/button-set.stories.ts",
|
|
78161
78224
|
"deprecated": false,
|
|
78162
78225
|
"deprecationMessage": "",
|
|
78163
78226
|
"type": "",
|
|
78164
78227
|
"defaultValue": "Template.bind({})"
|
|
78165
78228
|
},
|
|
78166
78229
|
{
|
|
78167
|
-
"name": "
|
|
78230
|
+
"name": "Template",
|
|
78168
78231
|
"ctype": "miscellaneous",
|
|
78169
78232
|
"subtype": "variable",
|
|
78170
|
-
"file": "src/
|
|
78233
|
+
"file": "src/button/button-set.stories.ts",
|
|
78171
78234
|
"deprecated": false,
|
|
78172
78235
|
"deprecationMessage": "",
|
|
78173
|
-
"type": ""
|
|
78174
|
-
|
|
78236
|
+
"type": "",
|
|
78237
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-button-set>\n\t\t\t<button cdsButton=\"secondary\" [size]=\"size\" [isExpressive]=\"isExpressive\">Button</button>\n\t\t\t<button cdsButton [size]=\"size\" [isExpressive]=\"isExpressive\">Button</button>\n\t\t</cds-button-set>\n\t`\n})"
|
|
78238
|
+
}
|
|
78239
|
+
],
|
|
78240
|
+
"src/button/button.stories.ts": [
|
|
78175
78241
|
{
|
|
78176
|
-
"name": "
|
|
78242
|
+
"name": "Basic",
|
|
78177
78243
|
"ctype": "miscellaneous",
|
|
78178
78244
|
"subtype": "variable",
|
|
78179
|
-
"file": "src/
|
|
78245
|
+
"file": "src/button/button.stories.ts",
|
|
78180
78246
|
"deprecated": false,
|
|
78181
78247
|
"deprecationMessage": "",
|
|
78182
78248
|
"type": "",
|
|
78183
|
-
"defaultValue": "
|
|
78249
|
+
"defaultValue": "Template.bind({})"
|
|
78184
78250
|
},
|
|
78185
78251
|
{
|
|
78186
|
-
"name": "
|
|
78252
|
+
"name": "Template",
|
|
78187
78253
|
"ctype": "miscellaneous",
|
|
78188
78254
|
"subtype": "variable",
|
|
78189
|
-
"file": "src/
|
|
78255
|
+
"file": "src/button/button.stories.ts",
|
|
78190
78256
|
"deprecated": false,
|
|
78191
78257
|
"deprecationMessage": "",
|
|
78192
78258
|
"type": "",
|
|
78193
|
-
"defaultValue": "
|
|
78259
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button\n\t\t\t[cdsButton]=\"kind\"\n\t\t\t[size]=\"size\"\n\t\t\t[isExpressive]=\"isExpressive\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t(mouseenter)=\"onMouseEnter($event)\"\n\t\t\t(mouseleave)=\"onMouseLeave($event)\"\n\t\t\t(focus)=\"onFocus($event)\"\n\t\t\t(blur)=\"onBlur($event)\">\n\t\t\tButton\n\t\t</button>\n\t`\n})"
|
|
78194
78260
|
},
|
|
78195
78261
|
{
|
|
78196
|
-
"name": "
|
|
78262
|
+
"name": "WithIcon",
|
|
78197
78263
|
"ctype": "miscellaneous",
|
|
78198
78264
|
"subtype": "variable",
|
|
78199
|
-
"file": "src/
|
|
78265
|
+
"file": "src/button/button.stories.ts",
|
|
78200
78266
|
"deprecated": false,
|
|
78201
78267
|
"deprecationMessage": "",
|
|
78202
78268
|
"type": "",
|
|
78203
|
-
"defaultValue": "(
|
|
78269
|
+
"defaultValue": "WithIconTemplate.bind({})"
|
|
78204
78270
|
},
|
|
78205
78271
|
{
|
|
78206
|
-
"name": "
|
|
78272
|
+
"name": "WithIconTemplate",
|
|
78207
78273
|
"ctype": "miscellaneous",
|
|
78208
78274
|
"subtype": "variable",
|
|
78209
|
-
"file": "src/
|
|
78275
|
+
"file": "src/button/button.stories.ts",
|
|
78210
78276
|
"deprecated": false,
|
|
78211
78277
|
"deprecationMessage": "",
|
|
78212
78278
|
"type": "",
|
|
78213
|
-
"defaultValue": "
|
|
78214
|
-
}
|
|
78279
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<button\n\t\t\t[cdsButton]=\"kind\"\n\t\t\t[size]=\"size\"\n\t\t\t[isExpressive]=\"isExpressive\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t(mouseenter)=\"onMouseEnter($event)\"\n\t\t\t(mouseleave)=\"onMouseleave($event)\"\n\t\t\t(focus)=\"onFocus($event)\"\n\t\t\t(blur)=\"onBlur($event)\">\n\t\t\tWith icon\n\t\t\t<svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n\t\t</button>\n\t`\n})"
|
|
78280
|
+
}
|
|
78281
|
+
],
|
|
78282
|
+
"src/breadcrumb/breadcrumb.stories.ts": [
|
|
78215
78283
|
{
|
|
78216
|
-
"name": "
|
|
78284
|
+
"name": "Basic",
|
|
78217
78285
|
"ctype": "miscellaneous",
|
|
78218
78286
|
"subtype": "variable",
|
|
78219
78287
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78220
78288
|
"deprecated": false,
|
|
78221
78289
|
"deprecationMessage": "",
|
|
78222
78290
|
"type": "",
|
|
78223
|
-
"defaultValue": "(
|
|
78291
|
+
"defaultValue": "Template.bind({})"
|
|
78224
78292
|
},
|
|
78225
78293
|
{
|
|
78226
|
-
"name": "
|
|
78294
|
+
"name": "breadcrumbItems",
|
|
78227
78295
|
"ctype": "miscellaneous",
|
|
78228
78296
|
"subtype": "variable",
|
|
78229
78297
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78230
78298
|
"deprecated": false,
|
|
78231
78299
|
"deprecationMessage": "",
|
|
78232
|
-
"type": ""
|
|
78233
|
-
"defaultValue": "ModelWTemplate.bind({})"
|
|
78300
|
+
"type": ""
|
|
78234
78301
|
},
|
|
78235
78302
|
{
|
|
78236
|
-
"name": "
|
|
78303
|
+
"name": "createBreadcrumbItems",
|
|
78237
78304
|
"ctype": "miscellaneous",
|
|
78238
78305
|
"subtype": "variable",
|
|
78239
78306
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78240
78307
|
"deprecated": false,
|
|
78241
78308
|
"deprecationMessage": "",
|
|
78242
78309
|
"type": "",
|
|
78243
|
-
"defaultValue": "(
|
|
78310
|
+
"defaultValue": "(count: number, content = \"Breadcrumb\"): Array<BreadcrumbItem> => {\n\tif (breadcrumbItems && count === breadcrumbItems.length) {\n\t\treturn breadcrumbItems;\n\t}\n\tbreadcrumbItems = Array(count).fill(0).map((x, i) => ({\n\t\tcontent: `${content} ${i + 1}`,\n\t\thref: \"#\" + (i + 1)\n\t}));\n\treturn breadcrumbItems;\n}"
|
|
78244
78311
|
},
|
|
78245
78312
|
{
|
|
78246
|
-
"name": "
|
|
78313
|
+
"name": "CurrentPage",
|
|
78247
78314
|
"ctype": "miscellaneous",
|
|
78248
78315
|
"subtype": "variable",
|
|
78249
78316
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78250
78317
|
"deprecated": false,
|
|
78251
78318
|
"deprecationMessage": "",
|
|
78252
78319
|
"type": "",
|
|
78253
|
-
"defaultValue": "
|
|
78320
|
+
"defaultValue": "CurrentPageTemplate.bind({})"
|
|
78254
78321
|
},
|
|
78255
78322
|
{
|
|
78256
|
-
"name": "
|
|
78323
|
+
"name": "CurrentPageTemplate",
|
|
78257
78324
|
"ctype": "miscellaneous",
|
|
78258
78325
|
"subtype": "variable",
|
|
78259
78326
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78260
78327
|
"deprecated": false,
|
|
78261
78328
|
"deprecationMessage": "",
|
|
78262
78329
|
"type": "",
|
|
78263
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb
|
|
78330
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb>\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item current=\"true\" href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
78264
78331
|
},
|
|
78265
78332
|
{
|
|
78266
|
-
"name": "
|
|
78333
|
+
"name": "Model",
|
|
78267
78334
|
"ctype": "miscellaneous",
|
|
78268
78335
|
"subtype": "variable",
|
|
78269
78336
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78270
78337
|
"deprecated": false,
|
|
78271
78338
|
"deprecationMessage": "",
|
|
78272
78339
|
"type": "",
|
|
78273
|
-
"defaultValue": "(
|
|
78340
|
+
"defaultValue": "ModelTemplate.bind({})"
|
|
78274
78341
|
},
|
|
78275
78342
|
{
|
|
78276
|
-
"name": "
|
|
78343
|
+
"name": "ModelTemplate",
|
|
78277
78344
|
"ctype": "miscellaneous",
|
|
78278
78345
|
"subtype": "variable",
|
|
78279
78346
|
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78280
78347
|
"deprecated": false,
|
|
78281
78348
|
"deprecationMessage": "",
|
|
78282
78349
|
"type": "",
|
|
78283
|
-
"defaultValue": "(
|
|
78284
|
-
}
|
|
78285
|
-
],
|
|
78286
|
-
"src/button/button-set.stories.ts": [
|
|
78350
|
+
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems\n\t},\n\ttemplate: `\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"createBreadcrumbItems(itemCount, content)\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
78351
|
+
},
|
|
78287
78352
|
{
|
|
78288
|
-
"name": "
|
|
78353
|
+
"name": "ModelWithTemplate",
|
|
78289
78354
|
"ctype": "miscellaneous",
|
|
78290
78355
|
"subtype": "variable",
|
|
78291
|
-
"file": "src/
|
|
78356
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78292
78357
|
"deprecated": false,
|
|
78293
78358
|
"deprecationMessage": "",
|
|
78294
78359
|
"type": "",
|
|
78295
|
-
"defaultValue": "
|
|
78360
|
+
"defaultValue": "ModelWTemplate.bind({})"
|
|
78296
78361
|
},
|
|
78297
78362
|
{
|
|
78298
|
-
"name": "
|
|
78363
|
+
"name": "ModelWTemplate",
|
|
78299
78364
|
"ctype": "miscellaneous",
|
|
78300
78365
|
"subtype": "variable",
|
|
78301
|
-
"file": "src/
|
|
78366
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78302
78367
|
"deprecated": false,
|
|
78303
78368
|
"deprecationMessage": "",
|
|
78304
78369
|
"type": "",
|
|
78305
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<
|
|
78306
|
-
}
|
|
78307
|
-
],
|
|
78308
|
-
"src/button/button.stories.ts": [
|
|
78370
|
+
"defaultValue": "(args) => ({\n\tprops: {\n\t\t...args,\n\t\tcreateBreadcrumbItems,\n\t\twithTemplate\n\t},\n\ttemplate: `\n\t\t<ng-template #breadcrumbTemplate let-item>\n\t\t\t{{ templateContent }}{{ item.content }}\n\t\t</ng-template>\n\t\t<cds-breadcrumb\n\t\t\t[noTrailingSlash]=\"noTrailingSlash\"\n\t\t\t[threshold]=\"threshold\"\n\t\t\t[items]=\"withTemplate(breadcrumbTemplate, createBreadcrumbItems(itemCount, content))\">\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
78371
|
+
},
|
|
78309
78372
|
{
|
|
78310
|
-
"name": "
|
|
78373
|
+
"name": "Skeleton",
|
|
78311
78374
|
"ctype": "miscellaneous",
|
|
78312
78375
|
"subtype": "variable",
|
|
78313
|
-
"file": "src/
|
|
78376
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78314
78377
|
"deprecated": false,
|
|
78315
78378
|
"deprecationMessage": "",
|
|
78316
78379
|
"type": "",
|
|
78317
|
-
"defaultValue": "
|
|
78380
|
+
"defaultValue": "WithSkeleton.bind({})"
|
|
78318
78381
|
},
|
|
78319
78382
|
{
|
|
78320
78383
|
"name": "Template",
|
|
78321
78384
|
"ctype": "miscellaneous",
|
|
78322
78385
|
"subtype": "variable",
|
|
78323
|
-
"file": "src/
|
|
78386
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78324
78387
|
"deprecated": false,
|
|
78325
78388
|
"deprecationMessage": "",
|
|
78326
78389
|
"type": "",
|
|
78327
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<
|
|
78390
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t<cds-breadcrumb-item href=\"#1\">\n\t\t\t\tBreadcrumb 1\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#2\">\n\t\t\t\tBreadcrumb 2\n\t\t\t</cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item href=\"#3\">\n\t\t\t\tBreadcrumb 3\n\t\t\t</cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
78328
78391
|
},
|
|
78329
78392
|
{
|
|
78330
|
-
"name": "
|
|
78393
|
+
"name": "WithSkeleton",
|
|
78331
78394
|
"ctype": "miscellaneous",
|
|
78332
78395
|
"subtype": "variable",
|
|
78333
|
-
"file": "src/
|
|
78396
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78334
78397
|
"deprecated": false,
|
|
78335
78398
|
"deprecationMessage": "",
|
|
78336
78399
|
"type": "",
|
|
78337
|
-
"defaultValue": "
|
|
78400
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-breadcrumb skeleton=\"true\" [noTrailingSlash]=\"noTrailingSlash\">\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t\t<cds-breadcrumb-item></cds-breadcrumb-item>\n\t\t</cds-breadcrumb>\n\t`\n})"
|
|
78338
78401
|
},
|
|
78339
78402
|
{
|
|
78340
|
-
"name": "
|
|
78403
|
+
"name": "withTemplate",
|
|
78341
78404
|
"ctype": "miscellaneous",
|
|
78342
78405
|
"subtype": "variable",
|
|
78343
|
-
"file": "src/
|
|
78406
|
+
"file": "src/breadcrumb/breadcrumb.stories.ts",
|
|
78344
78407
|
"deprecated": false,
|
|
78345
78408
|
"deprecationMessage": "",
|
|
78346
78409
|
"type": "",
|
|
78347
|
-
"defaultValue": "(
|
|
78410
|
+
"defaultValue": "(templateRef, items) => items.map(item => Object.assign(item, { template: templateRef }))"
|
|
78348
78411
|
}
|
|
78349
78412
|
],
|
|
78350
78413
|
"src/checkbox/checkbox.stories.ts": [
|
|
@@ -79770,6 +79833,16 @@
|
|
|
79770
79833
|
"type": "",
|
|
79771
79834
|
"defaultValue": "Template.bind({})"
|
|
79772
79835
|
},
|
|
79836
|
+
{
|
|
79837
|
+
"name": "Fluid",
|
|
79838
|
+
"ctype": "miscellaneous",
|
|
79839
|
+
"subtype": "variable",
|
|
79840
|
+
"file": "src/search/search.stories.ts",
|
|
79841
|
+
"deprecated": false,
|
|
79842
|
+
"deprecationMessage": "",
|
|
79843
|
+
"type": "",
|
|
79844
|
+
"defaultValue": "Template.bind({})"
|
|
79845
|
+
},
|
|
79773
79846
|
{
|
|
79774
79847
|
"name": "Template",
|
|
79775
79848
|
"ctype": "miscellaneous",
|
|
@@ -79778,7 +79851,7 @@
|
|
|
79778
79851
|
"deprecated": false,
|
|
79779
79852
|
"deprecationMessage": "",
|
|
79780
79853
|
"type": "",
|
|
79781
|
-
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-search\n\t\t\t[theme]=\"theme\"\n\t\t\t[placeholder]=\"placeholder\"\n\t\t\t[autocomplete]=\"autocomplete\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[size]=\"size\"\n\t\t\t(valueChange)=\"valueChange($event)\"\n\t\t\t(clear)=\"clear()\"\n\t\t\t[expandable]=\"expandable\">\n\t\t</cds-search>\n\t`\n})"
|
|
79854
|
+
"defaultValue": "(args) => ({\n\tprops: args,\n\ttemplate: `\n\t\t<cds-search\n\t\t\t[theme]=\"theme\"\n\t\t\t[placeholder]=\"placeholder\"\n\t\t\t[autocomplete]=\"autocomplete\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[size]=\"size\"\n\t\t\t(valueChange)=\"valueChange($event)\"\n\t\t\t(clear)=\"clear()\"\n\t\t\t[fluid]=\"fluid\"\n\t\t\t[skeleton]=\"skeleton\"\n\t\t\t[expandable]=\"expandable\">\n\t\t</cds-search>\n\t`\n})"
|
|
79782
79855
|
}
|
|
79783
79856
|
],
|
|
79784
79857
|
"src/select/select.stories.ts": [
|
|
@@ -87220,8 +87293,8 @@
|
|
|
87220
87293
|
"type": "component",
|
|
87221
87294
|
"linktype": "component",
|
|
87222
87295
|
"name": "Search",
|
|
87223
|
-
"coveragePercent":
|
|
87224
|
-
"coverageCount": "
|
|
87296
|
+
"coveragePercent": 73,
|
|
87297
|
+
"coverageCount": "36/49",
|
|
87225
87298
|
"status": "good"
|
|
87226
87299
|
},
|
|
87227
87300
|
{
|
|
@@ -87234,6 +87307,16 @@
|
|
|
87234
87307
|
"coverageCount": "0/1",
|
|
87235
87308
|
"status": "low"
|
|
87236
87309
|
},
|
|
87310
|
+
{
|
|
87311
|
+
"filePath": "src/search/search.stories.ts",
|
|
87312
|
+
"type": "variable",
|
|
87313
|
+
"linktype": "miscellaneous",
|
|
87314
|
+
"linksubtype": "variable",
|
|
87315
|
+
"name": "Fluid",
|
|
87316
|
+
"coveragePercent": 0,
|
|
87317
|
+
"coverageCount": "0/1",
|
|
87318
|
+
"status": "low"
|
|
87319
|
+
},
|
|
87237
87320
|
{
|
|
87238
87321
|
"filePath": "src/search/search.stories.ts",
|
|
87239
87322
|
"type": "variable",
|
|
@@ -88255,8 +88338,8 @@
|
|
|
88255
88338
|
"type": "component",
|
|
88256
88339
|
"linktype": "component",
|
|
88257
88340
|
"name": "TableToolbarSearch",
|
|
88258
|
-
"coveragePercent":
|
|
88259
|
-
"coverageCount": "
|
|
88341
|
+
"coveragePercent": 65,
|
|
88342
|
+
"coverageCount": "34/52",
|
|
88260
88343
|
"status": "good"
|
|
88261
88344
|
},
|
|
88262
88345
|
{
|