cosmoz-behaviors

WebJar for cosmoz-behaviors

Лицензия

Лицензия

Группа

Группа

org.webjars.bowergithub.neovici
Идентификатор

Идентификатор

cosmoz-behaviors
Последняя версия

Последняя версия

1.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

cosmoz-behaviors
WebJar for cosmoz-behaviors
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать cosmoz-behaviors

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

@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

Версии библиотеки

Версия
1.0.4