<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<template xmlVersion="1"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="../schemas/theme.xsd">

	<!-- Copyright (C) 2018 - <NAME> / Rapid Information Systems <EMAIL> 
		This file is part of the Rapid Application Platform Rapid is free software: 
		you can redistribute it and/or modify it under the terms of the GNU General 
		Public License as published by the Free Software Foundation, either version 
		3 of the License, or (at your option) any later version. The terms require 
		you to include the original copyright, and the license notice in all redistributions. 
		This program is distributed in the hope that it will be useful, but WITHOUT 
		ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
		FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 
		You should have received a copy of the GNU General Public License in a file 
		named "COPYING". If not, see <http://www.gnu.org/licenses/>. -->

	<type>modern</type>
	<name>Modern</name>

	<resources>
		<resource>
			<type>javascript</type>
			<contents>
					<![CDATA[
$(document).ready(function() {
	// listen for blur on input controls
	$(".r-inputbox input").blur(function() {
		// get a reference the input control
		var c = $(this);
		// if there was a value
		if (c.val()) {
			c.prev("label").addClass("filled");
		} else {
			c.prev("label").removeClass("filled");
		};
	}).parent().change(function() { 
	// fire the blur above on changes to the control too
		$(this).find("input").blur();
	});
	// apply filled class to all input boxes with a value attribute
	$(".r-inputbox input[value!='']").prev("label").addClass("filled");
	// apply flex to the tabs group tabs header
	$("div.tabsGroup ul.tabsHeader").css("display", "flex");
});
					]]>		
		    </contents>
		</resource>
		<resource>
			<type>css</type>
			<contents>
					<![CDATA[
@font-face {
	font-family: 'Roboto Regular';
	src: url('../../../styles/modern/fonts/Roboto-Regular.ttf') format('truetype');
	font-weight: 400;
}

@font-face {
	font-family: 'Roboto Bold';
	src: url('../../../styles/modern/fonts/Roboto-Bold.ttf') format('truetype');
	font-weight: 700;
}

* {
	font-family: 'Roboto Regular', sans-serif;
	font-size: 14px;
}

body, div.tabsGroup div.tabsPanel, div.upload {
	padding: 0 8px 8px;
}

div.r-panel, div.r-inputbox, div.r-dropdown, div.r-date, span.r-text, div.r-checkbox,<commit_msg>Update to modern theme to override val method<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<template xmlVersion="1"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="../schemas/theme.xsd">

	<!-- Copyright (C) 2018 - <NAME> / Rapid Information Systems <EMAIL> 
		This file is part of the Rapid Application Platform Rapid is free software: 
		you can redistribute it and/or modify it under the terms of the GNU General 
		Public License as published by the Free Software Foundation, either version 
		3 of the License, or (at your option) any later version. The terms require 
		you to include the original copyright, and the license notice in all redistributions. 
		This program is distributed in the hope that it will be useful, but WITHOUT 
		ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
		FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 
		You should have received a copy of the GNU General Public License in a file 
		named "COPYING". If not, see <http://www.gnu.org/licenses/>. -->

	<type>modern</type>
	<name>Modern</name>

	<resources>
		<resource>
			<type>javascript</type>
			<contents>
					<![CDATA[
$(document).ready(function() {
	// listen for blur on input controls
	$(".r-inputbox input").blur(function() {
		// get a reference the input control
		var c = $(this);
		// if there was a value
		if (c.val()) {
			c.prev("label").addClass("filled");
		} else {
			c.prev("label").removeClass("filled");
		};
	});
	// apply filled class to all input boxes with a value attribute
	$(".r-inputbox input[value!='']").prev("label").addClass("filled");
	// apply flex to the tabs group tabs header
	$("div.tabsGroup ul.tabsHeader").css("display", "flex");
});

// this overrides the val method so can can check the filled class for control labels
(function($) {
	// a reference to the original val method
    var original = $.fn.val; // maintain a reference to the existing function
    // override the focus method
    $.fn.val = function(val) {
    	// check setter
    	if (arguments.length >= 1) {
	    	// check val
			if (val) {
				this.prev("label").addClass("filled");
			} else {
				this.prev("label").removeClass("filled");
			};
		}
		// apply and return the original method
        return original.apply(this, arguments);
    };
})(jQuery);
					]]>		
		    </contents>
		</resource>
		<resource>
			<type>css</type>
			<contents>
					<![CDATA[
@font-face {
	font-family: 'Roboto Regular';
	src: url('../../../styles/modern/fonts/Roboto-Regular.ttf') format('truetype');
	font-weight: 400;
}

@font-face {
	font-family: 'Roboto Bold';
	src: url('../../../styles/modern/fonts/Roboto-Bold.ttf') format('truetype');
	font-weight: 700;
}

* {
	font-family: 'Roboto Regular', sans-serif;
	font-size: 14px;
}

body, div.tabsGroup div.tabsPanel, div.upload {
	padding: 0 8px 8px;
}

div.r-panel, div.r-inputbox, div.r-dropdown, div.r-date, span.r-text, div.r-checkbox,
{'fraction_non_alphanumeric': 0.14827649097209558, 'fraction_numerical': 0.009301477293452489, 'mean_word_length': 3.5322314049586776, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 2, '>': 48, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '240303', 'n_tokens_mistral': 1896, 'n_tokens_neox': 1678, 'n_words': 563}