@cds/core 5.5.8 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_virtual/_virtual_library-entry-points +1 -1
- package/alert/alert-group.element.d.ts +3 -3
- package/alert/alert.element.d.ts +2 -2
- package/badge/badge.element.d.ts +1 -1
- package/button/button.element.d.ts +1 -1
- package/custom-elements.json +9105 -6755
- package/custom-elements.legacy.json +240 -0
- package/forms/control/control.element.d.ts +3 -3
- package/forms/control-group/control-group.element.d.ts +2 -2
- package/forms/control-inline/control-inline.element.d.ts +1 -0
- package/forms/control-inline/control-inline.element.js +1 -1
- package/forms/control-inline/control-inline.element.js.map +1 -1
- package/forms/control-message/control-message.element.d.ts +1 -1
- package/forms/form-group/form-group.element.d.ts +2 -2
- package/global.css +1 -0
- package/global.min.css +1 -1
- package/icon/icon.element.d.ts +5 -5
- package/internal/base/base.element.scss.js +1 -1
- package/internal/utils/global.js +1 -1
- package/navigation/navigation-item.element.js +1 -1
- package/navigation/navigation-item.element.js.map +1 -1
- package/navigation/navigation-item.element.scss.js +2 -2
- package/navigation/navigation-start.element.js +1 -1
- package/navigation/navigation-start.element.js.map +1 -1
- package/navigation/navigation-start.element.scss.js +2 -2
- package/navigation/navigation.element.js +1 -3
- package/navigation/navigation.element.js.map +1 -1
- package/navigation/navigation.element.scss.js +1 -1
- package/package.json +19 -1
- package/progress-circle/progress-circle.element.d.ts +2 -2
- package/radio/radio-group.element.js +1 -1
- package/radio/radio-group.element.js.map +1 -1
- package/selection-panels/checkbox/checkbox-panel.element.d.ts +35 -0
- package/selection-panels/checkbox/checkbox-panel.element.js +2 -0
- package/selection-panels/checkbox/checkbox-panel.element.js.map +1 -0
- package/selection-panels/checkbox/index.d.ts +2 -0
- package/selection-panels/checkbox/index.js +2 -0
- package/selection-panels/checkbox/index.js.map +1 -0
- package/selection-panels/checkbox/register.d.ts +6 -0
- package/selection-panels/checkbox/register.js +2 -0
- package/selection-panels/checkbox/register.js.map +1 -0
- package/selection-panels/index.d.ts +11 -0
- package/selection-panels/index.js +2 -0
- package/selection-panels/index.js.map +1 -0
- package/selection-panels/radio/index.d.ts +2 -0
- package/selection-panels/radio/index.js +2 -0
- package/selection-panels/radio/index.js.map +1 -0
- package/selection-panels/radio/radio-panel.element.d.ts +35 -0
- package/selection-panels/radio/radio-panel.element.js +2 -0
- package/selection-panels/radio/radio-panel.element.js.map +1 -0
- package/selection-panels/radio/register.d.ts +6 -0
- package/selection-panels/radio/register.js +2 -0
- package/selection-panels/radio/register.js.map +1 -0
- package/selection-panels/register.d.ts +8 -0
- package/selection-panels/register.js +2 -0
- package/selection-panels/register.js.map +1 -0
- package/selection-panels/shared/selection-panel.element.scss.js +6 -0
- package/selection-panels/shared/selection-panel.element.scss.js.map +1 -0
- package/selection-panels/shared/selection-panel.interfaces.d.ts +1 -0
- package/styles/module.tokens.css +1 -0
- package/styles/module.tokens.min.css +1 -1
- package/styles/theme.dark.css +1 -0
- package/styles/theme.dark.min.css +1 -1
- package/tag/tag.element.d.ts +1 -1
- package/tokens/tokens.android.xml +1 -0
- package/tokens/tokens.d.ts +1 -0
- package/tokens/tokens.ios.swift +1 -0
- package/tokens/tokens.js +1 -0
- package/tokens/tokens.json +8 -0
- package/tokens/tokens.scss +1 -0
|
@@ -255,10 +255,12 @@
|
|
|
255
255
|
"properties": [
|
|
256
256
|
{
|
|
257
257
|
"name": "size",
|
|
258
|
+
"description": "Sets the overall height and width of the alerts inside the alert group",
|
|
258
259
|
"type": "default | sm"
|
|
259
260
|
},
|
|
260
261
|
{
|
|
261
262
|
"name": "type",
|
|
263
|
+
"description": "Passed down into the alerts inside the alert-group",
|
|
262
264
|
"type": "default | banner | light"
|
|
263
265
|
},
|
|
264
266
|
{
|
|
@@ -268,6 +270,7 @@
|
|
|
268
270
|
},
|
|
269
271
|
{
|
|
270
272
|
"name": "status",
|
|
273
|
+
"description": "Sets the status of the alerts inside the alert group",
|
|
271
274
|
"type": "neutral | info | success | warning | danger | alt | loading"
|
|
272
275
|
}
|
|
273
276
|
],
|
|
@@ -320,6 +323,7 @@
|
|
|
320
323
|
"properties": [
|
|
321
324
|
{
|
|
322
325
|
"name": "size",
|
|
326
|
+
"description": "Sets the overall height and width of the alert and icon based on value",
|
|
323
327
|
"type": "default | sm"
|
|
324
328
|
},
|
|
325
329
|
{
|
|
@@ -329,6 +333,7 @@
|
|
|
329
333
|
},
|
|
330
334
|
{
|
|
331
335
|
"name": "status",
|
|
336
|
+
"description": "Sets the color of the alert from a predefined list of statuses",
|
|
332
337
|
"type": "neutral | info | success | warning | danger | alt | loading"
|
|
333
338
|
},
|
|
334
339
|
{
|
|
@@ -379,6 +384,7 @@
|
|
|
379
384
|
"properties": [
|
|
380
385
|
{
|
|
381
386
|
"name": "size",
|
|
387
|
+
"description": "Sets the overall height and width of the alert and icon based on value",
|
|
382
388
|
"type": "default | sm"
|
|
383
389
|
},
|
|
384
390
|
{
|
|
@@ -388,6 +394,7 @@
|
|
|
388
394
|
},
|
|
389
395
|
{
|
|
390
396
|
"name": "status",
|
|
397
|
+
"description": "Sets the color of the alert from a predefined list of statuses",
|
|
391
398
|
"type": "neutral | info | success | warning | danger | alt | loading"
|
|
392
399
|
},
|
|
393
400
|
{
|
|
@@ -459,10 +466,12 @@
|
|
|
459
466
|
"properties": [
|
|
460
467
|
{
|
|
461
468
|
"name": "size",
|
|
469
|
+
"description": "Sets the overall height and width of the alerts inside the alert group",
|
|
462
470
|
"type": "default | sm"
|
|
463
471
|
},
|
|
464
472
|
{
|
|
465
473
|
"name": "type",
|
|
474
|
+
"description": "Passed down into the alerts inside the alert-group",
|
|
466
475
|
"type": "default | banner | light"
|
|
467
476
|
},
|
|
468
477
|
{
|
|
@@ -472,6 +481,7 @@
|
|
|
472
481
|
},
|
|
473
482
|
{
|
|
474
483
|
"name": "status",
|
|
484
|
+
"description": "Sets the status of the alerts inside the alert group",
|
|
475
485
|
"type": "neutral | info | success | warning | danger | alt | loading"
|
|
476
486
|
}
|
|
477
487
|
],
|
|
@@ -529,6 +539,7 @@
|
|
|
529
539
|
},
|
|
530
540
|
{
|
|
531
541
|
"name": "status",
|
|
542
|
+
"description": "Sets the color of the badge",
|
|
532
543
|
"type": "neutral | info | success | warning | danger"
|
|
533
544
|
}
|
|
534
545
|
],
|
|
@@ -580,6 +591,7 @@
|
|
|
580
591
|
},
|
|
581
592
|
{
|
|
582
593
|
"name": "status",
|
|
594
|
+
"description": "Sets the color of the badge",
|
|
583
595
|
"type": "neutral | info | success | warning | danger"
|
|
584
596
|
}
|
|
585
597
|
],
|
|
@@ -684,6 +696,7 @@
|
|
|
684
696
|
},
|
|
685
697
|
{
|
|
686
698
|
"name": "loadingState",
|
|
699
|
+
"description": "Changes the button content based on the value passed.",
|
|
687
700
|
"type": "default | loading | success | error"
|
|
688
701
|
},
|
|
689
702
|
{
|
|
@@ -777,6 +790,7 @@
|
|
|
777
790
|
},
|
|
778
791
|
{
|
|
779
792
|
"name": "loadingState",
|
|
793
|
+
"description": "Changes the button content based on the value passed.",
|
|
780
794
|
"type": "default | loading | success | error"
|
|
781
795
|
},
|
|
782
796
|
{
|
|
@@ -893,6 +907,7 @@
|
|
|
893
907
|
},
|
|
894
908
|
{
|
|
895
909
|
"name": "loadingState",
|
|
910
|
+
"description": "Changes the button content based on the value passed.",
|
|
896
911
|
"type": "default | loading | success | error"
|
|
897
912
|
},
|
|
898
913
|
{
|
|
@@ -986,6 +1001,7 @@
|
|
|
986
1001
|
},
|
|
987
1002
|
{
|
|
988
1003
|
"name": "loadingState",
|
|
1004
|
+
"description": "Changes the button content based on the value passed.",
|
|
989
1005
|
"type": "default | loading | success | error"
|
|
990
1006
|
},
|
|
991
1007
|
{
|
|
@@ -1484,6 +1500,7 @@
|
|
|
1484
1500
|
"properties": [
|
|
1485
1501
|
{
|
|
1486
1502
|
"name": "status",
|
|
1503
|
+
"description": "Set the status of control group validation",
|
|
1487
1504
|
"type": "neutral | error | success"
|
|
1488
1505
|
},
|
|
1489
1506
|
{
|
|
@@ -1502,6 +1519,7 @@
|
|
|
1502
1519
|
},
|
|
1503
1520
|
{
|
|
1504
1521
|
"name": "controlWidth",
|
|
1522
|
+
"description": "Adjust the control from the default full width or the browser default width",
|
|
1505
1523
|
"type": "stretch | shrink"
|
|
1506
1524
|
},
|
|
1507
1525
|
{
|
|
@@ -1537,10 +1555,12 @@
|
|
|
1537
1555
|
},
|
|
1538
1556
|
{
|
|
1539
1557
|
"name": "status",
|
|
1558
|
+
"description": "Set the status of form control validation",
|
|
1540
1559
|
"type": "neutral | error | success"
|
|
1541
1560
|
},
|
|
1542
1561
|
{
|
|
1543
1562
|
"name": "controlWidth",
|
|
1563
|
+
"description": "Adjust the control from the default full width or the browser default width",
|
|
1544
1564
|
"type": "stretch | shrink"
|
|
1545
1565
|
},
|
|
1546
1566
|
{
|
|
@@ -1555,6 +1575,7 @@
|
|
|
1555
1575
|
},
|
|
1556
1576
|
{
|
|
1557
1577
|
"name": "layout",
|
|
1578
|
+
"description": "Set to adjust the default control layout. When `responsive` is true this will be the largest size to scale to.",
|
|
1558
1579
|
"type": "vertical | horizontal | compact"
|
|
1559
1580
|
},
|
|
1560
1581
|
{
|
|
@@ -1610,6 +1631,7 @@
|
|
|
1610
1631
|
"properties": [
|
|
1611
1632
|
{
|
|
1612
1633
|
"name": "status",
|
|
1634
|
+
"description": "Set the status of form control message validation",
|
|
1613
1635
|
"type": "neutral | error | success"
|
|
1614
1636
|
},
|
|
1615
1637
|
{
|
|
@@ -1649,10 +1671,12 @@
|
|
|
1649
1671
|
"properties": [
|
|
1650
1672
|
{
|
|
1651
1673
|
"name": "status",
|
|
1674
|
+
"description": "Set the status of form control validation",
|
|
1652
1675
|
"type": "neutral | error | success"
|
|
1653
1676
|
},
|
|
1654
1677
|
{
|
|
1655
1678
|
"name": "controlWidth",
|
|
1679
|
+
"description": "Adjust the control from the default full width or the browser default width",
|
|
1656
1680
|
"type": "stretch | shrink"
|
|
1657
1681
|
},
|
|
1658
1682
|
{
|
|
@@ -1667,6 +1691,7 @@
|
|
|
1667
1691
|
},
|
|
1668
1692
|
{
|
|
1669
1693
|
"name": "layout",
|
|
1694
|
+
"description": "Set to adjust the default control layout. When `responsive` is true this will be the largest size to scale to.",
|
|
1670
1695
|
"type": "vertical | horizontal | compact"
|
|
1671
1696
|
},
|
|
1672
1697
|
{
|
|
@@ -1696,10 +1721,12 @@
|
|
|
1696
1721
|
"properties": [
|
|
1697
1722
|
{
|
|
1698
1723
|
"name": "layout",
|
|
1724
|
+
"description": "Set to adjust the default control layout for all controls within form group.\nWhen `responsive` is true this will be the largest size to scale to.",
|
|
1699
1725
|
"type": "horizontal | horizontal -inline | vertical | vertical-inline | compact"
|
|
1700
1726
|
},
|
|
1701
1727
|
{
|
|
1702
1728
|
"name": "controlWidth",
|
|
1729
|
+
"description": "Adjust the control from the default full width or the browser default width",
|
|
1703
1730
|
"type": "stretch | shrink"
|
|
1704
1731
|
},
|
|
1705
1732
|
{
|
|
@@ -1732,10 +1759,12 @@
|
|
|
1732
1759
|
"properties": [
|
|
1733
1760
|
{
|
|
1734
1761
|
"name": "status",
|
|
1762
|
+
"description": "Set the status of form control validation",
|
|
1735
1763
|
"type": "neutral | error | success"
|
|
1736
1764
|
},
|
|
1737
1765
|
{
|
|
1738
1766
|
"name": "controlWidth",
|
|
1767
|
+
"description": "Adjust the control from the default full width or the browser default width",
|
|
1739
1768
|
"type": "stretch | shrink"
|
|
1740
1769
|
},
|
|
1741
1770
|
{
|
|
@@ -1750,6 +1779,7 @@
|
|
|
1750
1779
|
},
|
|
1751
1780
|
{
|
|
1752
1781
|
"name": "layout",
|
|
1782
|
+
"description": "Set to adjust the default control layout. When `responsive` is true this will be the largest size to scale to.",
|
|
1753
1783
|
"type": "vertical | horizontal | compact"
|
|
1754
1784
|
},
|
|
1755
1785
|
{
|
|
@@ -1805,6 +1835,7 @@
|
|
|
1805
1835
|
"properties": [
|
|
1806
1836
|
{
|
|
1807
1837
|
"name": "status",
|
|
1838
|
+
"description": "Set the status of control group validation",
|
|
1808
1839
|
"type": "neutral | error | success"
|
|
1809
1840
|
},
|
|
1810
1841
|
{
|
|
@@ -1823,6 +1854,7 @@
|
|
|
1823
1854
|
},
|
|
1824
1855
|
{
|
|
1825
1856
|
"name": "controlWidth",
|
|
1857
|
+
"description": "Adjust the control from the default full width or the browser default width",
|
|
1826
1858
|
"type": "stretch | shrink"
|
|
1827
1859
|
},
|
|
1828
1860
|
{
|
|
@@ -1858,10 +1890,12 @@
|
|
|
1858
1890
|
},
|
|
1859
1891
|
{
|
|
1860
1892
|
"name": "status",
|
|
1893
|
+
"description": "Set the status of form control validation",
|
|
1861
1894
|
"type": "neutral | error | success"
|
|
1862
1895
|
},
|
|
1863
1896
|
{
|
|
1864
1897
|
"name": "controlWidth",
|
|
1898
|
+
"description": "Adjust the control from the default full width or the browser default width",
|
|
1865
1899
|
"type": "stretch | shrink"
|
|
1866
1900
|
},
|
|
1867
1901
|
{
|
|
@@ -1876,6 +1910,7 @@
|
|
|
1876
1910
|
},
|
|
1877
1911
|
{
|
|
1878
1912
|
"name": "layout",
|
|
1913
|
+
"description": "Set to adjust the default control layout. When `responsive` is true this will be the largest size to scale to.",
|
|
1879
1914
|
"type": "vertical | horizontal | compact"
|
|
1880
1915
|
},
|
|
1881
1916
|
{
|
|
@@ -1931,6 +1966,7 @@
|
|
|
1931
1966
|
"properties": [
|
|
1932
1967
|
{
|
|
1933
1968
|
"name": "status",
|
|
1969
|
+
"description": "Set the status of form control message validation",
|
|
1934
1970
|
"type": "neutral | error | success"
|
|
1935
1971
|
},
|
|
1936
1972
|
{
|
|
@@ -1970,10 +2006,12 @@
|
|
|
1970
2006
|
"properties": [
|
|
1971
2007
|
{
|
|
1972
2008
|
"name": "layout",
|
|
2009
|
+
"description": "Set to adjust the default control layout for all controls within form group.\nWhen `responsive` is true this will be the largest size to scale to.",
|
|
1973
2010
|
"type": "horizontal | horizontal -inline | vertical | vertical-inline | compact"
|
|
1974
2011
|
},
|
|
1975
2012
|
{
|
|
1976
2013
|
"name": "controlWidth",
|
|
2014
|
+
"description": "Adjust the control from the default full width or the browser default width",
|
|
1977
2015
|
"type": "stretch | shrink"
|
|
1978
2016
|
},
|
|
1979
2017
|
{
|
|
@@ -2011,14 +2049,17 @@
|
|
|
2011
2049
|
},
|
|
2012
2050
|
{
|
|
2013
2051
|
"name": "size",
|
|
2052
|
+
"description": "Apply numerical width-height or a t-shirt-sized CSS classname",
|
|
2014
2053
|
"type": "string | xs | sm | md | lg | xl | xxl"
|
|
2015
2054
|
},
|
|
2016
2055
|
{
|
|
2017
2056
|
"name": "direction",
|
|
2057
|
+
"description": "Takes a directional value that rotates the icon 90° with the\ntop of the icon pointing in the specified direction.",
|
|
2018
2058
|
"type": "up | down | left | right"
|
|
2019
2059
|
},
|
|
2020
2060
|
{
|
|
2021
2061
|
"name": "flip",
|
|
2062
|
+
"description": "Takes an orientation value that reverses the orientation of the icon vertically or horizontally'",
|
|
2022
2063
|
"type": "horizontal | vertical"
|
|
2023
2064
|
},
|
|
2024
2065
|
{
|
|
@@ -2028,6 +2069,7 @@
|
|
|
2028
2069
|
},
|
|
2029
2070
|
{
|
|
2030
2071
|
"name": "status",
|
|
2072
|
+
"description": "Changes color of icon fills and outlines",
|
|
2031
2073
|
"type": "info | success | warning | danger"
|
|
2032
2074
|
},
|
|
2033
2075
|
{
|
|
@@ -2037,6 +2079,7 @@
|
|
|
2037
2079
|
},
|
|
2038
2080
|
{
|
|
2039
2081
|
"name": "badge",
|
|
2082
|
+
"description": "Sets the color of the icon decoration that appears in the top-right corner\nof the glyph. The icon decoration is derived from the following predefined types.\n\nThe color of the badge can change according to the following\nlist of statuses:\n'info' -> blue dot\n'success' -> green dot\n'warning' -> yellow dot\n'danger' -> red dot\n'inherit' -> dot inherits color of full icon glyph\n'warning-triangle' -> yellow triangle\n'inherit-triangle' -> triangle inherits color of full icon glyph\nunrecognized value, empty string, or true -> red dot\n\nBy default, the badge displays a 'danger' dot (a red-colored dot).\n\nSetting the badge to 'false' or removing the attribute will remove the default icon badge.",
|
|
2040
2083
|
"type": "info | success | warning | danger | inherit | warning -triangle | inherit-triangle"
|
|
2041
2084
|
}
|
|
2042
2085
|
],
|
|
@@ -2061,14 +2104,17 @@
|
|
|
2061
2104
|
},
|
|
2062
2105
|
{
|
|
2063
2106
|
"name": "size",
|
|
2107
|
+
"description": "Apply numerical width-height or a t-shirt-sized CSS classname",
|
|
2064
2108
|
"type": "string | xs | sm | md | lg | xl | xxl"
|
|
2065
2109
|
},
|
|
2066
2110
|
{
|
|
2067
2111
|
"name": "direction",
|
|
2112
|
+
"description": "Takes a directional value that rotates the icon 90° with the\ntop of the icon pointing in the specified direction.",
|
|
2068
2113
|
"type": "up | down | left | right"
|
|
2069
2114
|
},
|
|
2070
2115
|
{
|
|
2071
2116
|
"name": "flip",
|
|
2117
|
+
"description": "Takes an orientation value that reverses the orientation of the icon vertically or horizontally'",
|
|
2072
2118
|
"type": "horizontal | vertical"
|
|
2073
2119
|
},
|
|
2074
2120
|
{
|
|
@@ -2078,6 +2124,7 @@
|
|
|
2078
2124
|
},
|
|
2079
2125
|
{
|
|
2080
2126
|
"name": "status",
|
|
2127
|
+
"description": "Changes color of icon fills and outlines",
|
|
2081
2128
|
"type": "info | success | warning | danger"
|
|
2082
2129
|
},
|
|
2083
2130
|
{
|
|
@@ -2087,6 +2134,7 @@
|
|
|
2087
2134
|
},
|
|
2088
2135
|
{
|
|
2089
2136
|
"name": "badge",
|
|
2137
|
+
"description": "Sets the color of the icon decoration that appears in the top-right corner\nof the glyph. The icon decoration is derived from the following predefined types.\n\nThe color of the badge can change according to the following\nlist of statuses:\n'info' -> blue dot\n'success' -> green dot\n'warning' -> yellow dot\n'danger' -> red dot\n'inherit' -> dot inherits color of full icon glyph\n'warning-triangle' -> yellow triangle\n'inherit-triangle' -> triangle inherits color of full icon glyph\nunrecognized value, empty string, or true -> red dot\n\nBy default, the badge displays a 'danger' dot (a red-colored dot).\n\nSetting the badge to 'false' or removing the attribute will remove the default icon badge.",
|
|
2090
2138
|
"type": "info | success | warning | danger | inherit | warning -triangle | inherit-triangle"
|
|
2091
2139
|
}
|
|
2092
2140
|
],
|
|
@@ -3462,6 +3510,7 @@
|
|
|
3462
3510
|
"properties": [
|
|
3463
3511
|
{
|
|
3464
3512
|
"name": "status",
|
|
3513
|
+
"description": "Sets the color of the badge",
|
|
3465
3514
|
"type": "neutral | info | success | warning | danger"
|
|
3466
3515
|
},
|
|
3467
3516
|
{
|
|
@@ -3481,6 +3530,7 @@
|
|
|
3481
3530
|
},
|
|
3482
3531
|
{
|
|
3483
3532
|
"name": "size",
|
|
3533
|
+
"description": "Apply numerical width-height or a t-shirt-sized CSS classname",
|
|
3484
3534
|
"type": "string | sm | md | lg | xl | xxl"
|
|
3485
3535
|
}
|
|
3486
3536
|
],
|
|
@@ -3506,6 +3556,7 @@
|
|
|
3506
3556
|
"properties": [
|
|
3507
3557
|
{
|
|
3508
3558
|
"name": "status",
|
|
3559
|
+
"description": "Sets the color of the badge",
|
|
3509
3560
|
"type": "neutral | info | success | warning | danger"
|
|
3510
3561
|
},
|
|
3511
3562
|
{
|
|
@@ -3525,6 +3576,7 @@
|
|
|
3525
3576
|
},
|
|
3526
3577
|
{
|
|
3527
3578
|
"name": "size",
|
|
3579
|
+
"description": "Apply numerical width-height or a t-shirt-sized CSS classname",
|
|
3528
3580
|
"type": "string | sm | md | lg | xl | xxl"
|
|
3529
3581
|
}
|
|
3530
3582
|
],
|
|
@@ -3861,6 +3913,192 @@
|
|
|
3861
3913
|
}
|
|
3862
3914
|
]
|
|
3863
3915
|
},
|
|
3916
|
+
{
|
|
3917
|
+
"name": "cds-checkbox",
|
|
3918
|
+
"path": "./selection-panels/checkbox/checkbox-panel.element.d.ts",
|
|
3919
|
+
"description": "Checkbox\n\n```typescript\nimport '@cds/core/checkbox/register.js';\n```\n\n```html\n<cds-checkbox>\n <label>\n <div cds-layout=\"vertical align:center\">\n <span cds-text=\"section\">VM One</span>\n <cds-icon shape=\"vm\" badge=\"info\"></cds-icon>\n <p>Machines for orchestration and automation.</p>\n </div>\n </label>\n <input type=\"checkbox\" />\n <cds-control-message>message text</cds-control-message>\n</cds-checkbox>\n```",
|
|
3920
|
+
"properties": [
|
|
3921
|
+
{
|
|
3922
|
+
"name": "size",
|
|
3923
|
+
"type": "SelectionPanelSizes"
|
|
3924
|
+
}
|
|
3925
|
+
],
|
|
3926
|
+
"slots": [
|
|
3927
|
+
{
|
|
3928
|
+
"name": "",
|
|
3929
|
+
"description": "For projecting checkbox and it's complex label"
|
|
3930
|
+
}
|
|
3931
|
+
],
|
|
3932
|
+
"cssProperties": [
|
|
3933
|
+
{
|
|
3934
|
+
"name": "--width"
|
|
3935
|
+
},
|
|
3936
|
+
{
|
|
3937
|
+
"name": "--height"
|
|
3938
|
+
},
|
|
3939
|
+
{
|
|
3940
|
+
"name": "--border"
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
"name": "--box-shadow"
|
|
3944
|
+
}
|
|
3945
|
+
]
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
"name": "cds-checkbox-panel",
|
|
3949
|
+
"path": "./selection-panels/checkbox/register.d.ts",
|
|
3950
|
+
"description": "Checkbox\n\n```typescript\nimport '@cds/core/checkbox/register.js';\n```\n\n```html\n<cds-checkbox>\n <label>\n <div cds-layout=\"vertical align:center\">\n <span cds-text=\"section\">VM One</span>\n <cds-icon shape=\"vm\" badge=\"info\"></cds-icon>\n <p>Machines for orchestration and automation.</p>\n </div>\n </label>\n <input type=\"checkbox\" />\n <cds-control-message>message text</cds-control-message>\n</cds-checkbox>\n```",
|
|
3951
|
+
"properties": [
|
|
3952
|
+
{
|
|
3953
|
+
"name": "size",
|
|
3954
|
+
"type": "SelectionPanelSizes"
|
|
3955
|
+
}
|
|
3956
|
+
],
|
|
3957
|
+
"slots": [
|
|
3958
|
+
{
|
|
3959
|
+
"name": "",
|
|
3960
|
+
"description": "For projecting checkbox and it's complex label"
|
|
3961
|
+
}
|
|
3962
|
+
],
|
|
3963
|
+
"cssProperties": [
|
|
3964
|
+
{
|
|
3965
|
+
"name": "--width"
|
|
3966
|
+
},
|
|
3967
|
+
{
|
|
3968
|
+
"name": "--height"
|
|
3969
|
+
},
|
|
3970
|
+
{
|
|
3971
|
+
"name": "--border"
|
|
3972
|
+
},
|
|
3973
|
+
{
|
|
3974
|
+
"name": "--box-shadow"
|
|
3975
|
+
}
|
|
3976
|
+
]
|
|
3977
|
+
},
|
|
3978
|
+
{
|
|
3979
|
+
"name": "cds-radio",
|
|
3980
|
+
"path": "./selection-panels/radio/radio-panel.element.d.ts",
|
|
3981
|
+
"description": "Checkbox\n\n```typescript\nimport '@cds/core/checkbox/register.js';\n```\n\n```html\n<cds-radio>\n <label>\n <div cds-layout=\"vertical align:center\">\n <span cds-text=\"section\">VM One</span>\n <cds-icon shape=\"vm\" badge=\"info\"></cds-icon>\n <p>Machines for orchestration and automation.</p>\n </div>\n </label>\n <input type=\"radio\" />\n <cds-control-message>message text</cds-control-message>\n</cds-radio>\n```",
|
|
3982
|
+
"properties": [
|
|
3983
|
+
{
|
|
3984
|
+
"name": "size",
|
|
3985
|
+
"type": "SelectionPanelSizes"
|
|
3986
|
+
}
|
|
3987
|
+
],
|
|
3988
|
+
"slots": [
|
|
3989
|
+
{
|
|
3990
|
+
"name": "",
|
|
3991
|
+
"description": "For projecting checkbox and it's complex label"
|
|
3992
|
+
}
|
|
3993
|
+
],
|
|
3994
|
+
"cssProperties": [
|
|
3995
|
+
{
|
|
3996
|
+
"name": "--width"
|
|
3997
|
+
},
|
|
3998
|
+
{
|
|
3999
|
+
"name": "--height"
|
|
4000
|
+
},
|
|
4001
|
+
{
|
|
4002
|
+
"name": "--border"
|
|
4003
|
+
},
|
|
4004
|
+
{
|
|
4005
|
+
"name": "--box-shadow"
|
|
4006
|
+
}
|
|
4007
|
+
]
|
|
4008
|
+
},
|
|
4009
|
+
{
|
|
4010
|
+
"name": "cds-radio-panel",
|
|
4011
|
+
"path": "./selection-panels/radio/register.d.ts",
|
|
4012
|
+
"description": "Checkbox\n\n```typescript\nimport '@cds/core/checkbox/register.js';\n```\n\n```html\n<cds-radio>\n <label>\n <div cds-layout=\"vertical align:center\">\n <span cds-text=\"section\">VM One</span>\n <cds-icon shape=\"vm\" badge=\"info\"></cds-icon>\n <p>Machines for orchestration and automation.</p>\n </div>\n </label>\n <input type=\"radio\" />\n <cds-control-message>message text</cds-control-message>\n</cds-radio>\n```",
|
|
4013
|
+
"properties": [
|
|
4014
|
+
{
|
|
4015
|
+
"name": "size",
|
|
4016
|
+
"type": "SelectionPanelSizes"
|
|
4017
|
+
}
|
|
4018
|
+
],
|
|
4019
|
+
"slots": [
|
|
4020
|
+
{
|
|
4021
|
+
"name": "",
|
|
4022
|
+
"description": "For projecting checkbox and it's complex label"
|
|
4023
|
+
}
|
|
4024
|
+
],
|
|
4025
|
+
"cssProperties": [
|
|
4026
|
+
{
|
|
4027
|
+
"name": "--width"
|
|
4028
|
+
},
|
|
4029
|
+
{
|
|
4030
|
+
"name": "--height"
|
|
4031
|
+
},
|
|
4032
|
+
{
|
|
4033
|
+
"name": "--border"
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
"name": "--box-shadow"
|
|
4037
|
+
}
|
|
4038
|
+
]
|
|
4039
|
+
},
|
|
4040
|
+
{
|
|
4041
|
+
"name": "cds-checkbox-panel",
|
|
4042
|
+
"path": "./selection-panels/register.d.ts",
|
|
4043
|
+
"description": "Checkbox\n\n```typescript\nimport '@cds/core/checkbox/register.js';\n```\n\n```html\n<cds-checkbox>\n <label>\n <div cds-layout=\"vertical align:center\">\n <span cds-text=\"section\">VM One</span>\n <cds-icon shape=\"vm\" badge=\"info\"></cds-icon>\n <p>Machines for orchestration and automation.</p>\n </div>\n </label>\n <input type=\"checkbox\" />\n <cds-control-message>message text</cds-control-message>\n</cds-checkbox>\n```",
|
|
4044
|
+
"properties": [
|
|
4045
|
+
{
|
|
4046
|
+
"name": "size",
|
|
4047
|
+
"type": "SelectionPanelSizes"
|
|
4048
|
+
}
|
|
4049
|
+
],
|
|
4050
|
+
"slots": [
|
|
4051
|
+
{
|
|
4052
|
+
"name": "",
|
|
4053
|
+
"description": "For projecting checkbox and it's complex label"
|
|
4054
|
+
}
|
|
4055
|
+
],
|
|
4056
|
+
"cssProperties": [
|
|
4057
|
+
{
|
|
4058
|
+
"name": "--width"
|
|
4059
|
+
},
|
|
4060
|
+
{
|
|
4061
|
+
"name": "--height"
|
|
4062
|
+
},
|
|
4063
|
+
{
|
|
4064
|
+
"name": "--border"
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
"name": "--box-shadow"
|
|
4068
|
+
}
|
|
4069
|
+
]
|
|
4070
|
+
},
|
|
4071
|
+
{
|
|
4072
|
+
"name": "cds-radio-panel",
|
|
4073
|
+
"path": "./selection-panels/register.d.ts",
|
|
4074
|
+
"description": "Checkbox\n\n```typescript\nimport '@cds/core/checkbox/register.js';\n```\n\n```html\n<cds-radio>\n <label>\n <div cds-layout=\"vertical align:center\">\n <span cds-text=\"section\">VM One</span>\n <cds-icon shape=\"vm\" badge=\"info\"></cds-icon>\n <p>Machines for orchestration and automation.</p>\n </div>\n </label>\n <input type=\"radio\" />\n <cds-control-message>message text</cds-control-message>\n</cds-radio>\n```",
|
|
4075
|
+
"properties": [
|
|
4076
|
+
{
|
|
4077
|
+
"name": "size",
|
|
4078
|
+
"type": "SelectionPanelSizes"
|
|
4079
|
+
}
|
|
4080
|
+
],
|
|
4081
|
+
"slots": [
|
|
4082
|
+
{
|
|
4083
|
+
"name": "",
|
|
4084
|
+
"description": "For projecting checkbox and it's complex label"
|
|
4085
|
+
}
|
|
4086
|
+
],
|
|
4087
|
+
"cssProperties": [
|
|
4088
|
+
{
|
|
4089
|
+
"name": "--width"
|
|
4090
|
+
},
|
|
4091
|
+
{
|
|
4092
|
+
"name": "--height"
|
|
4093
|
+
},
|
|
4094
|
+
{
|
|
4095
|
+
"name": "--border"
|
|
4096
|
+
},
|
|
4097
|
+
{
|
|
4098
|
+
"name": "--box-shadow"
|
|
4099
|
+
}
|
|
4100
|
+
]
|
|
4101
|
+
},
|
|
3864
4102
|
{
|
|
3865
4103
|
"name": "cds-tag",
|
|
3866
4104
|
"path": "./tag/register.d.ts",
|
|
@@ -3868,6 +4106,7 @@
|
|
|
3868
4106
|
"properties": [
|
|
3869
4107
|
{
|
|
3870
4108
|
"name": "status",
|
|
4109
|
+
"description": "Sets the color of the tag (and badge if present) from the following predefined list of statuses:",
|
|
3871
4110
|
"type": "neutral | info | success | warning | danger"
|
|
3872
4111
|
},
|
|
3873
4112
|
{
|
|
@@ -3921,6 +4160,7 @@
|
|
|
3921
4160
|
"properties": [
|
|
3922
4161
|
{
|
|
3923
4162
|
"name": "status",
|
|
4163
|
+
"description": "Sets the color of the tag (and badge if present) from the following predefined list of statuses:",
|
|
3924
4164
|
"type": "neutral | info | success | warning | danger"
|
|
3925
4165
|
},
|
|
3926
4166
|
{
|
|
@@ -29,13 +29,13 @@ export declare const enum ControlLabelLayout {
|
|
|
29
29
|
*/
|
|
30
30
|
export declare class CdsControl extends LitElement {
|
|
31
31
|
/**
|
|
32
|
-
* @type {neutral | error | success}
|
|
33
32
|
* Set the status of form control validation
|
|
33
|
+
* @type {neutral | error | success}
|
|
34
34
|
*/
|
|
35
35
|
status: ControlStatus;
|
|
36
36
|
/**
|
|
37
|
-
* @type {stretch | shrink}
|
|
38
37
|
* Adjust the control from the default full width or the browser default width
|
|
38
|
+
* @type {stretch | shrink}
|
|
39
39
|
*/
|
|
40
40
|
controlWidth: ControlWidth;
|
|
41
41
|
/**
|
|
@@ -49,8 +49,8 @@ export declare class CdsControl extends LitElement {
|
|
|
49
49
|
*/
|
|
50
50
|
responsive: boolean;
|
|
51
51
|
/**
|
|
52
|
-
* @type {vertical | horizontal | compact}
|
|
53
52
|
* Set to adjust the default control layout. When `responsive` is true this will be the largest size to scale to.
|
|
53
|
+
* @type {vertical | horizontal | compact}
|
|
54
54
|
*/
|
|
55
55
|
get layout(): ControlLayout;
|
|
56
56
|
set layout(value: ControlLayout);
|
|
@@ -31,8 +31,8 @@ import { CdsInternalControlLabel } from '../control-label/control-label.element.
|
|
|
31
31
|
*/
|
|
32
32
|
export declare class CdsInternalControlGroup extends LitElement {
|
|
33
33
|
/**
|
|
34
|
-
* @type {neutral | error | success}
|
|
35
34
|
* Set the status of control group validation
|
|
35
|
+
* @type {neutral | error | success}
|
|
36
36
|
*/
|
|
37
37
|
status: ControlStatus;
|
|
38
38
|
/** @type {horizontal | horizontal-inline | vertical | vertical-inline | compact} */
|
|
@@ -42,8 +42,8 @@ export declare class CdsInternalControlGroup extends LitElement {
|
|
|
42
42
|
/** Disable all controls within a control group or omit and disable controls individually */
|
|
43
43
|
disabled: boolean;
|
|
44
44
|
/**
|
|
45
|
-
* @type {stretch | shrink}
|
|
46
45
|
* Adjust the control from the default full width or the browser default width
|
|
46
|
+
* @type {stretch | shrink}
|
|
47
47
|
*/
|
|
48
48
|
controlWidth: ControlWidth;
|
|
49
49
|
/**
|
|
@@ -29,6 +29,7 @@ export declare class CdsInternalControlInline extends CdsControl {
|
|
|
29
29
|
protected checkedChange: EventEmitter<boolean>;
|
|
30
30
|
protected supportsPrefixSuffixActions: boolean;
|
|
31
31
|
static get styles(): import("lit").CSSResultGroup[];
|
|
32
|
+
protected get internalLabelTemplate(): import("lit-html").TemplateResult<1>;
|
|
32
33
|
render(): import("lit-html").TemplateResult<1>;
|
|
33
34
|
firstUpdated(props: Map<string, any>): void;
|
|
34
35
|
updated(props: Map<string, any>): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__decorate as e}from"tslib";import{html as t}from"lit";import{getElementUpdates as i,property as s,state as
|
|
1
|
+
import{__decorate as e}from"tslib";import{html as t}from"lit";import{getElementUpdates as i,property as s,state as n,event as o}from"@cds/core/internal";import r from"./control-inline.element.scss.js";import{CdsControl as l}from"../control/control.element.js";import{getStatusIcon as a}from"../utils/index.js";class c extends l{constructor(){super(...arguments),this.controlAlign="left",this.checked=!1,this.indeterminate=!1,this.supportsPrefixSuffixActions=!1}static get styles(){return[...super.styles,r]}get internalLabelTemplate(){return t`<cds-internal-control-label action="secondary" .disabled="${this.disabled}" cds-layout="align:vertical-center"><slot name="label" @slotchange="${()=>this.associateInputAndLabel()}"></slot></cds-internal-control-label>`}render(){var e,i;return t`<div class="private-host" cds-layout="${this.isControlGroup?"horizontal align:vertical-center":"vertical"} gap:sm"><div cds-layout="horizontal gap:sm wrap:none align:vertical-center ${"right"===this.controlAlign?"order:reverse":""}"><div role="presentation" class="input" @click="${this.selectInput}"></div><div role="presentation" focusable @click="${this.selectInput}"></div>${this.internalLabelTemplate}</div>${(null===(e=this.messages)||void 0===e?void 0:e.length)?t`<div cds-layout="horizontal wrap:none ${(null===(i=this.messages)||void 0===i?void 0:i.length)?"gap:sm":""}">${a(this.status)}<div cds-layout="align:vertical-center" class="messages"><slot name="message"></slot></div></div>`:""}</div><div cds-layout="display:screen-reader-only"><slot name="input"></slot></div>`}firstUpdated(e){super.firstUpdated(e),this.inputControl.addEventListener("change",(()=>this.checked=this.inputControl.checked)),this.observers.push(i(this.inputControl,"checked",(e=>this.checked=""===e||e)),i(this.inputControl,"indeterminate",(e=>this.indeterminate=""===e||e)))}updated(e){super.updated(e),e.has("indeterminate")&&e.get("indeterminate")!==this.indeterminate&&this.indeterminate&&(this.checked=!1),e.has("checked")&&e.get("checked")!==this.checked&&this.checked&&(this.indeterminate=!1,this.checkedChange.emit(this.checked,{bubbles:!this.isControlGroup}))}selectInput(e){this.inputControl.click(),e.preventDefault()}}e([s({type:String})],c.prototype,"controlAlign",void 0),e([n()],c.prototype,"isControlGroup",void 0),e([n({type:Boolean,reflect:!0})],c.prototype,"checked",void 0),e([n({type:Boolean,reflect:!0})],c.prototype,"indeterminate",void 0),e([o()],c.prototype,"checkedChange",void 0);export{c as CdsInternalControlInline};
|
|
2
2
|
//# sourceMappingURL=control-inline.element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-inline.element.js","sources":["../../../../src/forms/control-inline/control-inline.element.ts"],"sourcesContent":null,"names":["CdsInternalControlInline","CdsControl","[object Object]","super","arguments","this","controlAlign","checked","indeterminate","supportsPrefixSuffixActions","styles","
|
|
1
|
+
{"version":3,"file":"control-inline.element.js","sources":["../../../../src/forms/control-inline/control-inline.element.ts"],"sourcesContent":null,"names":["CdsInternalControlInline","CdsControl","[object Object]","super","arguments","this","controlAlign","checked","indeterminate","supportsPrefixSuffixActions","styles","internalLabelTemplate","html","disabled","associateInputAndLabel","_a","_b","isControlGroup","selectInput","messages","length","getStatusIcon","status","props","firstUpdated","inputControl","addEventListener","observers","push","getElementUpdates","value","updated","has","get","checkedChange","emit","bubbles","e","click","preventDefault","__decorate","property","type","String","prototype","state","Boolean","reflect","event"],"mappings":"sTA2BO,MAAMA,UAAiCC,EAC1CC,cACIC,SAASC,WAETC,KAAKC,aAAe,OAEpBD,KAAKE,SAAU,EAEfF,KAAKG,eAAgB,EACrBH,KAAKI,6BAA8B,EAEvCC,oBACI,MAAO,IAAIP,MAAMO,OAAQA,GAE7BC,4BACI,OAAOC,CAAK,6DAC8CP,KAAKQ,gFAC9B,IAAMR,KAAKS,iEAIhDZ,SACI,IAAIa,EAAIC,EACR,OAAOJ,CAAK,yCAGEP,KAAKY,eAAiB,mCAAqC,yFAGe,UAAtBZ,KAAKC,aACjE,gBACA,sDAE4CD,KAAKa,iEACTb,KAAKa,sBAC/Cb,KAAKM,+BAEmB,QAAxBI,EAAKV,KAAKc,gBAA6B,IAAPJ,OAAgB,EAASA,EAAGK,QAC1DR,CAAK,0CAAoE,QAAxBI,EAAKX,KAAKc,gBAA6B,IAAPH,OAAgB,EAASA,EAAGI,QAAU,SAAW,OAChIC,EAAchB,KAAKiB,2GAKrB,wFAOVpB,aAAaqB,GACTpB,MAAMqB,aAAaD,GACnBlB,KAAKoB,aAAaC,iBAAiB,UAAU,IAAOrB,KAAKE,QAAUF,KAAKoB,aAAalB,UACrFF,KAAKsB,UAAUC,KAAKC,EAAkBxB,KAAKoB,aAAc,WAAYK,GAAWzB,KAAKE,QAAoB,KAAVuB,GAAsBA,IAASD,EAAkBxB,KAAKoB,aAAc,iBAAkBK,GAAWzB,KAAKG,cAA0B,KAAVsB,GAAsBA,KAE/O5B,QAAQqB,GACJpB,MAAM4B,QAAQR,GACVA,EAAMS,IAAI,kBAAoBT,EAAMU,IAAI,mBAAqB5B,KAAKG,eAAiBH,KAAKG,gBACxFH,KAAKE,SAAU,GAEfgB,EAAMS,IAAI,YAAcT,EAAMU,IAAI,aAAe5B,KAAKE,SAAWF,KAAKE,UACtEF,KAAKG,eAAgB,EACrBH,KAAK6B,cAAcC,KAAK9B,KAAKE,QAAS,CAAE6B,SAAU/B,KAAKY,kBAG/Df,YAAYmC,GACRhC,KAAKoB,aAAaa,QAClBD,EAAEE,kBAGVC,EAAW,CACPC,EAAS,CAAEC,KAAMC,UAClB3C,EAAyB4C,UAAW,oBAAgB,GACvDJ,EAAW,CACPK,KACD7C,EAAyB4C,UAAW,sBAAkB,GACzDJ,EAAW,CACPK,EAAM,CAAEH,KAAMI,QAASC,SAAS,KACjC/C,EAAyB4C,UAAW,eAAW,GAClDJ,EAAW,CACPK,EAAM,CAAEH,KAAMI,QAASC,SAAS,KACjC/C,EAAyB4C,UAAW,qBAAiB,GACxDJ,EAAW,CACPQ,KACDhD,EAAyB4C,UAAW,qBAAiB"}
|
|
@@ -26,8 +26,8 @@ import { ValidityStateKey } from '../utils/validate.js';
|
|
|
26
26
|
*/
|
|
27
27
|
export declare class CdsControlMessage extends LitElement {
|
|
28
28
|
/**
|
|
29
|
-
* @type {neutral | error | success}
|
|
30
29
|
* Set the status of form control message validation
|
|
30
|
+
* @type {neutral | error | success}
|
|
31
31
|
*/
|
|
32
32
|
status: ControlStatus;
|
|
33
33
|
/**
|