From ce20204658aa9608f1b180f061bd7cd3850d975e Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Mon, 11 Mar 2024 09:33:28 +0100 Subject: [PATCH] convert to gts --- .../src/components/accordion/index.gts | 11 +- .../src/components/breadcrumbs/index.gts | 32 +- .../src/components/button/index.gts | 120 +- .../-components/axis/{index.ts => index.gts} | 34 +- .../charts/-components/axis/index.hbs | 16 - .../-components/chart/{index.ts => index.gts} | 37 +- .../charts/-components/chart/index.hbs | 25 - .../-components/color/pairing/index.gts | 56 + .../-components/color/pairing/index.hbs | 13 - .../charts/-components/color/pairing/index.ts | 40 - .../charts/-components/color/scale/index.gts | 49 + .../charts/-components/color/scale/index.hbs | 6 - .../charts/-components/color/scale/index.ts | 40 - .../tabular-data/{index.ts => index.gts} | 47 +- .../charts/-components/tabular-data/index.hbs | 6 - .../charts/bar/{index.ts => index.gts} | 52 +- .../src/components/charts/bar/index.hbs | 13 - .../charts/line/{index.ts => index.gts} | 51 +- .../src/components/charts/line/index.hbs | 13 - .../charts/pie/{index.ts => index.gts} | 52 +- .../src/components/charts/pie/index.hbs | 13 - .../src/components/checkbox/index.gts | 10 +- .../src/components/code-snippet/index.gts | 14 +- .../src/components/copy-button/index.gts | 23 +- .../src/components/data-table/-body/index.gts | 50 + .../src/components/data-table/-body/index.hbs | 18 - .../src/components/data-table/-body/index.ts | 25 - .../-column/{index.ts => index.gts} | 5 + .../components/data-table/-column/index.hbs | 3 - .../components/data-table/-header/index.gts | 111 + .../components/data-table/-header/index.hbs | 70 - .../components/data-table/-header/index.ts | 39 - .../data-table/-menu/{index.ts => index.gts} | 9 +- .../src/components/data-table/-menu/index.hbs | 7 - .../src/components/data-table/-row/index.gts | 81 + .../src/components/data-table/-row/index.hbs | 54 - .../src/components/data-table/-row/index.ts | 23 - .../data-table/-search-input/index.gts | 55 + .../data-table/-search-input/index.hbs | 17 - .../data-table/-search-input/index.ts | 39 - .../components/data-table/-skeleton/index.gts | 23 + .../components/data-table/-skeleton/index.hbs | 13 - .../components/data-table/-skeleton/index.ts | 9 - .../data-table/-table/{index.ts => index.gts} | 15 +- .../components/data-table/-table/index.hbs | 10 - .../data-table/-toolbar/-actions/index.gts | 49 + .../data-table/-toolbar/-actions/index.hbs | 29 - .../data-table/-toolbar/-actions/index.ts | 19 - .../-toolbar/-content/{index.ts => index.gts} | 15 +- .../data-table/-toolbar/-content/index.hbs | 3 - .../-toolbar/{index.ts => index.gts} | 24 +- .../components/data-table/-toolbar/index.hbs | 7 - .../data-table/{index.ts => index.gts} | 143 +- .../src/components/data-table/index.hbs | 59 - .../src/components/dialogs/confirm/index.gts | 5 +- .../src/components/form-input/index.gts | 59 + .../src/components/form-input/index.hbs | 28 - .../src/components/form-input/index.ts | 32 - .../src/components/icon/index.gts | 2652 +++++++++-------- .../src/components/list/-body/index.gts | 41 + .../src/components/list/-body/index.hbs | 11 - .../src/components/list/-body/index.ts | 23 - .../list/-column/{index.ts => index.gts} | 10 +- .../src/components/list/-column/index.hbs | 7 - .../src/components/list/-header/index.gts | 21 + .../src/components/list/-header/index.hbs | 9 - .../src/components/list/-header/index.ts | 9 - .../src/components/list/-row/index.gts | 56 + .../src/components/list/-row/index.hbs | 23 - .../src/components/list/-row/index.ts | 26 - .../src/components/list/-skeleton/index.gts | 34 + .../src/components/list/-skeleton/index.hbs | 22 - .../src/components/list/-skeleton/index.ts | 5 - .../src/components/list/index.gts | 129 + .../src/components/list/index.hbs | 43 - .../src/components/list/index.ts | 70 - .../src/components/loading/index.gts | 13 +- .../src/components/menu/-item/index.gts | 10 +- .../src/components/menu/index.gts | 10 +- .../src/components/modal/index.gts | 112 + .../src/components/modal/index.hbs | 59 - .../src/components/modal/index.ts | 49 - .../src/components/notification/index.gts | 185 ++ .../src/components/notification/index.hbs | 120 - .../src/components/notification/index.ts | 52 - .../src/components/pagination/index.gts | 211 ++ .../src/components/pagination/index.hbs | 93 - .../src/components/pagination/index.ts | 104 - .../src/components/progress-bar/index.gts | 51 +- .../src/components/radio/group.gts | 3 +- .../src/components/radio/index.gts | 1 - .../src/components/search-input/index.gts | 14 +- .../src/components/select/index.gts | 100 +- .../src/components/tabs/index.gts | 7 +- .../src/components/tag/index.gts | 25 +- .../src/components/tile/index.gts | 7 +- .../src/components/toggle/index.gts | 9 +- .../src/components/ui-shell/-header/index.gts | 54 + .../src/components/ui-shell/-header/index.hbs | 36 - .../src/components/ui-shell/-header/index.ts | 19 - .../components/ui-shell/-nav/-item/index.gts | 20 + .../components/ui-shell/-nav/-item/index.hbs | 7 - .../components/ui-shell/-nav/-item/index.ts | 13 - .../src/components/ui-shell/-nav/index.gts | 21 + .../src/components/ui-shell/-nav/index.hbs | 7 - .../src/components/ui-shell/-nav/index.ts | 15 - .../ui-shell/-sidenav/-menu/index.gts | 96 + .../ui-shell/-sidenav/-menu/index.hbs | 66 - .../ui-shell/-sidenav/-menu/index.ts | 29 - .../ui-shell/-sidenav/-sub-menu/index.gts | 40 + .../ui-shell/-sidenav/-sub-menu/index.hbs | 21 - .../ui-shell/-sidenav/-sub-menu/index.ts | 18 - .../components/ui-shell/-sidenav/index.gts | 67 + .../components/ui-shell/-sidenav/index.hbs | 40 - .../src/components/ui-shell/-sidenav/index.ts | 28 - .../src/components/ui-shell/index.gts | 21 + .../src/components/ui-shell/index.hbs | 8 - .../src/components/ui-shell/index.ts | 16 - 118 files changed, 3594 insertions(+), 3395 deletions(-) rename carbon-components-ember/src/components/charts/-components/axis/{index.ts => index.gts} (58%) delete mode 100644 carbon-components-ember/src/components/charts/-components/axis/index.hbs rename carbon-components-ember/src/components/charts/-components/chart/{index.ts => index.gts} (80%) delete mode 100644 carbon-components-ember/src/components/charts/-components/chart/index.hbs create mode 100644 carbon-components-ember/src/components/charts/-components/color/pairing/index.gts delete mode 100644 carbon-components-ember/src/components/charts/-components/color/pairing/index.hbs delete mode 100644 carbon-components-ember/src/components/charts/-components/color/pairing/index.ts create mode 100644 carbon-components-ember/src/components/charts/-components/color/scale/index.gts delete mode 100644 carbon-components-ember/src/components/charts/-components/color/scale/index.hbs delete mode 100644 carbon-components-ember/src/components/charts/-components/color/scale/index.ts rename carbon-components-ember/src/components/charts/-components/tabular-data/{index.ts => index.gts} (71%) delete mode 100644 carbon-components-ember/src/components/charts/-components/tabular-data/index.hbs rename carbon-components-ember/src/components/charts/bar/{index.ts => index.gts} (70%) delete mode 100644 carbon-components-ember/src/components/charts/bar/index.hbs rename carbon-components-ember/src/components/charts/line/{index.ts => index.gts} (68%) delete mode 100644 carbon-components-ember/src/components/charts/line/index.hbs rename carbon-components-ember/src/components/charts/pie/{index.ts => index.gts} (70%) delete mode 100644 carbon-components-ember/src/components/charts/pie/index.hbs create mode 100644 carbon-components-ember/src/components/data-table/-body/index.gts delete mode 100644 carbon-components-ember/src/components/data-table/-body/index.hbs delete mode 100644 carbon-components-ember/src/components/data-table/-body/index.ts rename carbon-components-ember/src/components/data-table/-column/{index.ts => index.gts} (75%) delete mode 100644 carbon-components-ember/src/components/data-table/-column/index.hbs create mode 100644 carbon-components-ember/src/components/data-table/-header/index.gts delete mode 100644 carbon-components-ember/src/components/data-table/-header/index.hbs delete mode 100644 carbon-components-ember/src/components/data-table/-header/index.ts rename carbon-components-ember/src/components/data-table/-menu/{index.ts => index.gts} (55%) delete mode 100644 carbon-components-ember/src/components/data-table/-menu/index.hbs create mode 100644 carbon-components-ember/src/components/data-table/-row/index.gts delete mode 100644 carbon-components-ember/src/components/data-table/-row/index.hbs delete mode 100644 carbon-components-ember/src/components/data-table/-row/index.ts create mode 100644 carbon-components-ember/src/components/data-table/-search-input/index.gts delete mode 100644 carbon-components-ember/src/components/data-table/-search-input/index.hbs delete mode 100644 carbon-components-ember/src/components/data-table/-search-input/index.ts create mode 100644 carbon-components-ember/src/components/data-table/-skeleton/index.gts delete mode 100644 carbon-components-ember/src/components/data-table/-skeleton/index.hbs delete mode 100644 carbon-components-ember/src/components/data-table/-skeleton/index.ts rename carbon-components-ember/src/components/data-table/-table/{index.ts => index.gts} (50%) delete mode 100644 carbon-components-ember/src/components/data-table/-table/index.hbs create mode 100644 carbon-components-ember/src/components/data-table/-toolbar/-actions/index.gts delete mode 100644 carbon-components-ember/src/components/data-table/-toolbar/-actions/index.hbs delete mode 100644 carbon-components-ember/src/components/data-table/-toolbar/-actions/index.ts rename carbon-components-ember/src/components/data-table/-toolbar/-content/{index.ts => index.gts} (60%) delete mode 100644 carbon-components-ember/src/components/data-table/-toolbar/-content/index.hbs rename carbon-components-ember/src/components/data-table/-toolbar/{index.ts => index.gts} (52%) delete mode 100644 carbon-components-ember/src/components/data-table/-toolbar/index.hbs rename carbon-components-ember/src/components/data-table/{index.ts => index.gts} (55%) delete mode 100644 carbon-components-ember/src/components/data-table/index.hbs create mode 100644 carbon-components-ember/src/components/form-input/index.gts delete mode 100644 carbon-components-ember/src/components/form-input/index.hbs delete mode 100644 carbon-components-ember/src/components/form-input/index.ts create mode 100644 carbon-components-ember/src/components/list/-body/index.gts delete mode 100644 carbon-components-ember/src/components/list/-body/index.hbs delete mode 100644 carbon-components-ember/src/components/list/-body/index.ts rename carbon-components-ember/src/components/list/-column/{index.ts => index.gts} (60%) delete mode 100644 carbon-components-ember/src/components/list/-column/index.hbs create mode 100644 carbon-components-ember/src/components/list/-header/index.gts delete mode 100644 carbon-components-ember/src/components/list/-header/index.hbs delete mode 100644 carbon-components-ember/src/components/list/-header/index.ts create mode 100644 carbon-components-ember/src/components/list/-row/index.gts delete mode 100644 carbon-components-ember/src/components/list/-row/index.hbs delete mode 100644 carbon-components-ember/src/components/list/-row/index.ts create mode 100644 carbon-components-ember/src/components/list/-skeleton/index.gts delete mode 100644 carbon-components-ember/src/components/list/-skeleton/index.hbs delete mode 100644 carbon-components-ember/src/components/list/-skeleton/index.ts create mode 100644 carbon-components-ember/src/components/list/index.gts delete mode 100644 carbon-components-ember/src/components/list/index.hbs delete mode 100644 carbon-components-ember/src/components/list/index.ts create mode 100644 carbon-components-ember/src/components/modal/index.gts delete mode 100644 carbon-components-ember/src/components/modal/index.hbs delete mode 100644 carbon-components-ember/src/components/modal/index.ts create mode 100644 carbon-components-ember/src/components/notification/index.gts delete mode 100644 carbon-components-ember/src/components/notification/index.hbs delete mode 100644 carbon-components-ember/src/components/notification/index.ts create mode 100644 carbon-components-ember/src/components/pagination/index.gts delete mode 100644 carbon-components-ember/src/components/pagination/index.hbs delete mode 100644 carbon-components-ember/src/components/pagination/index.ts create mode 100644 carbon-components-ember/src/components/ui-shell/-header/index.gts delete mode 100644 carbon-components-ember/src/components/ui-shell/-header/index.hbs delete mode 100644 carbon-components-ember/src/components/ui-shell/-header/index.ts create mode 100644 carbon-components-ember/src/components/ui-shell/-nav/-item/index.gts delete mode 100644 carbon-components-ember/src/components/ui-shell/-nav/-item/index.hbs delete mode 100644 carbon-components-ember/src/components/ui-shell/-nav/-item/index.ts create mode 100644 carbon-components-ember/src/components/ui-shell/-nav/index.gts delete mode 100644 carbon-components-ember/src/components/ui-shell/-nav/index.hbs delete mode 100644 carbon-components-ember/src/components/ui-shell/-nav/index.ts create mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/-menu/index.gts delete mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/-menu/index.hbs delete mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/-menu/index.ts create mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/-sub-menu/index.gts delete mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/-sub-menu/index.hbs delete mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/-sub-menu/index.ts create mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/index.gts delete mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/index.hbs delete mode 100644 carbon-components-ember/src/components/ui-shell/-sidenav/index.ts create mode 100644 carbon-components-ember/src/components/ui-shell/index.gts delete mode 100644 carbon-components-ember/src/components/ui-shell/index.hbs delete mode 100644 carbon-components-ember/src/components/ui-shell/index.ts diff --git a/carbon-components-ember/src/components/accordion/index.gts b/carbon-components-ember/src/components/accordion/index.gts index ff704ebe..46930b41 100644 --- a/carbon-components-ember/src/components/accordion/index.gts +++ b/carbon-components-ember/src/components/accordion/index.gts @@ -11,7 +11,7 @@ interface AccordionSignature { Args: { disabled?: boolean; open?: boolean; - align?: 'start'|'end'; + align?: 'start' | 'end'; }; Element: null; Blocks: { @@ -33,9 +33,8 @@ interface ItemSignature { } class Item extends Component { - get itemId() { - return guidFor(this) + return guidFor(this); } get isActive() { @@ -45,7 +44,6 @@ class Item extends Component { return this.args.isOpen ?? this.args.accordion.isActive(this); } - - } diff --git a/carbon-components-ember/src/components/copy-button/index.gts b/carbon-components-ember/src/components/copy-button/index.gts index cff3d08f..f8e4ff8b 100644 --- a/carbon-components-ember/src/components/copy-button/index.gts +++ b/carbon-components-ember/src/components/copy-button/index.gts @@ -115,7 +115,7 @@ export default class CarbonCopyButton extends Component element // Set its value to the string that you want copied - el.value = targetElement.textContent.trim().split('\n').map(x => x.trim()).join('\n'); + el.value = targetElement.textContent + .trim() + .split('\n') + .map((x) => x.trim()) + .join('\n'); el.setAttribute('readonly', ''); // Make it readonly to be tamper-proof el.style.position = 'absolute'; el.style.left = '-9999px'; // Move outside the screen to make it invisible document.body.appendChild(el); // Append the