Sha256: 004a5043f3aed04c05e563ef54b7147c3f528aadb903ca36bdc9dfdbc6d9e377

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

#= require 'jquery/inputmask'
#= require 'jquery/inputmask.extensions'
#= require 'jquery/inputmask.numeric.extensions'

$.extend $.inputmask.defaults.aliases.integer,
    groupSeparator : '.'
    autoGroup      : true
    autoUnmask     : true

$.extend $.inputmask.defaults.aliases.decimal,
    groupSeparator : '.'
    radixPoint     : ','
    autoGroup      : true
    autoUnmask     : true


$.extend $.inputmask.defaults.aliases,
    price:
      alias          : 'decimal'
      digits         : 2
      allowMinus     : false
      allowPlus      : false

    plate:
      mask           : 'AAA-9999'

    meters:
      alias          : 'integer'
      allowMinus     : false
      allowPlus      : false
      integerDigits  : 6

    cpf:
      mask           : '999.999.999-99'

    cnpj:
      mask           : '99.999.999/9999-99'

    phone:
      mask           : '(99) 9999[9]-9999'



define 'aura/extensions/mask', (mask) ->

  'use strict'


  (application) ->


    mask = (selector, mask, options) ->
      $(selector).inputmask mask, options


    version: '0.1.0'

    initialize: (application) ->
      {core, sandbox} = application

      sandbox.ui = sandbox.util.extend sandbox.ui, mask: mask

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ende-0.3.13 lib/assets/javascripts/aura/extensions/mask.js.coffee
ende-0.3.12 lib/assets/javascripts/aura/extensions/mask.js.coffee
ende-0.3.11 lib/assets/javascripts/aura/extensions/mask.js.coffee
ende-0.3.10 lib/assets/javascripts/aura/extensions/mask.js.coffee
ende-0.3.9 lib/assets/javascripts/aura/extensions/mask.js.coffee
ende-0.3.8 lib/assets/javascripts/aura/extensions/mask.js.coffee
ende-0.3.7 lib/assets/javascripts/aura/extensions/mask.js.coffee
ende-0.3.6 lib/assets/javascripts/aura/extensions/mask.js.coffee