carbon-components-angular 5.20.1 → 5.20.3
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/Search.html +76 -65
- package/docs/documentation/components/Slider.html +157 -135
- package/docs/documentation/components/TableRadio.html +1 -1
- package/docs/documentation/components/TableToolbarSearch.html +44 -44
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/ThemeModule/dependencies.svg +13 -13
- package/docs/documentation/modules/ThemeModule.html +13 -13
- package/docs/documentation/modules/TilesModule/dependencies.svg +101 -101
- package/docs/documentation/modules/TilesModule.html +101 -101
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TimePickerModule.html +4 -4
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TimePickerSelectModule.html +4 -4
- package/docs/documentation/modules/ToggleModule/dependencies.svg +17 -17
- package/docs/documentation/modules/ToggleModule.html +17 -17
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +37 -37
- package/docs/documentation/modules/ToggletipModule.html +37 -37
- package/docs/documentation/modules/TooltipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TooltipModule.html +4 -4
- package/docs/documentation/modules/TreeviewModule/dependencies.svg +37 -37
- package/docs/documentation/modules/TreeviewModule.html +37 -37
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation.json +194 -194
- package/docs/storybook/5868.f5a4be2e.iframe.bundle.js +1 -0
- package/docs/storybook/{contained-list-contained-list-stories.f8fd4e51.iframe.bundle.js → contained-list-contained-list-stories.2887855a.iframe.bundle.js} +1 -1
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/index.html +27 -0
- package/docs/storybook/{main.b12cb86b.iframe.bundle.js → main.939e2f87.iframe.bundle.js} +1 -1
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.2d269ad5.iframe.bundle.js → runtime~main.a91352e8.iframe.bundle.js} +1 -1
- package/docs/storybook/{search-search-stories.c716e8fe.iframe.bundle.js → search-search-stories.fac60ec0.iframe.bundle.js} +1 -1
- package/docs/storybook/{slider-slider-stories.476668e9.iframe.bundle.js → slider-slider-stories.f608c3ca.iframe.bundle.js} +1 -1
- package/docs/storybook/ui-shell-ui-shell-stories.70551d65.iframe.bundle.js +1 -0
- package/esm2020/search/search.component.mjs +13 -3
- package/esm2020/slider/slider.component.mjs +71 -49
- package/esm2020/table/cell/table-radio.component.mjs +1 -1
- package/fesm2015/carbon-components-angular-search.mjs +12 -2
- package/fesm2015/carbon-components-angular-search.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-slider.mjs +70 -48
- package/fesm2015/carbon-components-angular-slider.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-table.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-search.mjs +12 -2
- package/fesm2020/carbon-components-angular-search.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-slider.mjs +70 -48
- package/fesm2020/carbon-components-angular-slider.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-table.mjs.map +1 -1
- package/package.json +1 -1
- package/slider/slider.component.d.ts +4 -1
- package/docs/storybook/5868.6cf155a6.iframe.bundle.js +0 -1
- package/docs/storybook/ui-shell-ui-shell-stories.caec4727.iframe.bundle.js +0 -1
package/docs/documentation.json
CHANGED
|
@@ -45384,7 +45384,7 @@
|
|
|
45384
45384
|
},
|
|
45385
45385
|
{
|
|
45386
45386
|
"name": "Search",
|
|
45387
|
-
"id": "component-Search-
|
|
45387
|
+
"id": "component-Search-8499a76483757feb0524f273b8757af7429d3a794a471c9e4d7fea429ae77a3cc2d0f6d07535fa2fb4b43012df7906ee6d702f9b6b2b3d4131b3a184b66263fe",
|
|
45388
45388
|
"file": "src/search/search.component.ts",
|
|
45389
45389
|
"encapsulation": [],
|
|
45390
45390
|
"entryComponents": [],
|
|
@@ -45411,7 +45411,7 @@
|
|
|
45411
45411
|
"deprecationMessage": "",
|
|
45412
45412
|
"rawdescription": "\n\nSet to `true` to expand the toolbar search component.\n",
|
|
45413
45413
|
"description": "<p>Set to <code>true</code> to expand the toolbar search component.</p>\n",
|
|
45414
|
-
"line":
|
|
45414
|
+
"line": 75,
|
|
45415
45415
|
"type": "boolean",
|
|
45416
45416
|
"decorators": []
|
|
45417
45417
|
},
|
|
@@ -45421,7 +45421,7 @@
|
|
|
45421
45421
|
"deprecationMessage": "",
|
|
45422
45422
|
"rawdescription": "\n\nSets the aria label on the `div` element with the `search` role.\n",
|
|
45423
45423
|
"description": "<p>Sets the aria label on the <code>div</code> element with the <code>search</code> role.</p>\n",
|
|
45424
|
-
"line":
|
|
45424
|
+
"line": 120,
|
|
45425
45425
|
"type": "string",
|
|
45426
45426
|
"decorators": []
|
|
45427
45427
|
},
|
|
@@ -45432,7 +45432,7 @@
|
|
|
45432
45432
|
"deprecationMessage": "",
|
|
45433
45433
|
"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",
|
|
45434
45434
|
"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",
|
|
45435
|
-
"line":
|
|
45435
|
+
"line": 100,
|
|
45436
45436
|
"type": "string",
|
|
45437
45437
|
"decorators": []
|
|
45438
45438
|
},
|
|
@@ -45443,7 +45443,7 @@
|
|
|
45443
45443
|
"deprecationMessage": "",
|
|
45444
45444
|
"rawdescription": "\n\nUsed to set the `title` attribute of the clear button.\n",
|
|
45445
45445
|
"description": "<p>Used to set the <code>title</code> attribute of the clear button.</p>\n",
|
|
45446
|
-
"line":
|
|
45446
|
+
"line": 112,
|
|
45447
45447
|
"type": "any",
|
|
45448
45448
|
"decorators": []
|
|
45449
45449
|
},
|
|
@@ -45454,7 +45454,7 @@
|
|
|
45454
45454
|
"deprecationMessage": "",
|
|
45455
45455
|
"rawdescription": "\n\nSet to `true` for a disabled search input.\n",
|
|
45456
45456
|
"description": "<p>Set to <code>true</code> for a disabled search input.</p>\n",
|
|
45457
|
-
"line":
|
|
45457
|
+
"line": 58,
|
|
45458
45458
|
"type": "boolean",
|
|
45459
45459
|
"decorators": []
|
|
45460
45460
|
},
|
|
@@ -45465,7 +45465,7 @@
|
|
|
45465
45465
|
"deprecationMessage": "",
|
|
45466
45466
|
"rawdescription": "\n\nSet to `true` to make the search component expandable.\n`expandable` would override `toolbar` property behaviours.\n",
|
|
45467
45467
|
"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",
|
|
45468
|
-
"line":
|
|
45468
|
+
"line": 67,
|
|
45469
45469
|
"type": "boolean",
|
|
45470
45470
|
"decorators": []
|
|
45471
45471
|
},
|
|
@@ -45476,7 +45476,7 @@
|
|
|
45476
45476
|
"deprecationMessage": "",
|
|
45477
45477
|
"rawdescription": "\n\nThe unique id for the search component.\n",
|
|
45478
45478
|
"description": "<p>The unique id for the search component.</p>\n",
|
|
45479
|
-
"line":
|
|
45479
|
+
"line": 87,
|
|
45480
45480
|
"type": "string",
|
|
45481
45481
|
"decorators": []
|
|
45482
45482
|
},
|
|
@@ -45487,7 +45487,7 @@
|
|
|
45487
45487
|
"deprecationMessage": "",
|
|
45488
45488
|
"rawdescription": "\n\nSets the text inside the `label` tag.\n",
|
|
45489
45489
|
"description": "<p>Sets the text inside the <code>label</code> tag.</p>\n",
|
|
45490
|
-
"line":
|
|
45490
|
+
"line": 104,
|
|
45491
45491
|
"type": "any",
|
|
45492
45492
|
"decorators": []
|
|
45493
45493
|
},
|
|
@@ -45497,7 +45497,7 @@
|
|
|
45497
45497
|
"deprecationMessage": "",
|
|
45498
45498
|
"rawdescription": "\n\nSets the name attribute on the `input` element.\n",
|
|
45499
45499
|
"description": "<p>Sets the name attribute on the <code>input</code> element.</p>\n",
|
|
45500
|
-
"line":
|
|
45500
|
+
"line": 83,
|
|
45501
45501
|
"type": "string",
|
|
45502
45502
|
"decorators": []
|
|
45503
45503
|
},
|
|
@@ -45508,7 +45508,7 @@
|
|
|
45508
45508
|
"deprecationMessage": "",
|
|
45509
45509
|
"rawdescription": "\n\nSets the placeholder attribute on the `input` element.\n",
|
|
45510
45510
|
"description": "<p>Sets the placeholder attribute on the <code>input</code> element.</p>\n",
|
|
45511
|
-
"line":
|
|
45511
|
+
"line": 108,
|
|
45512
45512
|
"type": "any",
|
|
45513
45513
|
"decorators": []
|
|
45514
45514
|
},
|
|
@@ -45518,7 +45518,7 @@
|
|
|
45518
45518
|
"deprecationMessage": "",
|
|
45519
45519
|
"rawdescription": "\n\nReflects the required attribute of the `input` element.\n",
|
|
45520
45520
|
"description": "<p>Reflects the required attribute of the <code>input</code> element.</p>\n",
|
|
45521
|
-
"line":
|
|
45521
|
+
"line": 91,
|
|
45522
45522
|
"type": "boolean",
|
|
45523
45523
|
"decorators": []
|
|
45524
45524
|
},
|
|
@@ -45529,7 +45529,7 @@
|
|
|
45529
45529
|
"deprecationMessage": "",
|
|
45530
45530
|
"rawdescription": "\n\nTitle for the search trigger\n",
|
|
45531
45531
|
"description": "<p>Title for the search trigger</p>\n",
|
|
45532
|
-
"line":
|
|
45532
|
+
"line": 116,
|
|
45533
45533
|
"type": "string",
|
|
45534
45534
|
"decorators": []
|
|
45535
45535
|
},
|
|
@@ -45540,7 +45540,7 @@
|
|
|
45540
45540
|
"deprecationMessage": "",
|
|
45541
45541
|
"rawdescription": "\n\nSize of the search field.\n",
|
|
45542
45542
|
"description": "<p>Size of the search field.</p>\n",
|
|
45543
|
-
"line":
|
|
45543
|
+
"line": 53,
|
|
45544
45544
|
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
45545
45545
|
"decorators": []
|
|
45546
45546
|
},
|
|
@@ -45551,7 +45551,7 @@
|
|
|
45551
45551
|
"deprecationMessage": "",
|
|
45552
45552
|
"rawdescription": "\n\nSet to `true` for a loading search component.\n",
|
|
45553
45553
|
"description": "<p>Set to <code>true</code> for a loading search component.</p>\n",
|
|
45554
|
-
"line":
|
|
45554
|
+
"line": 71,
|
|
45555
45555
|
"type": "boolean",
|
|
45556
45556
|
"decorators": []
|
|
45557
45557
|
},
|
|
@@ -45562,7 +45562,7 @@
|
|
|
45562
45562
|
"deprecationMessage": "",
|
|
45563
45563
|
"rawdescription": "\n\nSpecifies whether the search component is used in the table toolbar.\n",
|
|
45564
45564
|
"description": "<p>Specifies whether the search component is used in the table toolbar.</p>\n",
|
|
45565
|
-
"line":
|
|
45565
|
+
"line": 79,
|
|
45566
45566
|
"type": "boolean",
|
|
45567
45567
|
"decorators": []
|
|
45568
45568
|
},
|
|
@@ -45573,15 +45573,15 @@
|
|
|
45573
45573
|
"deprecationMessage": "since v5 - Use `cdsLayer` directive instead\n`light` or `dark` search theme.",
|
|
45574
45574
|
"jsdoctags": [
|
|
45575
45575
|
{
|
|
45576
|
-
"pos":
|
|
45577
|
-
"end":
|
|
45576
|
+
"pos": 921,
|
|
45577
|
+
"end": 1015,
|
|
45578
45578
|
"flags": 8421376,
|
|
45579
45579
|
"modifierFlagsCache": 0,
|
|
45580
45580
|
"transformFlags": 0,
|
|
45581
45581
|
"kind": 334,
|
|
45582
45582
|
"tagName": {
|
|
45583
|
-
"pos":
|
|
45584
|
-
"end":
|
|
45583
|
+
"pos": 922,
|
|
45584
|
+
"end": 932,
|
|
45585
45585
|
"flags": 8421376,
|
|
45586
45586
|
"modifierFlagsCache": 0,
|
|
45587
45587
|
"transformFlags": 0,
|
|
@@ -45591,7 +45591,7 @@
|
|
|
45591
45591
|
"comment": "<p>since v5 - Use <code>cdsLayer</code> directive instead\n<code>light</code> or <code>dark</code> search theme.</p>\n"
|
|
45592
45592
|
}
|
|
45593
45593
|
],
|
|
45594
|
-
"line":
|
|
45594
|
+
"line": 48,
|
|
45595
45595
|
"type": "\"light\" | \"dark\"",
|
|
45596
45596
|
"decorators": []
|
|
45597
45597
|
},
|
|
@@ -45602,7 +45602,7 @@
|
|
|
45602
45602
|
"deprecationMessage": "",
|
|
45603
45603
|
"rawdescription": "\n\nSet to `true` for a toolbar search component.\n",
|
|
45604
45604
|
"description": "<p>Set to <code>true</code> for a toolbar search component.</p>\n",
|
|
45605
|
-
"line":
|
|
45605
|
+
"line": 62,
|
|
45606
45606
|
"type": "boolean",
|
|
45607
45607
|
"decorators": []
|
|
45608
45608
|
},
|
|
@@ -45613,7 +45613,7 @@
|
|
|
45613
45613
|
"deprecationMessage": "",
|
|
45614
45614
|
"rawdescription": "\n\nSets the value attribute on the `input` element.\n",
|
|
45615
45615
|
"description": "<p>Sets the value attribute on the <code>input</code> element.</p>\n",
|
|
45616
|
-
"line":
|
|
45616
|
+
"line": 95,
|
|
45617
45617
|
"type": "string",
|
|
45618
45618
|
"decorators": []
|
|
45619
45619
|
}
|
|
@@ -45626,7 +45626,7 @@
|
|
|
45626
45626
|
"deprecationMessage": "",
|
|
45627
45627
|
"rawdescription": "\n\nEmits an event when the clear button is clicked.\n",
|
|
45628
45628
|
"description": "<p>Emits an event when the clear button is clicked.</p>\n",
|
|
45629
|
-
"line":
|
|
45629
|
+
"line": 129,
|
|
45630
45630
|
"type": "EventEmitter"
|
|
45631
45631
|
},
|
|
45632
45632
|
{
|
|
@@ -45634,7 +45634,7 @@
|
|
|
45634
45634
|
"defaultValue": "new EventEmitter<boolean>()",
|
|
45635
45635
|
"deprecated": false,
|
|
45636
45636
|
"deprecationMessage": "",
|
|
45637
|
-
"line":
|
|
45637
|
+
"line": 125,
|
|
45638
45638
|
"type": "EventEmitter"
|
|
45639
45639
|
},
|
|
45640
45640
|
{
|
|
@@ -45644,7 +45644,7 @@
|
|
|
45644
45644
|
"deprecationMessage": "",
|
|
45645
45645
|
"rawdescription": "\n\nEmits an event on enter.\n",
|
|
45646
45646
|
"description": "<p>Emits an event on enter.</p>\n",
|
|
45647
|
-
"line":
|
|
45647
|
+
"line": 133,
|
|
45648
45648
|
"type": "EventEmitter"
|
|
45649
45649
|
},
|
|
45650
45650
|
{
|
|
@@ -45654,7 +45654,7 @@
|
|
|
45654
45654
|
"deprecationMessage": "",
|
|
45655
45655
|
"rawdescription": "\n\nEmits an event when value is changed.\n",
|
|
45656
45656
|
"description": "<p>Emits an event when value is changed.</p>\n",
|
|
45657
|
-
"line":
|
|
45657
|
+
"line": 124,
|
|
45658
45658
|
"type": "EventEmitter"
|
|
45659
45659
|
}
|
|
45660
45660
|
],
|
|
@@ -45666,7 +45666,7 @@
|
|
|
45666
45666
|
"type": "ElementRef",
|
|
45667
45667
|
"optional": false,
|
|
45668
45668
|
"description": "",
|
|
45669
|
-
"line":
|
|
45669
|
+
"line": 135,
|
|
45670
45670
|
"decorators": [
|
|
45671
45671
|
{
|
|
45672
45672
|
"name": "ViewChild",
|
|
@@ -45685,7 +45685,7 @@
|
|
|
45685
45685
|
"type": "function",
|
|
45686
45686
|
"optional": false,
|
|
45687
45687
|
"description": "<p>Called when search input is blurred. Needed to properly implement <code>ControlValueAccessor</code>.</p>\n",
|
|
45688
|
-
"line":
|
|
45688
|
+
"line": 176,
|
|
45689
45689
|
"rawdescription": "\n\nCalled when search input is blurred. Needed to properly implement `ControlValueAccessor`.\n"
|
|
45690
45690
|
},
|
|
45691
45691
|
{
|
|
@@ -45696,7 +45696,7 @@
|
|
|
45696
45696
|
"type": "",
|
|
45697
45697
|
"optional": false,
|
|
45698
45698
|
"description": "<p>Method set in <code>registerOnChange</code> to propagate changes back to the form.</p>\n",
|
|
45699
|
-
"line":
|
|
45699
|
+
"line": 181,
|
|
45700
45700
|
"rawdescription": "\n\nMethod set in `registerOnChange` to propagate changes back to the form.\n"
|
|
45701
45701
|
},
|
|
45702
45702
|
{
|
|
@@ -45721,7 +45721,7 @@
|
|
|
45721
45721
|
"optional": false,
|
|
45722
45722
|
"returnType": "void",
|
|
45723
45723
|
"typeParameters": [],
|
|
45724
|
-
"line":
|
|
45724
|
+
"line": 205,
|
|
45725
45725
|
"deprecated": false,
|
|
45726
45726
|
"deprecationMessage": "",
|
|
45727
45727
|
"rawdescription": "\n\nCalled when clear button is clicked.\n",
|
|
@@ -45740,7 +45740,7 @@
|
|
|
45740
45740
|
"optional": false,
|
|
45741
45741
|
"returnType": "void",
|
|
45742
45742
|
"typeParameters": [],
|
|
45743
|
-
"line":
|
|
45743
|
+
"line": 277,
|
|
45744
45744
|
"deprecated": false,
|
|
45745
45745
|
"deprecationMessage": "",
|
|
45746
45746
|
"rawdescription": "\n\nCalled when IME composition finishes.\n",
|
|
@@ -45779,7 +45779,7 @@
|
|
|
45779
45779
|
"optional": false,
|
|
45780
45780
|
"returnType": "void",
|
|
45781
45781
|
"typeParameters": [],
|
|
45782
|
-
"line":
|
|
45782
|
+
"line": 269,
|
|
45783
45783
|
"deprecated": false,
|
|
45784
45784
|
"deprecationMessage": "",
|
|
45785
45785
|
"rawdescription": "\n\nCalled when using IME composition.\n",
|
|
@@ -45811,7 +45811,7 @@
|
|
|
45811
45811
|
"optional": false,
|
|
45812
45812
|
"returnType": "void",
|
|
45813
45813
|
"typeParameters": [],
|
|
45814
|
-
"line":
|
|
45814
|
+
"line": 211,
|
|
45815
45815
|
"deprecated": false,
|
|
45816
45816
|
"deprecationMessage": ""
|
|
45817
45817
|
},
|
|
@@ -45828,7 +45828,7 @@
|
|
|
45828
45828
|
"optional": false,
|
|
45829
45829
|
"returnType": "void",
|
|
45830
45830
|
"typeParameters": [],
|
|
45831
|
-
"line":
|
|
45831
|
+
"line": 255,
|
|
45832
45832
|
"deprecated": false,
|
|
45833
45833
|
"deprecationMessage": "",
|
|
45834
45834
|
"decorators": [
|
|
@@ -45865,7 +45865,7 @@
|
|
|
45865
45865
|
"optional": false,
|
|
45866
45866
|
"returnType": "void",
|
|
45867
45867
|
"typeParameters": [],
|
|
45868
|
-
"line":
|
|
45868
|
+
"line": 243,
|
|
45869
45869
|
"deprecated": false,
|
|
45870
45870
|
"deprecationMessage": "",
|
|
45871
45871
|
"decorators": [
|
|
@@ -45902,7 +45902,7 @@
|
|
|
45902
45902
|
"optional": false,
|
|
45903
45903
|
"returnType": "void",
|
|
45904
45904
|
"typeParameters": [],
|
|
45905
|
-
"line":
|
|
45905
|
+
"line": 223,
|
|
45906
45906
|
"deprecated": false,
|
|
45907
45907
|
"deprecationMessage": "",
|
|
45908
45908
|
"decorators": [
|
|
@@ -45932,7 +45932,7 @@
|
|
|
45932
45932
|
"optional": false,
|
|
45933
45933
|
"returnType": "void",
|
|
45934
45934
|
"typeParameters": [],
|
|
45935
|
-
"line":
|
|
45935
|
+
"line": 198,
|
|
45936
45936
|
"deprecated": false,
|
|
45937
45937
|
"deprecationMessage": "",
|
|
45938
45938
|
"rawdescription": "\n\nCalled on enter.\n",
|
|
@@ -45951,7 +45951,7 @@
|
|
|
45951
45951
|
"optional": false,
|
|
45952
45952
|
"returnType": "void",
|
|
45953
45953
|
"typeParameters": [],
|
|
45954
|
-
"line":
|
|
45954
|
+
"line": 187,
|
|
45955
45955
|
"deprecated": false,
|
|
45956
45956
|
"deprecationMessage": "",
|
|
45957
45957
|
"rawdescription": "\n\nCalled when text is written in the input.\n",
|
|
@@ -45959,8 +45959,8 @@
|
|
|
45959
45959
|
"jsdoctags": [
|
|
45960
45960
|
{
|
|
45961
45961
|
"name": {
|
|
45962
|
-
"pos":
|
|
45963
|
-
"end":
|
|
45962
|
+
"pos": 4396,
|
|
45963
|
+
"end": 4402,
|
|
45964
45964
|
"flags": 8421376,
|
|
45965
45965
|
"modifierFlagsCache": 0,
|
|
45966
45966
|
"transformFlags": 0,
|
|
@@ -45971,8 +45971,8 @@
|
|
|
45971
45971
|
"deprecated": false,
|
|
45972
45972
|
"deprecationMessage": "",
|
|
45973
45973
|
"tagName": {
|
|
45974
|
-
"pos":
|
|
45975
|
-
"end":
|
|
45974
|
+
"pos": 4390,
|
|
45975
|
+
"end": 4395,
|
|
45976
45976
|
"flags": 8421376,
|
|
45977
45977
|
"modifierFlagsCache": 0,
|
|
45978
45978
|
"transformFlags": 0,
|
|
@@ -45989,7 +45989,7 @@
|
|
|
45989
45989
|
"optional": false,
|
|
45990
45990
|
"returnType": "void",
|
|
45991
45991
|
"typeParameters": [],
|
|
45992
|
-
"line":
|
|
45992
|
+
"line": 216,
|
|
45993
45993
|
"deprecated": false,
|
|
45994
45994
|
"deprecationMessage": ""
|
|
45995
45995
|
},
|
|
@@ -46006,7 +46006,7 @@
|
|
|
46006
46006
|
"optional": false,
|
|
46007
46007
|
"returnType": "void",
|
|
46008
46008
|
"typeParameters": [],
|
|
46009
|
-
"line":
|
|
46009
|
+
"line": 161,
|
|
46010
46010
|
"deprecated": false,
|
|
46011
46011
|
"deprecationMessage": "",
|
|
46012
46012
|
"rawdescription": "\n\nSets a method in order to propagate changes back to the form.\n",
|
|
@@ -46039,7 +46039,7 @@
|
|
|
46039
46039
|
"optional": false,
|
|
46040
46040
|
"returnType": "void",
|
|
46041
46041
|
"typeParameters": [],
|
|
46042
|
-
"line":
|
|
46042
|
+
"line": 169,
|
|
46043
46043
|
"deprecated": false,
|
|
46044
46044
|
"deprecationMessage": "",
|
|
46045
46045
|
"rawdescription": "\n\nRegisters a callback to be triggered when the control has been touched.\n",
|
|
@@ -46050,8 +46050,8 @@
|
|
|
46050
46050
|
"jsdoctags": [
|
|
46051
46051
|
{
|
|
46052
46052
|
"name": {
|
|
46053
|
-
"pos":
|
|
46054
|
-
"end":
|
|
46053
|
+
"pos": 3942,
|
|
46054
|
+
"end": 3944,
|
|
46055
46055
|
"flags": 8421376,
|
|
46056
46056
|
"modifierFlagsCache": 0,
|
|
46057
46057
|
"transformFlags": 0,
|
|
@@ -46062,8 +46062,8 @@
|
|
|
46062
46062
|
"deprecated": false,
|
|
46063
46063
|
"deprecationMessage": "",
|
|
46064
46064
|
"tagName": {
|
|
46065
|
-
"pos":
|
|
46066
|
-
"end":
|
|
46065
|
+
"pos": 3936,
|
|
46066
|
+
"end": 3941,
|
|
46067
46067
|
"flags": 8421376,
|
|
46068
46068
|
"modifierFlagsCache": 0,
|
|
46069
46069
|
"transformFlags": 0,
|
|
@@ -46087,7 +46087,7 @@
|
|
|
46087
46087
|
"optional": false,
|
|
46088
46088
|
"returnType": "void",
|
|
46089
46089
|
"typeParameters": [],
|
|
46090
|
-
"line":
|
|
46090
|
+
"line": 154,
|
|
46091
46091
|
"deprecated": false,
|
|
46092
46092
|
"deprecationMessage": "",
|
|
46093
46093
|
"rawdescription": "\n\nThis is the initial value set to the component\n",
|
|
@@ -46098,8 +46098,8 @@
|
|
|
46098
46098
|
"jsdoctags": [
|
|
46099
46099
|
{
|
|
46100
46100
|
"name": {
|
|
46101
|
-
"pos":
|
|
46102
|
-
"end":
|
|
46101
|
+
"pos": 3618,
|
|
46102
|
+
"end": 3623,
|
|
46103
46103
|
"flags": 8421376,
|
|
46104
46104
|
"modifierFlagsCache": 0,
|
|
46105
46105
|
"transformFlags": 0,
|
|
@@ -46110,8 +46110,8 @@
|
|
|
46110
46110
|
"deprecated": false,
|
|
46111
46111
|
"deprecationMessage": "",
|
|
46112
46112
|
"tagName": {
|
|
46113
|
-
"pos":
|
|
46114
|
-
"end":
|
|
46113
|
+
"pos": 3612,
|
|
46114
|
+
"end": 3617,
|
|
46115
46115
|
"flags": 8421376,
|
|
46116
46116
|
"modifierFlagsCache": 0,
|
|
46117
46117
|
"transformFlags": 0,
|
|
@@ -46153,7 +46153,7 @@
|
|
|
46153
46153
|
"deprecationMessage": "",
|
|
46154
46154
|
"rawdescription": "\n\nCalled when IME composition finishes.\n",
|
|
46155
46155
|
"description": "<p>Called when IME composition finishes.</p>\n",
|
|
46156
|
-
"line":
|
|
46156
|
+
"line": 277
|
|
46157
46157
|
},
|
|
46158
46158
|
{
|
|
46159
46159
|
"name": "compositionstart",
|
|
@@ -46172,7 +46172,7 @@
|
|
|
46172
46172
|
"deprecationMessage": "",
|
|
46173
46173
|
"rawdescription": "\n\nCalled when using IME composition.\n",
|
|
46174
46174
|
"description": "<p>Called when using IME composition.</p>\n",
|
|
46175
|
-
"line":
|
|
46175
|
+
"line": 269
|
|
46176
46176
|
},
|
|
46177
46177
|
{
|
|
46178
46178
|
"name": "focusin",
|
|
@@ -46189,7 +46189,7 @@
|
|
|
46189
46189
|
],
|
|
46190
46190
|
"deprecated": false,
|
|
46191
46191
|
"deprecationMessage": "",
|
|
46192
|
-
"line":
|
|
46192
|
+
"line": 255
|
|
46193
46193
|
},
|
|
46194
46194
|
{
|
|
46195
46195
|
"name": "focusout",
|
|
@@ -46206,7 +46206,7 @@
|
|
|
46206
46206
|
],
|
|
46207
46207
|
"deprecated": false,
|
|
46208
46208
|
"deprecationMessage": "",
|
|
46209
|
-
"line":
|
|
46209
|
+
"line": 243
|
|
46210
46210
|
},
|
|
46211
46211
|
{
|
|
46212
46212
|
"name": "keydown",
|
|
@@ -46223,7 +46223,7 @@
|
|
|
46223
46223
|
],
|
|
46224
46224
|
"deprecated": false,
|
|
46225
46225
|
"deprecationMessage": "",
|
|
46226
|
-
"line":
|
|
46226
|
+
"line": 223
|
|
46227
46227
|
}
|
|
46228
46228
|
],
|
|
46229
46229
|
"standalone": false,
|
|
@@ -46231,7 +46231,7 @@
|
|
|
46231
46231
|
"description": "<p>Get started with importing the module:</p>\n<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",
|
|
46232
46232
|
"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",
|
|
46233
46233
|
"type": "component",
|
|
46234
|
-
"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() {
|
|
46234
|
+
"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",
|
|
46235
46235
|
"assetsDirs": [],
|
|
46236
46236
|
"styleUrlsData": "",
|
|
46237
46237
|
"stylesData": "",
|
|
@@ -46254,7 +46254,7 @@
|
|
|
46254
46254
|
"deprecationMessage": ""
|
|
46255
46255
|
}
|
|
46256
46256
|
],
|
|
46257
|
-
"line":
|
|
46257
|
+
"line": 140,
|
|
46258
46258
|
"rawdescription": "\n\nCreates an instance of `Search`.\n",
|
|
46259
46259
|
"jsdoctags": [
|
|
46260
46260
|
{
|
|
@@ -46268,8 +46268,8 @@
|
|
|
46268
46268
|
},
|
|
46269
46269
|
{
|
|
46270
46270
|
"name": {
|
|
46271
|
-
"pos":
|
|
46272
|
-
"end":
|
|
46271
|
+
"pos": 3419,
|
|
46272
|
+
"end": 3423,
|
|
46273
46273
|
"flags": 8421376,
|
|
46274
46274
|
"modifierFlagsCache": 0,
|
|
46275
46275
|
"transformFlags": 0,
|
|
@@ -46280,8 +46280,8 @@
|
|
|
46280
46280
|
"deprecated": false,
|
|
46281
46281
|
"deprecationMessage": "",
|
|
46282
46282
|
"tagName": {
|
|
46283
|
-
"pos":
|
|
46284
|
-
"end":
|
|
46283
|
+
"pos": 3413,
|
|
46284
|
+
"end": 3418,
|
|
46285
46285
|
"flags": 8421376,
|
|
46286
46286
|
"modifierFlagsCache": 0,
|
|
46287
46287
|
"transformFlags": 0,
|
|
@@ -48085,7 +48085,7 @@
|
|
|
48085
48085
|
},
|
|
48086
48086
|
{
|
|
48087
48087
|
"name": "Slider",
|
|
48088
|
-
"id": "component-Slider-
|
|
48088
|
+
"id": "component-Slider-dca469a8e54737811fa57b45f91389013897ba46fc691d12fe2a39b943d18681e35e894c948a39ab247a06ae54f3a37da00bb679681dea950c99cef2340686dc",
|
|
48089
48089
|
"file": "src/slider/slider.component.ts",
|
|
48090
48090
|
"encapsulation": [],
|
|
48091
48091
|
"entryComponents": [],
|
|
@@ -48099,7 +48099,7 @@
|
|
|
48099
48099
|
"selector": "cds-slider, ibm-slider",
|
|
48100
48100
|
"styleUrls": [],
|
|
48101
48101
|
"styles": [],
|
|
48102
|
-
"template": "<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t<label\n\t\t*ngIf=\"label\"\n\t\t[for]=\"id\"\n\t\t[id]=\"labelId\"\n\t\tclass=\"cds--label\"\n\t\t[ngClass]=\"{'cds--label--disabled': disabled}\">\n\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t</label>\n\t<div class=\"cds--slider-container\">\n\t\t<label [id]=\"bottomRangeId\" class=\"cds--slider__range-label\">\n\t\t\t<ng-content select=\"[minLabel]\"></ng-content>\n\t\t</label>\n\t\t<div\n\t\t\tclass=\"cds--slider\"\n\t\t\t[ngClass]=\"{'cds--slider--disabled': disabled}\">\n\t\t\t<ng-container *ngIf=\"!isRange()\">\n\t\t\t\t<div\n\t\t\t\t\t#thumbs\n\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t[id]=\"id\"\n\t\t\t\t\t[attr.aria-labelledby]=\"labelId\"\n\t\t\t\t\tclass=\"cds--slider__thumb\"\n\t\t\t\t\t
|
|
48102
|
+
"template": "<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t<label\n\t\t*ngIf=\"label\"\n\t\t[for]=\"id\"\n\t\t[id]=\"labelId\"\n\t\tclass=\"cds--label\"\n\t\t[ngClass]=\"{'cds--label--disabled': disabled}\">\n\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t</label>\n\t<div class=\"cds--slider-container\">\n\t\t<label [id]=\"bottomRangeId\" class=\"cds--slider__range-label\">\n\t\t\t<ng-content select=\"[minLabel]\"></ng-content>\n\t\t</label>\n\t\t<div\n\t\t\tclass=\"cds--slider\"\n\t\t\t(click)=\"onClick($event)\"\n\t\t\t[ngClass]=\"{'cds--slider--disabled': disabled}\">\n\t\t\t<ng-container *ngIf=\"!isRange()\">\n\t\t\t\t<div class=\"cds--slider__thumb-wrapper\"\n\t\t\t\t\t[ngStyle]=\"{insetInlineStart: getFractionComplete(value) * 100 + '%'}\">\n\t\t\t\t\t<div\n\t\t\t\t\t\t#thumbs\n\t\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t\t[id]=\"id\"\n\t\t\t\t\t\t[attr.aria-labelledby]=\"labelId\"\n\t\t\t\t\t\tclass=\"cds--slider__thumb\"\n\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t(mousedown)=\"onMouseDown($event)\"\n\t\t\t\t\t\t(keydown)=\"onKeyDown($event)\">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t\t<ng-container *ngIf=\"isRange()\">\n\t\t\t\t<div class=\"cds--slider__thumb-wrapper\"\n\t\t\t\t [ngStyle]=\"{insetInlineStart: getFractionComplete(thumb) * 100 + '%'}\"\n\t\t\t\t *ngFor=\"let thumb of value; let i = index; trackBy: trackThumbsBy\">\n\t\t\t\t\t<div\n\t\t\t\t\t\t#thumbs\n\t\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t\t[id]=\"id + (i > 0 ? '-' + i : '')\"\n\t\t\t\t\t\t[attr.aria-labelledby]=\"labelId\"\n\t\t\t\t\t\tclass=\"cds--slider__thumb\"\n\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t(mousedown)=\"onMouseDown($event, i)\"\n\t\t\t\t\t\t(keydown)=\"onKeyDown($event, i)\">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t\t<div\n\t\t\t\t#track\n\t\t\t\tclass=\"cds--slider__track\">\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\t#filledTrack\n\t\t\t\tclass=\"cds--slider__filled-track\">\n\t\t\t</div>\n\t\t\t<input\n\t\t\t\t#range\n\t\t\t\taria-label=\"slider\"\n\t\t\t\tclass=\"cds--slider__input\"\n\t\t\t\ttype=\"range\"\n\t\t\t\t[step]=\"step\"\n\t\t\t\t[min]=\"min\"\n\t\t\t\t[max]=\"max\"\n\t\t\t\t[value]=\"value.toString()\">\n\t\t</div>\n\t\t<label [id]=\"topRangeId\" class=\"cds--slider__range-label\">\n\t\t\t<ng-content select=\"[maxLabel]\"></ng-content>\n\t\t</label>\n\t\t<ng-content select=\"input\"></ng-content>\n\t</div>\n</ng-container>\n\n<ng-template #skeletonTemplate>\n\t<label *ngIf=\"label\" class=\"cds--label cds--skeleton\"></label>\n\t<div class=\"cds--slider-container cds--skeleton\">\n\t\t<span class=\"cds--slider__range-label\"></span>\n\t\t<div class=\"cds--slider\">\n\t\t\t<div class=\"cds--slider__thumb\"></div>\n\t\t\t<div class=\"cds--slider__track\"></div>\n\t\t\t<div class=\"cds--slider__filled-track\"></div>\n\t\t</div>\n\t\t<span class=\"cds--slider__range-label\"></span>\n\t</div>\n</ng-template>\n\t",
|
|
48103
48103
|
"templateUrl": [],
|
|
48104
48104
|
"viewProviders": [],
|
|
48105
48105
|
"hostDirectives": [],
|
|
@@ -48111,7 +48111,7 @@
|
|
|
48111
48111
|
"deprecationMessage": "",
|
|
48112
48112
|
"rawdescription": "\nSet to `true` for a slider without arrow key interactions.",
|
|
48113
48113
|
"description": "<p>Set to <code>true</code> for a slider without arrow key interactions.</p>\n",
|
|
48114
|
-
"line":
|
|
48114
|
+
"line": 265,
|
|
48115
48115
|
"type": "boolean",
|
|
48116
48116
|
"decorators": []
|
|
48117
48117
|
},
|
|
@@ -48121,7 +48121,7 @@
|
|
|
48121
48121
|
"deprecationMessage": "",
|
|
48122
48122
|
"rawdescription": "\nDisables the range visually and functionally",
|
|
48123
48123
|
"description": "<p>Disables the range visually and functionally</p>\n",
|
|
48124
|
-
"line":
|
|
48124
|
+
"line": 267,
|
|
48125
48125
|
"type": "boolean",
|
|
48126
48126
|
"decorators": []
|
|
48127
48127
|
},
|
|
@@ -48132,7 +48132,7 @@
|
|
|
48132
48132
|
"deprecationMessage": "",
|
|
48133
48133
|
"rawdescription": "\nBase ID for the slider. The min and max labels get IDs `${this.id}-bottom-range` and `${this.id}-top-range` respectively",
|
|
48134
48134
|
"description": "<p>Base ID for the slider. The min and max labels get IDs <code>${this.id}-bottom-range</code> and <code>${this.id}-top-range</code> respectively</p>\n",
|
|
48135
|
-
"line":
|
|
48135
|
+
"line": 257,
|
|
48136
48136
|
"type": "string",
|
|
48137
48137
|
"decorators": []
|
|
48138
48138
|
},
|
|
@@ -48142,7 +48142,7 @@
|
|
|
48142
48142
|
"deprecationMessage": "",
|
|
48143
48143
|
"rawdescription": "\nSets the text inside the `label` tag",
|
|
48144
48144
|
"description": "<p>Sets the text inside the <code>label</code> tag</p>\n",
|
|
48145
|
-
"line":
|
|
48145
|
+
"line": 263,
|
|
48146
48146
|
"type": "string | TemplateRef<any>",
|
|
48147
48147
|
"decorators": []
|
|
48148
48148
|
},
|
|
@@ -48152,7 +48152,7 @@
|
|
|
48152
48152
|
"deprecationMessage": "",
|
|
48153
48153
|
"rawdescription": "\nThe upper bound of our range",
|
|
48154
48154
|
"description": "<p>The upper bound of our range</p>\n",
|
|
48155
|
-
"line":
|
|
48155
|
+
"line": 175,
|
|
48156
48156
|
"type": "number",
|
|
48157
48157
|
"decorators": []
|
|
48158
48158
|
},
|
|
@@ -48162,7 +48162,7 @@
|
|
|
48162
48162
|
"deprecationMessage": "",
|
|
48163
48163
|
"rawdescription": "\nThe lower bound of our range",
|
|
48164
48164
|
"description": "<p>The lower bound of our range</p>\n",
|
|
48165
|
-
"line":
|
|
48165
|
+
"line": 165,
|
|
48166
48166
|
"type": "number",
|
|
48167
48167
|
"decorators": []
|
|
48168
48168
|
},
|
|
@@ -48173,7 +48173,7 @@
|
|
|
48173
48173
|
"deprecationMessage": "",
|
|
48174
48174
|
"rawdescription": "\nValue used to \"multiply\" the `step` when using arrow keys to select values",
|
|
48175
48175
|
"description": "<p>Value used to "multiply" the <code>step</code> when using arrow keys to select values</p>\n",
|
|
48176
|
-
"line":
|
|
48176
|
+
"line": 259,
|
|
48177
48177
|
"type": "number",
|
|
48178
48178
|
"decorators": []
|
|
48179
48179
|
},
|
|
@@ -48184,7 +48184,7 @@
|
|
|
48184
48184
|
"deprecationMessage": "",
|
|
48185
48185
|
"rawdescription": "\nSet to `true` for a loading slider",
|
|
48186
48186
|
"description": "<p>Set to <code>true</code> for a loading slider</p>\n",
|
|
48187
|
-
"line":
|
|
48187
|
+
"line": 261,
|
|
48188
48188
|
"type": "boolean",
|
|
48189
48189
|
"decorators": []
|
|
48190
48190
|
},
|
|
@@ -48195,7 +48195,7 @@
|
|
|
48195
48195
|
"deprecationMessage": "",
|
|
48196
48196
|
"rawdescription": "\nThe interval for our range",
|
|
48197
48197
|
"description": "<p>The interval for our range</p>\n",
|
|
48198
|
-
"line":
|
|
48198
|
+
"line": 186,
|
|
48199
48199
|
"type": "number",
|
|
48200
48200
|
"decorators": []
|
|
48201
48201
|
},
|
|
@@ -48205,7 +48205,7 @@
|
|
|
48205
48205
|
"deprecationMessage": "",
|
|
48206
48206
|
"rawdescription": "\nSet the initial value. Available for two way binding",
|
|
48207
48207
|
"description": "<p>Set the initial value. Available for two way binding</p>\n",
|
|
48208
|
-
"line":
|
|
48208
|
+
"line": 188,
|
|
48209
48209
|
"type": "any",
|
|
48210
48210
|
"decorators": []
|
|
48211
48211
|
}
|
|
@@ -48218,7 +48218,7 @@
|
|
|
48218
48218
|
"deprecationMessage": "",
|
|
48219
48219
|
"rawdescription": "\nEmits every time a new value is selected",
|
|
48220
48220
|
"description": "<p>Emits every time a new value is selected</p>\n",
|
|
48221
|
-
"line":
|
|
48221
|
+
"line": 280,
|
|
48222
48222
|
"type": "EventEmitter<number | []>"
|
|
48223
48223
|
}
|
|
48224
48224
|
],
|
|
@@ -48231,7 +48231,7 @@
|
|
|
48231
48231
|
"type": "",
|
|
48232
48232
|
"optional": false,
|
|
48233
48233
|
"description": "",
|
|
48234
|
-
"line":
|
|
48234
|
+
"line": 289,
|
|
48235
48235
|
"modifierKind": [
|
|
48236
48236
|
123
|
|
48237
48237
|
]
|
|
@@ -48243,7 +48243,7 @@
|
|
|
48243
48243
|
"type": "ElementRef",
|
|
48244
48244
|
"optional": false,
|
|
48245
48245
|
"description": "",
|
|
48246
|
-
"line":
|
|
48246
|
+
"line": 285,
|
|
48247
48247
|
"decorators": [
|
|
48248
48248
|
{
|
|
48249
48249
|
"name": "ViewChild",
|
|
@@ -48262,7 +48262,7 @@
|
|
|
48262
48262
|
"type": "number",
|
|
48263
48263
|
"optional": false,
|
|
48264
48264
|
"description": "",
|
|
48265
|
-
"line":
|
|
48265
|
+
"line": 291,
|
|
48266
48266
|
"modifierKind": [
|
|
48267
48267
|
123
|
|
48268
48268
|
]
|
|
@@ -48275,7 +48275,7 @@
|
|
|
48275
48275
|
"type": "",
|
|
48276
48276
|
"optional": false,
|
|
48277
48277
|
"description": "",
|
|
48278
|
-
"line":
|
|
48278
|
+
"line": 281,
|
|
48279
48279
|
"decorators": [
|
|
48280
48280
|
{
|
|
48281
48281
|
"name": "HostBinding",
|
|
@@ -48294,7 +48294,7 @@
|
|
|
48294
48294
|
"type": "",
|
|
48295
48295
|
"optional": false,
|
|
48296
48296
|
"description": "",
|
|
48297
|
-
"line":
|
|
48297
|
+
"line": 288,
|
|
48298
48298
|
"modifierKind": [
|
|
48299
48299
|
123
|
|
48300
48300
|
]
|
|
@@ -48307,7 +48307,7 @@
|
|
|
48307
48307
|
"type": "function",
|
|
48308
48308
|
"optional": false,
|
|
48309
48309
|
"description": "<p>Callback to notify the model when our input has been touched</p>\n",
|
|
48310
|
-
"line":
|
|
48310
|
+
"line": 351,
|
|
48311
48311
|
"rawdescription": "\nCallback to notify the model when our input has been touched"
|
|
48312
48312
|
},
|
|
48313
48313
|
{
|
|
@@ -48318,7 +48318,7 @@
|
|
|
48318
48318
|
"type": "",
|
|
48319
48319
|
"optional": false,
|
|
48320
48320
|
"description": "<p>Send changes back to the model</p>\n",
|
|
48321
|
-
"line":
|
|
48321
|
+
"line": 343,
|
|
48322
48322
|
"rawdescription": "\nSend changes back to the model"
|
|
48323
48323
|
},
|
|
48324
48324
|
{
|
|
@@ -48328,7 +48328,7 @@
|
|
|
48328
48328
|
"type": "ElementRef",
|
|
48329
48329
|
"optional": false,
|
|
48330
48330
|
"description": "",
|
|
48331
|
-
"line":
|
|
48331
|
+
"line": 286,
|
|
48332
48332
|
"decorators": [
|
|
48333
48333
|
{
|
|
48334
48334
|
"name": "ViewChild",
|
|
@@ -48346,7 +48346,7 @@
|
|
|
48346
48346
|
"type": "QueryList<ElementRef>",
|
|
48347
48347
|
"optional": false,
|
|
48348
48348
|
"description": "",
|
|
48349
|
-
"line":
|
|
48349
|
+
"line": 282,
|
|
48350
48350
|
"decorators": [
|
|
48351
48351
|
{
|
|
48352
48352
|
"name": "ViewChildren",
|
|
@@ -48365,7 +48365,7 @@
|
|
|
48365
48365
|
"type": "",
|
|
48366
48366
|
"optional": false,
|
|
48367
48367
|
"description": "",
|
|
48368
|
-
"line":
|
|
48368
|
+
"line": 290,
|
|
48369
48369
|
"modifierKind": [
|
|
48370
48370
|
123
|
|
48371
48371
|
]
|
|
@@ -48377,7 +48377,7 @@
|
|
|
48377
48377
|
"type": "ElementRef",
|
|
48378
48378
|
"optional": false,
|
|
48379
48379
|
"description": "",
|
|
48380
|
-
"line":
|
|
48380
|
+
"line": 284,
|
|
48381
48381
|
"decorators": [
|
|
48382
48382
|
{
|
|
48383
48383
|
"name": "ViewChild",
|
|
@@ -48403,7 +48403,7 @@
|
|
|
48403
48403
|
"optional": false,
|
|
48404
48404
|
"returnType": "any",
|
|
48405
48405
|
"typeParameters": [],
|
|
48406
|
-
"line":
|
|
48406
|
+
"line": 392,
|
|
48407
48407
|
"deprecated": false,
|
|
48408
48408
|
"deprecationMessage": "",
|
|
48409
48409
|
"rawdescription": "\nConverts a given \"real\" value to a px value we can update the view with",
|
|
@@ -48433,7 +48433,7 @@
|
|
|
48433
48433
|
"optional": false,
|
|
48434
48434
|
"returnType": "number",
|
|
48435
48435
|
"typeParameters": [],
|
|
48436
|
-
"line":
|
|
48436
|
+
"line": 381,
|
|
48437
48437
|
"deprecated": false,
|
|
48438
48438
|
"deprecationMessage": "",
|
|
48439
48439
|
"rawdescription": "\nConverts a given px value to a \"real\" value in our range",
|
|
@@ -48471,7 +48471,7 @@
|
|
|
48471
48471
|
"optional": false,
|
|
48472
48472
|
"returnType": "void",
|
|
48473
48473
|
"typeParameters": [],
|
|
48474
|
-
"line":
|
|
48474
|
+
"line": 425,
|
|
48475
48475
|
"deprecated": false,
|
|
48476
48476
|
"deprecationMessage": "",
|
|
48477
48477
|
"rawdescription": "\n\nDecrements the value by the step value, or the step value multiplied by the `multiplier` argument.\n\n",
|
|
@@ -48479,8 +48479,8 @@
|
|
|
48479
48479
|
"jsdoctags": [
|
|
48480
48480
|
{
|
|
48481
48481
|
"name": {
|
|
48482
|
-
"pos":
|
|
48483
|
-
"end":
|
|
48482
|
+
"pos": 12171,
|
|
48483
|
+
"end": 12181,
|
|
48484
48484
|
"flags": 8421376,
|
|
48485
48485
|
"modifierFlagsCache": 0,
|
|
48486
48486
|
"transformFlags": 0,
|
|
@@ -48492,8 +48492,8 @@
|
|
|
48492
48492
|
"deprecationMessage": "",
|
|
48493
48493
|
"defaultValue": "1",
|
|
48494
48494
|
"tagName": {
|
|
48495
|
-
"pos":
|
|
48496
|
-
"end":
|
|
48495
|
+
"pos": 12162,
|
|
48496
|
+
"end": 12170,
|
|
48497
48497
|
"flags": 8421376,
|
|
48498
48498
|
"modifierFlagsCache": 0,
|
|
48499
48499
|
"transformFlags": 0,
|
|
@@ -48527,7 +48527,7 @@
|
|
|
48527
48527
|
"optional": false,
|
|
48528
48528
|
"returnType": "number",
|
|
48529
48529
|
"typeParameters": [],
|
|
48530
|
-
"line":
|
|
48530
|
+
"line": 366,
|
|
48531
48531
|
"deprecated": false,
|
|
48532
48532
|
"deprecationMessage": "",
|
|
48533
48533
|
"rawdescription": "\n\nReturns the amount of \"completeness\" of a value as a fraction of the total track width\n",
|
|
@@ -48565,7 +48565,7 @@
|
|
|
48565
48565
|
"optional": false,
|
|
48566
48566
|
"returnType": "void",
|
|
48567
48567
|
"typeParameters": [],
|
|
48568
|
-
"line":
|
|
48568
|
+
"line": 415,
|
|
48569
48569
|
"deprecated": false,
|
|
48570
48570
|
"deprecationMessage": "",
|
|
48571
48571
|
"rawdescription": "\n\nIncrements the value by the step value, or the step value multiplied by the `multiplier` argument.\n\n",
|
|
@@ -48573,8 +48573,8 @@
|
|
|
48573
48573
|
"jsdoctags": [
|
|
48574
48574
|
{
|
|
48575
48575
|
"name": {
|
|
48576
|
-
"pos":
|
|
48577
|
-
"end":
|
|
48576
|
+
"pos": 11816,
|
|
48577
|
+
"end": 11826,
|
|
48578
48578
|
"flags": 8421376,
|
|
48579
48579
|
"modifierFlagsCache": 0,
|
|
48580
48580
|
"transformFlags": 0,
|
|
@@ -48586,8 +48586,8 @@
|
|
|
48586
48586
|
"deprecationMessage": "",
|
|
48587
48587
|
"defaultValue": "1",
|
|
48588
48588
|
"tagName": {
|
|
48589
|
-
"pos":
|
|
48590
|
-
"end":
|
|
48589
|
+
"pos": 11807,
|
|
48590
|
+
"end": 11815,
|
|
48591
48591
|
"flags": 8421376,
|
|
48592
48592
|
"modifierFlagsCache": 0,
|
|
48593
48593
|
"transformFlags": 0,
|
|
@@ -48614,7 +48614,7 @@
|
|
|
48614
48614
|
"optional": false,
|
|
48615
48615
|
"returnType": "boolean",
|
|
48616
48616
|
"typeParameters": [],
|
|
48617
|
-
"line":
|
|
48617
|
+
"line": 433,
|
|
48618
48618
|
"deprecated": false,
|
|
48619
48619
|
"deprecationMessage": "",
|
|
48620
48620
|
"rawdescription": "\n\nDetermines if the slider is in range mode.\n",
|
|
@@ -48633,7 +48633,7 @@
|
|
|
48633
48633
|
"optional": false,
|
|
48634
48634
|
"returnType": "boolean",
|
|
48635
48635
|
"typeParameters": [],
|
|
48636
|
-
"line":
|
|
48636
|
+
"line": 548,
|
|
48637
48637
|
"deprecated": false,
|
|
48638
48638
|
"deprecationMessage": "",
|
|
48639
48639
|
"modifierKind": [
|
|
@@ -48670,7 +48670,7 @@
|
|
|
48670
48670
|
"optional": false,
|
|
48671
48671
|
"returnType": "void",
|
|
48672
48672
|
"typeParameters": [],
|
|
48673
|
-
"line":
|
|
48673
|
+
"line": 448,
|
|
48674
48674
|
"deprecated": false,
|
|
48675
48675
|
"deprecationMessage": "",
|
|
48676
48676
|
"rawdescription": "\nChange handler for the optional input",
|
|
@@ -48709,11 +48709,11 @@
|
|
|
48709
48709
|
"optional": false,
|
|
48710
48710
|
"returnType": "void",
|
|
48711
48711
|
"typeParameters": [],
|
|
48712
|
-
"line":
|
|
48712
|
+
"line": 457,
|
|
48713
48713
|
"deprecated": false,
|
|
48714
48714
|
"deprecationMessage": "",
|
|
48715
|
-
"rawdescription": "\nHandles clicks on the
|
|
48716
|
-
"description": "<p>Handles clicks on the
|
|
48715
|
+
"rawdescription": "\n\nHandles clicks on the slider, and setting the value to it's \"real\" equivalent.\nWill assign the value to the closest thumb if in range mode.\n",
|
|
48716
|
+
"description": "<p>Handles clicks on the slider, and setting the value to it's "real" equivalent.\nWill assign the value to the closest thumb if in range mode.</p>\n",
|
|
48717
48717
|
"jsdoctags": [
|
|
48718
48718
|
{
|
|
48719
48719
|
"name": "event",
|
|
@@ -48738,7 +48738,7 @@
|
|
|
48738
48738
|
"optional": false,
|
|
48739
48739
|
"returnType": "void",
|
|
48740
48740
|
"typeParameters": [],
|
|
48741
|
-
"line":
|
|
48741
|
+
"line": 475,
|
|
48742
48742
|
"deprecated": false,
|
|
48743
48743
|
"deprecationMessage": "",
|
|
48744
48744
|
"rawdescription": "\nFocus handler for the optional input",
|
|
@@ -48774,7 +48774,7 @@
|
|
|
48774
48774
|
"optional": false,
|
|
48775
48775
|
"returnType": "void",
|
|
48776
48776
|
"typeParameters": [],
|
|
48777
|
-
"line":
|
|
48777
|
+
"line": 532,
|
|
48778
48778
|
"deprecated": false,
|
|
48779
48779
|
"deprecationMessage": "",
|
|
48780
48780
|
"rawdescription": "\n\nCalls `incrementValue` for ArrowRight and ArrowUp, `decrementValue` for ArrowLeft and ArrowDown.\n\n",
|
|
@@ -48821,7 +48821,7 @@
|
|
|
48821
48821
|
"optional": false,
|
|
48822
48822
|
"returnType": "void",
|
|
48823
48823
|
"typeParameters": [],
|
|
48824
|
-
"line":
|
|
48824
|
+
"line": 514,
|
|
48825
48825
|
"deprecated": false,
|
|
48826
48826
|
"deprecationMessage": "",
|
|
48827
48827
|
"rawdescription": "\n\nEnables the `onMouseMove` handler\n\n",
|
|
@@ -48861,7 +48861,7 @@
|
|
|
48861
48861
|
"optional": false,
|
|
48862
48862
|
"returnType": "void",
|
|
48863
48863
|
"typeParameters": [],
|
|
48864
|
-
"line":
|
|
48864
|
+
"line": 480,
|
|
48865
48865
|
"deprecated": false,
|
|
48866
48866
|
"deprecationMessage": "",
|
|
48867
48867
|
"rawdescription": "\nMouse move handler. Responsible for updating the value and visual selection based on mouse movement",
|
|
@@ -48884,7 +48884,7 @@
|
|
|
48884
48884
|
"optional": false,
|
|
48885
48885
|
"returnType": "void",
|
|
48886
48886
|
"typeParameters": [],
|
|
48887
|
-
"line":
|
|
48887
|
+
"line": 523,
|
|
48888
48888
|
"deprecated": false,
|
|
48889
48889
|
"deprecationMessage": "",
|
|
48890
48890
|
"rawdescription": "\nDisables the `onMouseMove` handler",
|
|
@@ -48903,7 +48903,7 @@
|
|
|
48903
48903
|
"optional": false,
|
|
48904
48904
|
"returnType": "void",
|
|
48905
48905
|
"typeParameters": [],
|
|
48906
|
-
"line":
|
|
48906
|
+
"line": 346,
|
|
48907
48907
|
"deprecated": false,
|
|
48908
48908
|
"deprecationMessage": "",
|
|
48909
48909
|
"rawdescription": "\nRegister a change propagation function for `ControlValueAccessor`",
|
|
@@ -48933,7 +48933,7 @@
|
|
|
48933
48933
|
"optional": false,
|
|
48934
48934
|
"returnType": "void",
|
|
48935
48935
|
"typeParameters": [],
|
|
48936
|
-
"line":
|
|
48936
|
+
"line": 354,
|
|
48937
48937
|
"deprecated": false,
|
|
48938
48938
|
"deprecationMessage": "",
|
|
48939
48939
|
"rawdescription": "\nRegister a callback to notify when our input has been touched",
|
|
@@ -48963,7 +48963,7 @@
|
|
|
48963
48963
|
"optional": false,
|
|
48964
48964
|
"returnType": "string",
|
|
48965
48965
|
"typeParameters": [],
|
|
48966
|
-
"line":
|
|
48966
|
+
"line": 376,
|
|
48967
48967
|
"deprecated": false,
|
|
48968
48968
|
"deprecationMessage": "",
|
|
48969
48969
|
"rawdescription": "\nHelper function to return the CSS transform `scaleX` function",
|
|
@@ -48999,7 +48999,7 @@
|
|
|
48999
48999
|
"optional": false,
|
|
49000
49000
|
"returnType": "number",
|
|
49001
49001
|
"typeParameters": [],
|
|
49002
|
-
"line":
|
|
49002
|
+
"line": 338,
|
|
49003
49003
|
"deprecated": false,
|
|
49004
49004
|
"deprecationMessage": "",
|
|
49005
49005
|
"jsdoctags": [
|
|
@@ -49029,7 +49029,7 @@
|
|
|
49029
49029
|
"optional": false,
|
|
49030
49030
|
"returnType": "void",
|
|
49031
49031
|
"typeParameters": [],
|
|
49032
|
-
"line":
|
|
49032
|
+
"line": 441,
|
|
49033
49033
|
"deprecated": false,
|
|
49034
49034
|
"deprecationMessage": "",
|
|
49035
49035
|
"rawdescription": "\n\nRange mode only.\nUpdates the track width to span from the low thumb to the high thumb\n",
|
|
@@ -49048,7 +49048,7 @@
|
|
|
49048
49048
|
"optional": false,
|
|
49049
49049
|
"returnType": "void",
|
|
49050
49050
|
"typeParameters": [],
|
|
49051
|
-
"line":
|
|
49051
|
+
"line": 359,
|
|
49052
49052
|
"deprecated": false,
|
|
49053
49053
|
"deprecationMessage": "",
|
|
49054
49054
|
"rawdescription": "\nReceives a value from the model",
|
|
@@ -49074,7 +49074,7 @@
|
|
|
49074
49074
|
"defaultValue": "true",
|
|
49075
49075
|
"deprecated": false,
|
|
49076
49076
|
"deprecationMessage": "",
|
|
49077
|
-
"line":
|
|
49077
|
+
"line": 281,
|
|
49078
49078
|
"type": "boolean",
|
|
49079
49079
|
"decorators": []
|
|
49080
49080
|
}
|
|
@@ -49085,7 +49085,7 @@
|
|
|
49085
49085
|
"description": "<p>Used to select from ranges of values. <a href=\"https://www.carbondesignsystem.com/components/slider/usage\">See here</a> for usage information.</p>\n<p>Get started with importing the module:</p>\n<div><pre class=\"line-numbers\"><code class=\"language-typescript\">import { SkeletonModule } from 'carbon-components-angular';</code></pre></div><p>The simplest possible slider usage looks something like:</p>\n<div><pre class=\"line-numbers\"><code class=\"language-html\"> <cds-slider></cds-slider></code></pre></div><p>That will render a slider without labels or alternative value input. Labels can be provided by\nelements with <code>[minLabel]</code> and <code>[maxLabel]</code> attributes, and an <code>input</code> (may use the <code>ibmInput</code> directive) can be supplied\nfor use as an alternative value field.</p>\n<p>ex:</p>\n<div><pre class=\"line-numbers\"><code class=\"language-html\"><!-- Full example -->\n<cds-slider>\n <span minLabel>0GB</span>\n <span maxLabel>100GB</span>\n <input/>\n</cds-slider>\n\n<!-- with just an input -->\n<cds-slider>\n <input/>\n</cds-slider>\n\n<!-- with just one label -->\n<cds-slider>\n <span maxLabel>Maximum</span>\n</cds-slider></code></pre></div><p>Slider supports <code>NgModel</code> by default, as well as two way binding to the <code>value</code> input.</p>\n<p><a href=\"../../?path=/story/components-slider--advanced\">See demo</a></p>\n",
|
|
49086
49086
|
"rawdescription": "\n\nUsed to select from ranges of values. [See here](https://www.carbondesignsystem.com/components/slider/usage) for usage information.\n\nGet started with importing the module:\n\n```typescript\nimport { SkeletonModule } from 'carbon-components-angular';\n```\n\nThe simplest possible slider usage looks something like:\n\n```html\n\t<cds-slider></cds-slider>\n```\n\nThat will render a slider without labels or alternative value input. Labels can be provided by\nelements with `[minLabel]` and `[maxLabel]` attributes, and an `input` (may use the `ibmInput` directive) can be supplied\nfor use as an alternative value field.\n\nex:\n\n```html\n<!-- Full example -->\n<cds-slider>\n\t\t<span minLabel>0GB</span>\n\t\t<span maxLabel>100GB</span>\n\t\t<input/>\n</cds-slider>\n\n<!-- with just an input -->\n<cds-slider>\n\t\t<input/>\n</cds-slider>\n\n<!-- with just one label -->\n<cds-slider>\n\t\t<span maxLabel>Maximum</span>\n</cds-slider>\n```\n\nSlider supports `NgModel` by default, as well as two way binding to the `value` input.\n\n[See demo](../../?path=/story/components-slider--advanced)\n",
|
|
49087
49087
|
"type": "component",
|
|
49088
|
-
"sourceCode": "import {\n\tComponent,\n\tHostBinding,\n\tInput,\n\tOutput,\n\tEventEmitter,\n\tAfterViewInit,\n\tViewChild,\n\tElementRef,\n\tTemplateRef,\n\tViewChildren,\n\tQueryList,\n\tChangeDetectorRef\n} from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { EventService } from \"carbon-components-angular/utils\";\n\n/**\n * Used to select from ranges of values. [See here](https://www.carbondesignsystem.com/components/slider/usage) for usage information.\n *\n * Get started with importing the module:\n *\n * ```typescript\n * import { SkeletonModule } from 'carbon-components-angular';\n * ```\n *\n * The simplest possible slider usage looks something like:\n *\n * ```html\n *\t<cds-slider></cds-slider>\n * ```\n *\n * That will render a slider without labels or alternative value input. Labels can be provided by\n * elements with `[minLabel]` and `[maxLabel]` attributes, and an `input` (may use the `ibmInput` directive) can be supplied\n * for use as an alternative value field.\n *\n * ex:\n *\n * ```html\n * <!-- Full example -->\n * <cds-slider>\n *\t\t<span minLabel>0GB</span>\n *\t\t<span maxLabel>100GB</span>\n *\t\t<input/>\n * </cds-slider>\n *\n * <!-- with just an input -->\n * <cds-slider>\n *\t\t<input/>\n * </cds-slider>\n *\n * <!-- with just one label -->\n * <cds-slider>\n *\t\t<span maxLabel>Maximum</span>\n * </cds-slider>\n * ```\n *\n * Slider supports `NgModel` by default, as well as two way binding to the `value` input.\n *\n * [See demo](../../?path=/story/components-slider--advanced)\n */\n@Component({\n\tselector: \"cds-slider, ibm-slider\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<label\n\t\t\t\t*ngIf=\"label\"\n\t\t\t\t[for]=\"id\"\n\t\t\t\t[id]=\"labelId\"\n\t\t\t\tclass=\"cds--label\"\n\t\t\t\t[ngClass]=\"{'cds--label--disabled': disabled}\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t\t\t</label>\n\t\t\t<div class=\"cds--slider-container\">\n\t\t\t\t<label [id]=\"bottomRangeId\" class=\"cds--slider__range-label\">\n\t\t\t\t\t<ng-content select=\"[minLabel]\"></ng-content>\n\t\t\t\t</label>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"cds--slider\"\n\t\t\t\t\t[ngClass]=\"{'cds--slider--disabled': disabled}\">\n\t\t\t\t\t<ng-container *ngIf=\"!isRange()\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t#thumbs\n\t\t\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t\t\t[id]=\"id\"\n\t\t\t\t\t\t\t[attr.aria-labelledby]=\"labelId\"\n\t\t\t\t\t\t\tclass=\"cds--slider__thumb\"\n\t\t\t\t\t\t\t[ngStyle]=\"{left: getFractionComplete(value) * 100 + '%'}\"\n\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\t(mousedown)=\"onMouseDown($event)\"\n\t\t\t\t\t\t\t(keydown)=\"onKeyDown($event)\">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-container>\n\t\t\t\t\t<ng-container *ngIf=\"isRange()\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t#thumbs\n\t\t\t\t\t\t\t*ngFor=\"let thumb of value; let i = index; trackBy: trackThumbsBy\"\n\t\t\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t\t\t[id]=\"id + (i > 0 ? '-' + i : '')\"\n\t\t\t\t\t\t\t[attr.aria-labelledby]=\"labelId\"\n\t\t\t\t\t\t\tclass=\"cds--slider__thumb\"\n\t\t\t\t\t\t\t[ngStyle]=\"{left: getFractionComplete(thumb) * 100 + '%'}\"\n\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\t(mousedown)=\"onMouseDown($event, i)\"\n\t\t\t\t\t\t\t(keydown)=\"onKeyDown($event, i)\">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-container>\n\t\t\t\t\t<div\n\t\t\t\t\t\t#track\n\t\t\t\t\t\tclass=\"cds--slider__track\"\n\t\t\t\t\t\t(click)=\"onClick($event)\">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div\n\t\t\t\t\t\t#filledTrack\n\t\t\t\t\t\tclass=\"cds--slider__filled-track\">\n\t\t\t\t\t</div>\n\t\t\t\t\t<input\n\t\t\t\t\t\t#range\n\t\t\t\t\t\taria-label=\"slider\"\n\t\t\t\t\t\tclass=\"cds--slider__input\"\n\t\t\t\t\t\ttype=\"range\"\n\t\t\t\t\t\t[step]=\"step\"\n\t\t\t\t\t\t[min]=\"min\"\n\t\t\t\t\t\t[max]=\"max\"\n\t\t\t\t\t\t[value]=\"value.toString()\">\n\t\t\t\t</div>\n\t\t\t\t<label [id]=\"topRangeId\" class=\"cds--slider__range-label\">\n\t\t\t\t\t<ng-content select=\"[maxLabel]\"></ng-content>\n\t\t\t\t</label>\n\t\t\t\t<ng-content select=\"input\"></ng-content>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<label *ngIf=\"label\" class=\"cds--label cds--skeleton\"></label>\n\t\t\t<div class=\"cds--slider-container cds--skeleton\">\n\t\t\t\t<span class=\"cds--slider__range-label\"></span>\n\t\t\t\t<div class=\"cds--slider\">\n\t\t\t\t\t<div class=\"cds--slider__thumb\"></div>\n\t\t\t\t\t<div class=\"cds--slider__track\"></div>\n\t\t\t\t\t<div class=\"cds--slider__filled-track\"></div>\n\t\t\t\t</div>\n\t\t\t\t<span class=\"cds--slider__range-label\"></span>\n\t\t\t</div>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Slider,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Slider implements AfterViewInit, ControlValueAccessor {\n\t/** Used to generate unique IDs */\n\tprivate static count = 0;\n\n\t/** The lower bound of our range */\n\t@Input() set min(v) {\n\t\tif (!v) { return; }\n\t\tthis._min = v;\n\t\t// force the component to update\n\t\tthis.value = this.value;\n\t}\n\tget min() {\n\t\treturn this._min;\n\t}\n\t/** The upper bound of our range */\n\t@Input() set max(v) {\n\t\tif (!v) { return; }\n\t\tthis._max = v;\n\t\t// force the component to update\n\t\tthis.value = this.value;\n\t}\n\n\tget max() {\n\t\treturn this._max;\n\t}\n\t/** The interval for our range */\n\t@Input() step = 1;\n\t/** Set the initial value. Available for two way binding */\n\t@Input() set value(v) {\n\t\tif (!v) {\n\t\t\tv = [this.min];\n\t\t}\n\n\t\tif (typeof v === \"number\" || typeof v === \"string\") {\n\t\t\tv = [Number(v)];\n\t\t}\n\n\t\tif (v[0] < this.min) {\n\t\t\tv[0] = this.min;\n\t\t}\n\n\t\tif (v[0] > this.max) {\n\t\t\tv[0] = this.max;\n\t\t}\n\n\t\tif (this.isRange()) {\n\t\t\tif (this._previousValue[0] !== v[0]) { // left moved\n\t\t\t\tif (v[0] > v[1] - this.step) {\n\t\t\t\t\t// stop the left handle if surpassing the right one\n\t\t\t\t\tv[0] = v[1] - this.step;\n\t\t\t\t} else if (v[0] > this.max) {\n\t\t\t\t\tv[0] = this.max;\n\t\t\t\t} else if (v[0] < this.min) {\n\t\t\t\t\tv[0] = this.min;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this._previousValue[1] !== v[1]) { // right moved\n\t\t\t\tif (v[1] > this.max) {\n\t\t\t\t\tv[1] = this.max;\n\t\t\t\t} else if (v[1] < this._value[0] + this.step) {\n\t\t\t\t\t// stop the right handle if surpassing the left one\n\t\t\t\t\tv[1] = this._value[0] + this.step;\n\t\t\t\t} else if (v[1] < this.min) {\n\t\t\t\t\tv[1] = this.min;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis._previousValue = [...this._value]; // store a copy, enable detection which handle moved\n\t\tthis._value = [...v]; // triggers change detection when ngModel value is an array (for range)\n\n\t\tif (this.isRange() && this.filledTrack) {\n\t\t\tthis.updateTrackRangeWidth();\n\t\t} else if (this.filledTrack) {\n\t\t\tthis.filledTrack.nativeElement.style.transform = `translate(0%, -50%) ${this.scaleX(this.getFractionComplete(v[0]))}`;\n\t\t}\n\n\t\tif (this.inputs && this.inputs.length) {\n\t\t\tthis.inputs.forEach((input, index) => {\n\t\t\t\tinput.value = this._value[index].toString();\n\t\t\t});\n\t\t}\n\n\t\tconst valueToEmit = this.isRange() ? v : v[0];\n\t\tthis.propagateChange(valueToEmit);\n\t\tthis.valueChange.emit(valueToEmit);\n\t}\n\n\tget value() {\n\t\tif (this.isRange()) {\n\t\t\treturn this._value;\n\t\t}\n\t\treturn this._value[0];\n\t}\n\n\t/** Base ID for the slider. The min and max labels get IDs `${this.id}-bottom-range` and `${this.id}-top-range` respectively */\n\t@Input() id = `slider-${Slider.count++}`;\n\t/** Value used to \"multiply\" the `step` when using arrow keys to select values */\n\t@Input() shiftMultiplier = 4;\n\t/** Set to `true` for a loading slider */\n\t@Input() skeleton = false;\n\t/** Sets the text inside the `label` tag */\n\t@Input() label: string | TemplateRef<any>;\n\t/** Set to `true` for a slider without arrow key interactions. */\n\t@Input() disableArrowKeys = false;\n\t/** Disables the range visually and functionally */\n\t@Input() set disabled(v) {\n\t\tthis._disabled = v;\n\t\t// for some reason `this.input` never exists here, so we have to query for it here too\n\t\tconst inputs = this.getInputs();\n\t\tif (inputs && inputs.length > 0) {\n\t\t\tinputs.forEach(input => input.disabled = v);\n\t\t}\n\t}\n\n\tget disabled() {\n\t\treturn this._disabled;\n\t}\n\t/** Emits every time a new value is selected */\n\t@Output() valueChange: EventEmitter<number | number[]> = new EventEmitter();\n\t@HostBinding(\"class.cds--form-item\") hostClass = true;\n\t@ViewChildren(\"thumbs\") thumbs: QueryList<ElementRef>;\n\n\t@ViewChild(\"track\") track: ElementRef;\n\t@ViewChild(\"filledTrack\") filledTrack: ElementRef;\n\t@ViewChild(\"range\") range: ElementRef;\n\n\tpublic labelId = `${this.id}-label`;\n\tpublic bottomRangeId = `${this.id}-bottom-range`;\n\tpublic topRangeId = `${this.id}-top-range`;\n\tpublic fractionComplete = 0;\n\n\tprotected isMouseDown = false;\n\tprotected inputs: HTMLInputElement[];\n\tprotected _min = 0;\n\tprotected _max = 100;\n\tprotected _value = [this.min];\n\tprotected _previousValue = [this.min];\n\tprotected _disabled = false;\n\tprotected _focusedThumbIndex = 0;\n\n\tconstructor(\n\t\tprotected elementRef: ElementRef,\n\t\tprotected eventService: EventService,\n\t\tprivate changeDetection: ChangeDetectorRef\n\t) {}\n\n\tngAfterViewInit() {\n\t\t// bind mousemove and mouseup to the document so we don't have issues tracking the mouse\n\t\tthis.eventService.onDocument(\"mousemove\", this.onMouseMove.bind(this));\n\t\tthis.eventService.onDocument(\"mouseup\", this.onMouseUp.bind(this));\n\n\t\t// apply any values we got from before the view initialized\n\t\tthis.changeDetection.detectChanges();\n\n\t\t// TODO: ontouchstart/ontouchmove/ontouchend\n\n\t\t// set up the optional input\n\t\tthis.inputs = this.getInputs();\n\t\tif (this.inputs && this.inputs.length > 0) {\n\t\t\tthis.inputs.forEach((input, index) => {\n\t\t\t\tinput.type = \"number\";\n\t\t\t\tinput.classList.add(\"cds--slider-text-input\");\n\t\t\t\tinput.classList.add(\"cds--text-input\");\n\t\t\t\tinput.setAttribute(\"aria-labelledby\", `${this.bottomRangeId} ${this.topRangeId}`);\n\n\t\t\t\tinput.value = index < this._value.length ? this._value[index].toString() : this.max.toString();\n\t\t\t\t// bind events on our optional input\n\t\t\t\tthis.eventService.on(input, \"change\", event => this.onChange(event, index));\n\n\t\t\t\tif (index === 0) {\n\t\t\t\t\tthis.eventService.on(input, \"focus\", this.onFocus.bind(this));\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\ttrackThumbsBy(index: number, item: any) {\n\t\treturn index;\n\t}\n\n\t/** Send changes back to the model */\n\tpropagateChange = (_: any) => { };\n\n\t/** Register a change propagation function for `ControlValueAccessor` */\n\tregisterOnChange(fn: any) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\t/** Callback to notify the model when our input has been touched */\n\tonTouched: () => any = () => { };\n\n\t/** Register a callback to notify when our input has been touched */\n\tregisterOnTouched(fn: any) {\n\t\tthis.onTouched = fn;\n\t}\n\n\t/** Receives a value from the model */\n\twriteValue(v: any) {\n\t\tthis.value = v;\n\t}\n\n\t/**\n\t * Returns the amount of \"completeness\" of a value as a fraction of the total track width\n\t */\n\tgetFractionComplete(value: number) {\n\t\tif (!this.track) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst trackWidth = this.track.nativeElement.getBoundingClientRect().width;\n\t\treturn this.convertToPx(value) / trackWidth;\n\t}\n\n\t/** Helper function to return the CSS transform `scaleX` function */\n\tscaleX(complete) {\n\t\treturn `scaleX(${complete})`;\n\t}\n\n\t/** Converts a given px value to a \"real\" value in our range */\n\tconvertToValue(pxAmount) {\n\t\t// basic concept borrowed from carbon-components\n\t\t// https://github.com/carbon-design-system/carbon/blob/43bf3abdc2f8bdaa38aa84e0f733adde1e1e8894/src/components/slider/slider.js#L147-L151\n\t\tconst range = this.max - this.min;\n\t\tconst trackWidth = this.track.nativeElement.getBoundingClientRect().width;\n\t\tconst unrounded = pxAmount / trackWidth;\n\t\tconst rounded = Math.round((range * unrounded) / this.step) * this.step;\n\t\treturn rounded + this.min;\n\t}\n\n\t/** Converts a given \"real\" value to a px value we can update the view with */\n\tconvertToPx(value) {\n\t\tif (!this.track) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst trackWidth = this.track.nativeElement.getBoundingClientRect().width;\n\t\tif (value >= this.max) {\n\t\t\treturn trackWidth;\n\t\t}\n\n\t\tif (value <= this.min) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t// account for value shifting by subtracting min from value and max\n\t\treturn Math.round(trackWidth * ((value - this.min) / (this.max - this.min)));\n\t}\n\n\t/**\n\t * Increments the value by the step value, or the step value multiplied by the `multiplier` argument.\n\t *\n\t * @argument multiplier Defaults to `1`, multiplied with the step value.\n\t */\n\tincrementValue(multiplier = 1, index = 0) {\n\t\tthis._value[index] = this._value[index] + (this.step * multiplier);\n\t\tthis.value = this.value; // run the setter\n\t}\n\n\t/**\n\t * Decrements the value by the step value, or the step value multiplied by the `multiplier` argument.\n\t *\n\t * @argument multiplier Defaults to `1`, multiplied with the step value.\n\t */\n\tdecrementValue(multiplier = 1, index = 0) {\n\t\tthis._value[index] = this._value[index] - (this.step * multiplier);\n\t\tthis.value = this.value; // run the setter\n\t}\n\n\t/**\n\t * Determines if the slider is in range mode.\n\t */\n\tisRange(): boolean {\n\t\treturn this._value.length > 1;\n\t}\n\n\t/**\n\t * Range mode only.\n\t * Updates the track width to span from the low thumb to the high thumb\n\t */\n\tupdateTrackRangeWidth() {\n\t\tconst fraction = this.getFractionComplete(this._value[0]);\n\t\tconst fraction2 = this.getFractionComplete(this._value[1]);\n\t\tthis.filledTrack.nativeElement.style.transform = `translate(${fraction * 100}%, -50%) ${this.scaleX(fraction2 - fraction)}`;\n\t}\n\n\t/** Change handler for the optional input */\n\tonChange(event, index) {\n\t\tthis._value[index] = Number(event.target.value);\n\t\tthis.value = this.value;\n\t}\n\n\t/** Handles clicks on the range track, and setting the value to it's \"real\" equivalent */\n\tonClick(event) {\n\t\tif (this.disabled) { return; }\n\t\tconst trackLeft = this.track.nativeElement.getBoundingClientRect().left;\n\t\tthis._value[0] = this.convertToValue(event.clientX - trackLeft);\n\t\tthis.value = this.value;\n\t}\n\n\t/** Focus handler for the optional input */\n\tonFocus({target}) {\n\t\ttarget.select();\n\t}\n\n\t/** Mouse move handler. Responsible for updating the value and visual selection based on mouse movement */\n\tonMouseMove(event) {\n\t\tif (this.disabled || !this.isMouseDown) { return; }\n\t\tconst track = this.track.nativeElement.getBoundingClientRect();\n\n\t\tlet value;\n\n\t\tif (\n\t\t\tevent.clientX - track.left <= track.width\n\t\t\t&& event.clientX - track.left >= 0\n\t\t) {\n\t\t\tvalue = this.convertToValue(event.clientX - track.left);\n\t\t}\n\n\t\t// if the mouse is beyond the max, set the value to `max`\n\t\tif (event.clientX - track.left > track.width) {\n\t\t\tvalue = this.max;\n\t\t}\n\n\t\t// if the mouse is below the min, set the value to `min`\n\t\tif (event.clientX - track.left < 0) {\n\t\t\tvalue = this.min;\n\t\t}\n\n\t\tif (value !== undefined) {\n\t\t\tthis._value[this._focusedThumbIndex] = value;\n\t\t\tthis.value = this.value;\n\t\t}\n\t}\n\n\t/**\n\t * Enables the `onMouseMove` handler\n\t *\n\t * @param {boolean} thumb If true then `thumb` is clicked down, otherwise `thumb2` is clicked down.\n\t */\n\tonMouseDown(event, index = 0) {\n\t\tevent.preventDefault();\n\t\tif (this.disabled) { return; }\n\t\tthis._focusedThumbIndex = index;\n\t\tthis.thumbs.toArray()[index].nativeElement.focus();\n\t\tthis.isMouseDown = true;\n\t}\n\n\t/** Disables the `onMouseMove` handler */\n\tonMouseUp() {\n\t\tthis.isMouseDown = false;\n\t}\n\n\t/**\n\t * Calls `incrementValue` for ArrowRight and ArrowUp, `decrementValue` for ArrowLeft and ArrowDown.\n\t *\n\t * @param {boolean} thumb If true then `thumb` is pressed down, otherwise `thumb2` is pressed down.\n\t */\n\tonKeyDown(event: KeyboardEvent, index = 0) {\n\t\tif (this.disableArrowKeys) {\n\t\t\treturn;\n\t\t}\n\t\tconst multiplier = event.shiftKey ? this.shiftMultiplier : 1;\n\t\tif (event.key === \"ArrowLeft\" || event.key === \"ArrowDown\") {\n\t\t\tthis.decrementValue(multiplier, index);\n\t\t\tthis.thumbs.toArray()[index].nativeElement.focus();\n\t\t\tevent.preventDefault();\n\t\t} else if (event.key === \"ArrowRight\" || event.key === \"ArrowUp\") {\n\t\t\tthis.incrementValue(multiplier, index);\n\t\t\tthis.thumbs.toArray()[index].nativeElement.focus();\n\t\t\tevent.preventDefault();\n\t\t}\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\t/** Get optional input fields */\n\tprotected getInputs(): HTMLInputElement[] {\n\t\treturn this.elementRef.nativeElement.querySelectorAll(\"input:not([type=range])\");\n\t}\n}\n",
|
|
49088
|
+
"sourceCode": "import {\n\tComponent,\n\tHostBinding,\n\tInput,\n\tOutput,\n\tEventEmitter,\n\tAfterViewInit,\n\tViewChild,\n\tElementRef,\n\tTemplateRef,\n\tViewChildren,\n\tQueryList,\n\tChangeDetectorRef\n} from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { EventService } from \"carbon-components-angular/utils\";\n\n/**\n * Used to select from ranges of values. [See here](https://www.carbondesignsystem.com/components/slider/usage) for usage information.\n *\n * Get started with importing the module:\n *\n * ```typescript\n * import { SkeletonModule } from 'carbon-components-angular';\n * ```\n *\n * The simplest possible slider usage looks something like:\n *\n * ```html\n *\t<cds-slider></cds-slider>\n * ```\n *\n * That will render a slider without labels or alternative value input. Labels can be provided by\n * elements with `[minLabel]` and `[maxLabel]` attributes, and an `input` (may use the `ibmInput` directive) can be supplied\n * for use as an alternative value field.\n *\n * ex:\n *\n * ```html\n * <!-- Full example -->\n * <cds-slider>\n *\t\t<span minLabel>0GB</span>\n *\t\t<span maxLabel>100GB</span>\n *\t\t<input/>\n * </cds-slider>\n *\n * <!-- with just an input -->\n * <cds-slider>\n *\t\t<input/>\n * </cds-slider>\n *\n * <!-- with just one label -->\n * <cds-slider>\n *\t\t<span maxLabel>Maximum</span>\n * </cds-slider>\n * ```\n *\n * Slider supports `NgModel` by default, as well as two way binding to the `value` input.\n *\n * [See demo](../../?path=/story/components-slider--advanced)\n */\n@Component({\n\tselector: \"cds-slider, ibm-slider\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<label\n\t\t\t\t*ngIf=\"label\"\n\t\t\t\t[for]=\"id\"\n\t\t\t\t[id]=\"labelId\"\n\t\t\t\tclass=\"cds--label\"\n\t\t\t\t[ngClass]=\"{'cds--label--disabled': disabled}\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(label)\">{{label}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(label)\" [ngTemplateOutlet]=\"label\"></ng-template>\n\t\t\t</label>\n\t\t\t<div class=\"cds--slider-container\">\n\t\t\t\t<label [id]=\"bottomRangeId\" class=\"cds--slider__range-label\">\n\t\t\t\t\t<ng-content select=\"[minLabel]\"></ng-content>\n\t\t\t\t</label>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"cds--slider\"\n\t\t\t\t\t(click)=\"onClick($event)\"\n\t\t\t\t\t[ngClass]=\"{'cds--slider--disabled': disabled}\">\n\t\t\t\t\t<ng-container *ngIf=\"!isRange()\">\n\t\t\t\t\t\t<div class=\"cds--slider__thumb-wrapper\"\n\t\t\t\t\t\t\t[ngStyle]=\"{insetInlineStart: getFractionComplete(value) * 100 + '%'}\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t#thumbs\n\t\t\t\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t\t\t\t[id]=\"id\"\n\t\t\t\t\t\t\t\t[attr.aria-labelledby]=\"labelId\"\n\t\t\t\t\t\t\t\tclass=\"cds--slider__thumb\"\n\t\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\t\t(mousedown)=\"onMouseDown($event)\"\n\t\t\t\t\t\t\t\t(keydown)=\"onKeyDown($event)\">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-container>\n\t\t\t\t\t<ng-container *ngIf=\"isRange()\">\n\t\t\t\t\t\t<div class=\"cds--slider__thumb-wrapper\"\n\t\t\t\t\t\t [ngStyle]=\"{insetInlineStart: getFractionComplete(thumb) * 100 + '%'}\"\n\t\t\t\t\t\t *ngFor=\"let thumb of value; let i = index; trackBy: trackThumbsBy\">\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t#thumbs\n\t\t\t\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t\t\t\t[id]=\"id + (i > 0 ? '-' + i : '')\"\n\t\t\t\t\t\t\t\t[attr.aria-labelledby]=\"labelId\"\n\t\t\t\t\t\t\t\tclass=\"cds--slider__thumb\"\n\t\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\t\t(mousedown)=\"onMouseDown($event, i)\"\n\t\t\t\t\t\t\t\t(keydown)=\"onKeyDown($event, i)\">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-container>\n\t\t\t\t\t<div\n\t\t\t\t\t\t#track\n\t\t\t\t\t\tclass=\"cds--slider__track\">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div\n\t\t\t\t\t\t#filledTrack\n\t\t\t\t\t\tclass=\"cds--slider__filled-track\">\n\t\t\t\t\t</div>\n\t\t\t\t\t<input\n\t\t\t\t\t\t#range\n\t\t\t\t\t\taria-label=\"slider\"\n\t\t\t\t\t\tclass=\"cds--slider__input\"\n\t\t\t\t\t\ttype=\"range\"\n\t\t\t\t\t\t[step]=\"step\"\n\t\t\t\t\t\t[min]=\"min\"\n\t\t\t\t\t\t[max]=\"max\"\n\t\t\t\t\t\t[value]=\"value.toString()\">\n\t\t\t\t</div>\n\t\t\t\t<label [id]=\"topRangeId\" class=\"cds--slider__range-label\">\n\t\t\t\t\t<ng-content select=\"[maxLabel]\"></ng-content>\n\t\t\t\t</label>\n\t\t\t\t<ng-content select=\"input\"></ng-content>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<label *ngIf=\"label\" class=\"cds--label cds--skeleton\"></label>\n\t\t\t<div class=\"cds--slider-container cds--skeleton\">\n\t\t\t\t<span class=\"cds--slider__range-label\"></span>\n\t\t\t\t<div class=\"cds--slider\">\n\t\t\t\t\t<div class=\"cds--slider__thumb\"></div>\n\t\t\t\t\t<div class=\"cds--slider__track\"></div>\n\t\t\t\t\t<div class=\"cds--slider__filled-track\"></div>\n\t\t\t\t</div>\n\t\t\t\t<span class=\"cds--slider__range-label\"></span>\n\t\t\t</div>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: Slider,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class Slider implements AfterViewInit, ControlValueAccessor {\n\t/** Used to generate unique IDs */\n\tprivate static count = 0;\n\n\t/** The lower bound of our range */\n\t@Input() set min(v) {\n\t\tif (!v) { return; }\n\t\tthis._min = v;\n\t\t// force the component to update\n\t\tthis.value = this.value;\n\t}\n\tget min() {\n\t\treturn this._min;\n\t}\n\t/** The upper bound of our range */\n\t@Input() set max(v) {\n\t\tif (!v) { return; }\n\t\tthis._max = v;\n\t\t// force the component to update\n\t\tthis.value = this.value;\n\t}\n\n\tget max() {\n\t\treturn this._max;\n\t}\n\t/** The interval for our range */\n\t@Input() step = 1;\n\t/** Set the initial value. Available for two way binding */\n\t@Input() set value(v) {\n\t\tif (!v) {\n\t\t\tv = [this.min];\n\t\t}\n\n\t\tif (typeof v === \"number\" || typeof v === \"string\") {\n\t\t\tv = [Number(v)];\n\t\t}\n\n\t\tif (v[0] < this.min) {\n\t\t\tv[0] = this.min;\n\t\t}\n\n\t\tif (v[0] > this.max) {\n\t\t\tv[0] = this.max;\n\t\t}\n\n\t\tif (this.isRange()) {\n\t\t\tif (this._previousValue[0] !== v[0]) { // left moved\n\t\t\t\tif (v[0] > v[1] - this.step) {\n\t\t\t\t\t// stop the left handle if surpassing the right one\n\t\t\t\t\tv[0] = v[1] - this.step;\n\t\t\t\t} else if (v[0] > this.max) {\n\t\t\t\t\tv[0] = this.max;\n\t\t\t\t} else if (v[0] < this.min) {\n\t\t\t\t\tv[0] = this.min;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this._previousValue[1] !== v[1]) { // right moved\n\t\t\t\tif (v[1] > this.max) {\n\t\t\t\t\tv[1] = this.max;\n\t\t\t\t} else if (v[1] < this._value[0] + this.step) {\n\t\t\t\t\t// stop the right handle if surpassing the left one\n\t\t\t\t\tv[1] = this._value[0] + this.step;\n\t\t\t\t} else if (v[1] < this.min) {\n\t\t\t\t\tv[1] = this.min;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis._previousValue = [...this._value]; // store a copy, enable detection which handle moved\n\t\tthis._value = [...v]; // triggers change detection when ngModel value is an array (for range)\n\n\t\tif (this.isRange() && this.filledTrack) {\n\t\t\tthis.updateTrackRangeWidth();\n\t\t} else if (this.filledTrack) {\n\t\t\tthis.filledTrack.nativeElement.style.transform = `translate(0%, -50%) ${this.scaleX(this.getFractionComplete(v[0]))}`;\n\t\t}\n\n\t\tif (this.inputs && this.inputs.length) {\n\t\t\tthis.inputs.forEach((input, index) => {\n\t\t\t\tinput.value = this._value[index].toString();\n\t\t\t});\n\t\t}\n\n\t\tconst valueToEmit = this.isRange() ? v : v[0];\n\t\tthis.propagateChange(valueToEmit);\n\t\tthis.valueChange.emit(valueToEmit);\n\t}\n\n\tget value() {\n\t\tif (this.isRange()) {\n\t\t\treturn this._value;\n\t\t}\n\t\treturn this._value[0];\n\t}\n\n\t/** Base ID for the slider. The min and max labels get IDs `${this.id}-bottom-range` and `${this.id}-top-range` respectively */\n\t@Input() id = `slider-${Slider.count++}`;\n\t/** Value used to \"multiply\" the `step` when using arrow keys to select values */\n\t@Input() shiftMultiplier = 4;\n\t/** Set to `true` for a loading slider */\n\t@Input() skeleton = false;\n\t/** Sets the text inside the `label` tag */\n\t@Input() label: string | TemplateRef<any>;\n\t/** Set to `true` for a slider without arrow key interactions. */\n\t@Input() disableArrowKeys = false;\n\t/** Disables the range visually and functionally */\n\t@Input() set disabled(v) {\n\t\tthis._disabled = v;\n\t\t// for some reason `this.input` never exists here, so we have to query for it here too\n\t\tconst inputs = this.getInputs();\n\t\tif (inputs && inputs.length > 0) {\n\t\t\tinputs.forEach(input => input.disabled = v);\n\t\t}\n\t}\n\n\tget disabled() {\n\t\treturn this._disabled;\n\t}\n\t/** Emits every time a new value is selected */\n\t@Output() valueChange: EventEmitter<number | number[]> = new EventEmitter();\n\t@HostBinding(\"class.cds--form-item\") hostClass = true;\n\t@ViewChildren(\"thumbs\") thumbs: QueryList<ElementRef>;\n\n\t@ViewChild(\"track\") track: ElementRef;\n\t@ViewChild(\"filledTrack\") filledTrack: ElementRef;\n\t@ViewChild(\"range\") range: ElementRef;\n\n\tpublic labelId = `${this.id}-label`;\n\tpublic bottomRangeId = `${this.id}-bottom-range`;\n\tpublic topRangeId = `${this.id}-top-range`;\n\tpublic fractionComplete = 0;\n\n\tprotected isMouseDown = false;\n\tprotected inputs: HTMLInputElement[];\n\tprotected _min = 0;\n\tprotected _max = 100;\n\tprotected _value = [this.min];\n\tprotected _previousValue = [this.min];\n\tprotected _disabled = false;\n\tprotected _focusedThumbIndex = 0;\n\n\tconstructor(\n\t\tprotected elementRef: ElementRef,\n\t\tprotected eventService: EventService,\n\t\tprivate changeDetection: ChangeDetectorRef\n\t) {}\n\n\tngAfterViewInit() {\n\t\t// bind mousemove and mouseup to the document so we don't have issues tracking the mouse\n\t\tthis.eventService.onDocument(\"mousemove\", this.onMouseMove.bind(this));\n\t\tthis.eventService.onDocument(\"mouseup\", this.onMouseUp.bind(this));\n\n\t\t// apply any values we got from before the view initialized\n\t\tthis.changeDetection.detectChanges();\n\n\t\t// TODO: ontouchstart/ontouchmove/ontouchend\n\n\t\t// set up the optional input\n\t\tthis.inputs = this.getInputs();\n\t\tif (this.inputs && this.inputs.length > 0) {\n\t\t\tthis.inputs.forEach((input, index) => {\n\t\t\t\tinput.type = \"number\";\n\t\t\t\tinput.classList.add(\"cds--slider-text-input\");\n\t\t\t\tinput.classList.add(\"cds--text-input\");\n\t\t\t\tinput.setAttribute(\"aria-labelledby\", `${this.bottomRangeId} ${this.topRangeId}`);\n\n\t\t\t\tinput.value = index < this._value.length ? this._value[index].toString() : this.max.toString();\n\t\t\t\t// bind events on our optional input\n\t\t\t\tthis.eventService.on(input, \"change\", event => this.onChange(event, index));\n\n\t\t\t\tif (index === 0) {\n\t\t\t\t\tthis.eventService.on(input, \"focus\", this.onFocus.bind(this));\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\ttrackThumbsBy(index: number, item: any) {\n\t\treturn index;\n\t}\n\n\t/** Send changes back to the model */\n\tpropagateChange = (_: any) => { };\n\n\t/** Register a change propagation function for `ControlValueAccessor` */\n\tregisterOnChange(fn: any) {\n\t\tthis.propagateChange = fn;\n\t}\n\n\t/** Callback to notify the model when our input has been touched */\n\tonTouched: () => any = () => { };\n\n\t/** Register a callback to notify when our input has been touched */\n\tregisterOnTouched(fn: any) {\n\t\tthis.onTouched = fn;\n\t}\n\n\t/** Receives a value from the model */\n\twriteValue(v: any) {\n\t\tthis.value = v;\n\t}\n\n\t/**\n\t * Returns the amount of \"completeness\" of a value as a fraction of the total track width\n\t */\n\tgetFractionComplete(value: number) {\n\t\tif (!this.track) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst trackWidth = this.track.nativeElement.getBoundingClientRect().width;\n\t\treturn this.convertToPx(value) / trackWidth;\n\t}\n\n\t/** Helper function to return the CSS transform `scaleX` function */\n\tscaleX(complete) {\n\t\treturn `scaleX(${complete})`;\n\t}\n\n\t/** Converts a given px value to a \"real\" value in our range */\n\tconvertToValue(pxAmount) {\n\t\t// basic concept borrowed from carbon-components\n\t\t// https://github.com/carbon-design-system/carbon/blob/43bf3abdc2f8bdaa38aa84e0f733adde1e1e8894/src/components/slider/slider.js#L147-L151\n\t\tconst range = this.max - this.min;\n\t\tconst trackWidth = this.track.nativeElement.getBoundingClientRect().width;\n\t\tconst unrounded = pxAmount / trackWidth;\n\t\tconst rounded = Math.round((range * unrounded) / this.step) * this.step;\n\t\treturn rounded + this.min;\n\t}\n\n\t/** Converts a given \"real\" value to a px value we can update the view with */\n\tconvertToPx(value) {\n\t\tif (!this.track) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst trackWidth = this.track.nativeElement.getBoundingClientRect().width;\n\t\tif (value >= this.max) {\n\t\t\treturn trackWidth;\n\t\t}\n\n\t\tif (value <= this.min) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t// account for value shifting by subtracting min from value and max\n\t\treturn Math.round(trackWidth * ((value - this.min) / (this.max - this.min)));\n\t}\n\n\t/**\n\t * Increments the value by the step value, or the step value multiplied by the `multiplier` argument.\n\t *\n\t * @argument multiplier Defaults to `1`, multiplied with the step value.\n\t */\n\tincrementValue(multiplier = 1, index = 0) {\n\t\tthis._value[index] = this._value[index] + (this.step * multiplier);\n\t\tthis.value = this.value; // run the setter\n\t}\n\n\t/**\n\t * Decrements the value by the step value, or the step value multiplied by the `multiplier` argument.\n\t *\n\t * @argument multiplier Defaults to `1`, multiplied with the step value.\n\t */\n\tdecrementValue(multiplier = 1, index = 0) {\n\t\tthis._value[index] = this._value[index] - (this.step * multiplier);\n\t\tthis.value = this.value; // run the setter\n\t}\n\n\t/**\n\t * Determines if the slider is in range mode.\n\t */\n\tisRange(): boolean {\n\t\treturn this._value.length > 1;\n\t}\n\n\t/**\n\t * Range mode only.\n\t * Updates the track width to span from the low thumb to the high thumb\n\t */\n\tupdateTrackRangeWidth() {\n\t\tconst fraction = this.getFractionComplete(this._value[0]);\n\t\tconst fraction2 = this.getFractionComplete(this._value[1]);\n\t\tthis.filledTrack.nativeElement.style.transform = `translate(${fraction * 100}%, -50%) ${this.scaleX(fraction2 - fraction)}`;\n\t}\n\n\t/** Change handler for the optional input */\n\tonChange(event, index) {\n\t\tthis._value[index] = Number(event.target.value);\n\t\tthis.value = this.value;\n\t}\n\n\t/**\n\t * Handles clicks on the slider, and setting the value to it's \"real\" equivalent.\n\t * Will assign the value to the closest thumb if in range mode.\n\t * */\n\tonClick(event) {\n\t\tif (this.disabled) { return; }\n\t\tconst trackLeft = this.track.nativeElement.getBoundingClientRect().left;\n\t\tconst trackValue = this.convertToValue(event.clientX - trackLeft);\n\t\tif (this.isRange()) {\n\t\t\tif (Math.abs(this._value[0] - trackValue) < Math.abs(this._value[1] - trackValue)) {\n\t\t\t\tthis._value[0] = trackValue;\n\t\t\t} else {\n\t\t\t\tthis._value[1] = trackValue;\n\t\t\t}\n\t\t} else {\n\t\t\tthis._value[0] = trackValue;\n\t\t}\n\n\t\tthis.value = this.value;\n\t}\n\n\t/** Focus handler for the optional input */\n\tonFocus({target}) {\n\t\ttarget.select();\n\t}\n\n\t/** Mouse move handler. Responsible for updating the value and visual selection based on mouse movement */\n\tonMouseMove(event) {\n\t\tif (this.disabled || !this.isMouseDown) { return; }\n\t\tconst track = this.track.nativeElement.getBoundingClientRect();\n\n\t\tlet value;\n\n\t\tif (\n\t\t\tevent.clientX - track.left <= track.width\n\t\t\t&& event.clientX - track.left >= 0\n\t\t) {\n\t\t\tvalue = this.convertToValue(event.clientX - track.left);\n\t\t}\n\n\t\t// if the mouse is beyond the max, set the value to `max`\n\t\tif (event.clientX - track.left > track.width) {\n\t\t\tvalue = this.max;\n\t\t}\n\n\t\t// if the mouse is below the min, set the value to `min`\n\t\tif (event.clientX - track.left < 0) {\n\t\t\tvalue = this.min;\n\t\t}\n\n\t\tif (value !== undefined) {\n\t\t\tthis._value[this._focusedThumbIndex] = value;\n\t\t\tthis.value = this.value;\n\t\t}\n\t}\n\n\t/**\n\t * Enables the `onMouseMove` handler\n\t *\n\t * @param {boolean} thumb If true then `thumb` is clicked down, otherwise `thumb2` is clicked down.\n\t */\n\tonMouseDown(event, index = 0) {\n\t\tevent.preventDefault();\n\t\tif (this.disabled) { return; }\n\t\tthis._focusedThumbIndex = index;\n\t\tthis.thumbs.toArray()[index].nativeElement.focus();\n\t\tthis.isMouseDown = true;\n\t}\n\n\t/** Disables the `onMouseMove` handler */\n\tonMouseUp() {\n\t\tthis.isMouseDown = false;\n\t}\n\n\t/**\n\t * Calls `incrementValue` for ArrowRight and ArrowUp, `decrementValue` for ArrowLeft and ArrowDown.\n\t *\n\t * @param {boolean} thumb If true then `thumb` is pressed down, otherwise `thumb2` is pressed down.\n\t */\n\tonKeyDown(event: KeyboardEvent, index = 0) {\n\t\tif (this.disableArrowKeys) {\n\t\t\treturn;\n\t\t}\n\t\tconst multiplier = event.shiftKey ? this.shiftMultiplier : 1;\n\t\tif (event.key === \"ArrowLeft\" || event.key === \"ArrowDown\") {\n\t\t\tthis.decrementValue(multiplier, index);\n\t\t\tthis.thumbs.toArray()[index].nativeElement.focus();\n\t\t\tevent.preventDefault();\n\t\t} else if (event.key === \"ArrowRight\" || event.key === \"ArrowUp\") {\n\t\t\tthis.incrementValue(multiplier, index);\n\t\t\tthis.thumbs.toArray()[index].nativeElement.focus();\n\t\t\tevent.preventDefault();\n\t\t}\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\t/** Get optional input fields */\n\tprotected getInputs(): HTMLInputElement[] {\n\t\treturn this.elementRef.nativeElement.querySelectorAll(\"input:not([type=range])\");\n\t}\n}\n",
|
|
49089
49089
|
"assetsDirs": [],
|
|
49090
49090
|
"styleUrlsData": "",
|
|
49091
49091
|
"stylesData": "",
|
|
@@ -49114,7 +49114,7 @@
|
|
|
49114
49114
|
"deprecationMessage": ""
|
|
49115
49115
|
}
|
|
49116
49116
|
],
|
|
49117
|
-
"line":
|
|
49117
|
+
"line": 300,
|
|
49118
49118
|
"jsdoctags": [
|
|
49119
49119
|
{
|
|
49120
49120
|
"name": "elementRef",
|
|
@@ -49166,7 +49166,7 @@
|
|
|
49166
49166
|
}
|
|
49167
49167
|
],
|
|
49168
49168
|
"returnType": "void",
|
|
49169
|
-
"line":
|
|
49169
|
+
"line": 165,
|
|
49170
49170
|
"rawdescription": "\nThe lower bound of our range",
|
|
49171
49171
|
"description": "<p>The lower bound of our range</p>\n",
|
|
49172
49172
|
"jsdoctags": [
|
|
@@ -49185,7 +49185,7 @@
|
|
|
49185
49185
|
"name": "min",
|
|
49186
49186
|
"type": "",
|
|
49187
49187
|
"returnType": "",
|
|
49188
|
-
"line":
|
|
49188
|
+
"line": 171
|
|
49189
49189
|
}
|
|
49190
49190
|
},
|
|
49191
49191
|
"max": {
|
|
@@ -49204,7 +49204,7 @@
|
|
|
49204
49204
|
}
|
|
49205
49205
|
],
|
|
49206
49206
|
"returnType": "void",
|
|
49207
|
-
"line":
|
|
49207
|
+
"line": 175,
|
|
49208
49208
|
"rawdescription": "\nThe upper bound of our range",
|
|
49209
49209
|
"description": "<p>The upper bound of our range</p>\n",
|
|
49210
49210
|
"jsdoctags": [
|
|
@@ -49223,7 +49223,7 @@
|
|
|
49223
49223
|
"name": "max",
|
|
49224
49224
|
"type": "",
|
|
49225
49225
|
"returnType": "",
|
|
49226
|
-
"line":
|
|
49226
|
+
"line": 182
|
|
49227
49227
|
}
|
|
49228
49228
|
},
|
|
49229
49229
|
"value": {
|
|
@@ -49242,7 +49242,7 @@
|
|
|
49242
49242
|
}
|
|
49243
49243
|
],
|
|
49244
49244
|
"returnType": "void",
|
|
49245
|
-
"line":
|
|
49245
|
+
"line": 188,
|
|
49246
49246
|
"rawdescription": "\nSet the initial value. Available for two way binding",
|
|
49247
49247
|
"description": "<p>Set the initial value. Available for two way binding</p>\n",
|
|
49248
49248
|
"jsdoctags": [
|
|
@@ -49261,7 +49261,7 @@
|
|
|
49261
49261
|
"name": "value",
|
|
49262
49262
|
"type": "",
|
|
49263
49263
|
"returnType": "",
|
|
49264
|
-
"line":
|
|
49264
|
+
"line": 249
|
|
49265
49265
|
}
|
|
49266
49266
|
},
|
|
49267
49267
|
"disabled": {
|
|
@@ -49280,7 +49280,7 @@
|
|
|
49280
49280
|
}
|
|
49281
49281
|
],
|
|
49282
49282
|
"returnType": "void",
|
|
49283
|
-
"line":
|
|
49283
|
+
"line": 267,
|
|
49284
49284
|
"rawdescription": "\nDisables the range visually and functionally",
|
|
49285
49285
|
"description": "<p>Disables the range visually and functionally</p>\n",
|
|
49286
49286
|
"jsdoctags": [
|
|
@@ -49299,7 +49299,7 @@
|
|
|
49299
49299
|
"name": "disabled",
|
|
49300
49300
|
"type": "",
|
|
49301
49301
|
"returnType": "",
|
|
49302
|
-
"line":
|
|
49302
|
+
"line": 276
|
|
49303
49303
|
}
|
|
49304
49304
|
}
|
|
49305
49305
|
}
|
|
@@ -55778,7 +55778,7 @@
|
|
|
55778
55778
|
},
|
|
55779
55779
|
{
|
|
55780
55780
|
"name": "TableRadio",
|
|
55781
|
-
"id": "component-TableRadio-
|
|
55781
|
+
"id": "component-TableRadio-59a741fdc07d9c2cd4f74121d4378a59fc923e4ecd535ca8c171cf7491819ac51a64147873c83886b41d737075e00e27f03a809cc8630b27895ce3495ac12dfa",
|
|
55782
55782
|
"file": "src/table/cell/table-radio.component.ts",
|
|
55783
55783
|
"encapsulation": [],
|
|
55784
55784
|
"entryComponents": [],
|
|
@@ -55900,7 +55900,7 @@
|
|
|
55900
55900
|
"description": "",
|
|
55901
55901
|
"rawdescription": "\n",
|
|
55902
55902
|
"type": "component",
|
|
55903
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { TableItem } from \"../table-item.class\";\nimport { TableRow } from \"../table-row.class\";\nimport { Observable } from \"rxjs\";\n\n@Component({\n\t// tslint:disable-next-line: component-selector\n\tselector: \"[cdsTableRadio], [ibmTableRadio]\",\n\ttemplate: `\n\t\t<cds-radio\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\t[attr.aria-label]=\"getLabel() | i18nReplace:getSelectionLabelValue(row) | async\"\n\t\t\t[ariaLabel]=\"getLabel() | i18nReplace:getSelectionLabelValue(row) | async\"\n\t\t\t[checked]=\"selected\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t(change)=\"change.emit()\">\n\t\t</cds-radio>\n\t`\n})\nexport class TableRadio {\n\t@Input() row: any[];\n\n\t@Input() selected = false;\n\n\t@Input()\n\tset label(value: string | Observable<string>) {\n\t\tthis._label.override(value);\n\t}\n\n\tget label() {\n\t\treturn this._label.value;\n\t}\n\n\tget disabled(): boolean {\n\t\treturn this.row ? !!(this.row as TableRow).disabled : false;\n\t}\n\
|
|
55903
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tOutput,\n\tEventEmitter\n} from \"@angular/core\";\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { TableItem } from \"../table-item.class\";\nimport { TableRow } from \"../table-row.class\";\nimport { Observable } from \"rxjs\";\n\n@Component({\n\t// tslint:disable-next-line: component-selector\n\tselector: \"[cdsTableRadio], [ibmTableRadio]\",\n\ttemplate: `\n\t\t<cds-radio\n\t\t\t*ngIf=\"!skeleton\"\n\t\t\t[attr.aria-label]=\"getLabel() | i18nReplace:getSelectionLabelValue(row) | async\"\n\t\t\t[ariaLabel]=\"getLabel() | i18nReplace:getSelectionLabelValue(row) | async\"\n\t\t\t[checked]=\"selected\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t(change)=\"change.emit()\">\n\t\t</cds-radio>\n\t`\n})\nexport class TableRadio {\n\t@Input() row: any[];\n\n\t@Input() selected = false;\n\n\t@Input()\n\tset label(value: string | Observable<string>) {\n\t\tthis._label.override(value);\n\t}\n\n\tget label() {\n\t\treturn this._label.value;\n\t}\n\n\tget disabled(): boolean {\n\t\treturn this.row ? !!(this.row as TableRow).disabled : false;\n\t}\n\n\t/**\n\t * Used to populate the row selection checkbox label with a useful value if set.\n\t *\n\t * Example:\n\t * ```\n\t * <cds-table [selectionLabelColumn]=\"0\"></cds-table>\n\t * <!-- results in aria-label=\"Select first column value\"\n\t * (where \"first column value\" is the value of the first column in the row -->\n\t * ```\n\t */\n\t@Input() selectionLabelColumn: number;\n\n\t@Input() skeleton = false;\n\n\t/**\n\t * Emits if a single row is selected.\n\t */\n\t@Output() change = new EventEmitter();\n\n\tprotected _label = this.i18n.getOverridable(\"TABLE.CHECKBOX_ROW\");\n\n\tconstructor(protected i18n: I18n) { }\n\n\tgetSelectionLabelValue(row: TableItem[]) {\n\t\tif (!this.selectionLabelColumn) {\n\t\t\treturn { value: this.i18n.get().TABLE.ROW };\n\t\t}\n\t\treturn { value: row[this.selectionLabelColumn].data };\n\t}\n\n\tgetLabel(): Observable<string> {\n\t\treturn this._label.subject;\n\t}\n}\n",
|
|
55904
55904
|
"assetsDirs": [],
|
|
55905
55905
|
"styleUrlsData": "",
|
|
55906
55906
|
"stylesData": "",
|
|
@@ -57040,7 +57040,7 @@
|
|
|
57040
57040
|
"deprecationMessage": "",
|
|
57041
57041
|
"rawdescription": "\n\nSet to `true` to expand the toolbar search component.\n",
|
|
57042
57042
|
"description": "<p>Set to <code>true</code> to expand the toolbar search component.</p>\n",
|
|
57043
|
-
"line":
|
|
57043
|
+
"line": 75,
|
|
57044
57044
|
"type": "boolean",
|
|
57045
57045
|
"decorators": [],
|
|
57046
57046
|
"inheritance": {
|
|
@@ -57053,7 +57053,7 @@
|
|
|
57053
57053
|
"deprecationMessage": "",
|
|
57054
57054
|
"rawdescription": "\n\nSets the aria label on the `div` element with the `search` role.\n",
|
|
57055
57055
|
"description": "<p>Sets the aria label on the <code>div</code> element with the <code>search</code> role.</p>\n",
|
|
57056
|
-
"line":
|
|
57056
|
+
"line": 120,
|
|
57057
57057
|
"type": "string",
|
|
57058
57058
|
"decorators": [],
|
|
57059
57059
|
"inheritance": {
|
|
@@ -57067,7 +57067,7 @@
|
|
|
57067
57067
|
"deprecationMessage": "",
|
|
57068
57068
|
"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",
|
|
57069
57069
|
"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",
|
|
57070
|
-
"line":
|
|
57070
|
+
"line": 100,
|
|
57071
57071
|
"type": "string",
|
|
57072
57072
|
"decorators": [],
|
|
57073
57073
|
"inheritance": {
|
|
@@ -57081,7 +57081,7 @@
|
|
|
57081
57081
|
"deprecationMessage": "",
|
|
57082
57082
|
"rawdescription": "\n\nUsed to set the `title` attribute of the clear button.\n",
|
|
57083
57083
|
"description": "<p>Used to set the <code>title</code> attribute of the clear button.</p>\n",
|
|
57084
|
-
"line":
|
|
57084
|
+
"line": 112,
|
|
57085
57085
|
"type": "any",
|
|
57086
57086
|
"decorators": [],
|
|
57087
57087
|
"inheritance": {
|
|
@@ -57095,7 +57095,7 @@
|
|
|
57095
57095
|
"deprecationMessage": "",
|
|
57096
57096
|
"rawdescription": "\n\nSet to `true` for a disabled search input.\n",
|
|
57097
57097
|
"description": "<p>Set to <code>true</code> for a disabled search input.</p>\n",
|
|
57098
|
-
"line":
|
|
57098
|
+
"line": 58,
|
|
57099
57099
|
"type": "boolean",
|
|
57100
57100
|
"decorators": [],
|
|
57101
57101
|
"inheritance": {
|
|
@@ -57109,7 +57109,7 @@
|
|
|
57109
57109
|
"deprecationMessage": "",
|
|
57110
57110
|
"rawdescription": "\n\nSet to `true` to make the search component expandable.\n`expandable` would override `toolbar` property behaviours.\n",
|
|
57111
57111
|
"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",
|
|
57112
|
-
"line":
|
|
57112
|
+
"line": 67,
|
|
57113
57113
|
"type": "boolean",
|
|
57114
57114
|
"decorators": [],
|
|
57115
57115
|
"inheritance": {
|
|
@@ -57123,7 +57123,7 @@
|
|
|
57123
57123
|
"deprecationMessage": "",
|
|
57124
57124
|
"rawdescription": "\n\nThe unique id for the search component.\n",
|
|
57125
57125
|
"description": "<p>The unique id for the search component.</p>\n",
|
|
57126
|
-
"line":
|
|
57126
|
+
"line": 87,
|
|
57127
57127
|
"type": "string",
|
|
57128
57128
|
"decorators": [],
|
|
57129
57129
|
"inheritance": {
|
|
@@ -57137,7 +57137,7 @@
|
|
|
57137
57137
|
"deprecationMessage": "",
|
|
57138
57138
|
"rawdescription": "\n\nSets the text inside the `label` tag.\n",
|
|
57139
57139
|
"description": "<p>Sets the text inside the <code>label</code> tag.</p>\n",
|
|
57140
|
-
"line":
|
|
57140
|
+
"line": 104,
|
|
57141
57141
|
"type": "any",
|
|
57142
57142
|
"decorators": [],
|
|
57143
57143
|
"inheritance": {
|
|
@@ -57150,7 +57150,7 @@
|
|
|
57150
57150
|
"deprecationMessage": "",
|
|
57151
57151
|
"rawdescription": "\n\nSets the name attribute on the `input` element.\n",
|
|
57152
57152
|
"description": "<p>Sets the name attribute on the <code>input</code> element.</p>\n",
|
|
57153
|
-
"line":
|
|
57153
|
+
"line": 83,
|
|
57154
57154
|
"type": "string",
|
|
57155
57155
|
"decorators": [],
|
|
57156
57156
|
"inheritance": {
|
|
@@ -57164,7 +57164,7 @@
|
|
|
57164
57164
|
"deprecationMessage": "",
|
|
57165
57165
|
"rawdescription": "\n\nSets the placeholder attribute on the `input` element.\n",
|
|
57166
57166
|
"description": "<p>Sets the placeholder attribute on the <code>input</code> element.</p>\n",
|
|
57167
|
-
"line":
|
|
57167
|
+
"line": 108,
|
|
57168
57168
|
"type": "any",
|
|
57169
57169
|
"decorators": [],
|
|
57170
57170
|
"inheritance": {
|
|
@@ -57177,7 +57177,7 @@
|
|
|
57177
57177
|
"deprecationMessage": "",
|
|
57178
57178
|
"rawdescription": "\n\nReflects the required attribute of the `input` element.\n",
|
|
57179
57179
|
"description": "<p>Reflects the required attribute of the <code>input</code> element.</p>\n",
|
|
57180
|
-
"line":
|
|
57180
|
+
"line": 91,
|
|
57181
57181
|
"type": "boolean",
|
|
57182
57182
|
"decorators": [],
|
|
57183
57183
|
"inheritance": {
|
|
@@ -57191,7 +57191,7 @@
|
|
|
57191
57191
|
"deprecationMessage": "",
|
|
57192
57192
|
"rawdescription": "\n\nTitle for the search trigger\n",
|
|
57193
57193
|
"description": "<p>Title for the search trigger</p>\n",
|
|
57194
|
-
"line":
|
|
57194
|
+
"line": 116,
|
|
57195
57195
|
"type": "string",
|
|
57196
57196
|
"decorators": [],
|
|
57197
57197
|
"inheritance": {
|
|
@@ -57205,7 +57205,7 @@
|
|
|
57205
57205
|
"deprecationMessage": "",
|
|
57206
57206
|
"rawdescription": "\n\nSize of the search field.\n",
|
|
57207
57207
|
"description": "<p>Size of the search field.</p>\n",
|
|
57208
|
-
"line":
|
|
57208
|
+
"line": 53,
|
|
57209
57209
|
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
57210
57210
|
"decorators": [],
|
|
57211
57211
|
"inheritance": {
|
|
@@ -57219,7 +57219,7 @@
|
|
|
57219
57219
|
"deprecationMessage": "",
|
|
57220
57220
|
"rawdescription": "\n\nSet to `true` for a loading search component.\n",
|
|
57221
57221
|
"description": "<p>Set to <code>true</code> for a loading search component.</p>\n",
|
|
57222
|
-
"line":
|
|
57222
|
+
"line": 71,
|
|
57223
57223
|
"type": "boolean",
|
|
57224
57224
|
"decorators": [],
|
|
57225
57225
|
"inheritance": {
|
|
@@ -57233,7 +57233,7 @@
|
|
|
57233
57233
|
"deprecationMessage": "",
|
|
57234
57234
|
"rawdescription": "\n\nSpecifies whether the search component is used in the table toolbar.\n",
|
|
57235
57235
|
"description": "<p>Specifies whether the search component is used in the table toolbar.</p>\n",
|
|
57236
|
-
"line":
|
|
57236
|
+
"line": 79,
|
|
57237
57237
|
"type": "boolean",
|
|
57238
57238
|
"decorators": [],
|
|
57239
57239
|
"inheritance": {
|
|
@@ -57247,15 +57247,15 @@
|
|
|
57247
57247
|
"deprecationMessage": "since v5 - Use `cdsLayer` directive instead\n`light` or `dark` search theme.",
|
|
57248
57248
|
"jsdoctags": [
|
|
57249
57249
|
{
|
|
57250
|
-
"pos":
|
|
57251
|
-
"end":
|
|
57250
|
+
"pos": 921,
|
|
57251
|
+
"end": 1015,
|
|
57252
57252
|
"flags": 8421376,
|
|
57253
57253
|
"modifierFlagsCache": 0,
|
|
57254
57254
|
"transformFlags": 0,
|
|
57255
57255
|
"kind": 334,
|
|
57256
57256
|
"tagName": {
|
|
57257
|
-
"pos":
|
|
57258
|
-
"end":
|
|
57257
|
+
"pos": 922,
|
|
57258
|
+
"end": 932,
|
|
57259
57259
|
"flags": 8421376,
|
|
57260
57260
|
"modifierFlagsCache": 0,
|
|
57261
57261
|
"transformFlags": 0,
|
|
@@ -57265,7 +57265,7 @@
|
|
|
57265
57265
|
"comment": "<p>since v5 - Use <code>cdsLayer</code> directive instead\n<code>light</code> or <code>dark</code> search theme.</p>\n"
|
|
57266
57266
|
}
|
|
57267
57267
|
],
|
|
57268
|
-
"line":
|
|
57268
|
+
"line": 48,
|
|
57269
57269
|
"type": "\"light\" | \"dark\"",
|
|
57270
57270
|
"decorators": [],
|
|
57271
57271
|
"inheritance": {
|
|
@@ -57279,7 +57279,7 @@
|
|
|
57279
57279
|
"deprecationMessage": "",
|
|
57280
57280
|
"rawdescription": "\n\nSet to `true` for a toolbar search component.\n",
|
|
57281
57281
|
"description": "<p>Set to <code>true</code> for a toolbar search component.</p>\n",
|
|
57282
|
-
"line":
|
|
57282
|
+
"line": 62,
|
|
57283
57283
|
"type": "boolean",
|
|
57284
57284
|
"decorators": [],
|
|
57285
57285
|
"inheritance": {
|
|
@@ -57293,7 +57293,7 @@
|
|
|
57293
57293
|
"deprecationMessage": "",
|
|
57294
57294
|
"rawdescription": "\n\nSets the value attribute on the `input` element.\n",
|
|
57295
57295
|
"description": "<p>Sets the value attribute on the <code>input</code> element.</p>\n",
|
|
57296
|
-
"line":
|
|
57296
|
+
"line": 95,
|
|
57297
57297
|
"type": "string",
|
|
57298
57298
|
"decorators": [],
|
|
57299
57299
|
"inheritance": {
|
|
@@ -57309,7 +57309,7 @@
|
|
|
57309
57309
|
"deprecationMessage": "",
|
|
57310
57310
|
"rawdescription": "\n\nEmits an event when the clear button is clicked.\n",
|
|
57311
57311
|
"description": "<p>Emits an event when the clear button is clicked.</p>\n",
|
|
57312
|
-
"line":
|
|
57312
|
+
"line": 129,
|
|
57313
57313
|
"type": "EventEmitter",
|
|
57314
57314
|
"inheritance": {
|
|
57315
57315
|
"file": "Search"
|
|
@@ -57320,7 +57320,7 @@
|
|
|
57320
57320
|
"defaultValue": "new EventEmitter<boolean>()",
|
|
57321
57321
|
"deprecated": false,
|
|
57322
57322
|
"deprecationMessage": "",
|
|
57323
|
-
"line":
|
|
57323
|
+
"line": 125,
|
|
57324
57324
|
"type": "EventEmitter",
|
|
57325
57325
|
"inheritance": {
|
|
57326
57326
|
"file": "Search"
|
|
@@ -57333,7 +57333,7 @@
|
|
|
57333
57333
|
"deprecationMessage": "",
|
|
57334
57334
|
"rawdescription": "\n\nEmits an event on enter.\n",
|
|
57335
57335
|
"description": "<p>Emits an event on enter.</p>\n",
|
|
57336
|
-
"line":
|
|
57336
|
+
"line": 133,
|
|
57337
57337
|
"type": "EventEmitter",
|
|
57338
57338
|
"inheritance": {
|
|
57339
57339
|
"file": "Search"
|
|
@@ -57346,7 +57346,7 @@
|
|
|
57346
57346
|
"deprecationMessage": "",
|
|
57347
57347
|
"rawdescription": "\n\nEmits an event when value is changed.\n",
|
|
57348
57348
|
"description": "<p>Emits an event when value is changed.</p>\n",
|
|
57349
|
-
"line":
|
|
57349
|
+
"line": 124,
|
|
57350
57350
|
"type": "EventEmitter",
|
|
57351
57351
|
"inheritance": {
|
|
57352
57352
|
"file": "Search"
|
|
@@ -57400,7 +57400,7 @@
|
|
|
57400
57400
|
"type": "ElementRef",
|
|
57401
57401
|
"optional": false,
|
|
57402
57402
|
"description": "",
|
|
57403
|
-
"line":
|
|
57403
|
+
"line": 135,
|
|
57404
57404
|
"decorators": [
|
|
57405
57405
|
{
|
|
57406
57406
|
"name": "ViewChild",
|
|
@@ -57422,7 +57422,7 @@
|
|
|
57422
57422
|
"type": "function",
|
|
57423
57423
|
"optional": false,
|
|
57424
57424
|
"description": "<p>Called when search input is blurred. Needed to properly implement <code>ControlValueAccessor</code>.</p>\n",
|
|
57425
|
-
"line":
|
|
57425
|
+
"line": 176,
|
|
57426
57426
|
"rawdescription": "\n\nCalled when search input is blurred. Needed to properly implement `ControlValueAccessor`.\n",
|
|
57427
57427
|
"inheritance": {
|
|
57428
57428
|
"file": "Search"
|
|
@@ -57436,7 +57436,7 @@
|
|
|
57436
57436
|
"type": "",
|
|
57437
57437
|
"optional": false,
|
|
57438
57438
|
"description": "<p>Method set in <code>registerOnChange</code> to propagate changes back to the form.</p>\n",
|
|
57439
|
-
"line":
|
|
57439
|
+
"line": 181,
|
|
57440
57440
|
"rawdescription": "\n\nMethod set in `registerOnChange` to propagate changes back to the form.\n",
|
|
57441
57441
|
"inheritance": {
|
|
57442
57442
|
"file": "Search"
|
|
@@ -57467,7 +57467,7 @@
|
|
|
57467
57467
|
"optional": false,
|
|
57468
57468
|
"returnType": "void",
|
|
57469
57469
|
"typeParameters": [],
|
|
57470
|
-
"line":
|
|
57470
|
+
"line": 205,
|
|
57471
57471
|
"deprecated": false,
|
|
57472
57472
|
"deprecationMessage": "",
|
|
57473
57473
|
"rawdescription": "\n\nCalled when clear button is clicked.\n",
|
|
@@ -57489,7 +57489,7 @@
|
|
|
57489
57489
|
"optional": false,
|
|
57490
57490
|
"returnType": "void",
|
|
57491
57491
|
"typeParameters": [],
|
|
57492
|
-
"line":
|
|
57492
|
+
"line": 277,
|
|
57493
57493
|
"deprecated": false,
|
|
57494
57494
|
"deprecationMessage": "",
|
|
57495
57495
|
"rawdescription": "\n\nCalled when IME composition finishes.\n",
|
|
@@ -57531,7 +57531,7 @@
|
|
|
57531
57531
|
"optional": false,
|
|
57532
57532
|
"returnType": "void",
|
|
57533
57533
|
"typeParameters": [],
|
|
57534
|
-
"line":
|
|
57534
|
+
"line": 269,
|
|
57535
57535
|
"deprecated": false,
|
|
57536
57536
|
"deprecationMessage": "",
|
|
57537
57537
|
"rawdescription": "\n\nCalled when using IME composition.\n",
|
|
@@ -57566,7 +57566,7 @@
|
|
|
57566
57566
|
"optional": false,
|
|
57567
57567
|
"returnType": "void",
|
|
57568
57568
|
"typeParameters": [],
|
|
57569
|
-
"line":
|
|
57569
|
+
"line": 211,
|
|
57570
57570
|
"deprecated": false,
|
|
57571
57571
|
"deprecationMessage": "",
|
|
57572
57572
|
"inheritance": {
|
|
@@ -57586,7 +57586,7 @@
|
|
|
57586
57586
|
"optional": false,
|
|
57587
57587
|
"returnType": "void",
|
|
57588
57588
|
"typeParameters": [],
|
|
57589
|
-
"line":
|
|
57589
|
+
"line": 255,
|
|
57590
57590
|
"deprecated": false,
|
|
57591
57591
|
"deprecationMessage": "",
|
|
57592
57592
|
"decorators": [
|
|
@@ -57626,7 +57626,7 @@
|
|
|
57626
57626
|
"optional": false,
|
|
57627
57627
|
"returnType": "void",
|
|
57628
57628
|
"typeParameters": [],
|
|
57629
|
-
"line":
|
|
57629
|
+
"line": 243,
|
|
57630
57630
|
"deprecated": false,
|
|
57631
57631
|
"deprecationMessage": "",
|
|
57632
57632
|
"decorators": [
|
|
@@ -57666,7 +57666,7 @@
|
|
|
57666
57666
|
"optional": false,
|
|
57667
57667
|
"returnType": "void",
|
|
57668
57668
|
"typeParameters": [],
|
|
57669
|
-
"line":
|
|
57669
|
+
"line": 223,
|
|
57670
57670
|
"deprecated": false,
|
|
57671
57671
|
"deprecationMessage": "",
|
|
57672
57672
|
"decorators": [
|
|
@@ -57699,7 +57699,7 @@
|
|
|
57699
57699
|
"optional": false,
|
|
57700
57700
|
"returnType": "void",
|
|
57701
57701
|
"typeParameters": [],
|
|
57702
|
-
"line":
|
|
57702
|
+
"line": 198,
|
|
57703
57703
|
"deprecated": false,
|
|
57704
57704
|
"deprecationMessage": "",
|
|
57705
57705
|
"rawdescription": "\n\nCalled on enter.\n",
|
|
@@ -57721,7 +57721,7 @@
|
|
|
57721
57721
|
"optional": false,
|
|
57722
57722
|
"returnType": "void",
|
|
57723
57723
|
"typeParameters": [],
|
|
57724
|
-
"line":
|
|
57724
|
+
"line": 187,
|
|
57725
57725
|
"deprecated": false,
|
|
57726
57726
|
"deprecationMessage": "",
|
|
57727
57727
|
"rawdescription": "\n\nCalled when text is written in the input.\n",
|
|
@@ -57729,8 +57729,8 @@
|
|
|
57729
57729
|
"jsdoctags": [
|
|
57730
57730
|
{
|
|
57731
57731
|
"name": {
|
|
57732
|
-
"pos":
|
|
57733
|
-
"end":
|
|
57732
|
+
"pos": 4396,
|
|
57733
|
+
"end": 4402,
|
|
57734
57734
|
"flags": 8421376,
|
|
57735
57735
|
"modifierFlagsCache": 0,
|
|
57736
57736
|
"transformFlags": 0,
|
|
@@ -57741,8 +57741,8 @@
|
|
|
57741
57741
|
"deprecated": false,
|
|
57742
57742
|
"deprecationMessage": "",
|
|
57743
57743
|
"tagName": {
|
|
57744
|
-
"pos":
|
|
57745
|
-
"end":
|
|
57744
|
+
"pos": 4390,
|
|
57745
|
+
"end": 4395,
|
|
57746
57746
|
"flags": 8421376,
|
|
57747
57747
|
"modifierFlagsCache": 0,
|
|
57748
57748
|
"transformFlags": 0,
|
|
@@ -57762,7 +57762,7 @@
|
|
|
57762
57762
|
"optional": false,
|
|
57763
57763
|
"returnType": "void",
|
|
57764
57764
|
"typeParameters": [],
|
|
57765
|
-
"line":
|
|
57765
|
+
"line": 216,
|
|
57766
57766
|
"deprecated": false,
|
|
57767
57767
|
"deprecationMessage": "",
|
|
57768
57768
|
"inheritance": {
|
|
@@ -57782,7 +57782,7 @@
|
|
|
57782
57782
|
"optional": false,
|
|
57783
57783
|
"returnType": "void",
|
|
57784
57784
|
"typeParameters": [],
|
|
57785
|
-
"line":
|
|
57785
|
+
"line": 161,
|
|
57786
57786
|
"deprecated": false,
|
|
57787
57787
|
"deprecationMessage": "",
|
|
57788
57788
|
"rawdescription": "\n\nSets a method in order to propagate changes back to the form.\n",
|
|
@@ -57818,7 +57818,7 @@
|
|
|
57818
57818
|
"optional": false,
|
|
57819
57819
|
"returnType": "void",
|
|
57820
57820
|
"typeParameters": [],
|
|
57821
|
-
"line":
|
|
57821
|
+
"line": 169,
|
|
57822
57822
|
"deprecated": false,
|
|
57823
57823
|
"deprecationMessage": "",
|
|
57824
57824
|
"rawdescription": "\n\nRegisters a callback to be triggered when the control has been touched.\n",
|
|
@@ -57829,8 +57829,8 @@
|
|
|
57829
57829
|
"jsdoctags": [
|
|
57830
57830
|
{
|
|
57831
57831
|
"name": {
|
|
57832
|
-
"pos":
|
|
57833
|
-
"end":
|
|
57832
|
+
"pos": 3942,
|
|
57833
|
+
"end": 3944,
|
|
57834
57834
|
"flags": 8421376,
|
|
57835
57835
|
"modifierFlagsCache": 0,
|
|
57836
57836
|
"transformFlags": 0,
|
|
@@ -57841,8 +57841,8 @@
|
|
|
57841
57841
|
"deprecated": false,
|
|
57842
57842
|
"deprecationMessage": "",
|
|
57843
57843
|
"tagName": {
|
|
57844
|
-
"pos":
|
|
57845
|
-
"end":
|
|
57844
|
+
"pos": 3936,
|
|
57845
|
+
"end": 3941,
|
|
57846
57846
|
"flags": 8421376,
|
|
57847
57847
|
"modifierFlagsCache": 0,
|
|
57848
57848
|
"transformFlags": 0,
|
|
@@ -57869,7 +57869,7 @@
|
|
|
57869
57869
|
"optional": false,
|
|
57870
57870
|
"returnType": "void",
|
|
57871
57871
|
"typeParameters": [],
|
|
57872
|
-
"line":
|
|
57872
|
+
"line": 154,
|
|
57873
57873
|
"deprecated": false,
|
|
57874
57874
|
"deprecationMessage": "",
|
|
57875
57875
|
"rawdescription": "\n\nThis is the initial value set to the component\n",
|
|
@@ -57880,8 +57880,8 @@
|
|
|
57880
57880
|
"jsdoctags": [
|
|
57881
57881
|
{
|
|
57882
57882
|
"name": {
|
|
57883
|
-
"pos":
|
|
57884
|
-
"end":
|
|
57883
|
+
"pos": 3618,
|
|
57884
|
+
"end": 3623,
|
|
57885
57885
|
"flags": 8421376,
|
|
57886
57886
|
"modifierFlagsCache": 0,
|
|
57887
57887
|
"transformFlags": 0,
|
|
@@ -57892,8 +57892,8 @@
|
|
|
57892
57892
|
"deprecated": false,
|
|
57893
57893
|
"deprecationMessage": "",
|
|
57894
57894
|
"tagName": {
|
|
57895
|
-
"pos":
|
|
57896
|
-
"end":
|
|
57895
|
+
"pos": 3612,
|
|
57896
|
+
"end": 3617,
|
|
57897
57897
|
"flags": 8421376,
|
|
57898
57898
|
"modifierFlagsCache": 0,
|
|
57899
57899
|
"transformFlags": 0,
|
|
@@ -57950,7 +57950,7 @@
|
|
|
57950
57950
|
"deprecationMessage": "",
|
|
57951
57951
|
"rawdescription": "\n\nCalled when IME composition finishes.\n",
|
|
57952
57952
|
"description": "<p>Called when IME composition finishes.</p>\n",
|
|
57953
|
-
"line":
|
|
57953
|
+
"line": 277,
|
|
57954
57954
|
"inheritance": {
|
|
57955
57955
|
"file": "Search"
|
|
57956
57956
|
}
|
|
@@ -57972,7 +57972,7 @@
|
|
|
57972
57972
|
"deprecationMessage": "",
|
|
57973
57973
|
"rawdescription": "\n\nCalled when using IME composition.\n",
|
|
57974
57974
|
"description": "<p>Called when using IME composition.</p>\n",
|
|
57975
|
-
"line":
|
|
57975
|
+
"line": 269,
|
|
57976
57976
|
"inheritance": {
|
|
57977
57977
|
"file": "Search"
|
|
57978
57978
|
}
|
|
@@ -57992,7 +57992,7 @@
|
|
|
57992
57992
|
],
|
|
57993
57993
|
"deprecated": false,
|
|
57994
57994
|
"deprecationMessage": "",
|
|
57995
|
-
"line":
|
|
57995
|
+
"line": 255,
|
|
57996
57996
|
"inheritance": {
|
|
57997
57997
|
"file": "Search"
|
|
57998
57998
|
}
|
|
@@ -58012,7 +58012,7 @@
|
|
|
58012
58012
|
],
|
|
58013
58013
|
"deprecated": false,
|
|
58014
58014
|
"deprecationMessage": "",
|
|
58015
|
-
"line":
|
|
58015
|
+
"line": 243,
|
|
58016
58016
|
"inheritance": {
|
|
58017
58017
|
"file": "Search"
|
|
58018
58018
|
}
|
|
@@ -58032,7 +58032,7 @@
|
|
|
58032
58032
|
],
|
|
58033
58033
|
"deprecated": false,
|
|
58034
58034
|
"deprecationMessage": "",
|
|
58035
|
-
"line":
|
|
58035
|
+
"line": 223,
|
|
58036
58036
|
"inheritance": {
|
|
58037
58037
|
"file": "Search"
|
|
58038
58038
|
}
|
|
@@ -71771,7 +71771,7 @@
|
|
|
71771
71771
|
"deprecated": false,
|
|
71772
71772
|
"deprecationMessage": "",
|
|
71773
71773
|
"type": "",
|
|
71774
|
-
"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</cds-search>\n\t`\n})"
|
|
71774
|
+
"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})"
|
|
71775
71775
|
},
|
|
71776
71776
|
{
|
|
71777
71777
|
"name": "Template",
|
|
@@ -76564,7 +76564,7 @@
|
|
|
76564
76564
|
"deprecated": false,
|
|
76565
76565
|
"deprecationMessage": "",
|
|
76566
76566
|
"type": "",
|
|
76567
|
-
"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</cds-search>\n\t`\n})"
|
|
76567
|
+
"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})"
|
|
76568
76568
|
}
|
|
76569
76569
|
],
|
|
76570
76570
|
"src/select/select.stories.ts": [
|