@carbon/ibm-products-web-components 0.24.1 → 0.25.0-rc.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/custom-elements.json +263 -0
- package/es/components/checklist/checklist-chart.d.ts +25 -0
- package/es/components/checklist/checklist-chart.js +81 -0
- package/es/components/checklist/checklist-chart.js.map +1 -0
- package/es/components/checklist/checklist-group.d.ts +25 -0
- package/es/components/checklist/checklist-group.js +58 -0
- package/es/components/checklist/checklist-group.js.map +1 -0
- package/es/components/checklist/checklist-icon.d.ts +26 -0
- package/es/components/checklist/checklist-icon.js +72 -0
- package/es/components/checklist/checklist-icon.js.map +1 -0
- package/es/components/checklist/checklist-item.d.ts +40 -0
- package/es/components/checklist/checklist-item.js +122 -0
- package/es/components/checklist/checklist-item.js.map +1 -0
- package/es/components/checklist/checklist.d.ts +71 -0
- package/es/components/checklist/checklist.js +187 -0
- package/es/components/checklist/checklist.js.map +1 -0
- package/es/components/checklist/checklist.scss.js +13 -0
- package/es/components/checklist/checklist.scss.js.map +1 -0
- package/es/components/checklist/checklist.test.d.ts +7 -0
- package/es/components/checklist/checklist.test.js +172 -0
- package/es/components/checklist/checklist.test.js.map +1 -0
- package/es/components/checklist/checklist.types.d.ts +22 -0
- package/es/components/checklist/checklist.types.js +32 -0
- package/es/components/checklist/checklist.types.js.map +1 -0
- package/es/components/checklist/index.d.ts +13 -0
- package/es/components/checklist/index.js +13 -0
- package/es/components/checklist/index.js.map +1 -0
- package/es/packages/ibm-products-web-components/package.json.js +1 -1
- package/es-custom/components/checklist/checklist-chart.d.ts +25 -0
- package/es-custom/components/checklist/checklist-chart.js +81 -0
- package/es-custom/components/checklist/checklist-chart.js.map +1 -0
- package/es-custom/components/checklist/checklist-group.d.ts +25 -0
- package/es-custom/components/checklist/checklist-group.js +58 -0
- package/es-custom/components/checklist/checklist-group.js.map +1 -0
- package/es-custom/components/checklist/checklist-icon.d.ts +26 -0
- package/es-custom/components/checklist/checklist-icon.js +72 -0
- package/es-custom/components/checklist/checklist-icon.js.map +1 -0
- package/es-custom/components/checklist/checklist-item.d.ts +40 -0
- package/es-custom/components/checklist/checklist-item.js +122 -0
- package/es-custom/components/checklist/checklist-item.js.map +1 -0
- package/es-custom/components/checklist/checklist.d.ts +71 -0
- package/es-custom/components/checklist/checklist.js +187 -0
- package/es-custom/components/checklist/checklist.js.map +1 -0
- package/es-custom/components/checklist/checklist.scss.js +13 -0
- package/es-custom/components/checklist/checklist.scss.js.map +1 -0
- package/es-custom/components/checklist/checklist.test.d.ts +7 -0
- package/es-custom/components/checklist/checklist.test.js +172 -0
- package/es-custom/components/checklist/checklist.test.js.map +1 -0
- package/es-custom/components/checklist/checklist.types.d.ts +22 -0
- package/es-custom/components/checklist/checklist.types.js +32 -0
- package/es-custom/components/checklist/checklist.types.js.map +1 -0
- package/es-custom/components/checklist/index.d.ts +13 -0
- package/es-custom/components/checklist/index.js +13 -0
- package/es-custom/components/checklist/index.js.map +1 -0
- package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
- package/lib/components/checklist/checklist-chart.d.ts +25 -0
- package/lib/components/checklist/checklist-group.d.ts +25 -0
- package/lib/components/checklist/checklist-icon.d.ts +26 -0
- package/lib/components/checklist/checklist-item.d.ts +40 -0
- package/lib/components/checklist/checklist.d.ts +71 -0
- package/lib/components/checklist/checklist.test.d.ts +7 -0
- package/lib/components/checklist/checklist.types.d.ts +22 -0
- package/lib/components/checklist/index.d.ts +13 -0
- package/package.json +3 -3
- package/scss/components/checklist/checklist.scss +65 -0
- package/telemetry.yml +26 -5
@@ -0,0 +1,26 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025
|
5
|
+
*
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
|
+
import { LitElement } from 'lit';
|
10
|
+
import '@carbon/web-components/es/components/icon/index.js';
|
11
|
+
import { Kinds } from './checklist.types';
|
12
|
+
/**
|
13
|
+
* @element c4p-checklist-icon
|
14
|
+
* Represents checklist item status with different icons (unchecked, checked, indeterminate, error).
|
15
|
+
*/
|
16
|
+
declare class CDSChecklistIcon extends LitElement {
|
17
|
+
/**
|
18
|
+
* The icon to be displayed.
|
19
|
+
* Values can be 'unchecked', 'indeterminate', 'checked', 'error', 'disabled'
|
20
|
+
|
21
|
+
*/
|
22
|
+
kind: Kinds;
|
23
|
+
render(): import("lit-html").TemplateResult<1>;
|
24
|
+
static styles: any;
|
25
|
+
}
|
26
|
+
export default CDSChecklistIcon;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025
|
5
|
+
*
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
|
+
import { LitElement } from 'lit';
|
10
|
+
/**
|
11
|
+
* item in c4p-checklist-group
|
12
|
+
* @element c4p-checklist-item
|
13
|
+
* @slot icon - checklist item icon, usually a status indicator icon
|
14
|
+
* @slot content - checklist item title/description
|
15
|
+
* @fires c4p-checklist-item-clicked - The custom event which is fired when a user clicks on checklist item with clickable attribute.
|
16
|
+
*/
|
17
|
+
declare class CDSChecklistItem extends LitElement {
|
18
|
+
/**
|
19
|
+
* label of the c4p-checklist-item
|
20
|
+
*/
|
21
|
+
label: any;
|
22
|
+
/**
|
23
|
+
* status of the c4p-checklist-item
|
24
|
+
* Values can be 'not started', 'in progress', 'completed', 'error', 'disabled'
|
25
|
+
*/
|
26
|
+
status: any;
|
27
|
+
/** When true, makes the checklist item label clickable */
|
28
|
+
clickable: boolean;
|
29
|
+
private _handleClick;
|
30
|
+
private _mapStatusToKind;
|
31
|
+
private _updateAttributes;
|
32
|
+
firstUpdated(): void;
|
33
|
+
render(): import("lit-html").TemplateResult<1>;
|
34
|
+
/**
|
35
|
+
* The custom event which is fired when the checklist item is clicked.
|
36
|
+
*/
|
37
|
+
static get checklistItemClicked(): string;
|
38
|
+
static styles: any;
|
39
|
+
}
|
40
|
+
export default CDSChecklistItem;
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025
|
5
|
+
*
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
|
+
import { LitElement } from 'lit';
|
10
|
+
import '@carbon/web-components/es/components/icon-button/index.js';
|
11
|
+
import './checklist-chart';
|
12
|
+
import './checklist-icon';
|
13
|
+
/**
|
14
|
+
* @element c4p-checklist
|
15
|
+
* @slot checklist-header - Header area which includes the title and the progress indicator.
|
16
|
+
* @slot default - Contains one or more `c4p-checklist-group` components to organize tasks into logical groups.
|
17
|
+
* @slot checklist-footer - Optional footer area for actions like buttons, links, or additional notes.
|
18
|
+
* @fires c4p-checklist-view-all - The custom event which is fired when a user clicks on View All button in checklist footer.
|
19
|
+
* @fires c4p-checklist-toggle - The custom event which is fired when user clicks on toggle button in checklist header.
|
20
|
+
*/
|
21
|
+
declare class CDSChecklist extends LitElement {
|
22
|
+
/**
|
23
|
+
* Specifies whether the component is opened or closed.
|
24
|
+
*/
|
25
|
+
open: boolean;
|
26
|
+
/**
|
27
|
+
* The title of the component.
|
28
|
+
*/
|
29
|
+
title: any;
|
30
|
+
/**
|
31
|
+
* The label for progress indicator chart
|
32
|
+
*/
|
33
|
+
chartLabel: any;
|
34
|
+
/**
|
35
|
+
* A number between 0 and 1 which indicates the progress of checklist
|
36
|
+
*/
|
37
|
+
chartValue: any;
|
38
|
+
/**
|
39
|
+
* Whether or not to show the open/close toggle.
|
40
|
+
*/
|
41
|
+
disableToggle: boolean;
|
42
|
+
/**
|
43
|
+
* The label for the toggle's tooltip.
|
44
|
+
*/
|
45
|
+
toggleLabel: any;
|
46
|
+
/**
|
47
|
+
* The alignment of the toggle's tooltip.
|
48
|
+
*/
|
49
|
+
toggleLabelAlign: any;
|
50
|
+
/**
|
51
|
+
* Aria-label for the Checklist's toggle component.
|
52
|
+
*/
|
53
|
+
toggleAriaLabel: any;
|
54
|
+
/**
|
55
|
+
* If defined, will show and enable the "View all (#)" button in the checklist footer.
|
56
|
+
*/
|
57
|
+
viewAllLabel: any;
|
58
|
+
private _viewAll;
|
59
|
+
private _onToggle;
|
60
|
+
render(): import("lit-html").TemplateResult<1>;
|
61
|
+
/**
|
62
|
+
* The custom event which is fired when the view all button in checklist footer is clicked or when the Enter key is pressed on it.
|
63
|
+
*/
|
64
|
+
static get checklistViewAll(): string;
|
65
|
+
/**
|
66
|
+
* The custom event which is fired when the checklist toggle button is clicked or when the Enter key is pressed on it.
|
67
|
+
*/
|
68
|
+
static get checklistToggle(): string;
|
69
|
+
static styles: any;
|
70
|
+
}
|
71
|
+
export default CDSChecklist;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2025
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
export declare enum Kinds {
|
8
|
+
unchecked = "unchecked",
|
9
|
+
indeterminate = "indeterminate",
|
10
|
+
checked = "checked",
|
11
|
+
disabled = "disabled",
|
12
|
+
error = "error"
|
13
|
+
}
|
14
|
+
export type Kind = Kinds.unchecked | Kinds.indeterminate | Kinds.checked | Kinds.disabled | Kinds.error;
|
15
|
+
export declare enum Statuses {
|
16
|
+
NotStarted = "not started",
|
17
|
+
InProgress = "in progress",
|
18
|
+
Completed = "completed",
|
19
|
+
Error = "error",
|
20
|
+
Disabled = "disabled"
|
21
|
+
}
|
22
|
+
export type Status = Statuses.NotStarted | Statuses.InProgress | Statuses.Completed | Statuses.Error | Statuses.Disabled;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025
|
5
|
+
*
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
|
+
import './checklist-group';
|
10
|
+
import './checklist-item';
|
11
|
+
import './checklist-chart';
|
12
|
+
import './checklist-icon';
|
13
|
+
import './checklist';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products-web-components",
|
3
3
|
"description": "Carbon for IBM Products Web Components",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.25.0-rc.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "es/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
},
|
57
57
|
"dependencies": {
|
58
58
|
"@carbon-labs/wc-empty-state": "^0.9.0",
|
59
|
-
"@carbon/ibm-products-styles": "^2.
|
59
|
+
"@carbon/ibm-products-styles": "^2.72.0-rc.0",
|
60
60
|
"@carbon/styles": "1.89.0",
|
61
61
|
"@carbon/web-components": "2.37.0",
|
62
62
|
"@ibm/telemetry-js": "^1.10.2",
|
@@ -105,5 +105,5 @@
|
|
105
105
|
"vitest": "^3.2.0",
|
106
106
|
"web-component-analyzer": "2.0.0"
|
107
107
|
},
|
108
|
-
"gitHead": "
|
108
|
+
"gitHead": "bf120ae9c3bf30ed5898cd7684f1f04ac3d137d9"
|
109
109
|
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2025
|
3
|
+
//
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
6
|
+
//
|
7
|
+
|
8
|
+
$css--plex: true !default;
|
9
|
+
|
10
|
+
@use '@carbon/styles/scss/reset';
|
11
|
+
@use '@carbon/styles/scss/spacing';
|
12
|
+
@use '@carbon/styles/scss/theme';
|
13
|
+
@use '@carbon/styles/scss/colors';
|
14
|
+
@use '@carbon/styles/scss/components/tag';
|
15
|
+
@use '@carbon/ibm-products-styles/scss/config';
|
16
|
+
@use '@carbon/ibm-products-styles/scss/components/Checklist/index' as checklist;
|
17
|
+
|
18
|
+
$prefix: config.$pkg-prefix;
|
19
|
+
$carbon-prefix: config.$carbon-prefix;
|
20
|
+
|
21
|
+
$baseClass: #{$prefix}--checklist;
|
22
|
+
|
23
|
+
:host(#{$prefix}-checklist) {
|
24
|
+
.#{$baseClass}__toggle {
|
25
|
+
margin-block-start: calc(-1 * spacing.$spacing-03);
|
26
|
+
margin-inline: auto calc(-1 * spacing.$spacing-03);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
:host(#{$prefix}-checklist-item) {
|
31
|
+
display: flex;
|
32
|
+
margin-block-end: spacing.$spacing-03;
|
33
|
+
}
|
34
|
+
|
35
|
+
:host(#{$prefix}-checklist-item:last-of-type) {
|
36
|
+
margin-block-end: 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
:host(#{$prefix}-checklist-group) {
|
40
|
+
display: block;
|
41
|
+
padding: spacing.$spacing-05;
|
42
|
+
border-block-start: 1px solid theme.$border-subtle-01;
|
43
|
+
}
|
44
|
+
|
45
|
+
:host(#{$prefix}-checklist-group:first-of-type) {
|
46
|
+
border-block-start: none;
|
47
|
+
}
|
48
|
+
|
49
|
+
.#{$baseClass}__label--clickable {
|
50
|
+
color: theme.$link-primary;
|
51
|
+
cursor: pointer;
|
52
|
+
}
|
53
|
+
|
54
|
+
.#{$baseClass}__label--clickable:hover {
|
55
|
+
color: theme.$link-primary-hover;
|
56
|
+
text-decoration: underline;
|
57
|
+
}
|
58
|
+
|
59
|
+
.#{$baseClass}__chart {
|
60
|
+
border-radius: 50%;
|
61
|
+
background-image: conic-gradient(
|
62
|
+
colors.$purple-50 var(--#{$prefix}-num-degrees),
|
63
|
+
tag.$tag-background-gray var(--#{$prefix}-num-degrees) 360deg
|
64
|
+
);
|
65
|
+
}
|
package/telemetry.yml
CHANGED
@@ -28,6 +28,7 @@ collect:
|
|
28
28
|
- title
|
29
29
|
- type
|
30
30
|
- value
|
31
|
+
- view-all-label
|
31
32
|
- within-grid
|
32
33
|
# c4p-about-modal
|
33
34
|
- additionalInfo
|
@@ -38,6 +39,19 @@ collect:
|
|
38
39
|
- onc4p-about-modal-beingclosed
|
39
40
|
- onc4p-about-modal-closed
|
40
41
|
- version
|
42
|
+
# c4p-checklist
|
43
|
+
- chart-label
|
44
|
+
- chart-value
|
45
|
+
- disable-toggle
|
46
|
+
- onc4p-checklist-toggle
|
47
|
+
- onc4p-checklist-view-all
|
48
|
+
- toggle-aria-label
|
49
|
+
- toggle-label
|
50
|
+
- toggle-label-align
|
51
|
+
# c4p-checklist-item
|
52
|
+
- clickable
|
53
|
+
- onc4p-checklist-item-clicked
|
54
|
+
- status
|
41
55
|
# c4p-interstitial-screen
|
42
56
|
- fullscreen
|
43
57
|
- onc4p-interstitial-beingclosed
|
@@ -65,7 +79,6 @@ collect:
|
|
65
79
|
# c4p-notification-footer
|
66
80
|
- onc4p-notification-settings
|
67
81
|
- onc4p-notification-view-all
|
68
|
-
- view-all-label
|
69
82
|
# c4p-notification-panel
|
70
83
|
- date-time-locale
|
71
84
|
- dismiss-all-label
|
@@ -134,12 +147,17 @@ collect:
|
|
134
147
|
- tags-data
|
135
148
|
allowedAttributeStringValues:
|
136
149
|
# General - boolean attributes
|
137
|
-
-
|
138
|
-
-
|
150
|
+
- "true"
|
151
|
+
- "false"
|
139
152
|
# General - kind
|
140
|
-
-
|
141
|
-
-
|
153
|
+
- "403"
|
154
|
+
- "404"
|
155
|
+
- checked
|
142
156
|
- custom
|
157
|
+
- disabled
|
158
|
+
- error
|
159
|
+
- indeterminate
|
160
|
+
- unchecked
|
143
161
|
# General - size
|
144
162
|
- 2xl
|
145
163
|
- lg
|
@@ -171,3 +189,6 @@ collect:
|
|
171
189
|
js:
|
172
190
|
functions: {}
|
173
191
|
tokens: null
|
192
|
+
js:
|
193
|
+
functions: {}
|
194
|
+
tokens: null
|