cosmoz-behaviors

WebJar for cosmoz-behaviors

License

License

GroupId

GroupId

org.webjars.bowergithub.neovici
ArtifactId

ArtifactId

cosmoz-behaviors
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

cosmoz-behaviors
WebJar for cosmoz-behaviors
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Neovici/cosmoz-behaviors

Download cosmoz-behaviors

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.neovici/cosmoz-behaviors/ -->
<dependency>
    <groupId>org.webjars.bowergithub.neovici</groupId>
    <artifactId>cosmoz-behaviors</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.neovici/cosmoz-behaviors/
implementation 'org.webjars.bowergithub.neovici:cosmoz-behaviors:1.0.4'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.neovici/cosmoz-behaviors/
implementation ("org.webjars.bowergithub.neovici:cosmoz-behaviors:1.0.4")
'org.webjars.bowergithub.neovici:cosmoz-behaviors:jar:1.0.4'
<dependency org="org.webjars.bowergithub.neovici" name="cosmoz-behaviors" rev="1.0.4">
  <artifact name="cosmoz-behaviors" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.neovici', module='cosmoz-behaviors', version='1.0.4')
)
libraryDependencies += "org.webjars.bowergithub.neovici" % "cosmoz-behaviors" % "1.0.4"
[org.webjars.bowergithub.neovici/cosmoz-behaviors "1.0.4"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [1.9.0,3)
org.webjars.bowergithub.wjcrowcroft » accounting.js jar [0.3.2,0.4)
org.webjars.bowergithub.neovici : cosmoz-moment jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

@neovici/cosmoz-utils

Build Status Sauce Test Status Maintainability Test Coverage semantic-release

Cosmoz Utils

cosmoz-utils contains date, money and template management functions commonly needed in page views. This package does not contain any visual element.

Upgrade guide

Upgrading from cosmoz-behaviors is very straightforward.

  • Cosmoz.TemplateHelperBehavior -> import { Template } from '@neovici/cosmoz-utils'
  • Cosmoz.MoneyHelperBehavior -> import { Money } from '@neovici/cosmoz-utils'
  • Cosmoz.DateHelperBehavior -> import { Date } from '@neovici/cosmoz-utils'
  • Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior], Polymer.Element) -> mixin(Template, PolymerElement)
  • Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior, Cosmoz.MoneyHelperBehavior], Polymer.Element) -> mixin({...Template, ...Money}, PolymerElement)

This code:

<link rel="import" href="../cosmoz-templatehelper-behavior.html" />

class DemoTemplateHelper extends Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior], Polymer.Element) {

Becomes:

import { PolymerElement } from '@polymer/polymer/polymer-element';
import { mixin, Template } from '@neovici/cosmoz-utils';

class DemoTemplateHelper extends mixin(Template, PolymerElement) {

You can also pick and choose only the functions your element needs:

import { mixin, Money } from '@neovici/cosmoz-utils';
import { isEmpty } from '@neovici/cosmoz-utils/template';
import { isoDate } from '@neovici/cosmoz-utils/date';

class DemoMoneyHelper extends mixin({isEmpty, isoDate, ...Money}, PolymerElement) {

Big Thanks

Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs][sauce_homepage]

Sauce Test Status [sauce_homepage]: https://saucelabs.com

org.webjars.bowergithub.neovici

Neovici

Versions

Version
1.0.4