@carbon/ibm-products-web-components 0.15.0 → 0.16.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 +0 -26
- package/es/components/about-modal/about-modal.d.ts +15 -5
- package/es/components/about-modal/about-modal.js +32 -3
- package/es/components/about-modal/about-modal.js.map +1 -1
- package/es/components/about-modal/about-modal.test.d.ts +1 -1
- package/es/components/about-modal/about-modal.test.js +133 -12
- package/es/components/about-modal/about-modal.test.js.map +1 -1
- package/es/components/full-page-error/full-page-error.test.js +1 -2
- package/es/components/full-page-error/full-page-error.test.js.map +1 -1
- package/es/components/options-tile/options-tile.d.ts +1 -8
- package/es/components/options-tile/options-tile.js +7 -7
- package/es/components/options-tile/options-tile.js.map +1 -1
- package/es/components/options-tile/options-tile.test.d.ts +1 -0
- package/es/components/options-tile/options-tile.test.js +129 -0
- package/es/components/options-tile/options-tile.test.js.map +1 -0
- package/es/components/tearsheet/tearsheet.d.ts +1 -1
- package/es/components/tearsheet/tearsheet.js +89 -82
- package/es/components/tearsheet/tearsheet.js.map +1 -1
- package/es/components/tearsheet/tearsheet.test.d.ts +1 -1
- package/es/components/tearsheet/tearsheet.test.js +2 -3
- package/es/components/tearsheet/tearsheet.test.js.map +1 -1
- package/es/globals/internal/pconsole.d.ts +15 -0
- package/es/globals/internal/pconsole.js +30 -0
- package/es/globals/internal/pconsole.js.map +1 -0
- package/es/package.json.js +1 -1
- package/es-custom/components/about-modal/about-modal.d.ts +15 -5
- package/es-custom/components/about-modal/about-modal.js +32 -3
- package/es-custom/components/about-modal/about-modal.js.map +1 -1
- package/es-custom/components/about-modal/about-modal.test.d.ts +1 -1
- package/es-custom/components/about-modal/about-modal.test.js +133 -12
- package/es-custom/components/about-modal/about-modal.test.js.map +1 -1
- package/es-custom/components/full-page-error/full-page-error.test.js +1 -2
- package/es-custom/components/full-page-error/full-page-error.test.js.map +1 -1
- package/es-custom/components/options-tile/options-tile.d.ts +1 -8
- package/es-custom/components/options-tile/options-tile.js +7 -7
- package/es-custom/components/options-tile/options-tile.js.map +1 -1
- package/es-custom/components/options-tile/options-tile.test.d.ts +1 -0
- package/es-custom/components/options-tile/options-tile.test.js +129 -0
- package/es-custom/components/options-tile/options-tile.test.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.d.ts +1 -1
- package/es-custom/components/tearsheet/tearsheet.js +89 -82
- package/es-custom/components/tearsheet/tearsheet.js.map +1 -1
- package/es-custom/components/tearsheet/tearsheet.test.d.ts +1 -1
- package/es-custom/components/tearsheet/tearsheet.test.js +2 -3
- package/es-custom/components/tearsheet/tearsheet.test.js.map +1 -1
- package/es-custom/globals/internal/pconsole.d.ts +15 -0
- package/es-custom/globals/internal/pconsole.js +30 -0
- package/es-custom/globals/internal/pconsole.js.map +1 -0
- package/es-custom/package.json.js +1 -1
- package/lib/components/about-modal/about-modal.d.ts +15 -5
- package/lib/components/about-modal/about-modal.test.d.ts +1 -1
- package/lib/components/options-tile/options-tile.d.ts +1 -8
- package/lib/components/options-tile/options-tile.test.d.ts +1 -0
- package/lib/components/tearsheet/tearsheet.d.ts +1 -1
- package/lib/components/tearsheet/tearsheet.test.d.ts +1 -1
- package/lib/globals/internal/pconsole.d.ts +15 -0
- package/package.json +3 -3
- package/scss/components/import-modal/story-styles.scss +10 -0
- package/es/components/about-modal/defs.d.ts +0 -8
- package/es/components/about-modal/defs.js +0 -8
- package/es/components/about-modal/defs.js.map +0 -1
- package/es-custom/components/about-modal/defs.d.ts +0 -8
- package/es-custom/components/about-modal/defs.js +0 -8
- package/es-custom/components/about-modal/defs.js.map +0 -1
- package/lib/components/about-modal/defs.d.ts +0 -8
- package/lib/components/about-modal/defs.js +0 -10
- package/lib/components/about-modal/defs.js.map +0 -1
package/custom-elements.json
CHANGED
@@ -115,10 +115,6 @@
|
|
115
115
|
}
|
116
116
|
],
|
117
117
|
"events": [
|
118
|
-
{
|
119
|
-
"name": "c4p-about-modal-beingclosed",
|
120
|
-
"description": "The custom event fired before this about modal is being closed upon a user gesture.\nCancellation of this event stops the user-initiated action of closing this about modal."
|
121
|
-
},
|
122
118
|
{
|
123
119
|
"name": "c4p-about-modal-closed",
|
124
120
|
"description": "The custom event fired after this about modal is closed upon a user gesture."
|
@@ -262,16 +258,6 @@
|
|
262
258
|
"type": "boolean",
|
263
259
|
"default": "false"
|
264
260
|
},
|
265
|
-
{
|
266
|
-
"name": "onClose",
|
267
|
-
"description": "Callback fired when the component requests to be closed",
|
268
|
-
"type": "((evt: Event) => void) | undefined"
|
269
|
-
},
|
270
|
-
{
|
271
|
-
"name": "onOpen",
|
272
|
-
"description": "Callback fired when the component requests to be opened",
|
273
|
-
"type": "((evt: Event) => void) | undefined"
|
274
|
-
},
|
275
261
|
{
|
276
262
|
"name": "title",
|
277
263
|
"description": "Text for the title",
|
@@ -299,18 +285,6 @@
|
|
299
285
|
"type": "boolean",
|
300
286
|
"default": "false"
|
301
287
|
},
|
302
|
-
{
|
303
|
-
"name": "onClose",
|
304
|
-
"attribute": "onClose",
|
305
|
-
"description": "Callback fired when the component requests to be closed",
|
306
|
-
"type": "((evt: Event) => void) | undefined"
|
307
|
-
},
|
308
|
-
{
|
309
|
-
"name": "onOpen",
|
310
|
-
"attribute": "onOpen",
|
311
|
-
"description": "Callback fired when the component requests to be opened",
|
312
|
-
"type": "((evt: Event) => void) | undefined"
|
313
|
-
},
|
314
288
|
{
|
315
289
|
"name": "title",
|
316
290
|
"attribute": "title",
|
@@ -8,6 +8,7 @@
|
|
8
8
|
*/
|
9
9
|
import { LitElement } from 'lit';
|
10
10
|
import '@carbon/web-components/es/components/modal/index.js';
|
11
|
+
export declare const blockClass = "c4p--about-modal";
|
11
12
|
declare const CDSAboutModal_base: {
|
12
13
|
new (...args: any[]): {
|
13
14
|
_handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
|
@@ -37,10 +38,10 @@ declare const CDSAboutModal_base: {
|
|
37
38
|
click(): void;
|
38
39
|
hidePopover(): void;
|
39
40
|
showPopover(): void;
|
40
|
-
togglePopover(force
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
togglePopover(force?: boolean): boolean;
|
42
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options? /**
|
43
|
+
* A visual symbol used to represent the product.
|
44
|
+
*/: boolean | AddEventListenerOptions): void;
|
44
45
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
45
46
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
46
47
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
@@ -363,7 +364,6 @@ declare const CDSAboutModal_base: {
|
|
363
364
|
*
|
364
365
|
* @element c4p-about-modal
|
365
366
|
* @csspart dialog The dialog.
|
366
|
-
* @fires c4p-about-modal-beingclosed
|
367
367
|
* The custom event fired before this about modal is being closed upon a user gesture.
|
368
368
|
* Cancellation of this event stops the user-initiated action of closing this about modal.
|
369
369
|
* @fires c4p-about-modal-closed - The custom event fired after this about modal is closed upon a user gesture.
|
@@ -413,8 +413,18 @@ declare class CDSAboutModal extends CDSAboutModal_base {
|
|
413
413
|
firstUpdated(): void;
|
414
414
|
updated(): void;
|
415
415
|
render(): import("lit-html").TemplateResult<1>;
|
416
|
+
private _handleKeydown;
|
417
|
+
/**
|
418
|
+
* Handles user-initiated close request of this About Modal.
|
419
|
+
*
|
420
|
+
* @param triggeredBy The element that triggered this close request.
|
421
|
+
*/
|
416
422
|
private _handleClose;
|
417
423
|
private _checkOverflow;
|
424
|
+
/**
|
425
|
+
* The name of the custom event fired after this About Modal is closed upon a user gesture.
|
426
|
+
*/
|
427
|
+
static get eventClose(): string;
|
418
428
|
static styles: any;
|
419
429
|
}
|
420
430
|
export default CDSAboutModal;
|
@@ -9,6 +9,7 @@ import { __decorate } from 'tslib';
|
|
9
9
|
import { LitElement, html } from 'lit';
|
10
10
|
import { property, state, query } from 'lit/decorators.js';
|
11
11
|
import { prefix } from '../../globals/settings.js';
|
12
|
+
import HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';
|
12
13
|
import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
|
13
14
|
import '@carbon/web-components/es/components/modal/index.js';
|
14
15
|
import styles from './about-modal.scss.js';
|
@@ -28,7 +29,6 @@ const blockClass = `${prefix}--about-modal`;
|
|
28
29
|
*
|
29
30
|
* @element c4p-about-modal
|
30
31
|
* @csspart dialog The dialog.
|
31
|
-
* @fires c4p-about-modal-beingclosed
|
32
32
|
* The custom event fired before this about modal is being closed upon a user gesture.
|
33
33
|
* Cancellation of this event stops the user-initiated action of closing this about modal.
|
34
34
|
* @fires c4p-about-modal-closed - The custom event fired after this about modal is closed upon a user gesture.
|
@@ -48,8 +48,27 @@ let CDSAboutModal = class CDSAboutModal extends HostListenerMixin(LitElement) {
|
|
48
48
|
* To check if the modal body is overflowing or not.
|
49
49
|
*/
|
50
50
|
this.isOverflowing = false;
|
51
|
-
this.
|
51
|
+
this._handleKeydown = ({ key, target }) => {
|
52
|
+
if (key === 'Esc' || key === 'Escape') {
|
53
|
+
this._handleClose(target);
|
54
|
+
}
|
55
|
+
};
|
56
|
+
/**
|
57
|
+
* Handles user-initiated close request of this About Modal.
|
58
|
+
*
|
59
|
+
* @param triggeredBy The element that triggered this close request.
|
60
|
+
*/
|
61
|
+
this._handleClose = (triggeredBy) => {
|
52
62
|
this.open = false;
|
63
|
+
const init = {
|
64
|
+
bubbles: true,
|
65
|
+
cancelable: true,
|
66
|
+
composed: true,
|
67
|
+
detail: {
|
68
|
+
triggeredBy,
|
69
|
+
},
|
70
|
+
};
|
71
|
+
this.dispatchEvent(new CustomEvent(this.constructor.eventClose, init));
|
53
72
|
};
|
54
73
|
}
|
55
74
|
firstUpdated() {
|
@@ -99,6 +118,12 @@ let CDSAboutModal = class CDSAboutModal extends HostListenerMixin(LitElement) {
|
|
99
118
|
this.container.scrollHeight > this.container.clientHeight;
|
100
119
|
}
|
101
120
|
}
|
121
|
+
/**
|
122
|
+
* The name of the custom event fired after this About Modal is closed upon a user gesture.
|
123
|
+
*/
|
124
|
+
static get eventClose() {
|
125
|
+
return `${prefix}-about-modal-closed`;
|
126
|
+
}
|
102
127
|
};
|
103
128
|
CDSAboutModal.styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader
|
104
129
|
__decorate([
|
@@ -134,10 +159,14 @@ __decorate([
|
|
134
159
|
__decorate([
|
135
160
|
query('cds-modal-body')
|
136
161
|
], CDSAboutModal.prototype, "container", void 0);
|
162
|
+
__decorate([
|
163
|
+
HostListener('document:keydown')
|
164
|
+
// @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to
|
165
|
+
], CDSAboutModal.prototype, "_handleKeydown", void 0);
|
137
166
|
CDSAboutModal = __decorate([
|
138
167
|
carbonElement(`${prefix}-about-modal`)
|
139
168
|
], CDSAboutModal);
|
140
169
|
var CDSAboutModal$1 = CDSAboutModal;
|
141
170
|
|
142
|
-
export { CDSAboutModal$1 as default };
|
171
|
+
export { blockClass, CDSAboutModal$1 as default };
|
143
172
|
//# sourceMappingURL=about-modal.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"about-modal.js","sources":["../../../src/components/about-modal/about-modal.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":"
|
1
|
+
{"version":3,"file":"about-modal.js","sources":["../../../src/components/about-modal/about-modal.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUU,MAAA,UAAU,GAAG,CAAG,EAAA,MAAM;AAEnC;;;;;;;;AAQG;AAEH,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAAzD,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAI,C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CAAA;AAzHE,aAAa,GAAA,UAAA,CAAA;AADlB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,YAAA,CAAc;AAChC,CAAA,EAAA,aAAa,CAiKlB;AAED,sBAAe,aAAa;;;;"}
|
@@ -5,8 +5,11 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import {
|
9
|
-
import { html,
|
8
|
+
import { describe, it, expect } from 'vitest';
|
9
|
+
import { html, fixture } from '@open-wc/testing';
|
10
|
+
import { render } from 'lit';
|
11
|
+
import { blockClass } from './about-modal.js';
|
12
|
+
import { carbonPrefix } from '../../globals/settings.js';
|
10
13
|
|
11
14
|
/**
|
12
15
|
* Copyright IBM Corp. 2025
|
@@ -14,7 +17,6 @@ import { html, render } from 'lit';
|
|
14
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
15
18
|
* LICENSE file in the root directory of this source tree.
|
16
19
|
*/
|
17
|
-
vi.mock('@carbon/icons/lib/close/20', () => vi.fn().mockReturnValue({}));
|
18
20
|
const logo = html `
|
19
21
|
<img
|
20
22
|
src="./_story-assets/example-logo.svg"
|
@@ -47,6 +49,12 @@ grants you a non-exclusive, non-transferable, limited permission to access and
|
|
47
49
|
display the Web pages within this site as a customer or potential customer of
|
48
50
|
IBM provided you comply with these Terms of Use, and all copyright, trademark,
|
49
51
|
and other proprietary notices remain intact.`;
|
52
|
+
const links = [];
|
53
|
+
const index = 3;
|
54
|
+
for (let i = 0; i < index; i++) {
|
55
|
+
const link = html `<cds-link href="#"> Link action </cds-link>`;
|
56
|
+
links.push(link);
|
57
|
+
}
|
50
58
|
const defaultProps = {
|
51
59
|
closeIconDescription: 'close',
|
52
60
|
copyrightText: 'Copyright © IBM Corp. 2020, 2023',
|
@@ -55,12 +63,8 @@ const defaultProps = {
|
|
55
63
|
version: 'Version 0.0.0',
|
56
64
|
additionalInfo: additionalInfo,
|
57
65
|
content: content,
|
58
|
-
links:
|
66
|
+
links: links,
|
59
67
|
};
|
60
|
-
const index = 3;
|
61
|
-
for (let i = 0; i < index; i++) {
|
62
|
-
html `<cds-link href="#"> Link action </cds-link>`;
|
63
|
-
}
|
64
68
|
const template = (props = defaultProps) => html `
|
65
69
|
<c4p-about-modal
|
66
70
|
open
|
@@ -78,10 +82,127 @@ const template = (props = defaultProps) => html `
|
|
78
82
|
`;
|
79
83
|
describe('c4p-about-modal', () => {
|
80
84
|
it('should render about modal', async () => {
|
81
|
-
render(template(), document.body);
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
+
const element = render(template(), document.body);
|
86
|
+
expect(element).toBeDefined();
|
87
|
+
});
|
88
|
+
it('renders a title', async () => {
|
89
|
+
var _a, _b, _c;
|
90
|
+
const element = await fixture(template());
|
91
|
+
expect(element.title).toBe(defaultProps.title);
|
92
|
+
const headingElement = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`${carbonPrefix}-modal-heading`);
|
93
|
+
expect(headingElement).toBeTruthy();
|
94
|
+
expect(headingElement === null || headingElement === void 0 ? void 0 : headingElement.shadowRoot).toBeTruthy();
|
95
|
+
const slot = (_b = headingElement === null || headingElement === void 0 ? void 0 : headingElement.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('slot');
|
96
|
+
expect(slot).toBeTruthy();
|
97
|
+
const assignedNodes = (_c = slot === null || slot === void 0 ? void 0 : slot.assignedNodes({ flatten: true })) !== null && _c !== void 0 ? _c : [];
|
98
|
+
const slottedText = assignedNodes
|
99
|
+
.filter((node) => node.nodeType === Node.TEXT_NODE)
|
100
|
+
.map((node) => { var _a; return (_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim(); })
|
101
|
+
.join('');
|
102
|
+
expect(slottedText).toBe(defaultProps.title);
|
103
|
+
});
|
104
|
+
it('renders version', async () => {
|
105
|
+
var _a, _b, _c, _d;
|
106
|
+
const element = await fixture(template());
|
107
|
+
expect(element.version).toBe(defaultProps.version);
|
108
|
+
const modalBody = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`${carbonPrefix}-modal-body`);
|
109
|
+
expect(modalBody).toBeTruthy();
|
110
|
+
expect(modalBody === null || modalBody === void 0 ? void 0 : modalBody.shadowRoot).toBeTruthy();
|
111
|
+
const slot = (_b = modalBody === null || modalBody === void 0 ? void 0 : modalBody.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('slot');
|
112
|
+
expect(slot).toBeTruthy();
|
113
|
+
const assignedElements = (_c = slot === null || slot === void 0 ? void 0 : slot.assignedElements({ flatten: true })) !== null && _c !== void 0 ? _c : [];
|
114
|
+
const modalVersion = assignedElements
|
115
|
+
.map((el) => el.querySelector(`.${blockClass}__version`))
|
116
|
+
.find((el) => el !== null);
|
117
|
+
expect(modalVersion).toBeTruthy();
|
118
|
+
expect((_d = modalVersion === null || modalVersion === void 0 ? void 0 : modalVersion.textContent) === null || _d === void 0 ? void 0 : _d.trim()).toBe(defaultProps.version);
|
119
|
+
});
|
120
|
+
it('renders copyright text', async () => {
|
121
|
+
var _a, _b, _c, _d;
|
122
|
+
const element = await fixture(template());
|
123
|
+
expect(element.copyrightText).toBe(defaultProps.copyrightText);
|
124
|
+
const modalBody = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`${carbonPrefix}-modal-body`);
|
125
|
+
expect(modalBody).toBeTruthy();
|
126
|
+
expect(modalBody === null || modalBody === void 0 ? void 0 : modalBody.shadowRoot).toBeTruthy();
|
127
|
+
const slot = (_b = modalBody === null || modalBody === void 0 ? void 0 : modalBody.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('slot');
|
128
|
+
expect(slot).toBeTruthy();
|
129
|
+
const assignedElements = (_c = slot === null || slot === void 0 ? void 0 : slot.assignedElements({ flatten: true })) !== null && _c !== void 0 ? _c : [];
|
130
|
+
const modalCopyRight = assignedElements
|
131
|
+
.map((el) => el.querySelector(`.${blockClass}__copyright-text`))
|
132
|
+
.find((el) => el !== null);
|
133
|
+
expect(modalCopyRight).toBeTruthy();
|
134
|
+
expect((_d = modalCopyRight === null || modalCopyRight === void 0 ? void 0 : modalCopyRight.textContent) === null || _d === void 0 ? void 0 : _d.trim()).toBe(defaultProps.copyrightText);
|
135
|
+
});
|
136
|
+
it('renders links', async () => {
|
137
|
+
var _a, _b, _c;
|
138
|
+
const element = await fixture(template());
|
139
|
+
const modalBody = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`${carbonPrefix}-modal-body`);
|
140
|
+
expect(modalBody).toBeTruthy();
|
141
|
+
expect(modalBody === null || modalBody === void 0 ? void 0 : modalBody.shadowRoot).toBeTruthy();
|
142
|
+
const slot = (_b = modalBody === null || modalBody === void 0 ? void 0 : modalBody.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('slot');
|
143
|
+
expect(slot).toBeTruthy();
|
144
|
+
const assignedElements = (_c = slot === null || slot === void 0 ? void 0 : slot.assignedElements({ flatten: true })) !== null && _c !== void 0 ? _c : [];
|
145
|
+
if (element.links.length > 0) {
|
146
|
+
const modalLinkContainer = assignedElements
|
147
|
+
.map((el) => el.querySelector(`.${blockClass}__links-container`))
|
148
|
+
.find((el) => el !== null);
|
149
|
+
expect(modalLinkContainer).toBeTruthy();
|
150
|
+
const links = modalLinkContainer === null || modalLinkContainer === void 0 ? void 0 : modalLinkContainer.querySelectorAll(`${carbonPrefix}-link`);
|
151
|
+
expect((links === null || links === void 0 ? void 0 : links.length) == (element === null || element === void 0 ? void 0 : element.links.length)).toBeTruthy();
|
152
|
+
}
|
153
|
+
});
|
154
|
+
it('renders additional info', async () => {
|
155
|
+
var _a;
|
156
|
+
const element = await fixture(template());
|
157
|
+
if (element.additionalInfo) {
|
158
|
+
const modalFooter = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`${carbonPrefix}-modal-footer`);
|
159
|
+
expect(modalFooter).toBeTruthy();
|
160
|
+
}
|
161
|
+
});
|
162
|
+
it('closes modal on clicking close button', async () => {
|
163
|
+
var _a;
|
164
|
+
const element = await fixture(template());
|
165
|
+
const modalClose = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`${carbonPrefix}-modal-close-button`);
|
166
|
+
expect(modalClose).toBeTruthy();
|
167
|
+
expect(element.open).toBe(true);
|
168
|
+
modalClose === null || modalClose === void 0 ? void 0 : modalClose.click();
|
169
|
+
expect(element.open).toBe(false);
|
170
|
+
});
|
171
|
+
it('Scrollable body with overflowing content', async () => {
|
172
|
+
var _a;
|
173
|
+
const element = await fixture(template());
|
174
|
+
const container = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`${carbonPrefix}-modal-body`);
|
175
|
+
// Simulate overflow: content fits
|
176
|
+
Object.defineProperty(container, 'scrollHeight', {
|
177
|
+
value: 200,
|
178
|
+
configurable: true,
|
179
|
+
});
|
180
|
+
Object.defineProperty(container, 'clientHeight', {
|
181
|
+
value: 100,
|
182
|
+
configurable: true,
|
183
|
+
});
|
184
|
+
// Manually call _checkOverflow to force the overflow check
|
185
|
+
element['_checkOverflow']();
|
186
|
+
await element.updateComplete;
|
187
|
+
expect(container.classList.contains('c4p--about-modal-scroll-content')).toBe(true);
|
188
|
+
});
|
189
|
+
it('No scrollable body if content fits', async () => {
|
190
|
+
var _a;
|
191
|
+
const element = await fixture(template());
|
192
|
+
const container = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`${carbonPrefix}-modal-body`);
|
193
|
+
// Simulate non-overflow: content fits
|
194
|
+
Object.defineProperty(container, 'scrollHeight', {
|
195
|
+
value: 100,
|
196
|
+
configurable: true,
|
197
|
+
});
|
198
|
+
Object.defineProperty(container, 'clientHeight', {
|
199
|
+
value: 200,
|
200
|
+
configurable: true,
|
201
|
+
});
|
202
|
+
// Manually call _checkOverflow to force the overflow check
|
203
|
+
element['_checkOverflow']();
|
204
|
+
await element.updateComplete;
|
205
|
+
expect(container.classList.contains('c4p--about-modal-scroll-content')).toBe(false);
|
85
206
|
});
|
86
207
|
});
|
87
208
|
//# sourceMappingURL=about-modal.test.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"about-modal.test.js","sources":["../../../src/components/about-modal/about-modal.test.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"about-modal.test.js","sources":["../../../src/components/about-modal/about-modal.test.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;AAKG;AASH,MAAM,IAAI,GAAG,IAAI,CAAA;;;;;;CAMhB;AACD,MAAM,cAAc,GAAG,IAAI,CAAA;;;;;;;;;;;;;;;;;CAiB1B;AACD,MAAM,OAAO,GAAG,IAAI,CAAA,CAAA;;;;;;6CAMyB;AAC7C,MAAM,KAAK,GAAqB,EAAE;AAClC,MAAM,KAAK,GAAG,CAAC;AACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;AAC9B,IAAA,MAAM,IAAI,GAAG,IAAI,CAAA,6CAA6C;AAC9D,IAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AAClB;AACA,MAAM,YAAY,GAAG;AACnB,IAAA,oBAAoB,EAAE,OAAO;AAC7B,IAAA,aAAa,EAAE,kCAAkC;AACjD,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,KAAK,EAAE,kBAAkB;AACzB,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,cAAc,EAAE,cAAc;AAC9B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,KAAK;CACb;AACD,MAAM,QAAQ,GAAG,CAAC,KAAK,GAAG,YAAY,KAAK,IAAI,CAAA;;;AAGpB,yBAAA,EAAA,KAAK,CAAC,oBAAoB;AACjC,kBAAA,EAAA,KAAK,CAAC,aAAa;AAC3B,UAAA,EAAA,KAAK,CAAC,IAAI;AACT,WAAA,EAAA,KAAK,CAAC,KAAK;AACT,aAAA,EAAA,KAAK,CAAC,OAAO;AACN,o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CACd;;AAEhB,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE;AAC/C,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC;AACF,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE;AAC/C,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC;;AAEF,QAAA,OAAO,CAAC,gBAAgB,CAAC,EAAE;QAC3B,MAAM,OAAO,CAAC,cAAc;AAE5B,QAAA,MAAM,CACJ,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAChE,CAAC,IAAI,CAAC,KAAK,CAAC;AACf,KAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import {
|
8
|
+
import { describe, it, expect } from 'vitest';
|
9
9
|
import { html, fixture, expect as expect$1 } from '@open-wc/testing';
|
10
10
|
import { render } from 'lit';
|
11
11
|
import { Kind } from './types.js';
|
@@ -17,7 +17,6 @@ import { blockClass } from './full-page-error.js';
|
|
17
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
19
19
|
*/
|
20
|
-
vi.mock('@carbon/icons/lib/close/20', () => vi.fn().mockReturnValue({}));
|
21
20
|
const defaultProps = {
|
22
21
|
class: 'custom-class',
|
23
22
|
label: 'Error ###',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"full-page-error.test.js","sources":["../../../src/components/full-page-error/full-page-error.test.ts"],"sourcesContent":[null],"names":["owcExpect"],"mappings":";;;;;;;;;;;;;AAAA;;;;;AAKG;
|
1
|
+
{"version":3,"file":"full-page-error.test.js","sources":["../../../src/components/full-page-error/full-page-error.test.ts"],"sourcesContent":[null],"names":["owcExpect"],"mappings":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AAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,YAAY,CAAE,EAAA,EAAA,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAA,CAAA,CAAG,CACnD;AAED,QAAA,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;QACxC,MAAM,CACJ,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,OAAO,CAAC,UAAU,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CACd,aAAa,CAAC,CAAI,CAAA,EAAA,UAAU,CAAqB,mBAAA,CAAA,CAAC,0CAClD,SAAS,CAAC,QAAQ,CAAC,CAAG,EAAA,UAAU,CAAO,KAAA,CAAA,CAAC,CAC7C,CAAC,UAAU,EAAE;AAChB,KAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -7,6 +7,7 @@
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
8
8
|
*/
|
9
9
|
import { LitElement, nothing } from 'lit';
|
10
|
+
export declare const blockClass = "c4p--options-tile";
|
10
11
|
declare const CDSOptionsTile_base: {
|
11
12
|
new (...args: any[]): {
|
12
13
|
_handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
|
@@ -368,14 +369,6 @@ declare class CDSOptionsTile extends CDSOptionsTile_base {
|
|
368
369
|
* If `true` the body of the component is shown
|
369
370
|
*/
|
370
371
|
open: boolean;
|
371
|
-
/**
|
372
|
-
* Callback fired when the component requests to be closed
|
373
|
-
*/
|
374
|
-
onClose?: (evt: Event) => void;
|
375
|
-
/**
|
376
|
-
* Callback fired when the component requests to be opened
|
377
|
-
*/
|
378
|
-
onOpen?: (evt: Event) => void;
|
379
372
|
/**
|
380
373
|
* Determines the size of the header
|
381
374
|
*/
|
@@ -66,6 +66,9 @@ let CDSOptionsTile = class CDSOptionsTile extends HostListenerMixin(LitElement)
|
|
66
66
|
const init = {
|
67
67
|
bubbles: true,
|
68
68
|
composed: true,
|
69
|
+
detail: {
|
70
|
+
open: this.open,
|
71
|
+
},
|
69
72
|
};
|
70
73
|
this.dispatchEvent(new CustomEvent(this.constructor.eventOpen, init));
|
71
74
|
}
|
@@ -73,6 +76,9 @@ let CDSOptionsTile = class CDSOptionsTile extends HostListenerMixin(LitElement)
|
|
73
76
|
const init = {
|
74
77
|
bubbles: true,
|
75
78
|
composed: true,
|
79
|
+
detail: {
|
80
|
+
open: this.open,
|
81
|
+
},
|
76
82
|
};
|
77
83
|
this.dispatchEvent(new CustomEvent(this.constructor.eventClose, init));
|
78
84
|
}
|
@@ -119,12 +125,6 @@ CDSOptionsTile.styles = styles;
|
|
119
125
|
__decorate([
|
120
126
|
property({ type: Boolean, reflect: true })
|
121
127
|
], CDSOptionsTile.prototype, "open", void 0);
|
122
|
-
__decorate([
|
123
|
-
property({ type: Function })
|
124
|
-
], CDSOptionsTile.prototype, "onClose", void 0);
|
125
|
-
__decorate([
|
126
|
-
property({ type: Function })
|
127
|
-
], CDSOptionsTile.prototype, "onOpen", void 0);
|
128
128
|
__decorate([
|
129
129
|
property({ type: String, reflect: true })
|
130
130
|
], CDSOptionsTile.prototype, "size", void 0);
|
@@ -139,5 +139,5 @@ CDSOptionsTile = __decorate([
|
|
139
139
|
], CDSOptionsTile);
|
140
140
|
var CDSOptionsTile$1 = CDSOptionsTile;
|
141
141
|
|
142
|
-
export { CDSOptionsTile$1 as default };
|
142
|
+
export { blockClass, CDSOptionsTile$1 as default };
|
143
143
|
//# sourceMappingURL=options-tile.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"options-tile.js","sources":["../../../src/components/options-tile/options-tile.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;
|
1
|
+
{"version":3,"file":"options-tile.js","sources":["../../../src/components/options-tile/options-tile.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;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