﻿//Variables statiques
Static.NavBarID = "navbar";
Static.NavBarLinkPopinCssClass = "navbar-link-popin";
Static.AttrNavBarLinkCode = "code";
Static.AttrIsProcessing = "is-processing";
Static.TabsID = "tabs";
Static.TabNavCssClass = "ui-tabs-nav";
Static.TabPanelCssClass = "ui-tabs-panel";
Static.TabAnchorCssClass = "ui-tabs-anchor";
Static.VueCssClass = "ui-vue";
Static.AlwaysEnableClass = "always-enable";
Static.DisableChildrenClass = "disable-children";
Static.VueHeaderCssClass = "ui-vue-header";
Static.VuePanelCssClass = "ui-vue-panel";
Static.VueContainerCssClass = "ui-vue-container";
Static.GroupeVueCssClass = "ui-groupevue";
Static.AccordionActiveTabCssClass = "ui-accordion-header-active";
Static.TabAccordionHeaderClass = "tab-accordion-header";
Static.TabAccordionContentClass = "tab-accordion-content";
Static.TabAccordionContentEmptyClass = "tab-accordion-content-empty";
Static.TabAccordionToolbarClass = "tab-accordion-toolbar";
Static.TabAccordionSpinnerClass = "accordion-spinner";
Static.ModeAffichageCssClassPrefix = "mode-affichage-";
Static.AccordionHeaderTpl = "div.tab-accordion-header";
Static.AccordionCssClass = "tab-accordion";
Static.ModeAffichageDataAttribute = "modeaffichage";
Static.AlertContainer = "alert-container";
Static.ScriptServerDataClass = "script-server-data";
Static.ScriptCurrentDataClass = "script-current-data";
Static.tabTemplate = "<li id='#{id}' class='#{class}' data-type='#{type}' data-vueid='#{vueid}' data-groupevueid='#{groupevueid}'><a href='#{href}'>#{label}</a></li>";
Static.tabConflictTemplate = "<li id='#{id}' class='#{class}' data-type='#{type}' data-targetpanelid= '#{targetpanelid}' data-vueid='#{vueid}' data-groupevueid='#{groupevueid}'><a href='#{href}'>#{label}</a></li>";
Static.closeTabTemplate = "<span class='ui-icon ui-icon-close' role='presentation'></span>"
Static.spinnerTemplate = "<div class='progress progress-striped active'><div class='progress-bar progress-bar-info' style='width: 100%'></div></div>";
Static.AccordionHeaderSpinner = "<div class='" + Static.TabAccordionSpinnerClass + "'><div id='circleG_1' class='circleG'></div><div id='circleG_2' class='circleG'></div><div id='circleG_3' class='circleG'></div></div>";
Static.AjaxPopinTemplate = "<div id='#{id}' class='modal fade' tabindex='-1' style='display: none;' role='dialog' aria-hidden='true' aria-labelledby='#{ariaLabel}' data-remote = '1'> <div class='modal-header'><button type='button' class='close' data-dismiss='modal' aria-hidden='true'>×</button><h4 class='modal-title'>#{title}</h4></div><div class='modal-body clearfix'>" + Static.spinnerTemplate + "</div></div>";
Static.ConfirmDialogTemplate = "<div id='dialog-confirm' title='#{title}'><p><i class='glyphicon glyphicon-warning-sign'></i>&nbsp;#{text}</p></div>";
Static.PageScriptData = 'script-page-data';
Static.VueScriptData = 'script-vue-data';
Static.GroupeVueScriptData = 'script-groupevue-data';
Static.VueTabInfoClass = "tabs-infos";
Static.SearchPanelFilterID = "panel-search";
Static.SearchPanelResultsID = "panel-results";
Static.SearchPanelAccordionID = "panel-search-accordion";
Static.SearchGridResultsID = "table-search-results";
Static.SearchGridResultsPagerID = "table-search-results-pager";
Static.PanelConflictCssClass = "conflict";
Static.JqGridPagerID = "pager";
Static.TabHeaderIdPreffix = "ui-tab-header-";
Static.TabHeaderAddNewID = "ui-tab-header-new";
Static.TabHeaderSEResultDefaultID = "ui-tab-header-se-default";
Static.AttrDataLoaded = "loaded";
Static.AttrDataLoadOnce = "loadonce";
Static.AttrDataVue = "vueid";
Static.AttrDataVueTitle = "vuetitle";
Static.AttrDataTabType = "type";
Static.AttrDataGroupeVue = "groupevueid";
Static.AttrDataLocked = "locked";
Static.AttrDataEditable = "editable";
Static.ToolbarID = "toolbar";
Static.TreeViewCocherDecherToutClass = "toggle-selection";
Static.ModalId = "modal";
Static.ModalIdPreffix = "modal";
Static.ModalAddPersonID = "popin-add-person";
Static.modalBodyCssClass = "modal-body";
Static.BtnPieceJointeCssClass = "btn-pieces-jointes";
Static.BtnNoticeAideCssClass = "btn-notice-aide";
Static.TabAccordionLinkCssClass = "tab-accordion-link";
Static.FromPieceJointeCssClass = "form-piece-jointe";
Static.TabsPiecesJointes = "tabs-pieces-jointes";
Static.PieceJointeFileInputButton = "fileinput-button";
Static.NavigatorTargetTabIntervenantPreffix = "source-intervenant-";
Static.SearchEngineSaveSearchModalID = "modal-save-search";
Static.SearchEngineFranceMapModalID = "modal-france-map";
Static.FranceMapDepartementsContainerID = "france-map-departements";
Static.vectorMapCssClass = "vector-map";
Static.RepriseEnMainTplPreffix = "tpl-reprise-en-main-";
Static.NullResultString = '[{"":null}]';//Dapper
Static.NavBarItemCurrentCssClass = "current";
Static.CandidatureFormationInitialePopinID = "formation-initiale-popin";
Static.CandidatureFormationContinuePopinID = "formation-continue-popin";
Static.CandidatureExperienceProfessionnellePopinID = "experience-professionnelle-popin";
Static.CandidatureExperienceAutrePopinID = "experience-autre-popin";
Static.SearchEngineFranceMapModalID = "modal-france-map";
Static.FranceMapDepartementsContainerID = "france-map-departements";
Static.CandidatureRoleCompetencesPrestationPopinID = "competences-prestation-popin";
Static.CandidatureRoleCompetencesPrestationJustifPopinID = "competences-prestation-justification-popin";
Static.CandidatureRoleCompetencesSectoriellePopinID = "competences-sectorielle-popin";
Static.CandidatureRoleCompetencesSectorielleJustifPopinID = "competences-sectorielle-justification-popin";
Static.CandidatureCompetencesTransversalesPopinID = "competences-transversales-popin";
Static.CandidatureCompetencesTransversalesJustifPopinID = "competences-transversales-justif-popin";
Static.CandidatureCompetencesTransversalesNoticeAidePopinID = "competences-transversales-notice-aide-popin";
Static.ImageArrowEClass = "ui-icon-circle-arrow-e";
Static.ImageArrowSClass = "ui-icon-circle-arrow-s";
Static.PlanningCssClass = "planning-calendar";
Static.CalendarLegendCssClass = "calendar-legend";
Static.PanelConfirmationPreReservationID = "panel-confirmation-prereservation";

Static.MonthNames = {
    'fr': ['Janvier', 'F\u00e9vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao\u00fbt', 'Septembre', 'Octobre', 'Novembre', 'D\u00e9cembre'],
    'en': ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
};
Static.DayNamesShort = {
    'fr': ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
    'en': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
};

Static.PlanningEventColors = ['#86269B', '#F7FF3F', '#FF432E', '#609194', '#333300'];

var cRegex = Static.regex = {};
cRegex.month = '^[0][1-9]|[1][0-2]$';
cRegex.year = '^[1-9][0-9]{3}$';
cRegex.numeric = '^[1-9]+$';