carbon-components-angular 5.14.8 → 5.14.10
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/FileComponent.html +3 -3
- package/docs/documentation/components/FileUploader.html +3 -3
- package/docs/documentation/components/Panel.html +2 -7
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/CodeSnippetModule/dependencies.svg +4 -4
- package/docs/documentation/modules/CodeSnippetModule.html +4 -4
- package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +38 -42
- package/docs/documentation/modules/DatePickerInputModule.html +38 -42
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/FileUploaderModule.html +4 -4
- package/docs/documentation/modules/NumberModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NumberModule.html +4 -4
- package/docs/documentation/modules/PanelModule/dependencies.svg +36 -36
- package/docs/documentation/modules/PanelModule.html +36 -36
- package/docs/documentation/modules/RadioModule/dependencies.svg +49 -49
- package/docs/documentation/modules/RadioModule.html +49 -49
- package/docs/documentation/modules/SelectModule/dependencies.svg +43 -43
- package/docs/documentation/modules/SelectModule.html +43 -43
- package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SliderModule.html +4 -4
- package/docs/documentation/modules/TableModule/dependencies.svg +216 -216
- package/docs/documentation/modules/TableModule.html +216 -216
- package/docs/documentation/modules/TabsModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TabsModule.html +4 -4
- package/docs/documentation/modules/TagModule/dependencies.svg +28 -28
- package/docs/documentation/modules/TagModule.html +28 -28
- package/docs/documentation/modules/ThemeModule/dependencies.svg +15 -15
- package/docs/documentation/modules/ThemeModule.html +15 -15
- package/docs/documentation/modules/TilesModule/dependencies.svg +86 -86
- package/docs/documentation/modules/TilesModule.html +86 -86
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +38 -42
- package/docs/documentation/modules/TimePickerModule.html +38 -42
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TimePickerSelectModule.html +4 -4
- package/docs/documentation/modules/ToggleModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ToggleModule.html +4 -4
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ToggletipModule.html +4 -4
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation.json +13 -14
- package/docs/storybook/{3348.938f9a5b.iframe.bundle.js → 3348.08aa935e.iframe.bundle.js} +1 -1
- package/docs/storybook/file-uploader-file-uploader-stories.47d6a66e.iframe.bundle.js +1 -0
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/{main.7ca5dc3c.iframe.bundle.js → main.4253a447.iframe.bundle.js} +1 -1
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.554114ff.iframe.bundle.js → runtime~main.5beb6b67.iframe.bundle.js} +1 -1
- package/esm2020/file-uploader/file-uploader.component.mjs +3 -3
- package/esm2020/file-uploader/file.component.mjs +3 -3
- package/esm2020/ui-shell/panel/panel.component.mjs +1 -2
- package/fesm2015/carbon-components-angular-file-uploader.mjs +4 -4
- package/fesm2015/carbon-components-angular-file-uploader.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-ui-shell.mjs +0 -1
- package/fesm2015/carbon-components-angular-ui-shell.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-file-uploader.mjs +4 -4
- package/fesm2020/carbon-components-angular-file-uploader.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-ui-shell.mjs +0 -1
- package/fesm2020/carbon-components-angular-ui-shell.mjs.map +1 -1
- package/package.json +1 -1
- package/ui-shell/panel/panel.component.d.ts +1 -1
- package/docs/storybook/file-uploader-file-uploader-stories.ac7b5f6b.iframe.bundle.js +0 -1
|
@@ -46,71 +46,67 @@
|
|
|
46
46
|
<!-- Generated by graphviz version 2.47.0 (20210316.0004)
|
|
47
47
|
-->
|
|
48
48
|
<!-- Title: dependencies Pages: 1 -->
|
|
49
|
-
<svg width="
|
|
50
|
-
viewBox="0.00 0.00
|
|
49
|
+
<svg width="870pt" height="396pt"
|
|
50
|
+
viewBox="0.00 0.00 870.00 395.59" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
51
51
|
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 391.59)">
|
|
52
52
|
<title>dependencies</title>
|
|
53
|
-
<polygon fill="white" stroke="transparent" points="-4,4 -4,-391.59
|
|
54
|
-
<text text-anchor="start" x="
|
|
55
|
-
<polygon fill="#ffffb3" stroke="transparent" points="
|
|
56
|
-
<text text-anchor="start" x="
|
|
57
|
-
<polygon fill="#8dd3c7" stroke="transparent" points="
|
|
58
|
-
<text text-anchor="start" x="
|
|
59
|
-
<polygon fill="#80b1d3" stroke="transparent" points="
|
|
60
|
-
<text text-anchor="start" x="
|
|
61
|
-
<polygon fill="#fdb462" stroke="transparent" points="
|
|
62
|
-
<text text-anchor="start" x="
|
|
63
|
-
<polygon fill="#fb8072" stroke="transparent" points="
|
|
64
|
-
<text text-anchor="start" x="
|
|
53
|
+
<polygon fill="white" stroke="transparent" points="-4,4 -4,-391.59 866,-391.59 866,4 -4,4"/>
|
|
54
|
+
<text text-anchor="start" x="410.01" y="-42.4" font-family="Times-12" font-weight="bold" font-size="14.00">Legend</text>
|
|
55
|
+
<polygon fill="#ffffb3" stroke="transparent" points="197,-10 197,-30 217,-30 217,-10 197,-10"/>
|
|
56
|
+
<text text-anchor="start" x="220.63" y="-15.4" font-family="Times-12" font-size="14.00">  Declarations</text>
|
|
57
|
+
<polygon fill="#8dd3c7" stroke="transparent" points="310,-10 310,-30 330,-30 330,-10 310,-10"/>
|
|
58
|
+
<text text-anchor="start" x="333.73" y="-15.4" font-family="Times-12" font-size="14.00">  Module</text>
|
|
59
|
+
<polygon fill="#80b1d3" stroke="transparent" points="396,-10 396,-30 416,-30 416,-10 396,-10"/>
|
|
60
|
+
<text text-anchor="start" x="419.78" y="-15.4" font-family="Times-12" font-size="14.00">  Bootstrap</text>
|
|
61
|
+
<polygon fill="#fdb462" stroke="transparent" points="493,-10 493,-30 513,-30 513,-10 493,-10"/>
|
|
62
|
+
<text text-anchor="start" x="516.67" y="-15.4" font-family="Times-12" font-size="14.00">  Providers</text>
|
|
63
|
+
<polygon fill="#fb8072" stroke="transparent" points="589,-10 589,-30 609,-30 609,-10 589,-10"/>
|
|
64
|
+
<text text-anchor="start" x="612.73" y="-15.4" font-family="Times-12" font-size="14.00">  Exports</text>
|
|
65
65
|
<g id="clust1" class="cluster">
|
|
66
66
|
<title>cluster_TimePickerModule</title>
|
|
67
|
-
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-379.59
|
|
68
|
-
</g>
|
|
69
|
-
<g id="clust2" class="cluster">
|
|
70
|
-
<title>cluster_TimePickerModule_declarations</title>
|
|
71
|
-
<polygon fill="none" stroke="black" points="290,-189.59 290,-241.59 388,-241.59 388,-189.59 290,-189.59"/>
|
|
67
|
+
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-379.59 854,-379.59 854,-70 8,-70"/>
|
|
72
68
|
</g>
|
|
73
69
|
<g id="clust3" class="cluster">
|
|
74
70
|
<title>cluster_TimePickerModule_TimePicker_providers</title>
|
|
75
|
-
<polygon fill="none" stroke="black" points="
|
|
71
|
+
<polygon fill="none" stroke="black" points="200,-78 200,-241.59 846,-241.59 846,-78 200,-78"/>
|
|
76
72
|
</g>
|
|
77
73
|
<g id="clust5" class="cluster">
|
|
78
74
|
<title>cluster_TimePickerModule_exports</title>
|
|
79
|
-
<polygon fill="none" stroke="black" points="
|
|
75
|
+
<polygon fill="none" stroke="black" points="195,-319.59 195,-371.59 295,-371.59 295,-319.59 195,-319.59"/>
|
|
80
76
|
</g>
|
|
81
77
|
<g id="clust4" class="cluster">
|
|
82
78
|
<title>cluster_TimePickerModule_imports</title>
|
|
83
|
-
<polygon fill="none" stroke="black" points="
|
|
79
|
+
<polygon fill="none" stroke="black" points="16,-189.59 16,-241.59 192,-241.59 192,-189.59 16,-189.59"/>
|
|
84
80
|
</g>
|
|
85
81
|
<!-- TimePicker -->
|
|
86
82
|
<g id="node1" class="node">
|
|
87
83
|
<title>TimePicker</title>
|
|
88
|
-
<polygon fill="#ffffb3" stroke="black" points="
|
|
89
|
-
<text text-anchor="middle" x="
|
|
84
|
+
<polygon fill="#ffffb3" stroke="black" points="426.81,-233.59 345.19,-233.59 345.19,-197.59 426.81,-197.59 426.81,-233.59"/>
|
|
85
|
+
<text text-anchor="middle" x="386" y="-211.39" font-family="Times,serif" font-size="14.00">TimePicker</text>
|
|
90
86
|
</g>
|
|
91
87
|
<!-- TimePickerModule -->
|
|
92
88
|
<g id="node2" class="node">
|
|
93
89
|
<title>TimePickerModule</title>
|
|
94
|
-
<polygon fill="#8dd3c7" stroke="black" points="
|
|
95
|
-
<text text-anchor="middle" x="
|
|
90
|
+
<polygon fill="#8dd3c7" stroke="black" points="307.36,-298.59 304.36,-302.59 283.36,-302.59 280.36,-298.59 182.64,-298.59 182.64,-262.59 307.36,-262.59 307.36,-298.59"/>
|
|
91
|
+
<text text-anchor="middle" x="245" y="-276.39" font-family="Times,serif" font-size="14.00">TimePickerModule</text>
|
|
96
92
|
</g>
|
|
97
93
|
<!-- TimePicker->TimePickerModule -->
|
|
98
94
|
<g id="edge1" class="edge">
|
|
99
95
|
<title>TimePicker->TimePickerModule</title>
|
|
100
|
-
<path fill="none" stroke="black" d="
|
|
101
|
-
<polygon fill="black" stroke="black" points="
|
|
96
|
+
<path fill="none" stroke="black" d="M386,-233.7C386,-252.93 386,-280.59 386,-280.59 386,-280.59 317.67,-280.59 317.67,-280.59"/>
|
|
97
|
+
<polygon fill="black" stroke="black" points="317.67,-277.09 307.67,-280.59 317.67,-284.09 317.67,-277.09"/>
|
|
102
98
|
</g>
|
|
103
99
|
<!-- TimePicker -->
|
|
104
100
|
<g id="node5" class="node">
|
|
105
101
|
<title>TimePicker </title>
|
|
106
|
-
<polygon fill="#fb8072" stroke="black" points="
|
|
107
|
-
<text text-anchor="middle" x="
|
|
102
|
+
<polygon fill="#fb8072" stroke="black" points="287.31,-363.59 202.69,-363.59 202.69,-327.59 287.31,-327.59 287.31,-363.59"/>
|
|
103
|
+
<text text-anchor="middle" x="245" y="-341.39" font-family="Times,serif" font-size="14.00">TimePicker </text>
|
|
108
104
|
</g>
|
|
109
105
|
<!-- TimePickerModule->TimePicker -->
|
|
110
106
|
<g id="edge4" class="edge">
|
|
111
107
|
<title>TimePickerModule->TimePicker </title>
|
|
112
|
-
<path fill="none" stroke="black" stroke-dasharray="5,2" d="
|
|
113
|
-
<polygon fill="black" stroke="black" points="
|
|
108
|
+
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M245,-298.7C245,-298.7 245,-317.58 245,-317.58"/>
|
|
109
|
+
<polygon fill="black" stroke="black" points="241.5,-317.58 245,-327.58 248.5,-317.58 241.5,-317.58"/>
|
|
114
110
|
</g>
|
|
115
111
|
<!-- {
|
|
116
112
|
   provide: NG_VALUE_ACCESSOR, useExisting: TimePicker, multi: true
|
|
@@ -119,10 +115,10 @@
|
|
|
119
115
|
<title>{
|
|
120
116
|
   provide: NG_VALUE_ACCESSOR, useExisting: TimePicker, multi: true
|
|
121
117
|
}</title>
|
|
122
|
-
<ellipse fill="#fdb462" stroke="black" cx="
|
|
123
|
-
<text text-anchor="middle" x="
|
|
124
|
-
<text text-anchor="middle" x="
|
|
125
|
-
<text text-anchor="middle" x="
|
|
118
|
+
<ellipse fill="#fdb462" stroke="black" cx="523" cy="-127.3" rx="314.66" ry="41.09"/>
|
|
119
|
+
<text text-anchor="middle" x="523" y="-139.9" font-family="Times,serif" font-size="14.00">{</text>
|
|
120
|
+
<text text-anchor="middle" x="523" y="-123.1" font-family="Times,serif" font-size="14.00">    provide: NG_VALUE_ACCESSOR, useExisting: TimePicker, multi: true</text>
|
|
121
|
+
<text text-anchor="middle" x="523" y="-106.3" font-family="Times,serif" font-size="14.00">}</text>
|
|
126
122
|
</g>
|
|
127
123
|
<!-- {
|
|
128
124
|
   provide: NG_VALUE_ACCESSOR, useExisting: TimePicker, multi: true
|
|
@@ -131,20 +127,20 @@
|
|
|
131
127
|
<title>{
|
|
132
128
|
   provide: NG_VALUE_ACCESSOR, useExisting: TimePicker, multi: true
|
|
133
129
|
}->TimePicker</title>
|
|
134
|
-
<path fill="none" stroke="black" d="
|
|
135
|
-
<polygon fill="black" stroke="black" points="
|
|
130
|
+
<path fill="none" stroke="black" d="M386,-164.48C386,-164.48 386,-187.22 386,-187.22"/>
|
|
131
|
+
<polygon fill="black" stroke="black" points="382.5,-187.22 386,-197.22 389.5,-187.22 382.5,-187.22"/>
|
|
136
132
|
</g>
|
|
137
133
|
<!-- TimePickerSelectModule -->
|
|
138
134
|
<g id="node4" class="node">
|
|
139
135
|
<title>TimePickerSelectModule</title>
|
|
140
|
-
<polygon fill="#8dd3c7" stroke="black" points="
|
|
141
|
-
<text text-anchor="middle" x="
|
|
136
|
+
<polygon fill="#8dd3c7" stroke="black" points="183.57,-233.59 180.57,-237.59 159.57,-237.59 156.57,-233.59 24.43,-233.59 24.43,-197.59 183.57,-197.59 183.57,-233.59"/>
|
|
137
|
+
<text text-anchor="middle" x="104" y="-211.39" font-family="Times,serif" font-size="14.00">TimePickerSelectModule</text>
|
|
142
138
|
</g>
|
|
143
139
|
<!-- TimePickerSelectModule->TimePickerModule -->
|
|
144
140
|
<g id="edge3" class="edge">
|
|
145
141
|
<title>TimePickerSelectModule->TimePickerModule</title>
|
|
146
|
-
<path fill="none" stroke="black" d="
|
|
147
|
-
<polygon fill="black" stroke="black" points="
|
|
142
|
+
<path fill="none" stroke="black" d="M183.57,-215.59C191.09,-215.59 195.98,-215.59 195.98,-215.59 195.98,-215.59 195.98,-252.48 195.98,-252.48"/>
|
|
143
|
+
<polygon fill="black" stroke="black" points="192.48,-252.48 195.98,-262.48 199.48,-252.48 192.48,-252.48"/>
|
|
148
144
|
</g>
|
|
149
145
|
</g>
|
|
150
146
|
</svg>
|
|
@@ -24,10 +24,6 @@
|
|
|
24
24
|
<title>cluster_TimePickerSelectModule</title>
|
|
25
25
|
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-379.59 938,-379.59 938,-70 8,-70"/>
|
|
26
26
|
</g>
|
|
27
|
-
<g id="clust5" class="cluster">
|
|
28
|
-
<title>cluster_TimePickerSelectModule_exports</title>
|
|
29
|
-
<polygon fill="none" stroke="black" points="110,-319.59 110,-371.59 246,-371.59 246,-319.59 110,-319.59"/>
|
|
30
|
-
</g>
|
|
31
27
|
<g id="clust3" class="cluster">
|
|
32
28
|
<title>cluster_TimePickerSelectModule_TimePickerSelect_providers</title>
|
|
33
29
|
<polygon fill="none" stroke="black" points="236,-78 236,-241.59 930,-241.59 930,-78 236,-78"/>
|
|
@@ -36,6 +32,10 @@
|
|
|
36
32
|
<title>cluster_TimePickerSelectModule_imports</title>
|
|
37
33
|
<polygon fill="none" stroke="black" points="16,-189.59 16,-241.59 228,-241.59 228,-189.59 16,-189.59"/>
|
|
38
34
|
</g>
|
|
35
|
+
<g id="clust5" class="cluster">
|
|
36
|
+
<title>cluster_TimePickerSelectModule_exports</title>
|
|
37
|
+
<polygon fill="none" stroke="black" points="110,-319.59 110,-371.59 246,-371.59 246,-319.59 110,-319.59"/>
|
|
38
|
+
</g>
|
|
39
39
|
<!-- TimePickerSelect -->
|
|
40
40
|
<g id="node1" class="node">
|
|
41
41
|
<title>TimePickerSelect</title>
|
|
@@ -66,10 +66,6 @@
|
|
|
66
66
|
<title>cluster_TimePickerSelectModule</title>
|
|
67
67
|
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-379.59 938,-379.59 938,-70 8,-70"/>
|
|
68
68
|
</g>
|
|
69
|
-
<g id="clust5" class="cluster">
|
|
70
|
-
<title>cluster_TimePickerSelectModule_exports</title>
|
|
71
|
-
<polygon fill="none" stroke="black" points="110,-319.59 110,-371.59 246,-371.59 246,-319.59 110,-319.59"/>
|
|
72
|
-
</g>
|
|
73
69
|
<g id="clust3" class="cluster">
|
|
74
70
|
<title>cluster_TimePickerSelectModule_TimePickerSelect_providers</title>
|
|
75
71
|
<polygon fill="none" stroke="black" points="236,-78 236,-241.59 930,-241.59 930,-78 236,-78"/>
|
|
@@ -78,6 +74,10 @@
|
|
|
78
74
|
<title>cluster_TimePickerSelectModule_imports</title>
|
|
79
75
|
<polygon fill="none" stroke="black" points="16,-189.59 16,-241.59 228,-241.59 228,-189.59 16,-189.59"/>
|
|
80
76
|
</g>
|
|
77
|
+
<g id="clust5" class="cluster">
|
|
78
|
+
<title>cluster_TimePickerSelectModule_exports</title>
|
|
79
|
+
<polygon fill="none" stroke="black" points="110,-319.59 110,-371.59 246,-371.59 246,-319.59 110,-319.59"/>
|
|
80
|
+
</g>
|
|
81
81
|
<!-- TimePickerSelect -->
|
|
82
82
|
<g id="node1" class="node">
|
|
83
83
|
<title>TimePickerSelect</title>
|
|
@@ -28,10 +28,6 @@
|
|
|
28
28
|
<title>cluster_ToggleModule_declarations</title>
|
|
29
29
|
<polygon fill="none" stroke="black" points="284,-189.59 284,-241.59 356,-241.59 356,-189.59 284,-189.59"/>
|
|
30
30
|
</g>
|
|
31
|
-
<g id="clust5" class="cluster">
|
|
32
|
-
<title>cluster_ToggleModule_exports</title>
|
|
33
|
-
<polygon fill="none" stroke="black" points="329,-319.59 329,-371.59 405,-371.59 405,-319.59 329,-319.59"/>
|
|
34
|
-
</g>
|
|
35
31
|
<g id="clust4" class="cluster">
|
|
36
32
|
<title>cluster_ToggleModule_imports</title>
|
|
37
33
|
<polygon fill="none" stroke="black" points="364,-189.59 364,-241.59 466,-241.59 466,-189.59 364,-189.59"/>
|
|
@@ -40,6 +36,10 @@
|
|
|
40
36
|
<title>cluster_ToggleModule_Toggle_providers</title>
|
|
41
37
|
<polygon fill="none" stroke="black" points="16,-78 16,-176.59 624,-176.59 624,-78 16,-78"/>
|
|
42
38
|
</g>
|
|
39
|
+
<g id="clust5" class="cluster">
|
|
40
|
+
<title>cluster_ToggleModule_exports</title>
|
|
41
|
+
<polygon fill="none" stroke="black" points="329,-319.59 329,-371.59 405,-371.59 405,-319.59 329,-319.59"/>
|
|
42
|
+
</g>
|
|
43
43
|
<!-- Toggle -->
|
|
44
44
|
<g id="node1" class="node">
|
|
45
45
|
<title>Toggle</title>
|
|
@@ -70,10 +70,6 @@
|
|
|
70
70
|
<title>cluster_ToggleModule_declarations</title>
|
|
71
71
|
<polygon fill="none" stroke="black" points="284,-189.59 284,-241.59 356,-241.59 356,-189.59 284,-189.59"/>
|
|
72
72
|
</g>
|
|
73
|
-
<g id="clust5" class="cluster">
|
|
74
|
-
<title>cluster_ToggleModule_exports</title>
|
|
75
|
-
<polygon fill="none" stroke="black" points="329,-319.59 329,-371.59 405,-371.59 405,-319.59 329,-319.59"/>
|
|
76
|
-
</g>
|
|
77
73
|
<g id="clust4" class="cluster">
|
|
78
74
|
<title>cluster_ToggleModule_imports</title>
|
|
79
75
|
<polygon fill="none" stroke="black" points="364,-189.59 364,-241.59 466,-241.59 466,-189.59 364,-189.59"/>
|
|
@@ -82,6 +78,10 @@
|
|
|
82
78
|
<title>cluster_ToggleModule_Toggle_providers</title>
|
|
83
79
|
<polygon fill="none" stroke="black" points="16,-78 16,-176.59 624,-176.59 624,-78 16,-78"/>
|
|
84
80
|
</g>
|
|
81
|
+
<g id="clust5" class="cluster">
|
|
82
|
+
<title>cluster_ToggleModule_exports</title>
|
|
83
|
+
<polygon fill="none" stroke="black" points="329,-319.59 329,-371.59 405,-371.59 405,-319.59 329,-319.59"/>
|
|
84
|
+
</g>
|
|
85
85
|
<!-- Toggle -->
|
|
86
86
|
<g id="node1" class="node">
|
|
87
87
|
<title>Toggle</title>
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
<title>cluster_ToggletipModule_imports</title>
|
|
29
29
|
<polygon fill="none" stroke="black" points="617,-78 617,-130 739,-130 739,-78 617,-78"/>
|
|
30
30
|
</g>
|
|
31
|
-
<g id="clust2" class="cluster">
|
|
32
|
-
<title>cluster_ToggletipModule_declarations</title>
|
|
33
|
-
<polygon fill="none" stroke="black" points="16,-78 16,-130 609,-130 609,-78 16,-78"/>
|
|
34
|
-
</g>
|
|
35
31
|
<g id="clust9" class="cluster">
|
|
36
32
|
<title>cluster_ToggletipModule_exports</title>
|
|
37
33
|
<polygon fill="none" stroke="black" points="72,-208 72,-260 682,-260 682,-208 72,-208"/>
|
|
38
34
|
</g>
|
|
35
|
+
<g id="clust2" class="cluster">
|
|
36
|
+
<title>cluster_ToggletipModule_declarations</title>
|
|
37
|
+
<polygon fill="none" stroke="black" points="16,-78 16,-130 609,-130 609,-78 16,-78"/>
|
|
38
|
+
</g>
|
|
39
39
|
<!-- Toggletip -->
|
|
40
40
|
<g id="node1" class="node">
|
|
41
41
|
<title>Toggletip</title>
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
<title>cluster_ToggletipModule_imports</title>
|
|
71
71
|
<polygon fill="none" stroke="black" points="617,-78 617,-130 739,-130 739,-78 617,-78"/>
|
|
72
72
|
</g>
|
|
73
|
-
<g id="clust2" class="cluster">
|
|
74
|
-
<title>cluster_ToggletipModule_declarations</title>
|
|
75
|
-
<polygon fill="none" stroke="black" points="16,-78 16,-130 609,-130 609,-78 16,-78"/>
|
|
76
|
-
</g>
|
|
77
73
|
<g id="clust9" class="cluster">
|
|
78
74
|
<title>cluster_ToggletipModule_exports</title>
|
|
79
75
|
<polygon fill="none" stroke="black" points="72,-208 72,-260 682,-260 682,-208 72,-208"/>
|
|
80
76
|
</g>
|
|
77
|
+
<g id="clust2" class="cluster">
|
|
78
|
+
<title>cluster_ToggletipModule_declarations</title>
|
|
79
|
+
<polygon fill="none" stroke="black" points="16,-78 16,-130 609,-130 609,-78 16,-78"/>
|
|
80
|
+
</g>
|
|
81
81
|
<!-- Toggletip -->
|
|
82
82
|
<g id="node1" class="node">
|
|
83
83
|
<title>Toggletip</title>
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
<title>cluster_UIShellModule</title>
|
|
25
25
|
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="13,-70 13,-268 483,-268 483,-70 13,-70"/>
|
|
26
26
|
</g>
|
|
27
|
-
<g id="clust4" class="cluster">
|
|
28
|
-
<title>cluster_UIShellModule_exports</title>
|
|
29
|
-
<polygon fill="none" stroke="black" points="67,-208 67,-260 429,-260 429,-208 67,-208"/>
|
|
30
|
-
</g>
|
|
31
27
|
<g id="clust3" class="cluster">
|
|
32
28
|
<title>cluster_UIShellModule_imports</title>
|
|
33
29
|
<polygon fill="none" stroke="black" points="21,-78 21,-130 475,-130 475,-78 21,-78"/>
|
|
34
30
|
</g>
|
|
31
|
+
<g id="clust4" class="cluster">
|
|
32
|
+
<title>cluster_UIShellModule_exports</title>
|
|
33
|
+
<polygon fill="none" stroke="black" points="67,-208 67,-260 429,-260 429,-208 67,-208"/>
|
|
34
|
+
</g>
|
|
35
35
|
<!-- HeaderModule -->
|
|
36
36
|
<g id="node1" class="node">
|
|
37
37
|
<title>HeaderModule</title>
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
<title>cluster_UIShellModule</title>
|
|
67
67
|
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="13,-70 13,-268 483,-268 483,-70 13,-70"/>
|
|
68
68
|
</g>
|
|
69
|
-
<g id="clust4" class="cluster">
|
|
70
|
-
<title>cluster_UIShellModule_exports</title>
|
|
71
|
-
<polygon fill="none" stroke="black" points="67,-208 67,-260 429,-260 429,-208 67,-208"/>
|
|
72
|
-
</g>
|
|
73
69
|
<g id="clust3" class="cluster">
|
|
74
70
|
<title>cluster_UIShellModule_imports</title>
|
|
75
71
|
<polygon fill="none" stroke="black" points="21,-78 21,-130 475,-130 475,-78 21,-78"/>
|
|
76
72
|
</g>
|
|
73
|
+
<g id="clust4" class="cluster">
|
|
74
|
+
<title>cluster_UIShellModule_exports</title>
|
|
75
|
+
<polygon fill="none" stroke="black" points="67,-208 67,-260 429,-260 429,-208 67,-208"/>
|
|
76
|
+
</g>
|
|
77
77
|
<!-- HeaderModule -->
|
|
78
78
|
<g id="node1" class="node">
|
|
79
79
|
<title>HeaderModule</title>
|
package/docs/documentation.json
CHANGED
|
@@ -29458,7 +29458,7 @@
|
|
|
29458
29458
|
},
|
|
29459
29459
|
{
|
|
29460
29460
|
"name": "FileComponent",
|
|
29461
|
-
"id": "component-FileComponent-
|
|
29461
|
+
"id": "component-FileComponent-5dd02c14d1b5b94175eb2f5541aef2631a5238d8a357cc189f01382f7b55c5556a39fd590b189d01110ab2519bcb6cfb8bc62537a01e32920509e9fea450d407",
|
|
29462
29462
|
"file": "src/file-uploader/file.component.ts",
|
|
29463
29463
|
"encapsulation": [],
|
|
29464
29464
|
"entryComponents": [],
|
|
@@ -29468,7 +29468,7 @@
|
|
|
29468
29468
|
"selector": "cds-file, ibm-file",
|
|
29469
29469
|
"styleUrls": [],
|
|
29470
29470
|
"styles": [],
|
|
29471
|
-
"template": "<p class=\"cds--file-filename\" [title]=\"fileItem.file.name\">{{fileItem.file.name}}</p>\n<span\n\t*ngIf=\"fileItem.state === 'edit'\"\n\tclass=\"cds--file__state-container\">\n\t<svg\n\t\t*ngIf=\"isInvalidText\"\n\t\tcdsIcon=\"warning--filled\"\n\t\tclass=\"cds--file--invalid\"\n\t\tsize=\"16\">\n\t</svg>\n\t<button\n\t\ttype=\"button\"\n\t\tclass=\"cds--file-close\"\n\t\t[attr.aria-label]=\"translations.REMOVE_BUTTON\"\n\t\ttabindex=\"0\"\n\t\t(click)=\"remove.emit()\"\n\t\t(keyup.enter)=\"remove.emit()\"\n\t\t(keyup.space)=\"remove.emit()\">\n\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t</button>\n</span>\n<span *ngIf=\"fileItem.state === 'upload'\">\n\t<div class=\"cds--inline-loading__animation\">\n\t\t<cds-loading size=\"sm\"></cds-loading>\n\t</div>\n</span>\n<span *ngIf=\"fileItem.state === 'complete'\" class=\"cds--file__state-container\">\n\t<svg\n\t\tcdsIcon=\"checkmark--filled\"\n\t\tsize=\"16\"\n\t\tclass=\"cds--file-complete\"\n\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t</svg>\n</span>\n<div class=\"cds--form-requirement\" *ngIf=\"fileItem.invalid\">\n\t<div class=\"cds--form-requirement__title\">{{fileItem.invalidTitle}}</div>\n\t<p class=\"cds--form-requirement__supplement\">{{fileItem.invalidText}}</p>\n</div>\n\t",
|
|
29471
|
+
"template": "<p class=\"cds--file-filename\" [title]=\"fileItem.file.name\">{{fileItem.file.name}}</p>\n<span\n\t*ngIf=\"fileItem.state === 'edit'\"\n\tclass=\"cds--file__state-container\">\n\t<svg\n\t\t*ngIf=\"isInvalidText\"\n\t\tcdsIcon=\"warning--filled\"\n\t\tclass=\"cds--file--invalid\"\n\t\tsize=\"16\">\n\t</svg>\n\t<button\n\t\ttype=\"button\"\n\t\tclass=\"cds--file-close\"\n\t\t[attr.aria-label]=\"translations.REMOVE_BUTTON\"\n\t\ttabindex=\"0\"\n\t\t(click)=\"remove.emit()\"\n\t\t(keyup.enter)=\"remove.emit()\"\n\t\t(keyup.space)=\"remove.emit()\">\n\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t</button>\n</span>\n<span *ngIf=\"fileItem.state === 'upload'\">\n\t<div class=\"cds--inline-loading__animation\">\n\t\t<cds-loading size=\"sm\"></cds-loading>\n\t</div>\n</span>\n<span *ngIf=\"fileItem.state === 'complete'\" class=\"cds--file__state-container\">\n\t<svg\n\t\tcdsIcon=\"checkmark--filled\"\n\t\tsize=\"16\"\n\t\tclass=\"cds--file-complete\"\n\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t</svg>\n</span>\n<div class=\"cds--form-requirement\" role=\"alert\" *ngIf=\"fileItem.invalid\">\n\t<div class=\"cds--form-requirement__title\">{{fileItem.invalidTitle}}</div>\n\t<p class=\"cds--form-requirement__supplement\">{{fileItem.invalidText}}</p>\n</div>\n\t",
|
|
29472
29472
|
"templateUrl": [],
|
|
29473
29473
|
"viewProviders": [],
|
|
29474
29474
|
"hostDirectives": [],
|
|
@@ -29587,7 +29587,7 @@
|
|
|
29587
29587
|
"description": "",
|
|
29588
29588
|
"rawdescription": "\n",
|
|
29589
29589
|
"type": "component",
|
|
29590
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tOutput,\n\tEventEmitter,\n\tHostBinding,\n\tOnDestroy\n} from \"@angular/core\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { FileItem } from \"./file-item.interface\";\n\n@Component({\n\tselector: \"cds-file, ibm-file\",\n\ttemplate: `\n\t\t<p class=\"cds--file-filename\" [title]=\"fileItem.file.name\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"cds--file__state-container\">\n\t\t\t<svg\n\t\t\t\t*ngIf=\"isInvalidText\"\n\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\tclass=\"cds--file--invalid\"\n\t\t\t\tsize=\"16\">\n\t\t\t</svg>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"cds--file-close\"\n\t\t\t\t[attr.aria-label]=\"translations.REMOVE_BUTTON\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t\t(click)=\"remove.emit()\"\n\t\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t\t(keyup.space)=\"remove.emit()\">\n\t\t\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t\t\t</button>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<div class=\"cds--inline-loading__animation\">\n\t\t\t\t<cds-loading size=\"sm\"></cds-loading>\n\t\t\t</div>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'complete'\" class=\"cds--file__state-container\">\n\t\t\t<svg\n\t\t\t\tcdsIcon=\"checkmark--filled\"\n\t\t\t\tsize=\"16\"\n\t\t\t\tclass=\"cds--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</svg>\n\t\t</span>\n\t\t<div class=\"cds--form-requirement\" *ngIf=\"fileItem.invalid\">\n\t\t\t<div class=\"cds--form-requirement__title\">{{fileItem.invalidTitle}}</div>\n\t\t\t<p class=\"cds--form-requirement__supplement\">{{fileItem.invalidText}}</p>\n\t\t</div>\n\t`\n})\nexport class FileComponent implements OnDestroy {\n\t/**\n\t * Accessible translations for the close and complete icons\n\t */\n\t@Input() translations = this.i18n.get().FILE_UPLOADER;\n\t/**\n\t * A single `FileItem` from the set of `FileItem`s\n\t */\n\t@Input() fileItem: FileItem;\n\n\t@Input() size: \"sm\" | \"md\" | \"lg\" = \"lg\";\n\n\t@Output() remove = new EventEmitter();\n\n\t@HostBinding(\"class.cds--file__selected-file\") selectedFile = true;\n\n\t@HostBinding(\"class.cds--file__selected-file--invalid\") get isInvalidText() {\n\t\treturn this.fileItem.invalidText;\n\t}\n\n\t@HostBinding(\"class.cds--file__selected-file--sm\") get fileSizeSmall() {\n\t\treturn this.size === \"sm\";\n\t}\n\n\t@HostBinding(\"class.cds--file__selected-file--md\") get fileSizeMedium() {\n\t\treturn this.size === \"md\";\n\t}\n\n\t@HostBinding(\"class.cds--file__selected-file--lg\") get fileSizeLarge() {\n\t\treturn this.size === \"lg\";\n\t}\n\tconstructor(protected i18n: I18n) {}\n\n\tngOnDestroy() {\n\t\tthis.remove.emit();\n\t}\n}\n",
|
|
29590
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tOutput,\n\tEventEmitter,\n\tHostBinding,\n\tOnDestroy\n} from \"@angular/core\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { FileItem } from \"./file-item.interface\";\n\n@Component({\n\tselector: \"cds-file, ibm-file\",\n\ttemplate: `\n\t\t<p class=\"cds--file-filename\" [title]=\"fileItem.file.name\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"cds--file__state-container\">\n\t\t\t<svg\n\t\t\t\t*ngIf=\"isInvalidText\"\n\t\t\t\tcdsIcon=\"warning--filled\"\n\t\t\t\tclass=\"cds--file--invalid\"\n\t\t\t\tsize=\"16\">\n\t\t\t</svg>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"cds--file-close\"\n\t\t\t\t[attr.aria-label]=\"translations.REMOVE_BUTTON\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t\t(click)=\"remove.emit()\"\n\t\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t\t(keyup.space)=\"remove.emit()\">\n\t\t\t\t<svg cdsIcon=\"close\" size=\"16\"></svg>\n\t\t\t</button>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<div class=\"cds--inline-loading__animation\">\n\t\t\t\t<cds-loading size=\"sm\"></cds-loading>\n\t\t\t</div>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'complete'\" class=\"cds--file__state-container\">\n\t\t\t<svg\n\t\t\t\tcdsIcon=\"checkmark--filled\"\n\t\t\t\tsize=\"16\"\n\t\t\t\tclass=\"cds--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</svg>\n\t\t</span>\n\t\t<div class=\"cds--form-requirement\" role=\"alert\" *ngIf=\"fileItem.invalid\">\n\t\t\t<div class=\"cds--form-requirement__title\">{{fileItem.invalidTitle}}</div>\n\t\t\t<p class=\"cds--form-requirement__supplement\">{{fileItem.invalidText}}</p>\n\t\t</div>\n\t`\n})\nexport class FileComponent implements OnDestroy {\n\t/**\n\t * Accessible translations for the close and complete icons\n\t */\n\t@Input() translations = this.i18n.get().FILE_UPLOADER;\n\t/**\n\t * A single `FileItem` from the set of `FileItem`s\n\t */\n\t@Input() fileItem: FileItem;\n\n\t@Input() size: \"sm\" | \"md\" | \"lg\" = \"lg\";\n\n\t@Output() remove = new EventEmitter();\n\n\t@HostBinding(\"class.cds--file__selected-file\") selectedFile = true;\n\n\t@HostBinding(\"class.cds--file__selected-file--invalid\") get isInvalidText() {\n\t\treturn this.fileItem.invalidText;\n\t}\n\n\t@HostBinding(\"class.cds--file__selected-file--sm\") get fileSizeSmall() {\n\t\treturn this.size === \"sm\";\n\t}\n\n\t@HostBinding(\"class.cds--file__selected-file--md\") get fileSizeMedium() {\n\t\treturn this.size === \"md\";\n\t}\n\n\t@HostBinding(\"class.cds--file__selected-file--lg\") get fileSizeLarge() {\n\t\treturn this.size === \"lg\";\n\t}\n\tconstructor(protected i18n: I18n) {}\n\n\tngOnDestroy() {\n\t\tthis.remove.emit();\n\t}\n}\n",
|
|
29591
29591
|
"assetsDirs": [],
|
|
29592
29592
|
"styleUrlsData": "",
|
|
29593
29593
|
"stylesData": "",
|
|
@@ -29661,7 +29661,7 @@
|
|
|
29661
29661
|
},
|
|
29662
29662
|
{
|
|
29663
29663
|
"name": "FileUploader",
|
|
29664
|
-
"id": "component-FileUploader-
|
|
29664
|
+
"id": "component-FileUploader-16618b5809363fea59d72357ffa4b07e95929d21f9b6f877e0e1e0cc77571170d13a9b73a0a9c332b8e0dd05a18d728283373b0b3f7031ad19fade02045a499f",
|
|
29665
29665
|
"file": "src/file-uploader/file-uploader.component.ts",
|
|
29666
29666
|
"encapsulation": [],
|
|
29667
29667
|
"entryComponents": [],
|
|
@@ -29675,7 +29675,7 @@
|
|
|
29675
29675
|
"selector": "cds-file-uploader, ibm-file-uploader",
|
|
29676
29676
|
"styleUrls": [],
|
|
29677
29677
|
"styles": [],
|
|
29678
|
-
"template": "<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t<label [for]=\"fileUploaderId\" class=\"cds--file--label\">{{title}}</label>\n\t<p class=\"cds--label-description\">{{description}}</p>\n\t<div class=\"cds--file\">\n\t\t<label\n\t\t\t*ngIf=\"drop\"\n\t\t\tclass=\"cds--file-browse-btn\"\n\t\t\t(keyup.enter)=\"fileInput.click()\"\n\t\t\t(keyup.space)=\"fileInput.click()\"\n\t\t\t[ngClass]=\"{'cds--file-browse-btn--disabled': disabled}\"\n\t\t\ttabindex=\"0\">\n\t\t\t<div\n\t\t\t\tclass=\"cds--file__drop-container\"\n\t\t\t\t[ngClass]=\"{'cds--file__drop-container--drag-over': dragOver}\"\n\t\t\t\trole=\"button\"\n\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t(dragover)=\"onDragOver($event)\"\n\t\t\t\t(dragleave)=\"onDragLeave($event)\"\n\t\t\t\t(drop)=\"onDrop($event)\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(dropText)\">{{dropText}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(dropText)\" [ngTemplateOutlet]=\"dropText\"></ng-template>\n\t\t\t</div>\n\t\t</label>\n\t\t<button\n\t\t\t*ngIf=\"!drop\"\n\t\t\ttype=\"button\"\n\t\t\t[cdsButton]=\"buttonType\"\n\t\t\t(click)=\"fileInput.click()\"\n\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t[size]=\"size\"\n\t\t\t[disabled]=\"disabled\">\n\t\t\t{{buttonText}}\n\t\t</button>\n\t\t<input\n\t\t\t#fileInput\n\t\t\ttype=\"file\"\n\t\t\tclass=\"cds--file-input\"\n\t\t\t[accept]=\"accept\"\n\t\t\t[id]=\"fileUploaderId\"\n\t\t\t[multiple]=\"multiple\"\n\t\t\ttabindex=\"-1\"\n\t\t\t(change)=\"onFilesAdded()\"\n\t\t\t[disabled]=\"disabled\"/>\n\t\t<div class=\"cds--file-container\">\n\t\t\t<ng-container *ngFor=\"let fileItem of files\">\n\t\t\t\t<cds-file\n\t\t\t\t\t[fileItem]=\"fileItem\"\n\t\t\t\t\t(remove)=\"removeFile(fileItem)\"\n\t\t\t\t\t[size]=\"fileItemSize\">\n\t\t\t\t</cds-file>\n\t\t\t</ng-container>\n\t\t</div>\n\t</div>\n</ng-container>\n\n<ng-template #skeletonTemplate>\n\t<div class=\"cds--skeleton__text\" style=\"width: 100px\"></div>\n\t<div class=\"cds--skeleton__text\" style=\"width: 225px\"></div>\n\t<button cdsButton skeleton=\"true\"></button>\n</ng-template>\n\t",
|
|
29678
|
+
"template": "<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t<label [for]=\"fileUploaderId\" class=\"cds--file--label\">{{title}}</label>\n\t<p class=\"cds--label-description\" role=\"alert\">{{description}}</p>\n\t<div class=\"cds--file\">\n\t\t<label\n\t\t\t*ngIf=\"drop\"\n\t\t\tclass=\"cds--file-browse-btn\"\n\t\t\t(keyup.enter)=\"fileInput.click()\"\n\t\t\t(keyup.space)=\"fileInput.click()\"\n\t\t\t[ngClass]=\"{'cds--file-browse-btn--disabled': disabled}\"\n\t\t\ttabindex=\"0\">\n\t\t\t<div\n\t\t\t\tclass=\"cds--file__drop-container\"\n\t\t\t\t[ngClass]=\"{'cds--file__drop-container--drag-over': dragOver}\"\n\t\t\t\trole=\"button\"\n\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t(dragover)=\"onDragOver($event)\"\n\t\t\t\t(dragleave)=\"onDragLeave($event)\"\n\t\t\t\t(drop)=\"onDrop($event)\">\n\t\t\t\t<ng-container *ngIf=\"!isTemplate(dropText)\">{{dropText}}</ng-container>\n\t\t\t\t<ng-template *ngIf=\"isTemplate(dropText)\" [ngTemplateOutlet]=\"dropText\"></ng-template>\n\t\t\t</div>\n\t\t</label>\n\t\t<button\n\t\t\t*ngIf=\"!drop\"\n\t\t\ttype=\"button\"\n\t\t\t[cdsButton]=\"buttonType\"\n\t\t\t(click)=\"fileInput.click()\"\n\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t[size]=\"size\"\n\t\t\t[disabled]=\"disabled\">\n\t\t\t{{buttonText}}\n\t\t</button>\n\t\t<input\n\t\t\t#fileInput\n\t\t\ttype=\"file\"\n\t\t\tclass=\"cds--file-input\"\n\t\t\t[accept]=\"accept\"\n\t\t\t[id]=\"fileUploaderId\"\n\t\t\t[multiple]=\"multiple\"\n\t\t\ttabindex=\"-1\"\n\t\t\t(change)=\"onFilesAdded()\"\n\t\t\t[disabled]=\"disabled\"/>\n\t\t<div class=\"cds--file-container\">\n\t\t\t<ng-container *ngFor=\"let fileItem of files\">\n\t\t\t\t<cds-file\n\t\t\t\t\t[fileItem]=\"fileItem\"\n\t\t\t\t\t(remove)=\"removeFile(fileItem)\"\n\t\t\t\t\t[size]=\"fileItemSize\">\n\t\t\t\t</cds-file>\n\t\t\t</ng-container>\n\t\t</div>\n\t</div>\n</ng-container>\n\n<ng-template #skeletonTemplate>\n\t<div class=\"cds--skeleton__text\" style=\"width: 100px\"></div>\n\t<div class=\"cds--skeleton__text\" style=\"width: 225px\"></div>\n\t<button cdsButton skeleton=\"true\"></button>\n</ng-template>\n\t",
|
|
29679
29679
|
"templateUrl": [],
|
|
29680
29680
|
"viewProviders": [],
|
|
29681
29681
|
"hostDirectives": [],
|
|
@@ -30163,8 +30163,8 @@
|
|
|
30163
30163
|
"jsdoctags": [
|
|
30164
30164
|
{
|
|
30165
30165
|
"name": {
|
|
30166
|
-
"pos":
|
|
30167
|
-
"end":
|
|
30166
|
+
"pos": 7741,
|
|
30167
|
+
"end": 7751,
|
|
30168
30168
|
"flags": 8421376,
|
|
30169
30169
|
"modifierFlagsCache": 0,
|
|
30170
30170
|
"transformFlags": 0,
|
|
@@ -30175,8 +30175,8 @@
|
|
|
30175
30175
|
"deprecated": false,
|
|
30176
30176
|
"deprecationMessage": "",
|
|
30177
30177
|
"tagName": {
|
|
30178
|
-
"pos":
|
|
30179
|
-
"end":
|
|
30178
|
+
"pos": 7735,
|
|
30179
|
+
"end": 7740,
|
|
30180
30180
|
"flags": 8421376,
|
|
30181
30181
|
"modifierFlagsCache": 0,
|
|
30182
30182
|
"transformFlags": 0,
|
|
@@ -30227,7 +30227,7 @@
|
|
|
30227
30227
|
"description": "<p><a href=\"../../?path=/story/components-file-uploader--basic\">See demo</a></p>\n",
|
|
30228
30228
|
"rawdescription": "\n\n[See demo](../../?path=/story/components-file-uploader--basic)\n",
|
|
30229
30229
|
"type": "component",
|
|
30230
|
-
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tOutput,\n\tViewChild,\n\tEventEmitter,\n\tTemplateRef\n} from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { FileItem } from \"./file-item.interface\";\n\nconst noop = () => { };\n\n/**\n * [See demo](../../?path=/story/components-file-uploader--basic)\n */\n@Component({\n\tselector: \"cds-file-uploader, ibm-file-uploader\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<label [for]=\"fileUploaderId\" class=\"cds--file--label\">{{title}}</label>\n\t\t\t<p class=\"cds--label-description\">{{description}}</p>\n\t\t\t<div class=\"cds--file\">\n\t\t\t\t<label\n\t\t\t\t\t*ngIf=\"drop\"\n\t\t\t\t\tclass=\"cds--file-browse-btn\"\n\t\t\t\t\t(keyup.enter)=\"fileInput.click()\"\n\t\t\t\t\t(keyup.space)=\"fileInput.click()\"\n\t\t\t\t\t[ngClass]=\"{'cds--file-browse-btn--disabled': disabled}\"\n\t\t\t\t\ttabindex=\"0\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"cds--file__drop-container\"\n\t\t\t\t\t\t[ngClass]=\"{'cds--file__drop-container--drag-over': dragOver}\"\n\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t\t(dragover)=\"onDragOver($event)\"\n\t\t\t\t\t\t(dragleave)=\"onDragLeave($event)\"\n\t\t\t\t\t\t(drop)=\"onDrop($event)\">\n\t\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(dropText)\">{{dropText}}</ng-container>\n\t\t\t\t\t\t<ng-template *ngIf=\"isTemplate(dropText)\" [ngTemplateOutlet]=\"dropText\"></ng-template>\n\t\t\t\t\t</div>\n\t\t\t\t</label>\n\t\t\t\t<button\n\t\t\t\t\t*ngIf=\"!drop\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[cdsButton]=\"buttonType\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\"\n\t\t\t\t\t[disabled]=\"disabled\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"cds--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"\n\t\t\t\t\t[disabled]=\"disabled\"/>\n\t\t\t\t<div class=\"cds--file-container\">\n\t\t\t\t\t<ng-container *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<cds-file\n\t\t\t\t\t\t\t[fileItem]=\"fileItem\"\n\t\t\t\t\t\t\t(remove)=\"removeFile(fileItem)\"\n\t\t\t\t\t\t\t[size]=\"fileItemSize\">\n\t\t\t\t\t\t</cds-file>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"cds--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"cds--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button cdsButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: FileUploader,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class FileUploader implements ControlValueAccessor {\n\t/**\n\t * Counter used to create unique ids for file-uploader components\n\t */\n\tstatic fileUploaderCount = 0;\n\t/**\n\t * Accessible text for the button that opens the upload window.\n\t *\n\t * Defaults to the `FILE_UPLOADER.OPEN` value from the i18n service\n\t */\n\t@Input() buttonText = this.i18n.get().FILE_UPLOADER.OPEN;\n\t/**\n\t * Type set for button\n\t */\n\t@Input() buttonType: \"primary\" | \"secondary\" | \"tertiary\" | \"ghost\" | \"danger\" = \"primary\";\n\t/**\n\t * Text set to the title\n\t */\n\t@Input() title: string;\n\t/**\n\t * Text set to the description\n\t */\n\t@Input() description: string;\n\t/**\n\t * Specify the types of files that the input should be able to receive\n\t */\n\t@Input() accept = [];\n\t/**\n\t * Set to `false` to tell the component to only accept a single file on upload.\n\t *\n\t * Defaults to `true`. Accepts multiple files.\n\t */\n\t@Input() multiple = true;\n\t/**\n\t * Set to `true` for a loading file uploader.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Sets the size of the button.\n\t */\n\t@Input() size: \"sm\" | \"md\" | \"lg\";\n\t/**\n\t * Sets the size of the file items\n\t */\n\t@Input() fileItemSize: \"sm\" | \"md\" | \"lg\" = \"lg\";\n\t/**\n\t * Set to `true` to enable drag and drop.\n\t */\n\t@Input() drop = false;\n\t/**\n\t * Sets the text shown in drag and drop box.\n\t */\n\t@Input() dropText: string | TemplateRef<any>;\n\t/**\n\t * Provides a unique id for the underlying `<input>` node\n\t */\n\t@Input() fileUploaderId = `file-uploader-${FileUploader.fileUploaderCount}`;\n\t/**\n\t * Maintains a reference to the view DOM element of the underlying <input> node\n\t */\n\t@ViewChild(\"fileInput\") fileInput;\n\t/**\n\t * The list of files that have been submitted to be uploaded\n\t */\n\t@Input() files = new Set<FileItem>();\n\t/**\n\t * Set to `true` to disable upload button\n\t */\n\t@Input() disabled = false;\n\n\t@Output() filesChange = new EventEmitter<any>();\n\n\t/**\n\t * Controls the state of the drag and drop file container\n\t */\n\tpublic dragOver = false;\n\n\tprotected onTouchedCallback: () => void = noop;\n\tprotected onChangeCallback: (_: Set<FileItem>) => void = noop;\n\n\tconstructor(protected i18n: I18n) {\n\t\tFileUploader.fileUploaderCount++;\n\t}\n\n\t/**\n\t * Specifies the property to be used as the return value to `ngModel` and reactive forms.\n\t * Updates `this.files`.\n\t */\n\tget value(): Set<FileItem> {\n\t\treturn this.files;\n\t}\n\tset value(v: Set<FileItem>) {\n\t\tif (v !== this.files) {\n\t\t\tthis.files = v;\n\t\t\tthis.onChangeCallback(v);\n\t\t}\n\t}\n\n\tonBlur() {\n\t\tthis.onTouchedCallback();\n\t}\n\n\tget fileList() {\n\t\treturn Array.from(this.fileInput.nativeElement.files);\n\t}\n\n\t/**\n\t * Propagates the injected `value`.\n\t */\n\twriteValue(value: Set<FileItem>) {\n\t\tif (value !== this.value) {\n\t\t\tthis.files = value;\n\t\t}\n\t}\n\n\tcreateFileItem(file): FileItem {\n\t\treturn {\n\t\t\tuploaded: false,\n\t\t\tstate: \"edit\",\n\t\t\tinvalid: false,\n\t\t\tinvalidText: \"\",\n\t\t\tfile: file\n\t\t};\n\t}\n\n\tonFilesAdded() {\n\t\tconst newFiles = new Set<FileItem>(this.files);\n\t\tif (!this.multiple) {\n\t\t\tnewFiles.clear();\n\t\t}\n\t\tfor (let file of this.fileList) {\n\t\t\tconst fileItem = this.createFileItem(file);\n\t\t\tnewFiles.add(fileItem);\n\t\t}\n\n\t\tthis.value = newFiles;\n\t\tthis.filesChange.emit(newFiles);\n\t}\n\n\tonDragOver(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.dragOver = true;\n\t}\n\n\tonDragLeave(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tthis.dragOver = false;\n\t}\n\n\tonDrop(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst transferredFiles: Array<File> = Array.from(event.dataTransfer.files);\n\t\tconst newFiles = new Set<FileItem>(this.files);\n\n\t\ttransferredFiles.filter(({ name, type }) => {\n\t\t\t// Get the file extension and add a \".\" to the beginning.\n\t\t\tconst fileExtension = name.split(\".\").pop().replace(/^/, \".\");\n\t\t\t// Check if the accept array contains the mime type or extension of the file.\n\t\t\treturn this.accept.includes(type) || this.accept.includes(fileExtension) || !this.accept.length;\n\t\t}).forEach(file => {\n\t\t\tif (!newFiles.size || this.multiple) {\n\t\t\t\tconst fileItem = this.createFileItem(file);\n\t\t\t\tnewFiles.add(fileItem);\n\t\t\t}\n\t\t});\n\n\t\tthis.value = newFiles;\n\t\tthis.filesChange.emit(newFiles);\n\t\tthis.dragOver = false;\n\t}\n\n\tremoveFile(fileItem) {\n\t\t// Deleting an item from this.files removes the <ibm-file> component,\n\t\t// which triggers its ngOnDestroy(), which fires the (remove) event again.\n\t\t// So, (remove) may double-fire and we need to handle it here.\n\t\tif (this.files && this.files.has(fileItem)) {\n\t\t\tconst newFiles = new Set<FileItem>(this.files);\n\t\t\tnewFiles.delete(fileItem);\n\t\t\tthis.filesChange.emit(newFiles);\n\t\t\tthis.value = newFiles;\n\t\t}\n\t\tthis.fileInput.nativeElement.value = \"\";\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\t/**\n\t * Registers the injected function to control the touch use of the `FileUploader`.\n\t */\n\tregisterOnTouched(fn: any) {\n\t\tthis.onTouchedCallback = fn;\n\t}\n\t/**\n\t * Sets a method in order to propagate changes back to the form.\n\t */\n\tregisterOnChange(fn: any) {\n\t\tthis.onChangeCallback = fn;\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the checkbox.\n\t *\n\t * ex: `this.formGroup.get(\"myFileUploader\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the file uploader\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n}\n",
|
|
30230
|
+
"sourceCode": "import {\n\tComponent,\n\tInput,\n\tOutput,\n\tViewChild,\n\tEventEmitter,\n\tTemplateRef\n} from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"carbon-components-angular/i18n\";\nimport { FileItem } from \"./file-item.interface\";\n\nconst noop = () => { };\n\n/**\n * [See demo](../../?path=/story/components-file-uploader--basic)\n */\n@Component({\n\tselector: \"cds-file-uploader, ibm-file-uploader\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<label [for]=\"fileUploaderId\" class=\"cds--file--label\">{{title}}</label>\n\t\t\t<p class=\"cds--label-description\" role=\"alert\">{{description}}</p>\n\t\t\t<div class=\"cds--file\">\n\t\t\t\t<label\n\t\t\t\t\t*ngIf=\"drop\"\n\t\t\t\t\tclass=\"cds--file-browse-btn\"\n\t\t\t\t\t(keyup.enter)=\"fileInput.click()\"\n\t\t\t\t\t(keyup.space)=\"fileInput.click()\"\n\t\t\t\t\t[ngClass]=\"{'cds--file-browse-btn--disabled': disabled}\"\n\t\t\t\t\ttabindex=\"0\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"cds--file__drop-container\"\n\t\t\t\t\t\t[ngClass]=\"{'cds--file__drop-container--drag-over': dragOver}\"\n\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t\t(dragover)=\"onDragOver($event)\"\n\t\t\t\t\t\t(dragleave)=\"onDragLeave($event)\"\n\t\t\t\t\t\t(drop)=\"onDrop($event)\">\n\t\t\t\t\t\t<ng-container *ngIf=\"!isTemplate(dropText)\">{{dropText}}</ng-container>\n\t\t\t\t\t\t<ng-template *ngIf=\"isTemplate(dropText)\" [ngTemplateOutlet]=\"dropText\"></ng-template>\n\t\t\t\t\t</div>\n\t\t\t\t</label>\n\t\t\t\t<button\n\t\t\t\t\t*ngIf=\"!drop\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[cdsButton]=\"buttonType\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\"\n\t\t\t\t\t[disabled]=\"disabled\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"cds--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"\n\t\t\t\t\t[disabled]=\"disabled\"/>\n\t\t\t\t<div class=\"cds--file-container\">\n\t\t\t\t\t<ng-container *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<cds-file\n\t\t\t\t\t\t\t[fileItem]=\"fileItem\"\n\t\t\t\t\t\t\t(remove)=\"removeFile(fileItem)\"\n\t\t\t\t\t\t\t[size]=\"fileItemSize\">\n\t\t\t\t\t\t</cds-file>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"cds--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"cds--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button cdsButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: FileUploader,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class FileUploader implements ControlValueAccessor {\n\t/**\n\t * Counter used to create unique ids for file-uploader components\n\t */\n\tstatic fileUploaderCount = 0;\n\t/**\n\t * Accessible text for the button that opens the upload window.\n\t *\n\t * Defaults to the `FILE_UPLOADER.OPEN` value from the i18n service\n\t */\n\t@Input() buttonText = this.i18n.get().FILE_UPLOADER.OPEN;\n\t/**\n\t * Type set for button\n\t */\n\t@Input() buttonType: \"primary\" | \"secondary\" | \"tertiary\" | \"ghost\" | \"danger\" = \"primary\";\n\t/**\n\t * Text set to the title\n\t */\n\t@Input() title: string;\n\t/**\n\t * Text set to the description\n\t */\n\t@Input() description: string;\n\t/**\n\t * Specify the types of files that the input should be able to receive\n\t */\n\t@Input() accept = [];\n\t/**\n\t * Set to `false` to tell the component to only accept a single file on upload.\n\t *\n\t * Defaults to `true`. Accepts multiple files.\n\t */\n\t@Input() multiple = true;\n\t/**\n\t * Set to `true` for a loading file uploader.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Sets the size of the button.\n\t */\n\t@Input() size: \"sm\" | \"md\" | \"lg\";\n\t/**\n\t * Sets the size of the file items\n\t */\n\t@Input() fileItemSize: \"sm\" | \"md\" | \"lg\" = \"lg\";\n\t/**\n\t * Set to `true` to enable drag and drop.\n\t */\n\t@Input() drop = false;\n\t/**\n\t * Sets the text shown in drag and drop box.\n\t */\n\t@Input() dropText: string | TemplateRef<any>;\n\t/**\n\t * Provides a unique id for the underlying `<input>` node\n\t */\n\t@Input() fileUploaderId = `file-uploader-${FileUploader.fileUploaderCount}`;\n\t/**\n\t * Maintains a reference to the view DOM element of the underlying <input> node\n\t */\n\t@ViewChild(\"fileInput\") fileInput;\n\t/**\n\t * The list of files that have been submitted to be uploaded\n\t */\n\t@Input() files = new Set<FileItem>();\n\t/**\n\t * Set to `true` to disable upload button\n\t */\n\t@Input() disabled = false;\n\n\t@Output() filesChange = new EventEmitter<any>();\n\n\t/**\n\t * Controls the state of the drag and drop file container\n\t */\n\tpublic dragOver = false;\n\n\tprotected onTouchedCallback: () => void = noop;\n\tprotected onChangeCallback: (_: Set<FileItem>) => void = noop;\n\n\tconstructor(protected i18n: I18n) {\n\t\tFileUploader.fileUploaderCount++;\n\t}\n\n\t/**\n\t * Specifies the property to be used as the return value to `ngModel` and reactive forms.\n\t * Updates `this.files`.\n\t */\n\tget value(): Set<FileItem> {\n\t\treturn this.files;\n\t}\n\tset value(v: Set<FileItem>) {\n\t\tif (v !== this.files) {\n\t\t\tthis.files = v;\n\t\t\tthis.onChangeCallback(v);\n\t\t}\n\t}\n\n\tonBlur() {\n\t\tthis.onTouchedCallback();\n\t}\n\n\tget fileList() {\n\t\treturn Array.from(this.fileInput.nativeElement.files);\n\t}\n\n\t/**\n\t * Propagates the injected `value`.\n\t */\n\twriteValue(value: Set<FileItem>) {\n\t\tif (value !== this.value) {\n\t\t\tthis.files = value;\n\t\t}\n\t}\n\n\tcreateFileItem(file): FileItem {\n\t\treturn {\n\t\t\tuploaded: false,\n\t\t\tstate: \"edit\",\n\t\t\tinvalid: false,\n\t\t\tinvalidText: \"\",\n\t\t\tfile: file\n\t\t};\n\t}\n\n\tonFilesAdded() {\n\t\tconst newFiles = new Set<FileItem>(this.files);\n\t\tif (!this.multiple) {\n\t\t\tnewFiles.clear();\n\t\t}\n\t\tfor (let file of this.fileList) {\n\t\t\tconst fileItem = this.createFileItem(file);\n\t\t\tnewFiles.add(fileItem);\n\t\t}\n\n\t\tthis.value = newFiles;\n\t\tthis.filesChange.emit(newFiles);\n\t}\n\n\tonDragOver(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\t\tthis.dragOver = true;\n\t}\n\n\tonDragLeave(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tthis.dragOver = false;\n\t}\n\n\tonDrop(event) {\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst transferredFiles: Array<File> = Array.from(event.dataTransfer.files);\n\t\tconst newFiles = new Set<FileItem>(this.files);\n\n\t\ttransferredFiles.filter(({ name, type }) => {\n\t\t\t// Get the file extension and add a \".\" to the beginning.\n\t\t\tconst fileExtension = name.split(\".\").pop().replace(/^/, \".\");\n\t\t\t// Check if the accept array contains the mime type or extension of the file.\n\t\t\treturn this.accept.includes(type) || this.accept.includes(fileExtension) || !this.accept.length;\n\t\t}).forEach(file => {\n\t\t\tif (!newFiles.size || this.multiple) {\n\t\t\t\tconst fileItem = this.createFileItem(file);\n\t\t\t\tnewFiles.add(fileItem);\n\t\t\t}\n\t\t});\n\n\t\tthis.value = newFiles;\n\t\tthis.filesChange.emit(newFiles);\n\t\tthis.dragOver = false;\n\t}\n\n\tremoveFile(fileItem) {\n\t\t// Deleting an item from this.files removes the <ibm-file> component,\n\t\t// which triggers its ngOnDestroy(), which fires the (remove) event again.\n\t\t// So, (remove) may double-fire and we need to handle it here.\n\t\tif (this.files && this.files.has(fileItem)) {\n\t\t\tconst newFiles = new Set<FileItem>(this.files);\n\t\t\tnewFiles.delete(fileItem);\n\t\t\tthis.filesChange.emit(newFiles);\n\t\t\tthis.value = newFiles;\n\t\t}\n\t\tthis.fileInput.nativeElement.value = \"\";\n\t}\n\n\tpublic isTemplate(value) {\n\t\treturn value instanceof TemplateRef;\n\t}\n\n\t/**\n\t * Registers the injected function to control the touch use of the `FileUploader`.\n\t */\n\tregisterOnTouched(fn: any) {\n\t\tthis.onTouchedCallback = fn;\n\t}\n\t/**\n\t * Sets a method in order to propagate changes back to the form.\n\t */\n\tregisterOnChange(fn: any) {\n\t\tthis.onChangeCallback = fn;\n\t}\n\n\t/**\n\t * `ControlValueAccessor` method to programmatically disable the checkbox.\n\t *\n\t * ex: `this.formGroup.get(\"myFileUploader\").disable();`\n\t *\n\t * @param isDisabled `true` to disable the file uploader\n\t */\n\tsetDisabledState(isDisabled: boolean) {\n\t\tthis.disabled = isDisabled;\n\t}\n}\n",
|
|
30231
30231
|
"assetsDirs": [],
|
|
30232
30232
|
"styleUrlsData": "",
|
|
30233
30233
|
"stylesData": "",
|
|
@@ -40670,7 +40670,7 @@
|
|
|
40670
40670
|
},
|
|
40671
40671
|
{
|
|
40672
40672
|
"name": "Panel",
|
|
40673
|
-
"id": "component-Panel-
|
|
40673
|
+
"id": "component-Panel-2ebb497352d8b5e724a48a5dbe4e559c148a551fe1555e8055f412750fe28413df088da970c326c542c87aec05b419931083dec3b7b82b3addad058073842504",
|
|
40674
40674
|
"file": "src/ui-shell/panel/panel.component.ts",
|
|
40675
40675
|
"encapsulation": [],
|
|
40676
40676
|
"entryComponents": [],
|
|
@@ -40687,11 +40687,10 @@
|
|
|
40687
40687
|
"inputsClass": [
|
|
40688
40688
|
{
|
|
40689
40689
|
"name": "ariaLabel",
|
|
40690
|
-
"defaultValue": "\"Header panel\"",
|
|
40691
40690
|
"deprecated": false,
|
|
40692
40691
|
"deprecationMessage": "",
|
|
40693
40692
|
"line": 26,
|
|
40694
|
-
"type": "
|
|
40693
|
+
"type": "any",
|
|
40695
40694
|
"decorators": []
|
|
40696
40695
|
},
|
|
40697
40696
|
{
|
|
@@ -40718,7 +40717,7 @@
|
|
|
40718
40717
|
"description": "<p><code>Panel</code> is a component that can be used to display content on the right side of the screen.\n<code>Panel</code>s are generally activated by and linked to a <code>HeaderAction</code> component.</p>\n",
|
|
40719
40718
|
"rawdescription": "\n\n`Panel` is a component that can be used to display content on the right side of the screen.\n`Panel`s are generally activated by and linked to a `HeaderAction` component.\n",
|
|
40720
40719
|
"type": "component",
|
|
40721
|
-
"sourceCode": "import { Component, Input } from \"@angular/core\";\n\n/**\n * `Panel` is a component that can be used to display content on the right side of the screen.\n * `Panel`s are generally activated by and linked to a `HeaderAction` component.\n */\n@Component({\n\tselector: \"cds-panel, ibm-panel\",\n\ttemplate: `\n\t\t<div\n\t\t\tclass=\"cds--header-panel\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--header-panel--expanded': expanded\n\t\t\t}\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`\n})\nexport class Panel {\n\t/**\n\t * Controls the visibility of the panel\n\t */\n\t@Input() expanded = false;\n\n\t@Input() ariaLabel
|
|
40720
|
+
"sourceCode": "import { Component, Input } from \"@angular/core\";\n\n/**\n * `Panel` is a component that can be used to display content on the right side of the screen.\n * `Panel`s are generally activated by and linked to a `HeaderAction` component.\n */\n@Component({\n\tselector: \"cds-panel, ibm-panel\",\n\ttemplate: `\n\t\t<div\n\t\t\tclass=\"cds--header-panel\"\n\t\t\t[attr.aria-label]=\"ariaLabel\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'cds--header-panel--expanded': expanded\n\t\t\t}\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`\n})\nexport class Panel {\n\t/**\n\t * Controls the visibility of the panel\n\t */\n\t@Input() expanded = false;\n\n\t@Input() ariaLabel;\n}\n",
|
|
40722
40721
|
"assetsDirs": [],
|
|
40723
40722
|
"styleUrlsData": "",
|
|
40724
40723
|
"stylesData": ""
|