Skip to content

Commit f727bae

Browse files
authored
fix(custom-element): ensure all cwc components use carbonElement (#11937)
1 parent d9f94ca commit f727bae

File tree

23 files changed

+63
-40
lines changed

23 files changed

+63
-40
lines changed

packages/carbon-web-components/src/components/chat-button/chat-button.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
*/
99

1010
import { html, LitElement } from 'lit';
11-
import { property, customElement } from 'lit/decorators.js';
11+
import { property } from 'lit/decorators.js';
1212
import { prefix } from '../../globals/settings';
13+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1314
import '../button/button';
1415
import { CHAT_BUTTON_SIZE, CHAT_BUTTON_KIND } from './defs';
1516
import styles from './chat-button.scss';

packages/carbon-web-components/src/components/copy-button/copy-button.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2019, 2023
4+
* Copyright IBM Corp. 2019, 2024
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
88
*/
99

1010
import { LitElement, html } from 'lit';
11-
import { property, customElement } from 'lit/decorators.js';
11+
import { property } from 'lit/decorators.js';
1212
import Copy16 from '@carbon/icons/lib/copy/16';
13+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1314
import { prefix } from '../../globals/settings';
1415
import FocusMixin from '../../globals/mixins/focus';
1516
import styles from './copy-button.scss';

packages/carbon-web-components/src/components/copy/copy.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2019, 2023
4+
* Copyright IBM Corp. 2019, 2024
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
88
*/
99

1010
import { html } from 'lit';
11-
import { property, customElement } from 'lit/decorators.js';
11+
import { property } from 'lit/decorators.js';
1212
import { prefix } from '../../globals/settings';
1313
import styles from '../copy-button/copy-button.scss';
1414
import CDSIconButton from '../icon-button/icon-button';
15+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1516

1617
/**
1718
* Copy.

packages/carbon-web-components/src/components/data-table/table-skeleton.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2019, 2023
4+
* Copyright IBM Corp. 2019, 2024
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
88
*/
99

1010
import { classMap } from 'lit/directives/class-map.js';
1111
import { LitElement, html } from 'lit';
12-
import { property, customElement } from 'lit/decorators.js';
12+
import { property } from 'lit/decorators.js';
13+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1314
import { prefix } from '../../globals/settings';
1415
import styles from './data-table.scss';
1516

packages/carbon-web-components/src/components/file-uploader/demo-file-uploader.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2019, 2023
4+
* Copyright IBM Corp. 2019, 2024
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
88
*/
99

1010
import { html, LitElement } from 'lit';
11-
import { customElement, property } from 'lit/decorators.js';
11+
import { property } from 'lit/decorators.js';
12+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1213

1314
import { delay } from 'bluebird';
1415
import { prefix } from '../../globals/settings';

packages/carbon-web-components/src/components/file-uploader/file-uploader-button.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2020, 2023
4+
* Copyright IBM Corp. 2020, 2024
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
88
*/
99

1010
import { classMap } from 'lit/directives/class-map.js';
1111
import { LitElement, html } from 'lit';
12-
import { property, customElement } from 'lit/decorators.js';
12+
import { property } from 'lit/decorators.js';
13+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1314
import { prefix } from '../../globals/settings';
1415
import HostListenerMixin from '../../globals/mixins/host-listener';
1516
import ifNonEmpty from '../../globals/directives/if-non-empty';

packages/carbon-web-components/src/components/form-group/form-group.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2019, 2023
4+
* Copyright IBM Corp. 2019, 2024
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
88
*/
99

1010
import { LitElement, html } from 'lit';
11-
import { property, customElement } from 'lit/decorators.js';
11+
import { property } from 'lit/decorators.js';
12+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1213
import { prefix } from '../../globals/settings';
1314
import styles from './form-group.scss';
1415

packages/carbon-web-components/src/components/icon-button/icon-button.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
*/
99

1010
import { html } from 'lit';
11-
import { property, customElement } from 'lit/decorators.js';
11+
import { property } from 'lit/decorators.js';
12+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1213
import { prefix } from '../../globals/settings';
1314
import '../tooltip/index';
1415
import '../button/index';

packages/carbon-web-components/src/components/layer/layer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2019, 2023
4+
* Copyright IBM Corp. 2019, 2024
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
88
*/
99

1010
import { LitElement, html } from 'lit';
11-
import { property, customElement } from 'lit/decorators.js';
11+
import { property } from 'lit/decorators.js';
12+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1213
import { prefix } from '../../globals/settings';
1314
import styles from './layer.scss';
1415

packages/carbon-web-components/src/components/notification/actionable-notification.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2019, 2023
4+
* Copyright IBM Corp. 2019, 2024
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
@@ -13,8 +13,9 @@ import InformationSquareFilled20 from '@carbon/icons/lib/information--square--fi
1313
import WarningFilled20 from '@carbon/icons/lib/warning--filled/20';
1414
import WarningAltFilled20 from '@carbon/icons/lib/warning--alt--filled/20';
1515
import { html, svg } from 'lit';
16-
import { property, customElement } from 'lit/decorators.js';
16+
import { property } from 'lit/decorators.js';
1717
import { prefix } from '../../globals/settings';
18+
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
1819
import { NOTIFICATION_TYPE, NOTIFICATION_KIND } from './defs';
1920
import CDSInlineNotification from './inline-notification';
2021
import styles from './actionable-notification.scss';

0 commit comments

Comments
 (0)