Skip to content

Commit

Permalink
chore: main pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev committed Jan 2, 2025
1 parent ab38744 commit e86b52a
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 32 deletions.
5 changes: 0 additions & 5 deletions packages/main/src/Dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
import toLowercaseEnumValue from "@ui5/webcomponents-base/dist/util/toLowercaseEnumValue.js";
import Popup from "./Popup.js";
import Icon from "./Icon.js";
import "@ui5/webcomponents-icons/dist/error.js";
import "@ui5/webcomponents-icons/dist/alert.js";
import "@ui5/webcomponents-icons/dist/sys-enter-2.js";
Expand Down Expand Up @@ -112,10 +111,6 @@ const ICON_PER_STATE: Record<ValueStateWithIcon, string> = {
dialogCSS,
getEffectiveScrollbarStyle(),
],
dependencies: [
Icon,
...Popup.dependencies,
],
})
class Dialog extends Popup {
eventDetails!: Popup["eventDetails"];
Expand Down
1 change: 0 additions & 1 deletion packages/main/src/DropIndicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import DropIndicatorCss from "./generated/themes/DropIndicator.css.js";
renderer: jsxRenderer,
styles: DropIndicatorCss,
template: DropIndicatorTemplate,
dependencies: [],
})
class DropIndicator extends UI5Element {
/**
Expand Down
11 changes: 1 addition & 10 deletions packages/main/src/ExpandableText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
import jsxRender from "@ui5/webcomponents-base/dist/renderer/JsxRenderer.js";
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
import { isPhone } from "@ui5/webcomponents-base/dist/Device.js";
import Text from "./Text.js";
import Link from "./Link.js";
import type { LinkAccessibilityAttributes } from "./Link.js";
import ResponsivePopover from "./ResponsivePopover.js";
import Button from "./Button.js";
import type ResponsivePopover from "./ResponsivePopover.js";
import ExpandableTextOverflowMode from "./types/ExpandableTextOverflowMode.js";
import type TextEmptyIndicatorMode from "./types/TextEmptyIndicatorMode.js";
import {
Expand Down Expand Up @@ -60,12 +57,6 @@ import ExpandableTextCss from "./generated/themes/ExpandableText.css.js";
renderer: jsxRender,
styles: ExpandableTextCss,
template: ExpandableTextTemplate,
dependencies: [
Text,
Link,
ResponsivePopover,
Button,
],
})
class ExpandableText extends UI5Element {
/**
Expand Down
10 changes: 2 additions & 8 deletions packages/main/src/FileUploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ import {
VALUE_STATE_WARNING,
} from "./generated/i18n/i18n-defaults.js";

import Input from "./Input.js";
import Popover from "./Popover.js";
import Icon from "./Icon.js";
import type Input from "./Input.js";
import type Popover from "./Popover.js";

// Template
import FileUploaderTemplate from "./FileUploaderTemplate.js";
Expand Down Expand Up @@ -80,11 +79,6 @@ type FileUploaderChangeEventDetail = {
ValueStateMessageCss,
],
template: FileUploaderTemplate,
dependencies: [
Input,
Popover,
Icon,
],
})
/**
* Event is fired when the value of the file path has been changed.
Expand Down
2 changes: 0 additions & 2 deletions packages/main/src/Form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import FormTemplate from "./FormTemplate.js";
// Styles
import FormCss from "./generated/themes/Form.css.js";

import Title from "./Title.js";
import type FormItemSpacing from "./types/FormItemSpacing.js";
import type FormGroup from "./FormGroup.js";

Expand Down Expand Up @@ -206,7 +205,6 @@ type ItemsInfo = {
renderer: jsxRenderer,
styles: FormCss,
template: FormTemplate,
dependencies: [Title],
})
class Form extends UI5Element {
/**
Expand Down
2 changes: 0 additions & 2 deletions packages/main/src/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { LINK_SUBTLE, LINK_EMPHASIZED } from "./generated/i18n/i18n-defaults.js"

// Styles
import linkCss from "./generated/themes/Link.css.js";
import Icon from "./Icon.js";

type LinkClickEventDetail = {
altKey: boolean;
Expand Down Expand Up @@ -80,7 +79,6 @@ type LinkAccessibilityAttributes = Pick<AccessibilityAttributes, "expanded" | "h
renderer: jsxRenderer,
template: LinkTemplate,
styles: linkCss,
dependencies: [Icon],
})
/**
* Fired when the component is triggered either with a mouse/tap
Expand Down
4 changes: 0 additions & 4 deletions packages/main/src/Popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.j
import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
import MediaRange from "@ui5/webcomponents-base/dist/MediaRange.js";
import toLowercaseEnumValue from "@ui5/webcomponents-base/dist/util/toLowercaseEnumValue.js";
import Title from "./Title.js";
import PopupTemplate from "./PopupTemplate.js";
import PopupAccessibleRole from "./types/PopupAccessibleRole.js";
import { addOpenedPopup, removeOpenedPopup } from "./popup-utils/OpenedPopupsRegistry.js";
Expand Down Expand Up @@ -78,9 +77,6 @@ type PopupBeforeCloseEventDetail = {
renderer: jsxRender,
styles: [popupStlyes, popupBlockLayerStyles],
template: PopupTemplate,
dependencies: [
Title,
],
})
/**
* Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening.
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/bundle.esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import Breadcrumbs from "./Breadcrumbs.js";
import BusyIndicator from "./BusyIndicator.js";
import Button from "./Button.js";
import Card from "./Card.js";
import CalendarLegend from "./CalendarLegend.js";
import CardHeader from "./CardHeader.js";
import Carousel from "./Carousel.js";
import CheckBox from "./CheckBox.js";
Expand Down

0 comments on commit e86b52a

Please sign in to comment.