GithubHelp home page GithubHelp logo

[NG] Support AoT compilation about clarity HOT 15 CLOSED

vmware avatar vmware commented on May 3, 2024 10
[NG] Support AoT compilation

from clarity.

Comments (15)

jaffoneh avatar jaffoneh commented on May 3, 2024 3

Thanks everyone. This currently our top priority. We have a couple of things to resolve before we're able to make the move and we'll be able to provide better estimates beginning of next week. Stay tuned!

from clarity.

mathisscott avatar mathisscott commented on May 3, 2024 3

If the PR is approved and there isn't too much effort involved with the remaining SASS issue and code review changes, then it should be going into 0.8.0.

The plan is for 0.8.0 to drop next week. If all goes well, it will. If not, it will probably drop the week after.

from clarity.

jaffoneh avatar jaffoneh commented on May 3, 2024 1

@photostu @jeeyun is actually working on getting a PR out there sometime this week!

from clarity.

pratheekhegde avatar pratheekhegde commented on May 3, 2024

I wish this gets resolved ASAP. AOT is a lifesaver sometimes.

from clarity.

photostu avatar photostu commented on May 3, 2024

+1 for needing this... angular-cli v beta.22-1 now has AOT turned on by default
Attempt to ng build with --aot and you will get the error Unexpected value 'ClarityModule' imported by the module 'AppModule'

from clarity.

wodCZ avatar wodCZ commented on May 3, 2024

Hello,
we are currently starting new project with Clarity and angular-seed and we are having troubles with i18n because of this.

Please, do you have an estimate on when AoT would be supported in ClarityNG?

Thanks!

from clarity.

kucharzyk avatar kucharzyk commented on May 3, 2024

It will be great to have aot in Clarity - It looks like angular-cli will need aot compatibillity even without aot enabled (sic!)

from clarity.

dragosrusu avatar dragosrusu commented on May 3, 2024

+1

from clarity.

photostu avatar photostu commented on May 3, 2024

This will help bundles sizes for sure, is there an open ticket anywhere to split up the CSS into modules? The CSS bundle for Clarity is really big

from clarity.

dragosrusu avatar dragosrusu commented on May 3, 2024

from clarity.

bytexro avatar bytexro commented on May 3, 2024

Here's the SASS helper: https://github.com/bytexro/xbem

And here's some sample file.

@charset "UTF-8";
@include block(selectbox) {
  position: relative;
  font-size: map-get($webc-selectbox, fontsize-text);

  @include element(button) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: space-around;
    @include flex($align: center);
    height: map-get($webc-selectbox, height-button);
    margin: 0;

    @include element(icon) {
      @include flex($justify: center, $align: center);
      background: {
        color:    transparent;
        image:    url('images/arrows.svg');
      }
    }
  }

  @include element(menu) {
    position: fixed;
    overflow: hidden;
    color: map-get($webc-selectbox, menu-color);
    background: {
      color: map-get($webc-selectbox, background-menu);
    }
    @include state(hidden) {
      display: none;
    }
  }
  @include element(list) {
    @include element(item) {
      @include flex($align: center);
      cursor: default;
      @include state(selected) {
        &::before {
          content: '✔';
        }
      }
    }
    @include element(label) {
      overflow: hidden;
      max-width: 80%;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    @include state(haslimit) {
      max-height: 240px;
      overflow-y: auto;
      &::-webkit-scrollbar-track-piece {
        background: transparent;
      }
    }
  }

  @include element(searchcontainer) {}
  @include element(search) {}
  @include state(alternative) {
    @include element(button) {
      background-color: map-get($webc-selectbox, background-menu);
      @include element(icon) {
        background-image: none;

        &::after {
          content: '▼';
          transform: scaleY(0.45);
          height: auto;
        }
      }
    }
  }

  @include state(ng-invalid, $is-angular-state: true) {
    @include element(button) {
      border-color: map-get($webc-selectbox, color-alert);
    }
  }
}

from clarity.

photostu avatar photostu commented on May 3, 2024

"We have a couple of things to resolve before we're able to make the move and we'll be able to provide better estimates beginning of next week. Stay tuned!"

Any updates? Thanks :)

from clarity.

kucharzyk avatar kucharzyk commented on May 3, 2024

It looks like PR is ready.

Is there any estimated date for next release with this changes?

from clarity.

photostu avatar photostu commented on May 3, 2024

Oh Fuck Yeah! ;-)

from clarity.

github-actions avatar github-actions commented on May 3, 2024

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

from clarity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.