Skip to content

Commit

Permalink
start a new branch for shaded version of domino-ui allowing a mix bet…
Browse files Browse the repository at this point in the history
…ween v1 and v2
  • Loading branch information
vegegoku committed Sep 8, 2024
1 parent 7ea0c24 commit ff75ed1
Show file tree
Hide file tree
Showing 730 changed files with 2,652 additions and 2,031 deletions.
File renamed without changes.
102 changes: 51 additions & 51 deletions domino-ui/pom.xml → domino-ui-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

<parent>
<groupId>org.dominokit</groupId>
<artifactId>domino-ui-parent</artifactId>
<version>1.0.8-SHADED-SNAPSHOT</version>
<artifactId>domino-ui-parent-shaded</artifactId>
<version>1.0.7-SNAPSHOT-SHADED-1</version>
</parent>

<artifactId>domino-ui</artifactId>
<artifactId>domino-ui-shaded</artifactId>
<packaging>gwt-lib</packaging>

<dependencies>
<dependency>
<groupId>org.dominokit</groupId>
<artifactId>domino-ui-shared</artifactId>
<artifactId>domino-ui-shared-shaded</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down Expand Up @@ -62,7 +62,7 @@
</dependency>
<dependency>
<groupId>org.dominokit</groupId>
<artifactId>mdi-icons-processor</artifactId>
<artifactId>mdi-icons-processor-shaded</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
Expand All @@ -80,7 +80,7 @@
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<moduleName>org.dominokit.domino.ui.DominoUI</moduleName>
<moduleName>org.dominokit.domino.ui.shaded.DominoUI</moduleName>
</configuration>
</plugin>

Expand Down Expand Up @@ -112,9 +112,9 @@

<webappSourceDir>${basedir}/src/main/resources</webappSourceDir>
<webappTargetDir>${build.directory}</webappTargetDir>
<cssTargetDir>/classes/org/dominokit/domino/ui/public/css</cssTargetDir>
<cssTargetDir>/classes/org/dominokit/domino/ui/shaded/public/css</cssTargetDir>

<cssSourceDir>/org/dominokit/domino/ui/public/css</cssSourceDir>
<cssSourceDir>/org/dominokit/domino/ui/shaded/public/css</cssSourceDir>

<cssFinalFile>domino-ui-components.css</cssFinalFile>

Expand All @@ -128,49 +128,49 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>javax.annotation:javax.annotation-api</exclude>
<exclude>com.google.elemental2:*</exclude>
<exclude>com.google.jsinterop:*</exclude>
<exclude>org.gwtproject.*:*</exclude>
<exclude>org.dominokit.i18n:*</exclude>
<exclude>org.jboss.elemento:*</exclude>
<exclude>javax.validation:*</exclude>
<exclude>junit:*</exclude>
<exclude>org.junit.*:*</exclude>
<exclude>org.opentest4j:*</exclude>
<exclude>org.apiguardian:*</exclude>
<exclude>com.google.code.findbugs:jsr305</exclude>
<exclude>com.google.j2objc:j2objc-annotations</exclude>
<exclude>com.google.errorprone:error_prone_annotations</exclude>
</excludes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.dominokit.domino.ui</pattern>
<shadedPattern>org.dominokit.domino.ui.shaded</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
<createSourcesJar>true</createSourcesJar>
</configuration>
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-shade-plugin</artifactId>-->
<!-- <version>3.2.1</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>shade</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <artifactSet>-->
<!-- <excludes>-->
<!-- <exclude>javax.annotation:javax.annotation-api</exclude>-->
<!-- <exclude>com.google.elemental2:*</exclude>-->
<!-- <exclude>com.google.jsinterop:*</exclude>-->
<!-- <exclude>org.gwtproject.*:*</exclude>-->
<!-- <exclude>org.dominokit.i18n:*</exclude>-->
<!-- <exclude>org.jboss.elemento:*</exclude>-->
<!-- <exclude>javax.validation:*</exclude>-->
<!-- <exclude>junit:*</exclude>-->
<!-- <exclude>org.junit.*:*</exclude>-->
<!-- <exclude>org.opentest4j:*</exclude>-->
<!-- <exclude>org.apiguardian:*</exclude>-->
<!-- <exclude>com.google.code.findbugs:jsr305</exclude>-->
<!-- <exclude>com.google.j2objc:j2objc-annotations</exclude>-->
<!-- <exclude>com.google.errorprone:error_prone_annotations</exclude>-->
<!-- </excludes>-->
<!-- </artifactSet>-->
<!-- <relocations>-->
<!-- <relocation>-->
<!-- <pattern>org.dominokit.domino.ui</pattern>-->
<!-- <shadedPattern>org.dominokit.domino.ui.shaded</shadedPattern>-->
<!-- </relocation>-->
<!-- </relocations>-->
<!-- <transformers>-->
<!-- <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>-->
<!-- </transformers>-->
<!-- <createSourcesJar>true</createSourcesJar>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.alerts;
package org.dominokit.domino.ui.shaded.alerts;

