{"size": 971, "ext": "js", "max_stars_repo_path": "src/main/resources/META-INF/resources/js/dbsfaces_inputmask.js", "max_stars_repo_name": "investira/dbsfaces", "max_stars_repo_stars_event_min_datetime": "2015-12-22T14:07:45.000Z", "max_stars_repo_stars_event_max_datetime": "2015-12-22T14:07:45.000Z", "max_issues_repo_path": "src/main/resources/META-INF/resources/js/dbsfaces_inputmask.js", "max_issues_repo_name": "investira/dbsfaces", "max_issues_repo_issues_event_min_datetime": "2015-12-22T14:10:07.000Z", "max_issues_repo_issues_event_max_datetime": "2015-12-22T14:10:07.000Z", "max_forks_repo_path": "src/main/resources/META-INF/resources/js/dbsfaces_inputmask.js", "max_forks_repo_name": "dbsoftcombr/dbsfaces", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.5813953488, "max_line_length": 85, "alphanum_fraction": 0.6900102987}
dbs_inputMask = function(pId, pInputDataId, pMask, pMaskEmptyChr, pStripMask){
	var xInputData = $(pInputDataId);
	
	dbsfaces.inputMask.initialize($(pId), xInputData, pMask, pMaskEmptyChr, pStripMask);
}

dbsfaces.inputMask = {

	initialize: function(pInputMask, pInputData, pMask, pMaskEmptyChr, pStripMask){
		var xData = {
			dom : {
				self : pInputMask,
				inputData : pInputData
			},
			dbsmask : null
		}

		if (!dbsfaces.util.isMobile()){
			//Retirado para não dar erro no firefox desktop 
			pInputData.attr("pattern", null);
		}
		var xRegexString = "0-9";
		xData.dbsmask = pInputData.dbsmask({
			parentDom : pInputMask,
			type : "fixed",
			mask : pMask,
			maskEmptyChr : pMaskEmptyChr,
			decimalPlaces : 0,
			separateThousand : false,
			maxLength: pMask.length
		});

		pInputMask.data("data", xData);
	},

	setValue: function(pInputMask, pValue){
		var xInputMaskData = pInputMask.data("data");
		xInputMaskData.dbsmask.pvSetValue(pValue);
	}
}


