@carbon/ibm-products-web-components 0.24.1 → 0.25.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.
Files changed (66) hide show
  1. package/custom-elements.json +263 -0
  2. package/es/components/checklist/checklist-chart.d.ts +25 -0
  3. package/es/components/checklist/checklist-chart.js +81 -0
  4. package/es/components/checklist/checklist-chart.js.map +1 -0
  5. package/es/components/checklist/checklist-group.d.ts +25 -0
  6. package/es/components/checklist/checklist-group.js +58 -0
  7. package/es/components/checklist/checklist-group.js.map +1 -0
  8. package/es/components/checklist/checklist-icon.d.ts +26 -0
  9. package/es/components/checklist/checklist-icon.js +72 -0
  10. package/es/components/checklist/checklist-icon.js.map +1 -0
  11. package/es/components/checklist/checklist-item.d.ts +40 -0
  12. package/es/components/checklist/checklist-item.js +122 -0
  13. package/es/components/checklist/checklist-item.js.map +1 -0
  14. package/es/components/checklist/checklist.d.ts +71 -0
  15. package/es/components/checklist/checklist.js +187 -0
  16. package/es/components/checklist/checklist.js.map +1 -0
  17. package/es/components/checklist/checklist.scss.js +13 -0
  18. package/es/components/checklist/checklist.scss.js.map +1 -0
  19. package/es/components/checklist/checklist.test.d.ts +7 -0
  20. package/es/components/checklist/checklist.test.js +172 -0
  21. package/es/components/checklist/checklist.test.js.map +1 -0
  22. package/es/components/checklist/checklist.types.d.ts +22 -0
  23. package/es/components/checklist/checklist.types.js +32 -0
  24. package/es/components/checklist/checklist.types.js.map +1 -0
  25. package/es/components/checklist/index.d.ts +13 -0
  26. package/es/components/checklist/index.js +13 -0
  27. package/es/components/checklist/index.js.map +1 -0
  28. package/es/packages/ibm-products-web-components/package.json.js +1 -1
  29. package/es-custom/components/checklist/checklist-chart.d.ts +25 -0
  30. package/es-custom/components/checklist/checklist-chart.js +81 -0
  31. package/es-custom/components/checklist/checklist-chart.js.map +1 -0
  32. package/es-custom/components/checklist/checklist-group.d.ts +25 -0
  33. package/es-custom/components/checklist/checklist-group.js +58 -0
  34. package/es-custom/components/checklist/checklist-group.js.map +1 -0
  35. package/es-custom/components/checklist/checklist-icon.d.ts +26 -0
  36. package/es-custom/components/checklist/checklist-icon.js +72 -0
  37. package/es-custom/components/checklist/checklist-icon.js.map +1 -0
  38. package/es-custom/components/checklist/checklist-item.d.ts +40 -0
  39. package/es-custom/components/checklist/checklist-item.js +122 -0
  40. package/es-custom/components/checklist/checklist-item.js.map +1 -0
  41. package/es-custom/components/checklist/checklist.d.ts +71 -0
  42. package/es-custom/components/checklist/checklist.js +187 -0
  43. package/es-custom/components/checklist/checklist.js.map +1 -0
  44. package/es-custom/components/checklist/checklist.scss.js +13 -0
  45. package/es-custom/components/checklist/checklist.scss.js.map +1 -0
  46. package/es-custom/components/checklist/checklist.test.d.ts +7 -0
  47. package/es-custom/components/checklist/checklist.test.js +172 -0
  48. package/es-custom/components/checklist/checklist.test.js.map +1 -0
  49. package/es-custom/components/checklist/checklist.types.d.ts +22 -0
  50. package/es-custom/components/checklist/checklist.types.js +32 -0
  51. package/es-custom/components/checklist/checklist.types.js.map +1 -0
  52. package/es-custom/components/checklist/index.d.ts +13 -0
  53. package/es-custom/components/checklist/index.js +13 -0
  54. package/es-custom/components/checklist/index.js.map +1 -0
  55. package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
  56. package/lib/components/checklist/checklist-chart.d.ts +25 -0
  57. package/lib/components/checklist/checklist-group.d.ts +25 -0
  58. package/lib/components/checklist/checklist-icon.d.ts +26 -0
  59. package/lib/components/checklist/checklist-item.d.ts +40 -0
  60. package/lib/components/checklist/checklist.d.ts +71 -0
  61. package/lib/components/checklist/checklist.test.d.ts +7 -0
  62. package/lib/components/checklist/checklist.types.d.ts +22 -0
  63. package/lib/components/checklist/index.d.ts +13 -0
  64. package/package.json +3 -3
  65. package/scss/components/checklist/checklist.scss +65 -0
  66. package/telemetry.yml +26 -5