import static java.util.Objects.nonNull;
import static org.jboss.elemento.Elements.*;

import elemental2.dom.HTMLAnchorElement;
import elemental2.dom.HTMLButtonElement;
import elemental2.dom.HTMLDivElement;
import org.dominokit.domino.ui.style.Color;
import org.dominokit.domino.ui.style.Elevation;
import org.dominokit.domino.ui.style.Style;
import org.dominokit.domino.ui.style.Styles;
import org.dominokit.domino.ui.typography.Strong;
import org.dominokit.domino.ui.utils.BaseDominoElement;
import org.dominokit.domino.ui.utils.DominoElement;
import org.dominokit.domino.ui.utils.HasBackground;
import org.dominokit.domino.ui.utils.TextNode;
import org.dominokit.domino.ui.shaded.style.Color;
import org.dominokit.domino.ui.shaded.style.Elevation;
import org.dominokit.domino.ui.shaded.style.Style;
import org.dominokit.domino.ui.shaded.style.Styles;
import org.dominokit.domino.ui.shaded.typography.Strong;
import org.dominokit.domino.ui.shaded.utils.BaseDominoElement;
import org.dominokit.domino.ui.shaded.utils.DominoElement;
import org.dominokit.domino.ui.shaded.utils.HasBackground;
import org.dominokit.domino.ui.shaded.utils.TextNode;

/**
* Displays messages on the screen.
Expand Down Expand Up @@ -57,6 +57,7 @@
* @see HasBackground
* @see Color
*/
@Deprecated
public class Alert extends BaseDominoElement<HTMLDivElement, Alert>
implements HasBackground<Alert> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.alerts;
package org.dominokit.domino.ui.shaded.alerts;

import elemental2.dom.HTMLAnchorElement;
import org.dominokit.domino.ui.utils.BaseDominoElement;
import org.dominokit.domino.ui.shaded.utils.BaseDominoElement;

