Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Hybrid Platform Ui Core Components Laravel Package

ezsystems/hybrid-platform-ui-core-components

Core custom elements for eZ Hybrid Platform UI, including ez-platform-ui-app, ez-navigation-hub, and ez-toolbar. Also provides an eZ.TabsMixin class expression mixin and base CSS for tab markup, enabling components to recognize and switch tabs automatically.

View on GitHub
Deep Wiki
Context7

hybrid-platform-ui-core-components

Build Status

Provides the following custom elements used in the Hybrid Platform UI:

  • <ez-platform-ui-app>
  • <ez-navigation-hub>
  • <ez-toolbar>

In addition, this package provides a class expression mixin to add support for tabs based on a specific markup. To use that expression mixin, you can write something like:

<link rel="import" href="path/to/polymer/polymer-element.html">
<link rel="import" href="path/to/hybrid-platform-ui-core-components/mixins/ez-tabs.html">

<script>
    class MyComponent extends eZ.TabsMixin(Polymer.Element) {
        static get is() {
            return 'my-component';
        }
        // your code
    }

    window.customElements.define(MyComponent.is, MyComponent);
</script>

With that, the tabs markup will be automatically recognized. ez-tabs.html also provides the base CSS code so that the tabs visually behave as tabs. So with the following code:

<my-component>
  <div class="ez-tabs">
     <ul class="ez-tabs-list">
       <li class="ez-tabs-label is-tab-selected"><a href="#tab1">Tab 1</a></li>
       <li class="ez-tabs-label"><a href="#tab2">Tab 2</a></li>
     </ul>
     <div class="ez-tabs-panels">
       <div class="ez-tabs-panel is-tab-selected" id="tab1">Some content</div>
       <div class="ez-tabs-panel" id="tab2">Some other content</div>
     </div>
  </div>
</my-component>

You should see 2 tabs and should be able to switch from one to the other.

Developers tasks

System requirements:

  • Node >= 6.x (nvm is an easy way to get it running)
  • bower should be installed globally with npm install -g bower
  • before any of the following tasks, make sure the bower and npm dependencies are installed and up to date by running
    $ npm install
    $ bower install
    

Run unit tests

Using local browsers

$ npm run test-local

This will executes unit tests in local browsers.

To keep the test browsers open (and keep the test web server alive), you can add the -p option:

$ npm run test-local -- -p

Using SauceLabs

First, create an account at https://saucelabs.com/ (It's free for Open Source projects). Then run the following commands:

$ export SAUCE_USERNAME="your_sauce_labs_username"
$ export SAUCE_ACCESS_KEY="your_sauce_labs_key"
$ npm run test-sauce

The unit tests should be run using the Sauce Labs infrastructure. Targeted platforms/browsers are defined in wct.conf.json.

Run code style checks

$ npm run lint

Run local demo of components

$ npm run serve

This will run a local web server to serve the demo. After running that command, it should display the URL to reach the demo.

Alternatively, you can execute:

$ npm run serve -- -o

to open the index page in the default browser.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator