Skip to content

Commit 440c097

Browse files
committed
fix(typing): Fixed TypeScript Definitions
1 parent cd15ff4 commit 440c097

File tree

174 files changed

+882
-377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+882
-377
lines changed

config/jest.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ module.exports = {
2828
testMatch: ['<rootDir>/**/?(*.)(spec|test).{js,jsx,ts,tsx}'],
2929
moduleNameMapper: {
3030
'^@shared/(.*)$': '<rootDir>/shared/$1',
31-
'^@lib/(.*)$': '<rootDir>/packages/fiori3/src/lib/$1',
32-
'^@fiori-for-react/charts$': '<rootDir>/packages/charts/src',
33-
'^@fiori-for-react/fiori3(.*)?': '<rootDir>/packages/fiori3/src$1',
34-
'^@fiori-for-react/utils': '<rootDir>/packages/utils/src',
35-
'^@fiori-for-react/styles': '<rootDir>/packages/styles/src',
3631
'^@ui5/webcomponents/dist(.*)$': 'identity-obj-proxy', // ui5 web components can be mocked, not relevant for jest tests
3732
'\\.(css|less)$': 'identity-obj-proxy'
3833
},

config/karma.webpack.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ module.exports = function() {
1313
resolve: {
1414
extensions: ['.ts', '.tsx', '.js', '.jsx', '.cjs', '.mjs', '.esm'],
1515
alias: {
16-
'@fiori-for-react/styles': path.join(PATHS.packages, 'styles', 'src', 'index.ts'),
17-
'@fiori-for-react/utils': path.join(PATHS.packages, 'utils', 'src', 'index.ts'),
18-
'@fiori-for-react/fiori3': path.join(PATHS.packages, 'fiori3', 'src', 'index.ts'),
19-
'@fiori-for-react/charts': path.join(PATHS.packages, 'charts', 'src', 'index.ts'),
20-
'@lib': path.join(PATHS.packages, 'fiori3', 'src', 'lib'),
2116
'@shared': PATHS.shared
2217
}
2318
},

packages/charts/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './src';

packages/docs/.storybook/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ SKIP_DOC_GENERATION=true
5757
alias: {
5858
...config.resolve.alias,
5959
'@shared': path.join(PATHS.root, 'shared'),
60-
'@lib': path.join(PATHS.root, 'packages', 'fiori3', 'src', 'lib'),
6160
'@fiori-for-react/fiori3': path.join(PATHS.root, 'packages', 'fiori3', 'src', 'index.ts'),
6261
'@fiori-for-react/charts': path.join(PATHS.root, 'packages', 'charts', 'src', 'index.ts'),
6362
'@fiori-for-react/utils': path.join(PATHS.root, 'packages', 'utils', 'src', 'index.ts'),

packages/fiori3/__karma_snapshots__/FilterBar.md

Lines changed: 517 additions & 0 deletions
Large diffs are not rendered by default.

packages/fiori3/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './src';

packages/fiori3/scripts/wrapperGeneration/generateTypingsWeb.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,67 +22,67 @@ import TimelineItem from '@ui5/webcomponents/dist/TimelineItem';
2222

2323
const mappings = {
2424
[UI5ButtonType]: {
25-
importStatement: "import { ButtonType } from '@lib/ButtonType';",
25+
importStatement: "import { ButtonType } from '../../lib/ButtonType';",
2626
tsType: 'ButtonType',
2727
isEnum: true
2828
},
2929
[UI5PopoverPlacementTypes]: {
30-
importStatement: "import { PlacementType } from '@lib/PlacementType';",
30+
importStatement: "import { PlacementType } from '../../lib/PlacementType';",
3131
tsType: 'PlacementType',
3232
isEnum: true
3333
},
3434
[UI5PopoverHorizontalAligns]: {
35-
importStatement: "import { PopoverHorizontalAlign } from '@lib/PopoverHorizontalAlign';",
35+
importStatement: "import { PopoverHorizontalAlign } from '../../lib/PopoverHorizontalAlign';",
3636
tsType: 'PopoverHorizontalAlign',
3737
isEnum: true
3838
},
3939
[UI5PopoverVerticalAligns]: {
40-
importStatement: "import { PopoverVerticalAlign } from '@lib/PopoverVerticalAlign';",
40+
importStatement: "import { PopoverVerticalAlign } from '../../lib/PopoverVerticalAlign';",
4141
tsType: 'PopoverVerticalAlign',
4242
isEnum: true
4343
},
4444
[UI5LinkType]: {
45-
importStatement: "import { LinkType } from '@lib/LinkType';",
45+
importStatement: "import { LinkType } from '../../lib/LinkType';",
4646
tsType: 'LinkType',
4747
isEnum: true
4848
},
4949
[UI5IconColors]: {
50-
importStatement: "import { IconColor } from '@lib/IconColor';",
50+
importStatement: "import { IconColor } from '../../lib/IconColor';",
5151
tsType: 'IconColor',
5252
isEnum: true
5353
},
5454
[UI5ListItemTypes]: {
55-
importStatement: "import { ListItemTypes } from '@lib/ListItemTypes';",
55+
importStatement: "import { ListItemTypes } from '../../lib/ListItemTypes';",
5656
tsType: 'ListItemTypes',
5757
isEnum: true
5858
},
5959
[UI5PanelAccessibleRoles]: {
60-
importStatement: "import { PanelAccessibleRoles } from '@lib/PanelAccessibleRoles';",
60+
importStatement: "import { PanelAccessibleRoles } from '../../lib/PanelAccessibleRoles';",
6161
tsType: 'PanelAccessibleRoles',
6262
isEnum: true
6363
},
6464
[UI5ListSeparators]: {
65-
importStatement: "import { ListSeparators } from '@lib/ListSeparators';",
65+
importStatement: "import { ListSeparators } from '../../lib/ListSeparators';",
6666
tsType: 'ListSeparators',
6767
isEnum: true
6868
},
6969
[UI5ListMode]: {
70-
importStatement: "import { ListMode } from '@lib/ListMode';",
70+
importStatement: "import { ListMode } from '../../lib/ListMode';",
7171
tsType: 'ListMode',
7272
isEnum: true
7373
},
7474
[UI5TitleLevel]: {
75-
importStatement: "import { TitleLevel } from '@lib/TitleLevel';",
75+
importStatement: "import { TitleLevel } from '../../lib/TitleLevel';",
7676
tsType: 'TitleLevel',
7777
isEnum: true
7878
},
7979
[UI5BackgroundDesign]: {
80-
importStatement: "import { BackgroundDesign } from '@lib/BackgroundDesign';",
80+
importStatement: "import { BackgroundDesign } from '../../lib/BackgroundDesign';",
8181
tsType: 'BackgroundDesign',
8282
isEnum: true
8383
},
8484
[UI5InputType]: {
85-
importStatement: "import { InputType } from '@lib/InputType';",
85+
importStatement: "import { InputType } from '../../lib/InputType';",
8686
tsType: 'InputType',
8787
isEnum: true
8888
},
@@ -91,17 +91,17 @@ const mappings = {
9191
comment: 'UI5 Icon Web Component'
9292
},
9393
[UI5CalendarType]: {
94-
importStatement: "import { CalendarType } from '@lib/CalendarType';",
94+
importStatement: "import { CalendarType } from '../../lib/CalendarType';",
9595
tsType: 'CalendarType',
9696
isEnum: true
9797
},
9898
[UI5ValueState]: {
99-
importStatement: "import { ValueState } from '@lib/ValueState';",
99+
importStatement: "import { ValueState } from '../../lib/ValueState';",
100100
tsType: 'ValueState',
101101
isEnum: true
102102
},
103103
[UI5MessageStripType]: {
104-
importStatement: "import { MessageStripType } from '@lib/MessageStripType';",
104+
importStatement: "import { MessageStripType } from '../../lib/MessageStripType';",
105105
tsType: 'MessageStripType',
106106
isEnum: true
107107
},

packages/fiori3/src/components/ActionSheet/ActionSheet.karma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from '@lib/Button';
1+
import { Button } from '../../lib/Button';
22
import { mountThemedComponent } from '@shared/tests/utils';
33
import { expect, use } from 'chai';
44
import { matchSnapshot } from 'chai-karma-snapshot';

packages/fiori3/src/components/ActionSheet/demo.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ActionSheet } from '@lib/ActionSheet';
2-
import { Button } from '@lib/Button';
3-
import { PlacementType } from '@lib/PlacementType';
1+
import { ActionSheet } from '../../lib/ActionSheet';
2+
import { Button } from '../../lib/Button';
3+
import { PlacementType } from '../../lib/PlacementType';
44
import { select } from '@storybook/addon-knobs';
55
import { storiesOf } from '@storybook/react';
66
import React from 'react';

packages/fiori3/src/components/ActionSheet/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { withStyles } from '@fiori-for-react/styles';
22
import { Device, StyleClassHelper } from '@fiori-for-react/utils';
3-
import { ButtonType } from '@lib/ButtonType';
4-
import { PlacementType } from '@lib/PlacementType';
5-
import { ResponsivePopover } from '@lib/ResponsivePopover';
3+
import { ButtonType } from '../../lib/ButtonType';
4+
import { PlacementType } from '../../lib/PlacementType';
5+
import { ResponsivePopover } from '../../lib/ResponsivePopover';
66
import React, { Children, cloneElement, Component, ReactElement, ReactNode } from 'react';
77
import { ClassProps } from '../../interfaces/ClassProps';
88
import { Fiori3CommonProps } from '../../interfaces/Fiori3CommonProps';

0 commit comments

Comments
 (0)