/**
* Wrapper element for {@link HTMLAnchorElement} that adds {@link AlertStyles#ALERT_LINK} by default
*
* @see Alert
* @see BaseDominoElement
*/
@Deprecated
public class AlertLink extends BaseDominoElement<HTMLAnchorElement, AlertLink> {

private final HTMLAnchorElement element;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.alerts;
package org.dominokit.domino.ui.shaded.alerts;

/** Default CSS classes for {@link Alert} */
@Deprecated
public class AlertStyles {

/** CSS class for alert */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.animations;
package org.dominokit.domino.ui.shaded.animations;

import elemental2.dom.EventListener;
import elemental2.dom.HTMLElement;
import org.dominokit.domino.ui.utils.DominoElement;
import org.dominokit.domino.ui.shaded.utils.DominoElement;
import org.gwtproject.timer.client.Timer;
import org.jboss.elemento.IsElement;

Expand All @@ -40,6 +40,7 @@
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/animation">Animation on MDN</a>
*/
@Deprecated
public class Animation {

private final CompleteCallback DEFAULT_CALLBACK = element -> {};
Expand Down Expand Up @@ -254,6 +255,7 @@ public void stop(boolean silent) {
* animation is completed
*/
@FunctionalInterface
@Deprecated
public interface CompleteCallback {
/** @param element an {@link HTMLElement} that is being animated */
void onComplete(HTMLElement element);
Expand All @@ -264,6 +266,7 @@ public interface CompleteCallback {
* animation starts
*/
@FunctionalInterface
@Deprecated
public interface StartHandler {
/** @param element an {@link HTMLElement} that is being animated */
void beforeStart(HTMLElement element);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.animations;
package org.dominokit.domino.ui.shaded.animations;

/**
* An enum that lists all the available built in animations each enum value represent an animation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.badges;
package org.dominokit.domino.ui.shaded.badges;

import static java.util.Objects.nonNull;
import static org.jboss.elemento.Elements.span;

import elemental2.dom.HTMLElement;
import elemental2.dom.Text;
import org.dominokit.domino.ui.style.Color;
import org.dominokit.domino.ui.style.Elevation;
import org.dominokit.domino.ui.utils.BaseDominoElement;
import org.dominokit.domino.ui.utils.DominoElement;
import org.dominokit.domino.ui.utils.HasBackground;
import org.dominokit.domino.ui.utils.TextNode;
import org.dominokit.domino.ui.shaded.style.Color;
import org.dominokit.domino.ui.shaded.style.Elevation;
import org.dominokit.domino.ui.shaded.utils.BaseDominoElement;
import org.dominokit.domino.ui.shaded.utils.DominoElement;
import org.dominokit.domino.ui.shaded.utils.HasBackground;
import org.dominokit.domino.ui.shaded.utils.TextNode;

/**
* Displays small label with color.
Expand All @@ -42,6 +42,7 @@
* @see BaseDominoElement
* @see HasBackground
*/
@Deprecated
public class Badge extends BaseDominoElement<HTMLElement, Badge> implements HasBackground<Badge> {

private final DominoElement<HTMLElement> badgeElement =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.badges;
package org.dominokit.domino.ui.shaded.badges;

/** Default CSS classes for {@link Badge} */
@Deprecated
public class BadgeStyles {

/** CSS class for badge */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.breadcrumbs;
package org.dominokit.domino.ui.shaded.breadcrumbs;

import static java.util.Objects.nonNull;
import static org.jboss.elemento.Elements.ol;
Expand All @@ -22,12 +22,12 @@
import elemental2.dom.HTMLOListElement;
import java.util.ArrayList;
import java.util.List;
import org.dominokit.domino.ui.icons.BaseIcon;
import org.dominokit.domino.ui.style.Color;
import org.dominokit.domino.ui.utils.BaseDominoElement;
import org.dominokit.domino.ui.utils.DominoElement;
import org.dominokit.domino.ui.utils.HasBackground;
import org.dominokit.domino.ui.utils.HasChangeHandlers;
import org.dominokit.domino.ui.shaded.icons.BaseIcon;
import org.dominokit.domino.ui.shaded.style.Color;
import org.dominokit.domino.ui.shaded.utils.BaseDominoElement;
import org.dominokit.domino.ui.shaded.utils.DominoElement;
import org.dominokit.domino.ui.shaded.utils.HasBackground;
import org.dominokit.domino.ui.shaded.utils.HasChangeHandlers;

/**
* Provides current location in a navigational hierarchy.
Expand All @@ -51,6 +51,7 @@
* @see HasBackground
* @see BreadcrumbItem
*/
@Deprecated
public class Breadcrumb extends BaseDominoElement<HTMLOListElement, Breadcrumb>
implements HasBackground<Breadcrumb>, HasChangeHandlers<Breadcrumb, BreadcrumbItem> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.breadcrumbs;
package org.dominokit.domino.ui.shaded.breadcrumbs;

import static java.util.Objects.nonNull;
import static org.jboss.elemento.Elements.a;
Expand All @@ -22,11 +22,11 @@
import elemental2.dom.HTMLAnchorElement;
import elemental2.dom.HTMLLIElement;
import elemental2.dom.Text;
import org.dominokit.domino.ui.icons.BaseIcon;
import org.dominokit.domino.ui.utils.BaseDominoElement;
import org.dominokit.domino.ui.utils.DominoElement;
import org.dominokit.domino.ui.utils.HasClickableElement;
import org.dominokit.domino.ui.utils.TextNode;
import org.dominokit.domino.ui.shaded.icons.BaseIcon;
import org.dominokit.domino.ui.shaded.utils.BaseDominoElement;
import org.dominokit.domino.ui.shaded.utils.DominoElement;
import org.dominokit.domino.ui.shaded.utils.HasClickableElement;
import org.dominokit.domino.ui.shaded.utils.TextNode;

/**
* A component for {@link Breadcrumb} location.
Expand All @@ -48,6 +48,7 @@
* @see BaseDominoElement
* @see HasClickableElement
*/
@Deprecated
public class BreadcrumbItem extends BaseDominoElement<HTMLLIElement, BreadcrumbItem>
implements HasClickableElement {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dominokit.domino.ui.breadcrumbs;
package org.dominokit.domino.ui.shaded.breadcrumbs;

/** Default CSS classes for {@link Breadcrumb} */
@Deprecated
public class BreadcrumbStyles {

/** CSS class for breadcrumb */
Expand Down
Loading

0 comments on commit ff75ed1

Please sign in to comment.