@@ -151,6 +151,269 @@
151
151
  }
152
152
  ]
153
153
  },
154
+ {
155
+ "name": "c4p-checklist-chart",
156
+ "path": "./src/components/checklist/checklist-chart.ts",
157
+ "attributes": [
158
+ {
159
+ "name": "value",
160
+ "description": "A number between 0 and 1 which indicates the progress of checklist",
161
+ "type": "number",
162
+ "default": "0"
163
+ }
164
+ ],
165
+ "properties": [
166
+ {
167
+ "name": "styles",
168
+ "default": "\"styles\""
169
+ },
170
+ {
171
+ "name": "value",
172
+ "attribute": "value",
173
+ "description": "A number between 0 and 1 which indicates the progress of checklist",
174
+ "type": "number",
175
+ "default": "0"
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "name": "c4p-checklist-group",
181
+ "path": "./src/components/checklist/checklist-group.ts",
182
+ "description": "Sections in c4p-checklist",
183
+ "attributes": [
184
+ {
185
+ "name": "title",
186
+ "description": "Title text of the c4p-checklist-group"
187
+ }
188
+ ],
189
+ "properties": [
190
+ {
191
+ "name": "title",
192
+ "attribute": "title",
193
+ "description": "Title text of the c4p-checklist-group"
194
+ },
195
+ {
196
+ "name": "styles",
197
+ "default": "\"styles\""
198
+ }
199
+ ],
200
+ "slots": [
201
+ {
202
+ "name": "default",
203
+ "description": "Contains one or more `c4p-checklist-item` components"
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "name": "c4p-checklist-icon",
209
+ "path": "./src/components/checklist/checklist-icon.ts",
210
+ "attributes": [
211
+ {
212
+ "name": "kind",
213
+ "description": "The icon to be displayed.\nValues can be 'unchecked', 'indeterminate', 'checked', 'error', 'disabled'",
214
+ "type": "Kinds",
215
+ "default": "\"unchecked\""
216
+ }
217
+ ],
218
+ "properties": [
219
+ {
220
+ "name": "kind",
221
+ "attribute": "kind",
222
+ "description": "The icon to be displayed.\nValues can be 'unchecked', 'indeterminate', 'checked', 'error', 'disabled'",
223
+ "type": "Kinds",
224
+ "default": "\"unchecked\""
225
+ },
226
+ {
227
+ "name": "styles",
228
+ "default": "\"styles\""
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ "name": "c4p-checklist-item",
234
+ "path": "./src/components/checklist/checklist-item.ts",
235
+ "description": "item in c4p-checklist-group",
236
+ "attributes": [
237
+ {
238
+ "name": "label",
239
+ "description": "label of the c4p-checklist-item"
240
+ },
241
+ {
242
+ "name": "status",
243
+ "description": "status of the c4p-checklist-item\nValues can be 'not started', 'in progress', 'completed', 'error', 'disabled'"
244
+ },
245
+ {
246
+ "name": "clickable",
247
+ "description": "When true, makes the checklist item label clickable",
248
+ "type": "boolean",
249
+ "default": "false"
250
+ }
251
+ ],
252
+ "properties": [
253
+ {
254
+ "name": "label",
255
+ "attribute": "label",
256
+ "description": "label of the c4p-checklist-item"
257
+ },
258
+ {
259
+ "name": "status",
260
+ "attribute": "status",
261
+ "description": "status of the c4p-checklist-item\nValues can be 'not started', 'in progress', 'completed', 'error', 'disabled'"
262
+ },
263
+ {
264
+ "name": "clickable",
265
+ "attribute": "clickable",
266
+ "description": "When true, makes the checklist item label clickable",
267
+ "type": "boolean",
268
+ "default": "false"
269
+ },
270
+ {
271
+ "name": "styles",
272
+ "default": "\"styles\""
273
+ }
274
+ ],
275
+ "events": [
276
+ {
277
+ "name": "c4p-checklist-item-clicked",
278
+ "description": "The custom event which is fired when a user clicks on checklist item with clickable attribute."
279
+ }
280
+ ],
281
+ "slots": [
282
+ {
283
+ "name": "icon",
284
+ "description": "checklist item icon, usually a status indicator icon"
285
+ },
286
+ {
287
+ "name": "content",
288
+ "description": "checklist item title/description"
289
+ }
290
+ ]
291
+ },
292
+ {
293
+ "name": "c4p-checklist",
294
+ "path": "./src/components/checklist/checklist.ts",
295
+ "attributes": [
296
+ {
297
+ "name": "open",
298
+ "description": "Specifies whether the component is opened or closed.",
299
+ "type": "boolean",
300
+ "default": "false"
301
+ },
302
+ {
303
+ "name": "title",
304
+ "description": "The title of the component."
305
+ },
306
+ {
307
+ "name": "chart-label",
308
+ "description": "The label for progress indicator chart"
309
+ },
310
+ {
311
+ "name": "chart-value",
312
+ "description": "A number between 0 and 1 which indicates the progress of checklist"
313
+ },
314
+ {
315
+ "name": "disable-toggle",
316
+ "description": "Whether or not to show the open/close toggle.",
317
+ "type": "boolean",
318
+ "default": "false"
319
+ },
320
+ {
321
+ "name": "toggle-label",
322
+ "description": "The label for the toggle's tooltip."
323
+ },
324
+ {
325
+ "name": "toggle-label-align",
326
+ "description": "The alignment of the toggle's tooltip."
327
+ },
328
+ {
329
+ "name": "toggle-aria-label",
330
+ "description": "Aria-label for the Checklist's toggle component."
331
+ },
332
+ {
333
+ "name": "view-all-label",
334
+ "description": "If defined, will show and enable the \"View all (#)\" button in the checklist footer."
335
+ }
336
+ ],
337
+ "properties": [
338
+ {
339
+ "name": "open",
340
+ "attribute": "open",
341
+ "description": "Specifies whether the component is opened or closed.",
342
+ "type": "boolean",
343
+ "default": "false"
344
+ },
345
+ {
346
+ "name": "title",
347
+ "attribute": "title",
348
+ "description": "The title of the component."
349
+ },
350
+ {
351
+ "name": "chartLabel",
352
+ "attribute": "chart-label",
353
+ "description": "The label for progress indicator chart"
354
+ },
355
+ {
356
+ "name": "chartValue",
357
+ "attribute": "chart-value",
358
+ "description": "A number between 0 and 1 which indicates the progress of checklist"
359
+ },
360
+ {
361
+ "name": "disableToggle",
362
+ "attribute": "disable-toggle",
363
+ "description": "Whether or not to show the open/close toggle.",
364
+ "type": "boolean",
365
+ "default": "false"
366
+ },
367
+ {
368
+ "name": "toggleLabel",
369
+ "attribute": "toggle-label",
370
+ "description": "The label for the toggle's tooltip."
371
+ },
372
+ {
373
+ "name": "toggleLabelAlign",
374
+ "attribute": "toggle-label-align",
375
+ "description": "The alignment of the toggle's tooltip."
376
+ },
377
+ {
378
+ "name": "toggleAriaLabel",
379
+ "attribute": "toggle-aria-label",
380
+ "description": "Aria-label for the Checklist's toggle component."
381
+ },
382
+ {
383
+ "name": "viewAllLabel",
384
+ "attribute": "view-all-label",
385
+ "description": "If defined, will show and enable the \"View all (#)\" button in the checklist footer."
386
+ },
387
+ {
388
+ "name": "styles",
389
+ "default": "\"styles\""
390
+ }
391
+ ],
392
+ "events": [
393
+ {
394
+ "name": "c4p-checklist-view-all",
395
+ "description": "The custom event which is fired when a user clicks on View All button in checklist footer."
396
+ },
397
+ {
398
+ "name": "c4p-checklist-toggle",
399
+ "description": "The custom event which is fired when user clicks on toggle button in checklist header."
400
+ }
401
+ ],
402
+ "slots": [
403
+ {
404
+ "name": "checklist-header",
405
+ "description": "Header area which includes the title and the progress indicator."
406
+ },
407
+ {
408
+ "name": "default",
409
+ "description": "Contains one or more `c4p-checklist-group` components to organize tasks into logical groups."
410
+ },
411
+ {
412
+ "name": "checklist-footer",
413
+ "description": "Optional footer area for actions like buttons, links, or additional notes."
414
+ }
415
+ ]
416
+ },
154
417
  {
155
418
  "name": "c4p-full-page-error",
156
419
  "path": "./src/components/full-page-error/full-page-error.ts",
@@ -0,0 +1,25 @@
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
+ * @element c4p-checklist-chart
12
+ */
13
+ declare class CDSChecklistChart extends LitElement {
14
+ /**
15
+ * A number between 0 and 1 which indicates the progress of checklist
16
+ */
17
+ value: number;
18
+ connectedCallback(): void;
19
+ private _updateChart;
20
+ static get observedAttributes(): string[];
21
+ attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
22
+ render(): symbol;
23
+ static styles: any;
24
+ }
25
+ export default CDSChecklistChart;
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+ import { __decorate } from 'tslib';
9
+ import { LitElement, nothing } from 'lit';
10
+ import { property } from 'lit/decorators.js';
11
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
12
+ import { prefix } from '../../globals/settings.js';
13
+ import styles from './checklist.scss.js';
14
+
15
+ /**
16
+ * @license
17
+ *
18
+ * Copyright IBM Corp. 2025
19
+ *
20
+ * This source code is licensed under the Apache-2.0 license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */
23
+ const blockClass = `${prefix}--checklist__chart`;
24
+ /**
25
+ * Clamps a value between a minimum and maximum.
26
+ * If the value, min, or max is NaN, the function returns void.
27
+ *
28
+ */
29
+ const clamp = (value, min, max) => {
30
+ if (isNaN(value) || isNaN(min) || isNaN(max)) {
31
+ return;
32
+ }
33
+ {
34
+ value = value <= max ? value : max;
35
+ }
36
+ {
37
+ value = value >= min ? value : min;
38
+ }
39
+ return value;
40
+ };
41
+ /**
42
+ * @element c4p-checklist-chart
43
+ */
44
+ let CDSChecklistChart = class CDSChecklistChart extends LitElement {
45
+ constructor() {
46
+ super(...arguments);
47
+ /**
48
+ * A number between 0 and 1 which indicates the progress of checklist
49
+ */
50
+ this.value = 0;
51
+ }
52
+ connectedCallback() {
53
+ super.connectedCallback();
54
+ this.classList.add(`${blockClass}`);
55
+ }
56
+ _updateChart(value) {
57
+ this.style.setProperty(`--${prefix}-num-degrees`, `${clamp(value * 360, 0, 360)}deg`);
58
+ }
59
+ static get observedAttributes() {
60
+ return ['value'];
61
+ }
62
+ attributeChangedCallback(name, oldValue, newValue) {
63
+ if (name === 'value' && oldValue !== newValue) {
64
+ this._updateChart(newValue);
65
+ }
66
+ }
67
+ render() {
68
+ return nothing;
69
+ }
70
+ };
71
+ CDSChecklistChart.styles = styles;
72
+ __decorate([
73
+ property({ type: Number })
74
+ ], CDSChecklistChart.prototype, "value", void 0);
75
+ CDSChecklistChart = __decorate([
76
+ carbonElement(`${prefix}-checklist-chart`)
77
+ ], CDSChecklistChart);
78
+ var CDSChecklistChart$1 = CDSChecklistChart;
79
+
80
+ export { CDSChecklistChart$1 as default };
81
+ //# sourceMappingURL=checklist-chart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklist-chart.js","sources":["../../../src/components/checklist/checklist-chart.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AASH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,oBAAoB;AAEhD;;;;AAIG;AACH,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,KAAmB;AACvE,IAAA,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE;QAC5C;;AAEF,IAAuB;AACrB,QAAA,KAAK,GAAG,KAAK,IAAI,GAAG,GAAG,KAAK,GAAG,GAAG;;AAEpC,IAAuB;AACrB,QAAA,KAAK,GAAG,KAAK,IAAI,GAAG,GAAG,KAAK,GAAG,GAAG;;AAEpC,IAAA,OAAO,KAAK;AACd,CAAC;AAED;;AAEG;AAEH,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU,CAAA;AAA1C,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,CAAC;;IAET,iBAAiB,GAAA;QACf,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAG,EAAA,UAAU,CAAE,CAAA,CAAC;;AAG7B,IAAA,YAAY,CAAC,KAAK,EAAA;QACxB,IAAI,CAAC,KAAK,CAAC,WAAW,CACpB,CAAK,EAAA,EAAA,MAAM,CAAc,YAAA,CAAA,EACzB,CAAG,EAAA,KAAK,CAAC,KAAK,GAAG,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAK,GAAA,CAAA,CACnC;;AAGH,IAAA,WAAW,kBAAkB,GAAA;QAC3B,OAAO,CAAC,OAAO,CAAC;;AAGlB,IAAA,wBAAwB,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAA;QAC/C,IAAI,IAAI,KAAK,OAAO,IAAI,QAAQ,KAAK,QAAQ,EAAE;AAC7C,YAAA,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;;;IAI/B,MAAM,GAAA;AACJ,QAAA,OAAO,OAAO;;;AAGT,iBAAM,CAAA,MAAA,GAAG,MAAH;AA5Bb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAChB,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AALN,iBAAiB,GAAA,UAAA,CAAA;AADtB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAkB;AACpC,CAAA,EAAA,iBAAiB,CAkCtB;AAED,0BAAe,iBAAiB;;;;"}
@@ -0,0 +1,25 @@
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
+ * Sections in c4p-checklist
12
+ * @element c4p-checklist-group
13
+ * @slot default - Contains one or more `c4p-checklist-item` components
14
+ */
15
+ declare class CDSChecklistGroup extends LitElement {
16
+ /**
17
+ * Title text of the c4p-checklist-group
18
+ */
19
+ title: any;
20
+ private _updateAttributes;
21
+ firstUpdated(): void;
22
+ render(): import("lit-html").TemplateResult<1>;
23
+ static styles: any;
24
+ }
25
+ export default CDSChecklistGroup;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+ import { __decorate } from 'tslib';
9
+ import { LitElement, html } from 'lit';
10
+ import { property } from 'lit/decorators.js';
11
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
12
+ import { prefix } from '../../globals/settings.js';
13
+ import styles from './checklist.scss.js';
14
+
15
+ /**
16
+ * @license
17
+ *
18
+ * Copyright IBM Corp. 2025
19
+ *
20
+ * This source code is licensed under the Apache-2.0 license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */
23
+ /**
24
+ * Sections in c4p-checklist
25
+ * @element c4p-checklist-group
26
+ * @slot default - Contains one or more `c4p-checklist-item` components
27
+ */
28
+ let CDSChecklistGroup = class CDSChecklistGroup extends LitElement {
29
+ _updateAttributes() {
30
+ this.classList.add(`${prefix}--checklist__list-group`);
31
+ }
32
+ firstUpdated() {
33
+ this._updateAttributes();
34
+ }
35
+ render() {
36
+ const { title } = this;
37
+ return html `
38
+ ${title &&
39
+ html `<h3 title=${title} class="${prefix}--checklist__list-title">
40
+ ${title}
41
+ </h3>`}
42
+ <ol class="${prefix}--checklist__list">
43
+ <slot></slot>
44
+ </ol>
45
+ `;
46
+ }
47
+ };
48
+ CDSChecklistGroup.styles = styles;
49
+ __decorate([
50
+ property()
51
+ ], CDSChecklistGroup.prototype, "title", void 0);
52
+ CDSChecklistGroup = __decorate([
53
+ carbonElement(`${prefix}-checklist-group`)
54
+ ], CDSChecklistGroup);
55
+ var CDSChecklistGroup$1 = CDSChecklistGroup;
56
+
57
+ export { CDSChecklistGroup$1 as default };
58
+ //# sourceMappingURL=checklist-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklist-group.js","sources":["../../../src/components/checklist/checklist-group.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AASH;;;;AAIG;AAEH,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU,CAAA;IAOhC,iBAAiB,GAAA;QACvB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAG,EAAA,MAAM,CAAyB,uBAAA,CAAA,CAAC;;IAGxD,YAAY,GAAA;QACV,IAAI,CAAC,iBAAiB,EAAE;;IAG1B,MAAM,GAAA;AACJ,QAAA,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI;AAEtB,QAAA,OAAO,IAAI,CAAA;QACP,KAAK;AACP,YAAA,IAAI,CAAA,CAAA,UAAA,EAAa,KAAK,CAAA,QAAA,EAAW,MAAM,CAAA;UACnC,KAAK;AACH,WAAA,CAAA;mBACO,MAAM,CAAA;;;KAGpB;;;AAGI,iBAAM,CAAA,MAAA,GAAG,MAAH;AAxBb,UAAA,CAAA;AADC,IAAA,QAAQ;AACH,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AALF,iBAAiB,GAAA,UAAA,CAAA;AADtB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAkB;AACpC,CAAA,EAAA,iBAAiB,CA8BtB;AAED,0BAAe,iBAAiB;;;;"}
@@ -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,72 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+ import { __decorate } from 'tslib';
9
+ import { LitElement, html } from 'lit';
10
+ import { property } from 'lit/decorators.js';
11
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
12
+ import CheckmarkOutline16 from '@carbon/icons/es/checkmark--outline/16';
13
+ import CircleDash16 from '@carbon/icons/es/circle-dash/16';
14
+ import Incomplete16 from '@carbon/icons/es/incomplete/16';
15
+ import Warning16 from '@carbon/icons/es/warning/16';
16
+ import '@carbon/web-components/es/components/icon/index.js';
17
+ import { Kinds } from './checklist.types.js';
18
+ import { prefix } from '../../globals/settings.js';
19
+ import { classMap } from 'lit/directives/class-map.js';
20
+ import styles from './checklist.scss.js';
21
+
22
+ /**
23
+ * @license
24
+ *
25
+ * Copyright IBM Corp. 2025
26
+ *
27
+ * This source code is licensed under the Apache-2.0 license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */
30
+ const blockClass = `${prefix}--checklist__icon`;
31
+ /**
32
+ * @element c4p-checklist-icon
33
+ * Represents checklist item status with different icons (unchecked, checked, indeterminate, error).
34
+ */
35
+ let CDSChecklistIcon = class CDSChecklistIcon extends LitElement {
36
+ constructor() {
37
+ super(...arguments);
38
+ /**
39
+ * The icon to be displayed.
40
+ * Values can be 'unchecked', 'indeterminate', 'checked', 'error', 'disabled'
41
+
42
+ */
43
+ this.kind = Kinds.unchecked;
44
+ }
45
+ render() {
46
+ const icon = this.kind === Kinds.checked
47
+ ? CheckmarkOutline16
48
+ : this.kind === Kinds.indeterminate
49
+ ? Incomplete16
50
+ : this.kind === Kinds.error
51
+ ? Warning16
52
+ : CircleDash16;
53
+ const classes = classMap({
54
+ [`${blockClass}`]: true,
55
+ [`${blockClass}--${this.kind}`]: true,
56
+ });
57
+ return html ` <span class="${classes}">
58
+ <cds-icon .icon=${icon} size="16" ariaLabel=${this.kind}></cds-icon>
59
+ </span>`;
60
+ }
61
+ };
62
+ CDSChecklistIcon.styles = styles;
63
+ __decorate([
64
+ property({ type: String, attribute: 'kind' })
65
+ ], CDSChecklistIcon.prototype, "kind", void 0);
66
+ CDSChecklistIcon = __decorate([
67
+ carbonElement(`${prefix}-checklist-icon`)
68
+ ], CDSChecklistIcon);
69
+ var CDSChecklistIcon$1 = CDSChecklistIcon;
70
+
71
+ export { CDSChecklistIcon$1 as default };
72
+ //# sourceMappingURL=checklist-icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklist-icon.js","sources":["../../../src/components/checklist/checklist-icon.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAkBH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,mBAAmB;AAE/C;;;AAGG;AAEH,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU,CAAA;AAAzC,IAAA,WAAA,GAAA;;AACE;;;;AAIG;AAEH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,SAAS;;IAEtB,MAAM,GAAA;QACJ,MAAM,IAAI,GACR,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC;AAClB,cAAE;AACF,cAAE,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC;AACpB,kBAAE;AACF,kBAAE,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC;AACpB,sBAAE;sBACA,YAAY;QAEtB,MAAM,OAAO,GAAG,QAAQ,CAAC;AACvB,YAAA,CAAC,CAAG,EAAA,UAAU,CAAE,CAAA,GAAG,IAAI;YACvB,CAAC,CAAA,EAAG,UAAU,CAAK,EAAA,EAAA,IAAI,CAAC,IAAI,CAAA,CAAE,GAAG,IAAI;AACtC,SAAA,CAAC;QAEF,OAAO,IAAI,CAAA,CAAA,cAAA,EAAiB,OAAO,CAAA;wBACf,IAAI,CAAA,qBAAA,EAAwB,IAAI,CAAC,IAAI,CAAA;YACjD;;;AAGH,gBAAM,CAAA,MAAA,GAAG,MAAH;AAtBb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE;AACtB,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAPnB,gBAAgB,GAAA,UAAA,CAAA;AADrB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,eAAA,CAAiB;AACnC,CAAA,EAAA,gBAAgB,CA8BrB;AAED,yBAAe,gBAAgB;;;;"}
@@ -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;